@decaf-ts/integrations 0.10.4 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/integrations.cjs +1 -1
- package/docker/minio-compose.yml +9 -7
- package/jest.config.cjs +2 -0
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs +7 -4
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +12 -73
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +5 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +66 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +16 -0
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/index.cjs +0 -4
- package/lib/cjs/graph/engine/execution/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/index.cjs +0 -7
- package/lib/cjs/graph/engine/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/index.cjs +0 -3
- package/lib/cjs/graph/engine/loops/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs +36 -0
- package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +36 -3
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +32 -1
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/index.cjs +1 -0
- package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +118 -0
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
- package/lib/cjs/graph/nodes/base.cjs +61 -0
- package/lib/cjs/graph/nodes/base.cjs.map +1 -0
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +59 -0
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/break.cjs +71 -0
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +72 -0
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +80 -0
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/if.cjs +82 -0
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +69 -0
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +190 -0
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
- package/lib/cjs/graph/nodes/index.cjs +162 -0
- package/lib/cjs/graph/nodes/index.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/foreach.cjs +189 -0
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs +48 -0
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/until.cjs +136 -0
- package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/while.cjs +133 -0
- package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
- package/lib/cjs/graph/nodes/manifests.cjs +342 -0
- package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/chat.cjs +82 -0
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/event.cjs +63 -0
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/form.cjs +64 -0
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/manual.cjs +65 -0
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +65 -0
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +67 -0
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/code.cjs +139 -0
- package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/delay.cjs +66 -0
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/log.cjs +70 -0
- package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/map.cjs +69 -0
- package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/merge.cjs +67 -0
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/return.cjs +69 -0
- package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +77 -0
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +8 -4
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +2 -0
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs +1 -13
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
- package/lib/esm/blob/s3/S3BlobStoreService.js +7 -4
- package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +11 -72
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +5 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +66 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +16 -0
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
- package/lib/esm/graph/engine/execution/index.js +0 -4
- package/lib/esm/graph/engine/execution/index.js.map +1 -1
- package/lib/esm/graph/engine/index.js +0 -7
- package/lib/esm/graph/engine/index.js.map +1 -1
- package/lib/esm/graph/engine/loops/index.js +0 -3
- package/lib/esm/graph/engine/loops/index.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js +32 -0
- package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js +36 -3
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +32 -1
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
- package/lib/esm/graph/engine/validation/index.js +1 -0
- package/lib/esm/graph/engine/validation/index.js.map +1 -1
- package/lib/esm/graph/nodes/agents/agent.js +109 -0
- package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
- package/lib/esm/graph/nodes/base.js +56 -0
- package/lib/esm/graph/nodes/base.js.map +1 -0
- package/lib/esm/graph/nodes/boundary/input-value.js +50 -0
- package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/break.js +62 -0
- package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +63 -0
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/human-approval.js +71 -0
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/if.js +73 -0
- package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/parallel.js +60 -0
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/switch.js +181 -0
- package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
- package/lib/esm/graph/nodes/index.js +144 -0
- package/lib/esm/graph/nodes/index.js.map +1 -0
- package/lib/esm/graph/nodes/loops/foreach.js +180 -0
- package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
- package/lib/esm/graph/nodes/loops/loop-metadata.js +44 -0
- package/lib/esm/graph/nodes/loops/loop-metadata.js.map +1 -0
- package/lib/esm/graph/nodes/loops/until.js +127 -0
- package/lib/esm/graph/nodes/loops/until.js.map +1 -0
- package/lib/esm/graph/nodes/loops/while.js +124 -0
- package/lib/esm/graph/nodes/loops/while.js.map +1 -0
- package/lib/esm/graph/nodes/manifests.js +338 -0
- package/lib/esm/graph/nodes/manifests.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/chat.js +73 -0
- package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/event.js +54 -0
- package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/form.js +55 -0
- package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/manual.js +56 -0
- package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/schedule.js +56 -0
- package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/webhook.js +58 -0
- package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
- package/lib/esm/graph/nodes/utility/code.js +130 -0
- package/lib/esm/graph/nodes/utility/code.js.map +1 -0
- package/lib/esm/graph/nodes/utility/delay.js +57 -0
- package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
- package/lib/esm/graph/nodes/utility/log.js +61 -0
- package/lib/esm/graph/nodes/utility/log.js.map +1 -0
- package/lib/esm/graph/nodes/utility/map.js +60 -0
- package/lib/esm/graph/nodes/utility/map.js.map +1 -0
- package/lib/esm/graph/nodes/utility/merge.js +58 -0
- package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
- package/lib/esm/graph/nodes/utility/return.js +60 -0
- package/lib/esm/graph/nodes/utility/return.js.map +1 -0
- package/lib/esm/graph/nodes/utility/utility-log.js +68 -0
- package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +8 -4
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +2 -0
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowService.js +2 -14
- package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +4 -7
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +4 -7
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +6 -1
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +6 -1
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +27 -0
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +27 -0
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +12 -0
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +12 -0
- package/lib/types/graph/engine/execution/index.d.cts +0 -4
- package/lib/types/graph/engine/execution/index.d.mts +0 -4
- package/lib/types/graph/engine/index.d.cts +0 -7
- package/lib/types/graph/engine/index.d.mts +0 -7
- package/lib/types/graph/engine/loops/index.d.cts +0 -3
- package/lib/types/graph/engine/loops/index.d.mts +0 -3
- package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.cts +21 -0
- package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.mts +21 -0
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +25 -1
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +25 -1
- package/lib/types/graph/engine/validation/index.d.cts +1 -0
- package/lib/types/graph/engine/validation/index.d.mts +1 -0
- package/lib/types/graph/nodes/agents/agent.d.cts +31 -0
- package/lib/types/graph/nodes/agents/agent.d.mts +31 -0
- package/lib/types/graph/nodes/base.d.cts +58 -0
- package/lib/types/graph/nodes/base.d.mts +58 -0
- package/lib/types/graph/nodes/boundary/input-value.d.cts +6 -0
- package/lib/types/graph/nodes/boundary/input-value.d.mts +6 -0
- package/lib/types/graph/nodes/flow-control/break.d.cts +8 -0
- package/lib/types/graph/nodes/flow-control/break.d.mts +8 -0
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +8 -0
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +8 -0
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +8 -0
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +8 -0
- package/lib/types/graph/nodes/flow-control/if.d.cts +8 -0
- package/lib/types/graph/nodes/flow-control/if.d.mts +8 -0
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +7 -0
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +7 -0
- package/lib/types/graph/nodes/flow-control/switch.d.cts +23 -0
- package/lib/types/graph/nodes/flow-control/switch.d.mts +23 -0
- package/lib/types/graph/nodes/index.d.cts +93 -0
- package/lib/types/graph/nodes/index.d.mts +93 -0
- package/lib/types/graph/nodes/loops/foreach.d.cts +11 -0
- package/lib/types/graph/nodes/loops/foreach.d.mts +11 -0
- package/lib/types/graph/nodes/loops/loop-metadata.d.cts +20 -0
- package/lib/types/graph/nodes/loops/loop-metadata.d.mts +20 -0
- package/lib/types/graph/nodes/loops/until.d.cts +8 -0
- package/lib/types/graph/nodes/loops/until.d.mts +8 -0
- package/lib/types/graph/nodes/loops/while.d.cts +8 -0
- package/lib/types/graph/nodes/loops/while.d.mts +8 -0
- package/lib/types/graph/nodes/manifests.d.cts +62 -0
- package/lib/types/graph/nodes/manifests.d.mts +62 -0
- package/lib/types/graph/nodes/triggers/chat.d.cts +8 -0
- package/lib/types/graph/nodes/triggers/chat.d.mts +8 -0
- package/lib/types/graph/nodes/triggers/event.d.cts +6 -0
- package/lib/types/graph/nodes/triggers/event.d.mts +6 -0
- package/lib/types/graph/nodes/triggers/form.d.cts +6 -0
- package/lib/types/graph/nodes/triggers/form.d.mts +6 -0
- package/lib/types/graph/nodes/triggers/manual.d.cts +6 -0
- package/lib/types/graph/nodes/triggers/manual.d.mts +6 -0
- package/lib/types/graph/nodes/triggers/schedule.d.cts +6 -0
- package/lib/types/graph/nodes/triggers/schedule.d.mts +6 -0
- package/lib/types/graph/nodes/triggers/webhook.d.cts +6 -0
- package/lib/types/graph/nodes/triggers/webhook.d.mts +6 -0
- package/lib/types/graph/nodes/utility/code.d.cts +36 -0
- package/lib/types/graph/nodes/utility/code.d.mts +36 -0
- package/lib/types/graph/nodes/utility/delay.d.cts +7 -0
- package/lib/types/graph/nodes/utility/delay.d.mts +7 -0
- package/lib/types/graph/nodes/utility/log.d.cts +8 -0
- package/lib/types/graph/nodes/utility/log.d.mts +8 -0
- package/lib/types/graph/nodes/utility/map.d.cts +7 -0
- package/lib/types/graph/nodes/utility/map.d.mts +7 -0
- package/lib/types/graph/nodes/utility/merge.d.cts +7 -0
- package/lib/types/graph/nodes/utility/merge.d.mts +7 -0
- package/lib/types/graph/nodes/utility/return.d.cts +7 -0
- package/lib/types/graph/nodes/utility/return.d.mts +7 -0
- package/lib/types/graph/nodes/utility/utility-log.d.cts +10 -0
- package/lib/types/graph/nodes/utility/utility-log.d.mts +10 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +5 -3
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +5 -3
- package/package.json +1 -1
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +0 -24
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +0 -103
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +0 -47
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +0 -121
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +0 -146
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +0 -102
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +0 -103
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +0 -1
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +0 -19
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +0 -98
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +0 -42
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +0 -116
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +0 -141
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +0 -97
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +0 -98
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +0 -1
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +0 -22
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +0 -22
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +0 -65
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +0 -65
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +0 -25
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +0 -25
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +0 -43
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +0 -43
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +0 -35
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +0 -35
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +0 -22
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +0 -22
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +0 -26
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +0 -26
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/CodeGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
|
|
4
|
-
* @description Executes user-authored JS/TS in a restricted sandbox via the
|
|
5
|
-
* pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
|
|
6
|
-
* restrictions: no imports, no requires, pure functions only (no system API
|
|
7
|
-
* access). The executor reads the code from the node's `code` input port
|
|
8
|
-
* (spliced from {@link CodeInputSchema}), the timeout from the node's graph
|
|
9
|
-
* metadata, resolves the sandbox context from the node's input values and
|
|
10
|
-
* execution context, invokes the evaluator, and returns the result on the
|
|
11
|
-
* `result` output port.
|
|
12
|
-
*/
|
|
13
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
14
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
15
|
-
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
|
|
16
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
17
|
-
/**
|
|
18
|
-
* Executor for `core.flow.code` nodes.
|
|
19
|
-
*
|
|
20
|
-
* The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
|
|
21
|
-
* does not implement the sandbox directly (§22.4); instead it delegates to the
|
|
22
|
-
* pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
|
|
23
|
-
* no evaluator is registered, the executor throws
|
|
24
|
-
* `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
|
|
25
|
-
*
|
|
26
|
-
* The code is read from the `code` input port (spliced from
|
|
27
|
-
* {@link CodeInputSchema}). The language is hardcoded to `"javascript"` for
|
|
28
|
-
* now (the `language` field on `CodeInputSchema` has no `@input` so it is not
|
|
29
|
-
* a port and not wired). The timeout is read from `graph.metadata.timeoutMs`.
|
|
30
|
-
*
|
|
31
|
-
* The sandbox context exposes:
|
|
32
|
-
* - `$input` — the full input values object (all resolved port values).
|
|
33
|
-
* - `$vars` — workflow variables (sourced from `context.metadata.vars`).
|
|
34
|
-
* - `$item` / `$index` — current loop item and index.
|
|
35
|
-
* - `$node` — outputs of upstream nodes.
|
|
36
|
-
* - `$output` — the current draft output.
|
|
37
|
-
*
|
|
38
|
-
* The evaluator's return value is forwarded verbatim on the `result` output
|
|
39
|
-
* port.
|
|
40
|
-
*/
|
|
41
|
-
export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
|
|
42
|
-
private readonly engine?;
|
|
43
|
-
/**
|
|
44
|
-
* @param engine - The graph execution engine (or any object exposing the
|
|
45
|
-
* optional `codeSandboxEvaluator`). This mirrors the pattern used by
|
|
46
|
-
* {@link SwitchGraphNodeExecutor} for code conditions.
|
|
47
|
-
*/
|
|
48
|
-
constructor(engine?: {
|
|
49
|
-
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
50
|
-
} | undefined);
|
|
51
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
52
|
-
/**
|
|
53
|
-
* Builds the {@link CodeSandboxContext} from the executor input and the
|
|
54
|
-
* graph execution context.
|
|
55
|
-
*
|
|
56
|
-
* The `$input` value is the full input values object so the code can access
|
|
57
|
-
* every resolved port value (including `code` itself via `$input.code`).
|
|
58
|
-
*
|
|
59
|
-
* The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
|
|
60
|
-
* from `context.metadata` — the engine (or a wrapping loop executor) may
|
|
61
|
-
* populate these when the Code node runs inside a loop body or a workflow
|
|
62
|
-
* with variables.
|
|
63
|
-
*/
|
|
64
|
-
private buildSandboxContext;
|
|
65
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
|
|
2
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
|
|
3
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
4
|
-
/**
|
|
5
|
-
* Executor for `core.utility.log` / `core.flow.log` nodes.
|
|
6
|
-
*
|
|
7
|
-
* Reads the `value` input port, logs it through `context.logger` at the
|
|
8
|
-
* configured level, and returns it unchanged on the `logged` output port.
|
|
9
|
-
*/
|
|
10
|
-
export declare class LogGraphNodeExecutor implements GraphNodeExecutor {
|
|
11
|
-
/**
|
|
12
|
-
* Logs the `value` input through the run's `ctx.logger` and forwards it
|
|
13
|
-
* unchanged on the `logged` output port.
|
|
14
|
-
*
|
|
15
|
-
* The level is read from the node's UI config (`node.props.level`, see
|
|
16
|
-
* {@link logLevelOf}) and defaults to `info`. The emitted log line carries
|
|
17
|
-
* the DECAF-48 run attributes and streams over `graph.run.log` through the
|
|
18
|
-
* shared `ctx.logger` path (DECAF-48 Req-1).
|
|
19
|
-
*
|
|
20
|
-
* @param request - The node execution request (expects the `value` input).
|
|
21
|
-
* @param context - The run-scoped execution context exposing `ctx.logger`.
|
|
22
|
-
* @returns The node's output values keyed by port name (the `logged` port).
|
|
23
|
-
*/
|
|
24
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
2
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
3
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
4
|
-
/**
|
|
5
|
-
* Executor for `core.utility.log` / `core.flow.log` nodes.
|
|
6
|
-
*
|
|
7
|
-
* Reads the `value` input port, logs it through `context.logger` at the
|
|
8
|
-
* configured level, and returns it unchanged on the `logged` output port.
|
|
9
|
-
*/
|
|
10
|
-
export declare class LogGraphNodeExecutor implements GraphNodeExecutor {
|
|
11
|
-
/**
|
|
12
|
-
* Logs the `value` input through the run's `ctx.logger` and forwards it
|
|
13
|
-
* unchanged on the `logged` output port.
|
|
14
|
-
*
|
|
15
|
-
* The level is read from the node's UI config (`node.props.level`, see
|
|
16
|
-
* {@link logLevelOf}) and defaults to `info`. The emitted log line carries
|
|
17
|
-
* the DECAF-48 run attributes and streams over `graph.run.log` through the
|
|
18
|
-
* shared `ctx.logger` path (DECAF-48 Req-1).
|
|
19
|
-
*
|
|
20
|
-
* @param request - The node execution request (expects the `value` input).
|
|
21
|
-
* @param context - The run-scoped execution context exposing `ctx.logger`.
|
|
22
|
-
* @returns The node's output values keyed by port name (the `logged` port).
|
|
23
|
-
*/
|
|
24
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
25
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/SwitchGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Switch flow-control node (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Evaluates each case's condition against the node's input and
|
|
5
|
-
* routes the input to the first matching case's output port. Falls back to
|
|
6
|
-
* the `default` output when no case matches. Supports both
|
|
7
|
-
* {@link ConditionExpression} (graphical mode) and {@link CodeCondition}
|
|
8
|
-
* (code mode via the pluggable {@link CodeSandboxEvaluator}).
|
|
9
|
-
*/
|
|
10
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
|
|
11
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
|
|
12
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
13
|
-
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.cts";
|
|
14
|
-
/**
|
|
15
|
-
* Executor for `core.flow.switch` nodes.
|
|
16
|
-
*
|
|
17
|
-
* Evaluates each case's condition in order and routes the input to the
|
|
18
|
-
* first matching case's output port. When no case matches:
|
|
19
|
-
* - If `hasDefault` is `true`, routes to the `default` output port.
|
|
20
|
-
* - If `hasDefault` is `false` (the default), throws `GRAPH_SWITCH_NO_MATCH`.
|
|
21
|
-
*
|
|
22
|
-
* Condition evaluation:
|
|
23
|
-
* - `ConditionExpression` — evaluated via {@link ConditionExpressionEvaluator}.
|
|
24
|
-
* - `CodeCondition` — evaluated via the pluggable {@link CodeSandboxEvaluator}
|
|
25
|
-
* from the engine's config. Throws `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`
|
|
26
|
-
* when no evaluator is registered.
|
|
27
|
-
*/
|
|
28
|
-
export declare class SwitchGraphNodeExecutor implements GraphNodeExecutor {
|
|
29
|
-
private readonly engine?;
|
|
30
|
-
private readonly expressionEvaluator;
|
|
31
|
-
constructor(engine?: {
|
|
32
|
-
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
33
|
-
} | undefined);
|
|
34
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
35
|
-
/**
|
|
36
|
-
* Evaluates a single switch case condition.
|
|
37
|
-
*/
|
|
38
|
-
private evaluateCondition;
|
|
39
|
-
/**
|
|
40
|
-
* Evaluates a code condition via the pluggable sandbox evaluator.
|
|
41
|
-
*/
|
|
42
|
-
private evaluateCodeCondition;
|
|
43
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/SwitchGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Switch flow-control node (DECAF-32 §22.2.2).
|
|
4
|
-
* @description Evaluates each case's condition against the node's input and
|
|
5
|
-
* routes the input to the first matching case's output port. Falls back to
|
|
6
|
-
* the `default` output when no case matches. Supports both
|
|
7
|
-
* {@link ConditionExpression} (graphical mode) and {@link CodeCondition}
|
|
8
|
-
* (code mode via the pluggable {@link CodeSandboxEvaluator}).
|
|
9
|
-
*/
|
|
10
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
11
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
12
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
13
|
-
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
|
|
14
|
-
/**
|
|
15
|
-
* Executor for `core.flow.switch` nodes.
|
|
16
|
-
*
|
|
17
|
-
* Evaluates each case's condition in order and routes the input to the
|
|
18
|
-
* first matching case's output port. When no case matches:
|
|
19
|
-
* - If `hasDefault` is `true`, routes to the `default` output port.
|
|
20
|
-
* - If `hasDefault` is `false` (the default), throws `GRAPH_SWITCH_NO_MATCH`.
|
|
21
|
-
*
|
|
22
|
-
* Condition evaluation:
|
|
23
|
-
* - `ConditionExpression` — evaluated via {@link ConditionExpressionEvaluator}.
|
|
24
|
-
* - `CodeCondition` — evaluated via the pluggable {@link CodeSandboxEvaluator}
|
|
25
|
-
* from the engine's config. Throws `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`
|
|
26
|
-
* when no evaluator is registered.
|
|
27
|
-
*/
|
|
28
|
-
export declare class SwitchGraphNodeExecutor implements GraphNodeExecutor {
|
|
29
|
-
private readonly engine?;
|
|
30
|
-
private readonly expressionEvaluator;
|
|
31
|
-
constructor(engine?: {
|
|
32
|
-
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
33
|
-
} | undefined);
|
|
34
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
35
|
-
/**
|
|
36
|
-
* Evaluates a single switch case condition.
|
|
37
|
-
*/
|
|
38
|
-
private evaluateCondition;
|
|
39
|
-
/**
|
|
40
|
-
* Evaluates a code condition via the pluggable sandbox evaluator.
|
|
41
|
-
*/
|
|
42
|
-
private evaluateCodeCondition;
|
|
43
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/ForeachGraphNodeExecutor
|
|
3
|
-
* @summary Foreach loop node executor.
|
|
4
|
-
* @description Executes a body workflow once per item (or per slice of items)
|
|
5
|
-
* in the input array, collecting results in order. Supports a configurable
|
|
6
|
-
* `slice` size and cooperative early termination via `core.flow.break` nodes
|
|
7
|
-
* (which throw a {@link GraphBreakSignal}).
|
|
8
|
-
*/
|
|
9
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
|
|
10
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
|
|
11
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
|
|
12
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
13
|
-
/**
|
|
14
|
-
* Executor for `core.loop.foreach` nodes.
|
|
15
|
-
*
|
|
16
|
-
* Expects input:
|
|
17
|
-
* - `items`: array of values to iterate over
|
|
18
|
-
* - `slice?`: optional slice size (overrides `metadata.loop.slice`); default `1`
|
|
19
|
-
* - `state?`: optional initial state
|
|
20
|
-
*
|
|
21
|
-
* Produces output:
|
|
22
|
-
* - `results`: array of body outputs (in item order). When `slice > 1`, one
|
|
23
|
-
* entry per slice (the body receives a slice array on the item port).
|
|
24
|
-
* - `completed`: alias for `results` — the flow after the loop ends (the
|
|
25
|
-
* collected results array).
|
|
26
|
-
* - `iterations`: number of iterations executed
|
|
27
|
-
* - `broken`: `true` when the loop was terminated early by a Break node
|
|
28
|
-
* - `state?`: final state
|
|
29
|
-
*/
|
|
30
|
-
export declare class ForeachGraphNodeExecutor implements GraphNodeExecutor {
|
|
31
|
-
private readonly engine;
|
|
32
|
-
constructor(engine: GraphExecutionEngine);
|
|
33
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
34
|
-
private extractMetadata;
|
|
35
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/ForeachGraphNodeExecutor
|
|
3
|
-
* @summary Foreach loop node executor.
|
|
4
|
-
* @description Executes a body workflow once per item (or per slice of items)
|
|
5
|
-
* in the input array, collecting results in order. Supports a configurable
|
|
6
|
-
* `slice` size and cooperative early termination via `core.flow.break` nodes
|
|
7
|
-
* (which throw a {@link GraphBreakSignal}).
|
|
8
|
-
*/
|
|
9
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
|
|
10
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
|
|
11
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
|
|
12
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
13
|
-
/**
|
|
14
|
-
* Executor for `core.loop.foreach` nodes.
|
|
15
|
-
*
|
|
16
|
-
* Expects input:
|
|
17
|
-
* - `items`: array of values to iterate over
|
|
18
|
-
* - `slice?`: optional slice size (overrides `metadata.loop.slice`); default `1`
|
|
19
|
-
* - `state?`: optional initial state
|
|
20
|
-
*
|
|
21
|
-
* Produces output:
|
|
22
|
-
* - `results`: array of body outputs (in item order). When `slice > 1`, one
|
|
23
|
-
* entry per slice (the body receives a slice array on the item port).
|
|
24
|
-
* - `completed`: alias for `results` — the flow after the loop ends (the
|
|
25
|
-
* collected results array).
|
|
26
|
-
* - `iterations`: number of iterations executed
|
|
27
|
-
* - `broken`: `true` when the loop was terminated early by a Break node
|
|
28
|
-
* - `state?`: final state
|
|
29
|
-
*/
|
|
30
|
-
export declare class ForeachGraphNodeExecutor implements GraphNodeExecutor {
|
|
31
|
-
private readonly engine;
|
|
32
|
-
constructor(engine: GraphExecutionEngine);
|
|
33
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
34
|
-
private extractMetadata;
|
|
35
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/UntilGraphNodeExecutor
|
|
3
|
-
* @summary Until loop node executor.
|
|
4
|
-
* @description Executes a body workflow at least once and repeats until a condition is true.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
|
|
7
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
|
|
8
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
|
|
9
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
10
|
-
/**
|
|
11
|
-
* Executor for `core.loop.until` nodes.
|
|
12
|
-
*
|
|
13
|
-
* Executes the body at least once, then checks the condition. Repeats until
|
|
14
|
-
* the condition evaluates to true.
|
|
15
|
-
*/
|
|
16
|
-
export declare class UntilGraphNodeExecutor implements GraphNodeExecutor {
|
|
17
|
-
private readonly engine;
|
|
18
|
-
private readonly evaluator;
|
|
19
|
-
constructor(engine: GraphExecutionEngine);
|
|
20
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
21
|
-
private extractMetadata;
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/UntilGraphNodeExecutor
|
|
3
|
-
* @summary Until loop node executor.
|
|
4
|
-
* @description Executes a body workflow at least once and repeats until a condition is true.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
|
|
7
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
|
|
8
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
|
|
9
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
10
|
-
/**
|
|
11
|
-
* Executor for `core.loop.until` nodes.
|
|
12
|
-
*
|
|
13
|
-
* Executes the body at least once, then checks the condition. Repeats until
|
|
14
|
-
* the condition evaluates to true.
|
|
15
|
-
*/
|
|
16
|
-
export declare class UntilGraphNodeExecutor implements GraphNodeExecutor {
|
|
17
|
-
private readonly engine;
|
|
18
|
-
private readonly evaluator;
|
|
19
|
-
constructor(engine: GraphExecutionEngine);
|
|
20
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
21
|
-
private extractMetadata;
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/WhileGraphNodeExecutor
|
|
3
|
-
* @summary While loop node executor.
|
|
4
|
-
* @description Executes a body workflow repeatedly while a condition is true, enforcing a maximum iteration limit.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.cts";
|
|
7
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.cts";
|
|
8
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.cts";
|
|
9
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
10
|
-
/**
|
|
11
|
-
* Executor for `core.loop.while` nodes.
|
|
12
|
-
*
|
|
13
|
-
* Expects input:
|
|
14
|
-
* - `state`: initial state
|
|
15
|
-
*
|
|
16
|
-
* Produces output:
|
|
17
|
-
* - `state`: final state
|
|
18
|
-
* - `iterations`: number of iterations executed
|
|
19
|
-
*/
|
|
20
|
-
export declare class WhileGraphNodeExecutor implements GraphNodeExecutor {
|
|
21
|
-
private readonly engine;
|
|
22
|
-
private readonly evaluator;
|
|
23
|
-
constructor(engine: GraphExecutionEngine);
|
|
24
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
25
|
-
private extractMetadata;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/loops/WhileGraphNodeExecutor
|
|
3
|
-
* @summary While loop node executor.
|
|
4
|
-
* @description Executes a body workflow repeatedly while a condition is true, enforcing a maximum iteration limit.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphNodeExecutor } from "../execution/GraphNodeExecutor.d.mts";
|
|
7
|
-
import type { GraphExecutionContext } from "../execution/GraphExecutionContext.d.mts";
|
|
8
|
-
import type { GraphExecutionEngine } from "../execution/GraphExecutionEngine.d.mts";
|
|
9
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
10
|
-
/**
|
|
11
|
-
* Executor for `core.loop.while` nodes.
|
|
12
|
-
*
|
|
13
|
-
* Expects input:
|
|
14
|
-
* - `state`: initial state
|
|
15
|
-
*
|
|
16
|
-
* Produces output:
|
|
17
|
-
* - `state`: final state
|
|
18
|
-
* - `iterations`: number of iterations executed
|
|
19
|
-
*/
|
|
20
|
-
export declare class WhileGraphNodeExecutor implements GraphNodeExecutor {
|
|
21
|
-
private readonly engine;
|
|
22
|
-
private readonly evaluator;
|
|
23
|
-
constructor(engine: GraphExecutionEngine);
|
|
24
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
25
|
-
private extractMetadata;
|
|
26
|
-
}
|