mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-12 09:47:20 +08:00
The D4 orientation package, mechanics adapted from the two reference UIs studied in the screened snapshots: - Search scent propagates up the hierarchy: a 'find a symbol' input on the region sidebar lights matching regions in the 3D scene, pins hit counts on the region rows and the minimap, and reports the total with an outside-regions remainder. Served by /api/scent - a case-insensitive name match bucketed per region via the cached file->region map (File/Folder nodes excluded so a file never double-counts its own symbols; sub-2-char queries refused). - 2D minimap panel (bottom right, collapsible): every region as a dot on a fixed top-down projection, sized by sqrt(members), colored by region, open region ringed, scent counts above the dots, click to open, and a Home button that fits the current scene. - Region hover card: members/files, cohesion as a word (tightly / moderately / loosely connected) with the score, and the hub. - Node tooltip on graphite tokens (last pre-D1 hardcoded surface) and in/out call degree - layout nodes now carry out_calls, which the degree pass already computed and discarded. - Honest scope note in the region detail panel: '+N callers outside this region' whenever the full-graph in-degree exceeds the loaded window. Tests: scent bucketing + LIKE-escape refusal (C), /api/scent route wiring, minimap projection + cohesion words (vitest), region-list queries disambiguated from minimap titles. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>