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.
- package/bin/codeagent-wrapper-darwin-amd64 +0 -0
- package/bin/codeagent-wrapper-darwin-arm64 +0 -0
- package/bin/codeagent-wrapper-linux-amd64 +0 -0
- package/bin/codeagent-wrapper-linux-arm64 +0 -0
- package/bin/codeagent-wrapper-windows-amd64.exe +0 -0
- package/bin/codeagent-wrapper-windows-arm64.exe +0 -0
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{ccg-workflow.BaLg4MWl.mjs → ccg-workflow.C9LbAu-R.mjs} +1 -1
- package/package.json +1 -1
- package/templates/commands/analyze.md +8 -5
- package/templates/commands/debug.md +5 -5
- package/templates/commands/optimize.md +8 -5
- package/templates/commands/review.md +8 -5
- package/templates/commands/test.md +8 -5
|
Binary file
|
|
Binary file
|
|
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.
|
|
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.
|
|
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';
|
package/package.json
CHANGED
|
@@ -73,12 +73,15 @@ EOF",
|
|
|
73
73
|
|
|
74
74
|
`[模式:分析]`
|
|
75
75
|
|
|
76
|
-
**⚠️
|
|
76
|
+
**⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
**⚠️
|
|
67
|
+
**⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
**⚠️
|
|
73
|
+
**⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
**⚠️
|
|
59
|
+
**⚠️ 必须发起两个并行 Bash 调用**(参照上方调用规范):
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|