{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/docs\/show.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/docs\/index.php",
"content": "<?php\nfunction renderDocsToc(array $items, int $level = 1): string\n{\n if (empty($items)) {\n return '';\n }\n\n $html = '<ol class=\"docs-toc docs-toc-level-' . $level . '\">';\n foreach ($items as $item) {\n $html .= '<li>';\n $html .= '<a href=\"\/docs' . htmlspecialchars($item['path']) . '\">' . htmlspecialchars($item['title']) . '<\/a>';\n if (!empty($item['children'])) {\n $html .= renderDocsToc($item['children'], $level + 1);\n }\n $html .= '<\/li>';\n }\n $html .= '<\/ol>';\n\n return $html;\n}\n?>\n<?php ob_start(); ?>\n\n<h1>Dokumentation<\/h1>\n<p>Server-Dokumentation für <strong>st<\/strong> (Debian 13 trixie)<\/p>\n\n<?= renderDocsToc($hierarchy) ?>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"numLines": 31,
"startLine": 1,
"totalLines": 31
}
}
}