@decaf-ts/as-graph 0.0.0-stage → 0.2.1
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/LICENSE.md +21 -0
- package/README.md +525 -2
- package/assets/i18n/en.json +683 -0
- package/dist/as-graph.cjs +2 -0
- package/dist/as-graph.cjs.map +1 -0
- package/dist/as-graph.js +2 -0
- package/dist/as-graph.js.map +1 -0
- package/lib/cjs/engine/auth/GraphAuth.cjs +130 -0
- package/lib/cjs/engine/auth/GraphAuth.cjs.map +1 -0
- package/lib/cjs/engine/auth/GraphAuthValidator.cjs +79 -0
- package/lib/cjs/engine/auth/GraphAuthValidator.cjs.map +1 -0
- package/lib/cjs/engine/auth/GraphNamespace.cjs +104 -0
- package/lib/cjs/engine/auth/GraphNamespace.cjs.map +1 -0
- package/lib/cjs/engine/auth/index.cjs +25 -0
- package/lib/cjs/engine/auth/index.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphBuiltInRegistrations.cjs +57 -0
- package/lib/cjs/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphCatalogueErrors.cjs +29 -0
- package/lib/cjs/engine/catalog/GraphCatalogueErrors.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphNodeCatalogue.cjs +331 -0
- package/lib/cjs/engine/catalog/GraphNodeCatalogue.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphNodeManifestResolver.cjs +192 -0
- package/lib/cjs/engine/catalog/GraphNodeManifestResolver.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphNodeMethodRegistry.cjs +64 -0
- package/lib/cjs/engine/catalog/GraphNodeMethodRegistry.cjs.map +1 -0
- package/lib/cjs/engine/catalog/GraphNodeRegistration.cjs +17 -0
- package/lib/cjs/engine/catalog/GraphNodeRegistration.cjs.map +1 -0
- package/lib/cjs/engine/catalog/index.cjs +27 -0
- package/lib/cjs/engine/catalog/index.cjs.map +1 -0
- package/lib/cjs/engine/constants.cjs +78 -0
- package/lib/cjs/engine/constants.cjs.map +1 -0
- package/lib/cjs/engine/decorators.cjs +4 -0
- package/lib/cjs/engine/decorators.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphBreakSignal.cjs +37 -0
- package/lib/cjs/engine/errors/GraphBreakSignal.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphCycleError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphCycleError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphExecutionError.cjs +28 -0
- package/lib/cjs/engine/errors/GraphExecutionError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphInputError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphInputError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphLoopLimitError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphLoopLimitError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphPinningError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphPinningError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphPortError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphPortError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphRunCancelledError.cjs +18 -0
- package/lib/cjs/engine/errors/GraphRunCancelledError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphStoreError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphStoreError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphTopologyError.cjs +20 -0
- package/lib/cjs/engine/errors/GraphTopologyError.cjs.map +1 -0
- package/lib/cjs/engine/errors/GraphWorkflowErrors.cjs +23 -0
- package/lib/cjs/engine/errors/GraphWorkflowErrors.cjs.map +1 -0
- package/lib/cjs/engine/errors/index.cjs +33 -0
- package/lib/cjs/engine/errors/index.cjs.map +1 -0
- package/lib/cjs/engine/events/GraphExecutionEventEmitter.cjs +40 -0
- package/lib/cjs/engine/events/GraphExecutionEventEmitter.cjs.map +1 -0
- package/lib/cjs/engine/events/GraphExecutionEventFactory.cjs +45 -0
- package/lib/cjs/engine/events/GraphExecutionEventFactory.cjs.map +1 -0
- package/lib/cjs/engine/events/GraphExecutionObserver.cjs +4 -0
- package/lib/cjs/engine/events/GraphExecutionObserver.cjs.map +1 -0
- package/lib/cjs/engine/events/index.cjs +26 -0
- package/lib/cjs/engine/events/index.cjs.map +1 -0
- package/lib/cjs/engine/execution/CodeSandboxEvaluator.cjs +4 -0
- package/lib/cjs/engine/execution/CodeSandboxEvaluator.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionContext.cjs +159 -0
- package/lib/cjs/engine/execution/GraphExecutionContext.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +1042 -0
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionFrame.cjs +50 -0
- package/lib/cjs/engine/execution/GraphExecutionFrame.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionResult.cjs +30 -0
- package/lib/cjs/engine/execution/GraphExecutionResult.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphNodeExecutor.cjs +4 -0
- package/lib/cjs/engine/execution/GraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs +574 -0
- package/lib/cjs/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs.map +1 -0
- package/lib/cjs/engine/execution/index.cjs +30 -0
- package/lib/cjs/engine/execution/index.cjs.map +1 -0
- package/lib/cjs/engine/index.cjs +85 -0
- package/lib/cjs/engine/index.cjs.map +1 -0
- package/lib/cjs/engine/loops/ConditionEvaluator.cjs +116 -0
- package/lib/cjs/engine/loops/ConditionEvaluator.cjs.map +1 -0
- package/lib/cjs/engine/loops/ConditionExpressionEvaluator.cjs +87 -0
- package/lib/cjs/engine/loops/ConditionExpressionEvaluator.cjs.map +1 -0
- package/lib/cjs/engine/loops/GraphConditionEvaluator.cjs +110 -0
- package/lib/cjs/engine/loops/GraphConditionEvaluator.cjs.map +1 -0
- package/lib/cjs/engine/loops/GraphLoopExecutionContext.cjs +16 -0
- package/lib/cjs/engine/loops/GraphLoopExecutionContext.cjs.map +1 -0
- package/lib/cjs/engine/loops/index.cjs +27 -0
- package/lib/cjs/engine/loops/index.cjs.map +1 -0
- package/lib/cjs/engine/pinning/GraphPinningDependencyResolver.cjs +28 -0
- package/lib/cjs/engine/pinning/GraphPinningDependencyResolver.cjs.map +1 -0
- package/lib/cjs/engine/pinning/GraphPinningMetadata.cjs +20 -0
- package/lib/cjs/engine/pinning/GraphPinningMetadata.cjs.map +1 -0
- package/lib/cjs/engine/pinning/GraphPinningPolicy.cjs +34 -0
- package/lib/cjs/engine/pinning/GraphPinningPolicy.cjs.map +1 -0
- package/lib/cjs/engine/pinning/GraphPinningService.cjs +220 -0
- package/lib/cjs/engine/pinning/GraphPinningService.cjs.map +1 -0
- package/lib/cjs/engine/pinning/index.cjs +27 -0
- package/lib/cjs/engine/pinning/index.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphExecutionPlan.cjs +4 -0
- package/lib/cjs/engine/planning/GraphExecutionPlan.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanEdge.cjs +4 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanEdge.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanLayer.cjs +4 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanLayer.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanNode.cjs +4 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanNode.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanner.cjs +212 -0
- package/lib/cjs/engine/planning/GraphExecutionPlanner.cjs.map +1 -0
- package/lib/cjs/engine/planning/GraphTopology.cjs +57 -0
- package/lib/cjs/engine/planning/GraphTopology.cjs.map +1 -0
- package/lib/cjs/engine/planning/index.cjs +29 -0
- package/lib/cjs/engine/planning/index.cjs.map +1 -0
- package/lib/cjs/engine/registry/GraphNodeExecutorRegistry.cjs +100 -0
- package/lib/cjs/engine/registry/GraphNodeExecutorRegistry.cjs.map +1 -0
- package/lib/cjs/engine/registry/GraphNodeExecutorResolver.cjs +59 -0
- package/lib/cjs/engine/registry/GraphNodeExecutorResolver.cjs.map +1 -0
- package/lib/cjs/engine/registry/index.cjs +25 -0
- package/lib/cjs/engine/registry/index.cjs.map +1 -0
- package/lib/cjs/engine/runs/GraphRunConverters.cjs +58 -0
- package/lib/cjs/engine/runs/GraphRunConverters.cjs.map +1 -0
- package/lib/cjs/engine/runs/GraphRunEventPublisher.cjs +69 -0
- package/lib/cjs/engine/runs/GraphRunEventPublisher.cjs.map +1 -0
- package/lib/cjs/engine/runs/GraphRunExecutor.cjs +291 -0
- package/lib/cjs/engine/runs/GraphRunExecutor.cjs.map +1 -0
- package/lib/cjs/engine/runs/GraphRunFingerprint.cjs +29 -0
- package/lib/cjs/engine/runs/GraphRunFingerprint.cjs.map +1 -0
- package/lib/cjs/engine/runs/GraphRunService.cjs +329 -0
- package/lib/cjs/engine/runs/GraphRunService.cjs.map +1 -0
- package/lib/cjs/engine/runs/InMemoryGraphRunEventStore.cjs +69 -0
- package/lib/cjs/engine/runs/InMemoryGraphRunEventStore.cjs.map +1 -0
- package/lib/cjs/engine/runs/InMemoryGraphRunStore.cjs +59 -0
- package/lib/cjs/engine/runs/InMemoryGraphRunStore.cjs.map +1 -0
- package/lib/cjs/engine/runs/index.cjs +29 -0
- package/lib/cjs/engine/runs/index.cjs.map +1 -0
- package/lib/cjs/engine/runs/ownership.cjs +123 -0
- package/lib/cjs/engine/runs/ownership.cjs.map +1 -0
- package/lib/cjs/engine/runs/types.cjs +4 -0
- package/lib/cjs/engine/runs/types.cjs.map +1 -0
- package/lib/cjs/engine/services/GraphEnvironment.cjs +32 -0
- package/lib/cjs/engine/services/GraphEnvironment.cjs.map +1 -0
- package/lib/cjs/engine/services/GraphRunModelService.cjs +111 -0
- package/lib/cjs/engine/services/GraphRunModelService.cjs.map +1 -0
- package/lib/cjs/engine/services/GraphWorkflowService.cjs +408 -0
- package/lib/cjs/engine/services/GraphWorkflowService.cjs.map +1 -0
- package/lib/cjs/engine/snapshots/GraphExecutionSnapshotMapper.cjs +53 -0
- package/lib/cjs/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -0
- package/lib/cjs/engine/snapshots/index.cjs +24 -0
- package/lib/cjs/engine/snapshots/index.cjs.map +1 -0
- package/lib/cjs/engine/store/GraphCachedValue.cjs +4 -0
- package/lib/cjs/engine/store/GraphCachedValue.cjs.map +1 -0
- package/lib/cjs/engine/store/GraphValueKey.cjs +4 -0
- package/lib/cjs/engine/store/GraphValueKey.cjs.map +1 -0
- package/lib/cjs/engine/store/GraphValueModel.cjs +96 -0
- package/lib/cjs/engine/store/GraphValueModel.cjs.map +1 -0
- package/lib/cjs/engine/store/GraphValueRepository.cjs +244 -0
- package/lib/cjs/engine/store/GraphValueRepository.cjs.map +1 -0
- package/lib/cjs/engine/store/index.cjs +28 -0
- package/lib/cjs/engine/store/index.cjs.map +1 -0
- package/lib/cjs/engine/types.cjs +4 -0
- package/lib/cjs/engine/types.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphConnectionPolicyValidator.cjs +142 -0
- package/lib/cjs/engine/validation/GraphConnectionPolicyValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphCredentialReferenceValidator.cjs +160 -0
- package/lib/cjs/engine/validation/GraphCredentialReferenceValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphEdgeInstanceValidator.cjs +166 -0
- package/lib/cjs/engine/validation/GraphEdgeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphLooseNodeValidation.cjs +36 -0
- package/lib/cjs/engine/validation/GraphLooseNodeValidation.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs +86 -0
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphParameterValidator.cjs +465 -0
- package/lib/cjs/engine/validation/GraphParameterValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphPortSchemaResolver.cjs +58 -0
- package/lib/cjs/engine/validation/GraphPortSchemaResolver.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphResolvedWorkflow.cjs +4 -0
- package/lib/cjs/engine/validation/GraphResolvedWorkflow.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphValidationErrors.cjs +50 -0
- package/lib/cjs/engine/validation/GraphValidationErrors.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphValidationIssue.cjs +4 -0
- package/lib/cjs/engine/validation/GraphValidationIssue.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphValueValidator.cjs +52 -0
- package/lib/cjs/engine/validation/GraphValueValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphWorkflowBoundaryValidation.cjs +171 -0
- package/lib/cjs/engine/validation/GraphWorkflowBoundaryValidation.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphWorkflowDocumentLimits.cjs +12 -0
- package/lib/cjs/engine/validation/GraphWorkflowDocumentLimits.cjs.map +1 -0
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs +518 -0
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -0
- package/lib/cjs/engine/validation/index.cjs +39 -0
- package/lib/cjs/engine/validation/index.cjs.map +1 -0
- package/lib/cjs/index.cjs +31 -0
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/log/GraphRunLogger.cjs +184 -0
- package/lib/cjs/log/GraphRunLogger.cjs.map +1 -0
- package/lib/cjs/log/LogParameters.cjs +115 -0
- package/lib/cjs/log/LogParameters.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +295 -0
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +113 -0
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +288 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs +487 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +271 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -0
- package/lib/cjs/nest/graph/index.cjs +30 -0
- package/lib/cjs/nest/graph/index.cjs.map +1 -0
- package/lib/cjs/nest/graph/servingDates.cjs +53 -0
- package/lib/cjs/nest/graph/servingDates.cjs.map +1 -0
- package/lib/cjs/nest/graph/servingErrors.cjs +65 -0
- package/lib/cjs/nest/graph/servingErrors.cjs.map +1 -0
- package/lib/cjs/nest/index.cjs +28 -0
- package/lib/cjs/nest/index.cjs.map +1 -0
- package/lib/cjs/node/agents/agent/node.cjs +121 -0
- package/lib/cjs/node/agents/agent/node.cjs.map +1 -0
- package/lib/cjs/node/base.cjs +138 -0
- package/lib/cjs/node/base.cjs.map +1 -0
- package/lib/cjs/node/boundary/input/node.cjs +70 -0
- package/lib/cjs/node/boundary/input/node.cjs.map +1 -0
- package/lib/cjs/node/boundary/output/node.cjs +73 -0
- package/lib/cjs/node/boundary/output/node.cjs.map +1 -0
- package/lib/cjs/node/flow/break/node.cjs +80 -0
- package/lib/cjs/node/flow/break/node.cjs.map +1 -0
- package/lib/cjs/node/flow/error-boundary/node.cjs +143 -0
- package/lib/cjs/node/flow/error-boundary/node.cjs.map +1 -0
- package/lib/cjs/node/flow/human-approval/node.cjs +94 -0
- package/lib/cjs/node/flow/human-approval/node.cjs.map +1 -0
- package/lib/cjs/node/flow/if/node.cjs +148 -0
- package/lib/cjs/node/flow/if/node.cjs.map +1 -0
- package/lib/cjs/node/flow/loop/foreach/node.cjs +247 -0
- package/lib/cjs/node/flow/loop/foreach/node.cjs.map +1 -0
- package/lib/cjs/node/flow/loop/loop-metadata.cjs +83 -0
- package/lib/cjs/node/flow/loop/loop-metadata.cjs.map +1 -0
- package/lib/cjs/node/flow/loop/until/node.cjs +198 -0
- package/lib/cjs/node/flow/loop/until/node.cjs.map +1 -0
- package/lib/cjs/node/flow/loop/while/node.cjs +197 -0
- package/lib/cjs/node/flow/loop/while/node.cjs.map +1 -0
- package/lib/cjs/node/flow/switch/node.cjs +221 -0
- package/lib/cjs/node/flow/switch/node.cjs.map +1 -0
- package/lib/cjs/node/index.cjs +158 -0
- package/lib/cjs/node/index.cjs.map +1 -0
- package/lib/cjs/node/manifests.cjs +260 -0
- package/lib/cjs/node/manifests.cjs.map +1 -0
- package/lib/cjs/node/triggers/chat/node.cjs +82 -0
- package/lib/cjs/node/triggers/chat/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/event/node.cjs +67 -0
- package/lib/cjs/node/triggers/event/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/form/node.cjs +80 -0
- package/lib/cjs/node/triggers/form/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/manual/node.cjs +71 -0
- package/lib/cjs/node/triggers/manual/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/schedule/node.cjs +80 -0
- package/lib/cjs/node/triggers/schedule/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/webhook/node.cjs +84 -0
- package/lib/cjs/node/triggers/webhook/node.cjs.map +1 -0
- package/lib/cjs/node/utility/code/node.cjs +223 -0
- package/lib/cjs/node/utility/code/node.cjs.map +1 -0
- package/lib/cjs/node/utility/delay/node.cjs +81 -0
- package/lib/cjs/node/utility/delay/node.cjs.map +1 -0
- package/lib/cjs/node/utility/log/node.cjs +98 -0
- package/lib/cjs/node/utility/log/node.cjs.map +1 -0
- package/lib/cjs/node/utility/map/node.cjs +75 -0
- package/lib/cjs/node/utility/map/node.cjs.map +1 -0
- package/lib/cjs/node/utility/utility-log/node.cjs +96 -0
- package/lib/cjs/node/utility/utility-log/node.cjs.map +1 -0
- package/lib/cjs/ram/GraphRunEventModel.cjs +134 -0
- package/lib/cjs/ram/GraphRunEventModel.cjs.map +1 -0
- package/lib/cjs/ram/GraphRunEventStore.cjs +141 -0
- package/lib/cjs/ram/GraphRunEventStore.cjs.map +1 -0
- package/lib/cjs/ram/GraphRunStore.cjs +112 -0
- package/lib/cjs/ram/GraphRunStore.cjs.map +1 -0
- package/lib/cjs/ram/index.cjs +57 -0
- package/lib/cjs/ram/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphExecutionStateMapper.cjs +97 -0
- package/lib/cjs/shared/graph/GraphExecutionStateMapper.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphResolution.cjs +21 -0
- package/lib/cjs/shared/graph/GraphResolution.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphRunModel.cjs +140 -0
- package/lib/cjs/shared/graph/GraphRunModel.cjs.map +1 -0
- package/lib/cjs/shared/graph/GraphWorkflowModel.cjs +66 -0
- package/lib/cjs/shared/graph/GraphWorkflowModel.cjs.map +1 -0
- package/lib/cjs/shared/graph/auth.cjs +106 -0
- package/lib/cjs/shared/graph/auth.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphConnectionPolicy.cjs +24 -0
- package/lib/cjs/shared/graph/catalog/GraphConnectionPolicy.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphCredentialReference.cjs +19 -0
- package/lib/cjs/shared/graph/catalog/GraphCredentialReference.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphCredentialRequirement.cjs +20 -0
- package/lib/cjs/shared/graph/catalog/GraphCredentialRequirement.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphDynamicPortRule.cjs +42 -0
- package/lib/cjs/shared/graph/catalog/GraphDynamicPortRule.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphIconReference.cjs +26 -0
- package/lib/cjs/shared/graph/catalog/GraphIconReference.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs +390 -0
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeCapability.cjs +34 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeCapability.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeDisplayManifest.cjs +15 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeDisplayManifest.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeManifest.cjs +33 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeManifest.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeManifestSerialization.cjs +65 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeManifestSerialization.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeMethodManifest.cjs +40 -0
- package/lib/cjs/shared/graph/catalog/GraphNodeMethodManifest.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphNodePolicyManifest.cjs +18 -0
- package/lib/cjs/shared/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterBase.cjs +4 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterBase.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterDefinition.cjs +40 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterDefinition.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterOption.cjs +26 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterOption.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterValidation.cjs +72 -0
- package/lib/cjs/shared/graph/catalog/GraphParameterValidation.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphPortManifest.cjs +32 -0
- package/lib/cjs/shared/graph/catalog/GraphPortManifest.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphPortManifestElement.cjs +19 -0
- package/lib/cjs/shared/graph/catalog/GraphPortManifestElement.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphResourceLocatorMode.cjs +30 -0
- package/lib/cjs/shared/graph/catalog/GraphResourceLocatorMode.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchema.cjs +36 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchema.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs +186 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphVisibilityExpression.cjs +70 -0
- package/lib/cjs/shared/graph/catalog/GraphVisibilityExpression.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/index.cjs +43 -0
- package/lib/cjs/shared/graph/catalog/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/category-styles.cjs +38 -0
- package/lib/cjs/shared/graph/category-styles.cjs.map +1 -0
- package/lib/cjs/shared/graph/constants.cjs +333 -0
- package/lib/cjs/shared/graph/constants.cjs.map +1 -0
- package/lib/cjs/shared/graph/decorators.cjs +205 -0
- package/lib/cjs/shared/graph/decorators.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphDecoratedWorkflowCompiler.cjs +407 -0
- package/lib/cjs/shared/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphEdgeInstance.cjs +4 -0
- package/lib/cjs/shared/graph/document/GraphEdgeInstance.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphEndpoint.cjs +39 -0
- package/lib/cjs/shared/graph/document/GraphEndpoint.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphErrorBoundaryConfiguration.cjs +4 -0
- package/lib/cjs/shared/graph/document/GraphErrorBoundaryConfiguration.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphFlowBuilder.cjs +771 -0
- package/lib/cjs/shared/graph/document/GraphFlowBuilder.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphJsonValue.cjs +103 -0
- package/lib/cjs/shared/graph/document/GraphJsonValue.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphLoopConfiguration.cjs +4 -0
- package/lib/cjs/shared/graph/document/GraphLoopConfiguration.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphNodeBinding.cjs +35 -0
- package/lib/cjs/shared/graph/document/GraphNodeBinding.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphNodeDerivation.cjs +153 -0
- package/lib/cjs/shared/graph/document/GraphNodeDerivation.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphNodeInstance.cjs +4 -0
- package/lib/cjs/shared/graph/document/GraphNodeInstance.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphValueTemplate.cjs +97 -0
- package/lib/cjs/shared/graph/document/GraphValueTemplate.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocument.cjs +27 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocument.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentBuilder.cjs +439 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentReader.cjs +119 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentReader.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentSerializer.cjs +82 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowDocumentSerializer.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowUiState.cjs +4 -0
- package/lib/cjs/shared/graph/document/GraphWorkflowUiState.cjs.map +1 -0
- package/lib/cjs/shared/graph/document/index.cjs +37 -0
- package/lib/cjs/shared/graph/document/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/index.cjs +39 -0
- package/lib/cjs/shared/graph/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/overrides/Metadata.cjs +23 -0
- package/lib/cjs/shared/graph/overrides/Metadata.cjs.map +1 -0
- package/lib/cjs/shared/graph/overrides/Rendering.cjs +4 -0
- package/lib/cjs/shared/graph/overrides/Rendering.cjs.map +1 -0
- package/lib/cjs/shared/graph/overrides/index.cjs +24 -0
- package/lib/cjs/shared/graph/overrides/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/overrides/overrides.cjs +20 -0
- package/lib/cjs/shared/graph/overrides/overrides.cjs.map +1 -0
- package/lib/cjs/shared/graph/reader.cjs +392 -0
- package/lib/cjs/shared/graph/reader.cjs.map +1 -0
- package/lib/cjs/shared/graph/registry.cjs +67 -0
- package/lib/cjs/shared/graph/registry.cjs.map +1 -0
- package/lib/cjs/shared/graph/snapshot.cjs +4 -0
- package/lib/cjs/shared/graph/snapshot.cjs.map +1 -0
- package/lib/cjs/shared/graph/types.cjs +7 -0
- package/lib/cjs/shared/graph/types.cjs.map +1 -0
- package/lib/cjs/shared/index.cjs +30 -0
- package/lib/cjs/shared/index.cjs.map +1 -0
- package/lib/cjs/shared/ui/GraphNodeView.cjs +114 -0
- package/lib/cjs/shared/ui/GraphNodeView.cjs.map +1 -0
- package/lib/cjs/shared/ui/GraphRunView.cjs +96 -0
- package/lib/cjs/shared/ui/GraphRunView.cjs.map +1 -0
- package/lib/cjs/shared/ui/GraphWorkflowView.cjs +78 -0
- package/lib/cjs/shared/ui/GraphWorkflowView.cjs.map +1 -0
- package/lib/cjs/shared/ui/constants.cjs +73 -0
- package/lib/cjs/shared/ui/constants.cjs.map +1 -0
- package/lib/cjs/shared/ui/index.cjs +32 -0
- package/lib/cjs/shared/ui/index.cjs.map +1 -0
- package/lib/cjs/shared/ui/types.cjs +4 -0
- package/lib/cjs/shared/ui/types.cjs.map +1 -0
- package/lib/esm/engine/auth/GraphAuth.js +123 -0
- package/lib/esm/engine/auth/GraphAuth.js.map +1 -0
- package/lib/esm/engine/auth/GraphAuthValidator.js +74 -0
- package/lib/esm/engine/auth/GraphAuthValidator.js.map +1 -0
- package/lib/esm/engine/auth/GraphNamespace.js +93 -0
- package/lib/esm/engine/auth/GraphNamespace.js.map +1 -0
- package/lib/esm/engine/auth/index.js +8 -0
- package/lib/esm/engine/auth/index.js.map +1 -0
- package/lib/esm/engine/catalog/GraphBuiltInRegistrations.js +52 -0
- package/lib/esm/engine/catalog/GraphBuiltInRegistrations.js.map +1 -0
- package/lib/esm/engine/catalog/GraphCatalogueErrors.js +22 -0
- package/lib/esm/engine/catalog/GraphCatalogueErrors.js.map +1 -0
- package/lib/esm/engine/catalog/GraphNodeCatalogue.js +322 -0
- package/lib/esm/engine/catalog/GraphNodeCatalogue.js.map +1 -0
- package/lib/esm/engine/catalog/GraphNodeManifestResolver.js +185 -0
- package/lib/esm/engine/catalog/GraphNodeManifestResolver.js.map +1 -0
- package/lib/esm/engine/catalog/GraphNodeMethodRegistry.js +59 -0
- package/lib/esm/engine/catalog/GraphNodeMethodRegistry.js.map +1 -0
- package/lib/esm/engine/catalog/GraphNodeRegistration.js +12 -0
- package/lib/esm/engine/catalog/GraphNodeRegistration.js.map +1 -0
- package/lib/esm/engine/catalog/index.js +10 -0
- package/lib/esm/engine/catalog/index.js.map +1 -0
- package/lib/esm/engine/constants.js +82 -0
- package/lib/esm/engine/constants.js.map +1 -0
- package/lib/esm/engine/decorators.js +2 -0
- package/lib/esm/engine/decorators.js.map +1 -0
- package/lib/esm/engine/errors/GraphBreakSignal.js +32 -0
- package/lib/esm/engine/errors/GraphBreakSignal.js.map +1 -0
- package/lib/esm/engine/errors/GraphCycleError.js +15 -0
- package/lib/esm/engine/errors/GraphCycleError.js.map +1 -0
- package/lib/esm/engine/errors/GraphExecutionError.js +23 -0
- package/lib/esm/engine/errors/GraphExecutionError.js.map +1 -0
- package/lib/esm/engine/errors/GraphInputError.js +15 -0
- package/lib/esm/engine/errors/GraphInputError.js.map +1 -0
- package/lib/esm/engine/errors/GraphLoopLimitError.js +15 -0
- package/lib/esm/engine/errors/GraphLoopLimitError.js.map +1 -0
- package/lib/esm/engine/errors/GraphPinningError.js +15 -0
- package/lib/esm/engine/errors/GraphPinningError.js.map +1 -0
- package/lib/esm/engine/errors/GraphPortError.js +15 -0
- package/lib/esm/engine/errors/GraphPortError.js.map +1 -0
- package/lib/esm/engine/errors/GraphRunCancelledError.js +13 -0
- package/lib/esm/engine/errors/GraphRunCancelledError.js.map +1 -0
- package/lib/esm/engine/errors/GraphStoreError.js +15 -0
- package/lib/esm/engine/errors/GraphStoreError.js.map +1 -0
- package/lib/esm/engine/errors/GraphTopologyError.js +15 -0
- package/lib/esm/engine/errors/GraphTopologyError.js.map +1 -0
- package/lib/esm/engine/errors/GraphWorkflowErrors.js +18 -0
- package/lib/esm/engine/errors/GraphWorkflowErrors.js.map +1 -0
- package/lib/esm/engine/errors/index.js +16 -0
- package/lib/esm/engine/errors/index.js.map +1 -0
- package/lib/esm/engine/events/GraphExecutionEventEmitter.js +35 -0
- package/lib/esm/engine/events/GraphExecutionEventEmitter.js.map +1 -0
- package/lib/esm/engine/events/GraphExecutionEventFactory.js +40 -0
- package/lib/esm/engine/events/GraphExecutionEventFactory.js.map +1 -0
- package/lib/esm/engine/events/GraphExecutionObserver.js +2 -0
- package/lib/esm/engine/events/GraphExecutionObserver.js.map +1 -0
- package/lib/esm/engine/events/index.js +9 -0
- package/lib/esm/engine/events/index.js.map +1 -0
- package/lib/esm/engine/execution/CodeSandboxEvaluator.js +18 -0
- package/lib/esm/engine/execution/CodeSandboxEvaluator.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionContext.js +154 -0
- package/lib/esm/engine/execution/GraphExecutionContext.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionEngine.js +1037 -0
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionFrame.js +45 -0
- package/lib/esm/engine/execution/GraphExecutionFrame.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionResult.js +26 -0
- package/lib/esm/engine/execution/GraphExecutionResult.js.map +1 -0
- package/lib/esm/engine/execution/GraphNodeExecutor.js +2 -0
- package/lib/esm/engine/execution/GraphNodeExecutor.js.map +1 -0
- package/lib/esm/engine/execution/IsolatedVmCodeSandboxEvaluator.js +533 -0
- package/lib/esm/engine/execution/IsolatedVmCodeSandboxEvaluator.js.map +1 -0
- package/lib/esm/engine/execution/index.js +13 -0
- package/lib/esm/engine/execution/index.js.map +1 -0
- package/lib/esm/engine/index.js +68 -0
- package/lib/esm/engine/index.js.map +1 -0
- package/lib/esm/engine/loops/ConditionEvaluator.js +108 -0
- package/lib/esm/engine/loops/ConditionEvaluator.js.map +1 -0
- package/lib/esm/engine/loops/ConditionExpressionEvaluator.js +82 -0
- package/lib/esm/engine/loops/ConditionExpressionEvaluator.js.map +1 -0
- package/lib/esm/engine/loops/GraphConditionEvaluator.js +105 -0
- package/lib/esm/engine/loops/GraphConditionEvaluator.js.map +1 -0
- package/lib/esm/engine/loops/GraphLoopExecutionContext.js +11 -0
- package/lib/esm/engine/loops/GraphLoopExecutionContext.js.map +1 -0
- package/lib/esm/engine/loops/index.js +10 -0
- package/lib/esm/engine/loops/index.js.map +1 -0
- package/lib/esm/engine/pinning/GraphPinningDependencyResolver.js +23 -0
- package/lib/esm/engine/pinning/GraphPinningDependencyResolver.js.map +1 -0
- package/lib/esm/engine/pinning/GraphPinningMetadata.js +15 -0
- package/lib/esm/engine/pinning/GraphPinningMetadata.js.map +1 -0
- package/lib/esm/engine/pinning/GraphPinningPolicy.js +29 -0
- package/lib/esm/engine/pinning/GraphPinningPolicy.js.map +1 -0
- package/lib/esm/engine/pinning/GraphPinningService.js +215 -0
- package/lib/esm/engine/pinning/GraphPinningService.js.map +1 -0
- package/lib/esm/engine/pinning/index.js +10 -0
- package/lib/esm/engine/pinning/index.js.map +1 -0
- package/lib/esm/engine/planning/GraphExecutionPlan.js +2 -0
- package/lib/esm/engine/planning/GraphExecutionPlan.js.map +1 -0
- package/lib/esm/engine/planning/GraphExecutionPlanEdge.js +9 -0
- package/lib/esm/engine/planning/GraphExecutionPlanEdge.js.map +1 -0
- package/lib/esm/engine/planning/GraphExecutionPlanLayer.js +2 -0
- package/lib/esm/engine/planning/GraphExecutionPlanLayer.js.map +1 -0
- package/lib/esm/engine/planning/GraphExecutionPlanNode.js +2 -0
- package/lib/esm/engine/planning/GraphExecutionPlanNode.js.map +1 -0
- package/lib/esm/engine/planning/GraphExecutionPlanner.js +203 -0
- package/lib/esm/engine/planning/GraphExecutionPlanner.js.map +1 -0
- package/lib/esm/engine/planning/GraphTopology.js +52 -0
- package/lib/esm/engine/planning/GraphTopology.js.map +1 -0
- package/lib/esm/engine/planning/index.js +12 -0
- package/lib/esm/engine/planning/index.js.map +1 -0
- package/lib/esm/engine/registry/GraphNodeExecutorRegistry.js +91 -0
- package/lib/esm/engine/registry/GraphNodeExecutorRegistry.js.map +1 -0
- package/lib/esm/engine/registry/GraphNodeExecutorResolver.js +50 -0
- package/lib/esm/engine/registry/GraphNodeExecutorResolver.js.map +1 -0
- package/lib/esm/engine/registry/index.js +8 -0
- package/lib/esm/engine/registry/index.js.map +1 -0
- package/lib/esm/engine/runs/GraphRunConverters.js +53 -0
- package/lib/esm/engine/runs/GraphRunConverters.js.map +1 -0
- package/lib/esm/engine/runs/GraphRunEventPublisher.js +64 -0
- package/lib/esm/engine/runs/GraphRunEventPublisher.js.map +1 -0
- package/lib/esm/engine/runs/GraphRunExecutor.js +286 -0
- package/lib/esm/engine/runs/GraphRunExecutor.js.map +1 -0
- package/lib/esm/engine/runs/GraphRunFingerprint.js +25 -0
- package/lib/esm/engine/runs/GraphRunFingerprint.js.map +1 -0
- package/lib/esm/engine/runs/GraphRunService.js +324 -0
- package/lib/esm/engine/runs/GraphRunService.js.map +1 -0
- package/lib/esm/engine/runs/InMemoryGraphRunEventStore.js +64 -0
- package/lib/esm/engine/runs/InMemoryGraphRunEventStore.js.map +1 -0
- package/lib/esm/engine/runs/InMemoryGraphRunStore.js +54 -0
- package/lib/esm/engine/runs/InMemoryGraphRunStore.js.map +1 -0
- package/lib/esm/engine/runs/index.js +12 -0
- package/lib/esm/engine/runs/index.js.map +1 -0
- package/lib/esm/engine/runs/ownership.js +116 -0
- package/lib/esm/engine/runs/ownership.js.map +1 -0
- package/lib/esm/engine/runs/types.js +2 -0
- package/lib/esm/engine/runs/types.js.map +1 -0
- package/lib/esm/engine/services/GraphEnvironment.js +28 -0
- package/lib/esm/engine/services/GraphEnvironment.js.map +1 -0
- package/lib/esm/engine/services/GraphRunModelService.js +102 -0
- package/lib/esm/engine/services/GraphRunModelService.js.map +1 -0
- package/lib/esm/engine/services/GraphWorkflowService.js +398 -0
- package/lib/esm/engine/services/GraphWorkflowService.js.map +1 -0
- package/lib/esm/engine/snapshots/GraphExecutionSnapshotMapper.js +48 -0
- package/lib/esm/engine/snapshots/GraphExecutionSnapshotMapper.js.map +1 -0
- package/lib/esm/engine/snapshots/index.js +7 -0
- package/lib/esm/engine/snapshots/index.js.map +1 -0
- package/lib/esm/engine/store/GraphCachedValue.js +2 -0
- package/lib/esm/engine/store/GraphCachedValue.js.map +1 -0
- package/lib/esm/engine/store/GraphValueKey.js +7 -0
- package/lib/esm/engine/store/GraphValueKey.js.map +1 -0
- package/lib/esm/engine/store/GraphValueModel.js +87 -0
- package/lib/esm/engine/store/GraphValueModel.js.map +1 -0
- package/lib/esm/engine/store/GraphValueRepository.js +233 -0
- package/lib/esm/engine/store/GraphValueRepository.js.map +1 -0
- package/lib/esm/engine/store/index.js +11 -0
- package/lib/esm/engine/store/index.js.map +1 -0
- package/lib/esm/engine/types.js +2 -0
- package/lib/esm/engine/types.js.map +1 -0
- package/lib/esm/engine/validation/GraphConnectionPolicyValidator.js +137 -0
- package/lib/esm/engine/validation/GraphConnectionPolicyValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphCredentialReferenceValidator.js +155 -0
- package/lib/esm/engine/validation/GraphCredentialReferenceValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphEdgeInstanceValidator.js +161 -0
- package/lib/esm/engine/validation/GraphEdgeInstanceValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphLooseNodeValidation.js +32 -0
- package/lib/esm/engine/validation/GraphLooseNodeValidation.js.map +1 -0
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js +81 -0
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphParameterValidator.js +458 -0
- package/lib/esm/engine/validation/GraphParameterValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphPortSchemaResolver.js +53 -0
- package/lib/esm/engine/validation/GraphPortSchemaResolver.js.map +1 -0
- package/lib/esm/engine/validation/GraphResolvedWorkflow.js +2 -0
- package/lib/esm/engine/validation/GraphResolvedWorkflow.js.map +1 -0
- package/lib/esm/engine/validation/GraphValidationErrors.js +43 -0
- package/lib/esm/engine/validation/GraphValidationErrors.js.map +1 -0
- package/lib/esm/engine/validation/GraphValidationIssue.js +2 -0
- package/lib/esm/engine/validation/GraphValidationIssue.js.map +1 -0
- package/lib/esm/engine/validation/GraphValueValidator.js +47 -0
- package/lib/esm/engine/validation/GraphValueValidator.js.map +1 -0
- package/lib/esm/engine/validation/GraphWorkflowBoundaryValidation.js +166 -0
- package/lib/esm/engine/validation/GraphWorkflowBoundaryValidation.js.map +1 -0
- package/lib/esm/engine/validation/GraphWorkflowDocumentLimits.js +8 -0
- package/lib/esm/engine/validation/GraphWorkflowDocumentLimits.js.map +1 -0
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js +512 -0
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -0
- package/lib/esm/engine/validation/index.js +22 -0
- package/lib/esm/engine/validation/index.js.map +1 -0
- package/lib/esm/index.js +14 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/log/GraphRunLogger.js +179 -0
- package/lib/esm/log/GraphRunLogger.js.map +1 -0
- package/lib/esm/log/LogParameters.js +111 -0
- package/lib/esm/log/LogParameters.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionModule.js +287 -0
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +106 -0
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -0
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +279 -0
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -0
- package/lib/esm/nest/graph/GraphRunController.js +478 -0
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js +262 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -0
- package/lib/esm/nest/graph/index.js +13 -0
- package/lib/esm/nest/graph/index.js.map +1 -0
- package/lib/esm/nest/graph/servingDates.js +49 -0
- package/lib/esm/nest/graph/servingDates.js.map +1 -0
- package/lib/esm/nest/graph/servingErrors.js +60 -0
- package/lib/esm/nest/graph/servingErrors.js.map +1 -0
- package/lib/esm/nest/index.js +11 -0
- package/lib/esm/nest/index.js.map +1 -0
- package/lib/esm/node/agents/agent/node.js +112 -0
- package/lib/esm/node/agents/agent/node.js.map +1 -0
- package/lib/esm/node/base.js +132 -0
- package/lib/esm/node/base.js.map +1 -0
- package/lib/esm/node/boundary/input/node.js +61 -0
- package/lib/esm/node/boundary/input/node.js.map +1 -0
- package/lib/esm/node/boundary/output/node.js +64 -0
- package/lib/esm/node/boundary/output/node.js.map +1 -0
- package/lib/esm/node/flow/break/node.js +71 -0
- package/lib/esm/node/flow/break/node.js.map +1 -0
- package/lib/esm/node/flow/error-boundary/node.js +134 -0
- package/lib/esm/node/flow/error-boundary/node.js.map +1 -0
- package/lib/esm/node/flow/human-approval/node.js +85 -0
- package/lib/esm/node/flow/human-approval/node.js.map +1 -0
- package/lib/esm/node/flow/if/node.js +139 -0
- package/lib/esm/node/flow/if/node.js.map +1 -0
- package/lib/esm/node/flow/loop/foreach/node.js +238 -0
- package/lib/esm/node/flow/loop/foreach/node.js.map +1 -0
- package/lib/esm/node/flow/loop/loop-metadata.js +78 -0
- package/lib/esm/node/flow/loop/loop-metadata.js.map +1 -0
- package/lib/esm/node/flow/loop/until/node.js +189 -0
- package/lib/esm/node/flow/loop/until/node.js.map +1 -0
- package/lib/esm/node/flow/loop/while/node.js +188 -0
- package/lib/esm/node/flow/loop/while/node.js.map +1 -0
- package/lib/esm/node/flow/switch/node.js +212 -0
- package/lib/esm/node/flow/switch/node.js.map +1 -0
- package/lib/esm/node/index.js +140 -0
- package/lib/esm/node/index.js.map +1 -0
- package/lib/esm/node/manifests.js +256 -0
- package/lib/esm/node/manifests.js.map +1 -0
- package/lib/esm/node/triggers/chat/node.js +73 -0
- package/lib/esm/node/triggers/chat/node.js.map +1 -0
- package/lib/esm/node/triggers/event/node.js +58 -0
- package/lib/esm/node/triggers/event/node.js.map +1 -0
- package/lib/esm/node/triggers/form/node.js +71 -0
- package/lib/esm/node/triggers/form/node.js.map +1 -0
- package/lib/esm/node/triggers/manual/node.js +62 -0
- package/lib/esm/node/triggers/manual/node.js.map +1 -0
- package/lib/esm/node/triggers/schedule/node.js +71 -0
- package/lib/esm/node/triggers/schedule/node.js.map +1 -0
- package/lib/esm/node/triggers/webhook/node.js +75 -0
- package/lib/esm/node/triggers/webhook/node.js.map +1 -0
- package/lib/esm/node/utility/code/node.js +213 -0
- package/lib/esm/node/utility/code/node.js.map +1 -0
- package/lib/esm/node/utility/delay/node.js +72 -0
- package/lib/esm/node/utility/delay/node.js.map +1 -0
- package/lib/esm/node/utility/log/node.js +89 -0
- package/lib/esm/node/utility/log/node.js.map +1 -0
- package/lib/esm/node/utility/map/node.js +66 -0
- package/lib/esm/node/utility/map/node.js.map +1 -0
- package/lib/esm/node/utility/utility-log/node.js +87 -0
- package/lib/esm/node/utility/utility-log/node.js.map +1 -0
- package/lib/esm/ram/GraphRunEventModel.js +123 -0
- package/lib/esm/ram/GraphRunEventModel.js.map +1 -0
- package/lib/esm/ram/GraphRunEventStore.js +131 -0
- package/lib/esm/ram/GraphRunEventStore.js.map +1 -0
- package/lib/esm/ram/GraphRunStore.js +102 -0
- package/lib/esm/ram/GraphRunStore.js.map +1 -0
- package/lib/esm/ram/index.js +39 -0
- package/lib/esm/ram/index.js.map +1 -0
- package/lib/esm/shared/graph/GraphExecutionStateMapper.js +91 -0
- package/lib/esm/shared/graph/GraphExecutionStateMapper.js.map +1 -0
- package/lib/esm/shared/graph/GraphResolution.js +17 -0
- package/lib/esm/shared/graph/GraphResolution.js.map +1 -0
- package/lib/esm/shared/graph/GraphRunModel.js +131 -0
- package/lib/esm/shared/graph/GraphRunModel.js.map +1 -0
- package/lib/esm/shared/graph/GraphWorkflowModel.js +57 -0
- package/lib/esm/shared/graph/GraphWorkflowModel.js.map +1 -0
- package/lib/esm/shared/graph/auth.js +97 -0
- package/lib/esm/shared/graph/auth.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphConnectionPolicy.js +20 -0
- package/lib/esm/shared/graph/catalog/GraphConnectionPolicy.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphCredentialReference.js +13 -0
- package/lib/esm/shared/graph/catalog/GraphCredentialReference.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphCredentialRequirement.js +16 -0
- package/lib/esm/shared/graph/catalog/GraphCredentialRequirement.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphDynamicPortRule.js +36 -0
- package/lib/esm/shared/graph/catalog/GraphDynamicPortRule.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphIconReference.js +22 -0
- package/lib/esm/shared/graph/catalog/GraphIconReference.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js +386 -0
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodeCapability.js +28 -0
- package/lib/esm/shared/graph/catalog/GraphNodeCapability.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodeDisplayManifest.js +11 -0
- package/lib/esm/shared/graph/catalog/GraphNodeDisplayManifest.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodeManifest.js +27 -0
- package/lib/esm/shared/graph/catalog/GraphNodeManifest.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodeManifestSerialization.js +57 -0
- package/lib/esm/shared/graph/catalog/GraphNodeManifestSerialization.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodeMethodManifest.js +34 -0
- package/lib/esm/shared/graph/catalog/GraphNodeMethodManifest.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphNodePolicyManifest.js +14 -0
- package/lib/esm/shared/graph/catalog/GraphNodePolicyManifest.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphParameterBase.js +2 -0
- package/lib/esm/shared/graph/catalog/GraphParameterBase.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphParameterDefinition.js +34 -0
- package/lib/esm/shared/graph/catalog/GraphParameterDefinition.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphParameterOption.js +21 -0
- package/lib/esm/shared/graph/catalog/GraphParameterOption.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphParameterValidation.js +65 -0
- package/lib/esm/shared/graph/catalog/GraphParameterValidation.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphPortManifest.js +26 -0
- package/lib/esm/shared/graph/catalog/GraphPortManifest.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphPortManifestElement.js +15 -0
- package/lib/esm/shared/graph/catalog/GraphPortManifestElement.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphResourceLocatorMode.js +24 -0
- package/lib/esm/shared/graph/catalog/GraphResourceLocatorMode.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchema.js +30 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchema.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js +178 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphVisibilityExpression.js +65 -0
- package/lib/esm/shared/graph/catalog/GraphVisibilityExpression.js.map +1 -0
- package/lib/esm/shared/graph/catalog/index.js +26 -0
- package/lib/esm/shared/graph/catalog/index.js.map +1 -0
- package/lib/esm/shared/graph/category-styles.js +34 -0
- package/lib/esm/shared/graph/category-styles.js.map +1 -0
- package/lib/esm/shared/graph/constants.js +354 -0
- package/lib/esm/shared/graph/constants.js.map +1 -0
- package/lib/esm/shared/graph/decorators.js +194 -0
- package/lib/esm/shared/graph/decorators.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphDecoratedWorkflowCompiler.js +401 -0
- package/lib/esm/shared/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphEdgeInstance.js +2 -0
- package/lib/esm/shared/graph/document/GraphEdgeInstance.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphEndpoint.js +33 -0
- package/lib/esm/shared/graph/document/GraphEndpoint.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphErrorBoundaryConfiguration.js +2 -0
- package/lib/esm/shared/graph/document/GraphErrorBoundaryConfiguration.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphFlowBuilder.js +766 -0
- package/lib/esm/shared/graph/document/GraphFlowBuilder.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphJsonValue.js +94 -0
- package/lib/esm/shared/graph/document/GraphJsonValue.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphLoopConfiguration.js +2 -0
- package/lib/esm/shared/graph/document/GraphLoopConfiguration.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphNodeBinding.js +30 -0
- package/lib/esm/shared/graph/document/GraphNodeBinding.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphNodeDerivation.js +143 -0
- package/lib/esm/shared/graph/document/GraphNodeDerivation.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphNodeInstance.js +2 -0
- package/lib/esm/shared/graph/document/GraphNodeInstance.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphValueTemplate.js +88 -0
- package/lib/esm/shared/graph/document/GraphValueTemplate.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocument.js +23 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocument.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentBuilder.js +433 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentReader.js +103 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentReader.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentSerializer.js +75 -0
- package/lib/esm/shared/graph/document/GraphWorkflowDocumentSerializer.js.map +1 -0
- package/lib/esm/shared/graph/document/GraphWorkflowUiState.js +2 -0
- package/lib/esm/shared/graph/document/GraphWorkflowUiState.js.map +1 -0
- package/lib/esm/shared/graph/document/index.js +20 -0
- package/lib/esm/shared/graph/document/index.js.map +1 -0
- package/lib/esm/shared/graph/index.js +22 -0
- package/lib/esm/shared/graph/index.js.map +1 -0
- package/lib/esm/shared/graph/overrides/Metadata.js +20 -0
- package/lib/esm/shared/graph/overrides/Metadata.js.map +1 -0
- package/lib/esm/shared/graph/overrides/Rendering.js +2 -0
- package/lib/esm/shared/graph/overrides/Rendering.js.map +1 -0
- package/lib/esm/shared/graph/overrides/index.js +7 -0
- package/lib/esm/shared/graph/overrides/index.js.map +1 -0
- package/lib/esm/shared/graph/overrides/overrides.js +17 -0
- package/lib/esm/shared/graph/overrides/overrides.js.map +1 -0
- package/lib/esm/shared/graph/reader.js +376 -0
- package/lib/esm/shared/graph/reader.js.map +1 -0
- package/lib/esm/shared/graph/registry.js +59 -0
- package/lib/esm/shared/graph/registry.js.map +1 -0
- package/lib/esm/shared/graph/snapshot.js +2 -0
- package/lib/esm/shared/graph/snapshot.js.map +1 -0
- package/lib/esm/shared/graph/types.js +2 -0
- package/lib/esm/shared/graph/types.js.map +1 -0
- package/lib/esm/shared/index.js +13 -0
- package/lib/esm/shared/index.js.map +1 -0
- package/lib/esm/shared/ui/GraphNodeView.js +107 -0
- package/lib/esm/shared/ui/GraphNodeView.js.map +1 -0
- package/lib/esm/shared/ui/GraphRunView.js +90 -0
- package/lib/esm/shared/ui/GraphRunView.js.map +1 -0
- package/lib/esm/shared/ui/GraphWorkflowView.js +72 -0
- package/lib/esm/shared/ui/GraphWorkflowView.js.map +1 -0
- package/lib/esm/shared/ui/constants.js +69 -0
- package/lib/esm/shared/ui/constants.js.map +1 -0
- package/lib/esm/shared/ui/index.js +15 -0
- package/lib/esm/shared/ui/index.js.map +1 -0
- package/lib/esm/shared/ui/types.js +2 -0
- package/lib/esm/shared/ui/types.js.map +1 -0
- package/lib/types/engine/auth/GraphAuth.d.cts +84 -0
- package/lib/types/engine/auth/GraphAuth.d.mts +84 -0
- package/lib/types/engine/auth/GraphAuthValidator.d.cts +57 -0
- package/lib/types/engine/auth/GraphAuthValidator.d.mts +57 -0
- package/lib/types/engine/auth/GraphNamespace.d.cts +38 -0
- package/lib/types/engine/auth/GraphNamespace.d.mts +38 -0
- package/lib/types/engine/auth/index.d.cts +7 -0
- package/lib/types/engine/auth/index.d.mts +7 -0
- package/lib/types/engine/catalog/GraphBuiltInRegistrations.d.cts +26 -0
- package/lib/types/engine/catalog/GraphBuiltInRegistrations.d.mts +26 -0
- package/lib/types/engine/catalog/GraphCatalogueErrors.d.cts +13 -0
- package/lib/types/engine/catalog/GraphCatalogueErrors.d.mts +13 -0
- package/lib/types/engine/catalog/GraphNodeCatalogue.d.cts +86 -0
- package/lib/types/engine/catalog/GraphNodeCatalogue.d.mts +86 -0
- package/lib/types/engine/catalog/GraphNodeManifestResolver.d.cts +57 -0
- package/lib/types/engine/catalog/GraphNodeManifestResolver.d.mts +57 -0
- package/lib/types/engine/catalog/GraphNodeMethodRegistry.d.cts +22 -0
- package/lib/types/engine/catalog/GraphNodeMethodRegistry.d.mts +22 -0
- package/lib/types/engine/catalog/GraphNodeRegistration.d.cts +68 -0
- package/lib/types/engine/catalog/GraphNodeRegistration.d.mts +68 -0
- package/lib/types/engine/catalog/index.d.cts +9 -0
- package/lib/types/engine/catalog/index.d.mts +9 -0
- package/lib/types/engine/constants.d.cts +79 -0
- package/lib/types/engine/constants.d.mts +79 -0
- package/lib/types/engine/decorators.d.cts +6 -0
- package/lib/types/engine/decorators.d.mts +6 -0
- package/lib/types/engine/errors/GraphBreakSignal.d.cts +28 -0
- package/lib/types/engine/errors/GraphBreakSignal.d.mts +28 -0
- package/lib/types/engine/errors/GraphCycleError.d.cts +12 -0
- package/lib/types/engine/errors/GraphCycleError.d.mts +12 -0
- package/lib/types/engine/errors/GraphExecutionError.d.cts +19 -0
- package/lib/types/engine/errors/GraphExecutionError.d.mts +19 -0
- package/lib/types/engine/errors/GraphInputError.d.cts +12 -0
- package/lib/types/engine/errors/GraphInputError.d.mts +12 -0
- package/lib/types/engine/errors/GraphLoopLimitError.d.cts +12 -0
- package/lib/types/engine/errors/GraphLoopLimitError.d.mts +12 -0
- package/lib/types/engine/errors/GraphPinningError.d.cts +12 -0
- package/lib/types/engine/errors/GraphPinningError.d.mts +12 -0
- package/lib/types/engine/errors/GraphPortError.d.cts +12 -0
- package/lib/types/engine/errors/GraphPortError.d.mts +12 -0
- package/lib/types/engine/errors/GraphRunCancelledError.d.cts +9 -0
- package/lib/types/engine/errors/GraphRunCancelledError.d.mts +9 -0
- package/lib/types/engine/errors/GraphStoreError.d.cts +12 -0
- package/lib/types/engine/errors/GraphStoreError.d.mts +12 -0
- package/lib/types/engine/errors/GraphTopologyError.d.cts +12 -0
- package/lib/types/engine/errors/GraphTopologyError.d.mts +12 -0
- package/lib/types/engine/errors/GraphWorkflowErrors.d.cts +14 -0
- package/lib/types/engine/errors/GraphWorkflowErrors.d.mts +14 -0
- package/lib/types/engine/errors/index.d.cts +15 -0
- package/lib/types/engine/errors/index.d.mts +15 -0
- package/lib/types/engine/events/GraphExecutionEventEmitter.d.cts +26 -0
- package/lib/types/engine/events/GraphExecutionEventEmitter.d.mts +26 -0
- package/lib/types/engine/events/GraphExecutionEventFactory.d.cts +29 -0
- package/lib/types/engine/events/GraphExecutionEventFactory.d.mts +29 -0
- package/lib/types/engine/events/GraphExecutionObserver.d.cts +17 -0
- package/lib/types/engine/events/GraphExecutionObserver.d.mts +17 -0
- package/lib/types/engine/events/index.d.cts +8 -0
- package/lib/types/engine/events/index.d.mts +8 -0
- package/lib/types/engine/execution/CodeSandboxEvaluator.d.cts +84 -0
- package/lib/types/engine/execution/CodeSandboxEvaluator.d.mts +84 -0
- package/lib/types/engine/execution/GraphExecutionContext.d.cts +94 -0
- package/lib/types/engine/execution/GraphExecutionContext.d.mts +94 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +352 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +352 -0
- package/lib/types/engine/execution/GraphExecutionFrame.d.cts +50 -0
- package/lib/types/engine/execution/GraphExecutionFrame.d.mts +50 -0
- package/lib/types/engine/execution/GraphExecutionResult.d.cts +13 -0
- package/lib/types/engine/execution/GraphExecutionResult.d.mts +13 -0
- package/lib/types/engine/execution/GraphNodeExecutor.d.cts +31 -0
- package/lib/types/engine/execution/GraphNodeExecutor.d.mts +31 -0
- package/lib/types/engine/execution/IsolatedVmCodeSandboxEvaluator.d.cts +160 -0
- package/lib/types/engine/execution/IsolatedVmCodeSandboxEvaluator.d.mts +160 -0
- package/lib/types/engine/execution/index.d.cts +12 -0
- package/lib/types/engine/execution/index.d.mts +12 -0
- package/lib/types/engine/index.d.cts +61 -0
- package/lib/types/engine/index.d.mts +61 -0
- package/lib/types/engine/loops/ConditionEvaluator.d.cts +87 -0
- package/lib/types/engine/loops/ConditionEvaluator.d.mts +87 -0
- package/lib/types/engine/loops/ConditionExpressionEvaluator.d.cts +36 -0
- package/lib/types/engine/loops/ConditionExpressionEvaluator.d.mts +36 -0
- package/lib/types/engine/loops/GraphConditionEvaluator.d.cts +62 -0
- package/lib/types/engine/loops/GraphConditionEvaluator.d.mts +62 -0
- package/lib/types/engine/loops/GraphLoopExecutionContext.d.cts +15 -0
- package/lib/types/engine/loops/GraphLoopExecutionContext.d.mts +15 -0
- package/lib/types/engine/loops/index.d.cts +9 -0
- package/lib/types/engine/loops/index.d.mts +9 -0
- package/lib/types/engine/pinning/GraphPinningDependencyResolver.d.cts +21 -0
- package/lib/types/engine/pinning/GraphPinningDependencyResolver.d.mts +21 -0
- package/lib/types/engine/pinning/GraphPinningMetadata.d.cts +14 -0
- package/lib/types/engine/pinning/GraphPinningMetadata.d.mts +14 -0
- package/lib/types/engine/pinning/GraphPinningPolicy.d.cts +20 -0
- package/lib/types/engine/pinning/GraphPinningPolicy.d.mts +20 -0
- package/lib/types/engine/pinning/GraphPinningService.d.cts +70 -0
- package/lib/types/engine/pinning/GraphPinningService.d.mts +70 -0
- package/lib/types/engine/pinning/index.d.cts +9 -0
- package/lib/types/engine/pinning/index.d.mts +9 -0
- package/lib/types/engine/planning/GraphExecutionPlan.d.cts +25 -0
- package/lib/types/engine/planning/GraphExecutionPlan.d.mts +25 -0
- package/lib/types/engine/planning/GraphExecutionPlanEdge.d.cts +26 -0
- package/lib/types/engine/planning/GraphExecutionPlanEdge.d.mts +26 -0
- package/lib/types/engine/planning/GraphExecutionPlanLayer.d.cts +13 -0
- package/lib/types/engine/planning/GraphExecutionPlanLayer.d.mts +13 -0
- package/lib/types/engine/planning/GraphExecutionPlanNode.d.cts +28 -0
- package/lib/types/engine/planning/GraphExecutionPlanNode.d.mts +28 -0
- package/lib/types/engine/planning/GraphExecutionPlanner.d.cts +61 -0
- package/lib/types/engine/planning/GraphExecutionPlanner.d.mts +61 -0
- package/lib/types/engine/planning/GraphTopology.d.cts +23 -0
- package/lib/types/engine/planning/GraphTopology.d.mts +23 -0
- package/lib/types/engine/planning/index.d.cts +11 -0
- package/lib/types/engine/planning/index.d.mts +11 -0
- package/lib/types/engine/registry/GraphNodeExecutorRegistry.d.cts +44 -0
- package/lib/types/engine/registry/GraphNodeExecutorRegistry.d.mts +44 -0
- package/lib/types/engine/registry/GraphNodeExecutorResolver.d.cts +26 -0
- package/lib/types/engine/registry/GraphNodeExecutorResolver.d.mts +26 -0
- package/lib/types/engine/registry/index.d.cts +7 -0
- package/lib/types/engine/registry/index.d.mts +7 -0
- package/lib/types/engine/runs/GraphRunConverters.d.cts +6 -0
- package/lib/types/engine/runs/GraphRunConverters.d.mts +6 -0
- package/lib/types/engine/runs/GraphRunEventPublisher.d.cts +26 -0
- package/lib/types/engine/runs/GraphRunEventPublisher.d.mts +26 -0
- package/lib/types/engine/runs/GraphRunExecutor.d.cts +75 -0
- package/lib/types/engine/runs/GraphRunExecutor.d.mts +75 -0
- package/lib/types/engine/runs/GraphRunFingerprint.d.cts +8 -0
- package/lib/types/engine/runs/GraphRunFingerprint.d.mts +8 -0
- package/lib/types/engine/runs/GraphRunService.d.cts +141 -0
- package/lib/types/engine/runs/GraphRunService.d.mts +141 -0
- package/lib/types/engine/runs/InMemoryGraphRunEventStore.d.cts +28 -0
- package/lib/types/engine/runs/InMemoryGraphRunEventStore.d.mts +28 -0
- package/lib/types/engine/runs/InMemoryGraphRunStore.d.cts +41 -0
- package/lib/types/engine/runs/InMemoryGraphRunStore.d.mts +41 -0
- package/lib/types/engine/runs/index.d.cts +11 -0
- package/lib/types/engine/runs/index.d.mts +11 -0
- package/lib/types/engine/runs/ownership.d.cts +110 -0
- package/lib/types/engine/runs/ownership.d.mts +110 -0
- package/lib/types/engine/runs/types.d.cts +94 -0
- package/lib/types/engine/runs/types.d.mts +94 -0
- package/lib/types/engine/services/GraphEnvironment.d.cts +40 -0
- package/lib/types/engine/services/GraphEnvironment.d.mts +40 -0
- package/lib/types/engine/services/GraphRunModelService.d.cts +50 -0
- package/lib/types/engine/services/GraphRunModelService.d.mts +50 -0
- package/lib/types/engine/services/GraphWorkflowService.d.cts +152 -0
- package/lib/types/engine/services/GraphWorkflowService.d.mts +152 -0
- package/lib/types/engine/snapshots/GraphExecutionSnapshotMapper.d.cts +10 -0
- package/lib/types/engine/snapshots/GraphExecutionSnapshotMapper.d.mts +10 -0
- package/lib/types/engine/snapshots/index.d.cts +6 -0
- package/lib/types/engine/snapshots/index.d.mts +6 -0
- package/lib/types/engine/store/GraphCachedValue.d.cts +20 -0
- package/lib/types/engine/store/GraphCachedValue.d.mts +20 -0
- package/lib/types/engine/store/GraphValueKey.d.cts +18 -0
- package/lib/types/engine/store/GraphValueKey.d.mts +18 -0
- package/lib/types/engine/store/GraphValueModel.d.cts +33 -0
- package/lib/types/engine/store/GraphValueModel.d.mts +33 -0
- package/lib/types/engine/store/GraphValueRepository.d.cts +89 -0
- package/lib/types/engine/store/GraphValueRepository.d.mts +89 -0
- package/lib/types/engine/store/index.d.cts +10 -0
- package/lib/types/engine/store/index.d.mts +10 -0
- package/lib/types/engine/types.d.cts +238 -0
- package/lib/types/engine/types.d.mts +238 -0
- package/lib/types/engine/validation/GraphConnectionPolicyValidator.d.cts +32 -0
- package/lib/types/engine/validation/GraphConnectionPolicyValidator.d.mts +32 -0
- package/lib/types/engine/validation/GraphCredentialReferenceValidator.d.cts +62 -0
- package/lib/types/engine/validation/GraphCredentialReferenceValidator.d.mts +62 -0
- package/lib/types/engine/validation/GraphEdgeInstanceValidator.d.cts +32 -0
- package/lib/types/engine/validation/GraphEdgeInstanceValidator.d.mts +32 -0
- package/lib/types/engine/validation/GraphLooseNodeValidation.d.cts +21 -0
- package/lib/types/engine/validation/GraphLooseNodeValidation.d.mts +21 -0
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.cts +38 -0
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.mts +38 -0
- package/lib/types/engine/validation/GraphParameterValidator.d.cts +120 -0
- package/lib/types/engine/validation/GraphParameterValidator.d.mts +120 -0
- package/lib/types/engine/validation/GraphPortSchemaResolver.d.cts +39 -0
- package/lib/types/engine/validation/GraphPortSchemaResolver.d.mts +39 -0
- package/lib/types/engine/validation/GraphResolvedWorkflow.d.cts +66 -0
- package/lib/types/engine/validation/GraphResolvedWorkflow.d.mts +66 -0
- package/lib/types/engine/validation/GraphValidationErrors.d.cts +34 -0
- package/lib/types/engine/validation/GraphValidationErrors.d.mts +34 -0
- package/lib/types/engine/validation/GraphValidationIssue.d.cts +39 -0
- package/lib/types/engine/validation/GraphValidationIssue.d.mts +39 -0
- package/lib/types/engine/validation/GraphValueValidator.d.cts +27 -0
- package/lib/types/engine/validation/GraphValueValidator.d.mts +27 -0
- package/lib/types/engine/validation/GraphWorkflowBoundaryValidation.d.cts +29 -0
- package/lib/types/engine/validation/GraphWorkflowBoundaryValidation.d.mts +29 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentLimits.d.cts +33 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentLimits.d.mts +33 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.cts +165 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.mts +165 -0
- package/lib/types/engine/validation/index.d.cts +21 -0
- package/lib/types/engine/validation/index.d.mts +21 -0
- package/lib/types/index.d.cts +13 -0
- package/lib/types/index.d.mts +13 -0
- package/lib/types/log/GraphRunLogger.d.cts +96 -0
- package/lib/types/log/GraphRunLogger.d.mts +96 -0
- package/lib/types/log/LogParameters.d.cts +7 -0
- package/lib/types/log/LogParameters.d.mts +7 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +139 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +139 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +76 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +76 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +118 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +118 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +173 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +173 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +121 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +121 -0
- package/lib/types/nest/graph/index.d.cts +12 -0
- package/lib/types/nest/graph/index.d.mts +12 -0
- package/lib/types/nest/graph/servingDates.d.cts +35 -0
- package/lib/types/nest/graph/servingDates.d.mts +35 -0
- package/lib/types/nest/graph/servingErrors.d.cts +42 -0
- package/lib/types/nest/graph/servingErrors.d.mts +42 -0
- package/lib/types/nest/index.d.cts +10 -0
- package/lib/types/nest/index.d.mts +10 -0
- package/lib/types/node/agents/agent/node.d.cts +51 -0
- package/lib/types/node/agents/agent/node.d.mts +51 -0
- package/lib/types/node/base.d.cts +131 -0
- package/lib/types/node/base.d.mts +131 -0
- package/lib/types/node/boundary/input/node.d.cts +20 -0
- package/lib/types/node/boundary/input/node.d.mts +20 -0
- package/lib/types/node/boundary/output/node.d.cts +20 -0
- package/lib/types/node/boundary/output/node.d.mts +20 -0
- package/lib/types/node/flow/break/node.d.cts +22 -0
- package/lib/types/node/flow/break/node.d.mts +22 -0
- package/lib/types/node/flow/error-boundary/node.d.cts +40 -0
- package/lib/types/node/flow/error-boundary/node.d.mts +40 -0
- package/lib/types/node/flow/human-approval/node.d.cts +32 -0
- package/lib/types/node/flow/human-approval/node.d.mts +32 -0
- package/lib/types/node/flow/if/node.d.cts +46 -0
- package/lib/types/node/flow/if/node.d.mts +46 -0
- package/lib/types/node/flow/loop/foreach/node.d.cts +43 -0
- package/lib/types/node/flow/loop/foreach/node.d.mts +43 -0
- package/lib/types/node/flow/loop/loop-metadata.d.cts +61 -0
- package/lib/types/node/flow/loop/loop-metadata.d.mts +61 -0
- package/lib/types/node/flow/loop/until/node.d.cts +41 -0
- package/lib/types/node/flow/loop/until/node.d.mts +41 -0
- package/lib/types/node/flow/loop/while/node.d.cts +40 -0
- package/lib/types/node/flow/loop/while/node.d.mts +40 -0
- package/lib/types/node/flow/switch/node.d.cts +47 -0
- package/lib/types/node/flow/switch/node.d.mts +47 -0
- package/lib/types/node/index.d.cts +90 -0
- package/lib/types/node/index.d.mts +90 -0
- package/lib/types/node/manifests.d.cts +23 -0
- package/lib/types/node/manifests.d.mts +23 -0
- package/lib/types/node/triggers/chat/node.d.cts +29 -0
- package/lib/types/node/triggers/chat/node.d.mts +29 -0
- package/lib/types/node/triggers/event/node.d.cts +22 -0
- package/lib/types/node/triggers/event/node.d.mts +22 -0
- package/lib/types/node/triggers/form/node.d.cts +24 -0
- package/lib/types/node/triggers/form/node.d.mts +24 -0
- package/lib/types/node/triggers/manual/node.d.cts +23 -0
- package/lib/types/node/triggers/manual/node.d.mts +23 -0
- package/lib/types/node/triggers/schedule/node.d.cts +24 -0
- package/lib/types/node/triggers/schedule/node.d.mts +24 -0
- package/lib/types/node/triggers/webhook/node.d.cts +24 -0
- package/lib/types/node/triggers/webhook/node.d.mts +24 -0
- package/lib/types/node/utility/code/node.d.cts +101 -0
- package/lib/types/node/utility/code/node.d.mts +101 -0
- package/lib/types/node/utility/delay/node.d.cts +28 -0
- package/lib/types/node/utility/delay/node.d.mts +28 -0
- package/lib/types/node/utility/log/node.d.cts +32 -0
- package/lib/types/node/utility/log/node.d.mts +32 -0
- package/lib/types/node/utility/map/node.d.cts +24 -0
- package/lib/types/node/utility/map/node.d.mts +24 -0
- package/lib/types/node/utility/utility-log/node.d.cts +32 -0
- package/lib/types/node/utility/utility-log/node.d.mts +32 -0
- package/lib/types/ram/GraphRunEventModel.d.cts +34 -0
- package/lib/types/ram/GraphRunEventModel.d.mts +34 -0
- package/lib/types/ram/GraphRunEventStore.d.cts +64 -0
- package/lib/types/ram/GraphRunEventStore.d.mts +64 -0
- package/lib/types/ram/GraphRunStore.d.cts +51 -0
- package/lib/types/ram/GraphRunStore.d.mts +51 -0
- package/lib/types/ram/index.d.cts +34 -0
- package/lib/types/ram/index.d.mts +34 -0
- package/lib/types/shared/graph/GraphExecutionStateMapper.d.cts +66 -0
- package/lib/types/shared/graph/GraphExecutionStateMapper.d.mts +66 -0
- package/lib/types/shared/graph/GraphResolution.d.cts +59 -0
- package/lib/types/shared/graph/GraphResolution.d.mts +59 -0
- package/lib/types/shared/graph/GraphRunModel.d.cts +32 -0
- package/lib/types/shared/graph/GraphRunModel.d.mts +32 -0
- package/lib/types/shared/graph/GraphWorkflowModel.d.cts +29 -0
- package/lib/types/shared/graph/GraphWorkflowModel.d.mts +29 -0
- package/lib/types/shared/graph/auth.d.cts +40 -0
- package/lib/types/shared/graph/auth.d.mts +40 -0
- package/lib/types/shared/graph/catalog/GraphConnectionPolicy.d.cts +16 -0
- package/lib/types/shared/graph/catalog/GraphConnectionPolicy.d.mts +16 -0
- package/lib/types/shared/graph/catalog/GraphCredentialReference.d.cts +13 -0
- package/lib/types/shared/graph/catalog/GraphCredentialReference.d.mts +13 -0
- package/lib/types/shared/graph/catalog/GraphCredentialRequirement.d.cts +14 -0
- package/lib/types/shared/graph/catalog/GraphCredentialRequirement.d.mts +14 -0
- package/lib/types/shared/graph/catalog/GraphDynamicPortRule.d.cts +45 -0
- package/lib/types/shared/graph/catalog/GraphDynamicPortRule.d.mts +45 -0
- package/lib/types/shared/graph/catalog/GraphIconReference.d.cts +19 -0
- package/lib/types/shared/graph/catalog/GraphIconReference.d.mts +19 -0
- package/lib/types/shared/graph/catalog/GraphManifestCompiler.d.cts +23 -0
- package/lib/types/shared/graph/catalog/GraphManifestCompiler.d.mts +23 -0
- package/lib/types/shared/graph/catalog/GraphNodeCapability.d.cts +18 -0
- package/lib/types/shared/graph/catalog/GraphNodeCapability.d.mts +18 -0
- package/lib/types/shared/graph/catalog/GraphNodeDisplayManifest.d.cts +40 -0
- package/lib/types/shared/graph/catalog/GraphNodeDisplayManifest.d.mts +40 -0
- package/lib/types/shared/graph/catalog/GraphNodeManifest.d.cts +45 -0
- package/lib/types/shared/graph/catalog/GraphNodeManifest.d.mts +45 -0
- package/lib/types/shared/graph/catalog/GraphNodeManifestSerialization.d.cts +22 -0
- package/lib/types/shared/graph/catalog/GraphNodeManifestSerialization.d.mts +22 -0
- package/lib/types/shared/graph/catalog/GraphNodeMethodManifest.d.cts +27 -0
- package/lib/types/shared/graph/catalog/GraphNodeMethodManifest.d.mts +27 -0
- package/lib/types/shared/graph/catalog/GraphNodePolicyManifest.d.cts +46 -0
- package/lib/types/shared/graph/catalog/GraphNodePolicyManifest.d.mts +46 -0
- package/lib/types/shared/graph/catalog/GraphParameterBase.d.cts +17 -0
- package/lib/types/shared/graph/catalog/GraphParameterBase.d.mts +17 -0
- package/lib/types/shared/graph/catalog/GraphParameterDefinition.d.cts +119 -0
- package/lib/types/shared/graph/catalog/GraphParameterDefinition.d.mts +119 -0
- package/lib/types/shared/graph/catalog/GraphParameterOption.d.cts +19 -0
- package/lib/types/shared/graph/catalog/GraphParameterOption.d.mts +19 -0
- package/lib/types/shared/graph/catalog/GraphParameterValidation.d.cts +46 -0
- package/lib/types/shared/graph/catalog/GraphParameterValidation.d.mts +46 -0
- package/lib/types/shared/graph/catalog/GraphPortManifest.d.cts +42 -0
- package/lib/types/shared/graph/catalog/GraphPortManifest.d.mts +42 -0
- package/lib/types/shared/graph/catalog/GraphPortManifestElement.d.cts +14 -0
- package/lib/types/shared/graph/catalog/GraphPortManifestElement.d.mts +14 -0
- package/lib/types/shared/graph/catalog/GraphResourceLocatorMode.d.cts +27 -0
- package/lib/types/shared/graph/catalog/GraphResourceLocatorMode.d.mts +27 -0
- package/lib/types/shared/graph/catalog/GraphValueSchema.d.cts +85 -0
- package/lib/types/shared/graph/catalog/GraphValueSchema.d.mts +85 -0
- package/lib/types/shared/graph/catalog/GraphValueSchemaDerivation.d.cts +24 -0
- package/lib/types/shared/graph/catalog/GraphValueSchemaDerivation.d.mts +24 -0
- package/lib/types/shared/graph/catalog/GraphVisibilityExpression.d.cts +35 -0
- package/lib/types/shared/graph/catalog/GraphVisibilityExpression.d.mts +35 -0
- package/lib/types/shared/graph/catalog/index.d.cts +25 -0
- package/lib/types/shared/graph/catalog/index.d.mts +25 -0
- package/lib/types/shared/graph/category-styles.d.cts +8 -0
- package/lib/types/shared/graph/category-styles.d.mts +8 -0
- package/lib/types/shared/graph/constants.d.cts +640 -0
- package/lib/types/shared/graph/constants.d.mts +640 -0
- package/lib/types/shared/graph/decorators.d.cts +118 -0
- package/lib/types/shared/graph/decorators.d.mts +118 -0
- package/lib/types/shared/graph/document/GraphDecoratedWorkflowCompiler.d.cts +56 -0
- package/lib/types/shared/graph/document/GraphDecoratedWorkflowCompiler.d.mts +56 -0
- package/lib/types/shared/graph/document/GraphEdgeInstance.d.cts +15 -0
- package/lib/types/shared/graph/document/GraphEdgeInstance.d.mts +15 -0
- package/lib/types/shared/graph/document/GraphEndpoint.d.cts +34 -0
- package/lib/types/shared/graph/document/GraphEndpoint.d.mts +34 -0
- package/lib/types/shared/graph/document/GraphErrorBoundaryConfiguration.d.cts +14 -0
- package/lib/types/shared/graph/document/GraphErrorBoundaryConfiguration.d.mts +14 -0
- package/lib/types/shared/graph/document/GraphFlowBuilder.d.cts +277 -0
- package/lib/types/shared/graph/document/GraphFlowBuilder.d.mts +277 -0
- package/lib/types/shared/graph/document/GraphJsonValue.d.cts +41 -0
- package/lib/types/shared/graph/document/GraphJsonValue.d.mts +41 -0
- package/lib/types/shared/graph/document/GraphLoopConfiguration.d.cts +30 -0
- package/lib/types/shared/graph/document/GraphLoopConfiguration.d.mts +30 -0
- package/lib/types/shared/graph/document/GraphNodeBinding.d.cts +47 -0
- package/lib/types/shared/graph/document/GraphNodeBinding.d.mts +47 -0
- package/lib/types/shared/graph/document/GraphNodeDerivation.d.cts +59 -0
- package/lib/types/shared/graph/document/GraphNodeDerivation.d.mts +59 -0
- package/lib/types/shared/graph/document/GraphNodeInstance.d.cts +52 -0
- package/lib/types/shared/graph/document/GraphNodeInstance.d.mts +52 -0
- package/lib/types/shared/graph/document/GraphValueTemplate.d.cts +75 -0
- package/lib/types/shared/graph/document/GraphValueTemplate.d.mts +75 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocument.d.cts +53 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocument.d.mts +53 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentBuilder.d.cts +146 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentBuilder.d.mts +146 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentReader.d.cts +62 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentReader.d.mts +62 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentSerializer.d.cts +17 -0
- package/lib/types/shared/graph/document/GraphWorkflowDocumentSerializer.d.mts +17 -0
- package/lib/types/shared/graph/document/GraphWorkflowUiState.d.cts +49 -0
- package/lib/types/shared/graph/document/GraphWorkflowUiState.d.mts +49 -0
- package/lib/types/shared/graph/document/index.d.cts +19 -0
- package/lib/types/shared/graph/document/index.d.mts +19 -0
- package/lib/types/shared/graph/index.d.cts +21 -0
- package/lib/types/shared/graph/index.d.mts +21 -0
- package/lib/types/shared/graph/overrides/Metadata.d.cts +43 -0
- package/lib/types/shared/graph/overrides/Metadata.d.mts +43 -0
- package/lib/types/shared/graph/overrides/Rendering.d.cts +8 -0
- package/lib/types/shared/graph/overrides/Rendering.d.mts +8 -0
- package/lib/types/shared/graph/overrides/index.d.cts +6 -0
- package/lib/types/shared/graph/overrides/index.d.mts +6 -0
- package/lib/types/shared/graph/overrides/overrides.d.cts +1 -0
- package/lib/types/shared/graph/overrides/overrides.d.mts +1 -0
- package/lib/types/shared/graph/reader.d.cts +75 -0
- package/lib/types/shared/graph/reader.d.mts +75 -0
- package/lib/types/shared/graph/registry.d.cts +40 -0
- package/lib/types/shared/graph/registry.d.mts +40 -0
- package/lib/types/shared/graph/snapshot.d.cts +36 -0
- package/lib/types/shared/graph/snapshot.d.mts +36 -0
- package/lib/types/shared/graph/types.d.cts +304 -0
- package/lib/types/shared/graph/types.d.mts +304 -0
- package/lib/types/shared/index.d.cts +12 -0
- package/lib/types/shared/index.d.mts +12 -0
- package/lib/types/shared/ui/GraphNodeView.d.cts +48 -0
- package/lib/types/shared/ui/GraphNodeView.d.mts +48 -0
- package/lib/types/shared/ui/GraphRunView.d.cts +88 -0
- package/lib/types/shared/ui/GraphRunView.d.mts +88 -0
- package/lib/types/shared/ui/GraphWorkflowView.d.cts +18 -0
- package/lib/types/shared/ui/GraphWorkflowView.d.mts +18 -0
- package/lib/types/shared/ui/constants.d.cts +55 -0
- package/lib/types/shared/ui/constants.d.mts +55 -0
- package/lib/types/shared/ui/index.d.cts +14 -0
- package/lib/types/shared/ui/index.d.mts +14 -0
- package/lib/types/shared/ui/types.d.cts +200 -0
- package/lib/types/shared/ui/types.d.mts +200 -0
- package/package.json +158 -4
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphFlowBuilder = void 0;
|
|
4
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
5
|
+
const constants_js_1 = require("./../constants.cjs");
|
|
6
|
+
const reader_js_1 = require("./../reader.cjs");
|
|
7
|
+
const GraphWorkflowDocumentBuilder_js_1 = require("./GraphWorkflowDocumentBuilder.cjs");
|
|
8
|
+
const GraphNodeDerivation_js_1 = require("./GraphNodeDerivation.cjs");
|
|
9
|
+
const FLOW_PORTS = {
|
|
10
|
+
"core.flow.if": {
|
|
11
|
+
inputs: ["value", "condition", "else"],
|
|
12
|
+
outputs: ["then", "else"],
|
|
13
|
+
},
|
|
14
|
+
"core.flow.switch": {
|
|
15
|
+
inputs: ["value"],
|
|
16
|
+
outputs: ["default"],
|
|
17
|
+
},
|
|
18
|
+
"core.loop.foreach": {
|
|
19
|
+
inputs: [
|
|
20
|
+
"items",
|
|
21
|
+
"slice",
|
|
22
|
+
"maxIterations",
|
|
23
|
+
"condition",
|
|
24
|
+
"itemPort",
|
|
25
|
+
"resultPort",
|
|
26
|
+
"statePort",
|
|
27
|
+
],
|
|
28
|
+
outputs: ["item", "completed"],
|
|
29
|
+
},
|
|
30
|
+
"core.loop.while": {
|
|
31
|
+
inputs: [
|
|
32
|
+
"state",
|
|
33
|
+
"maxIterations",
|
|
34
|
+
"condition",
|
|
35
|
+
"statePort",
|
|
36
|
+
"inputPort",
|
|
37
|
+
"outputPort",
|
|
38
|
+
],
|
|
39
|
+
outputs: ["state"],
|
|
40
|
+
},
|
|
41
|
+
"core.loop.until": {
|
|
42
|
+
inputs: [
|
|
43
|
+
"state",
|
|
44
|
+
"maxIterations",
|
|
45
|
+
"condition",
|
|
46
|
+
"statePort",
|
|
47
|
+
"inputPort",
|
|
48
|
+
"outputPort",
|
|
49
|
+
],
|
|
50
|
+
outputs: ["state"],
|
|
51
|
+
},
|
|
52
|
+
"core.flow.errorBoundary": {
|
|
53
|
+
inputs: ["value"],
|
|
54
|
+
outputs: ["result", "error"],
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Mastra-style chainable facade over {@link GraphWorkflowDocumentBuilder}.
|
|
59
|
+
*
|
|
60
|
+
* A cursor tracks the node output ports the next call should connect from. Calls
|
|
61
|
+
* add nodes through the builder's derived `addNode` (item 1) and edges through
|
|
62
|
+
* `addEdge`, then {@link build} validates and freezes the document exactly like
|
|
63
|
+
* the wrapped builder.
|
|
64
|
+
*
|
|
65
|
+
* Implicit port selection always resolves to the first input / first output port of
|
|
66
|
+
* the node; when a node has several ports of the needed direction the caller must
|
|
67
|
+
* name one explicitly — the facade never guesses.
|
|
68
|
+
*/
|
|
69
|
+
class GraphFlowBuilder {
|
|
70
|
+
constructor(id, name) {
|
|
71
|
+
this.usedIds = new Set();
|
|
72
|
+
this.kinds = new Map();
|
|
73
|
+
this.portsById = new Map();
|
|
74
|
+
this.states = new Map();
|
|
75
|
+
this.inputPorts = [];
|
|
76
|
+
this.edgeCount = 0;
|
|
77
|
+
this.cursor = [];
|
|
78
|
+
this.branchStack = [];
|
|
79
|
+
this.switchStack = [];
|
|
80
|
+
this.builder = new GraphWorkflowDocumentBuilder_js_1.GraphWorkflowDocumentBuilder(id, name);
|
|
81
|
+
}
|
|
82
|
+
/** Declares workflow input ports. */
|
|
83
|
+
inputs(ports) {
|
|
84
|
+
for (const port of ports) {
|
|
85
|
+
const instance = flowPortOf(port);
|
|
86
|
+
this.builder.addInput(instance);
|
|
87
|
+
this.inputPorts.push(instance.id);
|
|
88
|
+
}
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
/** Declares workflow output ports. */
|
|
92
|
+
outputs(ports) {
|
|
93
|
+
for (const port of ports)
|
|
94
|
+
this.builder.addOutput(flowPortOf(port));
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
/** Declares workflow input and output ports together. */
|
|
98
|
+
boundary(options) {
|
|
99
|
+
if (options.inputs)
|
|
100
|
+
this.inputs(options.inputs);
|
|
101
|
+
if (options.outputs)
|
|
102
|
+
this.outputs(options.outputs);
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Explicitly selects the output port the current cursor connects from.
|
|
107
|
+
*
|
|
108
|
+
* The facade otherwise resolves the first output port of the cursor node and
|
|
109
|
+
* refuses to guess when a node has several. `from(port)` names the port
|
|
110
|
+
* directly; it errors when the cursor is empty or spans several nodes
|
|
111
|
+
* (ambiguous source) or when the cursor node does not declare `port` as an
|
|
112
|
+
* output.
|
|
113
|
+
*/
|
|
114
|
+
from(port) {
|
|
115
|
+
if (!this.cursor.length) {
|
|
116
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.from requires a cursor; call .start(...) or .then(...) first");
|
|
117
|
+
}
|
|
118
|
+
const nodeIds = new Set(this.cursor.map((exit) => exit.nodeId));
|
|
119
|
+
if (nodeIds.size > 1) {
|
|
120
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.from is ambiguous: the cursor spans several nodes; use .connect(...) explicitly");
|
|
121
|
+
}
|
|
122
|
+
const nodeId = this.cursor[0].nodeId;
|
|
123
|
+
this.assertOutputPort(nodeId, port);
|
|
124
|
+
this.cursor = this.cursor.map((exit) => ({ nodeId: exit.nodeId, port }));
|
|
125
|
+
return this;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Explicitly selects the input port the next `.then`/`.parallel`/`.join`/
|
|
129
|
+
* `.connect` connects into. It applies to the next connection only and is
|
|
130
|
+
* consumed by it; calling it twice before a connection, or naming a port the
|
|
131
|
+
* target does not declare, is rejected.
|
|
132
|
+
*/
|
|
133
|
+
at(port) {
|
|
134
|
+
if (this.pendingInputPort !== undefined) {
|
|
135
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.at was already called with '${this.pendingInputPort}'; it applies to the next connection only`);
|
|
136
|
+
}
|
|
137
|
+
this.pendingInputPort = port;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Adds the entry node and connects the first workflow input port to its input.
|
|
142
|
+
*/
|
|
143
|
+
start(nodeRef, options = {}) {
|
|
144
|
+
const { instance } = this.addNode(nodeRef, options);
|
|
145
|
+
const inputPort = this.consumeInputPort(instance, options.inputPort);
|
|
146
|
+
const boundaryPort = options.boundaryPort ?? this.inputPorts[0];
|
|
147
|
+
if (!boundaryPort) {
|
|
148
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.start requires a declared workflow input port; call .inputs([...]) first");
|
|
149
|
+
}
|
|
150
|
+
this.edgeFromWorkflow(boundaryPort, { nodeId: instance.id, port: inputPort });
|
|
151
|
+
this.cursor = this.outputExits(instance, options.outputPort);
|
|
152
|
+
return this;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Adds a node connected from the current cursor to the node's input port.
|
|
156
|
+
*/
|
|
157
|
+
then(nodeRef, options = {}) {
|
|
158
|
+
const { instance } = this.addNode(nodeRef, options);
|
|
159
|
+
const inputPort = this.consumeInputPort(instance, options.inputPort);
|
|
160
|
+
this.connectCursor({ nodeId: instance.id, port: inputPort });
|
|
161
|
+
this.cursor = this.outputExits(instance, options.outputPort);
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Connects the current cursor to a workflow output port. The cursor becomes
|
|
166
|
+
* empty (terminal); no further `.then` may follow without a new `.start`.
|
|
167
|
+
*/
|
|
168
|
+
toOutput(outputId) {
|
|
169
|
+
this.assertCursor("toOutput");
|
|
170
|
+
for (const exit of this.cursor)
|
|
171
|
+
this.edgeToWorkflow(exit, outputId);
|
|
172
|
+
this.cursor = [];
|
|
173
|
+
return this;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Fans the cursor out to several nodes: one edge from every cursor port to each
|
|
177
|
+
* node's input. The cursor becomes the union of the added nodes' outputs.
|
|
178
|
+
*/
|
|
179
|
+
parallel(...nodeRefs) {
|
|
180
|
+
if (!nodeRefs.length) {
|
|
181
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.parallel requires at least one node");
|
|
182
|
+
}
|
|
183
|
+
const next = [];
|
|
184
|
+
for (const nodeRef of nodeRefs) {
|
|
185
|
+
const { instance } = this.addNode(nodeRef, {});
|
|
186
|
+
const inputPort = this.consumeInputPort(instance);
|
|
187
|
+
this.connectCursor({ nodeId: instance.id, port: inputPort });
|
|
188
|
+
next.push(...this.outputExits(instance));
|
|
189
|
+
}
|
|
190
|
+
this.cursor = next;
|
|
191
|
+
return this;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Fans the cursor into a single join node: one edge from every cursor port to
|
|
195
|
+
* the node's input. The cursor becomes the node's outputs.
|
|
196
|
+
*/
|
|
197
|
+
join(nodeRef, options = {}) {
|
|
198
|
+
const { instance } = this.addNode(nodeRef, options);
|
|
199
|
+
const inputPort = this.consumeInputPort(instance, options.inputPort);
|
|
200
|
+
this.connectCursor({ nodeId: instance.id, port: inputPort });
|
|
201
|
+
this.cursor = this.outputExits(instance, options.outputPort);
|
|
202
|
+
return this;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Adds a `core.flow.if` node and routes the cursor to its `then` output.
|
|
206
|
+
* Must be closed with {@link endIf} (or opened onto an `else` branch).
|
|
207
|
+
*/
|
|
208
|
+
if(condition, options = {}) {
|
|
209
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)(options.id ?? "if", this.usedIds);
|
|
210
|
+
this.kinds.set(id, "core.flow.if");
|
|
211
|
+
const parameters = {
|
|
212
|
+
...(options.parameters ?? {}),
|
|
213
|
+
condition: condition,
|
|
214
|
+
};
|
|
215
|
+
if (options.withElse)
|
|
216
|
+
parameters["else"] = true;
|
|
217
|
+
const instance = {
|
|
218
|
+
id,
|
|
219
|
+
kind: "core.flow.if",
|
|
220
|
+
parameters,
|
|
221
|
+
};
|
|
222
|
+
if (options.metadata)
|
|
223
|
+
instance.metadata = options.metadata;
|
|
224
|
+
this.builder.addNode(instance);
|
|
225
|
+
this.connectCursor({ nodeId: id, port: "value" });
|
|
226
|
+
this.branchStack.push({
|
|
227
|
+
nodeId: id,
|
|
228
|
+
elseEnabled: !!options.withElse,
|
|
229
|
+
elseUsed: false,
|
|
230
|
+
exits: [],
|
|
231
|
+
});
|
|
232
|
+
this.cursor = [{ nodeId: id, port: "then" }];
|
|
233
|
+
return this;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Opens an `elseIf` branch on the current `if` frame: adds another
|
|
237
|
+
* `core.flow.if` node connected from the parent's `else` output.
|
|
238
|
+
*/
|
|
239
|
+
elseIf(condition, options = {}) {
|
|
240
|
+
const frame = this.requireBranch("elseIf");
|
|
241
|
+
if (frame.elseUsed) {
|
|
242
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.elseIf cannot follow an else on node '${frame.nodeId}'`);
|
|
243
|
+
}
|
|
244
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)(options.id ?? "elseIf", this.usedIds);
|
|
245
|
+
this.kinds.set(id, "core.flow.if");
|
|
246
|
+
const parameters = {
|
|
247
|
+
...(options.parameters ?? {}),
|
|
248
|
+
condition: condition,
|
|
249
|
+
};
|
|
250
|
+
if (options.withElse)
|
|
251
|
+
parameters["else"] = true;
|
|
252
|
+
const instance = { id, kind: "core.flow.if", parameters };
|
|
253
|
+
if (options.metadata)
|
|
254
|
+
instance.metadata = options.metadata;
|
|
255
|
+
this.builder.addNode(instance);
|
|
256
|
+
this.edge({ nodeId: frame.nodeId, port: "else" }, { nodeId: id, port: "value" });
|
|
257
|
+
this.branchStack.push({
|
|
258
|
+
nodeId: id,
|
|
259
|
+
elseEnabled: !!options.withElse,
|
|
260
|
+
elseUsed: false,
|
|
261
|
+
exits: [],
|
|
262
|
+
});
|
|
263
|
+
this.cursor = [{ nodeId: id, port: "then" }];
|
|
264
|
+
return this;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Opens the `else` branch of the current `if` frame and adds its first node.
|
|
268
|
+
*/
|
|
269
|
+
else(nodeRef, options = {}) {
|
|
270
|
+
const frame = this.requireBranch("else");
|
|
271
|
+
if (frame.elseUsed) {
|
|
272
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.else may only be used once per if node '${frame.nodeId}'`);
|
|
273
|
+
}
|
|
274
|
+
frame.elseUsed = true;
|
|
275
|
+
frame.elseEnabled = true;
|
|
276
|
+
frame.exits.push(...this.cursor);
|
|
277
|
+
this.builder.patchNode(frame.nodeId, {
|
|
278
|
+
parameters: { ...this.parametersOf(frame.nodeId), else: true },
|
|
279
|
+
});
|
|
280
|
+
this.cursor = [{ nodeId: frame.nodeId, port: "else" }];
|
|
281
|
+
const { instance } = this.addNode(nodeRef, options);
|
|
282
|
+
const inputPort = this.consumeInputPort(instance, options.inputPort);
|
|
283
|
+
this.connectCursor({ nodeId: instance.id, port: inputPort });
|
|
284
|
+
this.cursor = this.outputExits(instance, options.outputPort);
|
|
285
|
+
frame.exits.push(...this.cursor);
|
|
286
|
+
return this;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Closes the innermost `if` frame; the cursor becomes the union of the
|
|
290
|
+
* branches' exits so a following call continues from every branch.
|
|
291
|
+
*/
|
|
292
|
+
endIf() {
|
|
293
|
+
const frame = this.branchStack.pop();
|
|
294
|
+
if (!frame) {
|
|
295
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.endIf called without a matching .if");
|
|
296
|
+
}
|
|
297
|
+
if (!frame.elseUsed)
|
|
298
|
+
frame.exits.push(...this.cursor);
|
|
299
|
+
this.cursor = dedupeExits(frame.exits);
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Adds a `core.flow.switch` node, wiring every case branch and the optional
|
|
304
|
+
* default. Writes both `parameters.cases` and `metadata.switch` so the editor
|
|
305
|
+
* derives the dynamic case output ports.
|
|
306
|
+
*/
|
|
307
|
+
switch(cases, options = {}) {
|
|
308
|
+
if (!cases.length) {
|
|
309
|
+
throw new db_decorators_1.ValidationError("GraphFlowBuilder.switch requires at least one case");
|
|
310
|
+
}
|
|
311
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)("switch", this.usedIds);
|
|
312
|
+
this.kinds.set(id, "core.flow.switch");
|
|
313
|
+
const built = cases.map((entry, index) => this.buildCase(entry, index));
|
|
314
|
+
const switchCases = built.map((entry) => entry.case);
|
|
315
|
+
const defaultPort = options.defaultPort ?? "default";
|
|
316
|
+
const hasDefault = options.hasDefault === true;
|
|
317
|
+
const metadata = {
|
|
318
|
+
cases: switchCases,
|
|
319
|
+
defaultPort,
|
|
320
|
+
hasDefault,
|
|
321
|
+
};
|
|
322
|
+
const instance = {
|
|
323
|
+
id,
|
|
324
|
+
kind: "core.flow.switch",
|
|
325
|
+
parameters: {
|
|
326
|
+
cases: switchCases,
|
|
327
|
+
hasDefault,
|
|
328
|
+
},
|
|
329
|
+
metadata: { switch: metadata },
|
|
330
|
+
};
|
|
331
|
+
this.builder.addNode(instance);
|
|
332
|
+
this.connectCursor({ nodeId: id, port: "value" });
|
|
333
|
+
const branchExits = [];
|
|
334
|
+
for (const entry of built) {
|
|
335
|
+
this.edge({ nodeId: id, port: entry.case.outputPort }, { nodeId: entry.instance.id, port: entry.inputPort });
|
|
336
|
+
branchExits.push(...this.outputExits(entry.instance));
|
|
337
|
+
}
|
|
338
|
+
this.switchStack.push({
|
|
339
|
+
nodeId: id,
|
|
340
|
+
cases: switchCases,
|
|
341
|
+
branchExits,
|
|
342
|
+
defaultUsed: false,
|
|
343
|
+
});
|
|
344
|
+
this.cursor = dedupeExits(branchExits);
|
|
345
|
+
return this;
|
|
346
|
+
}
|
|
347
|
+
/** Adds one case branch to the current `switch` frame. */
|
|
348
|
+
case(step) {
|
|
349
|
+
const frame = this.requireSwitch("case");
|
|
350
|
+
const index = frame.cases.length;
|
|
351
|
+
const outputPort = step.outputPort ?? step.id ?? `case${index}`;
|
|
352
|
+
const caseId = step.id ?? outputPort;
|
|
353
|
+
const condition = step.condition ??
|
|
354
|
+
{ op: "exists", value: { path: "value" } };
|
|
355
|
+
const switchCase = {
|
|
356
|
+
id: caseId,
|
|
357
|
+
label: step.label ?? caseId,
|
|
358
|
+
outputPort,
|
|
359
|
+
condition,
|
|
360
|
+
};
|
|
361
|
+
frame.cases.push(switchCase);
|
|
362
|
+
this.builder.patchNode(frame.nodeId, {
|
|
363
|
+
parameters: {
|
|
364
|
+
...this.parametersOf(frame.nodeId),
|
|
365
|
+
cases: frame.cases,
|
|
366
|
+
},
|
|
367
|
+
metadata: {
|
|
368
|
+
...this.metadataOf(frame.nodeId),
|
|
369
|
+
switch: {
|
|
370
|
+
cases: frame.cases,
|
|
371
|
+
defaultPort: "default",
|
|
372
|
+
hasDefault: this.switchHasDefault(frame.nodeId),
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
});
|
|
376
|
+
const { instance } = this.addNode(step.node, step.options ?? {});
|
|
377
|
+
const inputPort = this.consumeInputPort(instance, step.inputPort);
|
|
378
|
+
this.edge({ nodeId: frame.nodeId, port: outputPort }, { nodeId: instance.id, port: inputPort });
|
|
379
|
+
frame.branchExits.push(...this.outputExits(instance));
|
|
380
|
+
this.cursor = dedupeExits(frame.branchExits);
|
|
381
|
+
return this;
|
|
382
|
+
}
|
|
383
|
+
/** Wires the `default` branch of the current `switch` frame. */
|
|
384
|
+
default(nodeRef, options = {}) {
|
|
385
|
+
const frame = this.requireSwitch("default");
|
|
386
|
+
if (frame.defaultUsed) {
|
|
387
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.default may only be used once per switch node '${frame.nodeId}'`);
|
|
388
|
+
}
|
|
389
|
+
frame.defaultUsed = true;
|
|
390
|
+
this.builder.patchNode(frame.nodeId, {
|
|
391
|
+
parameters: {
|
|
392
|
+
...this.parametersOf(frame.nodeId),
|
|
393
|
+
hasDefault: true,
|
|
394
|
+
},
|
|
395
|
+
});
|
|
396
|
+
const { instance } = this.addNode(nodeRef, options);
|
|
397
|
+
const inputPort = this.consumeInputPort(instance, options.inputPort);
|
|
398
|
+
this.edge({ nodeId: frame.nodeId, port: "default" }, { nodeId: instance.id, port: inputPort });
|
|
399
|
+
frame.branchExits.push(...this.outputExits(instance, options.outputPort));
|
|
400
|
+
this.cursor = dedupeExits(frame.branchExits);
|
|
401
|
+
return this;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Configures a `core.loop.foreach` loop: if the cursor already points at a
|
|
405
|
+
* started foreach node its body is attached in place; otherwise a new foreach
|
|
406
|
+
* node is added. The cursor becomes the loop's `completed` output.
|
|
407
|
+
*/
|
|
408
|
+
map(body, options = {}) {
|
|
409
|
+
const started = this.singleCursorNodeOfKind("core.loop.foreach");
|
|
410
|
+
if (started && !this.builder.hasNodeConfig(started, "loop")) {
|
|
411
|
+
this.attachLoopBody(started, body, options);
|
|
412
|
+
this.cursor = [{ nodeId: started, port: options.outputPort ?? "completed" }];
|
|
413
|
+
return this;
|
|
414
|
+
}
|
|
415
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)("foreach", this.usedIds);
|
|
416
|
+
this.kinds.set(id, "core.loop.foreach");
|
|
417
|
+
const instance = {
|
|
418
|
+
id,
|
|
419
|
+
kind: "core.loop.foreach",
|
|
420
|
+
parameters: this.loopParameters(options),
|
|
421
|
+
loop: { body, ...this.loopConfig(options) },
|
|
422
|
+
};
|
|
423
|
+
this.builder.addNode(instance);
|
|
424
|
+
this.connectCursor({ nodeId: id, port: options.inputPort ?? "items" });
|
|
425
|
+
this.cursor = [{ nodeId: id, port: options.outputPort ?? "completed" }];
|
|
426
|
+
return this;
|
|
427
|
+
}
|
|
428
|
+
/** Adds a `core.loop.while` node with the given condition and body. */
|
|
429
|
+
while(condition, body, options = {}) {
|
|
430
|
+
return this.loop("core.loop.while", condition, body, options);
|
|
431
|
+
}
|
|
432
|
+
/** Adds a `core.loop.until` node with the given condition and body. */
|
|
433
|
+
until(condition, body, options = {}) {
|
|
434
|
+
return this.loop("core.loop.until", condition, body, options);
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Adds a `core.flow.errorBoundary` node with the try/catch/finally bodies.
|
|
438
|
+
* The cursor becomes the boundary's `result` output (plus `error` when a catch
|
|
439
|
+
* body is provided).
|
|
440
|
+
*/
|
|
441
|
+
onError(tryFlow, catchFlow, finallyFlow) {
|
|
442
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)("errorBoundary", this.usedIds);
|
|
443
|
+
this.kinds.set(id, "core.flow.errorBoundary");
|
|
444
|
+
const errorBoundary = { try: tryFlow };
|
|
445
|
+
if (catchFlow)
|
|
446
|
+
errorBoundary.catch = catchFlow;
|
|
447
|
+
if (finallyFlow)
|
|
448
|
+
errorBoundary.finally = finallyFlow;
|
|
449
|
+
const instance = {
|
|
450
|
+
id,
|
|
451
|
+
kind: "core.flow.errorBoundary",
|
|
452
|
+
parameters: {},
|
|
453
|
+
errorBoundary,
|
|
454
|
+
};
|
|
455
|
+
this.builder.addNode(instance);
|
|
456
|
+
this.connectCursor({ nodeId: id, port: "value" });
|
|
457
|
+
const exits = [{ nodeId: id, port: "result" }];
|
|
458
|
+
if (catchFlow)
|
|
459
|
+
exits.push({ nodeId: id, port: "error" });
|
|
460
|
+
this.cursor = exits;
|
|
461
|
+
return this;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Escape hatch for `connection`-type resource edges: adds `nodeRef` and connects
|
|
465
|
+
* the cursor to its `toPort` with the given edge type.
|
|
466
|
+
*/
|
|
467
|
+
connect(nodeRef, options = {}) {
|
|
468
|
+
const { instance } = this.addNode(nodeRef, {});
|
|
469
|
+
const toPort = this.consumeInputPort(instance, options.toPort);
|
|
470
|
+
for (const exit of this.requireCursor("connect")) {
|
|
471
|
+
this.edge({ nodeId: exit.nodeId, port: options.fromPort ?? exit.port }, { nodeId: instance.id, port: toPort }, options.type ?? "connection");
|
|
472
|
+
}
|
|
473
|
+
this.cursor = this.outputExits(instance);
|
|
474
|
+
return this;
|
|
475
|
+
}
|
|
476
|
+
/** Sets the canvas position of the node with `nodeId`. */
|
|
477
|
+
position(nodeId, position) {
|
|
478
|
+
this.builder.patchNode(nodeId, {
|
|
479
|
+
ui: { ...(this.uiOf(nodeId) ?? {}), position: { ...position } },
|
|
480
|
+
});
|
|
481
|
+
return this;
|
|
482
|
+
}
|
|
483
|
+
/** Merges `values` into the `state` of every node on the cursor. */
|
|
484
|
+
state(values) {
|
|
485
|
+
for (const exit of this.cursor) {
|
|
486
|
+
const merged = { ...(this.states.get(exit.nodeId) ?? {}), ...values };
|
|
487
|
+
this.states.set(exit.nodeId, merged);
|
|
488
|
+
this.builder.patchNode(exit.nodeId, { state: merged });
|
|
489
|
+
}
|
|
490
|
+
return this;
|
|
491
|
+
}
|
|
492
|
+
/** Pins the cursor nodes' `parameters` snapshot (data pinning, DECAF-50 §4.22). */
|
|
493
|
+
pin(values) {
|
|
494
|
+
const pinned = { parameters: values };
|
|
495
|
+
for (const exit of this.cursor) {
|
|
496
|
+
this.builder.patchNode(exit.nodeId, { pinned });
|
|
497
|
+
}
|
|
498
|
+
return this;
|
|
499
|
+
}
|
|
500
|
+
/** Validates and freezes the accumulated document. */
|
|
501
|
+
build() {
|
|
502
|
+
return this.builder.build();
|
|
503
|
+
}
|
|
504
|
+
loop(kind, condition, body, options) {
|
|
505
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)(options.id ?? (kind === "core.loop.while" ? "while" : "until"), this.usedIds);
|
|
506
|
+
this.kinds.set(id, kind);
|
|
507
|
+
const parameters = {
|
|
508
|
+
condition: condition,
|
|
509
|
+
};
|
|
510
|
+
if (options.maxIterations !== undefined) {
|
|
511
|
+
parameters["maxIterations"] = options.maxIterations;
|
|
512
|
+
}
|
|
513
|
+
if (options.statePort !== undefined)
|
|
514
|
+
parameters["statePort"] = options.statePort;
|
|
515
|
+
if (options.inputPort !== undefined)
|
|
516
|
+
parameters["inputPort"] = options.inputPort;
|
|
517
|
+
if (options.outputPort !== undefined)
|
|
518
|
+
parameters["outputPort"] = options.outputPort;
|
|
519
|
+
const loop = { body };
|
|
520
|
+
if (options.maxIterations !== undefined)
|
|
521
|
+
loop.maxIterations = options.maxIterations;
|
|
522
|
+
const instance = { id, kind, parameters, loop };
|
|
523
|
+
this.builder.addNode(instance);
|
|
524
|
+
this.connectCursor({ nodeId: id, port: options.nodeInputPort ?? "state" });
|
|
525
|
+
this.cursor = [{ nodeId: id, port: options.nodeOutputPort ?? "state" }];
|
|
526
|
+
return this;
|
|
527
|
+
}
|
|
528
|
+
attachLoopBody(nodeId, body, options) {
|
|
529
|
+
this.builder.patchNode(nodeId, {
|
|
530
|
+
parameters: {
|
|
531
|
+
...this.parametersOf(nodeId),
|
|
532
|
+
...this.loopParameters(options),
|
|
533
|
+
},
|
|
534
|
+
loop: { body, ...this.loopConfig(options) },
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
loopParameters(options) {
|
|
538
|
+
const parameters = {};
|
|
539
|
+
if (options.maxIterations !== undefined) {
|
|
540
|
+
parameters["maxIterations"] = options.maxIterations;
|
|
541
|
+
}
|
|
542
|
+
for (const key of ["itemPort", "resultPort", "statePort"]) {
|
|
543
|
+
const value = options[key];
|
|
544
|
+
if (typeof value === "string")
|
|
545
|
+
parameters[key] = value;
|
|
546
|
+
}
|
|
547
|
+
return parameters;
|
|
548
|
+
}
|
|
549
|
+
loopConfig(options) {
|
|
550
|
+
const config = {};
|
|
551
|
+
if (options.maxIterations !== undefined)
|
|
552
|
+
config.maxIterations = options.maxIterations;
|
|
553
|
+
return config;
|
|
554
|
+
}
|
|
555
|
+
buildCase(entry, index) {
|
|
556
|
+
const outputPort = entry.outputPort ?? entry.id ?? `case${index}`;
|
|
557
|
+
const caseId = entry.id ?? outputPort;
|
|
558
|
+
const switchCase = {
|
|
559
|
+
id: caseId,
|
|
560
|
+
label: entry.label ?? caseId,
|
|
561
|
+
outputPort,
|
|
562
|
+
condition: entry.condition,
|
|
563
|
+
};
|
|
564
|
+
const { instance } = this.addNode(entry.node, entry.options ?? {});
|
|
565
|
+
const inputPort = entry.inputPort ?? this.firstPort(instance, "input");
|
|
566
|
+
return { case: switchCase, instance, inputPort };
|
|
567
|
+
}
|
|
568
|
+
addNode(nodeRef, options) {
|
|
569
|
+
if (typeof nodeRef === "string") {
|
|
570
|
+
const id = (0, GraphNodeDerivation_js_1.uniqueGraphNodeId)(options.id ?? nodeRef, this.usedIds);
|
|
571
|
+
this.kinds.set(id, nodeRef);
|
|
572
|
+
const instance = {
|
|
573
|
+
id,
|
|
574
|
+
kind: nodeRef,
|
|
575
|
+
parameters: { ...(options.parameters ?? {}) },
|
|
576
|
+
};
|
|
577
|
+
this.applyOptions(instance, options);
|
|
578
|
+
this.builder.addNode(instance);
|
|
579
|
+
this.portsById.set(id, FLOW_PORTS[nodeRef] ?? { inputs: [], outputs: [] });
|
|
580
|
+
return { instance };
|
|
581
|
+
}
|
|
582
|
+
const derived = this.builder.addDerivedNode(nodeRef, {
|
|
583
|
+
...options,
|
|
584
|
+
id: options.id ?? this.deriveId(nodeRef),
|
|
585
|
+
});
|
|
586
|
+
this.usedIds.add(derived.id);
|
|
587
|
+
this.kinds.set(derived.id, derived.kind);
|
|
588
|
+
const definition = (0, reader_js_1.graphDefinitionOf)(nodeRef);
|
|
589
|
+
this.portsById.set(derived.id, {
|
|
590
|
+
inputs: definition.ports
|
|
591
|
+
.filter((port) => port.direction === constants_js_1.PortDirection.INPUT)
|
|
592
|
+
.map((port) => port.path ?? port.property),
|
|
593
|
+
outputs: definition.ports
|
|
594
|
+
.filter((port) => port.direction === constants_js_1.PortDirection.OUTPUT)
|
|
595
|
+
.map((port) => port.path ?? port.property),
|
|
596
|
+
});
|
|
597
|
+
return { instance: derived };
|
|
598
|
+
}
|
|
599
|
+
deriveId(nodeRef) {
|
|
600
|
+
if (typeof nodeRef !== "function" && !isModelLike(nodeRef))
|
|
601
|
+
return undefined;
|
|
602
|
+
const definition = (0, reader_js_1.graphDefinitionOf)(nodeRef);
|
|
603
|
+
return definition.tag ?? definition.kind;
|
|
604
|
+
}
|
|
605
|
+
applyOptions(instance, options) {
|
|
606
|
+
if (options.label !== undefined)
|
|
607
|
+
instance.label = options.label;
|
|
608
|
+
if (options.metadata)
|
|
609
|
+
instance.metadata = options.metadata;
|
|
610
|
+
if (options.state)
|
|
611
|
+
instance.state = options.state;
|
|
612
|
+
if (options.inputBindings)
|
|
613
|
+
instance.inputBindings = options.inputBindings;
|
|
614
|
+
if (options.outputBindings)
|
|
615
|
+
instance.outputBindings = options.outputBindings;
|
|
616
|
+
if (options.disabled !== undefined)
|
|
617
|
+
instance.disabled = options.disabled;
|
|
618
|
+
if (options.loop)
|
|
619
|
+
instance.loop = options.loop;
|
|
620
|
+
if (options.ui)
|
|
621
|
+
instance.ui = options.ui;
|
|
622
|
+
}
|
|
623
|
+
connectCursor(target) {
|
|
624
|
+
for (const exit of this.requireCursor("connect")) {
|
|
625
|
+
this.edge(exit, target);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
outputExits(instance, explicit) {
|
|
629
|
+
if (explicit)
|
|
630
|
+
return [{ nodeId: instance.id, port: explicit }];
|
|
631
|
+
const outputs = this.portsOf(instance).outputs;
|
|
632
|
+
if (!outputs.length)
|
|
633
|
+
return [];
|
|
634
|
+
if (outputs.length > 1 && !FLOW_PORTS[instance.kind]) {
|
|
635
|
+
throw new db_decorators_1.ValidationError(`Node '${instance.id}' (kind '${instance.kind}') has ${outputs.length} output ports; name one with { outputPort }`);
|
|
636
|
+
}
|
|
637
|
+
return [{ nodeId: instance.id, port: outputs[0] }];
|
|
638
|
+
}
|
|
639
|
+
consumeInputPort(instance, explicit) {
|
|
640
|
+
const pending = this.pendingInputPort;
|
|
641
|
+
if (pending !== undefined) {
|
|
642
|
+
this.pendingInputPort = undefined;
|
|
643
|
+
const declared = this.portsOf(instance).inputs;
|
|
644
|
+
if (!declared.includes(pending)) {
|
|
645
|
+
throw new db_decorators_1.ValidationError(`Node '${instance.id}' (kind '${instance.kind}') does not declare input port '${pending}'`);
|
|
646
|
+
}
|
|
647
|
+
return pending;
|
|
648
|
+
}
|
|
649
|
+
return explicit ?? this.firstPort(instance, "input");
|
|
650
|
+
}
|
|
651
|
+
assertOutputPort(nodeId, port) {
|
|
652
|
+
const instance = this.builder.getNode(nodeId);
|
|
653
|
+
if (!instance) {
|
|
654
|
+
throw new db_decorators_1.ValidationError(`Node '${nodeId}' is not part of the document`);
|
|
655
|
+
}
|
|
656
|
+
const outputs = this.portsOf(instance).outputs;
|
|
657
|
+
if (!outputs.includes(port)) {
|
|
658
|
+
throw new db_decorators_1.ValidationError(`Node '${nodeId}' does not declare output port '${port}'`);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
firstPort(instance, direction) {
|
|
662
|
+
const ports = this.portsOf(instance)[direction === "input" ? "inputs" : "outputs"];
|
|
663
|
+
if (!ports.length) {
|
|
664
|
+
throw new db_decorators_1.ValidationError(`Node '${instance.id}' (kind '${instance.kind}') has no ${direction} ports`);
|
|
665
|
+
}
|
|
666
|
+
if (ports.length > 1 && direction === "input" && !FLOW_PORTS[instance.kind]) {
|
|
667
|
+
throw new db_decorators_1.ValidationError(`Node '${instance.id}' (kind '${instance.kind}') has ${ports.length} input ports; name one with { inputPort }`);
|
|
668
|
+
}
|
|
669
|
+
return ports[0];
|
|
670
|
+
}
|
|
671
|
+
portsOf(instance) {
|
|
672
|
+
const recorded = this.portsById.get(instance.id);
|
|
673
|
+
if (recorded)
|
|
674
|
+
return recorded;
|
|
675
|
+
const builtin = FLOW_PORTS[instance.kind];
|
|
676
|
+
if (builtin)
|
|
677
|
+
return builtin;
|
|
678
|
+
return { inputs: [], outputs: [] };
|
|
679
|
+
}
|
|
680
|
+
singleCursorNodeOfKind(kind) {
|
|
681
|
+
if (this.cursor.length !== 1)
|
|
682
|
+
return undefined;
|
|
683
|
+
const exit = this.cursor[0];
|
|
684
|
+
return this.kinds.get(exit.nodeId) === kind ? exit.nodeId : undefined;
|
|
685
|
+
}
|
|
686
|
+
requireCursor(action) {
|
|
687
|
+
if (!this.cursor.length) {
|
|
688
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.${action} requires a cursor; call .start(...) or .then(...) first`);
|
|
689
|
+
}
|
|
690
|
+
return this.cursor;
|
|
691
|
+
}
|
|
692
|
+
assertCursor(action) {
|
|
693
|
+
this.requireCursor(action);
|
|
694
|
+
}
|
|
695
|
+
requireBranch(action) {
|
|
696
|
+
const frame = this.branchStack[this.branchStack.length - 1];
|
|
697
|
+
if (!frame) {
|
|
698
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.${action} requires an open .if(...) branch`);
|
|
699
|
+
}
|
|
700
|
+
return frame;
|
|
701
|
+
}
|
|
702
|
+
requireSwitch(action) {
|
|
703
|
+
const frame = this.switchStack[this.switchStack.length - 1];
|
|
704
|
+
if (!frame) {
|
|
705
|
+
throw new db_decorators_1.ValidationError(`GraphFlowBuilder.${action} requires an open .switch(...)`);
|
|
706
|
+
}
|
|
707
|
+
return frame;
|
|
708
|
+
}
|
|
709
|
+
switchHasDefault(nodeId) {
|
|
710
|
+
return this.switchStack.some((frame) => frame.nodeId === nodeId && frame.defaultUsed);
|
|
711
|
+
}
|
|
712
|
+
parametersOf(nodeId) {
|
|
713
|
+
const node = this.builder.getNode(nodeId);
|
|
714
|
+
return node?.parameters ?? {};
|
|
715
|
+
}
|
|
716
|
+
metadataOf(nodeId) {
|
|
717
|
+
const node = this.builder.getNode(nodeId);
|
|
718
|
+
return node?.metadata ?? {};
|
|
719
|
+
}
|
|
720
|
+
uiOf(nodeId) {
|
|
721
|
+
return this.builder.getNode(nodeId)?.ui;
|
|
722
|
+
}
|
|
723
|
+
edge(source, target, type = "data") {
|
|
724
|
+
this.edgeCount += 1;
|
|
725
|
+
this.builder.addEdge({
|
|
726
|
+
id: `e${this.edgeCount}`,
|
|
727
|
+
type,
|
|
728
|
+
source: { scope: "node", nodeId: source.nodeId, port: source.port },
|
|
729
|
+
target: { scope: "node", nodeId: target.nodeId, port: target.port },
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
edgeToWorkflow(source, port) {
|
|
733
|
+
this.edgeCount += 1;
|
|
734
|
+
this.builder.addEdge({
|
|
735
|
+
id: `e${this.edgeCount}`,
|
|
736
|
+
type: "data",
|
|
737
|
+
source: { scope: "node", nodeId: source.nodeId, port: source.port },
|
|
738
|
+
target: { scope: "workflow", port },
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
edgeFromWorkflow(port, target) {
|
|
742
|
+
this.edgeCount += 1;
|
|
743
|
+
this.builder.addEdge({
|
|
744
|
+
id: `e${this.edgeCount}`,
|
|
745
|
+
type: "data",
|
|
746
|
+
source: { scope: "workflow", port },
|
|
747
|
+
target: { scope: "node", nodeId: target.nodeId, port: target.port },
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
exports.GraphFlowBuilder = GraphFlowBuilder;
|
|
752
|
+
function flowPortOf(port) {
|
|
753
|
+
return typeof port === "string" ? { id: port } : { ...port };
|
|
754
|
+
}
|
|
755
|
+
function isModelLike(value) {
|
|
756
|
+
return typeof value === "function" || (typeof value === "object" && value !== null);
|
|
757
|
+
}
|
|
758
|
+
function dedupeExits(exits) {
|
|
759
|
+
const seen = new Set();
|
|
760
|
+
const result = [];
|
|
761
|
+
for (const exit of exits) {
|
|
762
|
+
const key = `${exit.nodeId}:${exit.port}`;
|
|
763
|
+
if (seen.has(key))
|
|
764
|
+
continue;
|
|
765
|
+
seen.add(key);
|
|
766
|
+
result.push(exit);
|
|
767
|
+
}
|
|
768
|
+
return result;
|
|
769
|
+
}
|
|
770
|
+
//# sourceMappingURL=GraphFlowBuilder.js.map
|
|
771
|
+
//# sourceMappingURL=GraphFlowBuilder.cjs.map
|