mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
docs: 优化自定义 CLI 注册说明
- 明确通过 Dashboard 界面注册 - 简化配置说明为表格形式 - 强调注册一次永久语义调用
This commit is contained in:
26
README.md
26
README.md
@@ -185,23 +185,19 @@ User: "Use Gemini to plan the refactoring, then Codex to implement it"
|
|||||||
|
|
||||||
### Custom CLI Registration
|
### Custom CLI Registration
|
||||||
|
|
||||||
Register **any API as a custom CLI** via Dashboard API Settings:
|
Register **any API as a custom CLI** via Dashboard interface:
|
||||||
|
|
||||||
```json
|
```bash
|
||||||
// Example: Register "deepseek" as custom CLI
|
ccw view # Open Dashboard → Status → API Settings → Add Custom CLI
|
||||||
{
|
|
||||||
"tools": {
|
|
||||||
"deepseek": {
|
|
||||||
"enabled": true,
|
|
||||||
"type": "api-endpoint",
|
|
||||||
"endpoint": "https://api.deepseek.com/v1/chat",
|
|
||||||
"apiKey": "your-api-key"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
After registration, use it semantically:
|
| Field | Example |
|
||||||
|
|-------|---------|
|
||||||
|
| **Name** | `deepseek` |
|
||||||
|
| **Endpoint** | `https://api.deepseek.com/v1/chat` |
|
||||||
|
| **API Key** | `your-api-key` |
|
||||||
|
|
||||||
|
After registration, use it semantically like built-in CLIs:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
User: "Use DeepSeek to analyze this algorithm complexity"
|
User: "Use DeepSeek to analyze this algorithm complexity"
|
||||||
@@ -211,7 +207,7 @@ User: "Let DeepSeek and Gemini compare their analysis results"
|
|||||||
→ System auto-calls: deepseek + gemini in parallel
|
→ System auto-calls: deepseek + gemini in parallel
|
||||||
```
|
```
|
||||||
|
|
||||||
> ⚙️ **Dashboard**: `ccw view` → Status → API Settings to manage custom CLIs.
|
> ⚙️ Register once, invoke semantically forever - no code changes needed.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
26
README_CN.md
26
README_CN.md
@@ -185,23 +185,19 @@ qwen --version
|
|||||||
|
|
||||||
### 自定义 CLI 注册
|
### 自定义 CLI 注册
|
||||||
|
|
||||||
通过 Dashboard API Settings **注册任意 API 为自定义 CLI**:
|
通过 Dashboard 界面 **注册任意 API 为自定义 CLI**:
|
||||||
|
|
||||||
```json
|
```bash
|
||||||
// 示例:注册 "deepseek" 为自定义 CLI
|
ccw view # 打开 Dashboard → Status → API Settings → 添加自定义 CLI
|
||||||
{
|
|
||||||
"tools": {
|
|
||||||
"deepseek": {
|
|
||||||
"enabled": true,
|
|
||||||
"type": "api-endpoint",
|
|
||||||
"endpoint": "https://api.deepseek.com/v1/chat",
|
|
||||||
"apiKey": "your-api-key"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
注册后即可语义调用:
|
| 字段 | 示例 |
|
||||||
|
|------|------|
|
||||||
|
| **名称** | `deepseek` |
|
||||||
|
| **端点** | `https://api.deepseek.com/v1/chat` |
|
||||||
|
| **API Key** | `your-api-key` |
|
||||||
|
|
||||||
|
注册后即可像内置 CLI 一样语义调用:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
用户: "使用 DeepSeek 分析这个算法复杂度"
|
用户: "使用 DeepSeek 分析这个算法复杂度"
|
||||||
@@ -211,7 +207,7 @@ qwen --version
|
|||||||
→ 系统自动调用: deepseek + gemini 并行执行
|
→ 系统自动调用: deepseek + gemini 并行执行
|
||||||
```
|
```
|
||||||
|
|
||||||
> ⚙️ **Dashboard 配置**: `ccw view` → Status → API Settings 管理自定义 CLI。
|
> ⚙️ 注册一次,永久语义调用 - 无需修改代码。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user