ccg-workflow 1.7.13 → 1.7.15

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.
Binary file
Binary file
Binary file
Binary file
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.D8c1Y4Eu.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.BqcIYheH.mjs';
5
5
  import 'inquirer';
6
6
  import 'node:child_process';
7
7
  import 'node:util';
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.D8c1Y4Eu.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.BqcIYheH.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:child_process';
@@ -10,7 +10,7 @@ import i18next from 'i18next';
10
10
  import ora from 'ora';
11
11
  import { parse, stringify } from 'smol-toml';
12
12
 
13
- const version = "1.7.13";
13
+ const version = "1.7.15";
14
14
 
15
15
  function isWindows() {
16
16
  return process.platform === "win32";
@@ -349,25 +349,15 @@ function replaceHomePathsInTemplate(content, installDir) {
349
349
  const ccgDir = join(installDir, ".ccg");
350
350
  const binDir = join(installDir, "bin");
351
351
  const claudeDir = installDir;
352
+ const normalizePath2 = (path) => path.replace(/\\/g, "/");
352
353
  let processed = content;
353
- if (isWindows()) {
354
- const ccgDirWin = ccgDir.replace(/\//g, "\\");
355
- processed = processed.replace(/~\/\.claude\/\.ccg/g, ccgDirWin);
356
- const binDirWin = binDir.replace(/\//g, "\\");
357
- processed = processed.replace(/~\/\.claude\/bin/g, binDirWin);
358
- const claudeDirWin = claudeDir.replace(/\//g, "\\");
359
- processed = processed.replace(/~\/\.claude/g, claudeDirWin);
360
- const userHomeWin = userHome.replace(/\//g, "\\");
361
- processed = processed.replace(/~\//g, `${userHomeWin}\\`);
362
- processed = processed.replace(/([A-Z]):([\\/][^\s"'<>|*?\n]+)/gi, (match, drive, rest) => {
363
- return `${drive}:${rest.replace(/\//g, "\\")}`;
364
- });
365
- } else {
366
- processed = processed.replace(/~\/\.claude\/\.ccg/g, ccgDir);
367
- processed = processed.replace(/~\/\.claude\/bin/g, binDir);
368
- processed = processed.replace(/~\/\.claude/g, claudeDir);
369
- processed = processed.replace(/~\//g, `${userHome}/`);
370
- }
354
+ processed = processed.replace(/~\/\.claude\/\.ccg/g, normalizePath2(ccgDir));
355
+ const wrapperName = isWindows() ? "codeagent-wrapper.exe" : "codeagent-wrapper";
356
+ const wrapperPath = `${normalizePath2(binDir)}/${wrapperName}`;
357
+ processed = processed.replace(/~\/\.claude\/bin\/codeagent-wrapper/g, wrapperPath);
358
+ processed = processed.replace(/~\/\.claude\/bin/g, normalizePath2(binDir));
359
+ processed = processed.replace(/~\/\.claude/g, normalizePath2(claudeDir));
360
+ processed = processed.replace(/~\//g, `${normalizePath2(userHome)}/`);
371
361
  return processed;
372
362
  }
373
363
  async function installWorkflows(workflowIds, installDir, force = false, config) {
@@ -1715,7 +1705,8 @@ async function update() {
1715
1705
  console.log(ansis.gray("\u5DF2\u53D6\u6D88\u66F4\u65B0"));
1716
1706
  return;
1717
1707
  }
1718
- await performUpdate(currentVersion, latestVersion || currentVersion, hasUpdate || needsWorkflowUpdate);
1708
+ const fromVersion = needsWorkflowUpdate ? localVersion : currentVersion;
1709
+ await performUpdate(fromVersion, latestVersion || currentVersion, hasUpdate || needsWorkflowUpdate);
1719
1710
  } catch (error) {
1720
1711
  spinner.stop();
1721
1712
  console.log(ansis.red(`\u274C \u66F4\u65B0\u5931\u8D25: ${error}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.13",
3
+ "version": "1.7.15",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",