#!/usr/bin/env bash # PreToolUse(Edit|Write) hook: block modifications to the EG-BIM Modeler/ folder. # The SUT binary tree is read-only from recordingtest's perspective. set -e input=$(cat) path=$(echo "$input" | jq -r '.tool_input.file_path // ""') case "$path" in */EG-BIM\ Modeler/*|*"EG-BIM Modeler"*) >&2 echo "🚫 EG-BIM Modeler/ is the SUT binary tree and must not be modified by recordingtest. Use docs/sut-catalog/ for derived data." exit 2 ;; esac exit 0