Files
ccg-workflow/package.json
T
Claude 68347e4a82 fix: handle MCP 'skip' provider in processTemplate to prevent invalid tool injection
When users select 'skip' (no MCP) during installation, the
injectConfigVariables function previously fell through to the else
branch, injecting non-existent `mcp__ace-tool__search_context` into
all 14 templates and 2 agent definitions.

This adds a dedicated 'skip' branch with a 4-stage replacement
strategy:
1. Remove MCP tool from agent frontmatter tools declarations
2. Replace code blocks containing MCP invocations with Glob+Grep
   fallback guidance
3. Replace inline backtick references with `Glob + Grep`(MCP 未配置)
4. Safety net for any remaining bare references

Also introduces vitest and adds 29 test cases covering skip,
contextweaver, ace-tool providers, plus integration tests against
all real templates.

https://claude.ai/code/session_01HvwiUv489c9WeoyhBB9yTq
2026-02-28 15:28:48 +00:00

101 lines
2.7 KiB
JSON

{
"name": "ccg-workflow",
"version": "1.7.62",
"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/commands/analyze.md",
"templates/commands/backend.md",
"templates/commands/clean-branches.md",
"templates/commands/commit.md",
"templates/commands/debug.md",
"templates/commands/enhance.md",
"templates/commands/execute.md",
"templates/commands/feat.md",
"templates/commands/frontend.md",
"templates/commands/init.md",
"templates/commands/optimize.md",
"templates/commands/plan.md",
"templates/commands/review.md",
"templates/commands/rollback.md",
"templates/commands/test.md",
"templates/commands/workflow.md",
"templates/commands/worktree.md",
"templates/commands/spec-init.md",
"templates/commands/spec-research.md",
"templates/commands/spec-plan.md",
"templates/commands/spec-impl.md",
"templates/commands/spec-review.md",
"templates/commands/team-research.md",
"templates/commands/team-plan.md",
"templates/commands/team-exec.md",
"templates/commands/team-review.md",
"templates/commands/agents/",
"templates/prompts/codex/",
"templates/prompts/gemini/analyzer.md",
"templates/prompts/gemini/architect.md",
"templates/prompts/gemini/debugger.md",
"templates/prompts/gemini/frontend.md",
"templates/prompts/gemini/optimizer.md",
"templates/prompts/gemini/reviewer.md",
"templates/prompts/gemini/tester.md",
"templates/prompts/claude/",
"templates/output-styles/"
],
"scripts": {
"dev": "tsx src/cli.ts",
"build": "unbuild",
"start": "node bin/ccg.mjs",
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm build",
"test": "vitest run",
"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",
"vitest": "^3.1.1"
}
}