@kud/ai-conventional-commit-cli 0.13.0 → 0.13.1

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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ var ensureStagedChanges = async () => {
34
34
  return status.staged.length > 0;
35
35
  };
36
36
  var getStagedDiffRaw = async () => {
37
- return git.diff(["--cached", "--unified=3", "--no-color"]);
37
+ return git.diff(["--cached", "--unified=3", "--no-color", "-M"]);
38
38
  };
39
39
  var HUNK_HEADER_RE = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@ ?(.*)$/;
40
40
  var parseDiffFromRaw = (raw) => {
@@ -54,6 +54,9 @@ var parseDiffFromRaw = (raw) => {
54
54
  }
55
55
  if (line.startsWith("diff --git")) continue;
56
56
  if (line.startsWith("index ")) continue;
57
+ if (line.startsWith("similarity index ")) continue;
58
+ if (line.startsWith("rename from ")) continue;
59
+ if (line.startsWith("rename to ")) continue;
57
60
  if (/^deleted file mode /.test(line)) {
58
61
  if (currentFile) currentFile.deleted = true;
59
62
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/ai-conventional-commit-cli",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
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": {