@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,73 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/chat
|
|
12
|
+
* @summary Chat trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Chat trigger — chat message entrypoint; message/sessionId/
|
|
14
|
+
* userId schema.
|
|
15
|
+
*/
|
|
16
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
17
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
18
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
+
import { GraphNode } from "./../base.js";
|
|
20
|
+
let ChatTriggerNode = class ChatTriggerNode extends GraphNode {
|
|
21
|
+
static execute(request) {
|
|
22
|
+
return {
|
|
23
|
+
message: request.inputs["message"] ?? null,
|
|
24
|
+
sessionId: request.inputs["sessionId"] ?? null,
|
|
25
|
+
userId: request.inputs["userId"] ?? null,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
__decorate([
|
|
30
|
+
required(),
|
|
31
|
+
uielement("input", {
|
|
32
|
+
label: "Message",
|
|
33
|
+
placeholder: "Incoming chat message",
|
|
34
|
+
}),
|
|
35
|
+
output({ handle: "message" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ChatTriggerNode.prototype, "message", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
required(),
|
|
40
|
+
uielement("input", {
|
|
41
|
+
label: "Session ID",
|
|
42
|
+
placeholder: "Chat session identifier",
|
|
43
|
+
}),
|
|
44
|
+
output({ handle: "sessionId" }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ChatTriggerNode.prototype, "sessionId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
required(),
|
|
49
|
+
uielement("input", { label: "User ID", placeholder: "Chat user identifier" }),
|
|
50
|
+
output({ handle: "userId" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ChatTriggerNode.prototype, "userId", void 0);
|
|
53
|
+
ChatTriggerNode = __decorate([
|
|
54
|
+
node("core.trigger.chat", {
|
|
55
|
+
kind: "core.trigger.chat",
|
|
56
|
+
category: "Trigger",
|
|
57
|
+
color: "#3b82f6",
|
|
58
|
+
icon: "ti-message-circle",
|
|
59
|
+
width: 96,
|
|
60
|
+
height: 96,
|
|
61
|
+
labels: ["trigger", "chat", "entrypoint"],
|
|
62
|
+
metadata: {
|
|
63
|
+
title: "Chat trigger",
|
|
64
|
+
description: "Starts the workflow when a chat message is received. Emits message, sessionId, and userId.",
|
|
65
|
+
trigger: {
|
|
66
|
+
type: "chat",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
model()
|
|
71
|
+
], ChatTriggerNode);
|
|
72
|
+
export { ChatTriggerNode };
|
|
73
|
+
//# sourceMappingURL=chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/chat.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,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ACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC;QACzC,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,4FAA4F;YAC9F,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,eAAe,CA6B3B"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/event
|
|
12
|
+
* @summary Event trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Event trigger — internal event bus topic subscriber.
|
|
14
|
+
*/
|
|
15
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
16
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
17
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
18
|
+
import { GraphNode } from "./../base.js";
|
|
19
|
+
let EventTriggerNode = class EventTriggerNode extends GraphNode {
|
|
20
|
+
static execute(request) {
|
|
21
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
required(),
|
|
26
|
+
uielement("textarea", {
|
|
27
|
+
label: "Event payload",
|
|
28
|
+
placeholder: "Event bus payload",
|
|
29
|
+
}),
|
|
30
|
+
output({ handle: "payload" }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], EventTriggerNode.prototype, "payload", void 0);
|
|
33
|
+
EventTriggerNode = __decorate([
|
|
34
|
+
node("core.trigger.event", {
|
|
35
|
+
kind: "core.trigger.event",
|
|
36
|
+
category: "Trigger",
|
|
37
|
+
color: "#3b82f6",
|
|
38
|
+
icon: "ti-broadcast",
|
|
39
|
+
width: 96,
|
|
40
|
+
height: 96,
|
|
41
|
+
labels: ["trigger", "event", "bus"],
|
|
42
|
+
metadata: {
|
|
43
|
+
title: "Event trigger",
|
|
44
|
+
description: "Starts the workflow when an event is published on the configured internal event bus topic.",
|
|
45
|
+
trigger: {
|
|
46
|
+
type: "event",
|
|
47
|
+
topic: "default",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}),
|
|
51
|
+
model()
|
|
52
|
+
], EventTriggerNode);
|
|
53
|
+
export { EventTriggerNode };
|
|
54
|
+
//# sourceMappingURL=event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/event.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,qBAAgB;AAyB7B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,SAAS;IAC7C,MAAM,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxD,CAAC;CASF,CAAA;AADC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,mBAAmB;KACjC,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;iDACZ;AAXP,gBAAgB;IAnB5B,IAAI,CAAC,oBAAoB,EAAE;QAC1B,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;YACR,KAAK,EAAE,eAAe;YACtB,WAAW,EACT,4FAA4F;YAC9F,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,SAAS;aACjB;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,gBAAgB,CAY5B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/form
|
|
12
|
+
* @summary Form trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Form trigger — generated public/internal form; field
|
|
14
|
+
* definitions.
|
|
15
|
+
*/
|
|
16
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
17
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
18
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
+
import { GraphNode } from "./../base.js";
|
|
20
|
+
let FormTriggerNode = class FormTriggerNode extends GraphNode {
|
|
21
|
+
static execute(request) {
|
|
22
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
required(),
|
|
27
|
+
uielement("textarea", {
|
|
28
|
+
label: "Form submission",
|
|
29
|
+
placeholder: "Form submission payload",
|
|
30
|
+
}),
|
|
31
|
+
output({ handle: "payload" }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], FormTriggerNode.prototype, "payload", void 0);
|
|
34
|
+
FormTriggerNode = __decorate([
|
|
35
|
+
node("core.trigger.form", {
|
|
36
|
+
kind: "core.trigger.form",
|
|
37
|
+
category: "Trigger",
|
|
38
|
+
color: "#3b82f6",
|
|
39
|
+
icon: "ti-forms",
|
|
40
|
+
width: 96,
|
|
41
|
+
height: 96,
|
|
42
|
+
labels: ["trigger", "form", "public"],
|
|
43
|
+
metadata: {
|
|
44
|
+
title: "Form trigger",
|
|
45
|
+
description: "Starts the workflow when a generated form is submitted. Field definitions drive the form schema.",
|
|
46
|
+
trigger: {
|
|
47
|
+
type: "form",
|
|
48
|
+
fields: [],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
model()
|
|
53
|
+
], FormTriggerNode);
|
|
54
|
+
export { FormTriggerNode };
|
|
55
|
+
//# sourceMappingURL=form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/form.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,qBAAgB;AAyB7B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,SAAS;IAC5C,MAAM,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxD,CAAC;CASF,CAAA;AADC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,yBAAyB;KACvC,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;gDACZ;AAXP,eAAe;IAnB3B,IAAI,CAAC,mBAAmB,EAAE;QACzB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;QACrC,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc;YACrB,WAAW,EACT,kGAAkG;YACpG,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,eAAe,CAY3B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/manual
|
|
12
|
+
* @summary Manual trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Manual trigger — user clicks Run; input form generated from
|
|
14
|
+
* `inputSchema`. Triggers are metadata-only entrypoints: they define how a
|
|
15
|
+
* workflow starts and produce a trigger payload on their `@output` ports.
|
|
16
|
+
*/
|
|
17
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
18
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
19
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
20
|
+
import { GraphNode } from "./../base.js";
|
|
21
|
+
let ManualTriggerNode = class ManualTriggerNode extends GraphNode {
|
|
22
|
+
static execute(request) {
|
|
23
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorate([
|
|
27
|
+
required(),
|
|
28
|
+
uielement("textarea", {
|
|
29
|
+
label: "Trigger payload",
|
|
30
|
+
placeholder: "Manual trigger payload",
|
|
31
|
+
}),
|
|
32
|
+
output({ handle: "payload" }),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], ManualTriggerNode.prototype, "payload", void 0);
|
|
35
|
+
ManualTriggerNode = __decorate([
|
|
36
|
+
node("core.trigger.manual", {
|
|
37
|
+
kind: "core.trigger.manual",
|
|
38
|
+
category: "Trigger",
|
|
39
|
+
color: "#3b82f6",
|
|
40
|
+
icon: "ti-hand-click",
|
|
41
|
+
width: 96,
|
|
42
|
+
height: 96,
|
|
43
|
+
labels: ["trigger", "manual", "entrypoint"],
|
|
44
|
+
metadata: {
|
|
45
|
+
title: "Manual trigger",
|
|
46
|
+
description: "Starts the workflow when the user clicks Run. The input form is generated from the trigger's input schema.",
|
|
47
|
+
trigger: {
|
|
48
|
+
type: "manual",
|
|
49
|
+
inputSchema: {},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}),
|
|
53
|
+
model()
|
|
54
|
+
], ManualTriggerNode);
|
|
55
|
+
export { ManualTriggerNode };
|
|
56
|
+
//# sourceMappingURL=manual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/manual.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,qBAAgB;AAyB7B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxD,CAAC;CASF,CAAA;AADC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;kDACZ;AAXP,iBAAiB;IAnB7B,IAAI,CAAC,qBAAqB,EAAE;QAC3B,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC;QAC3C,QAAQ,EAAE;YACR,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACT,4GAA4G;YAC9G,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE;aAChB;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,iBAAiB,CAY7B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/schedule
|
|
12
|
+
* @summary Schedule trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Schedule trigger — cron-like schedule; timezone + payload
|
|
14
|
+
* config.
|
|
15
|
+
*/
|
|
16
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
17
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
18
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
+
import { GraphNode } from "./../base.js";
|
|
20
|
+
let ScheduleTriggerNode = class ScheduleTriggerNode extends GraphNode {
|
|
21
|
+
static execute(request) {
|
|
22
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
required(),
|
|
27
|
+
uielement("textarea", {
|
|
28
|
+
label: "Scheduled payload",
|
|
29
|
+
placeholder: "Payload for the scheduled run",
|
|
30
|
+
}),
|
|
31
|
+
output({ handle: "payload" }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], ScheduleTriggerNode.prototype, "payload", void 0);
|
|
34
|
+
ScheduleTriggerNode = __decorate([
|
|
35
|
+
node("core.trigger.schedule", {
|
|
36
|
+
kind: "core.trigger.schedule",
|
|
37
|
+
category: "Trigger",
|
|
38
|
+
color: "#3b82f6",
|
|
39
|
+
icon: "ti-calendar-time",
|
|
40
|
+
width: 96,
|
|
41
|
+
height: 96,
|
|
42
|
+
labels: ["trigger", "schedule", "cron"],
|
|
43
|
+
metadata: {
|
|
44
|
+
title: "Schedule trigger",
|
|
45
|
+
description: "Starts the workflow on a cron-like schedule with timezone support.",
|
|
46
|
+
trigger: {
|
|
47
|
+
type: "schedule",
|
|
48
|
+
schedule: "0 * * * *",
|
|
49
|
+
timezone: "UTC",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}),
|
|
53
|
+
model()
|
|
54
|
+
], ScheduleTriggerNode);
|
|
55
|
+
export { ScheduleTriggerNode };
|
|
56
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/schedule.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,qBAAgB;AA0B7B,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,SAAS;IAChD,MAAM,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxD,CAAC;CASF,CAAA;AADC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,+BAA+B;KAC7C,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;oDACZ;AAXP,mBAAmB;IApB/B,IAAI,CAAC,uBAAuB,EAAE;QAC7B,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC;QACvC,QAAQ,EAAE;YACR,KAAK,EAAE,kBAAkB;YACzB,WAAW,EACT,oEAAoE;YACtE,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,QAAQ,EAAE,WAAW;gBACrB,QAAQ,EAAE,KAAK;aAChB;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,mBAAmB,CAY/B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/triggers/webhook
|
|
12
|
+
* @summary Webhook trigger node declaration (DECAF-32 §22.2.1).
|
|
13
|
+
* @description Webhook trigger — HTTP request received; path/method/auth/
|
|
14
|
+
* responseMode config.
|
|
15
|
+
*/
|
|
16
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
17
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
18
|
+
import { node, output } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
+
import { GraphNode } from "./../base.js";
|
|
20
|
+
let WebhookTriggerNode = class WebhookTriggerNode extends GraphNode {
|
|
21
|
+
static execute(request) {
|
|
22
|
+
return { payload: request.inputs["payload"] ?? null };
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
required(),
|
|
27
|
+
uielement("textarea", {
|
|
28
|
+
label: "Request payload",
|
|
29
|
+
placeholder: "Webhook request body",
|
|
30
|
+
}),
|
|
31
|
+
output({ handle: "payload" }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], WebhookTriggerNode.prototype, "payload", void 0);
|
|
34
|
+
WebhookTriggerNode = __decorate([
|
|
35
|
+
node("core.trigger.webhook", {
|
|
36
|
+
kind: "core.trigger.webhook",
|
|
37
|
+
category: "Trigger",
|
|
38
|
+
color: "#3b82f6",
|
|
39
|
+
icon: "ti-webhook",
|
|
40
|
+
width: 96,
|
|
41
|
+
height: 96,
|
|
42
|
+
labels: ["trigger", "webhook", "http"],
|
|
43
|
+
metadata: {
|
|
44
|
+
title: "Webhook trigger",
|
|
45
|
+
description: "Starts the workflow when an HTTP request is received on the configured path and method.",
|
|
46
|
+
trigger: {
|
|
47
|
+
type: "webhook",
|
|
48
|
+
path: "/webhook",
|
|
49
|
+
method: "POST",
|
|
50
|
+
auth: "none",
|
|
51
|
+
responseMode: "onReceived",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
}),
|
|
55
|
+
model()
|
|
56
|
+
], WebhookTriggerNode);
|
|
57
|
+
export { WebhookTriggerNode };
|
|
58
|
+
//# sourceMappingURL=webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/triggers/webhook.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,qBAAgB;AA4B7B,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;IACxD,CAAC;CASF,CAAA;AADC;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,sBAAsB;KACpC,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;;mDACZ;AAXP,kBAAkB;IAtB9B,IAAI,CAAC,sBAAsB,EAAE;QAC5B,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;QACtC,QAAQ,EAAE;YACR,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,yFAAyF;YAC3F,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,MAAM;gBACZ,YAAY,EAAE,YAAY;aAC3B;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CAY9B"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/utility/code
|
|
12
|
+
* @summary Code utility node declaration (ALFRED-5 §7, DECAF-32 §22.4).
|
|
13
|
+
* @description Code — sandboxed JS/TS code execution. The class's own
|
|
14
|
+
* `static execute` is the only implementation of the kind, derived by
|
|
15
|
+
* `GraphBuiltInRegistrations`, and reaches the pluggable `CodeSandboxEvaluator`
|
|
16
|
+
* through `GraphExecutionContext.engine`.
|
|
17
|
+
* The default `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`)
|
|
18
|
+
* enforces the Code Node restrictions: no imports, no requires, pure
|
|
19
|
+
* functions only. The sandbox context exposes `$input`, `$vars`, `$item`,
|
|
20
|
+
* `$index`, `$node`, and `$output` as data variables. TypeScript is
|
|
21
|
+
* supported via transpilation.
|
|
22
|
+
*
|
|
23
|
+
* The `@input` on `CodeNode.input` is a schema group — the nested
|
|
24
|
+
* model's `@input` ports are spliced into the parent unprefixed. `code` has
|
|
25
|
+
* `@input` + `@uielement("code-editor")`, so it appears as a port AND in the
|
|
26
|
+
* CRUD modal (the only visible field). `data` has `@input` + `@hidden()` but
|
|
27
|
+
* no `@uielement`, so it is a canvas-only port (for edge connections from
|
|
28
|
+
* workflow input badges) but never appears in the CRUD modal. `language` has
|
|
29
|
+
* no `@input` and no `@uielement`, so it is neither a port nor rendered — it
|
|
30
|
+
* defaults to `"javascript"`.
|
|
31
|
+
*/
|
|
32
|
+
import { Model, model, required } from "@decaf-ts/decorator-validation";
|
|
33
|
+
import { hidden, uielement } from "@decaf-ts/ui-decorators";
|
|
34
|
+
import { input, node, output } from "@decaf-ts/ui-decorators/graph";
|
|
35
|
+
import { GraphNode } from "./../base.js";
|
|
36
|
+
import { GraphExecutionError } from "./../../engine/errors/GraphExecutionError.js";
|
|
37
|
+
import { GraphInputError } from "./../../engine/errors/GraphInputError.js";
|
|
38
|
+
let CodeInputSchema = class CodeInputSchema extends Model {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.language = "javascript";
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__decorate([
|
|
45
|
+
required(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CodeInputSchema.prototype, "language", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
required(),
|
|
50
|
+
uielement("code-editor", { label: "Code", placeholder: "// User-authored JS code" }),
|
|
51
|
+
input({ handle: "code" }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CodeInputSchema.prototype, "code", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
hidden(),
|
|
56
|
+
input({ handle: "data" }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], CodeInputSchema.prototype, "data", void 0);
|
|
59
|
+
CodeInputSchema = __decorate([
|
|
60
|
+
model()
|
|
61
|
+
], CodeInputSchema);
|
|
62
|
+
export { CodeInputSchema };
|
|
63
|
+
function readCodeMetadata(context) {
|
|
64
|
+
const parameters = (context.node.parameters ?? {});
|
|
65
|
+
const metadata = context.node.metadata;
|
|
66
|
+
return { ...(metadata ?? {}), ...parameters };
|
|
67
|
+
}
|
|
68
|
+
let CodeNode = class CodeNode extends GraphNode {
|
|
69
|
+
static async execute(request, context) {
|
|
70
|
+
const meta = readCodeMetadata(context);
|
|
71
|
+
const input = request.inputs;
|
|
72
|
+
const code = input["code"] ?? meta.defaultCode;
|
|
73
|
+
if (!code || typeof code !== "string" || code.trim().length === 0) {
|
|
74
|
+
throw new GraphInputError("Code node has no code to execute (input.code is empty)", { input });
|
|
75
|
+
}
|
|
76
|
+
const evaluator = context.engine?.codeSandboxEvaluator;
|
|
77
|
+
if (!evaluator) {
|
|
78
|
+
throw new GraphExecutionError("Code node execution requires a CodeSandboxEvaluator to be registered in GraphExecutionEngineConfig.codeSandboxEvaluator", "GRAPH_CODE_SANDBOX_NOT_CONFIGURED", { code });
|
|
79
|
+
}
|
|
80
|
+
const md = context.metadata;
|
|
81
|
+
const sandboxContext = {
|
|
82
|
+
code,
|
|
83
|
+
language: "javascript",
|
|
84
|
+
input: input,
|
|
85
|
+
vars: md?.vars ?? undefined,
|
|
86
|
+
item: md?.item,
|
|
87
|
+
index: md?.index,
|
|
88
|
+
nodes: md?.nodes ??
|
|
89
|
+
undefined,
|
|
90
|
+
logger: context.logger,
|
|
91
|
+
};
|
|
92
|
+
await context.log("Executing code node", {
|
|
93
|
+
language: "javascript",
|
|
94
|
+
length: code.length,
|
|
95
|
+
timeoutMs: meta.timeoutMs,
|
|
96
|
+
});
|
|
97
|
+
const result = await evaluator.evaluate(sandboxContext);
|
|
98
|
+
await context.log("Code node executed", { hasResult: result !== undefined });
|
|
99
|
+
return { result };
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
__decorate([
|
|
103
|
+
required(),
|
|
104
|
+
input({ handle: "input", model: CodeInputSchema }),
|
|
105
|
+
__metadata("design:type", CodeInputSchema)
|
|
106
|
+
], CodeNode.prototype, "input", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
required(),
|
|
109
|
+
output({ handle: "result" }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], CodeNode.prototype, "result", void 0);
|
|
112
|
+
CodeNode = __decorate([
|
|
113
|
+
node("core.utility.code", {
|
|
114
|
+
kind: "core.utility.code",
|
|
115
|
+
category: "Utility",
|
|
116
|
+
color: "#0d9488",
|
|
117
|
+
icon: "ti-code",
|
|
118
|
+
width: 96,
|
|
119
|
+
height: 96,
|
|
120
|
+
labels: ["utility", "code", "sandbox", "transform"],
|
|
121
|
+
metadata: {
|
|
122
|
+
title: "Code",
|
|
123
|
+
description: "Runs user-authored JS/TS in a restricted VM sandbox. Supports placeholder syntax for workflow data references.",
|
|
124
|
+
timeoutMs: 1000,
|
|
125
|
+
},
|
|
126
|
+
}),
|
|
127
|
+
model()
|
|
128
|
+
], CodeNode);
|
|
129
|
+
export { CodeNode };
|
|
130
|
+
//# sourceMappingURL=code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/utility/code.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,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FC,QAAQ,EAAE;IACV,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;8BAC3C,eAAe;uCAAC;AAIxB;IAFC,QAAQ,EAAE;IACV,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;;wCACZ;AA9DN,QAAQ;IAfpB,IAAI,CAAC,mBAAmB,EAAE;QACzB,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC;QACnD,QAAQ,EAAE;YACR,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,gHAAgH;YAC7H,SAAS,EAAE,IAAI;SAChB;KACF,CAAC;IACD,KAAK,EAAE;GACK,QAAQ,CA+DpB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/utility/delay
|
|
12
|
+
* @summary Delay utility node declaration (DECAF-32 §22.2.2).
|
|
13
|
+
* @description Delay — pauses execution for a configured duration.
|
|
14
|
+
*/
|
|
15
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
16
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
17
|
+
import { input, node, output } from "@decaf-ts/ui-decorators/graph";
|
|
18
|
+
import { GraphNode } from "./../base.js";
|
|
19
|
+
let DelayFlowNode = class DelayFlowNode extends GraphNode {
|
|
20
|
+
static execute(request) {
|
|
21
|
+
return { valueOut: request.inputs["value"] ?? request.inputs };
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
required(),
|
|
26
|
+
uielement("textarea", {
|
|
27
|
+
label: "Input value",
|
|
28
|
+
placeholder: "Value to forward after delay",
|
|
29
|
+
}),
|
|
30
|
+
input({ handle: "value" }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], DelayFlowNode.prototype, "value", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
required(),
|
|
35
|
+
uielement("input", { label: "Output value", placeholder: "Forwarded value" }),
|
|
36
|
+
output({ handle: "value" }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], DelayFlowNode.prototype, "valueOut", void 0);
|
|
39
|
+
DelayFlowNode = __decorate([
|
|
40
|
+
node("core.flow.delay", {
|
|
41
|
+
kind: "core.flow.delay",
|
|
42
|
+
category: "Utility",
|
|
43
|
+
color: "#0d9488",
|
|
44
|
+
icon: "ti-clock-hour-4",
|
|
45
|
+
width: 96,
|
|
46
|
+
height: 96,
|
|
47
|
+
labels: ["flow", "delay", "wait"],
|
|
48
|
+
metadata: {
|
|
49
|
+
title: "Delay",
|
|
50
|
+
description: "Pauses execution for the configured duration (in milliseconds), then forwards the input unchanged.",
|
|
51
|
+
durationMs: 1000,
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
model()
|
|
55
|
+
], DelayFlowNode);
|
|
56
|
+
export { DelayFlowNode };
|
|
57
|
+
//# sourceMappingURL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AK,EAAE,OAAO;YACd,WAAW,EACT,oGAAoG;YACtG,UAAU,EAAE,IAAI;SACjB;KACF,CAAC;IACD,KAAK,EAAE;GACK,aAAa,CAiBzB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @module integrations/graph/nodes/utility/log
|
|
12
|
+
* @summary Log utility node declaration (DECAF-32 §22.2.2).
|
|
13
|
+
* @description Log — logs the input value and forwards it unchanged on the
|
|
14
|
+
* `logged` output port. Useful for debugging, audit trails, and
|
|
15
|
+
* discard/side-effect branches in a workflow.
|
|
16
|
+
*/
|
|
17
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
18
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
19
|
+
import { input, node, output, } from "@decaf-ts/ui-decorators/graph";
|
|
20
|
+
import { GraphNode } from "./../base.js";
|
|
21
|
+
let LogFlowNode = class LogFlowNode extends GraphNode {
|
|
22
|
+
static execute(request, context) {
|
|
23
|
+
const value = request.inputs["value"];
|
|
24
|
+
const parameters = (context.node.parameters ?? {});
|
|
25
|
+
const metadata = context.node.metadata;
|
|
26
|
+
const level = (parameters["level"] ?? metadata?.["level"]) || "info";
|
|
27
|
+
const logger = context.logger;
|
|
28
|
+
logger[level]("Log node", { value });
|
|
29
|
+
return { logged: value };
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
required(),
|
|
34
|
+
uielement("textarea", { label: "Input value", placeholder: "Value to log" }),
|
|
35
|
+
input({ handle: "value" }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], LogFlowNode.prototype, "value", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
required(),
|
|
40
|
+
uielement("input", { label: "Logged value", placeholder: "Forwarded value" }),
|
|
41
|
+
output({ handle: "logged" }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], LogFlowNode.prototype, "logged", void 0);
|
|
44
|
+
LogFlowNode = __decorate([
|
|
45
|
+
node("core.flow.log", {
|
|
46
|
+
kind: "core.flow.log",
|
|
47
|
+
category: "Utility",
|
|
48
|
+
color: "#0d9488",
|
|
49
|
+
icon: "ti-terminal",
|
|
50
|
+
width: 96,
|
|
51
|
+
height: 96,
|
|
52
|
+
labels: ["flow", "log", "debug", "utility"],
|
|
53
|
+
metadata: {
|
|
54
|
+
title: "Log",
|
|
55
|
+
description: "Logs the input value to the execution logger and forwards it unchanged.",
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
model()
|
|
59
|
+
], LogFlowNode);
|
|
60
|
+
export { LogFlowNode };
|
|
61
|
+
//# sourceMappingURL=log.js.map
|