|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to gitmate are documented here. The format follows |
| 4 | +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the project follows |
| 5 | +[Semantic Versioning](https://semver.org/). |
| 6 | + |
| 7 | +## [0.1.0] - 2026-09-25 |
| 8 | + |
| 9 | +First public release. AI-assisted commit messages, PR summaries, and |
| 10 | +changelogs with cost control, caching, graceful degradation, and a human |
| 11 | +always in the loop. |
| 12 | + |
| 13 | +### Added |
| 14 | + |
| 15 | +- **Commit messages** — `gitmate commit` generates a message from the staged |
| 16 | + diff, then asks before anything is committed: accept, edit, regenerate, or |
| 17 | + cancel. Non-interactive `--yes` is opt-in only. |
| 18 | +- **PR summaries** — `gitmate pr-summary --base main` diffs a branch against |
| 19 | + its base and generates a ready-to-paste description (copied to clipboard |
| 20 | + where supported). |
| 21 | +- **Changelogs** — `gitmate changelog --from <ref> --to <ref>` groups commits |
| 22 | + by Conventional Commits type into a release-notes section. |
| 23 | +- **Diff extraction** — `gitmate debug-diff` prints a cleaned, filtered diff |
| 24 | + (staged, branch, or tag range) with rename detection, binary handling, and |
| 25 | + gitignore-style noise filtering; ignore patterns are user-configurable. |
| 26 | +- **Token budgeting** — diffs over the model's context window are truncated |
| 27 | + largest-first or chunked and summarized; budgets resolve per model |
| 28 | + (Gemini ~1M, Claude ~200k) with user overrides. |
| 29 | +- **Provider layer** — Gemini via `google-genai` (default |
| 30 | + `gemini-3.5-flash-lite`), behind a swappable `LLMProvider` protocol with |
| 31 | + retries on transient errors and a typed `ProviderUnavailable`. |
| 32 | +- **Response caching** — `diskcache` keyed on |
| 33 | + `sha256(template_version + model + prompt)`; repeat diffs cost nothing. |
| 34 | +- **Graceful degradation** — when the API is offline, rate-limited, or |
| 35 | + keyless, deterministic template-based messages are generated locally with a |
| 36 | + visible warning. |
| 37 | +- **Cost telemetry** — every invocation logs latency, tokens, cache hits, and |
| 38 | + estimated spend to a local SQLite database; `gitmate stats` reports it, with |
| 39 | + free-tier accounting. |
| 40 | +- **Git hooks** — `gitmate install-hook` adds a crash-safe |
| 41 | + `prepare-commit-msg` hook (4-second budget, atomic writes, fail-open); |
| 42 | + a `.pre-commit-hooks.yaml` entry is included for pre-commit framework users. |
| 43 | +- **Secrets in the OS keychain** — API keys are stored via `keyring`, never |
| 44 | + in config files. |
| 45 | + |
| 46 | +### Fixed |
| 47 | + |
| 48 | +- Hardened git-diff parsing against filenames with spaces, quotes, backslashes, |
| 49 | + and non-ASCII characters, plus ambient git config that breaks naive parsers |
| 50 | + (`diff.mnemonicPrefix`, `core.quotepath`, `diff.renames`). |
| 51 | +- Token budgets reject non-positive or negative inputs instead of silently |
| 52 | + over-budgeting. |
| 53 | +- Hook-mode retries capped to stay inside the hook timeout; SDK-level retries |
| 54 | + disabled for hook calls. |
| 55 | +- Re-running `install-hook` upgrades a gitmate-managed hook in place; foreign |
| 56 | + hooks are never overwritten. |
| 57 | + |
| 58 | +### Security |
| 59 | + |
| 60 | +- API keys live only in the OS credential store and are never written to disk |
| 61 | + or logs. |
0 commit comments