{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "echo \"=== Layer Violations Check ===\" && echo \"Domain → Infrastructure imports:\" && grep -rh \"use Infrastructure\\\\\\\\\" Domain\/ 2>\/dev\/null | wc -l && echo \"UseCases → Infrastructure imports:\" && grep -rh \"use Infrastructure\\\\\\\\\" UseCases\/ 2>\/dev\/null | wc -l && echo \"Controller direct SQL:\" && grep -rE \"SELECT|INSERT|UPDATE|DELETE\" Controller\/*.php 2>\/dev\/null | wc -l",
"description": "Check layer violations"
}
}