{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/suche.php",
"old_string": "<nav class=\"breadcrumb\">\n <a href=\"\/\">Home<\/a> » <a href=\"\/explorer\">Explorer<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>",
"new_string": "<nav class=\"breadcrumb\">\n <a href=\"\/\">Campus KI<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>"
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/suche.php",
"oldString": "<nav class=\"breadcrumb\">\n <a href=\"\/\">Home<\/a> » <a href=\"\/explorer\">Explorer<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>",
"newString": "<nav class=\"breadcrumb\">\n <a href=\"\/\">Campus KI<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>",
"originalFile": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n <a href=\"\/\">Home<\/a> » <a href=\"\/explorer\">Explorer<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche\n<\/nav>\n\n<h1>Semantische Suche<\/h1>\n<p>Vektor-basierte Suche in Nutzdaten (Qdrant documents Collection).<\/p>\n\n<form method=\"get\" class=\"search-form\">\n <div class=\"form-group\">\n <input type=\"text\" name=\"q\" value=\"<?= htmlspecialchars($query) ?>\" placeholder=\"Suchbegriff eingeben...\" class=\"search-input\" autofocus>\n <\/div>\n <div class=\"form-row\">\n <select name=\"limit\">\n <option value=\"5\" <?= $limit === 5 ? 'selected' : '' ?>>5 Ergebnisse<\/option>\n <option value=\"10\" <?= $limit === 10 ? 'selected' : '' ?>>10 Ergebnisse<\/option>\n <option value=\"20\" <?= $limit === 20 ? 'selected' : '' ?>>20 Ergebnisse<\/option>\n <\/select>\n <button type=\"submit\" class=\"btn btn--primary\">Suchen<\/button>\n <\/div>\n<\/form>\n\n<?php if ($query !== '' && !empty($results)): ?>\n<h2>Ergebnisse fuer \"<?= htmlspecialchars($query) ?>\"<\/h2>\n<p><?= count($results) ?> Treffer gefunden.<\/p>\n\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"rank\">#<\/th>\n <th data-sort=\"score\">Score<\/th>\n <th data-sort=\"filename\">Dokument<\/th>\n <th data-sort=\"tokens\">Tokens<\/th>\n <th data-sort=\"content\">Inhalt<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($results as $i => $r): ?>\n <tr>\n <td><?= $i + 1 ?><\/td>\n <td><span class=\"badge badge--success\"><?= number_format($r['score'] * 100, 1) ?>%<\/span><\/td>\n <td>\n <a href=\"\/semantic-explorer\/chunks\/<?= $r['id'] ?>\">#<?= $r['id'] ?><\/a>\n <br><small><a href=\"\/semantic-explorer\/dokumente\/<?= $r['document_id'] ?>\"><?= htmlspecialchars($r['filename']) ?><\/a><\/small>\n <\/td>\n <td><?= $r['token_count'] ?><\/td>\n <td><?= htmlspecialchars(substr($r['content'], 0, 150)) ?>...<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n\n<?php elseif ($query !== ''): ?>\n<p>Keine Ergebnisse fuer \"<?= htmlspecialchars($query) ?>\" gefunden.<\/p>\n<p>Stellen Sie sicher, dass Dokumente mit Embeddings vorliegen.<\/p>\n<?php endif; ?>\n\n<p class=\"links-bar\">\n <a href=\"\/semantic-explorer\">Zurueck zum Explorer<\/a>\n<\/p>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"structuredPatch": [
{
"oldStart": 1,
"oldLines": 7,
"newStart": 1,
"newLines": 7,
"lines": [
" <?php ob_start(); ?>",
" ",
" <nav class=\"breadcrumb\">",
"- <a href=\"\/\">Home<\/a> » <a href=\"\/explorer\">Explorer<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche",
"+ <a href=\"\/\">Campus KI<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Suche",
" <\/nav>",
" ",
" <h1>Semantische Suche<\/h1>"
]
}
],
"userModified": false,
"replaceAll": false
}
}