cc-discipline 2.13.1 → 2.13.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.
Files changed (2) hide show
  1. package/init.sh +6 -0
  2. package/package.json +1 -1
package/init.sh CHANGED
@@ -470,6 +470,11 @@ _cc_hash() {
470
470
  # only overwrite a file that is byte-identical to what we would install anyway.
471
471
  _cc_hash_matches() {
472
472
  _f="$1"; _rec="$2"
473
+ # The manifest itself has no file extension, so .gitattributes rules keyed on
474
+ # *.sh/*.md/*.json never cover it and git may hand it back with CRLF. A
475
+ # trailing CR then rides along in the recorded digest and every comparison
476
+ # fails — the same bug this function exists to fix, one level up. Strip it.
477
+ _rec=${_rec%$'\r'}
473
478
  [ -n "$_rec" ] || return 1
474
479
  [ -f "$_f" ] || return 1
475
480
  case "$_rec" in
@@ -570,6 +575,7 @@ if [ -s "$OLD_MANIFEST" ]; then
570
575
  # user put inside the skill directory that we never installed and
571
576
  # therefore cannot account for.
572
577
  while read -r rel _; do
578
+ rel=${rel%$'\r'}
573
579
  case "$rel" in "$old_skill"/*) ;; *) continue ;; esac
574
580
  rm -f ".claude/skills/$rel"
575
581
  done < "$OLD_MANIFEST"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-discipline",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "Discipline framework for Claude Code — rules, hooks, and agents that keep AI on track",
5
5
  "bin": {
6
6
  "cc-discipline": "bin/cli.js"