{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "REQUEST_URI=\"\/content-pipeline\/3\/run\/3\/status\" REQUEST_METHOD=\"GET\" php \/var\/www\/dev.campus.systemische-tools.de\/public\/index.php",
"description": "Check pipeline run status"
}
}
{
"tool_response": {
"stdout": "<!DOCTYPE html>\n<html lang=\"de\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Pipeline Status: Vollständiger RAG-Prozess<\/title>\n <link rel=\"icon\" type=\"image\/png\" href=\"https:\/\/campus-am-see.de\/wp-content\/uploads\/menu-logo.png\">\n <link rel=\"apple-touch-icon\" href=\"https:\/\/campus-am-see.de\/wp-content\/uploads\/menu-logo.png\">\n <link rel=\"stylesheet\" href=\"\/css\/designtokens.css\">\n <link rel=\"stylesheet\" href=\"\/css\/nav.css\">\n <link rel=\"stylesheet\" href=\"\/css\/style.css\">\n <link rel=\"stylesheet\" href=\"\/css\/admin.css\">\n <link rel=\"stylesheet\" href=\"\/css\/home.css\">\n <script src=\"\/js\/htmx.min.js\"><\/script>\n<\/head>\n<body>\n <header>\n <nav class=\"main-nav\">\n <a href=\"\/\" class=\"nav-brand\">\n <img src=\"https:\/\/campus-am-see.de\/wp-content\/uploads\/menu-logo.png\" alt=\"Campus am See\" class=\"nav-logo\">\n <\/a>\n\n <button class=\"nav-toggle\" aria-label=\"Navigation\" aria-expanded=\"false\">\n <span class=\"nav-toggle-icon\"><\/span>\n <\/button>\n\n <div class=\"nav-items\">\n <div class=\"nav-dropdown\">\n <button class=\"nav-dropdown-btn\">Anwendungen<\/button>\n <div class=\"nav-dropdown-content\">\n <a href=\"\/chat\">KI-Chat<\/a>\n <a href=\"\/content\">Content Studio<\/a>\n <a href=\"\/content-pipeline\">Content Pipeline<\/a>\n <a href=\"\/semantic-explorer\">Semantic Explorer<\/a>\n <a href=\"https:\/\/files.campus.systemische-tools.de\/index.php\/apps\/files\/files\/3?dir=\/Documents\" target=\"_blank\">Nextcloud<\/a>\n <\/div>\n <\/div>\n\n <div class=\"nav-dropdown\">\n <button class=\"nav-dropdown-btn\">Entwicklung<\/button>\n <div class=\"nav-dropdown-content\">\n <a href=\"\/tasks\">Tasks<\/a>\n <a href=\"\/protokoll\">Protokoll<\/a>\n <a href=\"\/contracts\">Contracts<\/a>\n <a href=\"\/config\">Content-Config<\/a>\n <a href=\"\/critics\">Critics<\/a>\n <a href=\"\/prompts\">Prompts<\/a>\n <a href=\"\/system-explorer\">System Explorer<\/a>\n <\/div>\n <\/div>\n\n <div class=\"nav-dropdown\">\n <button class=\"nav-dropdown-btn\">Ressourcen<\/button>\n <div class=\"nav-dropdown-content\">\n <a href=\"\/docs\">Dokumentation<\/a>\n <a href=\"\/docs\/code-hygiene\">Code Hygiene<\/a>\n <a href=\"\/backup-restore\">File Backup<\/a>\n <\/div>\n <\/div>\n <\/div>\n <\/nav>\n <\/header>\n\n <main>\n \n<h1>Pipeline Status<\/h1>\n<p class=\"subtitle\">Vollständiger RAG-Prozess → Run #3<\/p>\n\n<div class=\"status-page\"\n id=\"status-container\"\n data-poll-url=\"\/content-pipeline\/3\/run\/3\/poll\">\n\n <!-- Status Badge + Cancel -->\n <div class=\"status-header\">\n <span class=\"badge badge--large\" id=\"status-badge\" data-status=\"running\">\n running <\/span>\n <form action=\"\/content-pipeline\/3\/run\/3\/cancel\" method=\"POST\" id=\"cancel-form\" class=\"status-header__cancel\">\n <input type=\"hidden\" name=\"_csrf_token\" value=\"dbb0d5ad6afd4c16bc921455c1ec54505d46249883119dcf83b3928f03ea121a\">\n <button type=\"submit\" class=\"btn btn--danger btn--small\" id=\"cancel-btn\" >\n Abbrechen\n <\/button>\n <\/form>\n <span class=\"stall-warning\" id=\"stall-warning\" style=\"display: none;\">\n Keine Aktivitaet seit 60s\n <\/span>\n <\/div>\n\n <!-- Progress Bar -->\n <div class=\"progress-bar\">\n <div class=\"progress-bar__fill\" id=\"progress-fill\" style=\"width: 0%\"><\/div>\n <\/div>\n <div class=\"progress-label\">\n <span><span id=\"docs-processed\">0<\/span>\/<span id=\"docs-total\">0<\/span> Dateien<\/span>\n <span id=\"progress-percent\">0%<\/span>\n <\/div>\n\n <!-- Status Info -->\n <ul class=\"status-info\">\n <li><span class=\"status-info__label\">Schritt:<\/span> <span class=\"status-info__value\" id=\"current-step\">Initialisierung<\/span><\/li>\n <li><span class=\"status-info__label\">Dokument:<\/span> <span class=\"status-info__value\" id=\"current-document\">-<\/span><\/li>\n <li><span class=\"status-info__label\">Zeit:<\/span> <span class=\"status-info__value\" id=\"elapsed-time\">00:00<\/span><\/li>\n <li><span class=\"status-info__label\">ETA:<\/span> <span class=\"status-info__value\" id=\"eta-time\">-<\/span><\/li>\n <li><span class=\"status-info__label\">Chunks:<\/span> <span class=\"status-info__value\" id=\"chunks-count\">0<\/span><\/li>\n <li><span class=\"status-info__label\">Embeddings:<\/span> <span class=\"status-info__value\" id=\"embeddings-count\">0<\/span><\/li>\n <li><span class=\"status-info__label\">Fehler:<\/span> <span class=\"status-info__value status-info__value--danger\" id=\"failed-count\">0<\/span><\/li>\n <\/ul>\n\n <!-- Live Log -->\n <div class=\"log-section\">\n <h3>Live Log<\/h3>\n <pre class=\"log-output\" id=\"log-output\">Warte auf Ausgabe...<\/pre>\n <\/div>\n\n <!-- Error Display -->\n <div class=\"error-section\" id=\"error-section\" style=\"display: none;\">\n <h3>Fehler<\/h3>\n <pre class=\"error-output\" id=\"error-output\"><\/pre>\n <\/div>\n\n<\/div>\n\n<style>\n.subtitle {\n color: var(--text-muted, #666);\n margin-top: -0.5rem;\n margin-bottom: 1.5rem;\n}\n\n.status-page {\n max-width: 800px;\n}\n\n.status-header {\n display: flex;\n align-items: center;\n gap: 1rem;\n margin-bottom: 1.5rem;\n}\n\n.badge--large {\n font-size: 1rem;\n padding: 0.5rem 1rem;\n text-transform: uppercase;\n}\n\n.badge[data-status=\"running\"] {\n background: var(--info-color, #0066cc);\n color: white;\n animation: pulse 2s infinite;\n}\n\n.badge[data-status=\"completed\"] {\n background: var(--success-color, #28a745);\n color: white;\n}\n\n.badge[data-status=\"failed\"] {\n background: var(--danger-color, #dc3545);\n color: white;\n}\n\n.badge[data-status=\"cancelled\"] {\n background: var(--warning-color, #ffc107);\n color: #333;\n}\n\n@keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.7; }\n}\n\n.stall-warning {\n background: var(--warning-bg, #fff3cd);\n color: var(--warning-color, #856404);\n padding: 0.25rem 0.5rem;\n border-radius: 4px;\n font-size: 0.85rem;\n animation: blink 1s infinite;\n}\n\n@keyframes blink {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n\n.status-info {\n list-style: none;\n padding: 0;\n margin: 0 0 1.5rem 0;\n}\n\n.status-info li {\n display: flex;\n padding: 0.25rem 0;\n}\n\n.status-info__label {\n color: var(--text-muted, #666);\n min-width: 100px;\n}\n\n.status-info__value {\n font-family: monospace;\n}\n\n.status-info__value--danger {\n color: var(--danger-color, #dc3545);\n}\n\n.progress-bar {\n height: 20px;\n background: var(--bg-muted, #e9ecef);\n border-radius: 10px;\n overflow: hidden;\n margin-bottom: 0.5rem;\n}\n\n.progress-bar__fill {\n height: 100%;\n background: var(--primary-color, #007bff);\n transition: width 0.3s ease;\n}\n\n.progress-label {\n display: flex;\n justify-content: space-between;\n font-size: 0.9rem;\n color: var(--text-muted, #666);\n margin-bottom: 1rem;\n}\n\n.log-section, .error-section {\n margin-bottom: 1.5rem;\n}\n\n.log-section h3, .error-section h3 {\n margin-bottom: 0.5rem;\n font-size: 1rem;\n}\n\n.log-output {\n background: var(--bg-dark, #1e1e1e);\n color: var(--text-light, #d4d4d4);\n padding: 1rem;\n border-radius: 6px;\n font-family: monospace;\n font-size: 0.8rem;\n max-height: 600px;\n min-height: 200px;\n overflow-y: auto;\n white-space: pre-wrap;\n word-break: break-word;\n}\n\n.error-output {\n background: var(--danger-bg, #f8d7da);\n color: var(--danger-color, #721c24);\n padding: 1rem;\n border-radius: 6px;\n font-family: monospace;\n font-size: 0.8rem;\n max-height: 200px;\n overflow-y: auto;\n white-space: pre-wrap;\n}\n\n.status-header__cancel {\n margin: 0;\n}\n\n@media (max-width: 600px) {\n .status-cards, .stats-row {\n grid-template-columns: 1fr;\n }\n}\n<\/style>\n\n<script>\n(function() {\n const container = document.getElementById('status-container');\n const pollUrl = container.dataset.pollUrl;\n let pollInterval = null;\n let isTerminal = false;\n\n \/\/ ETA calculation state\n let progressHistory = [];\n\n function calculateETA(data) {\n \/\/ Calculate progress based on documents processed\n const total = data.documents_total || 1;\n const processed = data.documents_processed || 0;\n const progress = processed \/ total;\n\n \/\/ Track progress changes for rate calculation\n const now = Date.now();\n progressHistory.push({ time: now, progress: progress });\n\n \/\/ Keep only last 10 data points\n if (progressHistory.length > 10) {\n progressHistory.shift();\n }\n\n \/\/ Need at least 2 points and some progress\n if (progressHistory.length < 2 || progress <= 0) {\n return '-';\n }\n\n \/\/ Calculate average rate over recent history\n const oldest = progressHistory[0];\n const newest = progressHistory[progressHistory.length - 1];\n const timeDiff = (newest.time - oldest.time) \/ 1000; \/\/ seconds\n const progressDiff = newest.progress - oldest.progress;\n\n if (timeDiff <= 0 || progressDiff <= 0) {\n return '-';\n }\n\n const rate = progressDiff \/ timeDiff; \/\/ progress per second\n const remaining = 1 - progress;\n const etaSeconds = Math.round(remaining \/ rate);\n\n const hours = Math.floor(etaSeconds \/ 3600);\n const minutes = Math.floor((etaSeconds % 3600) \/ 60);\n const seconds = etaSeconds % 60;\n... [TRUNCATED-37b1844d7b33d089]",
"stderr": "",
"interrupted": false,
"isImage": false
}
}