{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"offset": 100,
"limit": 50
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Framework\/Controller.php",
"content": " }\n\n throw new \\Exception(\"Partial not found: {$name}\");\n }\n\n \/**\n * Output an HTMX-compatible alert message.\n *\n * @param string $type Alert type: 'success', 'error', 'warning', 'info'\n * @param string $message The message to display\n *\/\n protected function htmxAlert(string $type, string $message): void\n {\n $escapedMessage = htmlspecialchars($message, ENT_QUOTES, 'UTF-8');\n echo \"<div class=\\\"alert {$type}\\\">{$escapedMessage}<\/div>\";\n }\n\n \/**\n * Output success alert for HTMX.\n *\/\n protected function htmxSuccess(string $message): void\n {\n $this->htmxAlert('success', $message);\n }\n\n \/**\n * Output error alert for HTMX.\n *\/\n protected function htmxError(string $message): void\n {\n $this->htmxAlert('error', $message);\n }\n\n \/**\n * Check if this is an HTMX request.\n *\/\n protected function isHtmxRequest(): bool\n {\n return isset($_SERVER['HTTP_HX_REQUEST']);\n }\n\n \/**\n * HTMX redirect via header.\n *\/\n protected function htmxRedirect(string $url): void\n {\n header('HX-Redirect: ' . $url);\n $this->text('OK');\n }\n",
"numLines": 50,
"startLine": 100,
"totalLines": 296
}
}
}