@kud/ai-conventional-commit-cli 0.12.0 → 0.12.2

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
@@ -113,12 +113,38 @@ ai-conventional-commit refine --shorter
113
113
 
114
114
  ## Command Reference
115
115
 
116
+ ### Reword Existing Commit
117
+
118
+ Reword (improve) the message of an existing non-merge commit without touching its diff.
119
+
120
+ ```
121
+ # Interactive picker (last 20 commits)
122
+ ai-conventional-commit reword
123
+
124
+ # Reword HEAD (auto-amend)
125
+ ai-conventional-commit reword HEAD
126
+
127
+ # Reword older commit (shows interactive rebase instructions)
128
+ ai-conventional-commit reword <hash>
129
+
130
+ # With style/model overrides
131
+ ai-conventional-commit reword <hash> --style gitmoji -m github-copilot/gpt-4.1
132
+ ```
133
+
134
+ Notes:
135
+
136
+ - Merge commits (multiple parents) are rejected.
137
+ - If target is HEAD and accepted, the commit is amended in-place.
138
+ - If not HEAD, printed instructions guide you through `git rebase -i --reword`.
139
+ - Title formatting (gitmoji, normalization) matches other commands.
140
+
116
141
  | Command | Purpose |
117
142
  | ------------------------------------ | ------------------------------------------- |
118
143
  | `ai-conventional-commit` | Generate single commit suggestion (default) |
119
144
  | `ai-conventional-commit generate` | Explicit alias of root |
120
145
  | `ai-conventional-commit split` | Propose & execute multiple commits |
121
146
  | `ai-conventional-commit refine` | Refine last session (or indexed) commit |
147
+ | `ai-conventional-commit reword` | AI-assisted reword of existing commit |
122
148
  | `ai-conventional-commit models` | List / pick models, save default |
123
149
  | `ai-conventional-commit config show` | Show merged config + sources |
124
150
  | `ai-conventional-commit config get` | Get a single config value |
package/dist/index.js CHANGED
@@ -669,7 +669,7 @@ async function runRefine(config, options) {
669
669
  // package.json
670
670
  var package_default = {
671
671
  name: "@kud/ai-conventional-commit-cli",
672
- version: "0.12.0",
672
+ version: "0.12.2",
673
673
  type: "module",
674
674
  description: "Opinionated, style-aware AI assistant for crafting and splitting git commits (opencode-based, provider-agnostic).",
675
675
  bin: {
@@ -1082,9 +1082,13 @@ var RewordCommand = class extends Command {
1082
1082
  ]
1083
1083
  });
1084
1084
  hash = Option.String({ required: false });
1085
+ style = Option.String("--style", { required: false, description: "Title style override" });
1086
+ model = Option.String("-m,--model", { required: false, description: "Model override" });
1085
1087
  async execute() {
1086
1088
  const { runReword } = await import("./reword-FE5N4MGV.js");
1087
1089
  const config = await loadConfig();
1090
+ if (this.style) config.style = this.style;
1091
+ if (this.model) config.model = this.model;
1088
1092
  let target = this.hash;
1089
1093
  if (!target) {
1090
1094
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/ai-conventional-commit-cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "type": "module",
5
5
  "description": "Opinionated, style-aware AI assistant for crafting and splitting git commits (opencode-based, provider-agnostic).",
6
6
  "bin": {