{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/show.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/content\/show.php",
"content": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n <a href=\"\/content\">Content Studio<\/a> » Auftrag #<?= $order['id'] ?>\n<\/nav>\n\n<h1><?= htmlspecialchars($order['title']) ?><\/h1>\n\n<table>\n <tr><th>ID<\/th><td><?= $order['id'] ?><\/td><\/tr>\n <tr><th>Status<\/th><td><span class=\"badge badge--<?= $order['status'] ?>\"><?= $order['status'] ?><\/span><\/td><\/tr>\n <tr><th>Profil<\/th><td><?= htmlspecialchars($order['profile_name'] ?? '-') ?><\/td><\/tr>\n <tr><th>Contract<\/th><td><?= htmlspecialchars($order['contract_name'] ?? '-') ?><\/td><\/tr>\n <tr><th>Struktur<\/th><td><?= htmlspecialchars($order['structure_name'] ?? '-') ?><\/td><\/tr>\n <tr><th>Erstellt<\/th><td><?= $order['created_at'] ?><\/td><\/tr>\n<\/table>\n\n<h2>Briefing<\/h2>\n<p><?= nl2br(htmlspecialchars($order['briefing'])) ?><\/p>\n\n<h2>Aktionen<\/h2>\n<div class=\"action-bar\">\n <a href=\"\/content\/<?= $order['id'] ?>\/edit\" class=\"btn\">Bearbeiten<\/a>\n <?php if (!$latestVersion): ?>\n <form method=\"POST\" action=\"\/content\/<?= $order['id'] ?>\/generate\" class=\"inline-form\"\n hx-post=\"\/content\/<?= $order['id'] ?>\/generate\"\n hx-target=\"#content-result\"\n hx-swap=\"innerHTML\">\n <?= $csrfField ?>\n <select name=\"model\" class=\"form-select--inline\">\n <option value=\"claude-opus-4-5-20251101\">Claude Opus<\/option>\n <option value=\"claude-sonnet-4-20250514\">Claude Sonnet<\/option>\n <option value=\"ollama:gemma3:4b-it-qat\">Ollama<\/option>\n <\/select>\n <select name=\"collection\" class=\"form-select--inline\">\n <option value=\"documents\">Documents<\/option>\n <option value=\"entities\">Entities<\/option>\n <\/select>\n <select name=\"context_limit\" class=\"form-select--inline\">\n <option value=\"5\">5 Quellen<\/option>\n <option value=\"3\">3 Quellen<\/option>\n <option value=\"10\">10 Quellen<\/option>\n <\/select>\n <button type=\"submit\" class=\"btn btn--primary\">Generieren<\/button>\n <\/form>\n <?php endif; ?>\n <?php if ($latestVersion): ?>\n <form method=\"POST\" action=\"\/content\/<?= $order['id'] ?>\/critique\" class=\"inline-form\"\n hx-post=\"\/content\/<?= $order['id'] ?>\/critique\"\n hx-target=\"#critique-result\"\n hx-swap=\"innerHTML\">\n <?= $csrfField ?>\n <select name=\"model\" class=\"form-select--inline\">\n <option value=\"claude-opus-4-5-20251101\">Claude Opus<\/option>\n <option value=\"claude-sonnet-4-20250514\">Claude Sonnet<\/option>\n <option value=\"ollama:gemma3:4b-it-qat\">Ollama<\/option>\n <\/select>\n <button type=\"submit\" class=\"btn btn--light\">Kritik-Runde<\/button>\n <\/form>\n <form method=\"POST\" action=\"\/content\/<?= $order['id'] ?>\/revise\" class=\"inline-form\"\n hx-post=\"\/content\/<?= $order['id'] ?>\/revise\"\n hx-target=\"#content-result\"\n hx-swap=\"innerHTML\">\n <?= $csrfField ?>\n <select name=\"model\" class=\"form-select--inline\">\n <option value=\"claude-opus-4-5-20251101\">Claude Opus<\/option>\n <option value=\"claude-sonnet-4-20250514\">Claude Sonnet<\/option>\n <option value=\"ollama:gemma3:4b-it-qat\">Ollama<\/option>\n <\/select>\n <button type=\"submit\" class=\"btn btn--light\">Revision<\/button>\n <\/form>\n <?php if (in_array($order['status'], ['validate', 'critique', 'revision'])): ?>\n <button class=\"btn btn--success\" hx-post=\"\/content\/<?= $order['id'] ?>\/approve\" hx-swap=\"none\" hx-on::after-request=\"location.reload()\" hx-headers='{\"X-CSRF-TOKEN\": \"<?= $csrfToken ?>\"}'>Genehmigen<\/button>\n <button class=\"btn btn--danger\" hx-post=\"\/content\/<?= $order['id'] ?>\/decline\" hx-swap=\"none\" hx-on::after-request=\"location.reload()\" hx-headers='{\"X-CSRF-TOKEN\": \"<?= $csrfToken ?>\"}'>Ablehnen<\/button>\n <?php endif; ?>\n <?php endif; ?>\n<\/div>\n\n<div id=\"content-result\"><\/div>\n<div id=\"critique-result\"><\/div>\n\n<?php if ($latestVersion):\n $contentData = json_decode($latestVersion['content'], true);\n $contentText = is_array($contentData) ? ($contentData['text'] ?? '') : $latestVersion['content'];\n ?>\n<h2>Content (Version <?= $latestVersion['version_number'] ?>)<\/h2>\n<div class=\"result-box\">\n <div class=\"result-box__header\">\n <strong>Version <?= $latestVersion['version_number'] ?><\/strong>\n <span><?= date('d.m.Y H:i', strtotime($latestVersion['created_at'])) ?><\/span>\n <\/div>\n <div class=\"result-box__content\">\n <pre><?= htmlspecialchars($contentText) ?><\/pre>\n <\/div>\n<\/div>\n<?php endif; ?>\n\n<?php if (!empty($critiques)): ?>\n<h2>Kritiken<\/h2>\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"round\">Runde<\/th>\n <th data-sort=\"critic\">Kritiker<\/th>\n <th data-sort=\"rating\">Bewertung<\/th>\n <th data-sort=\"status\">Status<\/th>\n <th data-sort=\"summary\">Zusammenfassung<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($critiques as $c): ?>\n <tr>\n <td><?= $c['round'] ?? '-' ?><\/td>\n <td><?= htmlspecialchars($c['critic_name'] ?? '-') ?><\/td>\n <td><?= $c['rating'] ?? '-' ?>\/10<\/td>\n <td><span class=\"badge badge--<?= ($c['passed'] ?? false) ? 'completed' : 'failed' ?>\"><?= ($c['passed'] ?? false) ? 'Bestanden' : 'Offen' ?><\/span><\/td>\n <td><?= htmlspecialchars($c['summary'] ?? '-') ?><\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<?php if (!empty($sources)): ?>\n<h2>Quellen (RAG)<\/h2>\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"document\">Dokument<\/th>\n <th data-sort=\"score\">Relevanz<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($sources as $s): ?>\n <tr>\n <td><?= htmlspecialchars($s['document_name'] ?? 'Unbekannt') ?><\/td>\n <td><?= round(($s['relevance_score'] ?? 0) * 100) ?>%<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<?php if (count($versions) > 1): ?>\n<h2>Versionshistorie<\/h2>\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"version\">Version<\/th>\n <th data-sort=\"created\">Erstellt<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($versions as $v): ?>\n <tr>\n <td>V<?= $v['version_number'] ?><\/td>\n <td><?= date('d.m.Y H:i', strtotime($v['created_at'])) ?><\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<p style=\"margin-top: 2rem;\"><a href=\"\/content\">← Zurück zur Übersicht<\/a><\/p>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"numLines": 168,
"startLine": 1,
"totalLines": 168
}
}
}