{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/index.php",
"offset": 720,
"limit": 40
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/index.php",
"content": " const selectedId = document.getElementById(selectId).value;\n const content = document.getElementById(textareaId).value;\n\n if (!selectedId || selectedId === '0') {\n alert('Bitte waehle zuerst eine Konfiguration aus.');\n return;\n }\n\n try {\n const formData = new FormData();\n formData.append('content', content);\n\n const resp = await fetch('\/api\/v1\/config\/' + selectedId, {\n method: 'POST',\n body: formData\n });\n const data = await resp.json();\n\n if (data.success) {\n document.getElementById(versionId).textContent = 'v' + data.version;\n this.textContent = 'Gespeichert!';\n setTimeout(() => { this.textContent = 'Speichern'; }, 2000);\n } else {\n alert('Fehler: ' + (data.error || 'Unbekannt'));\n }\n } catch (e) {\n console.error('Config save error:', e);\n alert('Speichern fehlgeschlagen');\n }\n });\n});\n\n\/\/ Inline Title Edit\nfunction editTitle(uuid) {\n const titleEl = document.getElementById('title-' + uuid);\n if (!titleEl) return;\n const currentTitle = titleEl.textContent;\n const input = document.createElement('input');\n input.type = 'text';\n input.value = currentTitle;",
"numLines": 40,
"startLine": 720,
"totalLines": 792
}
}
}