@decaf-ts/integrations 0.10.5 → 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/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/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,127 @@
|
|
|
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/loops/until
|
|
12
|
+
* @summary Until loop node declaration.
|
|
13
|
+
* @description Shared declaration for the `core.loop.until` system node kind
|
|
14
|
+
* (decorator id `graph-until-loop-node`), ported from the for-angular demo
|
|
15
|
+
* app so the loop kinds become shared canvas nodes. The class's own
|
|
16
|
+
* `static execute` is the only implementation of the kind, derived by
|
|
17
|
+
* `GraphBuiltInRegistrations`, and reaches engine services through
|
|
18
|
+
* `GraphExecutionContext.engine`. The loop-body workflow is demo/app-side
|
|
19
|
+
* content and is not part of the shared declaration — the shared class
|
|
20
|
+
* carries the port/metadata shape only.
|
|
21
|
+
*/
|
|
22
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
23
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
24
|
+
import { input, node, output } from "@decaf-ts/ui-decorators/graph";
|
|
25
|
+
import { GraphNode } from "./../base.js";
|
|
26
|
+
import { GraphExecutionEventType } from "@decaf-ts/ui-decorators/graph";
|
|
27
|
+
import { GraphExecutionError } from "./../../engine/errors/GraphExecutionError.js";
|
|
28
|
+
import { GraphInputError } from "./../../engine/errors/GraphInputError.js";
|
|
29
|
+
import { GraphLoopLimitError } from "./../../engine/errors/GraphLoopLimitError.js";
|
|
30
|
+
import { extractLoopMetadata } from "./loop-metadata.js";
|
|
31
|
+
import { GRAPH_DEFAULT_MAX_LOOP_ITERATIONS } from "./../../engine/constants.js";
|
|
32
|
+
import { GraphConditionEvaluator } from "./../../engine/loops/GraphConditionEvaluator.js";
|
|
33
|
+
let GraphUntilLoopNode = class GraphUntilLoopNode extends GraphNode {
|
|
34
|
+
static async execute(request, context) {
|
|
35
|
+
const metadata = extractLoopMetadata(context, "until");
|
|
36
|
+
const input = request.inputs;
|
|
37
|
+
const maxIterations = metadata.maxIterations ?? GRAPH_DEFAULT_MAX_LOOP_ITERATIONS;
|
|
38
|
+
const condition = metadata.condition;
|
|
39
|
+
if (!condition) {
|
|
40
|
+
throw new GraphInputError("until node is missing a condition");
|
|
41
|
+
}
|
|
42
|
+
const statePort = metadata.statePort ?? "state";
|
|
43
|
+
const bodyWorkflow = metadata.body;
|
|
44
|
+
const engine = context.engine;
|
|
45
|
+
if (!engine) {
|
|
46
|
+
throw new GraphExecutionError("until node requires engine access", "GRAPH_ENGINE_NOT_AVAILABLE");
|
|
47
|
+
}
|
|
48
|
+
let state = input.state;
|
|
49
|
+
let iteration = 0;
|
|
50
|
+
await context.emit({ type: GraphExecutionEventType.LOOP_STARTED });
|
|
51
|
+
let shouldStop = false;
|
|
52
|
+
do {
|
|
53
|
+
if (iteration >= maxIterations) {
|
|
54
|
+
await context.emit({
|
|
55
|
+
type: GraphExecutionEventType.LOOP_LIMIT_REACHED,
|
|
56
|
+
iteration,
|
|
57
|
+
});
|
|
58
|
+
throw new GraphLoopLimitError(`until loop exceeded max iterations (${maxIterations})`);
|
|
59
|
+
}
|
|
60
|
+
await context.emit({
|
|
61
|
+
type: GraphExecutionEventType.LOOP_ITERATION_STARTED,
|
|
62
|
+
iteration,
|
|
63
|
+
});
|
|
64
|
+
const childResult = await engine.execute(bodyWorkflow, { [statePort]: state, iteration }, {
|
|
65
|
+
parentRunId: context.runId,
|
|
66
|
+
path: [...context.path, `iteration:${iteration}`],
|
|
67
|
+
});
|
|
68
|
+
state = childResult.outputs[statePort];
|
|
69
|
+
await context.emit({
|
|
70
|
+
type: GraphExecutionEventType.LOOP_ITERATION_COMPLETED,
|
|
71
|
+
iteration,
|
|
72
|
+
});
|
|
73
|
+
const conditionResult = new GraphConditionEvaluator().evaluate(condition, state);
|
|
74
|
+
await context.emit({
|
|
75
|
+
type: GraphExecutionEventType.LOOP_CONDITION_EVALUATED,
|
|
76
|
+
iteration,
|
|
77
|
+
payload: { result: conditionResult },
|
|
78
|
+
});
|
|
79
|
+
iteration++;
|
|
80
|
+
shouldStop = conditionResult;
|
|
81
|
+
} while (!shouldStop);
|
|
82
|
+
await context.emit({ type: GraphExecutionEventType.LOOP_COMPLETED });
|
|
83
|
+
return { [statePort]: state, iterations: iteration };
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
__decorate([
|
|
87
|
+
required(),
|
|
88
|
+
uielement("input", { label: "State", placeholder: "Initial state" }),
|
|
89
|
+
input({ handle: "state" }),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], GraphUntilLoopNode.prototype, "state", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
required(),
|
|
94
|
+
uielement("input", {
|
|
95
|
+
label: "Final state",
|
|
96
|
+
placeholder: "Final state after loop",
|
|
97
|
+
}),
|
|
98
|
+
output({ handle: "state" }),
|
|
99
|
+
__metadata("design:type", Object)
|
|
100
|
+
], GraphUntilLoopNode.prototype, "stateOut", void 0);
|
|
101
|
+
GraphUntilLoopNode = __decorate([
|
|
102
|
+
node("graph-until-loop-node", {
|
|
103
|
+
kind: "core.loop.until",
|
|
104
|
+
category: "Loop",
|
|
105
|
+
color: "#eab308",
|
|
106
|
+
icon: "ti-player-stop",
|
|
107
|
+
width: 96,
|
|
108
|
+
height: 96,
|
|
109
|
+
labels: ["loop", "conditional", "until"],
|
|
110
|
+
metadata: {
|
|
111
|
+
title: "Until loop",
|
|
112
|
+
description: "Repeats the body until the condition is true (post-condition, runs at least once).",
|
|
113
|
+
loop: {
|
|
114
|
+
maxIterations: 50,
|
|
115
|
+
statePort: "state",
|
|
116
|
+
condition: {
|
|
117
|
+
type: "greaterThanOrEqual",
|
|
118
|
+
left: "iteration",
|
|
119
|
+
right: 2,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
}),
|
|
124
|
+
model()
|
|
125
|
+
], GraphUntilLoopNode);
|
|
126
|
+
export { GraphUntilLoopNode };
|
|
127
|
+
//# sourceMappingURL=until.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"until.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/loops/until.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,qBAAgB;AAMpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,qDAAgD;AAC9E,OAAO,EAAE,eAAe,EAAE,iDAA4C;AACtE,OAAO,EAAE,mBAAmB,EAAE,qDAAgD;AAC9E,OAAO,EAAE,mBAAmB,EAAE,2BAAwB;AACtD,OAAO,EAAE,iCAAiC,EAAE,oCAA+B;AAC3E,OAAO,EAAE,uBAAuB,EAAE,wDAAmD;AA0B9E,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,OAAkC,EAClC,OAA8B;QAE9B,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,MAAM,aAAa,GACjB,QAAQ,CAAC,aAAa,IAAI,iCAAiC,CAAC;QAC9D,MAAM,SAAS,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AAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;QACxC,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,oFAAoF;YACtF,IAAI,EAAE;gBACJ,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE;oBACT,IAAI,EAAE,oBAA6B;oBACnC,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC;iBACT;aACF;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CA+F9B"}
|
|
@@ -0,0 +1,124 @@
|
|
|
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/loops/while
|
|
12
|
+
* @summary While loop node declaration.
|
|
13
|
+
* @description Shared declaration for the `core.loop.while` system node kind
|
|
14
|
+
* (decorator id `graph-while-loop-node`), ported from the for-angular demo
|
|
15
|
+
* app so the loop kinds become shared canvas nodes. The class's own
|
|
16
|
+
* `static execute` is the only implementation of the kind, derived by
|
|
17
|
+
* `GraphBuiltInRegistrations`, and reaches engine services through
|
|
18
|
+
* `GraphExecutionContext.engine`. The loop-body workflow is demo/app-side
|
|
19
|
+
* content and is not part of the shared declaration — the shared class
|
|
20
|
+
* carries the port/metadata shape only.
|
|
21
|
+
*/
|
|
22
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
23
|
+
import { uielement } from "@decaf-ts/ui-decorators";
|
|
24
|
+
import { input, node, output } from "@decaf-ts/ui-decorators/graph";
|
|
25
|
+
import { GraphNode } from "./../base.js";
|
|
26
|
+
import { GraphExecutionEventType } from "@decaf-ts/ui-decorators/graph";
|
|
27
|
+
import { GraphExecutionError } from "./../../engine/errors/GraphExecutionError.js";
|
|
28
|
+
import { GraphInputError } from "./../../engine/errors/GraphInputError.js";
|
|
29
|
+
import { GraphLoopLimitError } from "./../../engine/errors/GraphLoopLimitError.js";
|
|
30
|
+
import { extractLoopMetadata } from "./loop-metadata.js";
|
|
31
|
+
import { GRAPH_DEFAULT_MAX_LOOP_ITERATIONS } from "./../../engine/constants.js";
|
|
32
|
+
import { GraphConditionEvaluator } from "./../../engine/loops/GraphConditionEvaluator.js";
|
|
33
|
+
let GraphWhileLoopNode = class GraphWhileLoopNode extends GraphNode {
|
|
34
|
+
static async execute(request, context) {
|
|
35
|
+
const metadata = extractLoopMetadata(context, "while");
|
|
36
|
+
const input = request.inputs;
|
|
37
|
+
const maxIterations = metadata.maxIterations ?? GRAPH_DEFAULT_MAX_LOOP_ITERATIONS;
|
|
38
|
+
const condition = metadata.condition;
|
|
39
|
+
if (!condition) {
|
|
40
|
+
throw new GraphInputError("while node is missing a condition");
|
|
41
|
+
}
|
|
42
|
+
const statePort = metadata.statePort ?? "state";
|
|
43
|
+
const bodyWorkflow = metadata.body;
|
|
44
|
+
const engine = context.engine;
|
|
45
|
+
if (!engine) {
|
|
46
|
+
throw new GraphExecutionError("while node requires engine access", "GRAPH_ENGINE_NOT_AVAILABLE");
|
|
47
|
+
}
|
|
48
|
+
let state = input.state;
|
|
49
|
+
let iteration = 0;
|
|
50
|
+
await context.emit({ type: GraphExecutionEventType.LOOP_STARTED });
|
|
51
|
+
while (new GraphConditionEvaluator().evaluate(condition, state)) {
|
|
52
|
+
if (iteration >= maxIterations) {
|
|
53
|
+
await context.emit({
|
|
54
|
+
type: GraphExecutionEventType.LOOP_LIMIT_REACHED,
|
|
55
|
+
iteration,
|
|
56
|
+
});
|
|
57
|
+
throw new GraphLoopLimitError(`while loop exceeded max iterations (${maxIterations})`);
|
|
58
|
+
}
|
|
59
|
+
await context.emit({
|
|
60
|
+
type: GraphExecutionEventType.LOOP_CONDITION_EVALUATED,
|
|
61
|
+
iteration,
|
|
62
|
+
payload: { result: true },
|
|
63
|
+
});
|
|
64
|
+
await context.emit({
|
|
65
|
+
type: GraphExecutionEventType.LOOP_ITERATION_STARTED,
|
|
66
|
+
iteration,
|
|
67
|
+
});
|
|
68
|
+
const childResult = await engine.execute(bodyWorkflow, { [statePort]: state, iteration }, {
|
|
69
|
+
parentRunId: context.runId,
|
|
70
|
+
path: [...context.path, `iteration:${iteration}`],
|
|
71
|
+
});
|
|
72
|
+
state = childResult.outputs[statePort];
|
|
73
|
+
await context.emit({
|
|
74
|
+
type: GraphExecutionEventType.LOOP_ITERATION_COMPLETED,
|
|
75
|
+
iteration,
|
|
76
|
+
});
|
|
77
|
+
iteration++;
|
|
78
|
+
}
|
|
79
|
+
await context.emit({ type: GraphExecutionEventType.LOOP_COMPLETED });
|
|
80
|
+
return { [statePort]: state, iterations: iteration };
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
__decorate([
|
|
84
|
+
required(),
|
|
85
|
+
uielement("input", { label: "State", placeholder: "Initial state" }),
|
|
86
|
+
input({ handle: "state" }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], GraphWhileLoopNode.prototype, "state", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
required(),
|
|
91
|
+
uielement("input", {
|
|
92
|
+
label: "Final state",
|
|
93
|
+
placeholder: "Final state after loop",
|
|
94
|
+
}),
|
|
95
|
+
output({ handle: "state" }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], GraphWhileLoopNode.prototype, "stateOut", void 0);
|
|
98
|
+
GraphWhileLoopNode = __decorate([
|
|
99
|
+
node("graph-while-loop-node", {
|
|
100
|
+
kind: "core.loop.while",
|
|
101
|
+
category: "Loop",
|
|
102
|
+
color: "#eab308",
|
|
103
|
+
icon: "ti-arrows-loop",
|
|
104
|
+
width: 96,
|
|
105
|
+
height: 96,
|
|
106
|
+
labels: ["loop", "conditional", "while"],
|
|
107
|
+
metadata: {
|
|
108
|
+
title: "While loop",
|
|
109
|
+
description: "Repeats the body while the condition is true (pre-condition).",
|
|
110
|
+
loop: {
|
|
111
|
+
maxIterations: 50,
|
|
112
|
+
statePort: "state",
|
|
113
|
+
condition: {
|
|
114
|
+
type: "lessThan",
|
|
115
|
+
left: "iteration",
|
|
116
|
+
right: 3,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
}),
|
|
121
|
+
model()
|
|
122
|
+
], GraphWhileLoopNode);
|
|
123
|
+
export { GraphWhileLoopNode };
|
|
124
|
+
//# sourceMappingURL=while.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../../../src/graph/nodes/loops/while.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,qBAAgB;AAMpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,qDAAgD;AAC9E,OAAO,EAAE,eAAe,EAAE,iDAA4C;AACtE,OAAO,EAAE,mBAAmB,E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iDACX;AAQhB;IANC,QAAQ,EAAE;IACV,SAAS,CAAC,OAAO,EAAE;QAClB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;oDACT;AArFR,kBAAkB;IAxB9B,IAAI,CAAC,uBAAuB,EAAE;QAC7B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC;QACxC,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,+DAA+D;YACjE,IAAI,EAAE;gBACJ,aAAa,EAAE,EAAE;gBACjB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE;oBACT,IAAI,EAAE,UAAmB;oBACzB,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,CAAC;iBACT;aACF;SACF;KACF,CAAC;IACD,KAAK,EAAE;GACK,kBAAkB,CAsF9B"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { graphNodeManifest } from "@decaf-ts/ui-decorators/graph";
|
|
2
|
+
import { AgentNode } from "./agents/agent.js";
|
|
3
|
+
import { BreakFlowNode } from "./flow-control/break.js";
|
|
4
|
+
import { ErrorBoundaryFlowNode } from "./flow-control/error-boundary.js";
|
|
5
|
+
import { HumanApprovalFlowNode } from "./flow-control/human-approval.js";
|
|
6
|
+
import { IfFlowNode } from "./flow-control/if.js";
|
|
7
|
+
import { ParallelFlowNode } from "./flow-control/parallel.js";
|
|
8
|
+
import { SwitchFlowNode } from "./flow-control/switch.js";
|
|
9
|
+
import { CodeNode } from "./utility/code.js";
|
|
10
|
+
import { DelayFlowNode } from "./utility/delay.js";
|
|
11
|
+
import { LogFlowNode } from "./utility/log.js";
|
|
12
|
+
import { MapNode } from "./utility/map.js";
|
|
13
|
+
import { MergeFlowNode } from "./utility/merge.js";
|
|
14
|
+
import { ReturnFlowNode } from "./utility/return.js";
|
|
15
|
+
import { UtilityLogNode } from "./utility/utility-log.js";
|
|
16
|
+
import { ChatTriggerNode } from "./triggers/chat.js";
|
|
17
|
+
import { EventTriggerNode } from "./triggers/event.js";
|
|
18
|
+
import { FormTriggerNode } from "./triggers/form.js";
|
|
19
|
+
import { ManualTriggerNode } from "./triggers/manual.js";
|
|
20
|
+
import { ScheduleTriggerNode } from "./triggers/schedule.js";
|
|
21
|
+
import { WebhookTriggerNode } from "./triggers/webhook.js";
|
|
22
|
+
/**
|
|
23
|
+
* Builds a single {@link GraphPortManifest} from its id, label, direction,
|
|
24
|
+
* and optional extra fields — the terse constructor used by the hand-authored
|
|
25
|
+
* loop manifests below.
|
|
26
|
+
*
|
|
27
|
+
* @param id - Port identifier (matches the decorated property handle).
|
|
28
|
+
* @param label - Human-readable port label.
|
|
29
|
+
* @param direction - Port direction (`input` or `output`).
|
|
30
|
+
* @param extra - Optional manifest fields merged over the defaults.
|
|
31
|
+
* @returns The assembled port manifest.
|
|
32
|
+
*/
|
|
33
|
+
function port(id, label, direction, extra = {}) {
|
|
34
|
+
return { id, label, direction, ...extra };
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Compiles a `@node`-decorated class into its published
|
|
38
|
+
* {@link GraphNodeManifest}, so the served shape matches what the Angular
|
|
39
|
+
* palette consumes.
|
|
40
|
+
*
|
|
41
|
+
* @param node - The decorated node class constructor.
|
|
42
|
+
* @param name - Display name override for the compiled manifest.
|
|
43
|
+
* @returns The compiled node manifest.
|
|
44
|
+
*/
|
|
45
|
+
function compile(node, name) {
|
|
46
|
+
return graphNodeManifest(node, { name });
|
|
47
|
+
}
|
|
48
|
+
/** Manifest for the `core.loop.foreach` node: runs the loop body once per item (or slice) of the input array. */
|
|
49
|
+
export const FOREACH_GRAPH_NODE_MANIFEST = {
|
|
50
|
+
kind: "core.loop.foreach",
|
|
51
|
+
capabilities: ["loop"],
|
|
52
|
+
display: {
|
|
53
|
+
name: "Foreach",
|
|
54
|
+
description: "Runs the loop body once per item (or per slice of items) of the input array, collecting the results in order.",
|
|
55
|
+
// Single manifest display source per kind (G3-23): the hand-authored
|
|
56
|
+
// manifest remains the backend executor-port authority, but its display is
|
|
57
|
+
// mirrored from the decorated `GraphForeachLoopNode` class so the two
|
|
58
|
+
// authorities never diverge on category/colour/icon/labels.
|
|
59
|
+
category: "Loop",
|
|
60
|
+
color: "#eab308",
|
|
61
|
+
icon: { type: "catalogue", name: "ti-repeat" },
|
|
62
|
+
width: 120,
|
|
63
|
+
height: 140,
|
|
64
|
+
labels: ["loop", "iteration", "foreach"],
|
|
65
|
+
},
|
|
66
|
+
inputs: [
|
|
67
|
+
port("items", "Items", "input", {
|
|
68
|
+
required: true,
|
|
69
|
+
schema: { type: "array", items: { type: "any" } },
|
|
70
|
+
}),
|
|
71
|
+
port("slice", "Slice size", "input", { schema: { type: "number", integer: true, min: 1 } }),
|
|
72
|
+
port("state", "Initial state", "input", { schema: { type: "any" } }),
|
|
73
|
+
],
|
|
74
|
+
outputs: [
|
|
75
|
+
port("results", "Results", "output", {
|
|
76
|
+
schema: { type: "array", items: { type: "any" } },
|
|
77
|
+
}),
|
|
78
|
+
port("completed", "Completed", "output", {
|
|
79
|
+
schema: { type: "array", items: { type: "any" } },
|
|
80
|
+
}),
|
|
81
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
82
|
+
port("broken", "Broken", "output", { schema: { type: "boolean" } }),
|
|
83
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
84
|
+
],
|
|
85
|
+
parameters: [
|
|
86
|
+
{
|
|
87
|
+
type: "number",
|
|
88
|
+
id: "maxIterations",
|
|
89
|
+
label: "Max iterations",
|
|
90
|
+
integer: true,
|
|
91
|
+
min: 1,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "object",
|
|
95
|
+
id: "condition",
|
|
96
|
+
label: "Condition",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "string",
|
|
100
|
+
id: "itemPort",
|
|
101
|
+
label: "Item port",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "string",
|
|
105
|
+
id: "resultPort",
|
|
106
|
+
label: "Result port",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: "string",
|
|
110
|
+
id: "statePort",
|
|
111
|
+
label: "State port",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: "number",
|
|
115
|
+
id: "slice",
|
|
116
|
+
label: "Slice size",
|
|
117
|
+
integer: true,
|
|
118
|
+
min: 1,
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
};
|
|
122
|
+
/** Manifest for the `core.loop.while` node: repeats the loop body while the condition holds. */
|
|
123
|
+
export const WHILE_GRAPH_NODE_MANIFEST = {
|
|
124
|
+
kind: "core.loop.while",
|
|
125
|
+
capabilities: ["loop"],
|
|
126
|
+
display: {
|
|
127
|
+
name: "While",
|
|
128
|
+
description: "Runs the loop body while the configured condition evaluates to true, threading the state between iterations.",
|
|
129
|
+
category: "Loop",
|
|
130
|
+
color: "#eab308",
|
|
131
|
+
icon: { type: "catalogue", name: "ti-arrows-loop" },
|
|
132
|
+
width: 120,
|
|
133
|
+
height: 140,
|
|
134
|
+
labels: ["loop", "conditional", "while"],
|
|
135
|
+
},
|
|
136
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
137
|
+
outputs: [
|
|
138
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
139
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
140
|
+
],
|
|
141
|
+
parameters: [
|
|
142
|
+
{
|
|
143
|
+
type: "number",
|
|
144
|
+
id: "maxIterations",
|
|
145
|
+
label: "Max iterations",
|
|
146
|
+
integer: true,
|
|
147
|
+
min: 1,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: "object",
|
|
151
|
+
id: "condition",
|
|
152
|
+
label: "Condition",
|
|
153
|
+
required: true,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "string",
|
|
157
|
+
id: "statePort",
|
|
158
|
+
label: "State port",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: "string",
|
|
162
|
+
id: "inputPort",
|
|
163
|
+
label: "Input port",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
type: "string",
|
|
167
|
+
id: "outputPort",
|
|
168
|
+
label: "Output port",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
};
|
|
172
|
+
/** Manifest for the `core.loop.until` node: repeats the loop body until the condition holds. */
|
|
173
|
+
export const UNTIL_GRAPH_NODE_MANIFEST = {
|
|
174
|
+
kind: "core.loop.until",
|
|
175
|
+
capabilities: ["loop"],
|
|
176
|
+
display: {
|
|
177
|
+
name: "Until",
|
|
178
|
+
description: "Runs the loop body at least once, then repeats until the configured condition evaluates to true.",
|
|
179
|
+
category: "Loop",
|
|
180
|
+
color: "#eab308",
|
|
181
|
+
icon: { type: "catalogue", name: "ti-player-stop" },
|
|
182
|
+
width: 120,
|
|
183
|
+
height: 140,
|
|
184
|
+
labels: ["loop", "conditional", "until"],
|
|
185
|
+
},
|
|
186
|
+
inputs: [port("state", "Initial state", "input", { schema: { type: "any" } })],
|
|
187
|
+
outputs: [
|
|
188
|
+
port("state", "Final state", "output", { schema: { type: "any" } }),
|
|
189
|
+
port("iterations", "Iterations", "output", { schema: { type: "number", integer: true, min: 0 } }),
|
|
190
|
+
],
|
|
191
|
+
parameters: [
|
|
192
|
+
{
|
|
193
|
+
type: "number",
|
|
194
|
+
id: "maxIterations",
|
|
195
|
+
label: "Max iterations",
|
|
196
|
+
integer: true,
|
|
197
|
+
min: 1,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: "object",
|
|
201
|
+
id: "condition",
|
|
202
|
+
label: "Condition",
|
|
203
|
+
required: true,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
type: "string",
|
|
207
|
+
id: "statePort",
|
|
208
|
+
label: "State port",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
type: "string",
|
|
212
|
+
id: "inputPort",
|
|
213
|
+
label: "Input port",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: "string",
|
|
217
|
+
id: "outputPort",
|
|
218
|
+
label: "Output port",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
};
|
|
222
|
+
const switchCompiled = compile(SwitchFlowNode, "Switch");
|
|
223
|
+
/** Manifest for the `core.flow.switch` node: routes execution by switch-case conditions (cases live under `parameters["switch"]`). */
|
|
224
|
+
export const SWITCH_GRAPH_NODE_MANIFEST = {
|
|
225
|
+
...switchCompiled,
|
|
226
|
+
outputs: [],
|
|
227
|
+
parameters: [
|
|
228
|
+
...switchCompiled.parameters,
|
|
229
|
+
{
|
|
230
|
+
type: "collection",
|
|
231
|
+
id: "cases",
|
|
232
|
+
label: "Cases",
|
|
233
|
+
required: true,
|
|
234
|
+
itemIdPath: "outputPort",
|
|
235
|
+
itemLabelPath: "label",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: "boolean",
|
|
239
|
+
id: "hasDefault",
|
|
240
|
+
label: "Has default",
|
|
241
|
+
defaultValue: false,
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
dynamicPorts: [
|
|
245
|
+
{
|
|
246
|
+
type: "repeatFromParameter",
|
|
247
|
+
parameter: "cases",
|
|
248
|
+
itemIdPath: "outputPort",
|
|
249
|
+
itemLabelPath: "label",
|
|
250
|
+
direction: "output",
|
|
251
|
+
portIdTemplate: "${id}",
|
|
252
|
+
defaultPort: {
|
|
253
|
+
id: "case",
|
|
254
|
+
label: "Case",
|
|
255
|
+
direction: "output",
|
|
256
|
+
schema: { type: "any" },
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: "togglePort",
|
|
261
|
+
parameter: "hasDefault",
|
|
262
|
+
equals: true,
|
|
263
|
+
port: {
|
|
264
|
+
id: "default",
|
|
265
|
+
label: "Default",
|
|
266
|
+
direction: "output",
|
|
267
|
+
schema: { type: "any" },
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
};
|
|
272
|
+
/** Manifest for the manual-trigger node (starts a run on demand). */
|
|
273
|
+
export const MANUAL_TRIGGER_GRAPH_NODE_MANIFEST = compile(ManualTriggerNode, "Manual trigger");
|
|
274
|
+
/** Manifest for the webhook-trigger node (starts a run from an inbound webhook). */
|
|
275
|
+
export const WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST = compile(WebhookTriggerNode, "Webhook trigger");
|
|
276
|
+
/** Manifest for the schedule-trigger node (starts a run on a schedule). */
|
|
277
|
+
export const SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST = compile(ScheduleTriggerNode, "Schedule trigger");
|
|
278
|
+
/** Manifest for the event-trigger node (starts a run on an observed event). */
|
|
279
|
+
export const EVENT_TRIGGER_GRAPH_NODE_MANIFEST = compile(EventTriggerNode, "Event trigger");
|
|
280
|
+
/** Manifest for the form-trigger node (starts a run from a form submission). */
|
|
281
|
+
export const FORM_TRIGGER_GRAPH_NODE_MANIFEST = compile(FormTriggerNode, "Form trigger");
|
|
282
|
+
/** Manifest for the chat-trigger node (starts a run from a chat message). */
|
|
283
|
+
export const CHAT_TRIGGER_GRAPH_NODE_MANIFEST = compile(ChatTriggerNode, "Chat trigger");
|
|
284
|
+
/** Manifest for the if node (conditional branch on a boolean condition). */
|
|
285
|
+
export const IF_GRAPH_NODE_MANIFEST = compile(IfFlowNode, "If");
|
|
286
|
+
/** Manifest for the parallel node (runs branches concurrently). */
|
|
287
|
+
export const PARALLEL_GRAPH_NODE_MANIFEST = compile(ParallelFlowNode, "Parallel");
|
|
288
|
+
/** Manifest for the merge node (joins parallel branches). */
|
|
289
|
+
export const MERGE_GRAPH_NODE_MANIFEST = compile(MergeFlowNode, "Merge");
|
|
290
|
+
/** Manifest for the map node (transforms each input item). */
|
|
291
|
+
export const MAP_GRAPH_NODE_MANIFEST = compile(MapNode, "Map");
|
|
292
|
+
/** Manifest for the delay node (pauses execution for a duration). */
|
|
293
|
+
export const DELAY_GRAPH_NODE_MANIFEST = compile(DelayFlowNode, "Delay");
|
|
294
|
+
/** Manifest for the error-boundary node (isolates branch failures). */
|
|
295
|
+
export const ERROR_BOUNDARY_GRAPH_NODE_MANIFEST = compile(ErrorBoundaryFlowNode, "Error boundary");
|
|
296
|
+
/** Manifest for the human-approval node (waits for an approval decision). */
|
|
297
|
+
export const HUMAN_APPROVAL_GRAPH_NODE_MANIFEST = compile(HumanApprovalFlowNode, "Human approval");
|
|
298
|
+
/** Manifest for the return node (terminates the workflow with output values). */
|
|
299
|
+
export const RETURN_GRAPH_NODE_MANIFEST = compile(ReturnFlowNode, "Return");
|
|
300
|
+
/** Manifest for the code node (executes user code). */
|
|
301
|
+
export const CODE_GRAPH_NODE_MANIFEST = compile(CodeNode, "Code");
|
|
302
|
+
/** Manifest for the log node (logs its input). */
|
|
303
|
+
export const LOG_GRAPH_NODE_MANIFEST = compile(LogFlowNode, "Log");
|
|
304
|
+
/** Manifest for the utility-log node (log-shaped utility sink). */
|
|
305
|
+
export const UTILITY_LOG_GRAPH_NODE_MANIFEST = compile(UtilityLogNode, "Utility Log");
|
|
306
|
+
/** Manifest for the break node (exits the enclosing loop). */
|
|
307
|
+
export const BREAK_GRAPH_NODE_MANIFEST = compile(BreakFlowNode, "Break");
|
|
308
|
+
/** Manifest for the agent node (delegates work to an agent). */
|
|
309
|
+
export const AGENT_GRAPH_NODE_MANIFEST = compile(AgentNode, "Agent");
|
|
310
|
+
/** All built-in node manifests, in catalogue display order. */
|
|
311
|
+
export const GRAPH_BUILT_IN_NODE_MANIFESTS = [
|
|
312
|
+
MANUAL_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
313
|
+
WEBHOOK_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
314
|
+
SCHEDULE_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
315
|
+
EVENT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
316
|
+
FORM_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
317
|
+
CHAT_TRIGGER_GRAPH_NODE_MANIFEST,
|
|
318
|
+
IF_GRAPH_NODE_MANIFEST,
|
|
319
|
+
SWITCH_GRAPH_NODE_MANIFEST,
|
|
320
|
+
PARALLEL_GRAPH_NODE_MANIFEST,
|
|
321
|
+
MERGE_GRAPH_NODE_MANIFEST,
|
|
322
|
+
MAP_GRAPH_NODE_MANIFEST,
|
|
323
|
+
DELAY_GRAPH_NODE_MANIFEST,
|
|
324
|
+
ERROR_BOUNDARY_GRAPH_NODE_MANIFEST,
|
|
325
|
+
HUMAN_APPROVAL_GRAPH_NODE_MANIFEST,
|
|
326
|
+
RETURN_GRAPH_NODE_MANIFEST,
|
|
327
|
+
CODE_GRAPH_NODE_MANIFEST,
|
|
328
|
+
LOG_GRAPH_NODE_MANIFEST,
|
|
329
|
+
UTILITY_LOG_GRAPH_NODE_MANIFEST,
|
|
330
|
+
BREAK_GRAPH_NODE_MANIFEST,
|
|
331
|
+
AGENT_GRAPH_NODE_MANIFEST,
|
|
332
|
+
FOREACH_GRAPH_NODE_MANIFEST,
|
|
333
|
+
WHILE_GRAPH_NODE_MANIFEST,
|
|
334
|
+
UNTIL_GRAPH_NODE_MANIFEST,
|
|
335
|
+
];
|
|
336
|
+
/** Built-in manifests indexed by node `kind` — the source for built-in catalogue registrations. */
|
|
337
|
+
export const GRAPH_BUILT_IN_NODE_MANIFESTS_BY_KIND = Object.fromEntries(GRAPH_BUILT_IN_NODE_MANIFESTS.map((manifest) => [manifest.kind, manifest]));
|
|
338
|
+
//# sourceMappingURL=manifests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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