{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo '{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\/src\/Controller\/TestController.php\", \"content\": \"<?php\\nclass Test { private \\\\PDO $db; }\"}}' | python3 \/var\/www\/tools\/ki-protokoll\/claude-hook\/architecture_guard.py 2>&1; echo \"Exit code: $?\"",
"description": "Test architecture guard with stderr"
}
}
{
"tool_response": {
"stdout": "Exit code:",
"stderr": "",
"interrupted": false,
"isImage": false
}
}