@kyubiware/commit-mint 0.5.0 → 0.5.2
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/README.md +1 -14
- package/dist/cli.mjs +203 -396
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,6 @@ On first run, you'll be prompted for a `GROQ_API_KEY` if it's not set in `~/.com
|
|
|
68
68
|
- **Hook failures handled in-flow.** When pre-commit hooks fail, you get a parsed error summary and a menu to copy, skip, retry, or edit. No raw stderr dumps.
|
|
69
69
|
- **Built-in pre-commit checks.** Define checks in a cmint config file and run them before AI generation. A failing check never wastes an API call.
|
|
70
70
|
- **Message caching on failure.** A failed commit caches its message. Fix the error, run `cmint --retry`, and pick up exactly where you left off.
|
|
71
|
-
- **Review before you commit.** Every message can be accepted, edited, or reviewed with OpenCode before it hits the repo.
|
|
72
71
|
|
|
73
72
|
## Auto mode (`-a`)
|
|
74
73
|
|
|
@@ -111,9 +110,6 @@ cmint -H "refactoring auth module"
|
|
|
111
110
|
# Retry last failed commit (uses cached message)
|
|
112
111
|
cmint -r
|
|
113
112
|
|
|
114
|
-
# Review staged changes with AI
|
|
115
|
-
cmint -R
|
|
116
|
-
|
|
117
113
|
# Skip pre-commit checks
|
|
118
114
|
cmint -n
|
|
119
115
|
|
|
@@ -132,7 +128,6 @@ cmint config set model openai/gpt-oss-20b
|
|
|
132
128
|
| `-m, --message` | Provide a commit message directly (skip AI) |
|
|
133
129
|
| `-H, --hint` | Add context hint for AI message generation |
|
|
134
130
|
| `-r, --retry` | Retry the last failed commit |
|
|
135
|
-
| `-R, --review` | Review staged changes with a coding model |
|
|
136
131
|
| `-n, --noCheck` | Skip pre-commit checks |
|
|
137
132
|
| `-d, --debug` | Enable debug output |
|
|
138
133
|
| `-h, --help` | Show help |
|
|
@@ -144,7 +139,6 @@ Before every commit, choose what to do with the generated message:
|
|
|
144
139
|
|
|
145
140
|
- **Use as-is** — accept the AI-generated message
|
|
146
141
|
- **Edit** — modify the message in a prompt
|
|
147
|
-
- **Review with OpenCode** — run a code review on staged changes before committing
|
|
148
142
|
- **Cancel** — exit (message is cached for `--retry`)
|
|
149
143
|
|
|
150
144
|
## Recovery menu
|
|
@@ -236,10 +230,6 @@ When a check fails, you get a menu with three options:
|
|
|
236
230
|
|
|
237
231
|
Pass `--noCheck` or `-n` to skip checks entirely.
|
|
238
232
|
|
|
239
|
-
## Code review
|
|
240
|
-
|
|
241
|
-
Run `cmint --review` or `cmint -R` to review staged changes without committing. commit-mint checks for [OpenCode](https://github.com/opencode-ai/opencode) first, then falls back to Groq API. The review covers bugs, security issues, performance problems, and edge cases.
|
|
242
|
-
|
|
243
233
|
## Configuration
|
|
244
234
|
|
|
245
235
|
Stored in `~/.commit-mint` (INI format):
|
|
@@ -278,7 +268,6 @@ cmint --help
|
|
|
278
268
|
--auto, -a Auto-group files into commits, accept all messages (default: false)
|
|
279
269
|
--message, -m Provide a commit message directly (skip AI generation)
|
|
280
270
|
--hint, -H Add context hint for AI commit message generation
|
|
281
|
-
--review, -R Review staged changes with a coding model (default: false)
|
|
282
271
|
--noCheck, -n Skip pre-commit checks (default: false)
|
|
283
272
|
--debug, -d Enable debug output (default: false)
|
|
284
273
|
--help, -h Show help
|
|
@@ -301,13 +290,11 @@ commit-mint/
|
|
|
301
290
|
│ ├── commands/
|
|
302
291
|
│ │ ├── commit.ts # Main commit flow orchestrator
|
|
303
292
|
│ │ ├── auto-group.ts # Auto-group multi-commit flow
|
|
304
|
-
│ │ ├── review.ts # Code review command
|
|
305
293
|
│ │ └── config.ts # Config get/set subcommand
|
|
306
294
|
│ ├── services/
|
|
307
295
|
│ │ ├── git.ts # Git operations (stage, commit, diff, HEAD)
|
|
308
296
|
│ │ ├── ai.ts # Groq AI commit message generation (3-tier diff compression)
|
|
309
297
|
│ │ ├── grouping.ts # AI-powered file grouping into logical commits
|
|
310
|
-
│ │ ├── review-ai.ts # AI code review via Groq
|
|
311
298
|
│ │ ├── hooks.ts # Hook error parser (lint-staged, biome, tsc, etc.)
|
|
312
299
|
│ │ ├── checks.ts # Pre-commit checks via cmint config files (glob matching, command execution)
|
|
313
300
|
│ │ ├── config.ts # INI config read/write at ~/.commit-mint
|
|
@@ -315,7 +302,7 @@ commit-mint/
|
|
|
315
302
|
│ ├── ui/
|
|
316
303
|
│ │ ├── menu.ts # Interactive recovery TUI + staging menu
|
|
317
304
|
│ │ ├── grouping.ts # Grouping confirmation UI
|
|
318
|
-
│ │ └── review-message.ts # Message review step (use/edit/
|
|
305
|
+
│ │ └── review-message.ts # Message review step (use/edit/cancel)
|
|
319
306
|
│ └── utils/
|
|
320
307
|
│ ├── cache.ts # Commit message persistence at ~/.cache/commit-mint/
|
|
321
308
|
│ └── debug.ts # Timestamped debug logging to stderr
|