@ia-ccun/code-agent-cli 0.0.57-beta.3 → 0.0.58-beta.1
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/bin/cli.js +0 -4
- package/config/agent/models.json +27 -1
- package/package.json +5 -5
- package/scripts/postinstall.js +230 -155
- package/scripts/regression/cases/01-version-and-deps.sh +4 -6
- package/scripts/regression/cases/03-rpc-protocol.sh +28 -11
- package/scripts/regression/cases/04-prompt-stream.sh +23 -12
- package/scripts/regression/cases/07-pi-new-features.sh +2 -2
- package/scripts/regression/results/.last_pid +1 -1
- package/scripts/regression/results/.last_workdir +1 -1
- package/scripts/regression/results/02-extension-loading.log +14 -15
- package/scripts/regression/results/03-prompt-stream.log +30 -12
- package/scripts/regression/results/03-rpc-protocol.log +59 -21
- package/scripts/regression/results/04-slash-commands-and-skills.log +11 -12
- package/scripts/regression/results/05-tool-execution.log +5 -5
- package/scripts/regression/results/06-pi-new-features.log +24 -45
- package/scripts/regression/run-all.sh +26 -32
- package/config/agent/extensions/aicode-llm-provider.ts +0 -168
package/bin/cli.js
CHANGED
|
@@ -224,16 +224,12 @@ const piAgentPath = fileURLToPath(piAgentPathUrl); // 解码中文路径
|
|
|
224
224
|
const versionCachePath = getVersionCachePath();
|
|
225
225
|
|
|
226
226
|
// 设置环境变量
|
|
227
|
-
/** @type {Record<string, string | undefined>} */
|
|
228
227
|
const env = {
|
|
229
228
|
...process.env,
|
|
230
229
|
AICODE_CLI_CONFIG_DIR: config.configDir,
|
|
231
230
|
AICODE_CLI_NAME: config.name,
|
|
232
231
|
AICODE_CLI_VERSION: localVersion || "",
|
|
233
232
|
AICODE_CLI_VERSION_CACHE: versionCachePath,
|
|
234
|
-
// pi 的 ${VAR} 占位符解析器读 process.env.VERSION,
|
|
235
|
-
// 扩展里的 headers.User-Agent="${VERSION}" 依赖它(缺失会直接抛错)
|
|
236
|
-
VERSION: `aicode-cli/${localVersion || "0.0.0"}`,
|
|
237
233
|
PI_SKIP_VERSION_CHECK: "1",
|
|
238
234
|
PI_OFFLINE: "1", // 禁用包更新检查
|
|
239
235
|
};
|
package/config/agent/models.json
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"providers": {
|
|
2
|
+
"providers": {
|
|
3
|
+
"aicode": {
|
|
4
|
+
"name": "aicode llm",
|
|
5
|
+
"baseUrl": "https://ai-llm.cc.com/v1",
|
|
6
|
+
"api": "openai-completions",
|
|
7
|
+
"apiKey": "你自己的APIKEY sk-xxxxxxxxxxxxxxxxxx",
|
|
8
|
+
"headers": {
|
|
9
|
+
"User-Agent": "${VERSION}"
|
|
10
|
+
},
|
|
11
|
+
"models": [
|
|
12
|
+
{
|
|
13
|
+
"id": "qwen3.6-35b-a3b",
|
|
14
|
+
"name": "qwen3.6",
|
|
15
|
+
"contextWindow": 128000,
|
|
16
|
+
"maxTokens": 100000,
|
|
17
|
+
"reasoning": false,
|
|
18
|
+
"input": ["text"],
|
|
19
|
+
"cost": {
|
|
20
|
+
"input": 5,
|
|
21
|
+
"output": 5,
|
|
22
|
+
"cacheRead": 0,
|
|
23
|
+
"cacheWrite": 0
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
3
29
|
}
|
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.58-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"prepare": "husky"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@earendil-works/pi-agent-core": "
|
|
38
|
-
"@earendil-works/pi-ai": "
|
|
39
|
-
"@earendil-works/pi-coding-agent": "
|
|
40
|
-
"@earendil-works/pi-tui": "
|
|
37
|
+
"@earendil-works/pi-agent-core": "1.5.0",
|
|
38
|
+
"@earendil-works/pi-ai": "1.5.0",
|
|
39
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
40
|
+
"@earendil-works/pi-tui": "1.5.0"
|
|
41
41
|
},
|
|
42
42
|
"overrides": {
|
|
43
43
|
"glob": "^11.0.0",
|