aicommit2 2.4.13 → 2.4.16
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 +30 -8
- package/dist/cli.mjs +70 -75
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,16 +15,21 @@
|
|
|
15
15
|
[](https://www.npmjs.com/package/aicommit2)
|
|
16
16
|
[](https://www.npmjs.com/package/aicommit2)
|
|
17
17
|
[](#nix-installation)
|
|
18
|
+
[](https://formulae.brew.sh/formula/aicommit2)
|
|
18
19
|
|
|
19
20
|
</div>
|
|
20
21
|
|
|
21
22
|
______________________________________________________________________
|
|
22
23
|
|
|
23
|
-
##
|
|
24
|
+
## Quick start
|
|
24
25
|
|
|
25
26
|
```bash
|
|
26
|
-
# Install
|
|
27
|
+
# Install via Homebrew (macOS/Linux)
|
|
28
|
+
brew install aicommit2
|
|
29
|
+
|
|
30
|
+
# Or install via npm
|
|
27
31
|
npm install -g aicommit2
|
|
32
|
+
|
|
28
33
|
# Set up at least one AI provider
|
|
29
34
|
aicommit2 config set OPENAI.key=<your-key>
|
|
30
35
|
|
|
@@ -36,11 +41,11 @@ aicommit2
|
|
|
36
41
|
aicommit2
|
|
37
42
|
```
|
|
38
43
|
|
|
39
|
-
##
|
|
44
|
+
## Introduction
|
|
40
45
|
|
|
41
|
-
AICommit2 automatically generates commit messages using AI. It primarily supports [Git](https://git-scm.com/) and also works with [Jujutsu](https://github.com/jj-vcs/jj)(jj) repositories.
|
|
46
|
+
AICommit2 automatically generates commit messages using AI. It primarily supports [Git](https://git-scm.com/) and also works with [Jujutsu](https://github.com/jj-vcs/jj)(jj) repositories. [AICommits](https://github.com/Nutlope/aicommits) inspired the core functionalities and architecture of this project.
|
|
42
47
|
|
|
43
|
-
##
|
|
48
|
+
## Key features
|
|
44
49
|
|
|
45
50
|
- **[VCS Support](#version-control-systems)**: Works with both Git and Jujutsu repositories
|
|
46
51
|
- **[Multi-AI Support](#cloud-ai-services)**: Integrates with OpenAI, Anthropic Claude, Google Gemini, Mistral AI, Cohere, Groq, Ollama and more
|
|
@@ -49,7 +54,7 @@ AICommit2 automatically generates commit messages using AI. It primarily support
|
|
|
49
54
|
- **[Git Hook Integration](#git-hook)**: Can be used as a prepare-commit-msg hook
|
|
50
55
|
- **[Custom Prompt](#custom-prompt-template)**: Supports user-defined system prompt templates
|
|
51
56
|
|
|
52
|
-
##
|
|
57
|
+
## Supported providers
|
|
53
58
|
|
|
54
59
|
### Cloud AI Services
|
|
55
60
|
|
|
@@ -70,14 +75,20 @@ AICommit2 automatically generates commit messages using AI. It primarily support
|
|
|
70
75
|
|
|
71
76
|
## Setup
|
|
72
77
|
|
|
73
|
-
> ⚠️ The minimum supported version of Node.js is the v18. Check your Node.js version with `node --version`.
|
|
74
|
-
|
|
75
78
|
1. Install _aicommit2_:
|
|
76
79
|
|
|
80
|
+
**Via Homebrew (recommended for macOS/Linux):**
|
|
81
|
+
```sh
|
|
82
|
+
brew install aicommit2
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Via npm:**
|
|
77
86
|
```sh
|
|
78
87
|
npm install -g aicommit2
|
|
79
88
|
```
|
|
80
89
|
|
|
90
|
+
> ⚠️ For npm installation, the minimum supported version of Node.js is v18. Check your Node.js version with `node --version`.
|
|
91
|
+
|
|
81
92
|
2. Set up API keys (**at least ONE key must be set**):
|
|
82
93
|
|
|
83
94
|
```sh
|
|
@@ -281,6 +292,10 @@ aicommit2 --all # or -a
|
|
|
281
292
|
- `--pre-commit`: Run in [pre-commit](https://pre-commit.com/) framework mode (default: **false**)
|
|
282
293
|
- This option is specifically for use with the pre-commit framework
|
|
283
294
|
- See [Integration with pre-commit framework](#integration-with-pre-commit-framework) section for setup instructions
|
|
295
|
+
- `--verbose` or `-v`: Enable verbose logging for enhanced debugging output (default: **false**)
|
|
296
|
+
- When enabled, shows detailed log messages including readline errors and other diagnostic information
|
|
297
|
+
- Useful for troubleshooting issues or understanding the tool's internal operations
|
|
298
|
+
- Can also be set via config: `aicommit2 config set logLevel=verbose`
|
|
284
299
|
|
|
285
300
|
Examples:
|
|
286
301
|
|
|
@@ -290,6 +305,9 @@ aicommit2 --locale "jp" --all --type "conventional" --generate 3 --clipboard --e
|
|
|
290
305
|
|
|
291
306
|
# Generate and edit a commit message
|
|
292
307
|
aicommit2 --edit --type conventional # or gitmoji
|
|
308
|
+
|
|
309
|
+
# Enable verbose logging for debugging
|
|
310
|
+
aicommit2 --verbose # or -v
|
|
293
311
|
```
|
|
294
312
|
|
|
295
313
|
### Git hook
|
|
@@ -1021,6 +1039,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
1021
1039
|
<td align="center"><a href="https://github.com/mdeweerd"><img src="https://avatars.githubusercontent.com/mdeweerd" width="100px;" alt=""/><br /><sub><b>@mdeweerd</b></sub></a><br /><a href="https://github.com/tak-bro/aicommit2/commits?author=mdeweerd" title="Code">💻</a></td>
|
|
1022
1040
|
<td align="center"><a href="https://github.com/DivitMittal"><img src="https://avatars.githubusercontent.com/DivitMittal" width="100px;" alt=""/><br /><sub><b>@DivitMittal</b></sub></a><br /><a href="https://github.com/tak-bro/aicommit2/commits?author=DivitMittal" title="Code">💻</a></td>
|
|
1023
1041
|
<td align="center"><a href="https://github.com/aaccioly"><img src="https://avatars.githubusercontent.com/aaccioly" width="100px;" alt=""/><br /><sub><b>@aaccioly</b></sub></a><br /><a href="https://github.com/tak-bro/aicommit2/commits?author=aaccioly" title="Code">💻</a></td>
|
|
1042
|
+
<td align="center"><a href="https://github.com/forivall"><img src="https://avatars.githubusercontent.com/forivall" width="100px;" alt=""/><br /><sub><b>@forivall</b></sub></a><br /><a href="https://github.com/tak-bro/aicommit2/commits?author=forivall" title="Documentation">📖</a></td>
|
|
1043
|
+
</tr>
|
|
1044
|
+
<tr>
|
|
1045
|
+
<td align="center"><a href="https://github.com/jaytaylor"><img src="https://avatars.githubusercontent.com/jaytaylor" width="100px;" alt=""/><br /><sub><b>@jaytaylor</b></sub></a><br /><a href="https://github.com/tak-bro/aicommit2/commits?author=jaytaylor" title="Code">💻</a></td>
|
|
1024
1046
|
</tr>
|
|
1025
1047
|
</table>
|
|
1026
1048
|
<!-- markdownlint-restore -->
|