From 8aa8021d61c3c670553f7d2757069c83cb3486a3 Mon Sep 17 00:00:00 2001 From: empty Date: Sat, 27 Dec 2025 13:58:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20user-agent=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=BA=200.40.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - user-agent-updater.js 默认值 - config.json 配置值 --- config.json | 2 +- user-agent-updater.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.json b/config.json index 602c392..2d2b562 100644 --- a/config.json +++ b/config.json @@ -92,6 +92,6 @@ } ], "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" } \ No newline at end of file diff --git a/user-agent-updater.js b/user-agent-updater.js index 2957770..5ea3116 100644 --- a/user-agent-updater.js +++ b/user-agent-updater.js @@ -13,9 +13,9 @@ let isUpdating = false; function getDefaultVersion() { 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+)/); - return match ? match[1] : '0.19.3'; + return match ? match[1] : '0.40.2'; } function initializeVersion() {