@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
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = exports.GRAPH_BUILT_IN_NODE_MANIFESTS = exports.AGENT_GRAPH_NODE_MANIFEST = exports.BREAK_GRAPH_NODE_MANIFEST = exports.UTILITY_LOG_GRAPH_NODE_MANIFEST = exports.LOG_GRAPH_NODE_MANIFEST = exports.CODE_GRAPH_NODE_MANIFEST = exports.RETURN_GRAPH_NODE_MANIFEST = exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = exports.DELAY_GRAPH_NODE_MANIFEST = exports.MAP_GRAPH_NODE_MANIFEST = exports.MERGE_GRAPH_NODE_MANIFEST = exports.PARALLEL_GRAPH_NODE_MANIFEST = exports.IF_GRAPH_NODE_MANIFEST = exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST = exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST = exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST = exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = exports.SWITCH_GRAPH_NODE_MANIFEST = exports.UNTIL_GRAPH_NODE_MANIFEST = exports.WHILE_GRAPH_NODE_MANIFEST = exports.FOREACH_GRAPH_NODE_MANIFEST = void 0;
|
|
4
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
5
|
+
const agent_js_1 = require("./agents/agent.cjs");
|
|
6
|
+
const break_js_1 = require("./flow-control/break.cjs");
|
|
7
|
+
const error_boundary_js_1 = require("./flow-control/error-boundary.cjs");
|
|
8
|
+
const human_approval_js_1 = require("./flow-control/human-approval.cjs");
|
|
9
|
+
const if_js_1 = require("./flow-control/if.cjs");
|
|
10
|
+
const parallel_js_1 = require("./flow-control/parallel.cjs");
|
|
11
|
+
const switch_js_1 = require("./flow-control/switch.cjs");
|
|
12
|
+
const code_js_1 = require("./utility/code.cjs");
|
|
13
|
+
const delay_js_1 = require("./utility/delay.cjs");
|
|
14
|
+
const log_js_1 = require("./utility/log.cjs");
|
|
15
|
+
const map_js_1 = require("./utility/map.cjs");
|
|
16
|
+
const merge_js_1 = require("./utility/merge.cjs");
|
|
17
|
+
const return_js_1 = require("./utility/return.cjs");
|
|
18
|
+
const utility_log_js_1 = require("./utility/utility-log.cjs");
|
|
19
|
+
const chat_js_1 = require("./triggers/chat.cjs");
|
|
20
|
+
const event_js_1 = require("./triggers/event.cjs");
|
|
21
|
+
const form_js_1 = require("./triggers/form.cjs");
|
|
22
|
+
const manual_js_1 = require("./triggers/manual.cjs");
|
|
23
|
+
const schedule_js_1 = require("./triggers/schedule.cjs");
|
|
24
|
+
const webhook_js_1 = require("./triggers/webhook.cjs");
|
|
25
|
+
/**
|
|
26
|
+
* Builds a single {@link GraphPortManifest} from its id, label, direction,
|
|
27
|
+
* and optional extra fields — the terse constructor used by the hand-authored
|
|
28
|
+
* loop manifests below.
|
|
29
|
+
*
|
|
30
|
+
* @param id - Port identifier (matches the decorated property handle).
|
|
31
|
+
* @param label - Human-readable port label.
|
|
32
|
+
* @param direction - Port direction (`input` or `output`).
|
|
33
|
+
* @param extra - Optional manifest fields merged over the defaults.
|
|
34
|
+
* @returns The assembled port manifest.
|
|
35
|
+
*/
|
|
36
|
+
function port(id, label, direction, extra = {}) {
|
|
37
|
+
return { id, label, direction, ...extra };
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Compiles a `@node`-decorated class into its published
|
|
41
|
+
* {@link GraphNodeManifest}, so the served shape matches what the Angular
|
|
42
|
+
* palette consumes.
|
|
43
|
+
*
|
|
44
|
+
* @param node - The decorated node class constructor.
|
|
45
|
+
* @param name - Display name override for the compiled manifest.
|
|
46
|
+
* @returns The compiled node manifest.
|
|
47
|
+
*/
|
|
48
|
+
function compile(node, name) {
|
|
49
|
+
return (0, graph_1.graphNodeManifest)(node, { name });
|
|
50
|
+
}
|
|
51
|
+
/** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
|
|
52
|
+
exports.FOREACH_GRAPH_NODE_MANIFEST = {
|
|
53
|
+
kind: "core.loop.foreach",
|
|
54
|
+
capabilities: ["loop"],
|
|
55
|
+
display: {
|
|
56
|
+
name: "Foreach",
|
|
57
|
+
description: "Runs the loop body once per item (or per slice of items) of the input array, collecting the results in order.",
|
|
58
|
+
// Single manifest display source per kind (G3-23): the hand-authored
|
|
59
|
+
// manifest remains the backend executor-port authority, but its display is
|
|
60
|
+
// mirrored from the decorated `GraphForeachLoopNode` class so the two
|
|
61
|
+
// authorities never diverge on category/colour/icon/labels.
|
|
62
|
+
category: "Loop",
|
|
63
|
+
color: "#eab308",
|
|
64
|
+
icon: { type: "catalogue", name: "ti-repeat" },
|
|
65
|
+
width: 120,
|
|
66
|
+
height: 140,
|
|
67
|
+
labels: ["loop", "iteration", "foreach"],
|
|
68
|
+
},
|
|
69
|
+
inputs: [
|
|
70
|
+
port("items", "Items", "input", {
|
|
71
|
+
required: true,
|
|
72
|
+
schema: { type: "array", items: { type: "any" } },
|
|
73
|
+
}),
|
|
74
|
+
port("slice", "Slice size", "input", { schema: { type: "number", integer: true, min: 1 } }),
|
|
75
|
+
port("state", "Initial state", "input", { schema: { type: "any" } }),
|
|
76
|
+
],
|
|
77
|
+
outputs: [
|
|
78
|
+
port("results", "Results", "output", {
|
|
79
|
+
schema: { type: "array", items: { type: "any" } },
|
|
80
|
+
}),
|
|
81
|
+
port("completed", "Completed", "output", {
|
|
82
|
+
schema: { type: "array", items: { type: "any" } },
|
|
83
|
+
}),
|
|
84
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
85
|
+
port("broken", "Broken", "output", { schema: { type: "boolean" } }),
|
|
86
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
87
|
+
],
|
|
88
|
+
parameters: [
|
|
89
|
+
{
|
|
90
|
+
type: "number",
|
|
91
|
+
id: "maxIterations",
|
|
92
|
+
label: "Max iterations",
|
|
93
|
+
integer: true,
|
|
94
|
+
min: 1,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: "object",
|
|
98
|
+
id: "condition",
|
|
99
|
+
label: "Condition",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: "string",
|
|
103
|
+
id: "itemPort",
|
|
104
|
+
label: "Item port",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: "string",
|
|
108
|
+
id: "resultPort",
|
|
109
|
+
label: "Result port",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: "string",
|
|
113
|
+
id: "statePort",
|
|
114
|
+
label: "State port",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: "number",
|
|
118
|
+
id: "slice",
|
|
119
|
+
label: "Slice size",
|
|
120
|
+
integer: true,
|
|
121
|
+
min: 1,
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
};
|
|
125
|
+
/** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
|
|
126
|
+
exports.WHILE_GRAPH_NODE_MANIFEST = {
|
|
127
|
+
kind: "core.loop.while",
|
|
128
|
+
capabilities: ["loop"],
|
|
129
|
+
display: {
|
|
130
|
+
name: "While",
|
|
131
|
+
description: "Runs the loop body while the configured condition evaluates to true, threading the state between iterations.",
|
|
132
|
+
category: "Loop",
|
|
133
|
+
color: "#eab308",
|
|
134
|
+
icon: { type: "catalogue", name: "ti-arrows-loop" },
|
|
135
|
+
width: 120,
|
|
136
|
+
height: 140,
|
|
137
|
+
labels: ["loop", "conditional", "while"],
|
|
138
|
+
},
|
|
139
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
140
|
+
outputs: [
|
|
141
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
142
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
143
|
+
],
|
|
144
|
+
parameters: [
|
|
145
|
+
{
|
|
146
|
+
type: "number",
|
|
147
|
+
id: "maxIterations",
|
|
148
|
+
label: "Max iterations",
|
|
149
|
+
integer: true,
|
|
150
|
+
min: 1,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: "object",
|
|
154
|
+
id: "condition",
|
|
155
|
+
label: "Condition",
|
|
156
|
+
required: true,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: "string",
|
|
160
|
+
id: "statePort",
|
|
161
|
+
label: "State port",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: "string",
|
|
165
|
+
id: "inputPort",
|
|
166
|
+
label: "Input port",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: "string",
|
|
170
|
+
id: "outputPort",
|
|
171
|
+
label: "Output port",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
};
|
|
175
|
+
/** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
|
|
176
|
+
exports.UNTIL_GRAPH_NODE_MANIFEST = {
|
|
177
|
+
kind: "core.loop.until",
|
|
178
|
+
capabilities: ["loop"],
|
|
179
|
+
display: {
|
|
180
|
+
name: "Until",
|
|
181
|
+
description: "Runs the loop body at least once, then repeats until the configured condition evaluates to true.",
|
|
182
|
+
category: "Loop",
|
|
183
|
+
color: "#eab308",
|
|
184
|
+
icon: { type: "catalogue", name: "ti-player-stop" },
|
|
185
|
+
width: 120,
|
|
186
|
+
height: 140,
|
|
187
|
+
labels: ["loop", "conditional", "until"],
|
|
188
|
+
},
|
|
189
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
190
|
+
outputs: [
|
|
191
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
192
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
193
|
+
],
|
|
194
|
+
parameters: [
|
|
195
|
+
{
|
|
196
|
+
type: "number",
|
|
197
|
+
id: "maxIterations",
|
|
198
|
+
label: "Max iterations",
|
|
199
|
+
integer: true,
|
|
200
|
+
min: 1,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
type: "object",
|
|
204
|
+
id: "condition",
|
|
205
|
+
label: "Condition",
|
|
206
|
+
required: true,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
type: "string",
|
|
210
|
+
id: "statePort",
|
|
211
|
+
label: "State port",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: "string",
|
|
215
|
+
id: "inputPort",
|
|
216
|
+
label: "Input port",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
type: "string",
|
|
220
|
+
id: "outputPort",
|
|
221
|
+
label: "Output port",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
};
|
|
225
|
+
const switchCompiled = compile(switch_js_1.SwitchFlowNode, "Switch");
|
|
226
|
+
/** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
|
|
227
|
+
exports.SWITCH_GRAPH_NODE_MANIFEST = {
|
|
228
|
+
...switchCompiled,
|
|
229
|
+
outputs: [],
|
|
230
|
+
parameters: [
|
|
231
|
+
...switchCompiled.parameters,
|
|
232
|
+
{
|
|
233
|
+
type: "collection",
|
|
234
|
+
id: "cases",
|
|
235
|
+
label: "Cases",
|
|
236
|
+
required: true,
|
|
237
|
+
itemIdPath: "outputPort",
|
|
238
|
+
itemLabelPath: "label",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
type: "boolean",
|
|
242
|
+
id: "hasDefault",
|
|
243
|
+
label: "Has default",
|
|
244
|
+
defaultValue: false,
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
dynamicPorts: [
|
|
248
|
+
{
|
|
249
|
+
type: "repeatFromParameter",
|
|
250
|
+
parameter: "cases",
|
|
251
|
+
itemIdPath: "outputPort",
|
|
252
|
+
itemLabelPath: "label",
|
|
253
|
+
direction: "output",
|
|
254
|
+
portIdTemplate: "${id}",
|
|
255
|
+
defaultPort: {
|
|
256
|
+
id: "case",
|
|
257
|
+
label: "Case",
|
|
258
|
+
direction: "output",
|
|
259
|
+
schema: { type: "any" },
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
type: "togglePort",
|
|
264
|
+
parameter: "hasDefault",
|
|
265
|
+
equals: true,
|
|
266
|
+
port: {
|
|
267
|
+
id: "default",
|
|
268
|
+
label: "Default",
|
|
269
|
+
direction: "output",
|
|
270
|
+
schema: { type: "any" },
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
};
|
|
275
|
+
/** Manifest for the manual-trigger node (starts a run on demand). */
|
|
276
|
+
exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = compile(manual_js_1.ManualTriggerNode, "Manual trigger");
|
|
277
|
+
/** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
|
|
278
|
+
exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = compile(webhook_js_1.WebhookTriggerNode, "Webhook trigger");
|
|
279
|
+
/** Manifest for the schedule-trigger node (starts a run on a schedule). */
|
|
280
|
+
exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = compile(schedule_js_1.ScheduleTriggerNode, "Schedule trigger");
|
|
281
|
+
/** Manifest for the event-trigger node (starts a run on an observed event). */
|
|
282
|
+
exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST = compile(event_js_1.EventTriggerNode, "Event trigger");
|
|
283
|
+
/** Manifest for the form-trigger node (starts a run from a form submission). */
|
|
284
|
+
exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST = compile(form_js_1.FormTriggerNode, "Form trigger");
|
|
285
|
+
/** Manifest for the chat-trigger node (starts a run from a chat message). */
|
|
286
|
+
exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST = compile(chat_js_1.ChatTriggerNode, "Chat trigger");
|
|
287
|
+
/** Manifest for the if node (conditional branch on a boolean condition). */
|
|
288
|
+
exports.IF_GRAPH_NODE_MANIFEST = compile(if_js_1.IfFlowNode, "If");
|
|
289
|
+
/** Manifest for the parallel node (runs branches concurrently). */
|
|
290
|
+
exports.PARALLEL_GRAPH_NODE_MANIFEST = compile(parallel_js_1.ParallelFlowNode, "Parallel");
|
|
291
|
+
/** Manifest for the merge node (joins parallel branches). */
|
|
292
|
+
exports.MERGE_GRAPH_NODE_MANIFEST = compile(merge_js_1.MergeFlowNode, "Merge");
|
|
293
|
+
/** Manifest for the map node (transforms each input item). */
|
|
294
|
+
exports.MAP_GRAPH_NODE_MANIFEST = compile(map_js_1.MapNode, "Map");
|
|
295
|
+
/** Manifest for the delay node (pauses execution for a duration). */
|
|
296
|
+
exports.DELAY_GRAPH_NODE_MANIFEST = compile(delay_js_1.DelayFlowNode, "Delay");
|
|
297
|
+
/** Manifest for the error-boundary node (isolates branch failures). */
|
|
298
|
+
exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = compile(error_boundary_js_1.ErrorBoundaryFlowNode, "Error boundary");
|
|
299
|
+
/** Manifest for the human-approval node (waits for an approval decision). */
|
|
300
|
+
exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = compile(human_approval_js_1.HumanApprovalFlowNode, "Human approval");
|
|
301
|
+
/** Manifest for the return node (terminates the workflow with output values). */
|
|
302
|
+
exports.RETURN_GRAPH_NODE_MANIFEST = compile(return_js_1.ReturnFlowNode, "Return");
|
|
303
|
+
/** Manifest for the code node (executes user code). */
|
|
304
|
+
exports.CODE_GRAPH_NODE_MANIFEST = compile(code_js_1.CodeNode, "Code");
|
|
305
|
+
/** Manifest for the log node (logs its input). */
|
|
306
|
+
exports.LOG_GRAPH_NODE_MANIFEST = compile(log_js_1.LogFlowNode, "Log");
|
|
307
|
+
/** Manifest for the utility-log node (log-shaped utility sink). */
|
|
308
|
+
exports.UTILITY_LOG_GRAPH_NODE_MANIFEST = compile(utility_log_js_1.UtilityLogNode, "Utility Log");
|
|
309
|
+
/** Manifest for the break node (exits the enclosing loop). */
|
|
310
|
+
exports.BREAK_GRAPH_NODE_MANIFEST = compile(break_js_1.BreakFlowNode, "Break");
|
|
311
|
+
/** Manifest for the agent node (delegates work to an agent). */
|
|
312
|
+
exports.AGENT_GRAPH_NODE_MANIFEST = compile(agent_js_1.AgentNode, "Agent");
|
|
313
|
+
/** All built-in node manifests, in catalogue display order. */
|
|
314
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS = [
|
|
315
|
+
exports.MANUAL_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
316
|
+
exports.WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
317
|
+
exports.SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
318
|
+
exports.EVENT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
319
|
+
exports.FORM_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
320
|
+
exports.CHAT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
321
|
+
exports.IF_GRAPH_NODE_MANIFEST,
|
|
322
|
+
exports.SWITCH_GRAPH_NODE_MANIFEST,
|
|
323
|
+
exports.PARALLEL_GRAPH_NODE_MANIFEST,
|
|
324
|
+
exports.MERGE_GRAPH_NODE_MANIFEST,
|
|
325
|
+
exports.MAP_GRAPH_NODE_MANIFEST,
|
|
326
|
+
exports.DELAY_GRAPH_NODE_MANIFEST,
|
|
327
|
+
exports.ERROR_BOUNDARY_GRAPH_NODE_MANIFEST,
|
|
328
|
+
exports.HUMAN_APPROVAL_GRAPH_NODE_MANIFEST,
|
|
329
|
+
exports.RETURN_GRAPH_NODE_MANIFEST,
|
|
330
|
+
exports.CODE_GRAPH_NODE_MANIFEST,
|
|
331
|
+
exports.LOG_GRAPH_NODE_MANIFEST,
|
|
332
|
+
exports.UTILITY_LOG_GRAPH_NODE_MANIFEST,
|
|
333
|
+
exports.BREAK_GRAPH_NODE_MANIFEST,
|
|
334
|
+
exports.AGENT_GRAPH_NODE_MANIFEST,
|
|
335
|
+
exports.FOREACH_GRAPH_NODE_MANIFEST,
|
|
336
|
+
exports.WHILE_GRAPH_NODE_MANIFEST,
|
|
337
|
+
exports.UNTIL_GRAPH_NODE_MANIFEST,
|
|
338
|
+
];
|
|
339
|
+
/** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
|
|
340
|
+
exports.GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = Object.fromEntries(exports.GRAPH_BUILT_IN_NODE_MANIFESTS.map((manifest) => [manifest.kind, manifest]));
|
|
341
|
+
//# sourceMappingURL=manifests.js.map
|
|
342
|
+
//# sourceMappingURL=manifests.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/manifests.cjs","sourceRoot":"","sources":["graph/nodes/manifests.js"],"names":[],"mappings":";;;AAAA,yDAAkE;AAClE,gDAA8C;AAC9C,sDAAwD;AACxD,wEAAyE;AACzE,wEAAyE;AACzE,gDAAkD;AAClD,4DAA8D;AAC9D,wDAA0D;AAC1D,+CAA6C;AAC7C,iDAAmD;AACnD,6CAA+C;AAC/C,6CAA2C;AAC3C,iDAAmD;AACnD,mDAAqD;AACrD,6DAA0D;AAC1D,gDAAqD;AACrD,kDAAuD;AACvD,gDAAqD;AACrD,oDAAyD;AACzD,wDAA6D;AAC7D,sDAA2D;AAC3D;;;;;;;;;;GAUG;AACH,SAAS,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE;IAC1C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,CAAC;AAC9C,CAAC;AACD;;;;;;;;GAQG;AACH,SAAS,OAAO,CAAC,IAAI,EAAE,IAAI;IACvB,OAAO,IAAA,y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AO,CAAC,kBAAQ,EAAE,MAAM,CAAC,CAAC;AAClE,kDAAkD;AACrC,QAAA,uBAAuB,GAAG,OAAO,CAAC,oBAAW,EAAE,KAAK,CAAC,CAAC;AACnE,mEAAmE;AACtD,QAAA,+BAA+B,GAAG,OAAO,CAAC,+BAAc,EAAE,aAAa,CAAC,CAAC;AACtF,8DAA8D;AACjD,QAAA,yBAAyB,GAAG,OAAO,CAAC,wBAAa,EAAE,OAAO,CAAC,CAAC;AACzE,gEAAgE;AACnD,QAAA,yBAAyB,GAAG,OAAO,CAAC,oBAAS,EAAE,OAAO,CAAC,CAAC;AACrE,+DAA+D;AAClD,QAAA,6BAA6B,GAAG;IACzC,0CAAkC;IAClC,2CAAmC;IACnC,4CAAoC;IACpC,yCAAiC;IACjC,wCAAgC;IAChC,wCAAgC;IAChC,8BAAsB;IACtB,kCAA0B;IAC1B,oCAA4B;IAC5B,iCAAyB;IACzB,+BAAuB;IACvB,iCAAyB;IACzB,0CAAkC;IAClC,0CAAkC;IAClC,kCAA0B;IAC1B,gCAAwB;IACxB,+BAAuB;IACvB,uCAA+B;IAC/B,iCAAyB;IACzB,iCAAyB;IACzB,mCAA2B;IAC3B,iCAAyB;IACzB,iCAAyB;CAC5B,CAAC;AACF,mGAAmG;AACtF,QAAA,qCAAqC,GAAG,MAAM,CAAC,WAAW,CAAC,qCAA6B,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACpJ,qCAAqC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module integrations/graph/nodes/triggers/chat
|
|
20
|
+
* @summary Chat trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Chat trigger — chat message entrypoint; message/sessionId/
|
|
22
|
+
* userId schema.
|
|
23
|
+
*/
|
|
24
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
25
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
26
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
27
|
+
const base_js_1 = require("./../base.cjs");
|
|
28
|
+
let ChatTriggerNode = class ChatTriggerNode extends base_js_1.GraphNode {
|
|
29
|
+
static execute(request) {
|
|
30
|
+
return {
|
|
31
|
+
message: request.inputs["message"] ?? null,
|
|
32
|
+
sessionId: request.inputs["sessionId"] ?? null,
|
|
33
|
+
userId: request.inputs["userId"] ?? null,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.ChatTriggerNode = ChatTriggerNode;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, decorator_validation_1.required)(),
|
|
40
|
+
(0, ui_decorators_1.uielement)("input", {
|
|
41
|
+
label: "Message",
|
|
42
|
+
placeholder: "Incoming chat message",
|
|
43
|
+
}),
|
|
44
|
+
(0, graph_1.output)({ handle: "message" }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ChatTriggerNode.prototype, "message", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, decorator_validation_1.required)(),
|
|
49
|
+
(0, ui_decorators_1.uielement)("input", {
|
|
50
|
+
label: "Session ID",
|
|
51
|
+
placeholder: "Chat session identifier",
|
|
52
|
+
}),
|
|
53
|
+
(0, graph_1.output)({ handle: "sessionId" }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ChatTriggerNode.prototype, "sessionId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, decorator_validation_1.required)(),
|
|
58
|
+
(0, ui_decorators_1.uielement)("input", { label: "User ID", placeholder: "Chat user identifier" }),
|
|
59
|
+
(0, graph_1.output)({ handle: "userId" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], ChatTriggerNode.prototype, "userId", void 0);
|
|
62
|
+
exports.ChatTriggerNode = ChatTriggerNode = __decorate([
|
|
63
|
+
(0, graph_1.node)("core.trigger.chat", {
|
|
64
|
+
kind: "core.trigger.chat",
|
|
65
|
+
category: "Trigger",
|
|
66
|
+
color: "#3b82f6",
|
|
67
|
+
icon: "ti-message-circle",
|
|
68
|
+
width: 96,
|
|
69
|
+
height: 96,
|
|
70
|
+
labels: ["trigger", "chat", "entrypoint"],
|
|
71
|
+
metadata: {
|
|
72
|
+
title: "Chat trigger",
|
|
73
|
+
description: "Starts the workflow when a chat message is received. Emits message, sessionId, and userId.",
|
|
74
|
+
trigger: {
|
|
75
|
+
type: "chat",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
79
|
+
(0, decorator_validation_1.model)()
|
|
80
|
+
], ChatTriggerNode);
|
|
81
|
+
//# sourceMappingURL=chat.js.map
|
|
82
|
+
//# sourceMappingURL=chat.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/chat.cjs","sourceRoot":"","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AK,CAAC,CAAC,CAAC;AACnD,UAAU,CAAC;IACP,IAAA,+BAAQ,GAAE;IACV,IAAA,yBAAS,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC7E,IAAA,cAAM,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC5B,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,eAAe,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,0BAAA,eAAe,GAAG,UAAU,CAAC;IACzB,IAAA,YAAI,EAAC,mBAAmB,EAAE;QACtB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC;QACzC,QAAQ,EAAE;YACN,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;aACf;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,eAAe,CAAC,CAAC;AAEpB,gCAAgC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module integrations/graph/nodes/triggers/event
|
|
20
|
+
* @summary Event trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Event trigger — internal event bus topic subscriber.
|
|
22
|
+
*/
|
|
23
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
24
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
25
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
26
|
+
const base_js_1 = require("./../base.cjs");
|
|
27
|
+
let EventTriggerNode = class EventTriggerNode extends base_js_1.GraphNode {
|
|
28
|
+
static execute(request) {
|
|
29
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.EventTriggerNode = EventTriggerNode;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, decorator_validation_1.required)(),
|
|
35
|
+
(0, ui_decorators_1.uielement)("textarea", {
|
|
36
|
+
label: "Event payload",
|
|
37
|
+
placeholder: "Event bus payload",
|
|
38
|
+
}),
|
|
39
|
+
(0, graph_1.output)({ handle: "payload" }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], EventTriggerNode.prototype, "payload", void 0);
|
|
42
|
+
exports.EventTriggerNode = EventTriggerNode = __decorate([
|
|
43
|
+
(0, graph_1.node)("core.trigger.event", {
|
|
44
|
+
kind: "core.trigger.event",
|
|
45
|
+
category: "Trigger",
|
|
46
|
+
color: "#3b82f6",
|
|
47
|
+
icon: "ti-broadcast",
|
|
48
|
+
width: 96,
|
|
49
|
+
height: 96,
|
|
50
|
+
labels: ["trigger", "event", "bus"],
|
|
51
|
+
metadata: {
|
|
52
|
+
title: "Event trigger",
|
|
53
|
+
description: "Starts the workflow when an event is published on the configured internal event bus topic.",
|
|
54
|
+
trigger: {
|
|
55
|
+
type: "event",
|
|
56
|
+
topic: "default",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
(0, decorator_validation_1.model)()
|
|
61
|
+
], EventTriggerNode);
|
|
62
|
+
//# sourceMappingURL=event.js.map
|
|
63
|
+
//# sourceMappingURL=event.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/event.cjs","sourceRoot":"","sources":["graph/nodes/triggers/event.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAA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SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAClD,2BAAA,gBAAgB,GAAG,UAAU,CAAC;IAC1B,IAAA,YAAI,EAAC,oBAAoB,EAAE;QACvB,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC;QACnC,QAAQ,EAAE;YACN,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;aACnB;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,gBAAgB,CAAC,CAAC;AAErB,iCAAiC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module integrations/graph/nodes/triggers/form
|
|
20
|
+
* @summary Form trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Form trigger — generated public/internal form; field
|
|
22
|
+
* definitions.
|
|
23
|
+
*/
|
|
24
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
25
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
26
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
27
|
+
const base_js_1 = require("./../base.cjs");
|
|
28
|
+
let FormTriggerNode = class FormTriggerNode extends base_js_1.GraphNode {
|
|
29
|
+
static execute(request) {
|
|
30
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.FormTriggerNode = FormTriggerNode;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, decorator_validation_1.required)(),
|
|
36
|
+
(0, ui_decorators_1.uielement)("textarea", {
|
|
37
|
+
label: "Form submission",
|
|
38
|
+
placeholder: "Form submission payload",
|
|
39
|
+
}),
|
|
40
|
+
(0, graph_1.output)({ handle: "payload" }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], FormTriggerNode.prototype, "payload", void 0);
|
|
43
|
+
exports.FormTriggerNode = FormTriggerNode = __decorate([
|
|
44
|
+
(0, graph_1.node)("core.trigger.form", {
|
|
45
|
+
kind: "core.trigger.form",
|
|
46
|
+
category: "Trigger",
|
|
47
|
+
color: "#3b82f6",
|
|
48
|
+
icon: "ti-forms",
|
|
49
|
+
width: 96,
|
|
50
|
+
height: 96,
|
|
51
|
+
labels: ["trigger", "form", "public"],
|
|
52
|
+
metadata: {
|
|
53
|
+
title: "Form trigger",
|
|
54
|
+
description: "Starts the workflow when a generated form is submitted. Field definitions drive the form schema.",
|
|
55
|
+
trigger: {
|
|
56
|
+
type: "form",
|
|
57
|
+
fields: [],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
(0, decorator_validation_1.model)()
|
|
62
|
+
], FormTriggerNode);
|
|
63
|
+
//# sourceMappingURL=form.js.map
|
|
64
|
+
//# sourceMappingURL=form.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/nodes/triggers/form.cjs","sourceRoot":"","sources":["graph/nodes/triggers/form.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,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AAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;QACrC,QAAQ,EAAE;YACN,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,kGAAkG;YAC/G,OAAO,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,EAAE;aACb;SACJ;KACJ,CAAC;IACF,IAAA,4BAAK,GAAE;CACV,EAAE,eAAe,CAAC,CAAC;AAEpB,gCAAgC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManualTriggerNode = void 0;
|
|
4
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
+
else
|
|
9
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
+
if (d = decorators[i])
|
|
11
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
+
};
|
|
14
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
+
return Reflect.metadata(k, v);
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @module integrations/graph/nodes/triggers/manual
|
|
20
|
+
* @summary Manual trigger node declaration (DECAF-32 §22.2.1).
|
|
21
|
+
* @description Manual trigger — user clicks Run; input form generated from
|
|
22
|
+
* `inputSchema`. Triggers are metadata-only entrypoints: they define how a
|
|
23
|
+
* workflow starts and produce a trigger payload on their `@output` ports.
|
|
24
|
+
*/
|
|
25
|
+
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
26
|
+
const ui_decorators_1 = require("@decaf-ts/ui-decorators");
|
|
27
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
28
|
+
const base_js_1 = require("./../base.cjs");
|
|
29
|
+
let ManualTriggerNode = class ManualTriggerNode extends base_js_1.GraphNode {
|
|
30
|
+
static execute(request) {
|
|
31
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.ManualTriggerNode = ManualTriggerNode;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, decorator_validation_1.required)(),
|
|
37
|
+
(0, ui_decorators_1.uielement)("textarea", {
|
|
38
|
+
label: "Trigger payload",
|
|
39
|
+
placeholder: "Manual trigger payload",
|
|
40
|
+
}),
|
|
41
|
+
(0, graph_1.output)({ handle: "payload" }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], ManualTriggerNode.prototype, "payload", void 0);
|
|
44
|
+
exports.ManualTriggerNode = ManualTriggerNode = __decorate([
|
|
45
|
+
(0, graph_1.node)("core.trigger.manual", {
|
|
46
|
+
kind: "core.trigger.manual",
|
|
47
|
+
category: "Trigger",
|
|
48
|
+
color: "#3b82f6",
|
|
49
|
+
icon: "ti-hand-click",
|
|
50
|
+
width: 96,
|
|
51
|
+
height: 96,
|
|
52
|
+
labels: ["trigger", "manual", "entrypoint"],
|
|
53
|
+
metadata: {
|
|
54
|
+
title: "Manual trigger",
|
|
55
|
+
description: "Starts the workflow when the user clicks Run. The input form is generated from the trigger's input schema.",
|
|
56
|
+
trigger: {
|
|
57
|
+
type: "manual",
|
|
58
|
+
inputSchema: {},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
}),
|
|
62
|
+
(0, decorator_validation_1.model)()
|
|
63
|
+
], ManualTriggerNode);
|
|
64
|
+
//# sourceMappingURL=manual.js.map
|
|
65
|
+
//# sourceMappingURL=manual.cjs.map
|