Files
ccg-workflow/package.json
T
li 92f19d0f50 fix: 修复 backend/frontend 单独调用语法 (v1.7.2)
**问题**:
1. backend/frontend 的单独调用示例缺少必要参数
2. 硬编码角色提示词内容,而不是使用 ROLE_FILE 引用
3. 阶段 2/3/5 的调用示例不完整

**修复**:
1. 添加 `run_in_background: false` 参数(单独调用不需要后台)
2. 添加 `timeout: 3600000` 参数(1小时)
3. 改用 ROLE_FILE 引用角色提示词
4. 统一使用 Bash 工具调用格式
5. 为阶段 2/3/5 补充完整的调用示例

**修改内容**:
- backend.md:阶段 2(构思)、阶段 3(计划)、阶段 5(优化)
- frontend.md:阶段 2(构思)、阶段 3(计划)、阶段 5(优化)

**调用示例**:
```javascript
Bash({
  command: "~/.claude/bin/codeagent-wrapper --backend codex - \"$PWD\" <<'EOF_CODEX'
ROLE_FILE: ~/.claude/.ccg/prompts/codex/analyzer.md
<TASK>...</TASK>
OUTPUT: ...
EOF_CODEX",
  run_in_background: false,
  timeout: 3600000,
  description: "Codex 后端分析"
})
```

**涉及文件**:
- templates/commands/backend.md (3处修复)
- templates/commands/frontend.md (3处修复)
- skills-v2/CLAUDE.md
- package.json (v1.7.1 → v1.7.2)
2026-01-08 17:07:06 +08:00

63 lines
1.3 KiB
JSON

{
"name": "ccg-workflow",
"version": "1.7.2",
"description": "Claude-Codex-Gemini 多模型协作系统 - 智能路由多模型开发工作流",
"type": "module",
"packageManager": "pnpm@10.17.1",
"author": {
"name": "CCG Contributors"
},
"license": "MIT",
"keywords": [
"claude",
"codex",
"gemini",
"multi-model",
"ai",
"collaboration",
"cli",
"workflow"
],
"bin": {
"ccg": "bin/ccg.mjs"
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"bin",
"dist",
"templates"
],
"scripts": {
"dev": "tsx src/cli.ts",
"build": "unbuild",
"start": "node bin/ccg.mjs",
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"dependencies": {
"ansis": "^4.1.0",
"cac": "^6.7.14",
"fs-extra": "^11.3.2",
"i18next": "^25.5.2",
"i18next-fs-backend": "^2.6.0",
"inquirer": "^12.9.6",
"ora": "^9.0.0",
"pathe": "^2.0.3",
"smol-toml": "^1.4.2"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
"@types/fs-extra": "^11.0.4",
"@types/inquirer": "^9.0.9",
"@types/node": "^22.0.0",
"eslint": "^9.36.0",
"tsx": "^4.20.5",
"typescript": "^5.9.2",
"unbuild": "^3.6.1"
}
}