{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/_config_panel.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/chat\/partials\/_config_panel.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\n\/\/ @responsibility: Config Panel UI-Komponente für Chat-Einstellungen\n\n\/**\n * Config Panel Partial\n * Required vars: $models, $currentModel, $currentLimit, $selected, $collections,\n * $currentTemperature, $currentMaxTokens, $systemPrompts, $currentPromptId,\n * $outputStructures, $authorProfiles, $currentProfileId, $session, $csrfToken\n *\/\n?>\n<aside class=\"config-panel\" id=\"configPanel\">\n <div class=\"config-panel__header\">\n <span class=\"config-panel__title\">Einstellungen<\/span>\n <button type=\"button\" class=\"config-panel__close\" id=\"configPanelClose\" aria-label=\"Panel schliessen\">×<\/button>\n <\/div>\n\n <div class=\"config-panel__body\">\n <!-- Modell -->\n <div class=\"config-panel__group\">\n <label for=\"configModel\" class=\"config-panel__label\">Modell<\/label>\n <select id=\"configModel\" class=\"config-panel__select\" aria-label=\"Modell waehlen\">\n <optgroup label=\"Anthropic\">\n <?php foreach ($models ?? [] as $modelId => $modelLabel): ?>\n <?php if (!str_starts_with($modelId, 'ollama:')): ?>\n <option value=\"<?= htmlspecialchars($modelId) ?>\" <?= $currentModel === $modelId ? 'selected' : '' ?>><?= htmlspecialchars($modelLabel) ?><\/option>\n <?php endif; ?>\n <?php endforeach; ?>\n <\/optgroup>\n <optgroup label=\"Ollama (lokal)\">\n <?php foreach ($models ?? [] as $modelId => $modelLabel): ?>\n <?php if (str_starts_with($modelId, 'ollama:')): ?>\n <option value=\"<?= htmlspecialchars($modelId) ?>\" <?= $currentModel === $modelId ? 'selected' : '' ?>><?= htmlspecialchars($modelLabel) ?><\/option>\n <?php endif; ?>\n <?php endforeach; ?>\n <\/optgroup>\n <\/select>\n <\/div>\n\n <!-- Quellen -->\n <div class=\"config-panel__group\">\n <label for=\"configContextLimit\" class=\"config-panel__label\">Quellen<\/label>\n <select id=\"configContextLimit\" class=\"config-panel__select\" aria-label=\"Anzahl Quellen\">\n <option value=\"3\" <?= $currentLimit === 3 ? 'selected' : '' ?>>3 Quellen<\/option>\n <option value=\"5\" <?= $currentLimit === 5 ? 'selected' : '' ?>>5 Quellen<\/option>\n <option value=\"10\" <?= $currentLimit === 10 ? 'selected' : '' ?>>10 Quellen<\/option>\n <option value=\"15\" <?= $currentLimit === 15 ? 'selected' : '' ?>>15 Quellen<\/option>\n <\/select>\n <\/div>\n\n <!-- Collections -->\n <div class=\"config-panel__group\">\n <label class=\"config-panel__label\">Sammlungen<\/label>\n <div class=\"config-panel__collections\" id=\"configCollections\">\n <?php foreach ($collections ?? [] as $col):\n $colId = $col['collection_id'];\n $isSelected = in_array($colId, $selected, true);\n $points = (int) ($col['points_count'] ?? 0);\n ?>\n <label class=\"config-panel__checkbox\">\n <input type=\"checkbox\" name=\"collections[]\" value=\"<?= htmlspecialchars($colId) ?>\" <?= $isSelected ? 'checked' : '' ?>>\n <?= htmlspecialchars($col['display_name']) ?> <span class=\"config-panel__count\">(<?= number_format($points) ?>)<\/span>\n <\/label>\n <?php endforeach; ?>\n <\/div>\n <\/div>\n\n <!-- Temperatur & Tokens -->\n <div class=\"config-panel__group\">\n <label class=\"config-panel__label\">Temperatur: <span id=\"tempValuePanel\"><?= number_format($currentTemperature, 1) ?><\/span><\/label>\n <input type=\"range\" id=\"configTemperature\" class=\"config-panel__slider\" min=\"0\" max=\"1\" step=\"0.1\" value=\"<?= $currentTemperature ?>\">\n <div class=\"config-panel__presets\">\n <button type=\"button\" class=\"config-panel__preset<?= $currentTemperature == 0.3 ? ' config-panel__preset--active' : '' ?>\" data-temp=\"0.3\" data-tokens=\"2048\">Präzise<\/button>\n <button type=\"button\" class=\"config-panel__preset<?= $currentTemperature == 0.5 ? ' config-panel__preset--active' : '' ?>\" data-temp=\"0.5\" data-tokens=\"4096\">Ausgewogen<\/button>\n <button type=\"button\" class=\"config-panel__preset<?= $currentTemperature == 0.9 ? ' config-panel__preset--active' : '' ?>\" data-temp=\"0.9\" data-tokens=\"4096\">Kreativ<\/button>\n <\/div>\n <\/div>\n\n <!-- Max Tokens -->\n <div class=\"config-panel__group\">\n <label for=\"configMaxTokens\" class=\"config-panel__label\">Max Tokens<\/label>\n <select id=\"configMaxTokens\" class=\"config-panel__select\">\n <option value=\"1024\" <?= $currentMaxTokens === 1024 ? 'selected' : '' ?>>1024<\/option>\n <option value=\"2048\" <?= $currentMaxTokens === 2048 ? 'selected' : '' ?>>2048<\/option>\n <option value=\"4096\" <?= $currentMaxTokens === 4096 ? 'selected' : '' ?>>4096<\/option>\n <option value=\"8192\" <?= $currentMaxTokens === 8192 ? 'selected' : '' ?>>8192<\/option>\n <\/select>\n <\/div>\n\n <!-- Qualitätsprüfung -->\n <div class=\"config-panel__group\">\n <label class=\"config-panel__checkbox config-panel__checkbox--large\">\n <input type=\"checkbox\" id=\"configQualityCheck\" name=\"quality_check\" value=\"1\">\n Qualitätsprüfung (LLM-Validierung)\n <\/label>\n <\/div>\n\n <hr class=\"config-panel__divider\">\n\n <!-- System Prompt -->\n <div class=\"config-panel__group\">\n <label for=\"configSystemPrompt\" class=\"config-panel__label\">System Prompt<\/label>\n <select id=\"configSystemPrompt\" class=\"config-panel__select\" aria-label=\"System Prompt waehlen\">\n <?php foreach ($systemPrompts ?? [] as $prompt): ?>\n <option value=\"<?= $prompt['id'] ?>\" <?= $currentPromptId === (int) $prompt['id'] ? 'selected' : '' ?>><?= htmlspecialchars($prompt['name']) ?><\/option>\n <?php endforeach; ?>\n <\/select>\n <button type=\"button\" class=\"config-panel__toggle\" data-config-type=\"system_prompt\" aria-expanded=\"false\" aria-controls=\"systemPromptEditor\">✎<\/button>\n <div id=\"systemPromptEditor\" class=\"config-panel__editor config-panel__editor--hidden\" aria-hidden=\"true\">\n <textarea id=\"systemPromptContent\" class=\"config-panel__textarea\" rows=\"8\"><\/textarea>\n <div class=\"config-panel__actions\">\n <span class=\"config-panel__version\" id=\"systemPromptVersion\"><\/span>\n <button type=\"button\" class=\"config-panel__save\" data-config-type=\"system_prompt\">Speichern<\/button>\n <\/div>\n <\/div>\n <\/div>\n\n <!-- Ausgabeformat -->\n <div class=\"config-panel__group\">\n <label for=\"configStructure\" class=\"config-panel__label\">Ausgabeformat<\/label>\n <select id=\"configStructure\" class=\"config-panel__select\">\n <option value=\"0\">Frei (kein Format)<\/option>\n <?php foreach ($outputStructures ?? [] as $structure): ?>\n <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n <?php endforeach; ?>\n <\/select>\n <button type=\"button\" class=\"config-panel__toggle\" data-config-type=\"structure\" aria-expanded=\"false\" aria-controls=\"structureEditor\">✎<\/button>\n <div id=\"structureEditor\" class=\"config-panel__editor config-panel__editor--hidden\" aria-hidden=\"true\">\n <textarea id=\"structureContent\" class=\"config-panel__textarea\" rows=\"8\"><\/textarea>\n <div class=\"config-panel__actions\">\n <span class=\"config-panel__version\" id=\"structureVersion\"><\/span>\n <button type=\"button\" class=\"config-panel__save\" data-config-type=\"structure\">Speichern<\/button>\n <\/div>\n <\/div>\n <\/div>\n\n <!-- Autorenprofil -->\n <div class=\"config-panel__group\">\n <label for=\"configAuthorProfile\" class=\"config-panel__label\">Autorenprofil<\/label>\n <select id=\"configAuthorProfile\" class=\"config-panel__select\">\n <option value=\"0\">Kein Profil<\/option>\n <?php foreach ($authorProfiles ?? [] as $profile): ?>\n <option value=\"<?= $profile['id'] ?>\" <?= $currentProfileId === (int) $profile['id'] ? 'selected' : '' ?>><?= htmlspecialchars($profile['name']) ?><\/option>\n <?php endforeach; ?>\n <\/select>\n <button type=\"button\" class=\"config-panel__toggle\" data-config-type=\"author_profile\" aria-expanded=\"false\" aria-controls=\"authorProfileEditor\">✎<\/button>\n <div id=\"authorProfileEditor\" class=\"config-panel__editor config-panel__editor--hidden\" aria-hidden=\"true\">\n <textarea id=\"authorProfileContent\" class=\"config-panel__textarea\" rows=\"8\"><\/textarea>\n <div class=\"config-panel__actions\">\n <span class=\"config-panel__version\" id=\"authorProfileVersion\"><\/span>\n <button type=\"button\" class=\"config-panel__save\" data-config-type=\"author_profile\">Speichern<\/button>\n <\/div>\n <\/div>\n <\/div>\n\n <hr class=\"config-panel__divider\">\n\n <!-- Export -->\n <div class=\"config-panel__group\">\n <label class=\"config-panel__label\">Export<\/label>\n <div class=\"config-panel__export\">\n <a href=\"\/chat\/<?= $session['uuid'] ?? '' ?>\/export?format=markdown\" class=\"config-panel__export-btn\">Markdown<\/a>\n <a href=\"\/chat\/<?= $session['uuid'] ?? '' ?>\/export?format=json\" class=\"config-panel__export-btn\">JSON<\/a>\n <\/div>\n <\/div>\n\n ... [TRUNCATED-327d2e1e5f4f3649]",
"numLines": 184,
"startLine": 1,
"totalLines": 184
}
}
}