MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / readableRoute

Function readableRoute

graph-ui/src/architecture/semantic-graph.ts:115–115  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

113/** Route paths as people read them: '/%C3%A9dit' reads '/édit'. Reserved characters stay encoded
114 * (decodeURI), and a path that is not valid percent-encoding stays as indexed. */
115export const readableRoute = (path: string): string => { try { return decodeURI(path); } catch { return path; } };
116const routePrefixOf = (label: string) => `/${label.replace(/^[A-Z]+\s+/, '').split('/').filter(Boolean)[0] ?? ''}`;
117/** Characters a compact route chip shows before it cuts the label (spatial-architecture.css, 112px at 10px). */
118const COMPACT_LABEL_CHARS = 14;

Callers 3

routeKeyFunction · 0.85
buildSemanticGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected