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

Function route

__tests__/ui-steps-api-servers.test.ts:276–280  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

274
275const q = (params: Record<string, string>) => new URLSearchParams(params);
276const route = (name: string) => {
277 const r = cg.getNodesByKind('route').find((r) => r.name === name);
278 if (!r) throw new Error(`no route ${name}: ${cg.getNodesByKind('route').map((r) => r.name).join(', ')}`);
279 return r;
280};
281const effect = (p: Awaited<ReturnType<typeof buildSteps>>, category: string) => p.steps.find((s) => s.kind === 'effect' && s.effect?.category === category);
282
283/**

Callers 1

Calls 3

mapMethod · 0.80
getNodesByKindMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected