@hifullmoon/aicommit 2.1.0 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ This file lists notable user-facing changes. Internal refactors, test-only chang
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [2.2.0] - 2026-08-28
8
+
9
+ ### Added
10
+
11
+ - Expanded bundled model presets for OpenAI, DeepSeek, OpenRouter, and Ollama, including current GPT, Claude, Gemini, Qwen, GLM, Kimi, Grok, DeepSeek, and local open-model choices.
12
+
7
13
  ## [2.1.0] - 2026-08-27
8
14
 
9
15
  ### Changed
@@ -147,7 +153,8 @@ This file lists notable user-facing changes. Internal refactors, test-only chang
147
153
  - Added file-level split planning and execution with Git-state concurrency checks.
148
154
  - Added provider presets and user/project configuration boundaries.
149
155
 
150
- [Unreleased]: https://github.com/hi-fullmoon/AICommit/compare/v2.1.0...HEAD
156
+ [Unreleased]: https://github.com/hi-fullmoon/AICommit/compare/v2.2.0...HEAD
157
+ [2.2.0]: https://github.com/hi-fullmoon/AICommit/releases/tag/v2.2.0
151
158
  [2.1.0]: https://github.com/hi-fullmoon/AICommit/releases/tag/v2.1.0
152
159
  [2.0.1]: https://github.com/hi-fullmoon/AICommit/releases/tag/v2.0.1
153
160
  [2.0.0]: https://github.com/hi-fullmoon/AICommit/releases/tag/v2.0.0
package/README.md CHANGED
@@ -217,7 +217,7 @@ Requests retry only transient failures: HTTP 429, recoverable 5xx responses, net
217
217
 
218
218
  ### Built-in provider defaults
219
219
 
220
- Setup uses validated provider defaults shipped with AICommit. For another OpenAI-compatible service, add a named provider directly to the user config; no separate manifest installation or third-party executable code is required.
220
+ Setup uses validated provider defaults shipped with AICommit. OpenAI includes GPT-4o and GPT-5.6 profiles; DeepSeek includes V4 Flash and Pro; OpenRouter includes Auto plus current GPT, Claude, Gemini, DeepSeek, Qwen, GLM, Kimi, and Grok choices; Ollama includes Qwen 3, DeepSeek R1, and GPT-OSS profiles. These are starting points: setup keeps the model IDs editable and existing user-defined profiles take precedence. For another OpenAI-compatible service, add a named provider directly to the user config; no separate manifest installation or third-party executable code is required.
221
221
 
222
222
  ### Saving tokens
223
223
 
@@ -306,13 +306,38 @@ Completion scripts are generated from the installed CLI and contain no configura
306
306
  # Bash
307
307
  aicommit completion bash > ~/.local/share/bash-completion/completions/aicommit
308
308
 
309
- # Zsh (ensure the destination directory is in $fpath)
309
+ # Zsh
310
+ mkdir -p ~/.zfunc
310
311
  aicommit completion zsh > ~/.zfunc/_aicommit
311
312
 
312
313
  # Fish
313
314
  aicommit completion fish > ~/.config/fish/completions/aicommit.fish
314
315
  ```
315
316
 
317
+ For Zsh, add the completion directory to `fpath` before the line that initializes Oh My Zsh or another completion framework. For Oh My Zsh, place this in `~/.zshrc` before `source "$ZSH/oh-my-zsh.sh"`:
318
+
319
+ ```zsh
320
+ fpath=("$HOME/.zfunc" $fpath)
321
+ source "$ZSH/oh-my-zsh.sh"
322
+ ```
323
+
324
+ If no Zsh framework initializes completion, use this instead:
325
+
326
+ ```zsh
327
+ fpath=("$HOME/.zfunc" $fpath)
328
+ autoload -Uz compinit
329
+ compinit
330
+ ```
331
+
332
+ Restart Zsh after editing the file. If a previous completion cache prevents discovery, remove only that cache before restarting:
333
+
334
+ ```bash
335
+ rm -f "$HOME"/.zcompdump*
336
+ exec zsh
337
+ ```
338
+
339
+ Verify the registration with `whence -w _aicommit`; it should print `_aicommit: function`. Then type `aicommit`, add a space, and press `Tab`.
340
+
316
341
  ### Machine-readable output
317
342
 
318
343
  Use `--output=json` for scripts and CI. Commit and split flows also require `--yes`, preventing a machine consumer from hanging on an interactive prompt. stdout contains exactly one JSON object; progress, debug details, and diagnostics go to stderr. `doctor --output=json` does not require `--yes`.
package/README.zh-CN.md CHANGED
@@ -219,7 +219,7 @@ aicommit policy check --range=origin/main..HEAD --output=json
219
219
 
220
220
  ### 内置 Provider 默认值
221
221
 
222
- setup 使用随 AICommit 一起发布并经过校验的 Provider 默认值。需要其他 OpenAI 兼容服务时,直接在用户配置中增加命名 Provider;无需安装额外清单或执行第三方代码。
222
+ setup 使用随 AICommit 一起发布并经过校验的 Provider 默认值。OpenAI 预置 GPT-4o 与 GPT-5.6 系列,DeepSeek 预置 V4 Flash 与 Pro,OpenRouter 预置 Auto 以及当前常用的 GPT、Claude、Gemini、DeepSeek、Qwen、GLM、Kimi 和 Grok,Ollama 预置 Qwen 3、DeepSeek R1 与 GPT-OSS。这些配置只是起点:setup 仍允许编辑模型 ID,已有的用户自定义模型配置也会优先保留。需要其他 OpenAI 兼容服务时,直接在用户配置中增加命名 Provider;无需安装额外清单或执行第三方代码。
223
223
 
224
224
  ### 节省 Token
225
225
 
@@ -308,13 +308,38 @@ aicommit -h # 帮助
308
308
  # Bash
309
309
  aicommit completion bash > ~/.local/share/bash-completion/completions/aicommit
310
310
 
311
- # Zsh(请确保目标目录位于 $fpath 中)
311
+ # Zsh
312
+ mkdir -p ~/.zfunc
312
313
  aicommit completion zsh > ~/.zfunc/_aicommit
313
314
 
314
315
  # Fish
315
316
  aicommit completion fish > ~/.config/fish/completions/aicommit.fish
316
317
  ```
317
318
 
319
+ Zsh 还需要在 Oh My Zsh 或其他补全框架初始化之前,将补全目录加入 `fpath`。使用 Oh My Zsh 时,请在 `~/.zshrc` 的 `source "$ZSH/oh-my-zsh.sh"` 之前加入:
320
+
321
+ ```zsh
322
+ fpath=("$HOME/.zfunc" $fpath)
323
+ source "$ZSH/oh-my-zsh.sh"
324
+ ```
325
+
326
+ 如果没有使用负责初始化补全的 Zsh 框架,则改用:
327
+
328
+ ```zsh
329
+ fpath=("$HOME/.zfunc" $fpath)
330
+ autoload -Uz compinit
331
+ compinit
332
+ ```
333
+
334
+ 修改后重启 Zsh。如果旧补全缓存导致脚本仍未被发现,可以只清理该缓存后再重启:
335
+
336
+ ```bash
337
+ rm -f "$HOME"/.zcompdump*
338
+ exec zsh
339
+ ```
340
+
341
+ 运行 `whence -w _aicommit` 验证注册结果;正常应输出 `_aicommit: function`。随后输入 `aicommit`、空一格并按 `Tab` 即可使用补全。
342
+
318
343
  ### 机器可读输出
319
344
 
320
345
  脚本和 CI 请使用 `--output=json`。提交和 split 流程还必须使用 `--yes`,避免机器消费者卡在交互提示上。stdout 只包含一个 JSON 对象;进度、调试信息和诊断输出会写入 stderr。`doctor --output=json` 不要求 `--yes`。
@@ -26,7 +26,7 @@ The release workflow uses npm Trusted Publishing without a long-lived `NPM_TOKEN
26
26
  ```bash
27
27
  workdir=$(mktemp -d)
28
28
  cd "$workdir"
29
- npm install --package-lock-only @hifullmoon/aicommit@2.1.0
29
+ npm install --package-lock-only @hifullmoon/aicommit@2.2.0
30
30
  npm audit signatures
31
31
  ```
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hifullmoon/aicommit",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Safe, local-first AI commit message generator for Git workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kind": "aicommit-provider-presets",
3
3
  "schemaVersion": 2,
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "compatibility": {
6
6
  "coreMinimum": "1.5.1",
7
7
  "coreMaximumExclusive": "3.0.0",
@@ -18,6 +18,18 @@
18
18
  "gpt-4o": {
19
19
  "label": "GPT-4o",
20
20
  "modelId": "gpt-4o"
21
+ },
22
+ "gpt-5.6-sol": {
23
+ "label": "GPT-5.6 Sol",
24
+ "modelId": "gpt-5.6-sol"
25
+ },
26
+ "gpt-5.6-terra": {
27
+ "label": "GPT-5.6 Terra",
28
+ "modelId": "gpt-5.6-terra"
29
+ },
30
+ "gpt-5.6-luna": {
31
+ "label": "GPT-5.6 Luna",
32
+ "modelId": "gpt-5.6-luna"
21
33
  }
22
34
  }
23
35
  },
@@ -31,6 +43,10 @@
31
43
  "chat": {
32
44
  "label": "DeepSeek Chat",
33
45
  "modelId": "deepseek-v4-flash"
46
+ },
47
+ "pro": {
48
+ "label": "DeepSeek V4 Pro",
49
+ "modelId": "deepseek-v4-pro"
34
50
  }
35
51
  }
36
52
  },
@@ -43,6 +59,42 @@
43
59
  "models": {
44
60
  "default": {
45
61
  "modelId": "openai/gpt-4o-mini"
62
+ },
63
+ "auto": {
64
+ "label": "OpenRouter Auto",
65
+ "modelId": "openrouter/auto"
66
+ },
67
+ "gpt-5.6-terra": {
68
+ "label": "GPT-5.6 Terra",
69
+ "modelId": "openai/gpt-5.6-terra"
70
+ },
71
+ "claude-sonnet-5": {
72
+ "label": "Claude Sonnet 5",
73
+ "modelId": "anthropic/claude-sonnet-5"
74
+ },
75
+ "gemini-3.7-flash": {
76
+ "label": "Gemini 3.7 Flash",
77
+ "modelId": "google/gemini-3.7-flash"
78
+ },
79
+ "deepseek-v4-pro": {
80
+ "label": "DeepSeek V4 Pro",
81
+ "modelId": "deepseek/deepseek-v4-pro"
82
+ },
83
+ "qwen3.8-max": {
84
+ "label": "Qwen3.8 Max",
85
+ "modelId": "qwen/qwen3.8-max"
86
+ },
87
+ "glm-5.3": {
88
+ "label": "GLM-5.3",
89
+ "modelId": "z-ai/glm-5.3"
90
+ },
91
+ "kimi-k3": {
92
+ "label": "Kimi K3",
93
+ "modelId": "moonshotai/kimi-k3"
94
+ },
95
+ "grok-4.6": {
96
+ "label": "Grok 4.6",
97
+ "modelId": "x-ai/grok-4.6"
46
98
  }
47
99
  }
48
100
  },
@@ -86,6 +138,14 @@
86
138
  "qwen": {
87
139
  "label": "Qwen 3 8B",
88
140
  "modelId": "qwen3:8b"
141
+ },
142
+ "deepseek": {
143
+ "label": "DeepSeek R1 8B",
144
+ "modelId": "deepseek-r1:8b"
145
+ },
146
+ "gpt-oss": {
147
+ "label": "GPT-OSS 20B",
148
+ "modelId": "gpt-oss:20b"
89
149
  }
90
150
  }
91
151
  }