#!/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