ccg-workflow 1.7.19 → 1.7.21

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.BaLg4MWl.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.C9LbAu-R.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.BaLg4MWl.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.C9LbAu-R.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.19";
13
+ const version = "1.7.21";
14
14
 
15
15
  function isWindows() {
16
16
  return process.platform === "win32";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.7.19",
3
+ "version": "1.7.21",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",
@@ -73,12 +73,15 @@ EOF",
73
73
 
74
74
  `[模式:分析]`
75
75
 
76
- **⚠️ 必须并行调用 Codex 和 Gemini**(参照上方调用规范,使用 `run_in_background: true`):
76
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
77
77
 
78
- | 模型 | ROLE_FILE | OUTPUT |
79
- |------|-----------|--------|
80
- | **Codex** | `~/.claude/.ccg/prompts/codex/analyzer.md` | 技术可行性、架构影响、性能考量 |
81
- | **Gemini** | `~/.claude/.ccg/prompts/gemini/analyzer.md` | UI/UX 影响、用户体验、视觉设计考量 |
78
+ 1. **Codex 后端分析**:`Bash({ command: "...--backend codex...", run_in_background: true })`
79
+ - ROLE_FILE: `~/.claude/.ccg/prompts/codex/analyzer.md`
80
+ - OUTPUT:技术可行性、架构影响、性能考量
81
+
82
+ 2. **Gemini 前端分析**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
83
+ - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/analyzer.md`
84
+ - OUTPUT:UI/UX 影响、用户体验、视觉设计考量
82
85
 
83
86
  用 `TaskOutput` 等待两个模型的完整结果。**必须等所有模型返回后才能进入下一阶段**。
84
87
 
@@ -64,12 +64,12 @@ EOF",
64
64
 
65
65
  `[模式:诊断]`
66
66
 
67
- **⚠️ 必须并行调用 Codex 和 Gemini**(参照上方调用规范,使用 `run_in_background: true`):
67
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
68
68
 
69
- | 模型 | 需求 | OUTPUT |
70
- |------|------|--------|
71
- | **Codex** | 诊断问题($ARGUMENTS) | 诊断假设(按可能性排序),每个假设包含原因、证据、修复建议 |
72
- | **Gemini** | 诊断问题($ARGUMENTS) | 诊断假设(按可能性排序),每个假设包含原因、证据、修复建议 |
69
+ 1. **Codex 后端诊断**:`Bash({ command: "...--backend codex...", run_in_background: true })`
70
+ 2. **Gemini 前端诊断**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
71
+
72
+ 两个调用的 OUTPUT 都是:诊断假设(按可能性排序),每个假设包含原因、证据、修复建议
73
73
 
74
74
  用 `TaskOutput` 等待两个模型的诊断结果。**必须等所有模型返回后才能进入下一阶段**。
75
75
 
@@ -70,12 +70,15 @@ EOF",
70
70
 
71
71
  `[模式:分析]`
72
72
 
73
- **⚠️ 必须并行调用 Codex 和 Gemini**(参照上方调用规范,使用 `run_in_background: true`):
73
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
74
74
 
75
- | 模型 | 需求 | OUTPUT |
76
- |------|------|--------|
77
- | **Codex** | 分析后端性能问题($ARGUMENTS) | 性能瓶颈列表、优化方案、预期收益 |
78
- | **Gemini** | 分析前端性能问题(Core Web Vitals)($ARGUMENTS) | 性能瓶颈列表、优化方案、预期收益 |
75
+ 1. **Codex 后端分析**:`Bash({ command: "...--backend codex...", run_in_background: true })`
76
+ - 需求:分析后端性能问题($ARGUMENTS)
77
+ - OUTPUT:性能瓶颈列表、优化方案、预期收益
78
+
79
+ 2. **Gemini 前端分析**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
80
+ - 需求:分析前端性能问题(Core Web Vitals)
81
+ - OUTPUT:性能瓶颈列表、优化方案、预期收益
79
82
 
80
83
  用 `TaskOutput` 等待两个模型的完整结果。**必须等所有模型返回后才能进入下一阶段**。
81
84
 
@@ -56,12 +56,15 @@ EOF",
56
56
 
57
57
  `[模式:审查]`
58
58
 
59
- **⚠️ 必须并行调用 Codex 和 Gemini**(参照上方调用规范,使用 `run_in_background: true`):
59
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
60
60
 
61
- | 模型 | 需求 | OUTPUT |
62
- |------|------|--------|
63
- | **Codex** | 审查代码变更(git diff 内容) | 按 Critical/Major/Minor/Suggestion 分类列出安全性、性能、错误处理问题 |
64
- | **Gemini** | 审查代码变更(git diff 内容) | 按 Critical/Major/Minor/Suggestion 分类列出可访问性、响应式、设计一致性问题 |
61
+ 1. **Codex 后端审查**:`Bash({ command: "...--backend codex...", run_in_background: true })`
62
+ - 需求:审查代码变更(git diff 内容)
63
+ - OUTPUT:按 Critical/Major/Minor/Suggestion 分类列出安全性、性能、错误处理问题
64
+
65
+ 2. **Gemini 前端审查**:`Bash({ command: "...--backend gemini...", run_in_background: true })`
66
+ - 需求:审查代码变更(git diff 内容)
67
+ - OUTPUT:按 Critical/Major/Minor/Suggestion 分类列出可访问性、响应式、设计一致性问题
65
68
 
66
69
  用 `TaskOutput` 等待两个模型的审查结果。**必须等所有模型返回后才能进入下一阶段**。
67
70
 
@@ -85,11 +85,14 @@ EOF",
85
85
 
86
86
  **⚠️ 根据代码类型必须调用对应模型**(参照上方调用规范):
87
87
 
88
- | 代码类型 | 调用模型 | OUTPUT |
89
- |----------|----------|--------|
90
- | **后端** | Codex | 完整测试代码(使用项目现有测试框架,覆盖正常路径、边界条件、异常处理) |
91
- | **前端** | Gemini | 完整测试代码(使用项目现有测试框架,覆盖正常路径、边界条件、异常处理) |
92
- | **全栈** | 并行调用两者(`run_in_background: true`) | 后端 + 前端测试代码 |
88
+ - **后端代码** `Bash({ command: "...--backend codex...", run_in_background: false })`
89
+ - **前端代码** → `Bash({ command: "...--backend gemini...", run_in_background: false })`
90
+ - **全栈代码** 并行调用两者:
91
+ 1. `Bash({ command: "...--backend codex...", run_in_background: true })`
92
+ 2. `Bash({ command: "...--backend gemini...", run_in_background: true })`
93
+ 用 `TaskOutput` 等待结果
94
+
95
+ OUTPUT:完整测试代码(使用项目现有测试框架,覆盖正常路径、边界条件、异常处理)
93
96
 
94
97
  **必须等所有模型返回后才能进入下一阶段**。
95
98