ccg-workflow 1.7.1 → 1.7.2
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.
|
|
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.BO24M85O.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'pathe';
|
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.BO24M85O.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
@@ -10,7 +10,7 @@ import { parse, stringify } from 'smol-toml';
|
|
|
10
10
|
import { exec } from 'node:child_process';
|
|
11
11
|
import { promisify } from 'node:util';
|
|
12
12
|
|
|
13
|
-
const version = "1.7.
|
|
13
|
+
const version = "1.7.2";
|
|
14
14
|
|
|
15
15
|
function isWindows() {
|
|
16
16
|
return process.platform === "win32";
|
package/package.json
CHANGED
|
@@ -74,18 +74,27 @@ EOF
|
|
|
74
74
|
|
|
75
75
|
**调用示例**:
|
|
76
76
|
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
```
|
|
78
|
+
Bash({
|
|
79
|
+
command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF_CODEX'
|
|
80
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
<TASK>
|
|
83
|
+
分析以下后端需求,提供设计方案:
|
|
82
84
|
- API 接口设计
|
|
83
85
|
- 数据模型结构
|
|
84
86
|
- 性能与安全考虑
|
|
85
87
|
- 错误处理策略
|
|
86
88
|
|
|
87
89
|
需求:[具体任务描述]
|
|
88
|
-
|
|
90
|
+
</TASK>
|
|
91
|
+
|
|
92
|
+
OUTPUT: 技术可行性、推荐方案、风险点
|
|
93
|
+
EOF_CODEX",
|
|
94
|
+
run_in_background: false,
|
|
95
|
+
timeout: 3600000,
|
|
96
|
+
description: "Codex 后端分析"
|
|
97
|
+
})
|
|
89
98
|
```
|
|
90
99
|
|
|
91
100
|
**⚠️ 等待 Codex 返回后继续**
|
|
@@ -96,7 +105,25 @@ EOF
|
|
|
96
105
|
|
|
97
106
|
`[模式:计划]` - Codex 主导规划
|
|
98
107
|
|
|
99
|
-
|
|
108
|
+
**调用示例**:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Bash({
|
|
112
|
+
command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF_CODEX'
|
|
113
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/architect.md
|
|
114
|
+
|
|
115
|
+
<TASK>
|
|
116
|
+
规划需求: [具体任务描述]
|
|
117
|
+
Context: [项目上下文]
|
|
118
|
+
</TASK>
|
|
119
|
+
|
|
120
|
+
OUTPUT: 文件结构、函数/类设计、依赖
|
|
121
|
+
EOF_CODEX",
|
|
122
|
+
run_in_background: false,
|
|
123
|
+
timeout: 3600000,
|
|
124
|
+
description: "Codex 后端架构规划"
|
|
125
|
+
})
|
|
126
|
+
```
|
|
100
127
|
|
|
101
128
|
**⚠️ 等待 Codex 返回后继续**
|
|
102
129
|
|
|
@@ -114,7 +141,25 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
|
|
|
114
141
|
|
|
115
142
|
`[模式:优化]` - Codex 主导审查
|
|
116
143
|
|
|
117
|
-
|
|
144
|
+
**调用示例**:
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
Bash({
|
|
148
|
+
command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF_CODEX'
|
|
149
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/codex/reviewer.md
|
|
150
|
+
|
|
151
|
+
<TASK>
|
|
152
|
+
审查代码: [实施的代码变更]
|
|
153
|
+
关注点: 安全性、性能、错误处理、API规范
|
|
154
|
+
</TASK>
|
|
155
|
+
|
|
156
|
+
OUTPUT: 审查意见
|
|
157
|
+
EOF_CODEX",
|
|
158
|
+
run_in_background: false,
|
|
159
|
+
timeout: 3600000,
|
|
160
|
+
description: "Codex 后端代码审查"
|
|
161
|
+
})
|
|
162
|
+
```
|
|
118
163
|
|
|
119
164
|
**⚠️ 等待 Codex 返回后继续**
|
|
120
165
|
|
|
@@ -74,18 +74,27 @@ EOF
|
|
|
74
74
|
|
|
75
75
|
**调用示例**:
|
|
76
76
|
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
```
|
|
78
|
+
Bash({
|
|
79
|
+
command: "~/.claude/bin/codeagent-wrapper --backend gemini - \"$PWD\" <<'EOF_GEMINI'
|
|
80
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/analyzer.md
|
|
80
81
|
|
|
81
|
-
|
|
82
|
+
<TASK>
|
|
83
|
+
分析以下前端需求,提供设计方案:
|
|
82
84
|
- 组件结构与状态管理
|
|
83
85
|
- 响应式策略
|
|
84
86
|
- 可访问性考虑
|
|
85
87
|
- 性能优化建议
|
|
86
88
|
|
|
87
89
|
需求:[具体任务描述]
|
|
88
|
-
|
|
90
|
+
</TASK>
|
|
91
|
+
|
|
92
|
+
OUTPUT: UI可行性、推荐方案、用户体验
|
|
93
|
+
EOF_GEMINI",
|
|
94
|
+
run_in_background: false,
|
|
95
|
+
timeout: 3600000,
|
|
96
|
+
description: "Gemini 前端分析"
|
|
97
|
+
})
|
|
89
98
|
```
|
|
90
99
|
|
|
91
100
|
**⚠️ 等待 Gemini 返回后继续**
|
|
@@ -96,7 +105,25 @@ EOF
|
|
|
96
105
|
|
|
97
106
|
`[模式:计划]` - Gemini 主导规划
|
|
98
107
|
|
|
99
|
-
|
|
108
|
+
**调用示例**:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Bash({
|
|
112
|
+
command: "~/.claude/bin/codeagent-wrapper --backend gemini - \"$PWD\" <<'EOF_GEMINI'
|
|
113
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/architect.md
|
|
114
|
+
|
|
115
|
+
<TASK>
|
|
116
|
+
规划需求: [具体任务描述]
|
|
117
|
+
Context: [项目上下文]
|
|
118
|
+
</TASK>
|
|
119
|
+
|
|
120
|
+
OUTPUT: 组件结构、UI流程、样式方案
|
|
121
|
+
EOF_GEMINI",
|
|
122
|
+
run_in_background: false,
|
|
123
|
+
timeout: 3600000,
|
|
124
|
+
description: "Gemini 前端架构规划"
|
|
125
|
+
})
|
|
126
|
+
```
|
|
100
127
|
|
|
101
128
|
**⚠️ 等待 Gemini 返回后继续**
|
|
102
129
|
|
|
@@ -114,7 +141,25 @@ Claude 综合规划,请求用户批准后存入 `.claude/plan/任务名.md`
|
|
|
114
141
|
|
|
115
142
|
`[模式:优化]` - Gemini 主导审查
|
|
116
143
|
|
|
117
|
-
|
|
144
|
+
**调用示例**:
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
Bash({
|
|
148
|
+
command: "~/.claude/bin/codeagent-wrapper --backend gemini - \"$PWD\" <<'EOF_GEMINI'
|
|
149
|
+
ROLE_FILE: ~/.claude/.ccg/prompts/gemini/reviewer.md
|
|
150
|
+
|
|
151
|
+
<TASK>
|
|
152
|
+
审查代码: [实施的代码变更]
|
|
153
|
+
关注点: 可访问性、响应式、性能、设计一致性
|
|
154
|
+
</TASK>
|
|
155
|
+
|
|
156
|
+
OUTPUT: 审查意见
|
|
157
|
+
EOF_GEMINI",
|
|
158
|
+
run_in_background: false,
|
|
159
|
+
timeout: 3600000,
|
|
160
|
+
description: "Gemini 前端代码审查"
|
|
161
|
+
})
|
|
162
|
+
```
|
|
118
163
|
|
|
119
164
|
**⚠️ 等待 Gemini 返回后继续**
|
|
120
165
|
|