@decaf-ts/integrations 0.10.5 → 0.11.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/README.md +77 -5
- package/dist/integrations.cjs +1 -1
- package/dist/integrations.cjs.map +1 -1
- package/dist/integrations.js +1 -1
- package/dist/integrations.js.map +1 -1
- package/docker/dragonfly-compose.yml +19 -0
- package/lib/cjs/blob/core/BlobStoreFactory.cjs +0 -4
- package/lib/cjs/blob/core/BlobStoreFactory.cjs.map +1 -1
- package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs +214 -0
- package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs.map +1 -0
- package/lib/cjs/feature-flags/index.cjs +1 -0
- package/lib/cjs/feature-flags/index.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/loader/ObjectLoader.cjs +95 -11
- package/lib/cjs/loader/ObjectLoader.cjs.map +1 -1
- package/lib/cjs/loader/assets.cjs +160 -0
- package/lib/cjs/loader/assets.cjs.map +1 -0
- package/lib/cjs/loader/config.cjs +241 -0
- package/lib/cjs/loader/config.cjs.map +1 -0
- package/lib/cjs/loader/families.cjs +27 -12
- package/lib/cjs/loader/families.cjs.map +1 -1
- package/lib/cjs/loader/index.cjs +3 -0
- package/lib/cjs/loader/index.cjs.map +1 -1
- package/lib/cjs/loader/nest.cjs +331 -0
- package/lib/cjs/loader/nest.cjs.map +1 -0
- package/lib/cjs/redis/RedisContextLock.cjs +185 -0
- package/lib/cjs/redis/RedisContextLock.cjs.map +1 -0
- package/lib/cjs/redis/RedisDispatch.cjs +132 -0
- package/lib/cjs/redis/RedisDispatch.cjs.map +1 -0
- package/lib/cjs/redis/RedisPaginator.cjs +95 -0
- package/lib/cjs/redis/RedisPaginator.cjs.map +1 -0
- package/lib/cjs/redis/RedisStatement.cjs +433 -0
- package/lib/cjs/redis/RedisStatement.cjs.map +1 -0
- package/lib/cjs/redis/adapter.cjs +709 -0
- package/lib/cjs/redis/adapter.cjs.map +1 -0
- package/lib/cjs/redis/constants.cjs +31 -0
- package/lib/cjs/redis/constants.cjs.map +1 -0
- package/lib/cjs/redis/handlers.cjs +27 -0
- package/lib/cjs/redis/handlers.cjs.map +1 -0
- package/lib/cjs/redis/index.cjs +36 -0
- package/lib/cjs/redis/index.cjs.map +1 -0
- package/lib/cjs/redis/serialization.cjs +63 -0
- package/lib/cjs/redis/serialization.cjs.map +1 -0
- package/lib/cjs/redis/types.cjs.map +1 -0
- package/lib/esm/blob/core/BlobStoreFactory.js +0 -4
- package/lib/esm/blob/core/BlobStoreFactory.js.map +1 -1
- package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js +203 -0
- package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js.map +1 -0
- package/lib/esm/feature-flags/index.js +1 -0
- package/lib/esm/feature-flags/index.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/loader/ObjectLoader.js +94 -11
- package/lib/esm/loader/ObjectLoader.js.map +1 -1
- package/lib/esm/loader/assets.js +155 -0
- package/lib/esm/loader/assets.js.map +1 -0
- package/lib/esm/loader/config.js +202 -0
- package/lib/esm/loader/config.js.map +1 -0
- package/lib/esm/loader/families.js +25 -10
- package/lib/esm/loader/families.js.map +1 -1
- package/lib/esm/loader/index.js +3 -0
- package/lib/esm/loader/index.js.map +1 -1
- package/lib/esm/loader/nest.js +292 -0
- package/lib/esm/loader/nest.js.map +1 -0
- package/lib/esm/redis/RedisContextLock.js +180 -0
- package/lib/esm/redis/RedisContextLock.js.map +1 -0
- package/lib/esm/redis/RedisDispatch.js +127 -0
- package/lib/esm/redis/RedisDispatch.js.map +1 -0
- package/lib/esm/redis/RedisPaginator.js +90 -0
- package/lib/esm/redis/RedisPaginator.js.map +1 -0
- package/lib/esm/redis/RedisStatement.js +428 -0
- package/lib/esm/redis/RedisStatement.js.map +1 -0
- package/lib/esm/redis/adapter.js +704 -0
- package/lib/esm/redis/adapter.js.map +1 -0
- package/lib/esm/redis/constants.js +27 -0
- package/lib/esm/redis/constants.js.map +1 -0
- package/lib/esm/redis/handlers.js +23 -0
- package/lib/esm/redis/handlers.js.map +1 -0
- package/lib/esm/redis/index.js +19 -0
- package/lib/esm/redis/index.js.map +1 -0
- package/lib/esm/redis/serialization.js +57 -0
- package/lib/esm/redis/serialization.js.map +1 -0
- package/lib/esm/{graph/engine → redis}/types.js.map +1 -1
- package/lib/types/blob/core/BlobTypes.d.cts +1 -14
- package/lib/types/blob/core/BlobTypes.d.mts +1 -14
- package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.cts +116 -0
- package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.mts +116 -0
- package/lib/types/feature-flags/index.d.cts +1 -0
- package/lib/types/feature-flags/index.d.mts +1 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/loader/ObjectLoader.d.cts +46 -2
- package/lib/types/loader/ObjectLoader.d.mts +46 -2
- package/lib/types/loader/assets.d.cts +43 -0
- package/lib/types/loader/assets.d.mts +43 -0
- package/lib/types/loader/config.d.cts +84 -0
- package/lib/types/loader/config.d.mts +84 -0
- package/lib/types/loader/families.d.cts +19 -7
- package/lib/types/loader/families.d.mts +19 -7
- package/lib/types/loader/index.d.cts +3 -0
- package/lib/types/loader/index.d.mts +3 -0
- package/lib/types/loader/nest.d.cts +102 -0
- package/lib/types/loader/nest.d.mts +102 -0
- package/lib/types/loader/types.d.cts +27 -1
- package/lib/types/loader/types.d.mts +27 -1
- package/lib/types/redis/RedisContextLock.d.cts +106 -0
- package/lib/types/redis/RedisContextLock.d.mts +106 -0
- package/lib/types/redis/RedisDispatch.d.cts +56 -0
- package/lib/types/redis/RedisDispatch.d.mts +56 -0
- package/lib/types/redis/RedisPaginator.d.cts +58 -0
- package/lib/types/redis/RedisPaginator.d.mts +58 -0
- package/lib/types/redis/RedisStatement.d.cts +175 -0
- package/lib/types/redis/RedisStatement.d.mts +175 -0
- package/lib/types/redis/adapter.d.cts +288 -0
- package/lib/types/redis/adapter.d.mts +288 -0
- package/lib/types/redis/constants.d.cts +26 -0
- package/lib/types/redis/constants.d.mts +26 -0
- package/lib/types/redis/handlers.d.cts +20 -0
- package/lib/types/redis/handlers.d.mts +20 -0
- package/lib/types/redis/index.d.cts +17 -0
- package/lib/types/redis/index.d.mts +17 -0
- package/lib/types/redis/serialization.d.cts +35 -0
- package/lib/types/redis/serialization.d.mts +35 -0
- package/lib/types/redis/types.d.cts +72 -0
- package/lib/types/redis/types.d.mts +72 -0
- package/package.json +17 -33
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +0 -30
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +0 -248
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs +0 -27
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs +0 -35
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs +0 -45
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs +0 -35
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/index.cjs +0 -29
- package/lib/cjs/blob/ipfs/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +0 -100
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +0 -29
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +0 -270
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +0 -169
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +0 -64
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +0 -17
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/index.cjs +0 -24
- package/lib/cjs/graph/engine/catalog/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/constants.cjs +0 -58
- package/lib/cjs/graph/engine/constants.cjs.map +0 -1
- package/lib/cjs/graph/engine/decorators.cjs +0 -4
- package/lib/cjs/graph/engine/decorators.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs +0 -37
- package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +0 -28
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +0 -18
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/index.cjs +0 -33
- package/lib/cjs/graph/engine/errors/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs +0 -40
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs +0 -37
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs +0 -4
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/index.cjs +0 -26
- package/lib/cjs/graph/engine/events/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +0 -24
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +0 -103
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs +0 -4
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +0 -112
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +0 -789
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +0 -32
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +0 -30
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs +0 -4
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs +0 -481
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +0 -47
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +0 -121
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/index.cjs +0 -34
- package/lib/cjs/graph/engine/execution/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/index.cjs +0 -86
- package/lib/cjs/graph/engine/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs +0 -87
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +0 -146
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs +0 -85
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs +0 -16
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +0 -102
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +0 -103
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/index.cjs +0 -29
- package/lib/cjs/graph/engine/loops/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs +0 -28
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs +0 -20
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +0 -34
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +0 -220
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/index.cjs +0 -27
- package/lib/cjs/graph/engine/pinning/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +0 -188
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs +0 -57
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/index.cjs +0 -29
- package/lib/cjs/graph/engine/planning/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +0 -57
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs +0 -27
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/index.cjs +0 -25
- package/lib/cjs/graph/engine/registry/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +0 -69
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +0 -291
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +0 -29
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs +0 -259
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +0 -69
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +0 -26
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/index.cjs +0 -26
- package/lib/cjs/graph/engine/runs/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/ownership.cjs +0 -34
- package/lib/cjs/graph/engine/runs/ownership.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/types.cjs.map +0 -1
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +0 -53
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +0 -1
- package/lib/cjs/graph/engine/snapshots/index.cjs +0 -24
- package/lib/cjs/graph/engine/snapshots/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs +0 -76
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs +0 -69
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/index.cjs +0 -28
- package/lib/cjs/graph/engine/store/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/types.cjs +0 -4
- package/lib/cjs/graph/engine/types.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +0 -142
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +0 -160
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +0 -29
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +0 -166
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +0 -86
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +0 -423
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs +0 -58
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +0 -4
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +0 -50
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +0 -4
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs +0 -52
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +0 -478
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/index.cjs +0 -37
- package/lib/cjs/graph/engine/validation/index.cjs.map +0 -1
- package/lib/cjs/graph/index.cjs +0 -30
- package/lib/cjs/graph/index.cjs.map +0 -1
- package/lib/cjs/graph/log/GraphRunLogger.cjs +0 -145
- package/lib/cjs/graph/log/GraphRunLogger.cjs.map +0 -1
- package/lib/cjs/graph/log/LogParameters.cjs +0 -73
- package/lib/cjs/graph/log/LogParameters.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +0 -266
- package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +0 -178
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +0 -75
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +0 -102
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +0 -270
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphResultService.cjs +0 -69
- package/lib/cjs/nest/graph/GraphResultService.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +0 -279
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunModel.cjs +0 -83
- package/lib/cjs/nest/graph/GraphRunModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunModelService.cjs +0 -121
- package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +0 -169
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +0 -162
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +0 -12
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +0 -23
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +0 -66
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs +0 -265
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +0 -1
- package/lib/cjs/nest/graph/index.cjs +0 -33
- package/lib/cjs/nest/graph/index.cjs.map +0 -1
- package/lib/cjs/nest/graph/main.cjs +0 -47
- package/lib/cjs/nest/graph/main.cjs.map +0 -1
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +0 -26
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +0 -1
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +0 -240
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +0 -1
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js +0 -23
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js +0 -30
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js +0 -40
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js +0 -30
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/index.js +0 -12
- package/lib/esm/blob/ipfs/index.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +0 -95
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +0 -22
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +0 -265
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +0 -162
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +0 -59
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +0 -12
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +0 -1
- package/lib/esm/graph/engine/catalog/index.js +0 -7
- package/lib/esm/graph/engine/catalog/index.js.map +0 -1
- package/lib/esm/graph/engine/constants.js +0 -62
- package/lib/esm/graph/engine/constants.js.map +0 -1
- package/lib/esm/graph/engine/decorators.js +0 -2
- package/lib/esm/graph/engine/decorators.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphBreakSignal.js +0 -32
- package/lib/esm/graph/engine/errors/GraphBreakSignal.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphCycleError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphCycleError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphExecutionError.js +0 -23
- package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphInputError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphInputError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphPinningError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphPinningError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphPortError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphPortError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +0 -13
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphStoreError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphStoreError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphTopologyError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphTopologyError.js.map +0 -1
- package/lib/esm/graph/engine/errors/index.js +0 -16
- package/lib/esm/graph/engine/errors/index.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js +0 -35
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js +0 -32
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js +0 -2
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js.map +0 -1
- package/lib/esm/graph/engine/events/index.js +0 -9
- package/lib/esm/graph/engine/events/index.js.map +0 -1
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +0 -19
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +0 -98
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js +0 -18
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +0 -107
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +0 -784
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +0 -27
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js +0 -26
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js +0 -2
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js +0 -440
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +0 -42
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +0 -116
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/index.js +0 -17
- package/lib/esm/graph/engine/execution/index.js.map +0 -1
- package/lib/esm/graph/engine/index.js +0 -69
- package/lib/esm/graph/engine/index.js.map +0 -1
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js +0 -82
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +0 -141
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js +0 -80
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js +0 -11
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js.map +0 -1
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +0 -97
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +0 -98
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/loops/index.js +0 -12
- package/lib/esm/graph/engine/loops/index.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js +0 -23
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js +0 -15
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +0 -29
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningService.js +0 -215
- package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +0 -1
- package/lib/esm/graph/engine/pinning/index.js +0 -10
- package/lib/esm/graph/engine/pinning/index.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +0 -9
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +0 -183
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphTopology.js +0 -52
- package/lib/esm/graph/engine/planning/GraphTopology.js.map +0 -1
- package/lib/esm/graph/engine/planning/index.js +0 -12
- package/lib/esm/graph/engine/planning/index.js.map +0 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +0 -52
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +0 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js +0 -22
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js.map +0 -1
- package/lib/esm/graph/engine/registry/index.js +0 -8
- package/lib/esm/graph/engine/registry/index.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +0 -64
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js +0 -286
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +0 -25
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunService.js +0 -254
- package/lib/esm/graph/engine/runs/GraphRunService.js.map +0 -1
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +0 -64
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +0 -1
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +0 -21
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +0 -1
- package/lib/esm/graph/engine/runs/index.js +0 -9
- package/lib/esm/graph/engine/runs/index.js.map +0 -1
- package/lib/esm/graph/engine/runs/ownership.js +0 -30
- package/lib/esm/graph/engine/runs/ownership.js.map +0 -1
- package/lib/esm/graph/engine/runs/types.js.map +0 -1
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +0 -48
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +0 -1
- package/lib/esm/graph/engine/snapshots/index.js +0 -7
- package/lib/esm/graph/engine/snapshots/index.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphCachedValue.js +0 -2
- package/lib/esm/graph/engine/store/GraphCachedValue.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueKey.js +0 -7
- package/lib/esm/graph/engine/store/GraphValueKey.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueStore.js +0 -71
- package/lib/esm/graph/engine/store/GraphValueStore.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js +0 -2
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js.map +0 -1
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js +0 -64
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js.map +0 -1
- package/lib/esm/graph/engine/store/index.js +0 -11
- package/lib/esm/graph/engine/store/index.js.map +0 -1
- package/lib/esm/graph/engine/types.js +0 -2
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +0 -137
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +0 -155
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +0 -24
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +0 -161
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +0 -81
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js +0 -416
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js +0 -53
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +0 -2
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js +0 -43
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js +0 -2
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValueValidator.js +0 -47
- package/lib/esm/graph/engine/validation/GraphValueValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +0 -472
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/index.js +0 -20
- package/lib/esm/graph/engine/validation/index.js.map +0 -1
- package/lib/esm/graph/index.js +0 -13
- package/lib/esm/graph/index.js.map +0 -1
- package/lib/esm/graph/log/GraphRunLogger.js +0 -140
- package/lib/esm/graph/log/GraphRunLogger.js.map +0 -1
- package/lib/esm/graph/log/LogParameters.js +0 -69
- package/lib/esm/graph/log/LogParameters.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionController.js +0 -257
- package/lib/esm/nest/graph/GraphExecutionController.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionModule.js +0 -137
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +0 -66
- package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +0 -95
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +0 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +0 -261
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +0 -1
- package/lib/esm/nest/graph/GraphResultService.js +0 -60
- package/lib/esm/nest/graph/GraphResultService.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunController.js +0 -270
- package/lib/esm/nest/graph/GraphRunController.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunModel.js +0 -74
- package/lib/esm/nest/graph/GraphRunModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunModelService.js +0 -112
- package/lib/esm/nest/graph/GraphRunModelService.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +0 -164
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowController.js +0 -153
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +0 -8
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowErrors.js +0 -18
- package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowModel.js +0 -57
- package/lib/esm/nest/graph/GraphWorkflowModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowService.js +0 -255
- package/lib/esm/nest/graph/GraphWorkflowService.js.map +0 -1
- package/lib/esm/nest/graph/index.js +0 -16
- package/lib/esm/nest/graph/index.js.map +0 -1
- package/lib/esm/nest/graph/main.js +0 -44
- package/lib/esm/nest/graph/main.js.map +0 -1
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +0 -24
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +0 -24
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +0 -61
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +0 -61
- package/lib/types/blob/ipfs/IpfsKeyIndex.d.cts +0 -9
- package/lib/types/blob/ipfs/IpfsKeyIndex.d.mts +0 -9
- package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.cts +0 -11
- package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.mts +0 -11
- package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.cts +0 -15
- package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.mts +0 -15
- package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.cts +0 -11
- package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.mts +0 -11
- package/lib/types/blob/ipfs/index.d.cts +0 -11
- package/lib/types/blob/ipfs/index.d.mts +0 -11
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +0 -17
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +0 -17
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +0 -13
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +0 -13
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +0 -71
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +0 -71
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +0 -42
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +0 -42
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +0 -22
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +0 -22
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +0 -68
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +0 -68
- package/lib/types/graph/engine/catalog/index.d.cts +0 -6
- package/lib/types/graph/engine/catalog/index.d.mts +0 -6
- package/lib/types/graph/engine/constants.d.cts +0 -59
- package/lib/types/graph/engine/constants.d.mts +0 -59
- package/lib/types/graph/engine/decorators.d.cts +0 -6
- package/lib/types/graph/engine/decorators.d.mts +0 -6
- package/lib/types/graph/engine/errors/GraphBreakSignal.d.cts +0 -28
- package/lib/types/graph/engine/errors/GraphBreakSignal.d.mts +0 -28
- package/lib/types/graph/engine/errors/GraphCycleError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphCycleError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphExecutionError.d.cts +0 -19
- package/lib/types/graph/engine/errors/GraphExecutionError.d.mts +0 -19
- package/lib/types/graph/engine/errors/GraphInputError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphInputError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphLoopLimitError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphLoopLimitError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphPinningError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphPinningError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphPortError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphPortError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +0 -9
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +0 -9
- package/lib/types/graph/engine/errors/GraphStoreError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphStoreError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphTopologyError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphTopologyError.d.mts +0 -12
- package/lib/types/graph/engine/errors/index.d.cts +0 -15
- package/lib/types/graph/engine/errors/index.d.mts +0 -15
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +0 -26
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +0 -26
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +0 -25
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +0 -25
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +0 -17
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +0 -17
- package/lib/types/graph/engine/events/index.d.cts +0 -8
- package/lib/types/graph/engine/events/index.d.mts +0 -8
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +0 -22
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +0 -22
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +0 -65
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +0 -65
- package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.cts +0 -76
- package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.mts +0 -76
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +0 -74
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +0 -74
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +0 -251
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +0 -251
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +0 -30
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +0 -30
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +0 -13
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +0 -13
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +0 -31
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +0 -31
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.cts +0 -63
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.mts +0 -63
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +0 -25
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +0 -25
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +0 -43
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +0 -43
- package/lib/types/graph/engine/execution/index.d.cts +0 -16
- package/lib/types/graph/engine/execution/index.d.mts +0 -16
- package/lib/types/graph/engine/index.d.cts +0 -63
- package/lib/types/graph/engine/index.d.mts +0 -63
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +0 -36
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +0 -36
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +0 -35
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +0 -35
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +0 -40
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +0 -40
- package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.cts +0 -15
- package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.mts +0 -15
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +0 -22
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +0 -22
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +0 -26
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +0 -26
- package/lib/types/graph/engine/loops/index.d.cts +0 -11
- package/lib/types/graph/engine/loops/index.d.mts +0 -11
- package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.cts +0 -21
- package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.mts +0 -21
- package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.cts +0 -14
- package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.mts +0 -14
- package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.cts +0 -20
- package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.mts +0 -20
- package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +0 -70
- package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +0 -70
- package/lib/types/graph/engine/pinning/index.d.cts +0 -9
- package/lib/types/graph/engine/pinning/index.d.mts +0 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +0 -25
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +0 -25
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +0 -26
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +0 -26
- package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.cts +0 -13
- package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.mts +0 -13
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +0 -28
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +0 -28
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +0 -48
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +0 -48
- package/lib/types/graph/engine/planning/GraphTopology.d.cts +0 -23
- package/lib/types/graph/engine/planning/GraphTopology.d.mts +0 -23
- package/lib/types/graph/engine/planning/index.d.cts +0 -11
- package/lib/types/graph/engine/planning/index.d.mts +0 -11
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +0 -39
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +0 -39
- package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.cts +0 -21
- package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.mts +0 -21
- package/lib/types/graph/engine/registry/index.d.cts +0 -7
- package/lib/types/graph/engine/registry/index.d.mts +0 -7
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +0 -26
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +0 -26
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +0 -75
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +0 -75
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +0 -8
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +0 -8
- package/lib/types/graph/engine/runs/GraphRunService.d.cts +0 -93
- package/lib/types/graph/engine/runs/GraphRunService.d.mts +0 -93
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +0 -28
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +0 -28
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +0 -12
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +0 -12
- package/lib/types/graph/engine/runs/index.d.cts +0 -8
- package/lib/types/graph/engine/runs/index.d.mts +0 -8
- package/lib/types/graph/engine/runs/ownership.d.cts +0 -25
- package/lib/types/graph/engine/runs/ownership.d.mts +0 -25
- package/lib/types/graph/engine/runs/types.d.cts +0 -83
- package/lib/types/graph/engine/runs/types.d.mts +0 -83
- package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.cts +0 -10
- package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.mts +0 -10
- package/lib/types/graph/engine/snapshots/index.d.cts +0 -6
- package/lib/types/graph/engine/snapshots/index.d.mts +0 -6
- package/lib/types/graph/engine/store/GraphCachedValue.d.cts +0 -20
- package/lib/types/graph/engine/store/GraphCachedValue.d.mts +0 -20
- package/lib/types/graph/engine/store/GraphValueKey.d.cts +0 -18
- package/lib/types/graph/engine/store/GraphValueKey.d.mts +0 -18
- package/lib/types/graph/engine/store/GraphValueStore.d.cts +0 -41
- package/lib/types/graph/engine/store/GraphValueStore.d.mts +0 -41
- package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.cts +0 -32
- package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.mts +0 -32
- package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.cts +0 -33
- package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.mts +0 -33
- package/lib/types/graph/engine/store/index.d.cts +0 -10
- package/lib/types/graph/engine/store/index.d.mts +0 -10
- package/lib/types/graph/engine/types.d.cts +0 -208
- package/lib/types/graph/engine/types.d.mts +0 -208
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +0 -32
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +0 -32
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +0 -62
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +0 -62
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +0 -23
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +0 -23
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +0 -32
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +0 -32
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +0 -37
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +0 -37
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +0 -92
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +0 -92
- package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.cts +0 -39
- package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.mts +0 -39
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +0 -66
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +0 -66
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +0 -34
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +0 -34
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +0 -39
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +0 -39
- package/lib/types/graph/engine/validation/GraphValueValidator.d.cts +0 -27
- package/lib/types/graph/engine/validation/GraphValueValidator.d.mts +0 -27
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +0 -162
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +0 -162
- package/lib/types/graph/engine/validation/index.d.cts +0 -19
- package/lib/types/graph/engine/validation/index.d.mts +0 -19
- package/lib/types/graph/index.d.cts +0 -12
- package/lib/types/graph/index.d.mts +0 -12
- package/lib/types/graph/log/GraphRunLogger.d.cts +0 -76
- package/lib/types/graph/log/GraphRunLogger.d.mts +0 -76
- package/lib/types/graph/log/LogParameters.d.cts +0 -7
- package/lib/types/graph/log/LogParameters.d.mts +0 -7
- package/lib/types/nest/graph/GraphExecutionController.d.cts +0 -110
- package/lib/types/nest/graph/GraphExecutionController.d.mts +0 -110
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +0 -83
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +0 -83
- package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +0 -24
- package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +0 -24
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +0 -66
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +0 -66
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +0 -70
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +0 -70
- package/lib/types/nest/graph/GraphResultService.d.cts +0 -20
- package/lib/types/nest/graph/GraphResultService.d.mts +0 -20
- package/lib/types/nest/graph/GraphRunController.d.cts +0 -87
- package/lib/types/nest/graph/GraphRunController.d.mts +0 -87
- package/lib/types/nest/graph/GraphRunModel.d.cts +0 -22
- package/lib/types/nest/graph/GraphRunModel.d.mts +0 -22
- package/lib/types/nest/graph/GraphRunModelService.d.cts +0 -21
- package/lib/types/nest/graph/GraphRunModelService.d.mts +0 -21
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +0 -28
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +0 -28
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +0 -62
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +0 -62
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +0 -33
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +0 -33
- package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +0 -13
- package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +0 -13
- package/lib/types/nest/graph/GraphWorkflowModel.d.cts +0 -24
- package/lib/types/nest/graph/GraphWorkflowModel.d.mts +0 -24
- package/lib/types/nest/graph/GraphWorkflowService.d.cts +0 -54
- package/lib/types/nest/graph/GraphWorkflowService.d.mts +0 -54
- package/lib/types/nest/graph/index.d.cts +0 -15
- package/lib/types/nest/graph/index.d.mts +0 -15
- package/lib/types/nest/graph/main.d.cts +0 -1
- package/lib/types/nest/graph/main.d.mts +0 -1
- /package/lib/cjs/{graph/engine/runs → redis}/types.cjs +0 -0
- /package/lib/esm/{graph/engine/runs → redis}/types.js +0 -0
|
@@ -1,784 +0,0 @@
|
|
|
1
|
-
import { GRAPH_DEFAULT_CONCURRENCY, GRAPH_WORKFLOW_BOUNDARY, } from "./../constants.js";
|
|
2
|
-
import { GraphExecutionEventType, GraphExecutionStatus, GraphVisualState, } from "@decaf-ts/ui-decorators/graph";
|
|
3
|
-
import { GraphExecutionError, GraphRunCancelledError } from "./../errors/index.js";
|
|
4
|
-
import { GraphExecutionEventEmitter } from "./../events/GraphExecutionEventEmitter.js";
|
|
5
|
-
import { GraphExecutionEventFactory } from "./../events/GraphExecutionEventFactory.js";
|
|
6
|
-
import { GraphExecutionPlanner } from "./../planning/GraphExecutionPlanner.js";
|
|
7
|
-
import { GraphWorkflowDocumentValidator, } from "./../validation/GraphWorkflowDocumentValidator.js";
|
|
8
|
-
import { GraphParameterValidator, isGraphCredentialReferenceLike, } from "./../validation/GraphParameterValidator.js";
|
|
9
|
-
import { GraphDocumentValidationError } from "./../validation/GraphValidationErrors.js";
|
|
10
|
-
import { InMemoryGraphValueStoreAdapter } from "./../store/InMemoryGraphValueStoreAdapter.js";
|
|
11
|
-
import { GraphValueStore } from "./../store/GraphValueStore.js";
|
|
12
|
-
import { GraphPinningService } from "./../pinning/GraphPinningService.js";
|
|
13
|
-
import { GraphPinningPolicy } from "./../pinning/GraphPinningPolicy.js";
|
|
14
|
-
import { GraphPinningDependencyResolver } from "./../pinning/GraphPinningDependencyResolver.js";
|
|
15
|
-
import { GraphExecutionContext } from "./GraphExecutionContext.js";
|
|
16
|
-
import { GraphExecutionFrame } from "./GraphExecutionFrame.js";
|
|
17
|
-
import { buildGraphExecutionResult } from "./GraphExecutionResult.js";
|
|
18
|
-
/**
|
|
19
|
-
* Reference graph execution engine.
|
|
20
|
-
*
|
|
21
|
-
* Executes a canonical {@link GraphWorkflowDocument} by:
|
|
22
|
-
* 1. Validating it through the nine-stage gate and resolving it against the
|
|
23
|
-
* backend catalogue (§4.8).
|
|
24
|
-
* 2. Planning the resolved workflow into topological layers (§4.9).
|
|
25
|
-
* 3. Seeding workflow inputs into the value store.
|
|
26
|
-
* 4. Executing nodes layer-by-layer with configurable concurrency, honouring
|
|
27
|
-
* disabled-node semantics.
|
|
28
|
-
* 5. Building node inputs from routed edges, literal bindings, allowed
|
|
29
|
-
* expressions, and manifest defaults; keeping configuration (parameters,
|
|
30
|
-
* credentials) separate from input data.
|
|
31
|
-
* 6. Validating executor outputs against the effective output manifest.
|
|
32
|
-
* 7. Routing values along data edges.
|
|
33
|
-
* 8. Emitting structured events through Decaf's Observable pipeline.
|
|
34
|
-
* 9. Returning a complete {@link GraphExecutionResult}.
|
|
35
|
-
*/
|
|
36
|
-
export class GraphExecutionEngine {
|
|
37
|
-
constructor(config) {
|
|
38
|
-
this.emitter = config.eventEmitter ?? new GraphExecutionEventEmitter();
|
|
39
|
-
this.planner = config.planner ?? new GraphExecutionPlanner();
|
|
40
|
-
this.valueStoreAdapter =
|
|
41
|
-
config.valueStoreAdapter ?? new InMemoryGraphValueStoreAdapter();
|
|
42
|
-
this.defaultOptions = config.defaultOptions ?? {};
|
|
43
|
-
this.codeSandboxEvaluator = config.codeSandboxEvaluator;
|
|
44
|
-
this.config = config;
|
|
45
|
-
this.documentValidator =
|
|
46
|
-
config.documentValidator ??
|
|
47
|
-
new GraphWorkflowDocumentValidator({
|
|
48
|
-
catalogue: config.catalogue ?? config.registry.catalog,
|
|
49
|
-
limits: config.documentLimits,
|
|
50
|
-
credentialAuthorizer: config.credentialAuthorizer,
|
|
51
|
-
});
|
|
52
|
-
config.onEngineCreated?.(this);
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Registers an observer on the engine's event pipeline.
|
|
56
|
-
*
|
|
57
|
-
* @param observer - The observer to register.
|
|
58
|
-
* @returns An unsubscribe function that removes the observer.
|
|
59
|
-
*/
|
|
60
|
-
observe(observer) {
|
|
61
|
-
return this.emitter.observe(observer);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Unregisters an observer from the engine's event pipeline.
|
|
65
|
-
*
|
|
66
|
-
* @param observer - The observer to remove.
|
|
67
|
-
*/
|
|
68
|
-
unObserve(observer) {
|
|
69
|
-
this.emitter.unObserve(observer);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Dispatches an event to all registered observers.
|
|
73
|
-
*
|
|
74
|
-
* @param event - The event to distribute.
|
|
75
|
-
*/
|
|
76
|
-
async updateObservers(event) {
|
|
77
|
-
await this.emitter.updateObservers(event);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Executes a canonical workflow document with the given inputs and options.
|
|
81
|
-
*
|
|
82
|
-
* Resolution happens internally (DECAF-50 §4.9): the document is validated
|
|
83
|
-
* through the nine-stage gate and resolved against the backend catalogue
|
|
84
|
-
* before planning. Decorated `GraphWorkflowDefinition` objects are NOT
|
|
85
|
-
* accepted — compile them with the §4.18 transition compiler first.
|
|
86
|
-
*
|
|
87
|
-
* @param document - The canonical workflow document to execute.
|
|
88
|
-
* @param inputs - Workflow input values keyed by input port id.
|
|
89
|
-
* @param options - Optional execution overrides (merged over the defaults).
|
|
90
|
-
* @returns The complete execution result, including a `runId`, per-node
|
|
91
|
-
* results, and workflow outputs (or the failure payload).
|
|
92
|
-
* @throws {GraphDocumentValidationError} when the document fails the
|
|
93
|
-
* nine-stage validation gate (carries every structured issue).
|
|
94
|
-
*/
|
|
95
|
-
async execute(document, inputs = {}, options = {}) {
|
|
96
|
-
const opts = this.mergeOptions(options);
|
|
97
|
-
this.assertNotAborted(opts);
|
|
98
|
-
const runId = opts.runId ?? this.generateRunId();
|
|
99
|
-
const path = opts.path ?? [];
|
|
100
|
-
const eventFactory = new GraphExecutionEventFactory();
|
|
101
|
-
const valueStore = new GraphValueStore(this.valueStoreAdapter);
|
|
102
|
-
valueStore.seedWorkflowInputs(this.withWorkflowInputDefaults(document, inputs));
|
|
103
|
-
const emitFn = async (partial) => {
|
|
104
|
-
await this.emitEvent(frame, {
|
|
105
|
-
type: partial.type ?? GraphExecutionEventType.NODE_OUTPUT,
|
|
106
|
-
runId,
|
|
107
|
-
parentRunId: opts.parentRunId,
|
|
108
|
-
workflowId: document.id || document.name,
|
|
109
|
-
nodeId: partial.nodeId,
|
|
110
|
-
path: partial.path ?? path,
|
|
111
|
-
...partial,
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
const emitValidationEvent = async (partial) => {
|
|
115
|
-
const event = eventFactory.create({
|
|
116
|
-
id: "",
|
|
117
|
-
sequence: 0,
|
|
118
|
-
timestamp: new Date(),
|
|
119
|
-
runId,
|
|
120
|
-
parentRunId: opts.parentRunId,
|
|
121
|
-
workflowId: document.id || document.name,
|
|
122
|
-
path,
|
|
123
|
-
...partial,
|
|
124
|
-
});
|
|
125
|
-
await this.emitter.updateObservers(event);
|
|
126
|
-
};
|
|
127
|
-
// ------------------------------------------------------------------
|
|
128
|
-
// Validation + resolution (nine-stage gate, §4.8) — internal.
|
|
129
|
-
// ------------------------------------------------------------------
|
|
130
|
-
await emitValidationEvent({
|
|
131
|
-
type: GraphExecutionEventType.VALIDATION_STARTED,
|
|
132
|
-
status: GraphExecutionStatus.PLANNING,
|
|
133
|
-
});
|
|
134
|
-
const validation = await this.documentValidator.validate(document);
|
|
135
|
-
if (!validation.valid || !validation.resolved) {
|
|
136
|
-
await emitValidationEvent({
|
|
137
|
-
type: GraphExecutionEventType.VALIDATION_FAILED,
|
|
138
|
-
status: GraphExecutionStatus.FAILED,
|
|
139
|
-
payload: { issues: validation.issues },
|
|
140
|
-
});
|
|
141
|
-
throw new GraphDocumentValidationError(`Graph workflow document '${document.id}' failed validation with ${validation.issues.length} issue(s)`, validation.issues);
|
|
142
|
-
}
|
|
143
|
-
await emitValidationEvent({
|
|
144
|
-
type: GraphExecutionEventType.VALIDATION_COMPLETED,
|
|
145
|
-
status: GraphExecutionStatus.PLANNING,
|
|
146
|
-
payload: { issues: validation.issues.length },
|
|
147
|
-
});
|
|
148
|
-
this.assertNotAborted(opts);
|
|
149
|
-
const plan = this.planner.plan(validation.resolved);
|
|
150
|
-
const frame = new GraphExecutionFrame(runId, plan, valueStore, eventFactory);
|
|
151
|
-
await this.emitEvent(frame, {
|
|
152
|
-
type: GraphExecutionEventType.WORKFLOW_STARTED,
|
|
153
|
-
runId,
|
|
154
|
-
parentRunId: opts.parentRunId,
|
|
155
|
-
workflowId: plan.workflowId,
|
|
156
|
-
path,
|
|
157
|
-
status: GraphExecutionStatus.RUNNING,
|
|
158
|
-
payload: { inputs },
|
|
159
|
-
});
|
|
160
|
-
await this.emitEvent(frame, {
|
|
161
|
-
type: GraphExecutionEventType.WORKFLOW_PLANNED,
|
|
162
|
-
runId,
|
|
163
|
-
parentRunId: opts.parentRunId,
|
|
164
|
-
workflowId: plan.workflowId,
|
|
165
|
-
path,
|
|
166
|
-
status: GraphExecutionStatus.PLANNING,
|
|
167
|
-
payload: { layers: plan.layers.length, nodes: plan.nodes.length },
|
|
168
|
-
});
|
|
169
|
-
try {
|
|
170
|
-
for (const layer of plan.layers) {
|
|
171
|
-
this.assertNotAborted(opts);
|
|
172
|
-
await this.executeLayer(frame, plan, layer.nodes, opts, emitFn);
|
|
173
|
-
}
|
|
174
|
-
this.assertNotAborted(opts);
|
|
175
|
-
const firstFailure = [...frame.nodeResults.values()].find((result) => result.status === GraphExecutionStatus.FAILED);
|
|
176
|
-
if (firstFailure?.error) {
|
|
177
|
-
throw new GraphExecutionError(firstFailure.error.message, firstFailure.error.code ?? "GRAPH_EXECUTION_ERROR", firstFailure.error.details);
|
|
178
|
-
}
|
|
179
|
-
frame.finish();
|
|
180
|
-
await this.emitEvent(frame, {
|
|
181
|
-
type: GraphExecutionEventType.WORKFLOW_COMPLETED,
|
|
182
|
-
runId,
|
|
183
|
-
parentRunId: opts.parentRunId,
|
|
184
|
-
workflowId: plan.workflowId,
|
|
185
|
-
path,
|
|
186
|
-
status: GraphExecutionStatus.SUCCEEDED,
|
|
187
|
-
payload: { outputs: valueStore.getWorkflowValues() },
|
|
188
|
-
});
|
|
189
|
-
return buildGraphExecutionResult(frame, document, inputs, GraphExecutionStatus.SUCCEEDED, opts.metadata);
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
frame.finish();
|
|
193
|
-
const errorPayload = this.toErrorPayload(error);
|
|
194
|
-
if (error instanceof GraphRunCancelledError ||
|
|
195
|
-
opts.abortSignal?.aborted === true) {
|
|
196
|
-
await this.emitEvent(frame, {
|
|
197
|
-
type: GraphExecutionEventType.WORKFLOW_CANCELLED,
|
|
198
|
-
runId,
|
|
199
|
-
parentRunId: opts.parentRunId,
|
|
200
|
-
workflowId: plan.workflowId,
|
|
201
|
-
path,
|
|
202
|
-
status: GraphExecutionStatus.CANCELLED,
|
|
203
|
-
error: errorPayload,
|
|
204
|
-
});
|
|
205
|
-
return buildGraphExecutionResult(frame, document, inputs, GraphExecutionStatus.CANCELLED, opts.metadata);
|
|
206
|
-
}
|
|
207
|
-
await this.emitEvent(frame, {
|
|
208
|
-
type: GraphExecutionEventType.WORKFLOW_FAILED,
|
|
209
|
-
runId,
|
|
210
|
-
parentRunId: opts.parentRunId,
|
|
211
|
-
workflowId: plan.workflowId,
|
|
212
|
-
path,
|
|
213
|
-
status: GraphExecutionStatus.FAILED,
|
|
214
|
-
error: errorPayload,
|
|
215
|
-
});
|
|
216
|
-
return buildGraphExecutionResult(frame, document, inputs, GraphExecutionStatus.FAILED, opts.metadata);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Pins a node and its upstream dependencies after a completed run.
|
|
221
|
-
*
|
|
222
|
-
* Delegates to {@link GraphPinningService}. The plan and result must come
|
|
223
|
-
* from a prior successful execution of the same workflow.
|
|
224
|
-
*/
|
|
225
|
-
async pinNode(options) {
|
|
226
|
-
const service = this.createPinningService();
|
|
227
|
-
await service.pinNode(options);
|
|
228
|
-
await this.emitPinningEvent(options.nodeId, GraphExecutionEventType.NODE_PINNED);
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Unpins a node by its fingerprint.
|
|
232
|
-
*/
|
|
233
|
-
async unpinNode(options) {
|
|
234
|
-
const service = this.createPinningService();
|
|
235
|
-
await service.unpinNode(options);
|
|
236
|
-
await this.emitPinningEvent(options.nodeId, GraphExecutionEventType.NODE_UNPINNED);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Creates a {@link GraphPinningService} backed by this engine's value store
|
|
240
|
-
* adapter.
|
|
241
|
-
*/
|
|
242
|
-
createPinningService() {
|
|
243
|
-
const store = new GraphValueStore(this.valueStoreAdapter);
|
|
244
|
-
return new GraphPinningService(store, new GraphPinningPolicy(), new GraphPinningDependencyResolver());
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Emits a pinning-related event to all observers.
|
|
248
|
-
*/
|
|
249
|
-
async emitPinningEvent(nodeId, type) {
|
|
250
|
-
const factory = new GraphExecutionEventFactory();
|
|
251
|
-
const event = factory.create({
|
|
252
|
-
id: "",
|
|
253
|
-
sequence: 0,
|
|
254
|
-
timestamp: new Date(),
|
|
255
|
-
runId: "pinning",
|
|
256
|
-
workflowId: "",
|
|
257
|
-
type,
|
|
258
|
-
nodeId,
|
|
259
|
-
path: [],
|
|
260
|
-
});
|
|
261
|
-
await this.emitter.updateObservers(event);
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Fills unprovided workflow inputs with their declared port defaults.
|
|
265
|
-
*/
|
|
266
|
-
withWorkflowInputDefaults(document, inputs) {
|
|
267
|
-
const seeded = { ...inputs };
|
|
268
|
-
for (const port of document.inputs) {
|
|
269
|
-
if (seeded[port.id] === undefined &&
|
|
270
|
-
port.defaultValue !== undefined) {
|
|
271
|
-
seeded[port.id] = port.defaultValue;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return seeded;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Executes a layer of nodes with the configured concurrency.
|
|
278
|
-
*/
|
|
279
|
-
async executeLayer(frame, plan, nodes, opts, emitFn) {
|
|
280
|
-
const concurrency = Math.max(1, opts.concurrency ?? GRAPH_DEFAULT_CONCURRENCY);
|
|
281
|
-
const queue = [...nodes];
|
|
282
|
-
while (queue.length > 0) {
|
|
283
|
-
const batch = queue.splice(0, concurrency);
|
|
284
|
-
await Promise.all(batch.map((node) => this.executeNode(frame, plan, node, opts, emitFn)));
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Executes a single node, honouring disabled-node semantics (§4.9).
|
|
289
|
-
*/
|
|
290
|
-
async executeNode(frame, plan, planNode, opts, emitFn) {
|
|
291
|
-
this.assertNotAborted(opts);
|
|
292
|
-
if (planNode.instance.disabled === true) {
|
|
293
|
-
await this.executeDisabledNode(frame, plan, planNode, opts);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
const startedAt = new Date();
|
|
297
|
-
const nodePath = [...(opts.path ?? []), planNode.id];
|
|
298
|
-
await this.emitEvent(frame, {
|
|
299
|
-
type: GraphExecutionEventType.NODE_STARTED,
|
|
300
|
-
runId: frame.runId,
|
|
301
|
-
workflowId: plan.workflowId,
|
|
302
|
-
nodeId: planNode.id,
|
|
303
|
-
path: nodePath,
|
|
304
|
-
status: GraphExecutionStatus.RUNNING,
|
|
305
|
-
});
|
|
306
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.RUNNING, GraphExecutionStatus.RUNNING);
|
|
307
|
-
const inputs = await this.resolveNodeInputs(frame, plan, planNode, opts);
|
|
308
|
-
// Cache-hit: check for a pinned value before executing the node
|
|
309
|
-
if (opts.usePinnedValues) {
|
|
310
|
-
const cached = await this.tryPinnedValue(frame, plan, planNode, inputs);
|
|
311
|
-
if (cached) {
|
|
312
|
-
frame.valueStore.setNodeOutputs(planNode.id, cached.outputs);
|
|
313
|
-
this.routeOutgoingEdges(frame, plan, planNode, cached.outputs);
|
|
314
|
-
const finishedAt = new Date();
|
|
315
|
-
const result = {
|
|
316
|
-
nodeId: planNode.id,
|
|
317
|
-
status: GraphExecutionStatus.CACHED,
|
|
318
|
-
inputs,
|
|
319
|
-
outputs: cached.outputs,
|
|
320
|
-
startedAt,
|
|
321
|
-
finishedAt,
|
|
322
|
-
fromCache: true,
|
|
323
|
-
pinned: true,
|
|
324
|
-
events: [],
|
|
325
|
-
};
|
|
326
|
-
frame.recordNodeResult(result);
|
|
327
|
-
await this.emitEvent(frame, {
|
|
328
|
-
type: GraphExecutionEventType.NODE_CACHE_HIT,
|
|
329
|
-
runId: frame.runId,
|
|
330
|
-
workflowId: plan.workflowId,
|
|
331
|
-
nodeId: planNode.id,
|
|
332
|
-
path: nodePath,
|
|
333
|
-
status: GraphExecutionStatus.CACHED,
|
|
334
|
-
payload: { outputs: cached.outputs },
|
|
335
|
-
});
|
|
336
|
-
await this.emitEvent(frame, {
|
|
337
|
-
type: GraphExecutionEventType.NODE_COMPLETED,
|
|
338
|
-
runId: frame.runId,
|
|
339
|
-
workflowId: plan.workflowId,
|
|
340
|
-
nodeId: planNode.id,
|
|
341
|
-
path: nodePath,
|
|
342
|
-
status: GraphExecutionStatus.SUCCEEDED,
|
|
343
|
-
payload: { outputs: cached.outputs, fromCache: true },
|
|
344
|
-
});
|
|
345
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.SUCCEEDED, GraphExecutionStatus.SUCCEEDED);
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
try {
|
|
350
|
-
const context = new GraphExecutionContext(frame.runId, opts.parentRunId, plan.workflowId, plan.resolved.document, planNode.instance, planNode.manifest, nodePath, emitFn, opts.metadata);
|
|
351
|
-
const request = {
|
|
352
|
-
nodeId: planNode.id,
|
|
353
|
-
kind: planNode.kind,
|
|
354
|
-
inputs,
|
|
355
|
-
parameters: planNode.instance.parameters ?? {},
|
|
356
|
-
credentials: this.collectCredentials(planNode),
|
|
357
|
-
metadata: planNode.instance.metadata,
|
|
358
|
-
};
|
|
359
|
-
const rawOutputs = await this.invokeExecutor(planNode, request, context);
|
|
360
|
-
const outputs = this.validateNodeOutputs(planNode, rawOutputs ?? {});
|
|
361
|
-
frame.valueStore.setNodeOutputs(planNode.id, outputs);
|
|
362
|
-
this.routeOutgoingEdges(frame, plan, planNode, outputs);
|
|
363
|
-
const finishedAt = new Date();
|
|
364
|
-
const result = {
|
|
365
|
-
nodeId: planNode.id,
|
|
366
|
-
status: GraphExecutionStatus.SUCCEEDED,
|
|
367
|
-
inputs,
|
|
368
|
-
outputs,
|
|
369
|
-
startedAt,
|
|
370
|
-
finishedAt,
|
|
371
|
-
events: [],
|
|
372
|
-
};
|
|
373
|
-
frame.recordNodeResult(result);
|
|
374
|
-
await this.emitEvent(frame, {
|
|
375
|
-
type: GraphExecutionEventType.NODE_COMPLETED,
|
|
376
|
-
runId: frame.runId,
|
|
377
|
-
workflowId: plan.workflowId,
|
|
378
|
-
nodeId: planNode.id,
|
|
379
|
-
path: nodePath,
|
|
380
|
-
status: GraphExecutionStatus.SUCCEEDED,
|
|
381
|
-
payload: { outputs },
|
|
382
|
-
});
|
|
383
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.SUCCEEDED, GraphExecutionStatus.SUCCEEDED);
|
|
384
|
-
}
|
|
385
|
-
catch (error) {
|
|
386
|
-
const finishedAt = new Date();
|
|
387
|
-
const errorPayload = this.toErrorPayload(error);
|
|
388
|
-
const result = {
|
|
389
|
-
nodeId: planNode.id,
|
|
390
|
-
status: GraphExecutionStatus.FAILED,
|
|
391
|
-
inputs,
|
|
392
|
-
error: errorPayload,
|
|
393
|
-
startedAt,
|
|
394
|
-
finishedAt,
|
|
395
|
-
events: [],
|
|
396
|
-
};
|
|
397
|
-
frame.recordNodeResult(result);
|
|
398
|
-
await this.emitEvent(frame, {
|
|
399
|
-
type: GraphExecutionEventType.NODE_FAILED,
|
|
400
|
-
runId: frame.runId,
|
|
401
|
-
workflowId: plan.workflowId,
|
|
402
|
-
nodeId: planNode.id,
|
|
403
|
-
path: nodePath,
|
|
404
|
-
status: GraphExecutionStatus.FAILED,
|
|
405
|
-
error: errorPayload,
|
|
406
|
-
});
|
|
407
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.FAILED, GraphExecutionStatus.FAILED);
|
|
408
|
-
if (opts.failFast ?? true)
|
|
409
|
-
throw error;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Applies the explicit disabled-node semantics (§4.9):
|
|
414
|
-
* `skip`, `passThroughFirstInput`, or `emitDefaults`, resolved from the
|
|
415
|
-
* instance metadata, document settings, and the default.
|
|
416
|
-
*/
|
|
417
|
-
async executeDisabledNode(frame, plan, planNode, opts) {
|
|
418
|
-
const startedAt = new Date();
|
|
419
|
-
const nodePath = [...(opts.path ?? []), planNode.id];
|
|
420
|
-
const behavior = GraphParameterValidator.disabledBehaviorOf(planNode.instance, plan.resolved.document.settings);
|
|
421
|
-
await this.emitEvent(frame, {
|
|
422
|
-
type: GraphExecutionEventType.NODE_SKIPPED,
|
|
423
|
-
runId: frame.runId,
|
|
424
|
-
workflowId: plan.workflowId,
|
|
425
|
-
nodeId: planNode.id,
|
|
426
|
-
path: nodePath,
|
|
427
|
-
status: GraphExecutionStatus.SKIPPED,
|
|
428
|
-
payload: { disabled: true, behavior },
|
|
429
|
-
});
|
|
430
|
-
if (behavior === "skip") {
|
|
431
|
-
const result = {
|
|
432
|
-
nodeId: planNode.id,
|
|
433
|
-
status: GraphExecutionStatus.SKIPPED,
|
|
434
|
-
inputs: {},
|
|
435
|
-
startedAt,
|
|
436
|
-
finishedAt: new Date(),
|
|
437
|
-
events: [],
|
|
438
|
-
};
|
|
439
|
-
frame.recordNodeResult(result);
|
|
440
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.SKIPPED, GraphExecutionStatus.SKIPPED);
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
const inputs = await this.resolveNodeInputs(frame, plan, planNode, opts);
|
|
444
|
-
let outputs;
|
|
445
|
-
if (behavior === "passThroughFirstInput") {
|
|
446
|
-
const firstIncoming = (plan.incomingByNode.get(planNode.id) ?? []).find((edge) => edge.type === "data");
|
|
447
|
-
const firstOutput = planNode.manifest.outputs[0]?.id ?? "value";
|
|
448
|
-
const value = firstIncoming
|
|
449
|
-
? frame.valueStore.getPort(firstIncoming.sourceNodeId, firstIncoming.sourcePort)
|
|
450
|
-
: Object.values(inputs)[0];
|
|
451
|
-
outputs = { [firstOutput]: value };
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
// emitDefaults — every declared output port is emitted with its
|
|
455
|
-
// declared default (absent a declared default, undefined).
|
|
456
|
-
outputs = {};
|
|
457
|
-
for (const port of planNode.manifest.outputs) {
|
|
458
|
-
outputs[port.id] = port.metadata?.["defaultValue"];
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
frame.valueStore.setNodeOutputs(planNode.id, outputs);
|
|
462
|
-
this.routeOutgoingEdges(frame, plan, planNode, outputs);
|
|
463
|
-
const result = {
|
|
464
|
-
nodeId: planNode.id,
|
|
465
|
-
status: GraphExecutionStatus.SUCCEEDED,
|
|
466
|
-
inputs,
|
|
467
|
-
outputs,
|
|
468
|
-
startedAt,
|
|
469
|
-
finishedAt: new Date(),
|
|
470
|
-
events: [],
|
|
471
|
-
};
|
|
472
|
-
frame.recordNodeResult(result);
|
|
473
|
-
this.emitNodeStateChanged(frame, plan, planNode, nodePath, GraphVisualState.SUCCEEDED, GraphExecutionStatus.SUCCEEDED);
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Invokes the node's catalogue-resolved executor (§4.9 request contract,
|
|
477
|
-
* post-cutover: every executor receives the full request with
|
|
478
|
-
* configuration and input data separated).
|
|
479
|
-
*/
|
|
480
|
-
async invokeExecutor(planNode, request, context) {
|
|
481
|
-
return await planNode.executor.execute(request, context);
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Validates executor outputs against the effective output manifest
|
|
485
|
-
* (§4.9): unknown outputs are rejected by default; missing required
|
|
486
|
-
* outputs fail the node. Lenient transition manifests (legacy
|
|
487
|
-
* executor-only registrations) are exempt until cutover.
|
|
488
|
-
*/
|
|
489
|
-
validateNodeOutputs(planNode, outputs) {
|
|
490
|
-
const manifest = planNode.manifest;
|
|
491
|
-
if (manifest.policies?.allowUnknownOutputs === true) {
|
|
492
|
-
return outputs;
|
|
493
|
-
}
|
|
494
|
-
const declaredOutputs = new Set(manifest.outputs.map((port) => port.id));
|
|
495
|
-
const unknownOutputs = Object.keys(outputs).filter((key) => !declaredOutputs.has(key));
|
|
496
|
-
if (unknownOutputs.length > 0) {
|
|
497
|
-
throw new GraphExecutionError(`Node '${planNode.id}' of kind '${planNode.kind}' produced unknown output(s): ${unknownOutputs.join(", ")}`, "GRAPH_OUTPUT_VALIDATION_FAILED", { nodeId: planNode.id, unknownOutputs });
|
|
498
|
-
}
|
|
499
|
-
const missingRequired = manifest.outputs
|
|
500
|
-
.filter((port) => port.required === true && !(port.id in outputs))
|
|
501
|
-
.map((port) => port.id);
|
|
502
|
-
if (missingRequired.length > 0) {
|
|
503
|
-
throw new GraphExecutionError(`Node '${planNode.id}' of kind '${planNode.kind}' did not produce required output(s): ${missingRequired.join(", ")}`, "GRAPH_OUTPUT_VALIDATION_FAILED", { nodeId: planNode.id, missingRequired });
|
|
504
|
-
}
|
|
505
|
-
return outputs;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Collects the resolved credential references for a node: credential-type
|
|
509
|
-
* parameter values plus the `credentials` record in instance metadata.
|
|
510
|
-
* Documents carry references only — secret material never enters requests.
|
|
511
|
-
*/
|
|
512
|
-
collectCredentials(planNode) {
|
|
513
|
-
const credentials = {};
|
|
514
|
-
for (const parameter of planNode.manifest.parameters) {
|
|
515
|
-
if (parameter.type !== "credential")
|
|
516
|
-
continue;
|
|
517
|
-
const value = (planNode.instance.parameters ?? {})[parameter.id];
|
|
518
|
-
if (typeof value === "string" && value.length > 0) {
|
|
519
|
-
credentials[parameter.id] = {
|
|
520
|
-
credentialId: value,
|
|
521
|
-
credentialType: parameter.credentialType ?? "",
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
else if (isGraphCredentialReferenceLike(value)) {
|
|
525
|
-
credentials[parameter.id] = {
|
|
526
|
-
credentialId: value.credentialId,
|
|
527
|
-
credentialType: value.credentialType,
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
const extra = (planNode.instance.metadata ?? {})["credentials"];
|
|
532
|
-
if (extra && typeof extra === "object" && !Array.isArray(extra)) {
|
|
533
|
-
for (const [key, raw] of Object.entries(extra)) {
|
|
534
|
-
const value = raw;
|
|
535
|
-
if (typeof value === "string" && value.length > 0) {
|
|
536
|
-
credentials[key] = { credentialId: value, credentialType: "" };
|
|
537
|
-
}
|
|
538
|
-
else if (isGraphCredentialReferenceLike(value)) {
|
|
539
|
-
credentials[key] = {
|
|
540
|
-
credentialId: value.credentialId,
|
|
541
|
-
credentialType: value.credentialType,
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
return credentials;
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Resolves a node's input values from routed data edges, literal bindings,
|
|
550
|
-
* allowed expression bindings, and manifest port defaults (§4.9).
|
|
551
|
-
*
|
|
552
|
-
* When multiple edges target the same port, their values are spread into the
|
|
553
|
-
* top-level inputs keyed by each edge's `sourcePort`. This allows multiple
|
|
554
|
-
* workflow input badges to connect to a single port (e.g. the Code node's
|
|
555
|
-
* `data` port) and have all values accessible directly as
|
|
556
|
-
* `$input.{sourcePort}` (e.g. `$input.count`, `$input.text`).
|
|
557
|
-
*/
|
|
558
|
-
async resolveNodeInputs(frame, plan, planNode, opts) {
|
|
559
|
-
const inputs = {};
|
|
560
|
-
const incoming = (plan.incomingByNode.get(planNode.id) ?? []).filter((edge) => edge.type === "data");
|
|
561
|
-
const edgesByTarget = new Map();
|
|
562
|
-
for (const edge of incoming) {
|
|
563
|
-
const list = edgesByTarget.get(edge.targetPort) ?? [];
|
|
564
|
-
list.push(edge);
|
|
565
|
-
edgesByTarget.set(edge.targetPort, list);
|
|
566
|
-
}
|
|
567
|
-
for (const [targetPort, edges] of edgesByTarget) {
|
|
568
|
-
if (edges.length === 1) {
|
|
569
|
-
inputs[targetPort] = frame.valueStore.getPort(edges[0].sourceNodeId, edges[0].sourcePort);
|
|
570
|
-
}
|
|
571
|
-
else {
|
|
572
|
-
for (const edge of edges) {
|
|
573
|
-
inputs[edge.sourcePort] = frame.valueStore.getPort(edge.sourceNodeId, edge.sourcePort);
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
// Literal bindings, expression bindings, and manifest defaults.
|
|
578
|
-
const bindings = planNode.instance.inputBindings ?? {};
|
|
579
|
-
for (const port of planNode.manifest.inputs) {
|
|
580
|
-
const binding = bindings[port.id];
|
|
581
|
-
if (binding?.mode === "literal") {
|
|
582
|
-
inputs[port.id] = binding.value;
|
|
583
|
-
}
|
|
584
|
-
else if (binding?.mode === "expression") {
|
|
585
|
-
inputs[port.id] = await this.evaluateExpressionBinding(planNode, binding.expression, inputs, opts);
|
|
586
|
-
}
|
|
587
|
-
else if (inputs[port.id] === undefined) {
|
|
588
|
-
const defaultValue = port.metadata?.["defaultValue"];
|
|
589
|
-
if (defaultValue !== undefined) {
|
|
590
|
-
inputs[port.id] = defaultValue;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
return inputs;
|
|
595
|
-
}
|
|
596
|
-
/**
|
|
597
|
-
* Evaluates an expression binding with the EXISTING allowed-expression
|
|
598
|
-
* machinery only (the pluggable {@link CodeSandboxEvaluator}, DECAF-32
|
|
599
|
-
* §22.4) — no new evaluator. The expression sees the already-routed input
|
|
600
|
-
* values as `$input` and the run metadata as context.
|
|
601
|
-
*/
|
|
602
|
-
async evaluateExpressionBinding(planNode, expression, inputs, opts) {
|
|
603
|
-
const evaluator = this.codeSandboxEvaluator;
|
|
604
|
-
if (!evaluator) {
|
|
605
|
-
throw new GraphExecutionError(`Expression binding on node '${planNode.id}' requires a CodeSandboxEvaluator to be registered in GraphExecutionEngineConfig.codeSandboxEvaluator`, "GRAPH_CODE_SANDBOX_NOT_CONFIGURED", { nodeId: planNode.id, expression });
|
|
606
|
-
}
|
|
607
|
-
const md = opts.metadata;
|
|
608
|
-
return await evaluator.evaluate({
|
|
609
|
-
code: expression,
|
|
610
|
-
language: "javascript",
|
|
611
|
-
input: inputs,
|
|
612
|
-
vars: md?.vars ?? undefined,
|
|
613
|
-
item: md?.item,
|
|
614
|
-
index: md?.index,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
/**
|
|
618
|
-
* Attempts to read a pinned value for the node. Returns the cached outputs
|
|
619
|
-
* when a valid pinned value exists, or `undefined` to proceed with normal
|
|
620
|
-
* execution.
|
|
621
|
-
*/
|
|
622
|
-
async tryPinnedValue(frame, plan, planNode, inputs) {
|
|
623
|
-
const policy = new GraphPinningPolicy();
|
|
624
|
-
if (!policy.shouldUsePinnedValue(planNode))
|
|
625
|
-
return undefined;
|
|
626
|
-
const service = this.createPinningService();
|
|
627
|
-
const depFingerprints = this.computeDependencyFingerprints(frame, plan, planNode.id);
|
|
628
|
-
return service.readPinnedValue(plan.workflowId, planNode, inputs, depFingerprints);
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* Recursively computes fingerprints for all upstream dependencies of a node
|
|
632
|
-
* using the results already accumulated in the frame.
|
|
633
|
-
*/
|
|
634
|
-
computeDependencyFingerprints(frame, plan, nodeId) {
|
|
635
|
-
const service = this.createPinningService();
|
|
636
|
-
const depResolver = new GraphPinningDependencyResolver();
|
|
637
|
-
const deps = depResolver.getDependencies(plan, nodeId);
|
|
638
|
-
const fingerprints = {};
|
|
639
|
-
for (const dep of deps) {
|
|
640
|
-
const node = plan.nodes.find((n) => n.id === dep);
|
|
641
|
-
if (node) {
|
|
642
|
-
const depResult = frame.nodeResults.get(dep);
|
|
643
|
-
const inputs = depResult?.inputs ?? {};
|
|
644
|
-
const nestedDeps = this.computeDependencyFingerprints(frame, plan, dep);
|
|
645
|
-
fingerprints[dep] = service.computeFingerprint(plan.workflowId, node, inputs, nestedDeps);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
return fingerprints;
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Routes a node's outputs to downstream inputs and workflow outputs along
|
|
652
|
-
* data edges (connection edges are structural and never route values).
|
|
653
|
-
*/
|
|
654
|
-
routeOutgoingEdges(frame, plan, planNode, outputs) {
|
|
655
|
-
const outgoing = (plan.outgoingByNode.get(planNode.id) ?? []).filter((edge) => edge.type === "data");
|
|
656
|
-
for (const edge of outgoing) {
|
|
657
|
-
const value = outputs[edge.sourcePort];
|
|
658
|
-
if (edge.targetNodeId === GRAPH_WORKFLOW_BOUNDARY) {
|
|
659
|
-
frame.valueStore.setWorkflowOutput(edge.targetPort, value);
|
|
660
|
-
}
|
|
661
|
-
this.emitEdgeStateChanged(frame, plan, planNode, edge, GraphVisualState.SUCCEEDED, GraphExecutionStatus.SUCCEEDED);
|
|
662
|
-
this.emitEvent(frame, {
|
|
663
|
-
type: GraphExecutionEventType.EDGE_VALUE_ROUTED,
|
|
664
|
-
runId: frame.runId,
|
|
665
|
-
workflowId: plan.workflowId,
|
|
666
|
-
edgeId: edge.id,
|
|
667
|
-
nodeId: planNode.id,
|
|
668
|
-
path: [],
|
|
669
|
-
payload: { edge, value },
|
|
670
|
-
}).catch(() => {
|
|
671
|
-
// observer failures must not crash
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* Emits an event, records it in the frame, and dispatches to observers.
|
|
677
|
-
*/
|
|
678
|
-
async emitEvent(frame, partial) {
|
|
679
|
-
const event = frame.eventFactory.create({
|
|
680
|
-
id: "",
|
|
681
|
-
sequence: 0,
|
|
682
|
-
timestamp: new Date(),
|
|
683
|
-
...partial,
|
|
684
|
-
});
|
|
685
|
-
frame.appendEvent(event);
|
|
686
|
-
await this.emitter.updateObservers(event);
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Emits a `NODE_STATE_CHANGED` event (DECAF-48 §4.4) carrying the given
|
|
690
|
-
* visual state for the node. Rides the existing Observable pipeline; no
|
|
691
|
-
* second out-of-band channel.
|
|
692
|
-
*/
|
|
693
|
-
emitNodeStateChanged(frame, plan, planNode, nodePath, state, status) {
|
|
694
|
-
this.emitEvent(frame, {
|
|
695
|
-
type: GraphExecutionEventType.NODE_STATE_CHANGED,
|
|
696
|
-
runId: frame.runId,
|
|
697
|
-
workflowId: plan.workflowId,
|
|
698
|
-
nodeId: planNode.id,
|
|
699
|
-
path: nodePath,
|
|
700
|
-
status,
|
|
701
|
-
payload: {
|
|
702
|
-
nodeId: planNode.id,
|
|
703
|
-
state,
|
|
704
|
-
runId: frame.runId,
|
|
705
|
-
workflowId: plan.workflowId,
|
|
706
|
-
status,
|
|
707
|
-
},
|
|
708
|
-
}).catch(() => {
|
|
709
|
-
// observer failures must not crash execution
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
/**
|
|
713
|
-
* Emits an `EDGE_STATE_CHANGED` event (DECAF-48 §4.4) carrying the given
|
|
714
|
-
* visual state for a routed edge.
|
|
715
|
-
*/
|
|
716
|
-
emitEdgeStateChanged(frame, plan, planNode, edge, state, status) {
|
|
717
|
-
this.emitEvent(frame, {
|
|
718
|
-
type: GraphExecutionEventType.EDGE_STATE_CHANGED,
|
|
719
|
-
runId: frame.runId,
|
|
720
|
-
workflowId: plan.workflowId,
|
|
721
|
-
edgeId: edge.id,
|
|
722
|
-
nodeId: planNode.id,
|
|
723
|
-
path: [],
|
|
724
|
-
status,
|
|
725
|
-
payload: {
|
|
726
|
-
edgeId: edge.id,
|
|
727
|
-
state,
|
|
728
|
-
runId: frame.runId,
|
|
729
|
-
workflowId: plan.workflowId,
|
|
730
|
-
nodeId: planNode.id,
|
|
731
|
-
status,
|
|
732
|
-
},
|
|
733
|
-
}).catch(() => {
|
|
734
|
-
// observer failures must not crash execution
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
/**
|
|
738
|
-
* Merges default options with the given options.
|
|
739
|
-
*/
|
|
740
|
-
mergeOptions(options) {
|
|
741
|
-
return {
|
|
742
|
-
concurrency: GRAPH_DEFAULT_CONCURRENCY,
|
|
743
|
-
failFast: true,
|
|
744
|
-
validateInputs: true,
|
|
745
|
-
validateOutputs: true,
|
|
746
|
-
usePinnedValues: true,
|
|
747
|
-
writeThroughCache: false,
|
|
748
|
-
path: [],
|
|
749
|
-
metadata: {},
|
|
750
|
-
...this.defaultOptions,
|
|
751
|
-
...options,
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
assertNotAborted(opts) {
|
|
755
|
-
if (opts.abortSignal?.aborted === true) {
|
|
756
|
-
throw new GraphRunCancelledError(opts.runId ?? "unknown");
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Generates a unique run id.
|
|
761
|
-
*/
|
|
762
|
-
generateRunId() {
|
|
763
|
-
return (globalThis.crypto?.randomUUID?.() ??
|
|
764
|
-
`graph-run-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* Converts an error into a serialized payload.
|
|
768
|
-
*/
|
|
769
|
-
toErrorPayload(error) {
|
|
770
|
-
if (error instanceof Error) {
|
|
771
|
-
return {
|
|
772
|
-
name: error.name,
|
|
773
|
-
message: error.message,
|
|
774
|
-
stack: error.stack,
|
|
775
|
-
code: error.graphCode ??
|
|
776
|
-
(typeof error.code === "number"
|
|
777
|
-
? String(error.code)
|
|
778
|
-
: error.code),
|
|
779
|
-
};
|
|
780
|
-
}
|
|
781
|
-
return { name: "UnknownError", message: String(error) };
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
//# sourceMappingURL=GraphExecutionEngine.js.map
|