Protokoll #2002

ID2002
Zeitstempel2025-12-21 03:00:10.564351
Clientroot
IP145.224.96.190
Modellclaude-sonnet-4-20250514
Statuscompleted
Tokens6,672 (Input: 2,034, Output: 4,638)
Dauer89 ms
Request-Zeit2025-12-21 03:00:10.564351
Response-Zeit2025-12-21 03:00:10.653353

Request

{
    "event": "PreToolUse",
    "tool_name": "Edit",
    "tool_input": {
        "file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php",
        "old_string": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n    <a href=\"\/content\">Content Studio<\/a> &raquo; Neuer Auftrag\n<\/nav>\n\n<h1>Neuer Auftrag<\/h1>\n\n<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 600px;\">\n    <?= $csrfField ?>\n    <div class=\"form-group\">\n        <label for=\"title\">Titel *<\/label>\n        <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required\n               placeholder=\"z.B. Blogpost über Teamcoaching\">\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"briefing\">Briefing *<\/label>\n        <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required\n                  placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"author_profile_id\">Autorenprofil<\/label>\n        <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Profil --<\/option>\n            <?php foreach ($profiles ?? [] as $profile): ?>\n            <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"contract_id\">Contract<\/label>\n        <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Contract --<\/option>\n            <?php foreach ($contracts ?? [] as $contract): ?>\n            <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"structure_id\">Struktur<\/label>\n        <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">\n            <option value=\"\">-- Keine Struktur --<\/option>\n            <?php foreach ($structures ?? [] as $structure): ?>\n            <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-actions\">\n        <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>\n        <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>\n    <\/div>\n<\/form>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>",
        "new_string": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n    <a href=\"\/content\">Content Studio<\/a> &raquo; Neuer Auftrag\n<\/nav>\n\n<h1>Neuer Auftrag<\/h1>\n\n<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 700px;\">\n    <?= $csrfField ?>\n\n    <fieldset>\n        <legend>Inhalt<\/legend>\n        <div class=\"form-group\">\n            <label for=\"title\">Titel *<\/label>\n            <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required\n                   placeholder=\"z.B. Blogpost über Teamcoaching\">\n        <\/div>\n        <div class=\"form-group\">\n            <label for=\"briefing\">Briefing *<\/label>\n            <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required\n                      placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>\n        <\/div>\n    <\/fieldset>\n\n    <fieldset>\n        <legend>KI-Einstellungen<\/legend>\n        <div class=\"form-row\">\n            <div class=\"form-group form-group--half\">\n                <label for=\"model\">Sprachmodell<\/label>\n                <select id=\"model\" name=\"model\" class=\"form-select\">\n                    <?php foreach ($models ?? [] as $modelId => $modelName): ?>\n                    <option value=\"<?= $modelId ?>\" <?= $modelId === 'claude-sonnet-4-20250514' ? 'selected' : '' ?>><?= htmlspecialchars($modelName) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--half\">\n                <label for=\"context_limit\">Kontext-Quellen<\/label>\n                <select id=\"context_limit\" name=\"context_limit\" class=\"form-select\">\n                    <option value=\"3\">3 Quellen<\/option>\n                    <option value=\"5\" selected>5 Quellen<\/option>\n                    <option value=\"10\">10 Quellen<\/option>\n                    <option value=\"15\">15 Quellen<\/option>\n                <\/select>\n            <\/div>\n        <\/div>\n        <div class=\"form-group\">\n            <label>Collections (Wissensquellen)<\/label>\n            <div class=\"checkbox-group\">\n                <?php foreach ($collections ?? [] as $collection): ?>\n                <label class=\"checkbox-label\">\n                    <input type=\"checkbox\" name=\"collections[]\" value=\"<?= htmlspecialchars($collection) ?>\"\n                           <?= $collection === 'documents' ? 'checked' : '' ?>>\n                    <?= htmlspecialchars($collection) ?>\n                <\/label>\n                <?php endforeach; ?>\n            <\/div>\n        <\/div>\n    <\/fieldset>\n\n    <fieldset>\n        <legend>Content-Konfiguration<\/legend>\n        <div class=\"form-row\">\n            <div class=\"form-group form-group--third\">\n                <label for=\"author_profile_id\">Autorenprofil<\/label>\n                <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">\n                    <option value=\"\">-- Kein Profil --<\/option>\n                    <?php foreach ($profiles ?? [] as $profile): ?>\n                    <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--third\">\n                <label for=\"contract_id\">Contract<\/label>\n                <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">\n                    <option value=\"\">-- Kein Contract --<\/option>\n                    <?php foreach ($contracts ?? [] as $contract): ?>\n                    <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--third\">\n                <label for=\"structure_id\">Struktur<\/label>\n                <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">\n                    <option value=\"\">-- Keine Struktur --<\/option>\n                    <?php foreach ($structures ?? [] as $structure): ?>\n                    <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n        <\/div>\n    <\/fieldset>\n\n    <div class=\"form-actions\">\n        <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>\n        <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>\n    <\/div>\n<\/form>\n\n<style>\n.form-row { display: flex; gap: var(--space-md); }\n.form-group--half { flex: 1; }\n.form-group--third { flex: 1; }\n.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }\n.checkbox-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-bg-muted); border-radius: 4px; cursor: pointer; }\n.checkbox-label:hover { background: var(--color-bg-hover); }\nfieldset { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); }\nlegend { font-weight: 600; padding: 0 0.5rem; }\n@media (max-width: 600px) {\n    .form-row { flex-direction: column; gap: 0; }\n}\n<\/style>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>"
    }
}

Response

{
    "tool_response": {
        "filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/new.php",
        "oldString": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n    <a href=\"\/content\">Content Studio<\/a> &raquo; Neuer Auftrag\n<\/nav>\n\n<h1>Neuer Auftrag<\/h1>\n\n<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 600px;\">\n    <?= $csrfField ?>\n    <div class=\"form-group\">\n        <label for=\"title\">Titel *<\/label>\n        <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required\n               placeholder=\"z.B. Blogpost über Teamcoaching\">\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"briefing\">Briefing *<\/label>\n        <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required\n                  placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"author_profile_id\">Autorenprofil<\/label>\n        <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Profil --<\/option>\n            <?php foreach ($profiles ?? [] as $profile): ?>\n            <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"contract_id\">Contract<\/label>\n        <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Contract --<\/option>\n            <?php foreach ($contracts ?? [] as $contract): ?>\n            <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"structure_id\">Struktur<\/label>\n        <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">\n            <option value=\"\">-- Keine Struktur --<\/option>\n            <?php foreach ($structures ?? [] as $structure): ?>\n            <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-actions\">\n        <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>\n        <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>\n    <\/div>\n<\/form>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>",
        "newString": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n    <a href=\"\/content\">Content Studio<\/a> &raquo; Neuer Auftrag\n<\/nav>\n\n<h1>Neuer Auftrag<\/h1>\n\n<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 700px;\">\n    <?= $csrfField ?>\n\n    <fieldset>\n        <legend>Inhalt<\/legend>\n        <div class=\"form-group\">\n            <label for=\"title\">Titel *<\/label>\n            <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required\n                   placeholder=\"z.B. Blogpost über Teamcoaching\">\n        <\/div>\n        <div class=\"form-group\">\n            <label for=\"briefing\">Briefing *<\/label>\n            <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required\n                      placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>\n        <\/div>\n    <\/fieldset>\n\n    <fieldset>\n        <legend>KI-Einstellungen<\/legend>\n        <div class=\"form-row\">\n            <div class=\"form-group form-group--half\">\n                <label for=\"model\">Sprachmodell<\/label>\n                <select id=\"model\" name=\"model\" class=\"form-select\">\n                    <?php foreach ($models ?? [] as $modelId => $modelName): ?>\n                    <option value=\"<?= $modelId ?>\" <?= $modelId === 'claude-sonnet-4-20250514' ? 'selected' : '' ?>><?= htmlspecialchars($modelName) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--half\">\n                <label for=\"context_limit\">Kontext-Quellen<\/label>\n                <select id=\"context_limit\" name=\"context_limit\" class=\"form-select\">\n                    <option value=\"3\">3 Quellen<\/option>\n                    <option value=\"5\" selected>5 Quellen<\/option>\n                    <option value=\"10\">10 Quellen<\/option>\n                    <option value=\"15\">15 Quellen<\/option>\n                <\/select>\n            <\/div>\n        <\/div>\n        <div class=\"form-group\">\n            <label>Collections (Wissensquellen)<\/label>\n            <div class=\"checkbox-group\">\n                <?php foreach ($collections ?? [] as $collection): ?>\n                <label class=\"checkbox-label\">\n                    <input type=\"checkbox\" name=\"collections[]\" value=\"<?= htmlspecialchars($collection) ?>\"\n                           <?= $collection === 'documents' ? 'checked' : '' ?>>\n                    <?= htmlspecialchars($collection) ?>\n                <\/label>\n                <?php endforeach; ?>\n            <\/div>\n        <\/div>\n    <\/fieldset>\n\n    <fieldset>\n        <legend>Content-Konfiguration<\/legend>\n        <div class=\"form-row\">\n            <div class=\"form-group form-group--third\">\n                <label for=\"author_profile_id\">Autorenprofil<\/label>\n                <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">\n                    <option value=\"\">-- Kein Profil --<\/option>\n                    <?php foreach ($profiles ?? [] as $profile): ?>\n                    <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--third\">\n                <label for=\"contract_id\">Contract<\/label>\n                <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">\n                    <option value=\"\">-- Kein Contract --<\/option>\n                    <?php foreach ($contracts ?? [] as $contract): ?>\n                    <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n            <div class=\"form-group form-group--third\">\n                <label for=\"structure_id\">Struktur<\/label>\n                <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">\n                    <option value=\"\">-- Keine Struktur --<\/option>\n                    <?php foreach ($structures ?? [] as $structure): ?>\n                    <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n                    <?php endforeach; ?>\n                <\/select>\n            <\/div>\n        <\/div>\n    <\/fieldset>\n\n    <div class=\"form-actions\">\n        <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>\n        <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>\n    <\/div>\n<\/form>\n\n<style>\n.form-row { display: flex; gap: var(--space-md); }\n.form-group--half { flex: 1; }\n.form-group--third { flex: 1; }\n.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }\n.checkbox-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-bg-muted); border-radius: 4px; cursor: pointer; }\n.checkbox-label:hover { background: var(--color-bg-hover); }\nfieldset { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); }\nlegend { font-weight: 600; padding: 0 0.5rem; }\n@media (max-width: 600px) {\n    .form-row { flex-direction: column; gap: 0; }\n}\n<\/style>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>",
        "originalFile": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n    <a href=\"\/content\">Content Studio<\/a> &raquo; Neuer Auftrag\n<\/nav>\n\n<h1>Neuer Auftrag<\/h1>\n\n<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 600px;\">\n    <?= $csrfField ?>\n    <div class=\"form-group\">\n        <label for=\"title\">Titel *<\/label>\n        <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required\n               placeholder=\"z.B. Blogpost über Teamcoaching\">\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"briefing\">Briefing *<\/label>\n        <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required\n                  placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"author_profile_id\">Autorenprofil<\/label>\n        <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Profil --<\/option>\n            <?php foreach ($profiles ?? [] as $profile): ?>\n            <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"contract_id\">Contract<\/label>\n        <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">\n            <option value=\"\">-- Kein Contract --<\/option>\n            <?php foreach ($contracts ?? [] as $contract): ?>\n            <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-group\">\n        <label for=\"structure_id\">Struktur<\/label>\n        <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">\n            <option value=\"\">-- Keine Struktur --<\/option>\n            <?php foreach ($structures ?? [] as $structure): ?>\n            <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>\n            <?php endforeach; ?>\n        <\/select>\n    <\/div>\n    <div class=\"form-actions\">\n        <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>\n        <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>\n    <\/div>\n<\/form>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
        "structuredPatch": [
            {
                "oldStart": 6,
                "oldLines": 50,
                "newStart": 6,
                "newLines": 110,
                "lines": [
                    " ",
                    " <h1>Neuer Auftrag<\/h1>",
                    " ",
                    "-<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 600px;\">",
                    "+<form class=\"form\" method=\"post\" action=\"\/content\" style=\"max-width: 700px;\">",
                    "     <?= $csrfField ?>",
                    "-    <div class=\"form-group\">",
                    "-        <label for=\"title\">Titel *<\/label>",
                    "-        <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required",
                    "-               placeholder=\"z.B. Blogpost über Teamcoaching\">",
                    "-    <\/div>",
                    "-    <div class=\"form-group\">",
                    "-        <label for=\"briefing\">Briefing *<\/label>",
                    "-        <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required",
                    "-                  placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>",
                    "-    <\/div>",
                    "-    <div class=\"form-group\">",
                    "-        <label for=\"author_profile_id\">Autorenprofil<\/label>",
                    "-        <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">",
                    "-            <option value=\"\">-- Kein Profil --<\/option>",
                    "-            <?php foreach ($profiles ?? [] as $profile): ?>",
                    "-            <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>",
                    "-            <?php endforeach; ?>",
                    "-        <\/select>",
                    "-    <\/div>",
                    "-    <div class=\"form-group\">",
                    "-        <label for=\"contract_id\">Contract<\/label>",
                    "-        <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">",
                    "-            <option value=\"\">-- Kein Contract --<\/option>",
                    "-            <?php foreach ($contracts ?? [] as $contract): ?>",
                    "-            <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>",
                    "-            <?php endforeach; ?>",
                    "-        <\/select>",
                    "-    <\/div>",
                    "-    <div class=\"form-group\">",
                    "-        <label for=\"structure_id\">Struktur<\/label>",
                    "-        <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">",
                    "-            <option value=\"\">-- Keine Struktur --<\/option>",
                    "-            <?php foreach ($structures ?? [] as $structure): ?>",
                    "-            <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>",
                    "-            <?php endforeach; ?>",
                    "-        <\/select>",
                    "-    <\/div>",
                    "+",
                    "+    <fieldset>",
                    "+        <legend>Inhalt<\/legend>",
                    "+        <div class=\"form-group\">",
                    "+            <label for=\"title\">Titel *<\/label>",
                    "+            <input type=\"text\" id=\"title\" name=\"title\" class=\"form-input\" required",
                    "+                   placeholder=\"z.B. Blogpost über Teamcoaching\">",
                    "+        <\/div>",
                    "+        <div class=\"form-group\">",
                    "+            <label for=\"briefing\">Briefing *<\/label>",
                    "+            <textarea id=\"briefing\" name=\"briefing\" class=\"form-textarea\" rows=\"6\" required",
                    "+                      placeholder=\"Beschreibe, was der Content enthalten soll.\"><\/textarea>",
                    "+        <\/div>",
                    "+    <\/fieldset>",
                    "+",
                    "+    <fieldset>",
                    "+        <legend>KI-Einstellungen<\/legend>",
                    "+        <div class=\"form-row\">",
                    "+            <div class=\"form-group form-group--half\">",
                    "+                <label for=\"model\">Sprachmodell<\/label>",
                    "+                <select id=\"model\" name=\"model\" class=\"form-select\">",
                    "+                    <?php foreach ($models ?? [] as $modelId => $modelName): ?>",
                    "+                    <option value=\"<?= $modelId ?>\" <?= $modelId === 'claude-sonnet-4-20250514' ? 'selected' : '' ?>><?= htmlspecialchars($modelName) ?><\/option>",
                    "+                    <?php endforeach; ?>",
                    "+                <\/select>",
                    "+            <\/div>",
                    "+            <div class=\"form-group form-group--half\">",
                    "+                <label for=\"context_limit\">Kontext-Quellen<\/label>",
                    "+                <select id=\"context_limit\" name=\"context_limit\" class=\"form-select\">",
                    "+                    <option value=\"3\">3 Quellen<\/option>",
                    "+                    <option value=\"5\" selected>5 Quellen<\/option>",
                    "+                    <option value=\"10\">10 Quellen<\/option>",
                    "+                    <option value=\"15\">15 Quellen<\/option>",
                    "+                <\/select>",
                    "+            <\/div>",
                    "+        <\/div>",
                    "+        <div class=\"form-group\">",
                    "+            <label>Collections (Wissensquellen)<\/label>",
                    "+            <div class=\"checkbox-group\">",
                    "+                <?php foreach ($collections ?? [] as $collection): ?>",
                    "+                <label class=\"checkbox-label\">",
                    "+                    <input type=\"checkbox\" name=\"collections[]\" value=\"<?= htmlspecialchars($collection) ?>\"",
                    "+                           <?= $collection === 'documents' ? 'checked' : '' ?>>",
                    "+                    <?= htmlspecialchars($collection) ?>",
                    "+                <\/label>",
                    "+                <?php endforeach; ?>",
                    "+            <\/div>",
                    "+        <\/div>",
                    "+    <\/fieldset>",
                    "+",
                    "+    <fieldset>",
                    "+        <legend>Content-Konfiguration<\/legend>",
                    "+        <div class=\"form-row\">",
                    "+            <div class=\"form-group form-group--third\">",
                    "+                <label for=\"author_profile_id\">Autorenprofil<\/label>",
                    "+                <select id=\"author_profile_id\" name=\"author_profile_id\" class=\"form-select\">",
                    "+                    <option value=\"\">-- Kein Profil --<\/option>",
                    "+                    <?php foreach ($profiles ?? [] as $profile): ?>",
                    "+                    <option value=\"<?= $profile['id'] ?>\"><?= htmlspecialchars($profile['name']) ?><\/option>",
                    "+                    <?php endforeach; ?>",
                    "+                <\/select>",
                    "+            <\/div>",
                    "+            <div class=\"form-group form-group--third\">",
                    "+                <label for=\"contract_id\">Contract<\/label>",
                    "+                <select id=\"contract_id\" name=\"contract_id\" class=\"form-select\">",
                    "+                    <option value=\"\">-- Kein Contract --<\/option>",
                    "+                    <?php foreach ($contracts ?? [] as $contract): ?>",
                    "+                    <option value=\"<?= $contract['id'] ?>\"><?= htmlspecialchars($contract['name']) ?><\/option>",
                    "+                    <?php endforeach; ?>",
                    "+                <\/select>",
                    "+            <\/div>",
                    "+            <div class=\"form-group form-group--third\">",
                    "+                <label for=\"structure_id\">Struktur<\/label>",
                    "+                <select id=\"structure_id\" name=\"structure_id\" class=\"form-select\">",
                    "+                    <option value=\"\">-- Keine Struktur --<\/option>",
                    "+                    <?php foreach ($structures ?? [] as $structure): ?>",
                    "+                    <option value=\"<?= $structure['id'] ?>\"><?= htmlspecialchars($structure['name']) ?><\/option>",
                    "+                    <?php endforeach; ?>",
                    "+                <\/select>",
                    "+            <\/div>",
                    "+        <\/div>",
                    "+    <\/fieldset>",
                    "+",
                    "     <div class=\"form-actions\">",
                    "         <button type=\"submit\" class=\"btn btn--primary\">Auftrag erstellen<\/button>",
                    "         <a href=\"\/content\" class=\"btn\">Abbrechen<\/a>",
                    "     <\/div>",
                    " <\/form>",
                    " ",
                    "+<style>",
                    "+.form-row { display: flex; gap: var(--space-md); }",
                    "+.form-group--half { flex: 1; }",
                    "+.form-group--third { flex: 1; }",
                    "+.checkbox-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }",
                    "+.checkbox-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-bg-muted); border-radius: 4px; cursor: pointer; }",
                    "+.checkbox-label:hover { background: var(--color-bg-hover); }",
                    "+fieldset { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); }",
                    "+legend { font-weight: 600; padding: 0 0.5rem; }",
                    "+@media (max-width: 600px) {",
                    "+    .form-row { flex-direction: column; gap: 0; }",
                    "+}",
                    "+<\/style>",
                    "+",
                    " <?php $content = ob_get_clean(); ?>",
                    " <?php require VIEW_PATH . '\/layout.php'; ?>"
                ]
            }
        ],
        "userModified": false,
        "replaceAll": false
    }
}
← Vorheriger Zur Liste Nächster →