mcp-vector-search 0.12.1__py3-none-any.whl → 0.12.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mcp-vector-search might be problematic. Click here for more details.
- mcp_vector_search/__init__.py +2 -2
- mcp_vector_search/cli/commands/visualize.py +22 -12
- mcp_vector_search/visualization/favicon-v1-1024.png +0 -0
- mcp_vector_search/visualization/favicon-v1-128.png +0 -0
- mcp_vector_search/visualization/favicon-v1-16.png +0 -0
- mcp_vector_search/visualization/favicon-v1-256.png +0 -0
- mcp_vector_search/visualization/favicon-v1-32.png +0 -0
- mcp_vector_search/visualization/favicon-v1-512.png +0 -0
- mcp_vector_search/visualization/favicon-v1-64.png +0 -0
- mcp_vector_search/visualization/favicon-v1.ico +0 -0
- mcp_vector_search/visualization/favicon-v2-1024.png +0 -0
- mcp_vector_search/visualization/favicon-v2-128.png +0 -0
- mcp_vector_search/visualization/favicon-v2-16.png +0 -0
- mcp_vector_search/visualization/favicon-v2-256.png +0 -0
- mcp_vector_search/visualization/favicon-v2-32.png +0 -0
- mcp_vector_search/visualization/favicon-v2-512.png +0 -0
- mcp_vector_search/visualization/favicon-v2-64.png +0 -0
- mcp_vector_search/visualization/favicon-v2.ico +0 -0
- mcp_vector_search/visualization/favicon-v3-1024.png +0 -0
- mcp_vector_search/visualization/favicon-v3-128.png +0 -0
- mcp_vector_search/visualization/favicon-v3-16.png +0 -0
- mcp_vector_search/visualization/favicon-v3-256.png +0 -0
- mcp_vector_search/visualization/favicon-v3-32.png +0 -0
- mcp_vector_search/visualization/favicon-v3-512.png +0 -0
- mcp_vector_search/visualization/favicon-v3-64.png +0 -0
- mcp_vector_search/visualization/favicon-v3.ico +0 -0
- mcp_vector_search/visualization/index.html +1592 -193
- {mcp_vector_search-0.12.1.dist-info → mcp_vector_search-0.12.3.dist-info}/METADATA +62 -2
- {mcp_vector_search-0.12.1.dist-info → mcp_vector_search-0.12.3.dist-info}/RECORD +32 -8
- {mcp_vector_search-0.12.1.dist-info → mcp_vector_search-0.12.3.dist-info}/WHEEL +0 -0
- {mcp_vector_search-0.12.1.dist-info → mcp_vector_search-0.12.3.dist-info}/entry_points.txt +0 -0
- {mcp_vector_search-0.12.1.dist-info → mcp_vector_search-0.12.3.dist-info}/licenses/LICENSE +0 -0
mcp_vector_search/__init__.py
CHANGED
|
@@ -1069,12 +1069,18 @@ def _create_visualization_html(html_file: Path) -> None:
|
|
|
1069
1069
|
.style("pointer-events", "none")
|
|
1070
1070
|
.text(d => collapsedNodes.has(d.id) ? "+" : "−");
|
|
1071
1071
|
|
|
1072
|
-
// Add labels (show
|
|
1072
|
+
// Add labels (show actual import statement for L1 nodes)
|
|
1073
1073
|
node.append("text")
|
|
1074
1074
|
.text(d => {
|
|
1075
1075
|
// L1 (depth 1) nodes are imports
|
|
1076
1076
|
if (d.depth === 1 && d.type !== 'directory' && d.type !== 'file') {
|
|
1077
|
-
|
|
1077
|
+
if (d.content) {
|
|
1078
|
+
// Extract first line of import statement
|
|
1079
|
+
const importLine = d.content.split('\n')[0].trim();
|
|
1080
|
+
// Truncate if too long (max 60 chars)
|
|
1081
|
+
return importLine.length > 60 ? importLine.substring(0, 57) + '...' : importLine;
|
|
1082
|
+
}
|
|
1083
|
+
return d.name; // Fallback to name if no content
|
|
1078
1084
|
}
|
|
1079
1085
|
return d.name;
|
|
1080
1086
|
})
|
|
@@ -1230,9 +1236,14 @@ def _create_visualization_html(html_file: Path) -> None:
|
|
|
1230
1236
|
const meta = document.getElementById('pane-meta');
|
|
1231
1237
|
const content = document.getElementById('pane-content');
|
|
1232
1238
|
|
|
1233
|
-
// Set title with
|
|
1239
|
+
// Set title with actual import statement for L1 nodes
|
|
1234
1240
|
if (node.depth === 1 && node.type !== 'directory' && node.type !== 'file') {
|
|
1235
|
-
|
|
1241
|
+
if (node.content) {
|
|
1242
|
+
const importLine = node.content.split('\n')[0].trim();
|
|
1243
|
+
title.textContent = importLine;
|
|
1244
|
+
} else {
|
|
1245
|
+
title.textContent = `Import: ${node.name}`;
|
|
1246
|
+
}
|
|
1236
1247
|
} else {
|
|
1237
1248
|
title.textContent = node.name;
|
|
1238
1249
|
}
|
|
@@ -1360,10 +1371,15 @@ def _create_visualization_html(html_file: Path) -> None:
|
|
|
1360
1371
|
}
|
|
1361
1372
|
|
|
1362
1373
|
function showImportDetails(node, container) {
|
|
1363
|
-
// L1 nodes are import statements
|
|
1374
|
+
// L1 nodes are import statements - show import content prominently
|
|
1364
1375
|
const importHtml = `
|
|
1365
1376
|
<div class="import-details">
|
|
1366
|
-
|
|
1377
|
+
${node.content ? `
|
|
1378
|
+
<div style="margin-bottom: 16px;">
|
|
1379
|
+
<div class="detail-label" style="margin-bottom: 8px;">Import Statement:</div>
|
|
1380
|
+
<pre><code>${escapeHtml(node.content)}</code></pre>
|
|
1381
|
+
</div>
|
|
1382
|
+
` : '<p style="color: #8b949e;">No import content available</p>'}
|
|
1367
1383
|
<div class="detail-row">
|
|
1368
1384
|
<span class="detail-label">File:</span> ${node.file_path}
|
|
1369
1385
|
</div>
|
|
@@ -1377,12 +1393,6 @@ def _create_visualization_html(html_file: Path) -> None:
|
|
|
1377
1393
|
<span class="detail-label">Language:</span> ${node.language}
|
|
1378
1394
|
</div>
|
|
1379
1395
|
` : ''}
|
|
1380
|
-
${node.content ? `
|
|
1381
|
-
<div style="margin-top: 16px;">
|
|
1382
|
-
<div class="detail-label" style="margin-bottom: 8px;">Import Statement:</div>
|
|
1383
|
-
<pre><code>${escapeHtml(node.content)}</code></pre>
|
|
1384
|
-
</div>
|
|
1385
|
-
` : ''}
|
|
1386
1396
|
</div>
|
|
1387
1397
|
`;
|
|
1388
1398
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|