@spardutti/claude-skills 2.25.2 → 2.25.3
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/lib/setup-hook.mjs +10 -1
- package/package.json +1 -1
package/lib/setup-hook.mjs
CHANGED
|
@@ -685,6 +685,15 @@ CHANGED=$( { git diff "$BASE"...HEAD --name-only 2>/dev/null
|
|
|
685
685
|
git diff HEAD --name-only 2>/dev/null
|
|
686
686
|
git ls-files --others --exclude-standard 2>/dev/null; } | sort -u )
|
|
687
687
|
|
|
688
|
+
# Only the files this gate can actually read go into the key. It used to be every
|
|
689
|
+
# changed file, so a version bump in package.json or a line in a changelog threw
|
|
690
|
+
# away a receipt the gate would have re-earned unchanged — fifteen minutes of
|
|
691
|
+
# mutation testing to prove nothing about the file that moved, at the one moment
|
|
692
|
+
# a release is trying to ship. An ignored extension is one no check here opens,
|
|
693
|
+
# so it cannot change a verdict. Unknown extensions stay in, because UNPROVEN is
|
|
694
|
+
# a verdict about exactly those.
|
|
695
|
+
KEYED=$(printf '%s\\n' "$CHANGED" | grep -viE "\\.($GAUNTLET_IGNORE_EXT)$")
|
|
696
|
+
|
|
688
697
|
# The repo path plus the names and contents of the changed files, in a fixed
|
|
689
698
|
# order. The path is in there because the key is otherwise pure content: two
|
|
690
699
|
# repos holding the same file would share a receipt, and one would be waved
|
|
@@ -693,7 +702,7 @@ CHANGED=$( { git diff "$BASE"...HEAD --name-only 2>/dev/null
|
|
|
693
702
|
# the moment it was committed. This is identical either side of a commit, and
|
|
694
703
|
# changes the instant any of those files is edited.
|
|
695
704
|
RECEIPT_KEY=$( { printf '%s\\n' "$PROJECT_DIR"
|
|
696
|
-
printf '%s\\n' "$
|
|
705
|
+
printf '%s\\n' "$KEYED" | while IFS= read -r f; do
|
|
697
706
|
[ -n "$f" ] || continue
|
|
698
707
|
printf '%s\\n' "$f"
|
|
699
708
|
[ -f "$f" ] && cat "$f"
|