{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "# Create temp input and test\necho '{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\/var\/www\/dev\/src\/Service\/TestService.php\", \"content\": \"<?php\\n\\nnamespace Service;\\n\\nclass TestService {}\"}}' > \/tmp\/test_input.json\npython3 \/var\/www\/tools\/ki-protokoll\/claude-hook\/architecture_guard.py < \/tmp\/test_input.json",
"description": "Test with temp file input"
}
}
{
"tool_response": {
"stdout": "{\"allowed\": false, \"message\": \"ARCHITECTURE VIOLATION [H1]: Missing declare(strict_types=1). Add at top of file after <?php\"}",
"stderr": "",
"interrupted": false,
"isImage": false
}
}