gut-cli 0.1.4 → 0.1.6

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
@@ -17,8 +17,9 @@ All AI commands support short aliases (without `ai-` prefix):
17
17
  | `gut ai-commit` | `gut commit` | Generate commit messages |
18
18
  | `gut ai-pr` | `gut pr` | Generate PR descriptions |
19
19
  | `gut ai-review` | `gut review` | Code review |
20
- | `gut ai-diff` | `gut diff` | Explain changes |
21
20
  | `gut ai-merge` | `gut merge` | Resolve merge conflicts |
21
+ | `gut ai-explain` | `gut explain` | Explain changes, commits, PRs, or files |
22
+ | `gut ai-find` | `gut find` | Find commits by vague description |
22
23
  | `gut changelog` | - | Generate changelogs |
23
24
 
24
25
  ### `gut commit`
@@ -86,39 +87,86 @@ gut review 123
86
87
  gut review --json
87
88
  ```
88
89
 
89
- ### `gut diff`
90
+ ### `gut merge`
90
91
 
91
- Get an AI-powered explanation of your changes.
92
+ Merge branches with AI-powered conflict resolution.
92
93
 
93
94
  ```bash
94
- # Explain all uncommitted changes
95
- gut diff
95
+ # Merge a branch with AI conflict resolution
96
+ gut merge feature/login
97
+
98
+ # Use specific provider
99
+ gut merge feature/login --provider openai
100
+
101
+ # Don't auto-commit after resolving
102
+ gut merge feature/login --no-commit
103
+ ```
104
+
105
+ ### `gut explain`
106
+
107
+ Get AI-powered explanations of changes, commits, PRs, or file contents.
108
+
109
+ ```bash
110
+ # Explain uncommitted changes (default)
111
+ gut explain
96
112
 
97
113
  # Explain staged changes only
98
- gut diff --staged
114
+ gut explain --staged
115
+
116
+ # Explain a specific commit
117
+ gut explain abc123
118
+ gut explain HEAD
119
+
120
+ # Explain a PR (requires gh CLI)
121
+ gut explain 123
122
+ gut explain #123
99
123
 
100
- # Explain specific commit
101
- gut diff --commit abc123
124
+ # Explain a file's purpose and contents
125
+ gut explain src/index.ts
126
+
127
+ # Explain file's recent change history
128
+ gut explain src/index.ts --history
129
+
130
+ # Explain multiple recent commits for a file
131
+ gut explain src/index.ts --history -n 5
102
132
 
103
133
  # Output as JSON
104
- gut diff --json
134
+ gut explain --json
105
135
  ```
106
136
 
107
- ### `gut merge`
137
+ **Project Context Support**: Create `.gut/explain.md` to provide project-specific context for better explanations.
108
138
 
109
- Merge branches with AI-powered conflict resolution.
139
+ ### `gut find`
140
+
141
+ Find commits matching a vague description using AI.
110
142
 
111
143
  ```bash
112
- # Merge a branch with AI conflict resolution
113
- gut merge feature/login
144
+ # Find commits related to a feature
145
+ gut find "login feature"
114
146
 
115
- # Use specific provider
116
- gut merge feature/login --provider openai
147
+ # Find bug fixes
148
+ gut find "fixed the crash"
117
149
 
118
- # Don't auto-commit after resolving
119
- gut merge feature/login --no-commit
150
+ # Search with filters
151
+ gut find "API changes" --author "John" --since "2024-01-01"
152
+
153
+ # Limit search scope
154
+ gut find "refactoring" --path src/lib --num 50
155
+
156
+ # Output as JSON
157
+ gut find "authentication" --json
120
158
  ```
121
159
 
160
+ **Options:**
161
+ - `-n, --num <n>` - Number of commits to search (default: 100)
162
+ - `--path <path>` - Limit to commits affecting this path
163
+ - `--author <author>` - Limit to commits by this author
164
+ - `--since <date>` - Limit to commits after this date
165
+ - `--until <date>` - Limit to commits before this date
166
+ - `--max-results <n>` - Max matching commits to return (default: 5)
167
+
168
+ **Project Context Support**: Create `.gut/find.md` to provide project-specific context for better search results.
169
+
122
170
  ### `gut changelog`
123
171
 
124
172
  Generate a changelog from commits.
@@ -189,6 +237,8 @@ gut looks for these configuration files in your repository:
189
237
  | `.gut/pr-template.md` | PR description template |
190
238
  | `.gut/changelog-template.md` | Changelog style template |
191
239
  | `.gut/merge-strategy.md` | Merge conflict resolution rules |
240
+ | `.gut/explain.md` | Project context for explanations |
241
+ | `.gut/find.md` | Project context for commit search |
192
242
  | `.github/pull_request_template.md` | PR template (fallback) |
193
243
  | `CHANGELOG.md` | Changelog style (fallback) |
194
244