gityo 1.0.9 → 1.0.11
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 +18 -1
- package/dist/index.js +1018 -804
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -154,10 +154,27 @@ Example:
|
|
|
154
154
|
"autoAcceptMessage": false,
|
|
155
155
|
"postCommand": "push",
|
|
156
156
|
"autoRunPostCommand": false,
|
|
157
|
-
"instructions": "Write short, clear commit messages."
|
|
157
|
+
"instructions": "Write short, clear commit messages.",
|
|
158
|
+
"maxDiffTokens": 24000,
|
|
159
|
+
"perFileCap": 400
|
|
158
160
|
}
|
|
159
161
|
```
|
|
160
162
|
|
|
163
|
+
### Large changes
|
|
164
|
+
|
|
165
|
+
When the diff is small, it is sent to the model as-is. When it is too large for one request, gityo minimizes it first:
|
|
166
|
+
|
|
167
|
+
- regenerates the diff with minimal context lines
|
|
168
|
+
- drops lock files and minified/generated files from the payload
|
|
169
|
+
- caps each file's patch and lists every changed file with its line counts so the model still sees the full picture
|
|
170
|
+
|
|
171
|
+
If the minimized diff is still too large, each remaining part is summarized in parallel and a final commit message is generated from those summaries.
|
|
172
|
+
|
|
173
|
+
Two optional config knobs control this:
|
|
174
|
+
|
|
175
|
+
- `maxDiffTokens` — estimated token budget for the diff sent to the model (default `24000`)
|
|
176
|
+
- `perFileCap` — max diff lines kept per file when minimizing (default `400`)
|
|
177
|
+
|
|
161
178
|
Example instructions file:
|
|
162
179
|
|
|
163
180
|
```md
|