aicommits 2.0.0-develop.14 → 2.0.0-develop.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 CHANGED
@@ -20,7 +20,7 @@
20
20
  npm install -g aicommits@develop
21
21
  ```
22
22
 
23
- > We need @develop since v2 is still not released as latest/main! Don't remove it to test v2!
23
+ > We need @develop since v2 is still not released as latest/main!
24
24
 
25
25
  2. Run the setup command to choose your AI provider:
26
26
 
@@ -33,6 +33,7 @@ This will guide you through:
33
33
  - Selecting your AI provider (sets the `provider` config)
34
34
  - Configuring your API key
35
35
  - **Automatically fetching and selecting from available models** (when supported)
36
+ - **Choosing your preferred commit message format** (plain, conventional, or gitmoji)
36
37
 
37
38
  Supported providers include:
38
39
 
@@ -40,6 +41,7 @@ This will guide you through:
40
41
  - **OpenAI** - Get your API key from [OpenAI API Keys page](https://platform.openai.com/account/api-keys)
41
42
  - **OpenRouter** - Get your API key from [OpenRouter](https://openrouter.ai/keys)
42
43
  - **Ollama** (local) - Run AI models locally with [Ollama](https://ollama.ai)
44
+ - **LM Studio** (local) - No API key required. Runs on your computer via [LM Studio](https://lmstudio.ai/)
43
45
  - **Custom OpenAI-compatible endpoint** - Use any service that implements the OpenAI API
44
46
 
45
47
  **For CI/CD environments**, you can also set up configuration via the config file:
@@ -96,7 +98,7 @@ aicommits --all # or -a
96
98
  - `--generate` or `-g`: Number of messages to generate (default: **1**)
97
99
  - `--exclude` or `-x`: Files to exclude from AI analysis
98
100
  - `--all` or `-a`: Automatically stage changes in tracked files for the commit (default: **false**)
99
- - `--type` or `-t`: Git commit message format (default: **conventional**). Supports `conventional` and `gitmoji`
101
+ - `--type` or `-t`: Git commit message format (default: **plain**). Supports `plain`, `conventional`, and `gitmoji`
100
102
  - `--confirm` or `-y`: Skip confirmation when committing after message generation (default: **false**)
101
103
  - `--clipboard` or `-c`: Copy the selected message to the clipboard instead of committing (default: **false**)
102
104
 
@@ -110,15 +112,23 @@ aicommits --generate <i> # or -g <i>
110
112
 
111
113
  > Warning: this uses more tokens, meaning it costs more.
112
114
 
113
- #### Generating Conventional Commits
115
+ #### Commit Message Formats
114
116
 
115
- If you'd like to generate [Conventional Commits](https://conventionalcommits.org/), you can use the `--type` flag followed by `conventional`. This will prompt `aicommits` to format the commit message according to the Conventional Commits specification:
117
+ You can choose from three different commit message formats:
118
+
119
+ - **plain** (default): Simple, unstructured commit messages
120
+ - **conventional**: [Conventional Commits](https://conventionalcommits.org/) format with type and scope
121
+ - **gitmoji**: Emoji-based commit messages
122
+
123
+ Use the `--type` flag to specify the format:
116
124
 
117
125
  ```sh
118
126
  aicommits --type conventional # or -t conventional
127
+ aicommits --type gitmoji # or -t gitmoji
128
+ aicommits --type plain # or -t plain (default)
119
129
  ```
120
130
 
121
- This feature can be useful if your project follows the Conventional Commits standard or if you're using tools that rely on this commit format.
131
+ This feature is useful if your project follows a specific commit message standard or if you're using tools that rely on these commit formats.
122
132
 
123
133
  ### Git hook
124
134
 
@@ -296,18 +306,20 @@ aicommits config set max-length=100
296
306
 
297
307
  #### type
298
308
 
299
- Default: `""` (Empty string)
309
+ Default: `plain`
300
310
 
301
- The type of commit message to generate. Set this to "conventional" to generate commit messages that follow the Conventional Commits specification:
311
+ The type of commit message to generate. Available options:
302
312
 
303
- ```sh
304
- aicommits config set type=conventional
305
- ```
313
+ - `plain`: Simple, unstructured commit messages
314
+ - `conventional`: Conventional Commits format with type and scope
315
+ - `gitmoji`: Emoji-based commit messages
306
316
 
307
- You can clear this option by setting it to an empty string:
317
+ Examples:
308
318
 
309
319
  ```sh
310
- aicommits config set type=
320
+ aicommits config set type=conventional
321
+ aicommits config set type=gitmoji
322
+ aicommits config set type=plain
311
323
  ```
312
324
 
313
325
  ## How it works