@decaf-ts/as-graph 0.0.0-stage → 0.2.0
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 +523 -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 +84 -0
- package/lib/cjs/engine/index.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 +87 -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 +26 -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 +272 -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 +26 -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 +34 -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 +95 -0
- package/lib/cjs/engine/services/GraphRunModelService.cjs.map +1 -0
- package/lib/cjs/engine/services/GraphWorkflowService.cjs +290 -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 +307 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +188 -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/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 +130 -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 +195 -0
- package/lib/cjs/node/flow/loop/until/node.cjs.map +1 -0
- package/lib/cjs/node/flow/loop/while/node.cjs +191 -0
- package/lib/cjs/node/flow/loop/while/node.cjs.map +1 -0
- package/lib/cjs/node/flow/switch/node.cjs +256 -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 +98 -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 +67 -0
- package/lib/esm/engine/index.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 +82 -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 +9 -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 +267 -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 +21 -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 +30 -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 +86 -0
- package/lib/esm/engine/services/GraphRunModelService.js.map +1 -0
- package/lib/esm/engine/services/GraphWorkflowService.js +280 -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 +298 -0
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js +179 -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/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 +121 -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 +186 -0
- package/lib/esm/node/flow/loop/until/node.js.map +1 -0
- package/lib/esm/node/flow/loop/while/node.js +182 -0
- package/lib/esm/node/flow/loop/while/node.js.map +1 -0
- package/lib/esm/node/flow/switch/node.js +247 -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 +88 -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 +60 -0
- package/lib/types/engine/index.d.mts +60 -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 +42 -0
- package/lib/types/engine/loops/GraphConditionEvaluator.d.mts +42 -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 +8 -0
- package/lib/types/engine/loops/index.d.mts +8 -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 +101 -0
- package/lib/types/engine/runs/GraphRunService.d.mts +101 -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 +12 -0
- package/lib/types/engine/runs/InMemoryGraphRunStore.d.mts +12 -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 +25 -0
- package/lib/types/engine/runs/ownership.d.mts +25 -0
- package/lib/types/engine/runs/types.d.cts +83 -0
- package/lib/types/engine/runs/types.d.mts +83 -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 +37 -0
- package/lib/types/engine/services/GraphRunModelService.d.mts +37 -0
- package/lib/types/engine/services/GraphWorkflowService.d.cts +102 -0
- package/lib/types/engine/services/GraphWorkflowService.d.mts +102 -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 +231 -0
- package/lib/types/engine/types.d.mts +231 -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 +134 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +134 -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 +118 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +118 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +88 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +88 -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/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 +34 -0
- package/lib/types/node/flow/if/node.d.mts +34 -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 +38 -0
- package/lib/types/node/flow/loop/until/node.d.mts +38 -0
- package/lib/types/node/flow/loop/while/node.d.cts +37 -0
- package/lib/types/node/flow/loop/while/node.d.mts +37 -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 +39 -0
- package/lib/types/ram/GraphRunStore.d.mts +39 -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 +297 -0
- package/lib/types/shared/graph/types.d.mts +297 -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,574 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.IsolatedVmCodeSandboxEvaluator = void 0;
|
|
40
|
+
/**
|
|
41
|
+
* @module as-graph/execution/IsolatedVmCodeSandboxEvaluator
|
|
42
|
+
* @summary {@link CodeSandboxEvaluator} backed by `isolated-vm` (ALFRED-5 §7).
|
|
43
|
+
* @description Provides a fully isolated V8 sandbox for the Code Node
|
|
44
|
+
* (DECAF-32 §22.4) and code-based conditions. Uses `isolated-vm` for true
|
|
45
|
+
* heap isolation (unlike Node's `vm` module which shares the host heap),
|
|
46
|
+
* `acorn` + `acorn-walk` for AST-based static validation, and `typescript`
|
|
47
|
+
* for TS transpilation.
|
|
48
|
+
*
|
|
49
|
+
* Restrictions enforced (ALFRED-5 §7.10–7.12, DECAF-34 §7.5):
|
|
50
|
+
*
|
|
51
|
+
* - **No imports** — `import` declarations are rejected by AST validation.
|
|
52
|
+
* - **No requires** — `require` is in the blocked-identifier set and is not
|
|
53
|
+
* exposed in the sandbox context.
|
|
54
|
+
* - **No exports** — `export` declarations are rejected by AST validation.
|
|
55
|
+
* - **Pure functions only** — no system API access. Blocked identifiers
|
|
56
|
+
* include `process`, `global`, `globalThis`, `Function`, `eval`, `fetch`,
|
|
57
|
+
* `XMLHttpRequest`, `WebSocket`, `Worker`, `Deno`, `Bun`, `module`,
|
|
58
|
+
* `exports`. The sandbox context exposes only the data variables
|
|
59
|
+
* (`$input`, `$vars`, `$item`, `$index`, `$node`, `$output`).
|
|
60
|
+
* - **No `eval()` / `new Function()`** — rejected by AST validation.
|
|
61
|
+
*
|
|
62
|
+
* **The isolate is the security boundary.** The static denylist is
|
|
63
|
+
* defense-in-depth only: it rejects the obvious constructs early and with a clear
|
|
64
|
+
* message, but it is deliberately not the thing that keeps user code away from
|
|
65
|
+
* host capabilities. What actually isolates user code is the `isolated-vm`
|
|
66
|
+
* isolate itself: it has a separate heap, exposes only the data variables as
|
|
67
|
+
* globals, and holds no host objects. The host log callback is therefore passed
|
|
68
|
+
* to the isolate out of band as an `evalClosure` argument, never attached to
|
|
69
|
+
* the sandbox global under a lookup-able name, so user code cannot reach the
|
|
70
|
+
* host logger through computed member access (e.g.
|
|
71
|
+
* `globalThis['__dispatch'].applySync(...)`).
|
|
72
|
+
*
|
|
73
|
+
* The user code is transpiled (TS → JS) if needed, statically validated,
|
|
74
|
+
* wrapped in a strict-mode async function that receives the data variables as
|
|
75
|
+
* parameters, compiled in an isolated V8 instance, and executed with a
|
|
76
|
+
* timeout and memory limit. The result is copied back to the host heap.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const evaluator = new IsolatedVmCodeSandboxEvaluator();
|
|
81
|
+
* const result = await evaluator.evaluate({
|
|
82
|
+
* code: "return $input.a + $input.b;",
|
|
83
|
+
* input: { a: 2, b: 3 },
|
|
84
|
+
* });
|
|
85
|
+
* // result === 5
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
const isolated_vm_1 = __importDefault(require("isolated-vm"));
|
|
89
|
+
const acorn = __importStar(require("acorn"));
|
|
90
|
+
const walk = __importStar(require("acorn-walk"));
|
|
91
|
+
const ts = __importStar(require("typescript"));
|
|
92
|
+
const core_1 = require("@decaf-ts/core");
|
|
93
|
+
const GraphExecutionError_js_1 = require("./../errors/GraphExecutionError.cjs");
|
|
94
|
+
/**
|
|
95
|
+
* Default sandbox execution timeout in milliseconds.
|
|
96
|
+
*/
|
|
97
|
+
const DEFAULT_TIMEOUT_MS = 1000;
|
|
98
|
+
/**
|
|
99
|
+
* Default memory limit for the isolated V8 heap in MB.
|
|
100
|
+
*/
|
|
101
|
+
const DEFAULT_MEMORY_MB = 32;
|
|
102
|
+
/**
|
|
103
|
+
* Maximum code length (characters) accepted by the evaluator.
|
|
104
|
+
*/
|
|
105
|
+
const MAX_CODE_LENGTH = 100_000;
|
|
106
|
+
/**
|
|
107
|
+
* Grace added to the in-isolate timeout before the host-level watchdog fires.
|
|
108
|
+
*
|
|
109
|
+
* The in-isolate `timeout` option only covers the synchronous execution of the
|
|
110
|
+
* script; it does not settle a pending async continuation such as
|
|
111
|
+
* `await new Promise(function () {})`. The host watchdog therefore races the
|
|
112
|
+
* isolate promise against a timer of `timeoutMs + HOST_TIMEOUT_GRACE_MS` so a
|
|
113
|
+
* never-settling body still fails fast.
|
|
114
|
+
*/
|
|
115
|
+
const HOST_TIMEOUT_GRACE_MS = 100;
|
|
116
|
+
/**
|
|
117
|
+
* Identifiers that are forbidden in sandboxed code (ALFRED-5 §7.10).
|
|
118
|
+
*
|
|
119
|
+
* Any AST node of type `Identifier` whose `name` is in this set causes the
|
|
120
|
+
* validator to reject the code. This covers both free-standing references
|
|
121
|
+
* (`process.env`) and call targets (`require(...)`).
|
|
122
|
+
*/
|
|
123
|
+
const BLOCKED_IDENTIFIERS = new Set([
|
|
124
|
+
"process",
|
|
125
|
+
"require",
|
|
126
|
+
"module",
|
|
127
|
+
"exports",
|
|
128
|
+
"global",
|
|
129
|
+
"globalThis",
|
|
130
|
+
"Function",
|
|
131
|
+
"eval",
|
|
132
|
+
"fetch",
|
|
133
|
+
"XMLHttpRequest",
|
|
134
|
+
"WebSocket",
|
|
135
|
+
"Worker",
|
|
136
|
+
"Deno",
|
|
137
|
+
"Bun",
|
|
138
|
+
"__dispatch",
|
|
139
|
+
]);
|
|
140
|
+
/**
|
|
141
|
+
* Transpiles TypeScript code to JavaScript (ALFRED-5 §7.4).
|
|
142
|
+
*
|
|
143
|
+
* When the language is `'javascript'` the code is returned unchanged. For
|
|
144
|
+
* `'typescript'` the code is transpiled using the TypeScript compiler with
|
|
145
|
+
* module kind `None` (no import/export emitted) and target `ES2022`.
|
|
146
|
+
*
|
|
147
|
+
* @param code - The user-authored code.
|
|
148
|
+
* @param language - The code language (`'javascript'` or `'typescript'`).
|
|
149
|
+
* @returns Transpiled JavaScript code.
|
|
150
|
+
*/
|
|
151
|
+
function transpileTypeScript(code, language) {
|
|
152
|
+
if (language === "javascript")
|
|
153
|
+
return code;
|
|
154
|
+
const result = ts.transpileModule(code, {
|
|
155
|
+
compilerOptions: {
|
|
156
|
+
target: ts.ScriptTarget.ES2022,
|
|
157
|
+
module: ts.ModuleKind.None,
|
|
158
|
+
strict: true,
|
|
159
|
+
noEmitHelpers: true,
|
|
160
|
+
importHelpers: false,
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
// Strip the "use strict"; directive that ts.transpileModule adds — the
|
|
164
|
+
// sandbox wrapper already enforces strict mode, and the directive breaks
|
|
165
|
+
// expression-mode wrapping (return (...)).
|
|
166
|
+
return result.outputText.replace(/^"use strict";\s*/, "");
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Statically validates user code using an AST walk (ALFRED-5 §7.11).
|
|
170
|
+
*
|
|
171
|
+
* Rejects:
|
|
172
|
+
* - `ImportDeclaration` — no imports allowed.
|
|
173
|
+
* - `ExportNamedDeclaration` / `ExportDefaultDeclaration` — no exports.
|
|
174
|
+
* - `Identifier` whose name is in {@link BLOCKED_IDENTIFIERS}.
|
|
175
|
+
* - `NewExpression` with callee `Function` — no `new Function()`.
|
|
176
|
+
* - `CallExpression` with callee `eval` — no `eval()`.
|
|
177
|
+
*
|
|
178
|
+
* @param code - JavaScript code to validate (after TS transpilation).
|
|
179
|
+
* @throws {GraphExecutionError} when a forbidden construct is found.
|
|
180
|
+
*/
|
|
181
|
+
function validateSafeCode(code) {
|
|
182
|
+
if (code.length > MAX_CODE_LENGTH) {
|
|
183
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code exceeds the maximum length of ${MAX_CODE_LENGTH} characters`, "GRAPH_CODE_SANDBOX_CODE_TOO_LONG", { length: code.length });
|
|
184
|
+
}
|
|
185
|
+
let ast;
|
|
186
|
+
try {
|
|
187
|
+
// First, try parsing the code wrapped in a function with sourceType
|
|
188
|
+
// "script". This handles `return` statements (which are valid inside a
|
|
189
|
+
// function) and lets us detect blocked identifiers, eval(), and
|
|
190
|
+
// new Function() via the AST walk.
|
|
191
|
+
ast = acorn.parse(`async function __validate() {\n${code}\n}`, {
|
|
192
|
+
ecmaVersion: "latest",
|
|
193
|
+
sourceType: "script",
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
// If the function-wrapped parse fails (e.g. because the code has
|
|
198
|
+
// top-level `import` or `export` declarations which are invalid inside
|
|
199
|
+
// a function), try parsing the raw code with sourceType "module" so
|
|
200
|
+
// import/export declarations are recognised as AST nodes.
|
|
201
|
+
try {
|
|
202
|
+
ast = acorn.parse(code, {
|
|
203
|
+
ecmaVersion: "latest",
|
|
204
|
+
sourceType: "module",
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
catch (err) {
|
|
208
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code failed to parse: ${err.message}`, "GRAPH_CODE_SANDBOX_PARSE_ERROR", { code, error: err.message });
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
walk.full(ast, (node) => {
|
|
212
|
+
const n = node;
|
|
213
|
+
if (n["type"] === "ImportDeclaration") {
|
|
214
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Imports are not allowed in Code nodes.", "GRAPH_CODE_SANDBOX_FORBIDDEN_TOKEN", { token: "import" });
|
|
215
|
+
}
|
|
216
|
+
if (n["type"] === "ExportNamedDeclaration" ||
|
|
217
|
+
n["type"] === "ExportDefaultDeclaration") {
|
|
218
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Exports are not allowed in Code nodes.", "GRAPH_CODE_SANDBOX_FORBIDDEN_TOKEN", { token: "export" });
|
|
219
|
+
}
|
|
220
|
+
if (n["type"] === "Identifier" &&
|
|
221
|
+
typeof n["name"] === "string" &&
|
|
222
|
+
BLOCKED_IDENTIFIERS.has(n["name"])) {
|
|
223
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Identifier "${n["name"]}" is not allowed in Code nodes.`, "GRAPH_CODE_SANDBOX_FORBIDDEN_TOKEN", { token: n["name"] });
|
|
224
|
+
}
|
|
225
|
+
if (n["type"] === "NewExpression" &&
|
|
226
|
+
n["callee"]?.["name"] === "Function") {
|
|
227
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("new Function() is not allowed in Code nodes.", "GRAPH_CODE_SANDBOX_FORBIDDEN_TOKEN", { token: "Function" });
|
|
228
|
+
}
|
|
229
|
+
if (n["type"] === "CallExpression" &&
|
|
230
|
+
n["callee"]?.["name"] === "eval") {
|
|
231
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("eval() is not allowed in Code nodes.", "GRAPH_CODE_SANDBOX_FORBIDDEN_TOKEN", { token: "eval" });
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Determines whether the given code contains a top-level `return` statement.
|
|
237
|
+
*
|
|
238
|
+
* When the code has no `return`, it is treated as a single expression and
|
|
239
|
+
* wrapped in `return (...)` so the user can write `($input.a + $input.b)`
|
|
240
|
+
* instead of `return $input.a + $input.b`.
|
|
241
|
+
*/
|
|
242
|
+
function hasReturnStatement(code) {
|
|
243
|
+
return /\breturn\b[\s;]/.test(code);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* `isolated-vm`-backed {@link CodeSandboxEvaluator}.
|
|
247
|
+
*
|
|
248
|
+
* Runs user code in a separate V8 isolate with its own heap, transpiling
|
|
249
|
+
* TypeScript, statically validating the AST, and executing under a timeout and
|
|
250
|
+
* memory limit. See the module doc for the full pipeline and restrictions.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```ts
|
|
254
|
+
* const evaluator = new IsolatedVmCodeSandboxEvaluator();
|
|
255
|
+
* await evaluator.initialize({ timeoutMs: 5000, memoryMb: 128 });
|
|
256
|
+
* const result = await evaluator.evaluate({
|
|
257
|
+
* code: "return $input.a + $input.b;",
|
|
258
|
+
* input: { a: 2, b: 3 },
|
|
259
|
+
* });
|
|
260
|
+
* // result === 5
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
class IsolatedVmCodeSandboxEvaluator extends core_1.ClientBasedService {
|
|
264
|
+
constructor() {
|
|
265
|
+
super();
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Resolves the evaluator's config and `isolated-vm` client.
|
|
269
|
+
*
|
|
270
|
+
* @param args - An optional config, optionally followed by a decaf `Context`.
|
|
271
|
+
* @returns The resolved config and the `isolated-vm` module.
|
|
272
|
+
*/
|
|
273
|
+
async initialize(...args) {
|
|
274
|
+
const config = (args[0] ?? {});
|
|
275
|
+
const resolved = config && typeof config === "object" ? config : {};
|
|
276
|
+
this._config = resolved;
|
|
277
|
+
this._client = isolated_vm_1.default;
|
|
278
|
+
return { config: resolved, client: isolated_vm_1.default };
|
|
279
|
+
}
|
|
280
|
+
get defaultTimeoutMs() {
|
|
281
|
+
return this.config.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
282
|
+
}
|
|
283
|
+
get defaultMemoryMb() {
|
|
284
|
+
return this.config.memoryMb ?? DEFAULT_MEMORY_MB;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Runs the sandbox pipeline for one evaluation: transpiles TypeScript,
|
|
288
|
+
* statically validates the code against the import/require restrictions,
|
|
289
|
+
* builds a fresh V8 isolate with the `$input`/`$vars`/`$item`/`$index`/
|
|
290
|
+
* `$node` context variables, and executes under the configured timeout and
|
|
291
|
+
* memory limit.
|
|
292
|
+
*
|
|
293
|
+
* @param {CodeSandboxContext} ctx - Sandbox context carrying code, language, inputs, and limits.
|
|
294
|
+
* @param args - An optional decaf `Context` forwarded to `logCtx`.
|
|
295
|
+
* @return {Promise<unknown>} The evaluated code's return value.
|
|
296
|
+
* @throws {GraphExecutionError} When the code is empty or fails static validation, or when execution exceeds the timeout.
|
|
297
|
+
*/
|
|
298
|
+
async evaluate(ctx, ...args) {
|
|
299
|
+
(await this.logCtx(args, "evaluate", true)).for(this.evaluate);
|
|
300
|
+
const code = ctx.code;
|
|
301
|
+
if (!code || typeof code !== "string" || code.trim().length === 0) {
|
|
302
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Code sandbox received empty code", "GRAPH_CODE_SANDBOX_EMPTY_CODE");
|
|
303
|
+
}
|
|
304
|
+
const language = ctx.language ?? "javascript";
|
|
305
|
+
const jsCode = transpileTypeScript(code, language);
|
|
306
|
+
validateSafeCode(jsCode);
|
|
307
|
+
const expressionMode = !hasReturnStatement(jsCode);
|
|
308
|
+
const codeForMode = expressionMode
|
|
309
|
+
? jsCode.replace(/[\s;]+$/, "")
|
|
310
|
+
: jsCode;
|
|
311
|
+
const sandboxVars = {
|
|
312
|
+
$input: ctx.input ?? {},
|
|
313
|
+
$vars: ctx.vars ?? {},
|
|
314
|
+
$item: ctx.item,
|
|
315
|
+
$index: ctx.index,
|
|
316
|
+
$node: ctx.nodes ?? {},
|
|
317
|
+
$output: undefined,
|
|
318
|
+
};
|
|
319
|
+
const paramNames = Object.keys(sandboxVars);
|
|
320
|
+
// const paramValues = Object.values(sandboxVars);
|
|
321
|
+
// Build the wrapped script. The user code runs inside an async function
|
|
322
|
+
// with named parameters. The result is JSON-stringified inside the isolate
|
|
323
|
+
// so it can be transferred back as a plain string (isolated-vm cannot
|
|
324
|
+
// deep-copy arbitrary objects via `script.run()` with `promise: true`).
|
|
325
|
+
// The spec requires JSON-serializable output, so this is safe.
|
|
326
|
+
const userBody = expressionMode ? `return (${codeForMode});` : codeForMode;
|
|
327
|
+
const wrapped = `"use strict";\nasync function __userFunction(${paramNames.join(", ")}) {\n${userBody}\n}\n__userFunction(${paramNames.join(", ")}).then(function(__r) { return JSON.stringify({ v: __r }); });`;
|
|
328
|
+
const isolate = new isolated_vm_1.default.Isolate({ memoryLimit: this.defaultMemoryMb });
|
|
329
|
+
const context = await isolate.createContext();
|
|
330
|
+
try {
|
|
331
|
+
const jail = context.global;
|
|
332
|
+
// Inject a `console` object into the isolate whose methods forward to
|
|
333
|
+
// the Context logger (bound to runId). The logger is called via
|
|
334
|
+
// `ivm.Reference` so the isolate can invoke host functions without
|
|
335
|
+
// leaking the host heap. The reference is passed to the isolate as an
|
|
336
|
+
// `evalClosure` argument (out of band), NOT set on the sandbox global,
|
|
337
|
+
// so user code cannot reach the host logger through a named or computed
|
|
338
|
+
// global lookup.
|
|
339
|
+
if (ctx.logger) {
|
|
340
|
+
await this.injectConsole(context, ctx.logger);
|
|
341
|
+
}
|
|
342
|
+
for (const [name, value] of Object.entries(sandboxVars)) {
|
|
343
|
+
await jail.set(name, new isolated_vm_1.default.ExternalCopy(value === undefined ? null : value).copyInto());
|
|
344
|
+
}
|
|
345
|
+
let script;
|
|
346
|
+
try {
|
|
347
|
+
script = await isolate.compileScript(wrapped, {
|
|
348
|
+
filename: "graph-code-node.js",
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
catch (err) {
|
|
352
|
+
if (expressionMode) {
|
|
353
|
+
const fallbackBody = codeForMode;
|
|
354
|
+
const fallbackWrapped = `"use strict";\nasync function __userFunction(${paramNames.join(", ")}) {\n${fallbackBody}\n}\n__userFunction(${paramNames.join(", ")}).then(function(__r) { return JSON.stringify({ v: __r }); });`;
|
|
355
|
+
try {
|
|
356
|
+
script = await isolate.compileScript(fallbackWrapped, {
|
|
357
|
+
filename: "graph-code-node.js",
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
catch (fallbackErr) {
|
|
361
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code failed to compile: ${fallbackErr.message}`, "GRAPH_CODE_SANDBOX_COMPILE_ERROR", { code: jsCode, error: fallbackErr.message });
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code failed to compile: ${err.message}`, "GRAPH_CODE_SANDBOX_COMPILE_ERROR", { code: jsCode, error: err.message });
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const timeoutMs = ctx.timeoutMs ?? this.defaultTimeoutMs;
|
|
369
|
+
let rawResult;
|
|
370
|
+
try {
|
|
371
|
+
rawResult = await this.runBounded(script, context, timeoutMs, ctx.abortSignal);
|
|
372
|
+
}
|
|
373
|
+
catch (err) {
|
|
374
|
+
if (err instanceof GraphExecutionError_js_1.GraphExecutionError)
|
|
375
|
+
throw err;
|
|
376
|
+
const msg = err.message;
|
|
377
|
+
if (msg.includes("timed out") || msg.includes("timeout")) {
|
|
378
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code execution timed out after ${timeoutMs} ms`, "GRAPH_CODE_SANDBOX_TIMEOUT", { timeoutMs });
|
|
379
|
+
}
|
|
380
|
+
if (msg.includes("memory") || msg.includes("heap")) {
|
|
381
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code exceeded the memory limit of ${this.defaultMemoryMb} MB`, "GRAPH_CODE_SANDBOX_MEMORY_LIMIT", { memoryMb: this.defaultMemoryMb });
|
|
382
|
+
}
|
|
383
|
+
throw new GraphExecutionError_js_1.GraphExecutionError(`Code execution failed: ${msg}`, "GRAPH_CODE_SANDBOX_RUNTIME_ERROR", { code: jsCode, error: msg });
|
|
384
|
+
}
|
|
385
|
+
// The script returns a JSON string `{"v": <result>}`. Parse it back.
|
|
386
|
+
if (typeof rawResult !== "string") {
|
|
387
|
+
throw new GraphExecutionError_js_1.GraphExecutionError("Code sandbox returned an unexpected non-string result", "GRAPH_CODE_SANDBOX_UNEXPECTED_RESULT", { result: rawResult });
|
|
388
|
+
}
|
|
389
|
+
return JSON.parse(rawResult).v;
|
|
390
|
+
}
|
|
391
|
+
finally {
|
|
392
|
+
context.release();
|
|
393
|
+
isolate.dispose();
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
// The in-isolate `timeout` only bounds the synchronous execution of the
|
|
397
|
+
// script; a pending async continuation such as
|
|
398
|
+
// `await new Promise(function () {})` never settles. Race the isolate promise
|
|
399
|
+
// against a host watchdog (and the run abort signal) so a never-settling body
|
|
400
|
+
// rejects, letting `evaluate`'s `finally` dispose the isolate instead of
|
|
401
|
+
// leaking it and hanging the caller forever.
|
|
402
|
+
async runBounded(script, context, timeoutMs, abortSignal) {
|
|
403
|
+
const execution = script.run(context, {
|
|
404
|
+
timeout: timeoutMs,
|
|
405
|
+
promise: true,
|
|
406
|
+
});
|
|
407
|
+
// The host timer/abort can win while the isolate promise is still pending;
|
|
408
|
+
// swallow the rejection that disposing the isolate then produces.
|
|
409
|
+
execution.catch(() => undefined);
|
|
410
|
+
const racers = [execution];
|
|
411
|
+
let timer;
|
|
412
|
+
let removeAbortListener;
|
|
413
|
+
try {
|
|
414
|
+
racers.push(new Promise((_, reject) => {
|
|
415
|
+
timer = setTimeout(() => {
|
|
416
|
+
reject(new GraphExecutionError_js_1.GraphExecutionError(`Code execution timed out after ${timeoutMs} ms`, "GRAPH_CODE_SANDBOX_TIMEOUT", { timeoutMs }));
|
|
417
|
+
}, timeoutMs + HOST_TIMEOUT_GRACE_MS);
|
|
418
|
+
}));
|
|
419
|
+
if (abortSignal) {
|
|
420
|
+
racers.push(new Promise((_, reject) => {
|
|
421
|
+
const onAbort = () => {
|
|
422
|
+
const timedOut = abortSignal.reason === "timeout";
|
|
423
|
+
reject(new GraphExecutionError_js_1.GraphExecutionError(timedOut
|
|
424
|
+
? `Code execution timed out after ${timeoutMs} ms`
|
|
425
|
+
: "Code execution aborted", timedOut
|
|
426
|
+
? "GRAPH_CODE_SANDBOX_TIMEOUT"
|
|
427
|
+
: "GRAPH_CODE_SANDBOX_ABORTED", { timeoutMs, reason: abortSignal.reason }));
|
|
428
|
+
};
|
|
429
|
+
if (abortSignal.aborted) {
|
|
430
|
+
onAbort();
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
abortSignal.addEventListener("abort", onAbort, { once: true });
|
|
434
|
+
removeAbortListener = () => abortSignal.removeEventListener("abort", onAbort);
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
return await Promise.race(racers);
|
|
438
|
+
}
|
|
439
|
+
finally {
|
|
440
|
+
if (timer)
|
|
441
|
+
clearTimeout(timer);
|
|
442
|
+
removeAbortListener?.();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Injects a `console` object into the isolate whose methods forward to the
|
|
447
|
+
* Context logger (bound to `runId`).
|
|
448
|
+
*
|
|
449
|
+
* Every standard `console.*` method is supported:
|
|
450
|
+
* `log`, `info`, `warn`, `error`, `debug`, `trace`, `dir`, `dirxml`,
|
|
451
|
+
* `table`, `group`, `groupCollapsed`, `groupEnd`, `time`, `timeEnd`,
|
|
452
|
+
* `timeLog`, `assert`, `count`, `countReset`, `clear`.
|
|
453
|
+
*
|
|
454
|
+
* Arguments are serialised inside the isolate (via `JSON.stringify` with a
|
|
455
|
+
* safe fallback) before being passed across the isolate boundary, because
|
|
456
|
+
* `isolated-vm` cannot copy arbitrary host objects.
|
|
457
|
+
*
|
|
458
|
+
* The dispatch reference is bound to the evaluator through the `evalClosure`
|
|
459
|
+
* argument list rather than written onto the sandbox global: the closure body
|
|
460
|
+
* receives it as `$0`, which is a lexical parameter and therefore not
|
|
461
|
+
* reachable by user code as a global (named or computed).
|
|
462
|
+
*
|
|
463
|
+
* @param context - The isolate context (for running the init closure).
|
|
464
|
+
* @param logger - The Context logger that receives the forwarded calls.
|
|
465
|
+
*/
|
|
466
|
+
async injectConsole(context, logger) {
|
|
467
|
+
const dispatch = new isolated_vm_1.default.Reference(function (level, argsJson) {
|
|
468
|
+
let parsed;
|
|
469
|
+
try {
|
|
470
|
+
parsed = JSON.parse(argsJson);
|
|
471
|
+
}
|
|
472
|
+
catch {
|
|
473
|
+
parsed = [argsJson];
|
|
474
|
+
}
|
|
475
|
+
const msg = parsed
|
|
476
|
+
.map((a) => (typeof a === "string" ? a : JSON.stringify(a)))
|
|
477
|
+
.join(" ");
|
|
478
|
+
const meta = parsed.length === 1 ? parsed[0] : parsed;
|
|
479
|
+
switch (level) {
|
|
480
|
+
case "log":
|
|
481
|
+
case "info":
|
|
482
|
+
logger.info(msg, meta);
|
|
483
|
+
break;
|
|
484
|
+
case "warn":
|
|
485
|
+
logger.warn(msg, meta);
|
|
486
|
+
break;
|
|
487
|
+
case "error":
|
|
488
|
+
logger.error(msg, meta);
|
|
489
|
+
break;
|
|
490
|
+
case "debug":
|
|
491
|
+
logger.debug(msg, meta);
|
|
492
|
+
break;
|
|
493
|
+
case "trace":
|
|
494
|
+
logger.trace(msg, meta);
|
|
495
|
+
break;
|
|
496
|
+
case "dir":
|
|
497
|
+
case "dirxml":
|
|
498
|
+
case "table":
|
|
499
|
+
logger.debug(msg, meta);
|
|
500
|
+
break;
|
|
501
|
+
case "group":
|
|
502
|
+
case "groupCollapsed":
|
|
503
|
+
logger.debug(`[group] ${msg}`, meta);
|
|
504
|
+
break;
|
|
505
|
+
case "groupEnd":
|
|
506
|
+
logger.debug("[groupEnd]", undefined);
|
|
507
|
+
break;
|
|
508
|
+
case "time":
|
|
509
|
+
case "timeEnd":
|
|
510
|
+
case "timeLog":
|
|
511
|
+
logger.debug(`[${level}] ${msg}`, meta);
|
|
512
|
+
break;
|
|
513
|
+
case "assert":
|
|
514
|
+
if (!parsed[0])
|
|
515
|
+
logger.error(`Assertion failed: ${msg}`, meta);
|
|
516
|
+
break;
|
|
517
|
+
case "count":
|
|
518
|
+
case "countReset":
|
|
519
|
+
logger.debug(`[${level}] ${msg}`, meta);
|
|
520
|
+
break;
|
|
521
|
+
case "clear":
|
|
522
|
+
break;
|
|
523
|
+
default:
|
|
524
|
+
logger.info(msg, meta);
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
// The dispatch reference is delivered as the closure's `$0` parameter, so
|
|
528
|
+
// it is lexical to `__call` and never present on the sandbox global. The
|
|
529
|
+
// isolate holds its own reference to the host function, so `dispatch.release()`
|
|
530
|
+
// below only frees the host-side handle; user code can only reach the
|
|
531
|
+
// `console.*` wrappers, which pin the level.
|
|
532
|
+
await context.evalClosure(`
|
|
533
|
+
function __ser() {
|
|
534
|
+
var out = [];
|
|
535
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
536
|
+
var a = arguments[i];
|
|
537
|
+
try { out.push(typeof a === 'object' ? JSON.parse(JSON.stringify(a)) : a); }
|
|
538
|
+
catch (e) { out.push(String(a)); }
|
|
539
|
+
}
|
|
540
|
+
return JSON.stringify(out);
|
|
541
|
+
}
|
|
542
|
+
function __call(level) {
|
|
543
|
+
return function() {
|
|
544
|
+
$0.applySync(undefined, [level, __ser.apply(null, arguments)]);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
globalThis.console = {
|
|
548
|
+
log: __call('log'),
|
|
549
|
+
info: __call('info'),
|
|
550
|
+
warn: __call('warn'),
|
|
551
|
+
error: __call('error'),
|
|
552
|
+
debug: __call('debug'),
|
|
553
|
+
trace: __call('trace'),
|
|
554
|
+
dir: __call('dir'),
|
|
555
|
+
dirxml: __call('dirxml'),
|
|
556
|
+
table: __call('table'),
|
|
557
|
+
group: __call('group'),
|
|
558
|
+
groupCollapsed: __call('groupCollapsed'),
|
|
559
|
+
groupEnd: __call('groupEnd'),
|
|
560
|
+
time: __call('time'),
|
|
561
|
+
timeEnd: __call('timeEnd'),
|
|
562
|
+
timeLog: __call('timeLog'),
|
|
563
|
+
assert: __call('assert'),
|
|
564
|
+
count: __call('count'),
|
|
565
|
+
countReset: __call('countReset'),
|
|
566
|
+
clear: __call('clear')
|
|
567
|
+
};
|
|
568
|
+
`, [dispatch]);
|
|
569
|
+
dispatch.release();
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
exports.IsolatedVmCodeSandboxEvaluator = IsolatedVmCodeSandboxEvaluator;
|
|
573
|
+
//# sourceMappingURL=IsolatedVmCodeSandboxEvaluator.js.map
|
|
574
|
+
//# sourceMappingURL=IsolatedVmCodeSandboxEvaluator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine/execution/IsolatedVmCodeSandboxEvaluator.cjs","sourceRoot":"","sources":["engine/execution/IsolatedVmCodeSandboxEvaluator.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,8DAA8B;AAC9B,6CAA+B;AAC/B,iDAAmC;AACnC,+CAAiC;AACjC,yCAAqD;AACrD,+EAAyE;AACzE;;GAEG;AACH,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC;;GAEG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B;;GAEG;AACH,MAAM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AAC;oBACnD,MAAM;gBACV,KAAK,OAAO,CAAC;gBACb,KAAK,YAAY;oBACb,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC;oBACxC,MAAM;gBACV,KAAK,OAAO;oBACR,MAAM;gBACV;oBACI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC/B,CAAC;QACL,CAAC,CAAC,CAAC;QACH,0EAA0E;QAC1E,yEAAyE;QACzE,gFAAgF;QAChF,sEAAsE;QACtE,6CAA6C;QAC7C,MAAM,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoC3B,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;QACb,QAAQ,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACJ;AApTD,wEAoTC;AACD,0DAA0D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module as-graph/execution
|
|
19
|
+
* @summary Graph execution context and executor interface.
|
|
20
|
+
* @description Re-exports the graph execution context and node executor interface.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GraphExecutionContext.cjs"), exports);
|
|
23
|
+
__exportStar(require("./GraphNodeExecutor.cjs"), exports);
|
|
24
|
+
__exportStar(require("./GraphExecutionResult.cjs"), exports);
|
|
25
|
+
__exportStar(require("./GraphExecutionFrame.cjs"), exports);
|
|
26
|
+
__exportStar(require("./GraphExecutionEngine.cjs"), exports);
|
|
27
|
+
__exportStar(require("./CodeSandboxEvaluator.cjs"), exports);
|
|
28
|
+
__exportStar(require("./IsolatedVmCodeSandboxEvaluator.cjs"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine/execution/index.cjs","sourceRoot":"","sources":["engine/execution/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,6DAA2C;AAC3C,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,sEAAoD;AACpD,iCAAiC"}
|