From bfef6a7c4f01b9019f01ccd8248c4ec2e3039bd4 Mon Sep 17 00:00:00 2001 From: li Date: Fri, 9 Jan 2026 11:44:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=BA=E5=8C=96=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E5=BC=BA=E5=88=B6=E9=80=92=E5=BD=92?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=80=E6=9C=89=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 uninstallWorkflows 逻辑,使用 fs.remove 强制递归删除整个目录 - 删除 ~/.claude/commands/ccg/ 及其所有内容(解决残留文件问题) - 删除 ~/.claude/agents/ccg/ - 删除 ~/.claude/.ccg/ 配置目录(包含 prompts 和 config) - 更新卸载确认提示文案,明确告知会强制删除所有数据 - 版本升级至 v1.7.8 --- package.json | 2 +- src/i18n/index.ts | 4 ++-- src/utils/installer.ts | 49 +++++++++++++++++++----------------------- 3 files changed, 25 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 97b12f0..60947af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccg-workflow", - "version": "1.7.7", + "version": "1.7.8", "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流", "type": "module", "packageManager": "pnpm@10.17.1", diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 06ecebb..5faadf5 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -152,7 +152,7 @@ const zhCN = { }, }, uninstall: { - confirm: '确定要卸载 CCG 吗?这将移除所有已安装的命令和配置。', + confirm: '确定要卸载 CCG 吗?这将强制移除所有命令目录、配置文件和数据。', alsoRemoveAceTool: '同时移除 ace-tool MCP 配置?', uninstalling: '正在卸载...', success: '卸载成功!', @@ -313,7 +313,7 @@ const en = { }, }, uninstall: { - confirm: 'Are you sure you want to uninstall CCG? This will remove all installed commands and configurations.', + confirm: 'Are you sure you want to uninstall CCG? This will force remove all command directories, config files and data.', alsoRemoveAceTool: 'Also remove ace-tool MCP configuration?', uninstalling: 'Uninstalling...', success: 'Uninstallation successful!', diff --git a/src/utils/installer.ts b/src/utils/installer.ts index a15f31f..2a8428d 100644 --- a/src/utils/installer.ts +++ b/src/utils/installer.ts @@ -586,26 +586,19 @@ export async function uninstallWorkflows(installDir: string): Promise