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

Function level

graph-ui/src/projects/AddProjectIndexDialog.test.tsx:22–24  ·  view source on GitHub ↗
(path: string, dirs: string[] = [])

Source from the content-addressed store, hash-verified

20let onActivityChange: Mock<NonNullable<AddProjectIndexDialogProps['onActivityChange']>>;
21
22function level(path: string, dirs: string[] = []): BrowseLevel {
23 return { path, dirs, parent: path.slice(0, path.lastIndexOf('/')) || '/', roots: [] };
24}
25function makeSource() {
26 return {
27 browse: vi.fn(async (path: string): Promise<BrowseLevel> => level(path || home, !path || path === home ? ['repo-z', 'repo-one'] : [])),

Callers 2

makeSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected