ccg-workflow 1.7.7 → 1.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import cac from 'cac';
3
3
  import ansis from 'ansis';
4
- import { y as diagnoseMcpConfig, z as isWindows, A as readClaudeCodeConfig, B as fixWindowsMcpConfig, C as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, D as configMcp, E as version, a as i18n } from './shared/ccg-workflow.CHCXUNCV.mjs';
4
+ import { y as diagnoseMcpConfig, z as isWindows, A as readClaudeCodeConfig, B as fixWindowsMcpConfig, C as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, D as configMcp, E as version, a as i18n } from './shared/ccg-workflow.CSFmksBD.mjs';
5
5
  import 'inquirer';
6
6
  import 'node:os';
7
7
  import 'pathe';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as changeLanguage, v as checkForUpdates, x as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, q as getCurrentVersion, t as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, o as migrateToV1_4_0, p as needsMigration, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.CHCXUNCV.mjs';
1
+ export { c as changeLanguage, v as checkForUpdates, x as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, q as getCurrentVersion, t as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, o as migrateToV1_4_0, p as needsMigration, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.CSFmksBD.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:os';
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
10
10
  import { exec } from 'node:child_process';
11
11
  import { promisify } from 'node:util';
12
12
 
13
- const version = "1.7.7";
13
+ const version = "1.7.8";
14
14
 
15
15
  function isWindows() {
16
16
  return process.platform === "win32";
@@ -548,30 +548,22 @@ async function uninstallWorkflows(installDir) {
548
548
  errors: []
549
549
  };
550
550
  const commandsDir = join(installDir, "commands", "ccg");
551
- const promptsDir = join(installDir, ".ccg", "prompts");
551
+ join(installDir, ".ccg", "prompts");
552
552
  const agentsDir = join(installDir, "agents", "ccg");
553
553
  const skillsDir = join(installDir, "skills", "multi-model-collaboration");
554
554
  const binDir = join(installDir, "bin");
555
- join(installDir, ".ccg");
555
+ const ccgConfigDir = join(installDir, ".ccg");
556
556
  if (await fs.pathExists(commandsDir)) {
557
557
  try {
558
558
  const files = await fs.readdir(commandsDir);
559
559
  for (const file of files) {
560
560
  if (file.endsWith(".md")) {
561
- await fs.remove(join(commandsDir, file));
562
561
  result.removedCommands.push(file.replace(".md", ""));
563
562
  }
564
563
  }
565
- const agentsSubDir = join(commandsDir, "agents");
566
- if (await fs.pathExists(agentsSubDir)) {
567
- await fs.remove(agentsSubDir);
568
- }
569
- const remaining = await fs.readdir(commandsDir);
570
- if (remaining.length === 0) {
571
- await fs.remove(commandsDir);
572
- }
564
+ await fs.remove(commandsDir);
573
565
  } catch (error) {
574
- result.errors.push(`Failed to remove commands: ${error}`);
566
+ result.errors.push(`Failed to remove commands directory: ${error}`);
575
567
  result.success = false;
576
568
  }
577
569
  }
@@ -579,12 +571,11 @@ async function uninstallWorkflows(installDir) {
579
571
  try {
580
572
  const files = await fs.readdir(agentsDir);
581
573
  for (const file of files) {
582
- await fs.remove(join(agentsDir, file));
583
574
  result.removedAgents.push(file.replace(".md", ""));
584
575
  }
585
576
  await fs.remove(agentsDir);
586
577
  } catch (error) {
587
- result.errors.push(`Failed to remove agents: ${error}`);
578
+ result.errors.push(`Failed to remove agents directory: ${error}`);
588
579
  result.success = false;
589
580
  }
590
581
  }
@@ -600,15 +591,6 @@ async function uninstallWorkflows(installDir) {
600
591
  result.success = false;
601
592
  }
602
593
  }
603
- if (await fs.pathExists(promptsDir)) {
604
- try {
605
- await fs.remove(promptsDir);
606
- result.removedPrompts.push("codex", "gemini");
607
- } catch (error) {
608
- result.errors.push(`Failed to remove prompts: ${error}`);
609
- result.success = false;
610
- }
611
- }
612
594
  if (await fs.pathExists(binDir)) {
613
595
  try {
614
596
  const wrapperName = process.platform === "win32" ? "codeagent-wrapper.exe" : "codeagent-wrapper";
@@ -622,6 +604,14 @@ async function uninstallWorkflows(installDir) {
622
604
  result.success = false;
623
605
  }
624
606
  }
607
+ if (await fs.pathExists(ccgConfigDir)) {
608
+ try {
609
+ await fs.remove(ccgConfigDir);
610
+ result.removedPrompts.push("ALL_PROMPTS_AND_CONFIGS");
611
+ } catch (error) {
612
+ result.errors.push(`Failed to remove .ccg directory: ${error}`);
613
+ }
614
+ }
625
615
  return result;
626
616
  }
627
617
  async function uninstallAceTool() {
@@ -947,7 +937,7 @@ const zhCN = {
947
937
  }
948
938
  },
949
939
  uninstall: {
950
- confirm: "\u786E\u5B9A\u8981\u5378\u8F7D CCG \u5417\uFF1F\u8FD9\u5C06\u79FB\u9664\u6240\u6709\u5DF2\u5B89\u88C5\u7684\u547D\u4EE4\u548C\u914D\u7F6E\u3002",
940
+ confirm: "\u786E\u5B9A\u8981\u5378\u8F7D CCG \u5417\uFF1F\u8FD9\u5C06\u5F3A\u5236\u79FB\u9664\u6240\u6709\u547D\u4EE4\u76EE\u5F55\u3001\u914D\u7F6E\u6587\u4EF6\u548C\u6570\u636E\u3002",
951
941
  alsoRemoveAceTool: "\u540C\u65F6\u79FB\u9664 ace-tool MCP \u914D\u7F6E\uFF1F",
952
942
  uninstalling: "\u6B63\u5728\u5378\u8F7D...",
953
943
  success: "\u5378\u8F7D\u6210\u529F\uFF01",
@@ -1107,7 +1097,7 @@ const en = {
1107
1097
  }
1108
1098
  },
1109
1099
  uninstall: {
1110
- confirm: "Are you sure you want to uninstall CCG? This will remove all installed commands and configurations.",
1100
+ confirm: "Are you sure you want to uninstall CCG? This will force remove all command directories, config files and data.",
1111
1101
  alsoRemoveAceTool: "Also remove ace-tool MCP configuration?",
1112
1102
  uninstalling: "Uninstalling...",
1113
1103
  success: "Uninstallation successful!",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",