aicommit2 2.4.13 → 2.4.14

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.
Files changed (3) hide show
  1. package/README.md +30 -8
  2. package/dist/cli.mjs +69 -74
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -15,16 +15,21 @@
15
15
  [![version](https://img.shields.io/npm/v/aicommit2?logo=semanticrelease&label=release&color=A51C2D)](https://www.npmjs.com/package/aicommit2)
16
16
  [![downloads](https://img.shields.io/npm/dt/aicommit2?color=F33535&logo=npm)](https://www.npmjs.com/package/aicommit2)
17
17
  [![Nix](https://img.shields.io/badge/Nix-5277C3?logo=nixos&logoColor=fff)](#nix-installation)
18
+ [![Homebrew](https://img.shields.io/badge/Homebrew-FBB040?logo=homebrew&logoColor=000)](https://formulae.brew.sh/formula/aicommit2)
18
19
 
19
20
  </div>
20
21
 
21
22
  ______________________________________________________________________
22
23
 
23
- ## 🚀 Quick Start
24
+ ## Quick start
24
25
 
25
26
  ```bash
26
- # Install globally
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
- ## 📖 Introduction
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. The core functionalities and architecture of this project are inspired by [AICommits](https://github.com/Nutlope/aicommits).
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
- ## Key Features
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
- ## 🤖 Supported Providers
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 -->