ccg-workflow 1.3.2 → 1.3.3

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
@@ -8,7 +8,7 @@
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
9
9
  [![Claude Code](https://img.shields.io/badge/Claude%20Code-Compatible-green.svg)](https://claude.ai/code)
10
10
 
11
- > **最新版本 v1.3.1**:命令模板修正 - 澄清 auggie 也支持 Prompt 增强(需配置)
11
+ > **最新版本 v1.3.2**:修复 MCP 配置缺失问题(关键 bug 修复)
12
12
 
13
13
  </div>
14
14
 
@@ -16,11 +16,24 @@
16
16
 
17
17
  ## 🎉 最新更新
18
18
 
19
- ### v1.3.1 - 命令模板修正
19
+ ### v1.3.2 - MCP 配置缺失修复 🐛
20
+ - ✅ **关键修复**:安装后 `~/.ccg/config.toml` 现在包含完整的 `[mcp]` 配置部分
21
+ - ✅ **类型安全**:添加 `CcgConfig.mcp` TypeScript 接口定义
22
+ - ✅ **默认配置**:`createDefaultConfig` 自动生成完整 MCP 配置
23
+ - `provider = "ace-tool"`(默认)
24
+ - `setup_url` 指向配置教程
25
+ - `tools.*` 工具映射(code_search + prompt_enhance)
26
+ - `query_param_*` 参数名映射
27
+ - ✅ **配置版本**:配置文件版本号从 1.0.0 升级到 1.3.2
28
+
29
+ <details>
30
+ <summary>v1.3.1 - 命令模板修正</summary>
31
+
20
32
  - ✅ **说明修正**:澄清 auggie 也支持 Prompt 增强功能(需按教程配置)
21
33
  - ✅ **模板更新**:修正 `/ccg:dev` 和 `/ccg:enhance` 命令的提示信息
22
34
  - ✅ **配置说明**:`prompt_enhance_auggie = ""` 改为"留空表示未配置,按教程配置后填入工具名"
23
35
  - ✅ **用户体验**:提供配置教程链接,不再误导用户认为 auggie 不支持 Prompt 增强
36
+ </details>
24
37
 
25
38
  ### v1.3.0 - MCP 动态选择系统 ⭐
26
39
  - ✅ **多 MCP 支持**:安装时可选 ace-tool(开箱即用Prompt增强+代码检索)或 auggie(官方原版,代码检索+可选Prompt增强)
@@ -593,6 +606,65 @@ EOF
593
606
 
594
607
  ---
595
608
 
609
+ ## 常见问题
610
+
611
+ <details>
612
+ <summary><strong>Q: codex 总是思考太久超时该怎么办?</strong></summary>
613
+
614
+ **问题描述**:在使用 `/ccg:dev` 等命令时,Codex 后端思考时间过长,导致超时。
615
+
616
+ **解决方案**:
617
+ - 参考社区讨论:[linux.do - Codex 超时问题解决方案](https://linux.do/t/topic/1405588/256?u=feng_li)
618
+
619
+ **常见优化方法**:
620
+ - 减少任务复杂度,拆分为更小的子任务
621
+ - 调整 Codex CLI 的超时配置
622
+ - 使用 `--backend gemini` 切换到 Gemini 后端测试
623
+ </details>
624
+
625
+ <details>
626
+ <summary><strong>Q: 如何更新到最新版本?</strong></summary>
627
+
628
+ **一键更新,无需卸载重装**:
629
+ ```bash
630
+ npx ccg-workflow
631
+ # 选择 "更新工作流"
632
+ ```
633
+
634
+ 更新会自动:
635
+ - 检测 npm 最新版本
636
+ - 增量更新命令模板和提示词
637
+ - 保留用户配置和 MCP 设置
638
+ </details>
639
+
640
+ <details>
641
+ <summary><strong>Q: MCP 动态选择系统是什么?</strong></summary>
642
+
643
+ **v1.3.0 核心特性**:安装时可以选择:
644
+ - **ace-tool**(第三方):开箱即用,包含 Prompt 增强 + 代码检索
645
+ - **auggie**(官方):代码检索 + 可选 Prompt 增强(需配置)
646
+
647
+ 命令模板会根据配置自动适配对应的 MCP 工具调用。
648
+ </details>
649
+
650
+ <details>
651
+ <summary><strong>Q: codeagent-wrapper 是什么?</strong></summary>
652
+
653
+ 来自 [cexll/myclaude](https://github.com/cexll/myclaude) 的 Go 工具,封装了多 CLI 调用:
654
+ - 支持 `--backend codex/gemini/claude` 切换
655
+ - 会话管理(SESSION_ID)
656
+ - ROLE_FILE 动态注入
657
+ - 自动安装到 `~/.claude/bin/`
658
+ </details>
659
+
660
+ <details>
661
+ <summary><strong>更多问题?</strong></summary>
662
+
663
+ 查看完整 Q&A:[POST_DRAFT.md](POST_DRAFT.md) 包含 11 个常见问题的详细解答。
664
+ </details>
665
+
666
+ ---
667
+
596
668
  ## 📄 许可证
597
669
 
598
670
  本项目采用 [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.wnd3y05Z.mjs';
4
+ import { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.BOPoow8k.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.2";
16
+ const version = "1.3.3";
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.wnd3y05Z.mjs';
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.BOPoow8k.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'node:os';
@@ -381,7 +381,7 @@ async function writeCcgConfig(config) {
381
381
  function createDefaultConfig(options) {
382
382
  return {
383
383
  general: {
384
- version: "1.3.2",
384
+ version: "1.3.3",
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
- console.log(ansis.gray(` [System.Environment]::SetEnvironmentVariable('PATH', "$env:PATH;${result.binPath.replace(/\//g, "\\")}", 'User')`));
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",