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

Function pathNodes

graph-ui/src/galaxy/scope-path.ts:63–67  ·  view source on GitHub ↗
(steps: readonly ScopePathStep[], roots: ReadonlySet<number>)

Source from the content-addressed store, hash-verified

61
62/** Every node a path touches, roots included. */
63export function pathNodes(steps: readonly ScopePathStep[], roots: ReadonlySet<number>): Set<number> {
64 const ids = new Set<number>(steps.length ? [steps[0]!.from] : roots);
65 for (const step of steps) { ids.add(step.from); ids.add(step.to); }
66 return ids;
67}

Callers 2

GalaxyPanelFunction · 0.90
scope-path.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected