@ia-ccun/code-agent-cli 0.0.58-beta.1 → 0.0.58

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.
@@ -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.1",
3
+ "version": "0.0.58",
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": "echo \"Tests skipped\" && exit 0",
32
+ "test": "node --test tests/*.test.ts",
33
33
  "release": "npm version patch",
34
34
  "prepare": "husky"
35
35
  },
@@ -294,6 +294,9 @@ const FORCE_OVERWRITE_LIST = [
294
294
  "APPEND_SYSTEM.md",
295
295
  "SYSTEM.md",
296
296
  "help.md",
297
+ // 强制覆盖 settings.json:升级后必须拿到新的 packages / extensions / defaultProvider 配置。
298
+ // 覆盖前会把用户旧配置备份成 settings.json.bak,避免丢掉本地自定义(packages 等)。
299
+ "settings.json",
297
300
  "extensions/*.ts",
298
301
  "prompts/*.md",
299
302
  "skills/*/SKILL.md",
@@ -379,6 +382,17 @@ function forceOverwriteList(relativePaths) {
379
382
  if (!existsSync(parentDir)) {
380
383
  mkdirSync(parentDir, { recursive: true });
381
384
  }
385
+ // settings.json 里通常有用户自己的 packages / extensions / memory 配置,覆盖前先备份。
386
+ if (relativePath === "settings.json" && existsSync(destPath)) {
387
+ try {
388
+ copyFileSync(destPath, `${destPath}.bak`);
389
+ console.log(
390
+ `✓ Backed up existing settings.json -> settings.json.bak`,
391
+ );
392
+ } catch (e) {
393
+ console.log(`⚠ Could not back up settings.json: ${e.message}`);
394
+ }
395
+ }
382
396
  copyFileSync(srcPath, destPath);
383
397
  console.log(`✓ Force overwritten: ${relativePath}`);
384
398
  }
@@ -1 +1 @@
1
- 43741
1
+ 30589
@@ -1 +1 @@
1
- /Users/jianjiang/.aicode-regression-43719-6291000
1
+ /Users/jianjiang/.aicode-regression-30567-0875000