@ia-ccun/code-agent-cli 0.0.9 → 0.0.11
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.
|
@@ -37,7 +37,7 @@ function formatTime(seconds: number): string {
|
|
|
37
37
|
if (seconds < 60) return `${seconds} s`;
|
|
38
38
|
const mins = Math.floor(seconds / 60);
|
|
39
39
|
const secs = seconds % 60;
|
|
40
|
-
return `${mins}m ${secs}s`;
|
|
40
|
+
return `${mins} m ${secs} s`;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function formatTokens(tokens: number): string {
|
package/config/agent/models.json
CHANGED
|
@@ -7,47 +7,17 @@
|
|
|
7
7
|
"apiKey": "YOUR_API_KEY_HERE",
|
|
8
8
|
"models": [
|
|
9
9
|
{
|
|
10
|
-
"id": "gpt
|
|
10
|
+
"id": "gpt",
|
|
11
11
|
"name": "GPT-4o",
|
|
12
12
|
"contextWindow": 128000,
|
|
13
13
|
"maxTokens": 16384,
|
|
14
14
|
"reasoning": false,
|
|
15
15
|
"input": ["text"],
|
|
16
16
|
"cost": {
|
|
17
|
-
"input":
|
|
18
|
-
"output":
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
"id": "gpt-4o-mini",
|
|
23
|
-
"name": "GPT-4o Mini",
|
|
24
|
-
"contextWindow": 128000,
|
|
25
|
-
"maxTokens": 16384,
|
|
26
|
-
"reasoning": false,
|
|
27
|
-
"input": ["text"],
|
|
28
|
-
"cost": {
|
|
29
|
-
"input": 0.075,
|
|
30
|
-
"output": 0.3
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"anthropic": {
|
|
36
|
-
"name": "Anthropic",
|
|
37
|
-
"baseUrl": "https://api.anthropic.com",
|
|
38
|
-
"api": "anthropic-messages",
|
|
39
|
-
"apiKey": "YOUR_API_KEY_HERE",
|
|
40
|
-
"models": [
|
|
41
|
-
{
|
|
42
|
-
"id": "claude-sonnet-4-20250514",
|
|
43
|
-
"name": "Claude Sonnet 4",
|
|
44
|
-
"contextWindow": 200000,
|
|
45
|
-
"maxTokens": 8192,
|
|
46
|
-
"reasoning": true,
|
|
47
|
-
"input": ["text"],
|
|
48
|
-
"cost": {
|
|
49
|
-
"input": 3,
|
|
50
|
-
"output": 15
|
|
17
|
+
"input": 0,
|
|
18
|
+
"output": 0,
|
|
19
|
+
"cacheRead": 0,
|
|
20
|
+
"cacheWrite": 0
|
|
51
21
|
}
|
|
52
22
|
}
|
|
53
23
|
]
|
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.11",
|
|
4
4
|
"description": "AI Coding Agent CLI - 基于OpenClaw🦞底层Agent原理实现的的编码智能体(供学习使用)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
|
-
"bin",
|
|
21
|
+
"bin",
|
|
22
22
|
"scripts",
|
|
23
23
|
"config",
|
|
24
24
|
"config.json"
|
|
@@ -36,10 +36,14 @@
|
|
|
36
36
|
"webui": "npm run webui:build && node webui/server/dist/index.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mariozechner/pi-agent-core": "0.
|
|
40
|
-
"@mariozechner/pi-ai": "0.
|
|
41
|
-
"@mariozechner/pi-coding-agent": "0.
|
|
42
|
-
"@mariozechner/pi-tui": "0.
|
|
39
|
+
"@mariozechner/pi-agent-core": "0.58.1",
|
|
40
|
+
"@mariozechner/pi-ai": "0.58.1",
|
|
41
|
+
"@mariozechner/pi-coding-agent": "0.58.1",
|
|
42
|
+
"@mariozechner/pi-tui": "0.58.1"
|
|
43
|
+
},
|
|
44
|
+
"overrides": {
|
|
45
|
+
"glob": "^11.0.0",
|
|
46
|
+
"node-domexception": "^2.0.0"
|
|
43
47
|
},
|
|
44
48
|
"devDependencies": {
|
|
45
49
|
"@types/node": "^22.10.0",
|