ccg-workflow 1.7.17 → 1.7.20

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.CdCRa1zM.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.vNtJ8vYr.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.CdCRa1zM.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.vNtJ8vYr.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.17";
13
+ const version = "1.7.20";
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.17",
3
+ "version": "1.7.20",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",
@@ -73,11 +73,17 @@ EOF",
73
73
 
74
74
  `[模式:分析]`
75
75
 
76
- **并行调用**(`run_in_background: true`):
77
- - Codex:使用分析提示词,输出技术可行性、架构影响、性能考量
78
- - Gemini:使用分析提示词,输出 UI/UX 影响、用户体验、视觉设计考量
76
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
79
77
 
80
- `TaskOutput` 等待两个模型的完整结果。
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 影响、用户体验、视觉设计考量
85
+
86
+ 用 `TaskOutput` 等待两个模型的完整结果。**必须等所有模型返回后才能进入下一阶段**。
81
87
 
82
88
  ### 🔀 阶段 3:交叉验证
83
89
 
@@ -99,9 +99,13 @@ EOF",
99
99
 
100
100
  `[模式:构思]` - Codex 主导分析
101
101
 
102
- 调用 Codex,使用分析提示词,输出技术可行性、推荐方案、风险点。
102
+ **⚠️ 必须调用 Codex**(参照上方调用规范):
103
+ - ROLE_FILE: `~/.claude/.ccg/prompts/codex/analyzer.md`
104
+ - 需求:增强后的需求(如未增强则用 $ARGUMENTS)
105
+ - 上下文:阶段 1 收集的项目上下文
106
+ - OUTPUT: 技术可行性分析、推荐方案(至少 2 个)、风险点评估
103
107
 
104
- **📌 保存 SESSION_ID**(`CODEX_SESSION`)。
108
+ **📌 保存 SESSION_ID**(`CODEX_SESSION`)用于后续阶段复用。
105
109
 
106
110
  输出方案(至少 2 个),等待用户选择。
107
111
 
@@ -109,7 +113,11 @@ EOF",
109
113
 
110
114
  `[模式:计划]` - Codex 主导规划
111
115
 
112
- 调用 Codex(`resume $CODEX_SESSION`),使用规划提示词,输出文件结构、函数/类设计、依赖。
116
+ **⚠️ 必须调用 Codex**(使用 `resume <CODEX_SESSION>` 复用会话):
117
+ - ROLE_FILE: `~/.claude/.ccg/prompts/codex/architect.md`
118
+ - 需求:用户选择的方案
119
+ - 上下文:阶段 2 的分析结果
120
+ - OUTPUT: 文件结构、函数/类设计、依赖关系
113
121
 
114
122
  Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
115
123
 
@@ -125,7 +133,11 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
125
133
 
126
134
  `[模式:优化]` - Codex 主导审查
127
135
 
128
- 调用 Codex,使用审查提示词,关注安全性、性能、错误处理、API规范。
136
+ **⚠️ 必须调用 Codex**(参照上方调用规范):
137
+ - ROLE_FILE: `~/.claude/.ccg/prompts/codex/reviewer.md`
138
+ - 需求:审查以下后端代码变更
139
+ - 上下文:git diff 或代码内容
140
+ - OUTPUT: 安全性、性能、错误处理、API 规范问题列表
129
141
 
130
142
  整合审查意见,用户确认后执行优化。
131
143
 
@@ -64,11 +64,14 @@ EOF",
64
64
 
65
65
  `[模式:诊断]`
66
66
 
67
- **并行调用**(`run_in_background: true`):
68
- - Codex:分析逻辑错误、数据流、异常处理、API、数据库
69
- - Gemini:分析 UI 渲染、状态管理、事件绑定、组件生命周期
67
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
70
68
 
71
- `TaskOutput` 等待两个模型的诊断结果。
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
+
74
+ 用 `TaskOutput` 等待两个模型的诊断结果。**必须等所有模型返回后才能进入下一阶段**。
72
75
 
73
76
  ### 🔀 阶段 3:假设整合
74
77
 
@@ -99,9 +99,13 @@ EOF",
99
99
 
100
100
  `[模式:构思]` - Gemini 主导分析
101
101
 
102
- 调用 Gemini,使用分析提示词,输出 UI 可行性、推荐方案、用户体验。
102
+ **⚠️ 必须调用 Gemini**(参照上方调用规范):
103
+ - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/analyzer.md`
104
+ - 需求:增强后的需求(如未增强则用 $ARGUMENTS)
105
+ - 上下文:阶段 1 收集的项目上下文
106
+ - OUTPUT: UI 可行性分析、推荐方案(至少 2 个)、用户体验评估
103
107
 
104
- **📌 保存 SESSION_ID**(`GEMINI_SESSION`)。
108
+ **📌 保存 SESSION_ID**(`GEMINI_SESSION`)用于后续阶段复用。
105
109
 
106
110
  输出方案(至少 2 个),等待用户选择。
107
111
 
@@ -109,7 +113,11 @@ EOF",
109
113
 
110
114
  `[模式:计划]` - Gemini 主导规划
111
115
 
112
- 调用 Gemini(`resume $GEMINI_SESSION`),使用规划提示词,输出组件结构、UI流程、样式方案。
116
+ **⚠️ 必须调用 Gemini**(使用 `resume <GEMINI_SESSION>` 复用会话):
117
+ - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/architect.md`
118
+ - 需求:用户选择的方案
119
+ - 上下文:阶段 2 的分析结果
120
+ - OUTPUT: 组件结构、UI 流程、样式方案
113
121
 
114
122
  Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
115
123
 
@@ -125,7 +133,11 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
125
133
 
126
134
  `[模式:优化]` - Gemini 主导审查
127
135
 
128
- 调用 Gemini,使用审查提示词,关注可访问性、响应式、性能、设计一致性。
136
+ **⚠️ 必须调用 Gemini**(参照上方调用规范):
137
+ - ROLE_FILE: `~/.claude/.ccg/prompts/gemini/reviewer.md`
138
+ - 需求:审查以下前端代码变更
139
+ - 上下文:git diff 或代码内容
140
+ - OUTPUT: 可访问性、响应式、性能、设计一致性问题列表
129
141
 
130
142
  整合审查意见,用户确认后执行优化。
131
143
 
@@ -70,11 +70,17 @@ EOF",
70
70
 
71
71
  `[模式:分析]`
72
72
 
73
- **并行调用**(`run_in_background: true`):
74
- - Codex:分析后端性能问题,输出瓶颈列表、优化方案、预期收益
75
- - Gemini:分析前端性能问题(Core Web Vitals),输出瓶颈列表、优化方案、预期收益
73
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
76
74
 
77
- `TaskOutput` 等待两个模型的完整结果。
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:性能瓶颈列表、优化方案、预期收益
82
+
83
+ 用 `TaskOutput` 等待两个模型的完整结果。**必须等所有模型返回后才能进入下一阶段**。
78
84
 
79
85
  ### 🔀 阶段 3:优化整合
80
86
 
@@ -56,11 +56,17 @@ EOF",
56
56
 
57
57
  `[模式:审查]`
58
58
 
59
- **并行调用**(`run_in_background: true`):
60
- - Codex:审查安全性、性能、错误处理、可维护性
61
- - Gemini:审查可访问性、响应式、设计一致性、用户体验
59
+ **⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
62
60
 
63
- `TaskOutput` 等待两个模型的审查结果。
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 分类列出可访问性、响应式、设计一致性问题
68
+
69
+ 用 `TaskOutput` 等待两个模型的审查结果。**必须等所有模型返回后才能进入下一阶段**。
64
70
 
65
71
  ### 🔀 阶段 3:综合反馈
66
72
 
@@ -83,12 +83,18 @@ EOF",
83
83
 
84
84
  `[模式:生成]`
85
85
 
86
- **根据代码类型路由**:
87
- - 后端代码:调用 Codex 生成测试
88
- - 前端代码:调用 Gemini 生成测试
89
- - 全栈代码:并行调用两者(`run_in_background: true`)
86
+ **⚠️ 根据代码类型必须调用对应模型**(参照上方调用规范):
90
87
 
91
- `TaskOutput` 等待模型返回测试代码。
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:完整测试代码(使用项目现有测试框架,覆盖正常路径、边界条件、异常处理)
96
+
97
+ **必须等所有模型返回后才能进入下一阶段**。
92
98
 
93
99
  ### 🔀 阶段 3:测试整合
94
100