Added SessionStart hook that adds $CLAUDE_PROJECT_DIR/target/release to PATH via CLAUDE_ENV_FILE. This makes `blue` available by name in all subsequent hooks. - .claude/hooks/session-start.sh: Sets PATH on session start - .claude/hooks/guard-write.sh: Now uses `blue` instead of full path - .claude/settings.json: Added SessionStart hook Requires Claude Code restart to take effect. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9 lines
273 B
Bash
Executable file
9 lines
273 B
Bash
Executable file
#!/bin/bash
|
|
# SessionStart hook - sets up PATH for blue CLI
|
|
# RFC 0051: Portable hook binary resolution
|
|
|
|
if [ -n "$CLAUDE_ENV_FILE" ] && [ -n "$CLAUDE_PROJECT_DIR" ]; then
|
|
echo "export PATH=\"\$CLAUDE_PROJECT_DIR/target/release:\$PATH\"" >> "$CLAUDE_ENV_FILE"
|
|
fi
|
|
|
|
exit 0
|