(n: number)
| 328 | // dispatches to one. The agent names the static entry + `execute`, which can't |
| 329 | // resolve to a single impl — the boundary IS the answer. |
| 330 | const nodeFamily = (n: number) => { |
| 331 | const names = ['Http', 'Set', 'If', 'Merge', 'Code', 'Webhook', 'Cron', 'Func', 'NoOp', 'Switch', 'Wait', 'Filter']; |
| 332 | return [ |
| 333 | 'export interface INodeType { execute(): unknown; }', |
| 334 | ...names.slice(0, n).map((nm, i) => `export class ${nm}Node implements INodeType { execute() { return ${i}; } }`), |
| 335 | ].join('\n'); |
| 336 | }; |
| 337 | const engine = [ |
| 338 | "import { registry } from './registry';", |
| 339 | 'export class WorkflowExecute {', |
no test coverage detected