{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo '{\"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"\/test\/Controller\/Bad.php\", \"content\": \"<?php\\nclass Bad {}\"}}' | \/var\/www\/tools\/ki-protokoll\/claude-hook\/hook_dispatcher.py pre 2>&1",
"description": "Test hook with debug"
}
}
{
"tool_response": {
"stdout": "[QUALITY] Task creation failed: 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)\n{\"hookSpecificOutput\": {\"hookEventName\": \"PreToolUse\", \"permissionDecision\": \"deny\", \"permissionDecisionReason\": \"QUALITY VIOLATION [P1.1]: Missing @responsibility header. Add: \/\/ @responsibility: <single-responsibility>\"}}",
"stderr": "",
"interrupted": false,
"isImage": false
}
}