chore: 更新 user-agent 版本为 0.40.2
- user-agent-updater.js 默认值 - config.json 配置值
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user