@ia-ccun/code-agent-cli 0.0.3 → 0.0.5
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 +41 -6
- package/config/agent/models.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -63,24 +63,59 @@ aicode-cli -p "你的指令"
|
|
|
63
63
|
"openai": {
|
|
64
64
|
"name": "OpenAI",
|
|
65
65
|
"baseUrl": "https://api.openai.com/v1",
|
|
66
|
-
"
|
|
66
|
+
"api": "openai-completions",
|
|
67
|
+
"apiKey": "YOUR_API_KEY_HERE",
|
|
67
68
|
"models": [
|
|
68
|
-
{
|
|
69
|
-
|
|
69
|
+
{
|
|
70
|
+
"id": "gpt-4o",
|
|
71
|
+
"name": "GPT-4o",
|
|
72
|
+
"contextWindow": 128000,
|
|
73
|
+
"maxTokens": 16384,
|
|
74
|
+
"reasoning": false,
|
|
75
|
+
"cost": { "input": 2.5, "output": 10 }
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "gpt-4o-mini",
|
|
79
|
+
"name": "GPT-4o Mini",
|
|
80
|
+
"contextWindow": 128000,
|
|
81
|
+
"maxTokens": 16384,
|
|
82
|
+
"reasoning": false,
|
|
83
|
+
"cost": { "input": 0.075, "output": 0.3 }
|
|
84
|
+
}
|
|
70
85
|
]
|
|
71
86
|
},
|
|
72
87
|
"anthropic": {
|
|
73
88
|
"name": "Anthropic",
|
|
74
89
|
"baseUrl": "https://api.anthropic.com",
|
|
75
|
-
"
|
|
90
|
+
"api": "anthropic-messages",
|
|
91
|
+
"apiKey": "YOUR_API_KEY_HERE",
|
|
76
92
|
"models": [
|
|
77
|
-
{
|
|
93
|
+
{
|
|
94
|
+
"id": "claude-sonnet-4-20250514",
|
|
95
|
+
"name": "Claude Sonnet 4",
|
|
96
|
+
"contextWindow": 200000,
|
|
97
|
+
"maxTokens": 8192,
|
|
98
|
+
"reasoning": true,
|
|
99
|
+
"cost": { "input": 3, "output": 15 }
|
|
100
|
+
}
|
|
78
101
|
]
|
|
79
|
-
}
|
|
102
|
+
}
|
|
80
103
|
}
|
|
81
104
|
}
|
|
82
105
|
```
|
|
83
106
|
|
|
107
|
+
**字段说明:**
|
|
108
|
+
| 字段 | 说明 |
|
|
109
|
+
|------|------|
|
|
110
|
+
| `api` | API 类型:`openai-completions` 或 `anthropic-messages` |
|
|
111
|
+
| `baseUrl` | API 端点地址 |
|
|
112
|
+
| `apiKey` | API 密钥 |
|
|
113
|
+
| `models[].id` | 模型 ID |
|
|
114
|
+
| `models[].contextWindow` | 上下文窗口大小 |
|
|
115
|
+
| `models[].maxTokens` | 最大输出 tokens |
|
|
116
|
+
| `models[].reasoning` | 是否为推理模型 |
|
|
117
|
+
| `models[].cost` | 价格(美元/百万 tokens) |
|
|
118
|
+
|
|
84
119
|
### 环境变量
|
|
85
120
|
|
|
86
121
|
| 变量 | 说明 |
|
package/config/agent/models.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ia-ccun/code-agent-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "AI Coding Agent CLI - 基于OpenClaw🦞底层Agent原理实现的的编码智能体(供学习使用)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepublishOnly": "npm run clean && npm run build",
|
|
30
30
|
"postinstall": "node scripts/postinstall.js",
|
|
31
31
|
"test": "echo \"Tests skipped\" && exit 0",
|
|
32
|
-
"release": "npm version patch
|
|
32
|
+
"release": "npm version patch",
|
|
33
33
|
"webui:build": "cd webui/server && npm run build",
|
|
34
34
|
"webui:dev": "cd webui/server && npm run dev",
|
|
35
35
|
"webui": "npm run webui:build && node webui/server/dist/index.js"
|