- CLAUDE.md with collaboration rules and Planner/Generator/Evaluator cycle - .claude/ agents, commands, skills, hooks per Claude Code conventions - Sprint Contracts for sut-prober, normalizer, recorder, player, diff-reporter - SUT catalog (EG-BIM Modeler, 187 plugins) and .gitignore excluding SUT tree - PROGRESS.md / PLAN.md as shared agent handoff state - Solution scaffold targeting sut-prober PoC Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
561 B
Bash
17 lines
561 B
Bash
#!/usr/bin/env bash
|
|
# PreToolUse(Bash) hook: warn if the agent is about to launch the SUT binary
|
|
# without going through the runner/player. Does not block; just informs.
|
|
set -e
|
|
|
|
input=$(cat)
|
|
cmd=$(echo "$input" | jq -r '.tool_input.command // ""')
|
|
|
|
if echo "$cmd" | grep -qi 'EG-BIM Modeler\.exe'; then
|
|
jq -n '{
|
|
hookSpecificOutput: {
|
|
hookEventName: "PreToolUse",
|
|
additionalContext: "⚠ SUT 실행 감지: EG-BIM Modeler.exe 는 player/runner 를 통해서만 실행하세요. sut-explorer 는 정적 분석만 허용됩니다."
|
|
}
|
|
}'
|
|
fi
|