@jakejarvis/acai 0.2.0 → 0.3.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/README.md +12 -8
- package/dist/cli.mjs +796 -1416
- package/package.json +13 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# acai
|
|
2
2
|
|
|
3
|
-
AI-generated commit messages that match your repo's existing style. Powered by [Claude Code](https://docs.anthropic.com/en/docs/claude-code) or [Codex](https://github.com/openai/codex).
|
|
3
|
+
AI-generated commit messages that match your repo's existing style. Powered by [Claude Code](https://docs.anthropic.com/en/docs/claude-code) or [Codex](https://github.com/openai/codex), with real-time streaming as the message is generated.
|
|
4
4
|
|
|
5
5
|
`acai` reads your repo's recent commit history and adapts to whatever conventions your team already uses — conventional commits, gitmoji, ticket prefixes, pig latin, etc.
|
|
6
6
|
|
|
@@ -29,8 +29,11 @@ AI-generated commit messages that match your repo's existing style. Powered by [
|
|
|
29
29
|
| Flag | Env var | Default | Description |
|
|
30
30
|
|------|---------|---------|-------------|
|
|
31
31
|
| `-p, --provider` | `ACAI_PROVIDER` | `claude` | AI provider (`claude`, `codex`) |
|
|
32
|
-
|
|
|
32
|
+
| `--claude, --codex` | `ACAI_PROVIDER` | `claude` | Shorthand for `--provider <name>` |
|
|
33
|
+
| `-m, --model` | `ACAI_MODEL` | `sonnet` or `gpt-5.4-mini` | Model override |
|
|
33
34
|
| `-y, --yolo` | — | `false` | Stage all changes and commit without confirmation |
|
|
35
|
+
| `-V, --verbose` | — | `false` | Print prompts sent to the provider and raw responses |
|
|
36
|
+
| `-v, --version` | — | — | Show version number |
|
|
34
37
|
|
|
35
38
|
## Usage
|
|
36
39
|
|
|
@@ -45,11 +48,12 @@ npm install -g @jakejarvis/acai
|
|
|
45
48
|
acai
|
|
46
49
|
|
|
47
50
|
# Use a different provider
|
|
51
|
+
acai --codex
|
|
48
52
|
acai -p codex
|
|
49
53
|
|
|
50
54
|
# Override the model
|
|
51
55
|
acai -m haiku
|
|
52
|
-
acai
|
|
56
|
+
acai --codex -m gpt-5.4-mini
|
|
53
57
|
|
|
54
58
|
# Stage everything, generate, and commit — no prompts
|
|
55
59
|
acai --yolo
|
|
@@ -62,14 +66,14 @@ acai --yolo
|
|
|
62
66
|
│
|
|
63
67
|
◇ 3 files staged
|
|
64
68
|
│
|
|
65
|
-
|
|
69
|
+
◇ Here's what Claude (sonnet) came up with:
|
|
66
70
|
│
|
|
67
71
|
│ feat(auth): add session expiry validation
|
|
68
72
|
│
|
|
69
|
-
◆ What
|
|
73
|
+
◆ What's next?
|
|
70
74
|
│ ✓ Commit — accept and commit
|
|
71
75
|
│ ✎ Edit — open in $EDITOR before committing
|
|
72
|
-
│ ↻ Revise — give
|
|
76
|
+
│ ↻ Revise — give feedback and regenerate
|
|
73
77
|
│ ⎘ Copy — copy to clipboard, don't commit
|
|
74
78
|
│ ✕ Cancel
|
|
75
79
|
│
|
|
@@ -78,13 +82,13 @@ acai --yolo
|
|
|
78
82
|
|
|
79
83
|
### Revision loop
|
|
80
84
|
|
|
81
|
-
Choose **Revise** and tell
|
|
85
|
+
Choose **Revise** and tell the provider what to change:
|
|
82
86
|
|
|
83
87
|
```
|
|
84
88
|
◆ What should Claude change?
|
|
85
89
|
│ make it shorter, drop the scope
|
|
86
90
|
│
|
|
87
|
-
|
|
91
|
+
◇ Here's what Claude (sonnet) came up with:
|
|
88
92
|
│
|
|
89
93
|
│ feat: add session expiry validation
|
|
90
94
|
```
|