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

Function accept

graph-ui/src/galaxy/graph-scope.ts:174–184  ·  view source on GitHub ↗
(evidenceNodes: readonly GraphNode[], evidenceEdges: readonly GraphEdge[])

Source from the content-addressed store, hash-verified

172 const next = new Set<number>();
173 const fileBoundary = hop === 0 && (scope.kind === 'folder' || (scope.kind === 'file' && !scope.range));
174 const accept = (evidenceNodes: readonly GraphNode[], evidenceEdges: readonly GraphEdge[]) => {
175 const byId = new Map(evidenceNodes.map(node => [node.id, node]));
176 for (const edge of evidenceEdges) {
177 for (const identity of [edge.source, edge.target]) {
178 const node = byId.get(identity)!;
179 if (!nodes.has(identity)) { next.add(identity); levels.set(identity, hop + 1); }
180 nodes.set(identity, node);
181 }
182 edges.set(edge.id!, edge);
183 }
184 };
185 const legs = direction === 'both' ? ['outbound', 'inbound'] as const : [direction];
186 for (const leg of legs) {
187 if (partial) break;

Callers 3

loadGraphScopeFunction · 0.70
cbm_httpd_acceptFunction · 0.50
cbm_daemon_ipc_acceptFunction · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected