(gateway: GatewayClient, id: string)
| 27 | return { ...node, cfg }; |
| 28 | }); |
| 29 | } |
| 30 | |
| 31 | function isSetupShell(graph: Graph): boolean { |
| 32 | if (graph.cfg.enable !== false || graph.nodes.length !== 1) return false; |
| 33 | const node = graph.nodes[0]; |
| 34 | return node.id === 'setup' |
| 35 | && node.type === 'onLoad' |
| 36 | && node.cfg?.name === 'onLoad' |
| 37 | && Object.keys(node.props || {}).length === 0 |
| 38 | && Object.keys(node.inputs || {}).length === 0 |
| 39 | && JSON.stringify(node.outputs) === JSON.stringify({ output: [] }); |
no outgoing calls
no test coverage detected