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

Function sourceOf

graph-ui/src/tours/tour-source.test.ts:37–58  ·  view source on GitHub ↗
(files: string[], graph: ModuleDependencyGraph)

Source from the content-addressed store, hash-verified

35}
36
37function sourceOf(files: string[], graph: ModuleDependencyGraph): TourSource & {
38 overviewCalls: number;
39 dependencyCalls: number;
40} {
41 const state = { overviewCalls: 0, dependencyCalls: 0 };
42 return {
43 get overviewCalls() {
44 return state.overviewCalls;
45 },
46 get dependencyCalls() {
47 return state.dependencyCalls;
48 },
49 async architectureOverview() {
50 state.overviewCalls += 1;
51 return overviewOf(files);
52 },
53 async moduleDependencies() {
54 state.dependencyCalls += 1;
55 return graph;
56 },
57 };
58}
59
60const FILES = ['src/config.ts', 'src/server.ts'];
61const GRAPH: ModuleDependencyGraph = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected