Skip to content

Commit 72d2ae7

Browse files
author
catlog22
committed
fix: 修正 INSTALL_CN.md 外部 AI 工具说明,与 ccw 源码保持一致
- 配置文件路径从不存在的 tool-control.yaml 改为实际的 cli-tools.json - 工具列表从 3 个补全为 5 个(新增 Claude Code、OpenCode) - 修正工具描述、npm 包名和 GitHub 链接 - 配置示例从 YAML 改为 JSON 格式,匹配源码 DEFAULT_TOOLS_CONFIG
1 parent 3b14f98 commit 72d2ae7

1 file changed

Lines changed: 44 additions & 17 deletions

File tree

INSTALL_CN.md

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,45 @@ CCW 使用**基于配置的工具控制系统**,使外部 CLI 工具成为**
8080
-**优雅降级** - 工具不可用时自动回退
8181
-**灵活配置** - 每个项目控制工具可用性
8282

83-
**配置文件**`~/.ccw/workflows/tool-control.yaml`
84-
85-
```yaml
86-
tools:
87-
gemini:
88-
enabled: false # 可选:AI 分析和文档
89-
qwen:
90-
enabled: true # 可选:AI 架构和代码生成
91-
codex:
92-
enabled: true # 可选:AI 开发和实现
83+
**配置文件**`~/.claude/cli-tools.json`
84+
85+
```json
86+
{
87+
"version": "3.4.0",
88+
"tools": {
89+
"gemini": {
90+
"enabled": true,
91+
"primaryModel": "gemini-2.5-pro",
92+
"type": "builtin"
93+
},
94+
"qwen": {
95+
"enabled": true,
96+
"primaryModel": "coder-model",
97+
"type": "builtin"
98+
},
99+
"codex": {
100+
"enabled": true,
101+
"primaryModel": "gpt-5.2",
102+
"type": "builtin"
103+
},
104+
"claude": {
105+
"enabled": true,
106+
"primaryModel": "sonnet",
107+
"type": "builtin"
108+
},
109+
"opencode": {
110+
"enabled": true,
111+
"primaryModel": "opencode/glm-4.7-free",
112+
"type": "builtin"
113+
}
114+
}
115+
}
93116
```
94117

95118
**行为**
96119
- **禁用时**:CCW 自动回退到其他已启用的工具或 Claude 的原生能力
97120
- **启用时**:使用专门工具发挥其特定优势
98-
- **默认**:所有工具禁用 - 仅 Claude 模式开箱即用
121+
- **默认**首次运行时自动检测已安装的工具并同步启用状态
99122

100123
### 可选 CLI 工具(增强功能)
101124

@@ -110,13 +133,17 @@ tools:
110133

111134
#### 外部 AI 工具
112135

113-
`~/.ccw/workflows/tool-control.yaml` 中配置这些工具
136+
CCW 通过 `~/.claude/cli-tools.json` 统一管理以下 CLI 工具,所有工具均可通过 npm 全局安装
114137

115-
| 工具 | 用途 | 安装方式 |
116-
|------|------|----------|
117-
| **Gemini CLI** | AI 分析和文档 | 遵循[官方文档](https://ai.google.dev) - 免费配额,扩展上下文 |
118-
| **Codex CLI** | AI 开发和实现 | 遵循[官方文档](https://github.com/openai/codex) - 自主开发 |
119-
| **Qwen Code** | AI 架构和代码生成 | 遵循[官方文档](https://github.com/QwenLM/qwen-code) - 大上下文窗口 |
138+
| 工具 | npm 包 | 用途 | 安装方式 |
139+
|------|--------|------|----------|
140+
| **Gemini CLI** | `@google/gemini-cli` | Google AI 代码分析和生成 | `npm install -g @google/gemini-cli`<br>[GitHub](https://github.com/google-gemini/gemini-cli) |
141+
| **Qwen Code** | `@qwen-code/qwen-code` | 阿里云 AI 编程助手 | `npm install -g @qwen-code/qwen-code`<br>[GitHub](https://github.com/QwenLM/qwen-code) |
142+
| **Codex CLI** | `@openai/codex` | OpenAI 代码生成和理解 | `npm install -g @openai/codex`<br>[GitHub](https://github.com/openai/codex) |
143+
| **Claude Code** | `@anthropic-ai/claude-code` | Anthropic AI 助手 | `npm install -g @anthropic-ai/claude-code`<br>[GitHub](https://github.com/anthropics/claude-code) |
144+
| **OpenCode** | `opencode` | 开源多模型 AI 编程代理 | `npm install -g opencode`<br>[官网](https://opencode.ai) \| [GitHub](https://github.com/sst/opencode) |
145+
146+
> **提示**:也可在 CCW Dashboard 的 CLI Manager 视图中直接管理工具的安装、卸载和启用状态。
120147
121148
### 推荐:MCP 工具(增强分析)
122149

0 commit comments

Comments
 (0)