{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "for uri in \\\n \"\/semantic-explorer\" \\\n \"\/semantic-explorer\/dokumente\" \\\n \"\/semantic-explorer\/chunks\" \\\n \"\/semantic-explorer\/semantik\" \\\n \"\/semantic-explorer\/suche\" \\\n \"\/semantic-explorer\/graph\" \\\n \"\/semantic-explorer\/graph-data\" \\\n \"\/semantic-explorer\/entitaeten\" \\\n \"\/semantic-explorer\/entitaeten\/new\" \\\n \"\/semantic-explorer\/entitaeten\/377\" \\\n \"\/semantic-explorer\/relationen\" \\\n \"\/semantic-explorer\/relationen\/new\" \\\n \"\/semantic-explorer\/taxonomie\" \\\n \"\/semantic-explorer\/taxonomie\/new\" \\\n \"\/semantic-explorer\/ontologie\" \\\n \"\/semantic-explorer\/ontologie\/new\" \\\n \"\/semantic-explorer\/stopwords\" \\\n \"\/semantic-explorer\/stopwords\/new\"\ndo\n result=$(REQUEST_URI=\"$uri\" REQUEST_METHOD=\"GET\" php public\/index.php 2>&1)\n if echo \"$result\" | grep -q \"Fatal error\\|Exception\\|SQLSTATE\"; then\n error=$(echo \"$result\" | grep -oP \"(?<=Fatal error:|Exception:|SQLSTATE\\[)[^]]+\")\n echo \"FAIL: $uri → $error\"\n else\n echo \"OK: $uri\"\n fi\ndone",
"description": "Test all semantic-explorer routes"
}
}