From c5efebb805afb21c0b9efbe56afae9a53fbf0734 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sat, 27 Dec 2025 05:59:42 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=87=E6=8D=A2=E5=88=B0=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E6=A8=A1=E5=BC=8F=E5=B9=B6=E6=B8=85=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 docker-compose.yml 中已过时的 version 字段 - 将 dev_mode 设置为 false - 添加 accounts.json 加载调试日志 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- auth.js | 3 +++ config.json | 2 +- docker-compose.yml | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/auth.js b/auth.js index c9c4d93..f9386bc 100644 --- a/auth.js +++ b/auth.js @@ -68,10 +68,13 @@ function generateClientId() { function loadAuthConfig() { // 0. Check accounts.json for multi-account mode (highest priority) const accountsPath = path.join(process.cwd(), 'accounts.json'); + logDebug(`Checking accounts.json at: ${accountsPath}`); try { if (fs.existsSync(accountsPath)) { + logDebug('accounts.json exists, reading...'); const accountsContent = fs.readFileSync(accountsPath, 'utf-8'); const accountsData = JSON.parse(accountsContent); + logDebug(`accounts.json parsed, accounts: ${accountsData.accounts?.length || 0}`); if (accountsData.accounts && accountsData.accounts.length > 0) { const activeAccounts = accountsData.accounts.filter(acc => acc.status === 'active'); diff --git a/config.json b/config.json index 2d2b562..a54bd87 100644 --- a/config.json +++ b/config.json @@ -91,7 +91,7 @@ "provider": "google" } ], - "dev_mode": true, + "dev_mode": false, "user_agent": "factory-cli/0.40.2", "system_prompt": "You are Droid, an AI software engineering agent built by Factory.\n\n" } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index de2ed24..e4055c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: droid2api: build: .