@himamshus06/git-auto 1.1.1 → 1.2.0

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 +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,8 @@
7
7
  - **One-Command Workflow**: Stages all changes and commits them in one go.
8
8
  - **AI-Powered Messages**: Analyzes your `git diff` to generate a meaningful commit message.
9
9
  - **Conventional Commits**: Follows the [Conventional Commits](https://www.conventionalcommits.org/) specification (e.g., `feat:`, `fix:`, `chore:`).
10
- - **Customizable**: Override AI messages with your own or preview them before committing.
10
+ - **Smart Diff Handling**: Uses a Map-Reduce approach to summarize large changes, ensuring no detail is lost regardless of diff size.
11
+ - **Interactive Experience**: Preview and edit AI-generated messages before they are committed to your history.
11
12
 
12
13
  ## 📦 Installation
13
14
 
@@ -95,8 +96,11 @@ git auto commit --dry-run
95
96
 
96
97
  1. **Staging**: Runs `git add .` to stage all changes.
97
98
  2. **Diffing**: Extracts the staged changes using `git diff --cached`.
98
- 3. **AI Generation**: Sends the diff to a Large Language Model (LLM) via Groq.
99
- 4. **Committing**: Executes `git commit -m "generated_message"`.
99
+ 3. **AI Generation**:
100
+ - **Map Phase**: For large diffs, it splits the changes into manageable chunks and generates a concise summary for each.
101
+ - **Reduce Phase**: It then aggregates these summaries into a single, professional commit message following Conventional Commits.
102
+ 4. **Interactive Review**: Presents the generated message for your approval or modification.
103
+ 5. **Committing**: Executes `git commit -m "final_message"`.
100
104
 
101
105
  ## 📜 License
102
106
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@himamshus06/git-auto",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "bin": {