ccg-workflow 1.7.11 → 1.7.12

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.DR-W9Rb6.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.eccEe_a4.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.DR-W9Rb6.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.eccEe_a4.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.11";
13
+ const version = "1.7.12";
14
14
 
15
15
  function isWindows() {
16
16
  return process.platform === "win32";
@@ -344,24 +344,30 @@ function injectConfigVariables(content, config) {
344
344
  processed = processed.replace(/\{\{ROUTING_MODE\}\}/g, routingMode);
345
345
  return processed;
346
346
  }
347
- function convertToGitBashPath(windowsPath) {
348
- if (!isWindows()) {
349
- return windowsPath;
350
- }
351
- let path = windowsPath.replace(/\\/g, "/");
352
- path = path.replace(/^([A-Z]):/i, (_, drive) => `/${drive.toLowerCase()}`);
353
- return path;
354
- }
355
347
  function replaceHomePathsInTemplate(content, installDir) {
356
348
  const userHome = homedir();
357
349
  const ccgDir = join(installDir, ".ccg");
358
350
  const binDir = join(installDir, "bin");
359
- const userHomePath = convertToGitBashPath(userHome);
360
- const ccgDirPath = convertToGitBashPath(ccgDir);
361
- const binDirPath = convertToGitBashPath(binDir);
362
- let processed = content.replace(/~\/\.claude\/\.ccg/g, ccgDirPath);
363
- processed = processed.replace(/~\/\.claude\/bin/g, binDirPath);
364
- processed = processed.replace(/~\//g, `${userHomePath}/`);
351
+ const claudeDir = installDir;
352
+ 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
+ }
365
371
  return processed;
366
372
  }
367
373
  async function installWorkflows(workflowIds, installDir, force = false, config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.11",
3
+ "version": "1.7.12",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",