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