Releases: PunGrumpy/better-commit
Release list
@better-commit/cli@1.2.0
Minor Changes
-
935b935: Add interactive file staging when committing with unstaged files, allowing users to select a subset of files to stage and commit.
-
35f9df3: Add support for intra-PR commit-level stacking:
- Introduce the
stackingplugin to automatically generate and inject stableChange-Idfooters into commits. - Add
bc stackcommand to view the local commit stack, positions, and Change-Ids. - Add
bc amend <target>command to stage changes into intermediate commits using a headless Git autosquash rebase. - Validate
Change-Idexistence in commit messages under CI check mode.
- Introduce the
Patch Changes
- 28a6720: Remove
catalog:dependencies to resolve bun/npm install errors on published CLI packages.
@better-commit/cli@1.1.0
Minor Changes
- 1cd0e2f: Invoke plugin
validateMessagehooks during commit message validation. - 4c15f4e: Add
bc init --hooksto install Huskyprepare-commit-msghook for interactive commits.
Patch Changes
- fe1acad: Validate commit messages before git commit, amend, and retry so interactive flows match
bc checkrules. - 6d6cfa6: Improve AI security: expand diff secret redaction, pass prompts via stdin, prompt for Cursor ACP permissions by default, reject empty AI output, and fix Cursor ACP hang timeout.
- aed40f7: Honor
aiSuggestmodelandallowUnsanitizedconfig options; cloud providers always sanitize diffs. - b49ef2f: Expand npm README with commands, options, environment variables, and security notes.
- 41c97cb: Link npm README to the docs site.
- c7ae9bb: Fix Husky
prepare-commit-msghook in CI: skip whenCIis set or no TTY is available, and invokebetter-commitinstead ofbcto avoid GNU bc (calculator) on Linux. - 7517e43: Fix Husky
prepare-commit-msghook: addbc commit --hookto writeCOMMIT_EDITMSGinstead of nestinggit commit, reattach TTY, skip re-entry withBETTER_COMMIT_SKIP_HOOK, and avoid opening a second editor withGIT_EDITOR=cat.
@better-commit/cli@1.0.0
Major Changes
-
704fd10: AI, prompts, and core runtime
Optional AI message generation (registry, cloud/subprocess/local providers), interactive prompts and form fields, git helpers, validation against resolved rules, diff sanitization, and retry cache.
-
704fd10: Build & breaking note
ESM output via tsdown (
dist/index.mjs,dist/public-config.mjsfor@better-commit/cli/config). Major release: new public API and config shape; no automated migration from older JSON-based config. -
704fd10: CLI commands
Commander-based
bcbinary: defaultbc commit(interactive),bc init,bc doctor,bc check,bc fix,bc retry, plus flags such as--dry-runand--no-ai. -
fc4c9a3: CLI parsing, init safety, and check rules
- Breaking:
bc init --quietno longer overwrites an existingcommit.config.ts; use--forcewith--quietto replace it. - Entry uses
parseAsyncand a top-leveltry/catchso async command failures surface reliably. bc checkrequires--fromand--totogether and disallows combining--editwith a range.bc commit --dry-runuses the same explicit success exit path as other commands.bc fixmatchesbc commitforprovider: "auto"(including the use-AI prompt when detection is ambiguous).bc doctoremits a one-line failure summary (failed check names) on exit.- Duplicate plugin merge errors surface as
ConfigLoadErrorwith codeduplicate_plugin. --helpnotesbc/better-commitandBETTER_COMMIT_NO_AI; README coversfix,retry, and check modes.
- Breaking:
-
704fd10: Commit config & plugins
Single
commit.config.tswithdefineConfig, typed plugins (conventionalCommits, optionalaiSuggest), jiti-based loading, merge/validation viamergeUserConfig, and the@better-commit/cli/configpackage export for apps and libraries.