@ia-ccun/code-agent-cli 0.0.58-beta.1 → 0.0.58-beta.2
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/config/agent/APPEND_SYSTEM.md +16 -1
- package/config/agent/SYSTEM.md +6 -4
- package/config/agent/extensions/aicode-banner.ts +38 -1
- package/config/agent/extensions/aicode-llm-log.ts +338 -0
- package/config/agent/extensions/aicode-safety-guard.ts +513 -144
- package/config/agent/prompts/git-commit.md +3 -1
- package/config/agent/settings.json +16 -13
- package/package.json +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 +11 -11
- package/scripts/regression/results/03-prompt-stream.log +16 -26
- package/scripts/regression/results/03-rpc-protocol.log +59 -51
- package/scripts/regression/results/04-slash-commands-and-skills.log +9 -11
- package/scripts/regression/results/05-tool-execution.log +5 -5
- package/scripts/regression/results/06-pi-new-features.log +25 -22
- package/config/agent/extensions/aicode-pets.ts +0 -351
- package/config/agent/models.json +0 -29
|
@@ -11,6 +11,7 @@ description: "分析 Git 改动并生成 conventional commit 信息,支持 emo
|
|
|
11
11
|
- 判断是否需要**拆分为多次提交**
|
|
12
12
|
- 为每个提交生成 **Conventional Commits** 风格的信息(可选 emoji)
|
|
13
13
|
- 按需执行 `git add` 与 `git commit`(默认运行本地 Git 钩子;可 `--no-verify` 跳过)
|
|
14
|
+
- 切记:内网不允许直接提交到master,需要提交到评审区
|
|
14
15
|
|
|
15
16
|
---
|
|
16
17
|
|
|
@@ -26,7 +27,6 @@ description: "分析 Git 改动并生成 conventional commit 信息,支持 emo
|
|
|
26
27
|
|
|
27
28
|
### Options
|
|
28
29
|
|
|
29
|
-
|
|
30
30
|
- `--all`:当暂存区为空时,自动 `git add -A` 将所有改动纳入本次提交。
|
|
31
31
|
- `--amend`:在不创建新提交的情况下**修补**上一次提交(保持提交作者与时间,除非本地 Git 配置另有指定)。
|
|
32
32
|
- `--signoff`:附加 `Signed-off-by` 行(遵循 DCO 流程时使用)。
|
|
@@ -60,9 +60,11 @@ description: "分析 Git 改动并生成 conventional commit 信息,支持 emo
|
|
|
60
60
|
- 生成消息体:要点列表(动机、实现要点、影响范围、BREAKING CHANGE 如有)。
|
|
61
61
|
- 根据 Git 历史提交的主要语言选择提交信息语言。优先检查最近提交主题(例如 `git log -n 50 --pretty=%s`)判断中文/英文;若无法判断,则回退到仓库主要语言或英文。
|
|
62
62
|
- **必须添加 AI 署名块**,用于标识 AI 参与贡献:
|
|
63
|
+
|
|
63
64
|
```
|
|
64
65
|
Co-Authored-By: AICode CLI <noreply@aicode-cli>
|
|
65
66
|
```
|
|
67
|
+
|
|
66
68
|
- 将草稿写入 `.git/COMMIT_EDITMSG`,并用于 `git commit`。
|
|
67
69
|
|
|
68
70
|
5. **执行提交**
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"quietStartup":true,
|
|
3
3
|
"defaultProvider": "aicode",
|
|
4
|
-
"defaultModel": "deepseek-v4-flash",
|
|
4
|
+
"defaultModel": "deepseek-v4.1-flash",
|
|
5
5
|
"theme":"light",
|
|
6
6
|
"extensions":[
|
|
7
|
-
"~/.aicode-cli/agent/extensions/context-monitor.ts",
|
|
8
7
|
"~/.aicode-cli/agent/extensions/context.ts",
|
|
9
8
|
"~/.aicode-cli/agent/extensions/custom-footer.ts",
|
|
10
9
|
"~/.aicode-cli/agent/extensions/custom.ts",
|
|
@@ -14,41 +13,45 @@
|
|
|
14
13
|
"packages":[
|
|
15
14
|
"npm:pi-subagents",
|
|
16
15
|
"npm:pi-rewind",
|
|
16
|
+
"npm:billion-context-pi",
|
|
17
|
+
"npm:pi-hashline-edit-pro",
|
|
17
18
|
"npm:pi-mcp-adapter",
|
|
19
|
+
"npm:pi-lens",
|
|
20
|
+
"npm:@samfp/pi-memory",
|
|
21
|
+
"npm:@nucc/aicode-llm-provider",
|
|
18
22
|
"npm:@juicesharp/rpiv-todo",
|
|
19
|
-
"npm:@juicesharp/rpiv-ask-user-question"
|
|
20
|
-
"npm:@samfp/pi-memory"
|
|
23
|
+
"npm:@juicesharp/rpiv-ask-user-question"
|
|
21
24
|
],
|
|
22
25
|
"memory": {
|
|
23
26
|
"localPath": "~/.aicode-cli/memory",
|
|
24
27
|
"lessonInjection": "selective",
|
|
25
|
-
"consolidationModel": "deepseek-v4-flash"
|
|
28
|
+
"consolidationModel": "deepseek-v4.1-flash"
|
|
26
29
|
},
|
|
27
30
|
"subagents": {
|
|
28
31
|
"agentOverrides": {
|
|
29
32
|
"scout": {
|
|
30
|
-
"model": "deepseek-v4-flash"
|
|
33
|
+
"model": "deepseek-v4.1-flash"
|
|
31
34
|
},
|
|
32
35
|
"researcher": {
|
|
33
|
-
"model": "deepseek-v4-flash"
|
|
36
|
+
"model": "deepseek-v4.1-flash"
|
|
34
37
|
},
|
|
35
38
|
"planner": {
|
|
36
|
-
"model": "deepseek-v4-flash"
|
|
39
|
+
"model": "deepseek-v4.1-flash"
|
|
37
40
|
},
|
|
38
41
|
"worker": {
|
|
39
|
-
"model": "deepseek-v4-flash"
|
|
42
|
+
"model": "deepseek-v4.1-flash"
|
|
40
43
|
},
|
|
41
44
|
"reviewer": {
|
|
42
|
-
"model": "deepseek-v4-flash"
|
|
45
|
+
"model": "deepseek-v4.1-flash"
|
|
43
46
|
},
|
|
44
47
|
"context-builder": {
|
|
45
|
-
"model": "deepseek-v4-flash"
|
|
48
|
+
"model": "deepseek-v4.1-flash"
|
|
46
49
|
},
|
|
47
50
|
"oracle": {
|
|
48
|
-
"model": "deepseek-v4-flash"
|
|
51
|
+
"model": "deepseek-v4.1-flash"
|
|
49
52
|
},
|
|
50
53
|
"delegate": {
|
|
51
|
-
"model": "deepseek-v4-flash"
|
|
54
|
+
"model": "deepseek-v4.1-flash"
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ia-ccun/code-agent-cli",
|
|
3
|
-
"version": "0.0.58-beta.
|
|
3
|
+
"version": "0.0.58-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dev": "tsc --watch",
|
|
30
30
|
"prepublishOnly": "npm run clean && npm run build",
|
|
31
31
|
"postinstall": "node scripts/postinstall.js",
|
|
32
|
-
"test": "
|
|
32
|
+
"test": "node --test tests/*.test.ts",
|
|
33
33
|
"release": "npm version patch",
|
|
34
34
|
"prepare": "husky"
|
|
35
35
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
30589
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/Users/jianjiang/.aicode-regression-
|
|
1
|
+
/Users/jianjiang/.aicode-regression-30567-0875000
|