{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "for i in {1..30}; do\n sleep 10\n STATUS=$(mysql -u root -pv8mFLmkF2fth_r -N -e \"SELECT generation_status FROM ki_content.content_orders WHERE id=30\" 2>\/dev\/null)\n echo \"[$i] Status: $STATUS\"\n if [ \"$STATUS\" = \"completed\" ] || [ \"$STATUS\" = \"failed\" ]; then\n break\n fi\ndone\necho \"=== FINAL ===\"\nmysql -u root -pv8mFLmkF2fth_r -N -e \"SELECT generation_status, generation_step, LEFT(generation_log, 500) FROM ki_content.content_orders WHERE id=30\" 2>\/dev\/null",
"timeout": 360000,
"description": "Monitor generation until complete"
}
}