MCPcopy
hub / github.com/colbymchenry/codegraph / nodeFamily

Function nodeFamily

__tests__/dynamic-boundaries.test.ts:343–349  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

341 // dispatches to one. The agent names the static entry + `execute`, which can't
342 // resolve to a single impl — the boundary IS the answer.
343 const nodeFamily = (n: number) => {
344 const names = ['Http', 'Set', 'If', 'Merge', 'Code', 'Webhook', 'Cron', 'Func', 'NoOp', 'Switch', 'Wait', 'Filter'];
345 return [
346 'export interface INodeType { execute(): unknown; }',
347 ...names.slice(0, n).map((nm, i) => `export class ${nm}Node implements INodeType { execute() { return ${i}; } }`),
348 ].join('\n');
349 };
350 const engine = [
351 "import { registry } from './registry';",
352 'export class WorkflowExecute {',

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected