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 +24 -12
- package/dist/{cli-iLQtbRMZ.mjs → cli-CKnsCC3o.mjs} +67 -67
- package/dist/cli.mjs +1 -1
- package/dist/{token-DGsOqfY2.mjs → token-CIjBnSYr.mjs} +1 -1
- package/dist/{token-util-Dl-UuEAO.mjs → token-util-Bd24i995.mjs} +1 -1
- package/dist/{token-util-Cfn9I6LT.mjs → token-util-C_-jkCem.mjs} +1 -1
- package/package.json +1 -4
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!
|
|
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: **
|
|
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
|
-
####
|
|
115
|
+
#### Commit Message Formats
|
|
114
116
|
|
|
115
|
-
|
|
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
|
|
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: `
|
|
309
|
+
Default: `plain`
|
|
300
310
|
|
|
301
|
-
The type of commit message to generate.
|
|
311
|
+
The type of commit message to generate. Available options:
|
|
302
312
|
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
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
|