pub fn build_response(stdin_payload: &str) -> Value
Build the hook response for a PreToolUse payload. Public for testability — callers in tests feed in a payload string and assert the response shape without going through stdin.