@spardutti/claude-skills 2.44.2 → 2.44.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.
|
@@ -103,3 +103,10 @@ structure_fail() {
|
|
|
103
103
|
rm -f "$RECEIPT"
|
|
104
104
|
exit 1
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
# An agent that pipes the gate through `tail` cuts the findings off; the last line still says where they are.
|
|
108
|
+
gate_report() {
|
|
109
|
+
REPORT="/tmp/claude-shipgate-$1.log"
|
|
110
|
+
exec > >(tee "$REPORT") 2>&1
|
|
111
|
+
trap 'echo "ship-gate: full output in $REPORT"' EXIT
|
|
112
|
+
}
|
package/hooks/ship-gate.sh
CHANGED
|
@@ -112,8 +112,7 @@ CHANGED=$(changed_files)
|
|
|
112
112
|
# diff-based key changes when the content did not, and the receipt would go stale
|
|
113
113
|
# the moment it was committed. This is identical either side of a commit, and
|
|
114
114
|
# changes the instant any of those files is edited.
|
|
115
|
-
RECEIPT_KEY=$(receipt_key)
|
|
116
|
-
RECEIPT="/tmp/claude-shipgate-$RECEIPT_KEY"
|
|
115
|
+
RECEIPT_KEY=$(receipt_key); RECEIPT="/tmp/claude-shipgate-$RECEIPT_KEY"
|
|
117
116
|
|
|
118
117
|
if [ "$MODE" = key ]; then printf '%s\n' "$RECEIPT_KEY"; exit 0; fi
|
|
119
118
|
if [ "$MODE" = force ]; then
|
|
@@ -121,6 +120,7 @@ if [ "$MODE" = force ]; then
|
|
|
121
120
|
echo "ship-gate: FORCED — receipt written without running any check."
|
|
122
121
|
exit 0
|
|
123
122
|
fi
|
|
123
|
+
gate_report "$RECEIPT_KEY"
|
|
124
124
|
SOURCED=$(printf '%s\n' "$CHANGED" | grep -E "\.($GAUNTLET_SOURCE_EXT)$" \
|
|
125
125
|
| grep -vE '(\.|_)(test|spec)\.[^.]+$|(^|/)tests?/|(^|/)\.stryker-tmp/' | while read -r f; do
|
|
126
126
|
[ -f "$f" ] && printf '%s\n' "$f"
|