MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pick

Function pick

src/ui-server/api/flow.ts:865–868  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

863): Node[] {
864 if (from === null || to === null) return [...flow.named.values()];
865 const pick = (token: string): Node[] =>
866 (flow.tokenNodes.get(normalizeToken(token)) ?? [])
867 .map((id) => flow.named.get(id))
868 .filter((n): n is Node => !!n);
869 return [...pick(from), ...pick(to)];
870}
871

Callers 2

boundarySeedsFunction · 0.70
exprReceiversFunction · 0.50

Calls 3

normalizeTokenFunction · 0.90
mapMethod · 0.80
getMethod · 0.65

Tested by 1

exprReceiversFunction · 0.40