chore: 更新 user-agent 版本为 0.40.2

- user-agent-updater.js 默认值
- config.json 配置值
This commit is contained in:
empty
2025-12-27 13:58:32 +08:00
parent 5bdbc35875
commit 8aa8021d61
2 changed files with 3 additions and 3 deletions

View File

@@ -92,6 +92,6 @@
} }
], ],
"dev_mode": true, "dev_mode": true,
"user_agent": "factory-cli/0.27.1", "user_agent": "factory-cli/0.40.2",
"system_prompt": "You are Droid, an AI software engineering agent built by Factory.\n\n" "system_prompt": "You are Droid, an AI software engineering agent built by Factory.\n\n"
} }

View File

@@ -13,9 +13,9 @@ let isUpdating = false;
function getDefaultVersion() { function getDefaultVersion() {
const cfg = getConfig(); const cfg = getConfig();
const userAgent = cfg.user_agent || 'factory-cli/0.19.3'; const userAgent = cfg.user_agent || 'factory-cli/0.40.2';
const match = userAgent.match(/\/(\d+\.\d+\.\d+)/); const match = userAgent.match(/\/(\d+\.\d+\.\d+)/);
return match ? match[1] : '0.19.3'; return match ? match[1] : '0.40.2';
} }
function initializeVersion() { function initializeVersion() {