@sugarmo/aicommits 1.18.0 → 1.19.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 (3) hide show
  1. package/README.md +20 -0
  2. package/dist/cli.mjs +112 -111
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -90,6 +90,16 @@ aicommits --print # or --no-commit
90
90
 
91
91
  This uses the first generated message and exits before running `git commit`.
92
92
 
93
+ #### Steer the first AI draft
94
+
95
+ Use `--steer` to give the model one-off context about what the commit is meant to accomplish before it writes the first draft:
96
+
97
+ ```sh
98
+ aicommits --steer "Fix the page failing to load"
99
+ ```
100
+
101
+ The steer text helps the model describe the intent of the change instead of only restating the diff. The diff remains the source of truth if the steer text conflicts with the code.
102
+
93
103
  #### Guide output with Markdown
94
104
 
95
105
  Commit message style is now controlled by a Markdown file instead of individual formatting flags.
@@ -314,6 +324,16 @@ Use `0` to switch back to auto mode:
314
324
  aicommits config set context-window=0
315
325
  ```
316
326
 
327
+ #### include-submodule-commits
328
+
329
+ Default: `false`
330
+
331
+ When a staged or uncommitted change updates a Git submodule pointer, include that submodule's commit log in the diff sent to the model. This gives the model the submodule commit subjects as context instead of only seeing the old and new submodule SHAs.
332
+
333
+ ```sh
334
+ aicommits config set include-submodule-commits=true
335
+ ```
336
+
317
337
  #### message-path
318
338
 
319
339
  Default: `message.md`