git-cai-cli 0.14.0__tar.gz → 0.14.2__tar.gz
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.
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.proselintrc +1 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.pylintrc +1 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/PKG-INFO +8 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/README.md +7 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/docs/git-cai.txt +53 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/docs/man/git-cai.1 +89 -2
- git_cai_cli-0.14.2/docs/superpowers/specs/2026-06-14-custom-styles-design.md +203 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/_version.py +3 -3
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/cli/cli.py +28 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/cli/helptext.py +4 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/completion.py +66 -11
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/config.py +48 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/gitutils.py +22 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/llm.py +8 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/options.py +2 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/pr.py +22 -3
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/prompts_fallback.py +2 -2
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/squash.py +36 -5
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/validate.py +1 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/main.py +23 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/PKG-INFO +8 -1
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/SOURCES.txt +1 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_completion.py +60 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_config.py +151 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_gitutils.py +48 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_llm.py +16 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_pr.py +35 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_prompt_loading.py +25 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_squash.py +27 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.caiignore +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.gitattributes +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/cd/.SRCINFO +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/cd/PKGBUILD +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/ci/_version.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/ci/cai_config.ci.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/ci/tokens.ci.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/workflows/python-tests.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/workflows/release.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.github/workflows/release_aur.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.gitignore +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.bandit.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.checkov.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.flake8 +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.ls-lint.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.markdown-link-check.json +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.markdownlint.json +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/.yamllint.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/check_git_branch_name.sh +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/lychee.toml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.linters/pyrightconfig.json +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.markdownlintignore +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.mega-linter.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.semgrepignore +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/.trivyignore +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/CLAUDE.md +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/LICENSE +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/Makefile +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/cai_config.yml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/pyproject.toml +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/setup.cfg +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/__init__.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/cli/__init__.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/cli/modes.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/__init__.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/editors.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/init.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/languages.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/spinner.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli/core/stats.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/dependency_links.txt +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/entry_points.txt +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/requires.txt +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/src/git_cai_cli.egg-info/top_level.txt +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/conftest.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_cli_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_config_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_gitutils_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_modes_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_options_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_pr_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/integration/test_squash_integration.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_amend.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_branch_context.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_cli.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_conventional.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_helptext.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_init.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_main.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_modes.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_options.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_print.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_set_config.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_signoff.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_spinner.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_stats.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/tests/unit/test_validate.py +0 -0
- {git_cai_cli-0.14.0 → git_cai_cli-0.14.2}/uv.lock +0 -0
|
@@ -69,7 +69,7 @@ check-protected-access-in-special-methods=no
|
|
|
69
69
|
max-args=25 # Max arguments per function
|
|
70
70
|
max-attributes=12 # Max attributes per class
|
|
71
71
|
max-branches=30 # Max branches per function
|
|
72
|
-
max-locals=
|
|
72
|
+
max-locals=70 # Max locals per function
|
|
73
73
|
max-returns=10 # Max return statements per function
|
|
74
74
|
max-statements=120 # Max total statements per function
|
|
75
75
|
max-public-methods=20 # Max public methods per class
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-cai-cli
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.2
|
|
4
4
|
Summary: Use LLM to create git commit messages
|
|
5
5
|
Author-email: Thorsten Foltz <thorsten.foltz@live.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -90,6 +90,8 @@ Currently supported providers:
|
|
|
90
90
|
- Token usage logging for API calls
|
|
91
91
|
- Branch name as LLM context
|
|
92
92
|
- Extra context for the LLM
|
|
93
|
+
- Per-invocation overrides for temperature, style, language, and emoji
|
|
94
|
+
- Optional large-diff guard (`max_diff_bytes`) that truncates oversized diffs before sending
|
|
93
95
|
- Generation time measurement
|
|
94
96
|
- Local-only usage analytics (per-provider commits, tokens, latency) with opt-in SQLite storage
|
|
95
97
|
- Shell completion for bash, zsh, and fish
|
|
@@ -247,6 +249,7 @@ git cai -g
|
|
|
247
249
|
- `squash_prompt_file` - path to the file where the prompt for the squash is stored
|
|
248
250
|
- `full_files_prompt_file` - path to the prompt used when `-F` / `--full-files` attaches full file contents
|
|
249
251
|
- `full_files` – attach always the full working-tree contents of affected files alongside the diff
|
|
252
|
+
- `max_diff_bytes` – maximum size (in UTF-8 bytes) of the diff/commit-log sent to the LLM; oversized input is truncated with a marker. `0` (default) means no limit
|
|
250
253
|
- `timeout` – HTTP timeout for LLM calls in seconds
|
|
251
254
|
- `branch_context` – include current branch name as LLM context
|
|
252
255
|
- `conventional` – use Conventional Commits format
|
|
@@ -271,6 +274,7 @@ In addition to `git cai`, the following options are available:
|
|
|
271
274
|
- `-C`, `--conventional` – use Conventional Commits format (`type(scope): description`)
|
|
272
275
|
- `-c`, `--crazy` – Trust the LLM and commit without checking
|
|
273
276
|
- `-d`, `--debug` – enable debug logging
|
|
277
|
+
- `-E`, `--temperature` `TEMPERATURE` – override the active provider's sampling temperature for this invocation (provider scoped, like `-m`)
|
|
274
278
|
- `-F`, `--full-files` – attach the full contents of affected files alongside the diff (uses `full_files_prompt.md`)
|
|
275
279
|
- `-f`, `--files` `PATH` – limit the diff (and full-file content, if enabled) to PATH; repeat for multiple files
|
|
276
280
|
- `-g`, `--generate-config` – generate the default `cai_config.yml` in the current directory
|
|
@@ -293,6 +297,9 @@ In addition to `git cai`, the following options are available:
|
|
|
293
297
|
- `--base` `BRANCH` – explicit base branch for `--PR` (overrides auto-detection: `origin/HEAD` → `main` → `master`)
|
|
294
298
|
- `-S`, `--set` – set a config value (`key=value`) in repo config (requires existing repo config)
|
|
295
299
|
- `-s`, `--squash` `[N|HASH]` – squash commits on the current branch and summarize them. Without argument: squash all since branch checkout. With a number: squash the last N commits. With a commit hash: squash up to and including that commit
|
|
300
|
+
- `-y`, `--style` `STYLE` – override the commit message style for this invocation (e.g. `funny`, `neutral`, `none`); validated against the supported styles
|
|
301
|
+
- `-L`, `--language` `CODE` – override the commit message language for this invocation (e.g. `de`, `fr`, `none`); validated against supported codes
|
|
302
|
+
- `-e`, `--emoji` / `--no-emoji` – override emoji usage for this invocation (use `--no-emoji` to disable when config enables it)
|
|
296
303
|
- `-T`, `--timeout` `SECONDS` – HTTP timeout for this invocation (overrides config)
|
|
297
304
|
- `-t`, `--time` – measure and log commit message generation time
|
|
298
305
|
- `-u`, `--update` – check for updates
|
|
@@ -60,6 +60,8 @@ Currently supported providers:
|
|
|
60
60
|
- Token usage logging for API calls
|
|
61
61
|
- Branch name as LLM context
|
|
62
62
|
- Extra context for the LLM
|
|
63
|
+
- Per-invocation overrides for temperature, style, language, and emoji
|
|
64
|
+
- Optional large-diff guard (`max_diff_bytes`) that truncates oversized diffs before sending
|
|
63
65
|
- Generation time measurement
|
|
64
66
|
- Local-only usage analytics (per-provider commits, tokens, latency) with opt-in SQLite storage
|
|
65
67
|
- Shell completion for bash, zsh, and fish
|
|
@@ -217,6 +219,7 @@ git cai -g
|
|
|
217
219
|
- `squash_prompt_file` - path to the file where the prompt for the squash is stored
|
|
218
220
|
- `full_files_prompt_file` - path to the prompt used when `-F` / `--full-files` attaches full file contents
|
|
219
221
|
- `full_files` – attach always the full working-tree contents of affected files alongside the diff
|
|
222
|
+
- `max_diff_bytes` – maximum size (in UTF-8 bytes) of the diff/commit-log sent to the LLM; oversized input is truncated with a marker. `0` (default) means no limit
|
|
220
223
|
- `timeout` – HTTP timeout for LLM calls in seconds
|
|
221
224
|
- `branch_context` – include current branch name as LLM context
|
|
222
225
|
- `conventional` – use Conventional Commits format
|
|
@@ -241,6 +244,7 @@ In addition to `git cai`, the following options are available:
|
|
|
241
244
|
- `-C`, `--conventional` – use Conventional Commits format (`type(scope): description`)
|
|
242
245
|
- `-c`, `--crazy` – Trust the LLM and commit without checking
|
|
243
246
|
- `-d`, `--debug` – enable debug logging
|
|
247
|
+
- `-E`, `--temperature` `TEMPERATURE` – override the active provider's sampling temperature for this invocation (provider scoped, like `-m`)
|
|
244
248
|
- `-F`, `--full-files` – attach the full contents of affected files alongside the diff (uses `full_files_prompt.md`)
|
|
245
249
|
- `-f`, `--files` `PATH` – limit the diff (and full-file content, if enabled) to PATH; repeat for multiple files
|
|
246
250
|
- `-g`, `--generate-config` – generate the default `cai_config.yml` in the current directory
|
|
@@ -263,6 +267,9 @@ In addition to `git cai`, the following options are available:
|
|
|
263
267
|
- `--base` `BRANCH` – explicit base branch for `--PR` (overrides auto-detection: `origin/HEAD` → `main` → `master`)
|
|
264
268
|
- `-S`, `--set` – set a config value (`key=value`) in repo config (requires existing repo config)
|
|
265
269
|
- `-s`, `--squash` `[N|HASH]` – squash commits on the current branch and summarize them. Without argument: squash all since branch checkout. With a number: squash the last N commits. With a commit hash: squash up to and including that commit
|
|
270
|
+
- `-y`, `--style` `STYLE` – override the commit message style for this invocation (e.g. `funny`, `neutral`, `none`); validated against the supported styles
|
|
271
|
+
- `-L`, `--language` `CODE` – override the commit message language for this invocation (e.g. `de`, `fr`, `none`); validated against supported codes
|
|
272
|
+
- `-e`, `--emoji` / `--no-emoji` – override emoji usage for this invocation (use `--no-emoji` to disable when config enables it)
|
|
266
273
|
- `-T`, `--timeout` `SECONDS` – HTTP timeout for this invocation (overrides config)
|
|
267
274
|
- `-t`, `--time` – measure and log commit message generation time
|
|
268
275
|
- `-u`, `--update` – check for updates
|
|
@@ -12,6 +12,7 @@ SYNOPSIS
|
|
|
12
12
|
[verse]
|
|
13
13
|
`git cai` [-A | --amend] [-a | --all] [-C | --conventional]
|
|
14
14
|
[-b | --branch] [-c | --crazy] [-d | --debug]
|
|
15
|
+
[-e TEMPERATURE | --temperature TEMPERATURE]
|
|
15
16
|
[-F | --full-files | --no-full-files] [-f PATH | --files PATH]
|
|
16
17
|
[-g | --generate-config]
|
|
17
18
|
[-H KEY=VALUE | --set-home KEY=VALUE] [-h | --help]
|
|
@@ -27,6 +28,7 @@ SYNOPSIS
|
|
|
27
28
|
[-S KEY=VALUE | --set KEY=VALUE]
|
|
28
29
|
[-s [N|HASH] | --squash [N|HASH]]
|
|
29
30
|
[-q true|false | --sql true|false]
|
|
31
|
+
[--style STYLE] [--language CODE] [--emoji | --no-emoji]
|
|
30
32
|
[-T SECONDS | --timeout SECONDS]
|
|
31
33
|
[-t | --time] [-u | --update] [-v | --version]
|
|
32
34
|
[-x CONTEXT | --context CONTEXT]
|
|
@@ -181,6 +183,17 @@ Cannot be combined with `--help` or `--version`.
|
|
|
181
183
|
git cai -d
|
|
182
184
|
----
|
|
183
185
|
|
|
186
|
+
-e, --temperature TEMPERATURE::
|
|
187
|
+
Override the sampling temperature of the active provider for this invocation
|
|
188
|
+
only. Higher values produce more varied wording; lower values are more
|
|
189
|
+
deterministic. The override is provider-scoped, mirroring `--model`, and does
|
|
190
|
+
not change the persisted `cai_config.yml`.
|
|
191
|
+
+
|
|
192
|
+
----
|
|
193
|
+
git cai -e 0.7
|
|
194
|
+
git cai -P anthropic -e 0.2
|
|
195
|
+
----
|
|
196
|
+
|
|
184
197
|
-F, --full-files::
|
|
185
198
|
Send the full working-tree contents of every staged file alongside the diff.
|
|
186
199
|
By default, git-cai sends only the staged diff to the LLM. With `-F`, the
|
|
@@ -488,6 +501,42 @@ git cai -s 3
|
|
|
488
501
|
git cai -s a1b2c3d
|
|
489
502
|
----
|
|
490
503
|
|
|
504
|
+
--style STYLE::
|
|
505
|
+
Override the commit message tone style for this invocation only (e.g.
|
|
506
|
+
`professional`, `neutral`, `friendly`, `funny`, `excited`, `sarcastic`,
|
|
507
|
+
`apologetic`, `academic`, or `none` to let the model choose). Run
|
|
508
|
+
`git cai -l style` to see all styles with examples. An invalid value is
|
|
509
|
+
rejected with an error. To change the style permanently, set `style:` in
|
|
510
|
+
`cai_config.yml`.
|
|
511
|
+
+
|
|
512
|
+
----
|
|
513
|
+
git cai --style funny
|
|
514
|
+
git cai --style none
|
|
515
|
+
----
|
|
516
|
+
|
|
517
|
+
--language CODE::
|
|
518
|
+
Override the commit message language for this invocation only, using a
|
|
519
|
+
supported language code (e.g. `de`, `fr`, `es`), or `none` to omit the
|
|
520
|
+
language instruction. Run `git cai -l language` to list supported codes. An
|
|
521
|
+
unsupported code is rejected with an error. To change it permanently, set
|
|
522
|
+
`language:` in `cai_config.yml`.
|
|
523
|
+
+
|
|
524
|
+
----
|
|
525
|
+
git cai --language de
|
|
526
|
+
git cai --language none
|
|
527
|
+
----
|
|
528
|
+
|
|
529
|
+
--emoji / --no-emoji::
|
|
530
|
+
Override emoji usage for this invocation only. `--emoji` instructs the model
|
|
531
|
+
to use relevant emojis; `--no-emoji` disables them even when the persisted
|
|
532
|
+
config enables emoji. To change the default permanently, set `emoji:` in
|
|
533
|
+
`cai_config.yml`.
|
|
534
|
+
+
|
|
535
|
+
----
|
|
536
|
+
git cai --no-emoji
|
|
537
|
+
git cai --emoji
|
|
538
|
+
----
|
|
539
|
+
|
|
491
540
|
-T, --timeout SECONDS::
|
|
492
541
|
Override the HTTP timeout for the LLM call in this invocation. The default
|
|
493
542
|
is 30 seconds for remote providers and 300 seconds for Ollama (since local
|
|
@@ -824,6 +873,10 @@ Available configuration keys:
|
|
|
824
873
|
- `timeout` -- HTTP timeout in seconds for remote LLM calls (default `30`)
|
|
825
874
|
- `full_files` -- send full working-tree contents of staged files alongside
|
|
826
875
|
the diff (`true`/`false`, default `false`)
|
|
876
|
+
- `max_diff_bytes` -- maximum size (in UTF-8 bytes) of the diff/commit-log
|
|
877
|
+
sent to the LLM. When the input exceeds this, it is truncated and a marker
|
|
878
|
+
line is appended so the model knows it was cut. `0` (the default) means no
|
|
879
|
+
limit. Useful to avoid context-window errors on very large staged changes.
|
|
827
880
|
- `pr_to_file` -- when running `--PR`, write the generated PR description
|
|
828
881
|
to a Markdown file in the repository root instead of printing it to
|
|
829
882
|
stdout (`true`/`false`, default `false`)
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
.\" Title: git-cai
|
|
3
3
|
.\" Author: Thorsten Foltz
|
|
4
4
|
.\" Generator: Asciidoctor 2.0.26
|
|
5
|
-
.\" Date: 2026-
|
|
5
|
+
.\" Date: 2026-06-14
|
|
6
6
|
.\" Manual: \ \&
|
|
7
7
|
.\" Source: \ \&
|
|
8
8
|
.\" Language: English
|
|
9
9
|
.\"
|
|
10
|
-
.TH "GIT\-CAI" "1" "2026-
|
|
10
|
+
.TH "GIT\-CAI" "1" "2026-06-14" "\ \&" "\ \&"
|
|
11
11
|
.ie \n(.g .ds Aq \(aq
|
|
12
12
|
.el .ds Aq '
|
|
13
13
|
.ss \n[.ss] 0
|
|
@@ -34,6 +34,7 @@ git-cai \- AI\-powered commit message generator
|
|
|
34
34
|
.nf
|
|
35
35
|
\f(CRgit cai\fP [\-A | \-\-amend] [\-a | \-\-all] [\-C | \-\-conventional]
|
|
36
36
|
[\-b | \-\-branch] [\-c | \-\-crazy] [\-d | \-\-debug]
|
|
37
|
+
[\-e TEMPERATURE | \-\-temperature TEMPERATURE]
|
|
37
38
|
[\-F | \-\-full\-files | \-\-no\-full\-files] [\-f PATH | \-\-files PATH]
|
|
38
39
|
[\-g | \-\-generate\-config]
|
|
39
40
|
[\-H KEY=VALUE | \-\-set\-home KEY=VALUE] [\-h | \-\-help]
|
|
@@ -49,6 +50,7 @@ git-cai \- AI\-powered commit message generator
|
|
|
49
50
|
[\-S KEY=VALUE | \-\-set KEY=VALUE]
|
|
50
51
|
[\-s [N|HASH] | \-\-squash [N|HASH]]
|
|
51
52
|
[\-q true|false | \-\-sql true|false]
|
|
53
|
+
[\-\-style STYLE] [\-\-language CODE] [\-\-emoji | \-\-no\-emoji]
|
|
52
54
|
[\-T SECONDS | \-\-timeout SECONDS]
|
|
53
55
|
[\-t | \-\-time] [\-u | \-\-update] [\-v | \-\-version]
|
|
54
56
|
[\-x CONTEXT | \-\-context CONTEXT]
|
|
@@ -350,6 +352,23 @@ git cai \-d
|
|
|
350
352
|
.if n .RE
|
|
351
353
|
.RE
|
|
352
354
|
.sp
|
|
355
|
+
\-e, \-\-temperature TEMPERATURE
|
|
356
|
+
.RS 4
|
|
357
|
+
Override the sampling temperature of the active provider for this invocation
|
|
358
|
+
only. Higher values produce more varied wording; lower values are more
|
|
359
|
+
deterministic. The override is provider\-scoped, mirroring \f(CR\-\-model\fP, and does
|
|
360
|
+
not change the persisted \f(CRcai_config.yml\fP.
|
|
361
|
+
.sp
|
|
362
|
+
.if n .RS 4
|
|
363
|
+
.nf
|
|
364
|
+
.fam C
|
|
365
|
+
git cai \-e 0.7
|
|
366
|
+
git cai \-P anthropic \-e 0.2
|
|
367
|
+
.fam
|
|
368
|
+
.fi
|
|
369
|
+
.if n .RE
|
|
370
|
+
.RE
|
|
371
|
+
.sp
|
|
353
372
|
\-F, \-\-full\-files
|
|
354
373
|
.RS 4
|
|
355
374
|
Send the full working\-tree contents of every staged file alongside the diff.
|
|
@@ -773,6 +792,60 @@ git cai \-s a1b2c3d
|
|
|
773
792
|
.if n .RE
|
|
774
793
|
.RE
|
|
775
794
|
.sp
|
|
795
|
+
\-\-style STYLE
|
|
796
|
+
.RS 4
|
|
797
|
+
Override the commit message tone style for this invocation only (e.g.
|
|
798
|
+
\f(CRprofessional\fP, \f(CRneutral\fP, \f(CRfriendly\fP, \f(CRfunny\fP, \f(CRexcited\fP, \f(CRsarcastic\fP,
|
|
799
|
+
\f(CRapologetic\fP, \f(CRacademic\fP, or \f(CRnone\fP to let the model choose). Run
|
|
800
|
+
\f(CRgit cai \-l style\fP to see all styles with examples. An invalid value is
|
|
801
|
+
rejected with an error. To change the style permanently, set \f(CRstyle:\fP in
|
|
802
|
+
\f(CRcai_config.yml\fP.
|
|
803
|
+
.sp
|
|
804
|
+
.if n .RS 4
|
|
805
|
+
.nf
|
|
806
|
+
.fam C
|
|
807
|
+
git cai \-\-style funny
|
|
808
|
+
git cai \-\-style none
|
|
809
|
+
.fam
|
|
810
|
+
.fi
|
|
811
|
+
.if n .RE
|
|
812
|
+
.RE
|
|
813
|
+
.sp
|
|
814
|
+
\-\-language CODE
|
|
815
|
+
.RS 4
|
|
816
|
+
Override the commit message language for this invocation only, using a
|
|
817
|
+
supported language code (e.g. \f(CRde\fP, \f(CRfr\fP, \f(CRes\fP), or \f(CRnone\fP to omit the
|
|
818
|
+
language instruction. Run \f(CRgit cai \-l language\fP to list supported codes. An
|
|
819
|
+
unsupported code is rejected with an error. To change it permanently, set
|
|
820
|
+
\f(CRlanguage:\fP in \f(CRcai_config.yml\fP.
|
|
821
|
+
.sp
|
|
822
|
+
.if n .RS 4
|
|
823
|
+
.nf
|
|
824
|
+
.fam C
|
|
825
|
+
git cai \-\-language de
|
|
826
|
+
git cai \-\-language none
|
|
827
|
+
.fam
|
|
828
|
+
.fi
|
|
829
|
+
.if n .RE
|
|
830
|
+
.RE
|
|
831
|
+
.sp
|
|
832
|
+
\-\-emoji / \-\-no\-emoji
|
|
833
|
+
.RS 4
|
|
834
|
+
Override emoji usage for this invocation only. \f(CR\-\-emoji\fP instructs the model
|
|
835
|
+
to use relevant emojis; \f(CR\-\-no\-emoji\fP disables them even when the persisted
|
|
836
|
+
config enables emoji. To change the default permanently, set \f(CRemoji:\fP in
|
|
837
|
+
\f(CRcai_config.yml\fP.
|
|
838
|
+
.sp
|
|
839
|
+
.if n .RS 4
|
|
840
|
+
.nf
|
|
841
|
+
.fam C
|
|
842
|
+
git cai \-\-no\-emoji
|
|
843
|
+
git cai \-\-emoji
|
|
844
|
+
.fam
|
|
845
|
+
.fi
|
|
846
|
+
.if n .RE
|
|
847
|
+
.RE
|
|
848
|
+
.sp
|
|
776
849
|
\-T, \-\-timeout SECONDS
|
|
777
850
|
.RS 4
|
|
778
851
|
Override the HTTP timeout for the LLM call in this invocation. The default
|
|
@@ -1394,6 +1467,20 @@ the diff (\f(CRtrue\fP/\f(CRfalse\fP, default \f(CRfalse\fP)
|
|
|
1394
1467
|
. sp -1
|
|
1395
1468
|
. IP \(bu 2.3
|
|
1396
1469
|
.\}
|
|
1470
|
+
\f(CRmax_diff_bytes\fP \(em maximum size (in UTF\-8 bytes) of the diff/commit\-log
|
|
1471
|
+
sent to the LLM. When the input exceeds this, it is truncated and a marker
|
|
1472
|
+
line is appended so the model knows it was cut. \f(CR0\fP (the default) means no
|
|
1473
|
+
limit. Useful to avoid context\-window errors on very large staged changes.
|
|
1474
|
+
.RE
|
|
1475
|
+
.sp
|
|
1476
|
+
.RS 4
|
|
1477
|
+
.ie n \{\
|
|
1478
|
+
\h'-04'\(bu\h'+03'\c
|
|
1479
|
+
.\}
|
|
1480
|
+
.el \{\
|
|
1481
|
+
. sp -1
|
|
1482
|
+
. IP \(bu 2.3
|
|
1483
|
+
.\}
|
|
1397
1484
|
\f(CRpr_to_file\fP \(em when running \f(CR\-\-PR\fP, write the generated PR description
|
|
1398
1485
|
to a Markdown file in the repository root instead of printing it to
|
|
1399
1486
|
stdout (\f(CRtrue\fP/\f(CRfalse\fP, default \f(CRfalse\fP)
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Custom styles + richer built-in style guidance — Design
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-06-14
|
|
4
|
+
**Branch:** `fix/style-option`
|
|
5
|
+
**Status:** Approved
|
|
6
|
+
|
|
7
|
+
## Goal
|
|
8
|
+
|
|
9
|
+
Extend the commit-message `style` option in two ways:
|
|
10
|
+
|
|
11
|
+
- **A — User-defined custom styles:** let users define their own styles in
|
|
12
|
+
`cai_config.yml` via a `custom_styles` map, so individuals and teams can add
|
|
13
|
+
tones beyond the shipped set without code changes.
|
|
14
|
+
- **C — Richer built-in style guidance:** replace the single generic style
|
|
15
|
+
instruction with a per-style prompt fragment, so each style (built-in or
|
|
16
|
+
custom) contributes real tone guidance to the prompt.
|
|
17
|
+
- **E — Single registry (cleanup):** consolidate the built-in style data, which
|
|
18
|
+
today is split between the allowlist in `validate.py` and the
|
|
19
|
+
descriptions/examples in `options.py::styles()`, into one source of truth.
|
|
20
|
+
- **F — Override flag ergonomics:** give the invocation-override options short
|
|
21
|
+
flags and make them visible in `git cai -h`. Today `--style`, `--language`,
|
|
22
|
+
`--emoji`, and `--temperature` are long-only **and** absent from the
|
|
23
|
+
hand-maintained help text (`cli/helptext.py`).
|
|
24
|
+
|
|
25
|
+
## Background (current behaviour)
|
|
26
|
+
|
|
27
|
+
- `_validate_style()` (`core/validate.py`) checks a hardcoded allowlist:
|
|
28
|
+
`professional, neutral, friendly, funny, excited, sarcastic, apologetic,
|
|
29
|
+
academic`, plus `none` (disables the style instruction).
|
|
30
|
+
- `_style_instruction()` (`core/llm.py`) emits one generic line for every
|
|
31
|
+
style: *"Write the commit message in the following tone style: {style}.
|
|
32
|
+
Apply this tone to both the headline and the bullet points."*
|
|
33
|
+
- `options.py::styles()` holds per-style `description` and `example` used by
|
|
34
|
+
`git cai -l style`, hand-synced with the allowlist.
|
|
35
|
+
|
|
36
|
+
## Decisions
|
|
37
|
+
|
|
38
|
+
1. **Custom style entry shape (Option 3 — hybrid):** `instruction` is required;
|
|
39
|
+
`description` and `example` are optional.
|
|
40
|
+
2. **Built-in names are protected (Option 2):** a `custom_styles` key that
|
|
41
|
+
collides with a built-in name or with `none` is a config validation error.
|
|
42
|
+
3. **Prompt assembly (Option 3):** the style's `instruction` leads, followed by
|
|
43
|
+
a fixed suffix: `"{instruction} Apply this tone to both the headline and the
|
|
44
|
+
bullet points."`
|
|
45
|
+
4. **Listing (Option 1 — merged + marker):** `git cai -l style` shows built-in
|
|
46
|
+
and custom styles in one list; custom entries are tagged `name (custom)`.
|
|
47
|
+
5. **Override short flags (F):** the invocation-override options get short flags
|
|
48
|
+
and are added to the help text — `-y/--style`, `-e/--emoji`, `-L/--language`,
|
|
49
|
+
`-E/--temperature`. `--temperature` previously used `-e`; it moves to `-E` so
|
|
50
|
+
`--emoji` can take the mnemonic `-e`. `-L` and `-E` each differ from an
|
|
51
|
+
existing flag (`-l/--list`, `-e`) only by case, which Typer/Click handle.
|
|
52
|
+
|
|
53
|
+
## Components
|
|
54
|
+
|
|
55
|
+
### 1. `core/styles.py` (new — single registry)
|
|
56
|
+
|
|
57
|
+
Dependency-free module (same rationale as `prompts_fallback.py`: importable by
|
|
58
|
+
`config`, `validate`, `llm`, `options` without creating import cycles). Single
|
|
59
|
+
source of truth for built-in styles, each carrying all three fields:
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
BUILTIN_STYLES: dict[str, dict[str, str]] = {
|
|
63
|
+
"professional": {
|
|
64
|
+
"instruction": "Write in a clear, concise, and formal tone.",
|
|
65
|
+
"description": "Clear, concise, and formal. Default style.",
|
|
66
|
+
"example": "...",
|
|
67
|
+
},
|
|
68
|
+
# neutral, friendly, funny, excited, sarcastic, apologetic, academic
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
RESERVED_STYLE_NAMES = set(BUILTIN_STYLES) | {"none"}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Replaces the allowlist in `validate.py` and the inline descriptions/examples in
|
|
75
|
+
`options.py::styles()`.
|
|
76
|
+
|
|
77
|
+
### 2. Config — `custom_styles` key
|
|
78
|
+
|
|
79
|
+
- New top-level key in `DEFAULT_CONFIG`, default `{}`; documented in
|
|
80
|
+
`cai_config.yml`.
|
|
81
|
+
- Repo config remains authoritative (per `CLAUDE.md`), so a repo can ship a
|
|
82
|
+
house style set.
|
|
83
|
+
- Entry shape: `instruction` required; `description`, `example` optional.
|
|
84
|
+
|
|
85
|
+
Example:
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
custom_styles:
|
|
89
|
+
sardonic:
|
|
90
|
+
instruction: "Use dry, ironic understatement; keep the subject imperative."
|
|
91
|
+
description: "Dry, ironic tone." # optional
|
|
92
|
+
example: "Heroically fixed the bug we wrote yesterday." # optional
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 3. Validation (`core/validate.py`)
|
|
96
|
+
|
|
97
|
+
- **`_validate_custom_styles(custom_styles)`** (new): for each entry —
|
|
98
|
+
- key is a non-empty string and **not** in `RESERVED_STYLE_NAMES`
|
|
99
|
+
(collision → `ValueError`);
|
|
100
|
+
- value has a non-empty `instruction`;
|
|
101
|
+
- `description` / `example`, if present, are strings.
|
|
102
|
+
Called during config load; fails fast with a message naming the offending key
|
|
103
|
+
and the problem.
|
|
104
|
+
- **`_validate_style(style, custom_names)`**: signature gains the set of
|
|
105
|
+
configured custom style names. Accepts built-ins, `none`, or any custom name;
|
|
106
|
+
otherwise raises with the merged allowed list. Call sites in `config.py`
|
|
107
|
+
(default load and `--style` override) already have `custom_styles` available
|
|
108
|
+
and pass the names through.
|
|
109
|
+
|
|
110
|
+
### 4. Prompt assembly (`core/llm.py::_style_instruction`)
|
|
111
|
+
|
|
112
|
+
Look up the active style in `BUILTIN_STYLES` merged with config `custom_styles`,
|
|
113
|
+
then:
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
return f"{entry['instruction']} Apply this tone to both the headline and the bullet points."
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`none` / `None` → `""` (unchanged). The old generic hardcoded line is removed;
|
|
120
|
+
every style now contributes its own flavor plus the fixed suffix.
|
|
121
|
+
|
|
122
|
+
### 5. Listing (`core/options.py::styles`)
|
|
123
|
+
|
|
124
|
+
Build the returned dict from `BUILTIN_STYLES` + config `custom_styles`. Custom
|
|
125
|
+
entries are tagged `name (custom)`. When `description` is absent, fall back to
|
|
126
|
+
the `instruction` text; when `example` is absent, omit the example line.
|
|
127
|
+
|
|
128
|
+
### 6. CLI short flags + help visibility (`cli/cli.py`, `cli/helptext.py`)
|
|
129
|
+
|
|
130
|
+
- Update the override `typer.Option` definitions in `cli.py`:
|
|
131
|
+
- `--style` → add `"-y"`
|
|
132
|
+
- `--emoji` → add `"-e"`
|
|
133
|
+
- `--language` → add `"-L"`
|
|
134
|
+
- `--temperature` → change its existing `"-e"` to `"-E"` (freeing `-e` for
|
|
135
|
+
emoji)
|
|
136
|
+
- Add the four flags to the hand-maintained `HELP_TEXT` in `helptext.py`, in
|
|
137
|
+
the alphabetical position used by the existing list, e.g.:
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
-E, --temperature FLOAT Override the active provider's sampling temperature for this invocation
|
|
141
|
+
-e, --emoji Toggle emoji prefixes (use --no-emoji to disable)
|
|
142
|
+
-L, --language CODE Override the commit message language (e.g. de, fr, none)
|
|
143
|
+
-y, --style NAME Override the commit message style (e.g. funny, neutral, none)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The `-l, --list` line already documents `style` as a list type and stays as
|
|
147
|
+
is.
|
|
148
|
+
|
|
149
|
+
## Data flow
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
cai_config.yml (custom_styles)
|
|
153
|
+
│
|
|
154
|
+
▼
|
|
155
|
+
config load ──► _validate_custom_styles() (structure + collisions)
|
|
156
|
+
│
|
|
157
|
+
├──► _validate_style(style, custom_names) (default + --style override)
|
|
158
|
+
│
|
|
159
|
+
▼
|
|
160
|
+
config["style"], config["custom_styles"]
|
|
161
|
+
│
|
|
162
|
+
├──► llm._style_instruction() → "{instruction} <suffix>" (BUILTIN_STYLES ∪ custom)
|
|
163
|
+
│
|
|
164
|
+
└──► options.styles() → merged list with (custom) markers
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Error handling
|
|
168
|
+
|
|
169
|
+
An invalid `custom_styles` block fails fast at config load with a clear message
|
|
170
|
+
(which key, what is wrong), consistent with how `_validate_style` already
|
|
171
|
+
reports invalid styles. An unknown `--style` value raises with the merged
|
|
172
|
+
allowed list (built-ins + `none` + configured custom names).
|
|
173
|
+
|
|
174
|
+
## Testing
|
|
175
|
+
|
|
176
|
+
All mocked — no real API/HTTP calls (CI has no creds; tokens cost money):
|
|
177
|
+
|
|
178
|
+
- `_validate_custom_styles`: happy path; missing/empty `instruction`;
|
|
179
|
+
collision with a built-in name; collision with `none`; non-string optional
|
|
180
|
+
fields.
|
|
181
|
+
- `_validate_style`: accepts a configured custom name; rejects an unknown name
|
|
182
|
+
with the merged allowed list in the message.
|
|
183
|
+
- `_style_instruction`: builds `"{instruction} <suffix>"` for a built-in, for a
|
|
184
|
+
custom style, and returns `""` for `none` / `None`.
|
|
185
|
+
- `options.styles()`: merges built-ins + custom; applies `(custom)` marker;
|
|
186
|
+
falls back `description → instruction`; omits `example` when absent.
|
|
187
|
+
- CLI short flags: invoking with `-y`, `-e`, `-L`, `-E` is parsed equivalently
|
|
188
|
+
to the long form (via Typer's `CliRunner`, no network), and `git cai -h`
|
|
189
|
+
output contains all four override flags.
|
|
190
|
+
|
|
191
|
+
## Documentation
|
|
192
|
+
|
|
193
|
+
Update **`docs/git-cai.txt` only** (per standing preference — do not touch
|
|
194
|
+
`docs/man/git-cai.1`, `README.md`, or `CLAUDE.md` unless asked): document the
|
|
195
|
+
`custom_styles` key and entry shape, and the new `-y/-e/-L/-E` override short
|
|
196
|
+
flags.
|
|
197
|
+
|
|
198
|
+
## Out of scope (YAGNI)
|
|
199
|
+
|
|
200
|
+
- Overriding/retuning built-in styles via config (built-ins are protected).
|
|
201
|
+
- Free-form passthrough of arbitrary style strings (rejected in favor of an
|
|
202
|
+
explicit custom registry).
|
|
203
|
+
- `random`/surprise style selection.
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.14.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 14,
|
|
21
|
+
__version__ = version = '0.14.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 14, 2)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'gf575cff14'
|
|
@@ -179,6 +179,30 @@ def callback( # pylint: disable=too-many-arguments,too-many-positional-argument
|
|
|
179
179
|
"--print",
|
|
180
180
|
help="Generate the commit message, print it to stdout, and exit without committing.",
|
|
181
181
|
),
|
|
182
|
+
temperature: float = typer.Option(
|
|
183
|
+
None,
|
|
184
|
+
"-E",
|
|
185
|
+
"--temperature",
|
|
186
|
+
help="Override the active provider's sampling temperature for this invocation.",
|
|
187
|
+
),
|
|
188
|
+
style: str = typer.Option(
|
|
189
|
+
None,
|
|
190
|
+
"-y",
|
|
191
|
+
"--style",
|
|
192
|
+
help="Override the commit message style for this invocation (e.g. funny, neutral, none).",
|
|
193
|
+
),
|
|
194
|
+
language: str = typer.Option(
|
|
195
|
+
None,
|
|
196
|
+
"-L",
|
|
197
|
+
"--language",
|
|
198
|
+
help="Override the commit message language code for this invocation (e.g. de, fr, none).",
|
|
199
|
+
),
|
|
200
|
+
emoji: bool | None = typer.Option(
|
|
201
|
+
None,
|
|
202
|
+
"-e",
|
|
203
|
+
"--emoji/--no-emoji",
|
|
204
|
+
help="Override emoji usage for this invocation. Use --no-emoji to disable when config enables it.",
|
|
205
|
+
),
|
|
182
206
|
):
|
|
183
207
|
"""
|
|
184
208
|
CLI entry point for git-cai-cli.
|
|
@@ -311,6 +335,10 @@ def callback( # pylint: disable=too-many-arguments,too-many-positional-argument
|
|
|
311
335
|
stats_reset=stats_reset,
|
|
312
336
|
signoff=signoff,
|
|
313
337
|
print_only=print_only,
|
|
338
|
+
temperature_override=temperature,
|
|
339
|
+
style_override=style,
|
|
340
|
+
language_override=language,
|
|
341
|
+
emoji_override=emoji,
|
|
314
342
|
)
|
|
315
343
|
|
|
316
344
|
|
|
@@ -21,6 +21,8 @@ Flags:
|
|
|
21
21
|
-C, --conventional Use Conventional Commits format (type(scope): description)
|
|
22
22
|
-c, --crazy Commit immediately without opening editor (trust LLM output)
|
|
23
23
|
-d, --debug Enable debug logging
|
|
24
|
+
-E, --temperature FLOAT Override the active provider's sampling temperature for this invocation
|
|
25
|
+
-e, --emoji Toggle emoji prefixes (use --no-emoji to disable)
|
|
24
26
|
-F, --full-files Send the full contents of affected files alongside the diff
|
|
25
27
|
-f, --files PATH Limit the diff (and full files) to PATH; repeat the flag for multiple files
|
|
26
28
|
-g, --generate-config Generate default cai_config.yml in the current directory
|
|
@@ -28,6 +30,7 @@ Flags:
|
|
|
28
30
|
-h, --help Show this help message or opens manual
|
|
29
31
|
-I, --init Interactive setup wizard (writes home config and tokens.yml)
|
|
30
32
|
-i, --install-completion Install shell completion for git-cai
|
|
33
|
+
-L, --language CODE Override the commit message language (e.g. de, fr, none)
|
|
31
34
|
-l, --list [TYPE] List information. TYPE: config, editor, language,
|
|
32
35
|
model, path, provider, style
|
|
33
36
|
-m, --model NAME Override model for this invocation (requires --provider)
|
|
@@ -48,6 +51,7 @@ Flags:
|
|
|
48
51
|
-u, --update Check for updates
|
|
49
52
|
-v, --version Show installed version
|
|
50
53
|
-x, --context TEXT Provide extra context for the LLM (e.g. ticket number, reason)
|
|
54
|
+
-y, --style NAME Override the commit message style (e.g. funny, neutral, none)
|
|
51
55
|
-z, --stats Show local-only usage analytics (commits, tokens, latency)
|
|
52
56
|
--since YYYY-MM-DD Filter --stats to events on or after this date
|
|
53
57
|
--json Render --stats output as JSON instead of text
|