You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update lint job to check templates/.claude/hooks instead of .claude/hooks
- Fix directive enforcement test to use correct template paths
- Update system integration validation for template-based structure
- Fix NPX package test to work from project root instead of subdirectory
- All paths now reflect current NPX package organization
if echo "implement new login function" | USER_PROMPT="implement new login function" TOOL_NAME="Write" .claude/hooks/directive-enforcer.sh 2>/dev/null; then
61
+
if echo "implement new login function" | USER_PROMPT="implement new login function" TOOL_NAME="Write" templates/.claude/hooks/directive-enforcer.sh 2>/dev/null; then
62
62
echo "❌ DIRECTIVE 1 failed - should have blocked direct implementation"
63
63
exit 1
64
64
else
65
65
echo "✅ DIRECTIVE 1 working - blocked direct implementation"
66
66
fi
67
67
68
68
# Should fail (peer-to-peer routing)
69
-
if echo "send from @agent-a to @agent-b directly" | USER_PROMPT="send from @agent-a to @agent-b directly" TOOL_NAME="Write" .claude/hooks/directive-enforcer.sh 2>/dev/null; then
69
+
if echo "send from @agent-a to @agent-b directly" | USER_PROMPT="send from @agent-a to @agent-b directly" TOOL_NAME="Write" templates/.claude/hooks/directive-enforcer.sh 2>/dev/null; then
70
70
echo "❌ DIRECTIVE 2 failed - should have blocked peer-to-peer routing"
71
71
exit 1
72
72
else
@@ -108,13 +108,13 @@ jobs:
108
108
- name: Lint hook scripts
109
109
run: |
110
110
echo "Linting hook scripts..."
111
-
find .claude/hooks -name "*.sh" -type f -exec shellcheck {} +
111
+
find templates/.claude/hooks -name "*.sh" -type f -exec shellcheck {} +
112
112
echo "✅ All hook scripts pass shellcheck"
113
113
114
114
- name: Validate hook permissions
115
115
run: |
116
116
echo "Checking hook script permissions..."
117
-
find .claude/hooks -name "*.sh" -type f -exec test -x {} \; -print
117
+
find templates/.claude/hooks -name "*.sh" -type f -exec test -x {} \; -print
0 commit comments