@sachinthapa572/lazycommit 1.0.0 → 1.0.1

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 (2) hide show
  1. package/README.md +31 -64
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -5,65 +5,28 @@
5
5
 
6
6
  </div>
7
7
  <p>A CLI that writes your git commit messages for you with AI providers. Never write a commit message again.</p>
8
- <a href="https://www.npmjs.com/package/lazycommitz"><img src="https://img.shields.io/npm/v/lazycommitt" alt="Current version"></a>
9
- <a href="https://github.com/KartikLabhshetwar/lazycommit"><img src="https://img.shields.io/github/stars/KartikLabhshetwar/lazycommit" alt="GitHub stars"></a>
10
- <a href="https://github.com/KartikLabhshetwar/lazycommit/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/lazycommitt" alt="License"></a>
8
+
11
9
  </div>
12
10
 
13
11
  ---
14
12
 
15
- <div align="center">
16
- <a href="https://peerlist.io/code_kartik/project/lazycommit" ><img width="400" height="128" alt="LazyCommit" src="https://github.com/user-attachments/assets/5d54d238-38f4-44f2-b253-3959b2487987" /></a>
17
- </div>
18
-
19
13
  ## Setup
20
14
 
21
15
  > The minimum supported version of Node.js is v18. Check your Node.js version with `node --version`.
22
16
 
23
- 1. Install _lazycommit_:
17
+ ### Prerequisites
24
18
 
25
- ```sh
26
- npm install -g lazycommitt
27
- ```
19
+ - Git installed and available in your PATH
20
+ - Node.js `>=18`
28
21
 
29
- ### Install via Homebrew (macOS)
22
+ ### Install
30
23
 
31
- Install via Homebrew tap:
24
+ Install _lazycommit_ globally:
32
25
 
33
26
  ```sh
34
- brew tap KartikLabhshetwar/lazycommit https://github.com/KartikLabhshetwar/lazycommit
35
- brew install lazycommit
27
+ npm install -g @sachinthapa572/lazycommit
36
28
  ```
37
29
 
38
- Upgrade:
39
-
40
- ```sh
41
- brew update
42
- brew upgrade lazycommit
43
- ```
44
-
45
- 2. Choose your provider:
46
- - **Groq** (default): retrieve your API key from [Groq Console](https://console.groq.com/keys)
47
- - **GitHub Copilot**: install and login to Copilot CLI:
48
-
49
- ```sh
50
- copilot auth login
51
- ```
52
-
53
- 3. Configure lazycommit:
54
-
55
- ```sh
56
- lazycommit config
57
- ```
58
-
59
- For Groq, you can also set the key directly:
60
-
61
- ```sh
62
- lazycommit config set GROQ_API_KEY=<your token>
63
- ```
64
-
65
- This creates a `.lazycommit` file in your home directory.
66
-
67
30
  ### Upgrading
68
31
 
69
32
  Check the installed version with:
@@ -72,10 +35,10 @@ Check the installed version with:
72
35
  lazycommit --version
73
36
  ```
74
37
 
75
- If it's not the [latest version](https://github.com/KartikLabhshetwar/lazycommit/releases/latest), run:
38
+ If it's not the [latest version](https://github.com/sachinthapa572/lazycommit/releases/latest), run:
76
39
 
77
40
  ```sh
78
- npm update -g lazycommitt
41
+ npm update -g @sachinthapa572/lazycommit
79
42
  ```
80
43
 
81
44
  ## Usage
@@ -89,7 +52,7 @@ git add <files...>
89
52
  lazycommit
90
53
  ```
91
54
 
92
- `lazycommit` passes down unknown flags to `git commit`, so you can pass in [`commit` flags](https://git-scm.com/docs/git-commit).
55
+ `lazycommit` passes unknown flags to `git commit`, so you can pass [`commit` flags](https://git-scm.com/docs/git-commit).
93
56
 
94
57
  For example, you can stage all changes in tracked files as you commit:
95
58
 
@@ -201,6 +164,12 @@ Run:
201
164
  lazycommit config
202
165
  ```
203
166
 
167
+ You can also run the explicit setup mode:
168
+
169
+ ```sh
170
+ lazycommit config setup
171
+ ```
172
+
204
173
  This opens a step-by-step setup flow for:
205
174
 
206
175
  - provider
@@ -274,6 +243,8 @@ lazycommit config set GROQ_API_KEY=<your-api-key> generate=3 locale=en
274
243
 
275
244
  ### Options
276
245
 
246
+ > Note: `generate` supports values from `1` to `5`.
247
+
277
248
  #### GROQ_API_KEY
278
249
 
279
250
  Required
@@ -341,6 +312,7 @@ Available models by provider:
341
312
  - `github`:
342
313
  - `gpt-5-mini` (default)
343
314
  - `gpt-5.4-mini`
315
+ - `gpt-4o-mini-2024-07-18`
344
316
 
345
317
  Example:
346
318
 
@@ -350,7 +322,7 @@ lazycommit config set provider=github model=gpt-5.4-mini
350
322
 
351
323
  #### timeout
352
324
 
353
- The timeout for network requests to the Groq API in milliseconds.
325
+ The timeout for provider requests in milliseconds.
354
326
 
355
327
  Default: `1000` (1 second)
356
328
 
@@ -410,9 +382,9 @@ This CLI tool runs `git diff` to grab all your latest code changes, then sends t
410
382
  Provider behavior:
411
383
 
412
384
  - `groq` uses Groq API with `GROQ_API_KEY`
413
- - `github` uses GitHub Copilot SDK and your local Copilot CLI login session
385
+ - `github` uses GitHub Copilot SDK and your local Copilot CLI login session (`copilot auth login`)
414
386
 
415
- ### Large diff handling
387
+ ### Large diff handling (automatic)
416
388
 
417
389
  For large commits that exceed API token limits, lazycommit automatically:
418
390
 
@@ -440,7 +412,7 @@ If you get a 413 error, your diff is too large for the API. Try these solutions:
440
412
  2. **Use a different model**:
441
413
 
442
414
  ```sh
443
- lazycommit config set model "groq/compound-mini"
415
+ lazycommit config set model=groq/compound-mini
444
416
  ```
445
417
 
446
418
  3. **Commit in smaller batches**:
@@ -455,33 +427,28 @@ If you get a 413 error, your diff is too large for the API. Try these solutions:
455
427
 
456
428
  - Check provider settings: `lazycommit config show`
457
429
  - For `groq`, verify `GROQ_API_KEY` is set
458
- - For `github`, run `copilot auth login`
430
+ - For `github`, ensure `copilot` CLI is installed and run `copilot auth login`
459
431
  - Verify you have staged changes: `git status`
460
432
  - Try excluding large files or using a different model
461
433
 
462
434
  ### Slow performance with large diffs
463
435
 
464
- - **Use the default model**: `lazycommit config set model "openai/gpt-oss-120b"`
436
+ - **Use the default model**: `lazycommit config set model=openai/gpt-oss-120b`
465
437
  - Exclude unnecessary files: `lazycommit --exclude "*.log" --exclude "*.tmp"`
466
438
  - Use the built-in large diff handling for better context and accuracy
467
439
  - Lower generate count: `lazycommit config set generate=1` (default)
468
440
  - Reduce timeout: `lazycommit config set timeout=5000` for faster failures
469
441
 
470
- ## Why Groq?
442
+ ## Why lazycommit?
471
443
 
472
- - **Fast**: Groq provides ultra-fast inference speeds, especially with the 8B instant model
473
- - **Cost-effective**: More affordable than traditional AI APIs
474
- - **Open source models**: Uses leading open-source language models
475
- - **Reliable**: High uptime and consistent performance
476
- - **Optimized for commits**: The 8B instant model is perfectly sized for conventional commit generation
444
+ - **Fast workflow**: Generate commit messages directly from staged changes
445
+ - **Provider choice**: Use Groq or GitHub Copilot
446
+ - **Works for large commits**: Built-in compact summaries and context snippets
447
+ - **Flexible output**: Generate one or multiple suggestions and edit before committing
477
448
 
478
449
  ## Maintainers
479
450
 
480
- - **Kartik Labhshetwar**: [@KartikLabhshetwar](https://github.com/KartikLabhshetwar)
481
-
482
- ## Contributing
483
-
484
- If you want to help fix a bug or implement a feature in [Issues](https://github.com/KartikLabhshetwar/lazycommit/issues), checkout the [Contribution Guide](CONTRIBUTING.md) to learn how to setup and test the project.
451
+ - **Sachin Thapa**: [@sachinthapa572](https://github.com/sachinthapa572)
485
452
 
486
453
  ## License
487
454
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sachinthapa572/lazycommit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Writes your git commit messages for you with AI providers",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -13,8 +13,7 @@
13
13
  ],
14
14
  "author": "Sachin Thapa",
15
15
  "license": "Apache-2.0",
16
- "homepage": "https://lazycommit.vercel.app",
17
- "repository": "sachin/lazycommit(fork)",
16
+ "repository": "sachinthapa572/lazycommit",
18
17
  "type": "module",
19
18
  "publishConfig": {
20
19
  "access": "public"
@@ -46,4 +45,4 @@
46
45
  "tsx": "^4.20.5",
47
46
  "typescript": "^5.9.2"
48
47
  }
49
- }
48
+ }