fix: port search and dimension safety guardrails

- enforce canonical dimensions across app and MCP surfaces
- prioritize title-first node search in UI and query tools
- add regression tests for ranking and dimension validation
This commit is contained in:
“BeeRad”
2026-03-23 10:47:18 +11:00
parent c1eda905d3
commit 545dc6e2e8
18 changed files with 250 additions and 78 deletions
@@ -88,7 +88,7 @@ export default function NodeSearchModal({
const timeoutId = setTimeout(async () => {
try {
const response = await fetch(`/api/nodes/search?q=${encodeURIComponent(searchQuery)}&limit=10`);
const response = await fetch(`/api/nodes/search?q=${encodeURIComponent(searchQuery)}&limit=20`);
const result = await response.json();
if (response.ok && result.success) {
const nextSuggestions = (result.data as NodeSuggestion[])
@@ -229,7 +229,9 @@ export default function NodeSearchModal({
background: '#141414',
border: '1px solid #2a2a2a',
borderRadius: '12px',
overflow: 'hidden',
overflowX: 'hidden',
overflowY: 'auto',
maxHeight: 'min(60vh, 560px)',
boxShadow: '0 24px 48px -12px rgba(0,0,0,0.6)',
}}>
{suggestions.map((suggestion, index) => (