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

Function meta

__tests__/nextjs-proxy.test.ts:217–217  ·  view source on GitHub ↗
(e: Edge)

Source from the content-addressed store, hash-verified

215 const page = (name: string): string => `export default function ${name}() {\n return null\n}\n`;
216 const manifest = (next: string): string => JSON.stringify({ name: 'web', dependencies: { next, react: '19.0.0' } });
217 const meta = (e: Edge): Record<string, unknown> => (e.metadata ?? {}) as Record<string, unknown>;
218 const proxyEdges = (cg: CodeGraph): Edge[] =>
219 cg.getNodesByKind('route').flatMap((r) => cg.getOutgoingEdges(r.id).filter((e) => meta(e).synthesizedBy === 'next-proxy'));
220 const routesRunning = (cg: CodeGraph, target: Node): Record<string, unknown> =>

Callers 3

proxyEdgesFunction · 0.70
routesRunningFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected