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

Function moduleLabel

graph-ui/src/twin/render-model.ts:1023–1027  ·  view source on GitHub ↗

* The module a call lands in, as a reader would name it. * * The last two segments of the recorded path, which is enough to tell * `util/validate.ts` from `repo/validate.ts` and short enough to read in a * column. The whole recorded path is on the row's detail, so nothing is hidden, * only fold

(uri: string)

Source from the content-addressed store, hash-verified

1021 * only folded.
1022 */
1023function moduleLabel(uri: string): string {
1024 const path = uri.split('?')[0].split('#')[0];
1025 const segments = path.split('/').filter((part) => part.length > 0);
1026 return segments.slice(-2).join('/') || (displayFile(uri) ?? uri);
1027}
1028
1029/**
1030 * What this symbol sits on: one row per module, with how many call sites reach

Callers 1

groundRowsFunction · 0.70

Calls 1

displayFileFunction · 0.90

Tested by

no test coverage detected