@slamb2k/mad-skills 2.0.10 → 2.0.11
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.
|
@@ -40,20 +40,15 @@ if [[ $(echo "$CONTEXT" | grep -c '⚠️\|ℹ️') -eq 0 ]]; then
|
|
|
40
40
|
exit 0
|
|
41
41
|
fi
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
# Output context as plain stdout to avoid the cosmetic "error" label
|
|
44
|
+
# that Claude Code renders when additionalContext is in the JSON output.
|
|
45
|
+
# Plain stdout is picked up as hook output without the error severity.
|
|
46
|
+
cat <<EOF
|
|
44
47
|
[SESSION GUARD — FIRST PROMPT REMINDER]
|
|
45
48
|
The following was detected at session start. Act on these items NOW using
|
|
46
49
|
AskUserQuestion BEFORE proceeding with the user's request.
|
|
47
50
|
|
|
48
51
|
$CONTEXT
|
|
49
52
|
EOF
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
jq -n --arg ctx "$WRAPPED" '{
|
|
53
|
-
hookSpecificOutput: {
|
|
54
|
-
hookEventName: "UserPromptSubmit",
|
|
55
|
-
additionalContext: $ctx
|
|
56
|
-
}
|
|
57
|
-
}'
|
|
58
53
|
|
|
59
54
|
exit 0
|
package/package.json
CHANGED
package/skills/manifest.json
CHANGED