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

Function readBrowse

graph-ui/src/projects/projects-model.ts:109–117  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

107}
108
109export function readBrowse(raw: unknown): BrowseLevel {
110 const record = isRecord(raw) ? raw : {};
111 return {
112 path: text(record['path']),
113 dirs: strings(record['dirs']),
114 parent: text(record['parent']),
115 roots: strings(record['roots']),
116 };
117}
118
119/** `path` joined with one of its listed folders, without doubling the separator. */
120export function childPath(level: BrowseLevel, dir: string): string {

Callers 2

browseMethod · 0.90

Calls 3

stringsFunction · 0.85
isRecordFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected