ccg-workflow 1.3.2 → 1.3.4
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/README.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**Claude Code 主导 + Codex CLI + Gemini CLI + Claude CLI 协作工作流系统**
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/ccg-workflow)
|
|
8
|
-
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://claude.ai/code)
|
|
7
|
+
[](https://www.npmjs.com/package/ccg-workflow) [](https://opensource.org/licenses/MIT) [](https://claude.ai/code) [](https://github.com/openai/openai-python) [](https://ai.google.dev/)
|
|
10
8
|
|
|
11
|
-
> **最新版本 v1.3.
|
|
9
|
+
> **最新版本 v1.3.3**:修复 Windows PATH 配置安全问题
|
|
12
10
|
|
|
13
11
|
</div>
|
|
14
12
|
|
|
@@ -16,11 +14,30 @@
|
|
|
16
14
|
|
|
17
15
|
## 🎉 最新更新
|
|
18
16
|
|
|
19
|
-
### v1.3.
|
|
17
|
+
### v1.3.3 - Windows PATH 配置安全修复 🔒
|
|
18
|
+
- ✅ **安全修复**:Windows PATH 配置改用安全追加方法,避免 `setx` 1024 字符限制
|
|
19
|
+
- ✅ **新方法**:使用 PowerShell `[System.Environment]::GetEnvironmentVariable` 先读取后追加
|
|
20
|
+
- ✅ **重复检测**:自动检查路径是否已存在,避免重复添加
|
|
21
|
+
- ✅ **无字符限制**:支持超长 PATH(最大 32767 字符)
|
|
22
|
+
- ✅ **向下兼容**:不影响现有用户配置
|
|
23
|
+
|
|
24
|
+
<details>
|
|
25
|
+
<summary>v1.3.2 - MCP 配置缺失修复 (2026-01-05)</summary>
|
|
26
|
+
|
|
27
|
+
- ✅ **关键修复**:安装后 `~/.ccg/config.toml` 现在包含完整的 `[mcp]` 配置部分
|
|
28
|
+
- ✅ **类型安全**:添加 `CcgConfig.mcp` TypeScript 接口定义
|
|
29
|
+
- ✅ **默认配置**:`createDefaultConfig` 自动生成完整 MCP 配置
|
|
30
|
+
- ✅ **配置版本**:配置文件版本号从 1.0.0 升级到 1.3.2
|
|
31
|
+
</details>
|
|
32
|
+
|
|
33
|
+
<details>
|
|
34
|
+
<summary>v1.3.1 - 命令模板修正 (2026-01-05)</summary>
|
|
35
|
+
|
|
20
36
|
- ✅ **说明修正**:澄清 auggie 也支持 Prompt 增强功能(需按教程配置)
|
|
21
37
|
- ✅ **模板更新**:修正 `/ccg:dev` 和 `/ccg:enhance` 命令的提示信息
|
|
22
38
|
- ✅ **配置说明**:`prompt_enhance_auggie = ""` 改为"留空表示未配置,按教程配置后填入工具名"
|
|
23
39
|
- ✅ **用户体验**:提供配置教程链接,不再误导用户认为 auggie 不支持 Prompt 增强
|
|
40
|
+
</details>
|
|
24
41
|
|
|
25
42
|
### v1.3.0 - MCP 动态选择系统 ⭐
|
|
26
43
|
- ✅ **多 MCP 支持**:安装时可选 ace-tool(开箱即用Prompt增强+代码检索)或 auggie(官方原版,代码检索+可选Prompt增强)
|
|
@@ -593,6 +610,65 @@ EOF
|
|
|
593
610
|
|
|
594
611
|
---
|
|
595
612
|
|
|
613
|
+
## 常见问题
|
|
614
|
+
|
|
615
|
+
<details>
|
|
616
|
+
<summary><strong>Q: codex 总是思考太久超时该怎么办?</strong></summary>
|
|
617
|
+
|
|
618
|
+
**问题描述**:在使用 `/ccg:dev` 等命令时,Codex 后端思考时间过长,导致超时。
|
|
619
|
+
|
|
620
|
+
**解决方案**:
|
|
621
|
+
- 参考社区讨论:[linux.do - Codex 超时问题解决方案](https://linux.do/t/topic/1405588/256?u=feng_li)
|
|
622
|
+
|
|
623
|
+
**常见优化方法**:
|
|
624
|
+
- 减少任务复杂度,拆分为更小的子任务
|
|
625
|
+
- 调整 Codex CLI 的超时配置
|
|
626
|
+
- 使用 `--backend gemini` 切换到 Gemini 后端测试
|
|
627
|
+
</details>
|
|
628
|
+
|
|
629
|
+
<details>
|
|
630
|
+
<summary><strong>Q: 如何更新到最新版本?</strong></summary>
|
|
631
|
+
|
|
632
|
+
**一键更新,无需卸载重装**:
|
|
633
|
+
```bash
|
|
634
|
+
npx ccg-workflow
|
|
635
|
+
# 选择 "更新工作流"
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
更新会自动:
|
|
639
|
+
- 检测 npm 最新版本
|
|
640
|
+
- 增量更新命令模板和提示词
|
|
641
|
+
- 保留用户配置和 MCP 设置
|
|
642
|
+
</details>
|
|
643
|
+
|
|
644
|
+
<details>
|
|
645
|
+
<summary><strong>Q: MCP 动态选择系统是什么?</strong></summary>
|
|
646
|
+
|
|
647
|
+
**v1.3.0 核心特性**:安装时可以选择:
|
|
648
|
+
- **ace-tool**(第三方):开箱即用,包含 Prompt 增强 + 代码检索
|
|
649
|
+
- **auggie**(官方):代码检索 + 可选 Prompt 增强(需配置)
|
|
650
|
+
|
|
651
|
+
命令模板会根据配置自动适配对应的 MCP 工具调用。
|
|
652
|
+
</details>
|
|
653
|
+
|
|
654
|
+
<details>
|
|
655
|
+
<summary><strong>Q: codeagent-wrapper 是什么?</strong></summary>
|
|
656
|
+
|
|
657
|
+
来自 [cexll/myclaude](https://github.com/cexll/myclaude) 的 Go 工具,封装了多 CLI 调用:
|
|
658
|
+
- 支持 `--backend codex/gemini/claude` 切换
|
|
659
|
+
- 会话管理(SESSION_ID)
|
|
660
|
+
- ROLE_FILE 动态注入
|
|
661
|
+
- 自动安装到 `~/.claude/bin/`
|
|
662
|
+
</details>
|
|
663
|
+
|
|
664
|
+
<details>
|
|
665
|
+
<summary><strong>更多问题?</strong></summary>
|
|
666
|
+
|
|
667
|
+
查看完整 Q&A:[POST_DRAFT.md](POST_DRAFT.md) 包含 11 个常见问题的详细解答。
|
|
668
|
+
</details>
|
|
669
|
+
|
|
670
|
+
---
|
|
671
|
+
|
|
596
672
|
## 📄 许可证
|
|
597
673
|
|
|
598
674
|
本项目采用 [MIT License](LICENSE) 开源协议。
|
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 { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.
|
|
4
|
+
import { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.B-YN9p9d.mjs';
|
|
5
5
|
import 'inquirer';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'pathe';
|
|
@@ -13,7 +13,7 @@ import 'smol-toml';
|
|
|
13
13
|
import 'node:child_process';
|
|
14
14
|
import 'node:util';
|
|
15
15
|
|
|
16
|
-
const version = "1.3.
|
|
16
|
+
const version = "1.3.4";
|
|
17
17
|
|
|
18
18
|
function customizeHelp(sections) {
|
|
19
19
|
sections.unshift({
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as changeLanguage, q as checkForUpdates, t as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, o as getCurrentVersion, p as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, 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, q as checkForUpdates, t as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, o as getCurrentVersion, p as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, k as installWorkflows, r as readCcgConfig, s as showMainMenu, n as uninstallAceTool, m as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.B-YN9p9d.mjs';
|
|
2
2
|
import 'ansis';
|
|
3
3
|
import 'inquirer';
|
|
4
4
|
import 'node:os';
|
|
@@ -331,7 +331,7 @@ const en = {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
async function initI18n(lang = "
|
|
334
|
+
async function initI18n(lang = "zh-CN") {
|
|
335
335
|
if (!i18n.isInitialized) {
|
|
336
336
|
await i18n.init({
|
|
337
337
|
lng: lang,
|
|
@@ -381,7 +381,7 @@ async function writeCcgConfig(config) {
|
|
|
381
381
|
function createDefaultConfig(options) {
|
|
382
382
|
return {
|
|
383
383
|
general: {
|
|
384
|
-
version: "1.3.
|
|
384
|
+
version: "1.3.4",
|
|
385
385
|
language: options.language,
|
|
386
386
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
387
387
|
},
|
|
@@ -1161,7 +1161,12 @@ async function init(options = {}) {
|
|
|
1161
1161
|
console.log(ansis.gray(` 4. ${i18n.t("init:windowsStep4")}`));
|
|
1162
1162
|
console.log();
|
|
1163
1163
|
console.log(ansis.cyan(` ${i18n.t("init:orUsePowerShell")}`));
|
|
1164
|
-
|
|
1164
|
+
const windowsPath = result.binPath.replace(/\//g, "\\");
|
|
1165
|
+
console.log(ansis.gray(` $currentPath = [System.Environment]::GetEnvironmentVariable('PATH', 'User')`));
|
|
1166
|
+
console.log(ansis.gray(` $newPath = '${windowsPath}'`));
|
|
1167
|
+
console.log(ansis.gray(` if ($currentPath -notlike "*$newPath*") {`));
|
|
1168
|
+
console.log(ansis.gray(` [System.Environment]::SetEnvironmentVariable('PATH', "$currentPath;$newPath", 'User')`));
|
|
1169
|
+
console.log(ansis.gray(` }`));
|
|
1165
1170
|
} else {
|
|
1166
1171
|
console.log(ansis.yellow(` \u26A0 ${i18n.t("init:pathWarning")}`));
|
|
1167
1172
|
if (!options.skipPrompt) {
|