ccg-workflow 1.3.0 → 1.3.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/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.0**:MCP 动态选择系统 - 支持 ace-tool / auggie MCP 方案
11
+ > **最新版本 v1.3.1**:命令模板修正 - 澄清 auggie 也支持 Prompt 增强(需配置)
12
12
 
13
13
  </div>
14
14
 
@@ -16,12 +16,19 @@
16
16
 
17
17
  ## 🎉 最新更新
18
18
 
19
+ ### v1.3.1 - 命令模板修正
20
+ - ✅ **说明修正**:澄清 auggie 也支持 Prompt 增强功能(需按教程配置)
21
+ - ✅ **模板更新**:修正 `/ccg:dev` 和 `/ccg:enhance` 命令的提示信息
22
+ - ✅ **配置说明**:`prompt_enhance_auggie = ""` 改为"留空表示未配置,按教程配置后填入工具名"
23
+ - ✅ **用户体验**:提供配置教程链接,不再误导用户认为 auggie 不支持 Prompt 增强
24
+
19
25
  ### v1.3.0 - MCP 动态选择系统 ⭐
20
- - ✅ **多 MCP 支持**:安装时可选 ace-toolPrompt增强+代码检索)或 auggie(仅代码检索)
21
- - ✅ **交互式选择**:友好的 MCP 选择界面,对比功能差异
22
- - ✅ **配置驱动**:生成 `~/.ccg/config.toml`,命令模板自动适配
23
- - ✅ **简洁高效**:命令模板减少 50% 提示词,引用共享配置文档
24
- - ✅ **完全兼容**:11个命令模板支持动态 MCP 工具调用
26
+ - ✅ **多 MCP 支持**:安装时可选 ace-tool(开箱即用Prompt增强+代码检索)或 auggie(官方原版,代码检索+可选Prompt增强)
27
+ - ✅ **交互式选择**:友好的 MCP 选择界面,对比功能差异,支持跳过安装
28
+ - ✅ **配置驱动**:生成 `~/.ccg/config.toml`,记录工具映射和参数名
29
+ - ✅ **自包含模板**:命令模板减少 50% 提示词长度,直接读取配置无需外部文档
30
+ - ✅ **完全兼容**:12个命令模板(dev, code, frontend, backend, review, analyze, enhance 等)支持动态 MCP 工具调用
31
+ - ✅ **灵活配置**:auggie 可通过配置支持 Prompt 增强(参考 [配置教程](https://linux.do/t/topic/1280612))
25
32
 
26
33
  ### v1.2.3 - 安装体验优化
27
34
  - ✅ **二进制验证**:安装后自动验证 `codeagent-wrapper` 可用性
@@ -93,7 +100,7 @@
93
100
  | **Claude Code 主导** | Claude Code CLI 作为编排者,Codex/Gemini/Claude 子进程协作 |
94
101
  | **三 CLI 协作** | 同时调用 Codex CLI + Gemini CLI + Claude CLI 进行交叉验证 |
95
102
  | **智能路由** | 前端任务 → Gemini,后端任务 → Codex,全栈整合 → Claude |
96
- | **Prompt 增强** | 支持 ace-tool / auggie MCP,可选 Prompt 自动优化 |
103
+ | **MCP 动态选择** | 安装时可选 ace-tool / auggie,命令模板自动适配,支持 Prompt 增强(ace-tool)或纯代码检索(auggie) |
97
104
  | **6阶段工作流** | Prompt增强 → 上下文检索 → 三 CLI 分析 → 原型生成 → 代码实施 → 审计交付 |
98
105
  | **18个专家提示词** | Codex 6个 + Gemini 6个 + Claude 6个角色 |
99
106
  | **交互式安装** | npx 一键运行,图形化配置界面 |
@@ -155,10 +162,10 @@ pnpm start
155
162
 
156
163
  选择 **"初始化 CCG 配置"** 进行首次安装,会引导你:
157
164
  1. 选择语言(中文/English)
158
- 2. **选择 MCP 代码检索工具**:
159
- - **ace-tool**(推荐):内置 Prompt 增强 + 代码检索
160
- - **auggie**(官方原版):仅代码检索,需查看[配置教程](https://linux.do/t/topic/1280612)
161
- - **跳过**:稍后手动配置
165
+ 2. **选择 MCP 代码检索工具**:✨ NEW
166
+ - **[1] ace-tool**(推荐新手):开箱即用,自动配置 Prompt 增强 + 代码检索
167
+ - **[2] auggie**(官方原版):代码检索 + 可选 Prompt 增强(需额外配置,[查看教程](https://linux.do/t/topic/1280612)
168
+ - **[0] 跳过**:稍后手动配置
162
169
  3. 配置前端模型(Gemini/Codex/Claude)
163
170
  4. 配置后端模型(Codex/Gemini/Claude)
164
171
  5. 选择协作模式(并行/智能/顺序)
@@ -339,9 +346,24 @@ pnpm start
339
346
 
340
347
  ```toml
341
348
  [general]
342
- version = "1.2.3"
349
+ version = "1.3.1"
343
350
  language = "zh-CN"
344
351
 
352
+ [mcp]
353
+ provider = "ace-tool" # ace-tool | auggie | none
354
+ setup_url = "https://linux.do/t/topic/1280612"
355
+
356
+ [mcp.tools]
357
+ # 工具名称映射(配置驱动,命令模板自动适配)
358
+ code_search_ace = "mcp__ace-tool__search_context"
359
+ code_search_auggie = "mcp__auggie-mcp__codebase-retrieval"
360
+ prompt_enhance_ace = "mcp__ace-tool__enhance_prompt"
361
+ prompt_enhance_auggie = "" # 留空表示未配置,按教程配置后填入工具名
362
+
363
+ # 参数名映射
364
+ query_param_ace = "query"
365
+ query_param_auggie = "information_request"
366
+
345
367
  [routing]
346
368
  mode = "smart" # smart | parallel | sequential
347
369
 
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.CDbjzCK1.mjs';
4
+ import { r as readCcgConfig, b as initI18n, s as showMainMenu, i as init, a as i18n } from './shared/ccg-workflow.wnd3y05Z.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.0";
16
+ const version = "1.3.2";
17
17
 
18
18
  function customizeHelp(sections) {
19
19
  sections.unshift({
package/dist/index.d.mts CHANGED
@@ -47,6 +47,18 @@ interface CcgConfig {
47
47
  prompts: string;
48
48
  backup: string;
49
49
  };
50
+ mcp: {
51
+ provider: string;
52
+ setup_url: string;
53
+ tools: {
54
+ code_search_ace: string;
55
+ code_search_auggie: string;
56
+ prompt_enhance_ace: string;
57
+ prompt_enhance_auggie: string;
58
+ query_param_ace: string;
59
+ query_param_auggie: string;
60
+ };
61
+ };
50
62
  }
51
63
  interface WorkflowConfig {
52
64
  id: string;
package/dist/index.d.ts CHANGED
@@ -47,6 +47,18 @@ interface CcgConfig {
47
47
  prompts: string;
48
48
  backup: string;
49
49
  };
50
+ mcp: {
51
+ provider: string;
52
+ setup_url: string;
53
+ tools: {
54
+ code_search_ace: string;
55
+ code_search_auggie: string;
56
+ prompt_enhance_ace: string;
57
+ prompt_enhance_auggie: string;
58
+ query_param_ace: string;
59
+ query_param_auggie: string;
60
+ };
61
+ };
50
62
  }
51
63
  interface WorkflowConfig {
52
64
  id: string;
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.CDbjzCK1.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.wnd3y05Z.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.0.0",
384
+ version: "1.3.2",
385
385
  language: options.language,
386
386
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
387
387
  },
@@ -393,6 +393,18 @@ function createDefaultConfig(options) {
393
393
  commands: join(homedir(), ".claude", "commands", "ccg"),
394
394
  prompts: join(homedir(), ".claude", "prompts", "ccg"),
395
395
  backup: join(CCG_DIR, "backup")
396
+ },
397
+ mcp: {
398
+ provider: "ace-tool",
399
+ setup_url: "https://linux.do/t/topic/284963",
400
+ tools: {
401
+ code_search_ace: "mcp__ace-tool__search_context",
402
+ code_search_auggie: "mcp__auggie-mcp__codebase-retrieval",
403
+ prompt_enhance_ace: "mcp__ace-tool__enhance_prompt",
404
+ prompt_enhance_auggie: "",
405
+ query_param_ace: "query",
406
+ query_param_auggie: "information_request"
407
+ }
396
408
  }
397
409
  };
398
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",