@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,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionEventEmitter
|
|
3
|
-
* @summary Observable implementation for graph execution events.
|
|
4
|
-
* @description Implements Decaf's {@link Observable} interface so observers can subscribe to graph execution events. Observer failures are isolated and do not crash the workflow.
|
|
5
|
-
*/
|
|
6
|
-
import type { Observable } from "@decaf-ts/core";
|
|
7
|
-
import type { GraphExecutionObserver } from "./GraphExecutionObserver.d.cts";
|
|
8
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
9
|
-
/**
|
|
10
|
-
* Manages observer registration and event dispatch for the graph execution
|
|
11
|
-
* engine.
|
|
12
|
-
*/
|
|
13
|
-
export declare class GraphExecutionEventEmitter implements Observable<[GraphExecutionObserver], [GraphExecutionEvent]> {
|
|
14
|
-
private readonly observers;
|
|
15
|
-
/** Registers an observer and returns an unsubscribe function. */
|
|
16
|
-
observe(observer: GraphExecutionObserver): () => void;
|
|
17
|
-
/** Removes a previously-registered observer. */
|
|
18
|
-
unObserve(observer: GraphExecutionObserver): void;
|
|
19
|
-
/**
|
|
20
|
-
* Notifies all registered observers of a new event.
|
|
21
|
-
*
|
|
22
|
-
* Observer failures are caught and swallowed so that a misbehaving observer
|
|
23
|
-
* cannot crash the workflow execution.
|
|
24
|
-
*/
|
|
25
|
-
updateObservers(event: GraphExecutionEvent): Promise<void>;
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionEventEmitter
|
|
3
|
-
* @summary Observable implementation for graph execution events.
|
|
4
|
-
* @description Implements Decaf's {@link Observable} interface so observers can subscribe to graph execution events. Observer failures are isolated and do not crash the workflow.
|
|
5
|
-
*/
|
|
6
|
-
import type { Observable } from "@decaf-ts/core";
|
|
7
|
-
import type { GraphExecutionObserver } from "./GraphExecutionObserver.d.mts";
|
|
8
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
9
|
-
/**
|
|
10
|
-
* Manages observer registration and event dispatch for the graph execution
|
|
11
|
-
* engine.
|
|
12
|
-
*/
|
|
13
|
-
export declare class GraphExecutionEventEmitter implements Observable<[GraphExecutionObserver], [GraphExecutionEvent]> {
|
|
14
|
-
private readonly observers;
|
|
15
|
-
/** Registers an observer and returns an unsubscribe function. */
|
|
16
|
-
observe(observer: GraphExecutionObserver): () => void;
|
|
17
|
-
/** Removes a previously-registered observer. */
|
|
18
|
-
unObserve(observer: GraphExecutionObserver): void;
|
|
19
|
-
/**
|
|
20
|
-
* Notifies all registered observers of a new event.
|
|
21
|
-
*
|
|
22
|
-
* Observer failures are caught and swallowed so that a misbehaving observer
|
|
23
|
-
* cannot crash the workflow execution.
|
|
24
|
-
*/
|
|
25
|
-
updateObservers(event: GraphExecutionEvent): Promise<void>;
|
|
26
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionEventFactory
|
|
3
|
-
* @summary Factory for creating graph execution events with unique ids, sequence numbers, and timestamps.
|
|
4
|
-
* @description Provides a stateful factory that produces monotonically-sequenced events for a single execution run.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
7
|
-
/**
|
|
8
|
-
* Factory that enriches partial events with a unique id, an incrementing
|
|
9
|
-
* sequence number, and a timestamp.
|
|
10
|
-
*/
|
|
11
|
-
export declare class GraphExecutionEventFactory {
|
|
12
|
-
private sequence;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a fully-populated event from the given base fields.
|
|
15
|
-
*
|
|
16
|
-
* @param base - All event fields except `id`, `sequence`, and `timestamp`.
|
|
17
|
-
* @returns A complete {@link GraphExecutionEvent}.
|
|
18
|
-
*/
|
|
19
|
-
create(base: Omit<GraphExecutionEvent, "id" | "sequence" | "timestamp">): GraphExecutionEvent;
|
|
20
|
-
/**
|
|
21
|
-
* Generates a unique event id using `crypto.randomUUID` when available,
|
|
22
|
-
* falling back to a timestamp + random string.
|
|
23
|
-
*/
|
|
24
|
-
private createEventId;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionEventFactory
|
|
3
|
-
* @summary Factory for creating graph execution events with unique ids, sequence numbers, and timestamps.
|
|
4
|
-
* @description Provides a stateful factory that produces monotonically-sequenced events for a single execution run.
|
|
5
|
-
*/
|
|
6
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
7
|
-
/**
|
|
8
|
-
* Factory that enriches partial events with a unique id, an incrementing
|
|
9
|
-
* sequence number, and a timestamp.
|
|
10
|
-
*/
|
|
11
|
-
export declare class GraphExecutionEventFactory {
|
|
12
|
-
private sequence;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a fully-populated event from the given base fields.
|
|
15
|
-
*
|
|
16
|
-
* @param base - All event fields except `id`, `sequence`, and `timestamp`.
|
|
17
|
-
* @returns A complete {@link GraphExecutionEvent}.
|
|
18
|
-
*/
|
|
19
|
-
create(base: Omit<GraphExecutionEvent, "id" | "sequence" | "timestamp">): GraphExecutionEvent;
|
|
20
|
-
/**
|
|
21
|
-
* Generates a unique event id using `crypto.randomUUID` when available,
|
|
22
|
-
* falling back to a timestamp + random string.
|
|
23
|
-
*/
|
|
24
|
-
private createEventId;
|
|
25
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionObserver
|
|
3
|
-
* @summary Observer interface for graph execution events.
|
|
4
|
-
* @description Extends Decaf's {@link Observer} so graph events flow through the standard Observable/Observer pipeline.
|
|
5
|
-
*/
|
|
6
|
-
import type { Observer } from "@decaf-ts/core";
|
|
7
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
8
|
-
/**
|
|
9
|
-
* Observer that receives {@link GraphExecutionEvent} instances from the
|
|
10
|
-
* graph execution engine.
|
|
11
|
-
*/
|
|
12
|
-
export interface GraphExecutionObserver extends Observer<[GraphExecutionEvent]> {
|
|
13
|
-
/**
|
|
14
|
-
* Called by the engine when a new graph execution event is emitted.
|
|
15
|
-
*/
|
|
16
|
-
refresh(event: GraphExecutionEvent): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events/GraphExecutionObserver
|
|
3
|
-
* @summary Observer interface for graph execution events.
|
|
4
|
-
* @description Extends Decaf's {@link Observer} so graph events flow through the standard Observable/Observer pipeline.
|
|
5
|
-
*/
|
|
6
|
-
import type { Observer } from "@decaf-ts/core";
|
|
7
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
8
|
-
/**
|
|
9
|
-
* Observer that receives {@link GraphExecutionEvent} instances from the
|
|
10
|
-
* graph execution engine.
|
|
11
|
-
*/
|
|
12
|
-
export interface GraphExecutionObserver extends Observer<[GraphExecutionEvent]> {
|
|
13
|
-
/**
|
|
14
|
-
* Called by the engine when a new graph execution event is emitted.
|
|
15
|
-
*/
|
|
16
|
-
refresh(event: GraphExecutionEvent): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events
|
|
3
|
-
* @summary Graph execution event pipeline.
|
|
4
|
-
* @description Re-exports the observer interface, event emitter, and event factory.
|
|
5
|
-
*/
|
|
6
|
-
export * from "./GraphExecutionObserver.d.cts";
|
|
7
|
-
export * from "./GraphExecutionEventEmitter.d.cts";
|
|
8
|
-
export * from "./GraphExecutionEventFactory.d.cts";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/events
|
|
3
|
-
* @summary Graph execution event pipeline.
|
|
4
|
-
* @description Re-exports the observer interface, event emitter, and event factory.
|
|
5
|
-
*/
|
|
6
|
-
export * from "./GraphExecutionObserver.d.mts";
|
|
7
|
-
export * from "./GraphExecutionEventEmitter.d.mts";
|
|
8
|
-
export * from "./GraphExecutionEventFactory.d.mts";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/BreakGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Break flow-control node.
|
|
4
|
-
* @description Throws a {@link GraphBreakSignal} that the enclosing loop
|
|
5
|
-
* executor catches to terminate the loop early. The optional `value` input is
|
|
6
|
-
* carried on the signal so the loop can append it as the last partial result.
|
|
7
|
-
*/
|
|
8
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
|
|
9
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
|
|
10
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
11
|
-
/**
|
|
12
|
-
* Executor for `core.flow.break` nodes.
|
|
13
|
-
*
|
|
14
|
-
* Reads the optional `value` input port and throws a {@link GraphBreakSignal}
|
|
15
|
-
* carrying it. The enclosing loop executor (`core.loop.foreach`,
|
|
16
|
-
* `core.loop.while`, `core.loop.until`) catches the signal, stops iterating,
|
|
17
|
-
* and returns the results collected so far (plus the carried value as the
|
|
18
|
-
* final partial result).
|
|
19
|
-
*/
|
|
20
|
-
export declare class BreakGraphNodeExecutor implements GraphNodeExecutor {
|
|
21
|
-
execute(request: GraphNodeExecutionRequest, _context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/BreakGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Break flow-control node.
|
|
4
|
-
* @description Throws a {@link GraphBreakSignal} that the enclosing loop
|
|
5
|
-
* executor catches to terminate the loop early. The optional `value` input is
|
|
6
|
-
* carried on the signal so the loop can append it as the last partial result.
|
|
7
|
-
*/
|
|
8
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
9
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
10
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
11
|
-
/**
|
|
12
|
-
* Executor for `core.flow.break` nodes.
|
|
13
|
-
*
|
|
14
|
-
* Reads the optional `value` input port and throws a {@link GraphBreakSignal}
|
|
15
|
-
* carrying it. The enclosing loop executor (`core.loop.foreach`,
|
|
16
|
-
* `core.loop.while`, `core.loop.until`) catches the signal, stops iterating,
|
|
17
|
-
* and returns the results collected so far (plus the carried value as the
|
|
18
|
-
* final partial result).
|
|
19
|
-
*/
|
|
20
|
-
export declare class BreakGraphNodeExecutor implements GraphNodeExecutor {
|
|
21
|
-
execute(request: GraphNodeExecutionRequest, _context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
22
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/CodeGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
|
|
4
|
-
* @description Executes user-authored JS/TS in a restricted sandbox via the
|
|
5
|
-
* pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
|
|
6
|
-
* restrictions: no imports, no requires, pure functions only (no system API
|
|
7
|
-
* access). The executor reads the code from the node's `code` input port
|
|
8
|
-
* (spliced from {@link CodeInputSchema}), the timeout from the node's graph
|
|
9
|
-
* metadata, resolves the sandbox context from the node's input values and
|
|
10
|
-
* execution context, invokes the evaluator, and returns the result on the
|
|
11
|
-
* `result` output port.
|
|
12
|
-
*/
|
|
13
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
|
|
14
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
|
|
15
|
-
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.cts";
|
|
16
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.cts";
|
|
17
|
-
/**
|
|
18
|
-
* Executor for `core.flow.code` nodes.
|
|
19
|
-
*
|
|
20
|
-
* The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
|
|
21
|
-
* does not implement the sandbox directly (§22.4); instead it delegates to the
|
|
22
|
-
* pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
|
|
23
|
-
* no evaluator is registered, the executor throws
|
|
24
|
-
* `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
|
|
25
|
-
*
|
|
26
|
-
* The code is read from the `code` input port (spliced from
|
|
27
|
-
* {@link CodeInputSchema}). The language is hardcoded to `"javascript"` for
|
|
28
|
-
* now (the `language` field on `CodeInputSchema` has no `@input` so it is not
|
|
29
|
-
* a port and not wired). The timeout is read from `graph.metadata.timeoutMs`.
|
|
30
|
-
*
|
|
31
|
-
* The sandbox context exposes:
|
|
32
|
-
* - `$input` — the full input values object (all resolved port values).
|
|
33
|
-
* - `$vars` — workflow variables (sourced from `context.metadata.vars`).
|
|
34
|
-
* - `$item` / `$index` — current loop item and index.
|
|
35
|
-
* - `$node` — outputs of upstream nodes.
|
|
36
|
-
* - `$output` — the current draft output.
|
|
37
|
-
*
|
|
38
|
-
* The evaluator's return value is forwarded verbatim on the `result` output
|
|
39
|
-
* port.
|
|
40
|
-
*/
|
|
41
|
-
export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
|
|
42
|
-
private readonly engine?;
|
|
43
|
-
/**
|
|
44
|
-
* @param engine - The graph execution engine (or any object exposing the
|
|
45
|
-
* optional `codeSandboxEvaluator`). This mirrors the pattern used by
|
|
46
|
-
* {@link SwitchGraphNodeExecutor} for code conditions.
|
|
47
|
-
*/
|
|
48
|
-
constructor(engine?: {
|
|
49
|
-
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
50
|
-
} | undefined);
|
|
51
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
52
|
-
/**
|
|
53
|
-
* Builds the {@link CodeSandboxContext} from the executor input and the
|
|
54
|
-
* graph execution context.
|
|
55
|
-
*
|
|
56
|
-
* The `$input` value is the full input values object so the code can access
|
|
57
|
-
* every resolved port value (including `code` itself via `$input.code`).
|
|
58
|
-
*
|
|
59
|
-
* The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
|
|
60
|
-
* from `context.metadata` — the engine (or a wrapping loop executor) may
|
|
61
|
-
* populate these when the Code node runs inside a loop body or a workflow
|
|
62
|
-
* with variables.
|
|
63
|
-
*/
|
|
64
|
-
private buildSandboxContext;
|
|
65
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/CodeGraphNodeExecutor
|
|
3
|
-
* @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
|
|
4
|
-
* @description Executes user-authored JS/TS in a restricted sandbox via the
|
|
5
|
-
* pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
|
|
6
|
-
* restrictions: no imports, no requires, pure functions only (no system API
|
|
7
|
-
* access). The executor reads the code from the node's `code` input port
|
|
8
|
-
* (spliced from {@link CodeInputSchema}), the timeout from the node's graph
|
|
9
|
-
* metadata, resolves the sandbox context from the node's input values and
|
|
10
|
-
* execution context, invokes the evaluator, and returns the result on the
|
|
11
|
-
* `result` output port.
|
|
12
|
-
*/
|
|
13
|
-
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
14
|
-
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
15
|
-
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
|
|
16
|
-
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../types.d.mts";
|
|
17
|
-
/**
|
|
18
|
-
* Executor for `core.flow.code` nodes.
|
|
19
|
-
*
|
|
20
|
-
* The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
|
|
21
|
-
* does not implement the sandbox directly (§22.4); instead it delegates to the
|
|
22
|
-
* pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
|
|
23
|
-
* no evaluator is registered, the executor throws
|
|
24
|
-
* `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
|
|
25
|
-
*
|
|
26
|
-
* The code is read from the `code` input port (spliced from
|
|
27
|
-
* {@link CodeInputSchema}). The language is hardcoded to `"javascript"` for
|
|
28
|
-
* now (the `language` field on `CodeInputSchema` has no `@input` so it is not
|
|
29
|
-
* a port and not wired). The timeout is read from `graph.metadata.timeoutMs`.
|
|
30
|
-
*
|
|
31
|
-
* The sandbox context exposes:
|
|
32
|
-
* - `$input` — the full input values object (all resolved port values).
|
|
33
|
-
* - `$vars` — workflow variables (sourced from `context.metadata.vars`).
|
|
34
|
-
* - `$item` / `$index` — current loop item and index.
|
|
35
|
-
* - `$node` — outputs of upstream nodes.
|
|
36
|
-
* - `$output` — the current draft output.
|
|
37
|
-
*
|
|
38
|
-
* The evaluator's return value is forwarded verbatim on the `result` output
|
|
39
|
-
* port.
|
|
40
|
-
*/
|
|
41
|
-
export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
|
|
42
|
-
private readonly engine?;
|
|
43
|
-
/**
|
|
44
|
-
* @param engine - The graph execution engine (or any object exposing the
|
|
45
|
-
* optional `codeSandboxEvaluator`). This mirrors the pattern used by
|
|
46
|
-
* {@link SwitchGraphNodeExecutor} for code conditions.
|
|
47
|
-
*/
|
|
48
|
-
constructor(engine?: {
|
|
49
|
-
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
50
|
-
} | undefined);
|
|
51
|
-
execute(request: GraphNodeExecutionRequest, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
52
|
-
/**
|
|
53
|
-
* Builds the {@link CodeSandboxContext} from the executor input and the
|
|
54
|
-
* graph execution context.
|
|
55
|
-
*
|
|
56
|
-
* The `$input` value is the full input values object so the code can access
|
|
57
|
-
* every resolved port value (including `code` itself via `$input.code`).
|
|
58
|
-
*
|
|
59
|
-
* The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
|
|
60
|
-
* from `context.metadata` — the engine (or a wrapping loop executor) may
|
|
61
|
-
* populate these when the Code node runs inside a loop body or a workflow
|
|
62
|
-
* with variables.
|
|
63
|
-
*/
|
|
64
|
-
private buildSandboxContext;
|
|
65
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/CodeSandboxEvaluator
|
|
3
|
-
* @summary Pluggable contract for evaluating code-based conditions (DECAF-32 §22.4).
|
|
4
|
-
* @description The engine does NOT implement the VM sandbox directly (§22.4).
|
|
5
|
-
* Downstream projects (e.g. ALFRED) register a `CodeSandboxEvaluator` via the
|
|
6
|
-
* `GraphExecutionEngineConfig.codeSandboxEvaluator` field. When absent, code
|
|
7
|
-
* conditions throw a `GRAPH_CODE_SANDBOX_NOT_CONFIGURED` error.
|
|
8
|
-
*
|
|
9
|
-
* The sandbox must follow the same restrictions as the Code Node (§22.4):
|
|
10
|
-
* - No system API access (`require`, `process`, `fs`, `child_process`, etc.)
|
|
11
|
-
* - Placeholder syntax for workflow data references (`{{ $input.foo }}`,
|
|
12
|
-
* `{{ $node["Name"].output }}`, `{{ $vars.bar }}`, etc.)
|
|
13
|
-
* - Static code validation (e.g. `acorn`-based) before execution
|
|
14
|
-
* - The code must return a boolean value (for conditions) or any value
|
|
15
|
-
* (for Code Node transforms)
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Context passed to the code sandbox evaluator.
|
|
19
|
-
*/
|
|
20
|
-
export interface CodeSandboxContext {
|
|
21
|
-
/** The raw code string authored by the user. */
|
|
22
|
-
code: string;
|
|
23
|
-
/** The programming language (defaults to `"javascript"`). */
|
|
24
|
-
language?: "javascript" | "typescript";
|
|
25
|
-
/** The current input values, accessible as `$input` in placeholders. */
|
|
26
|
-
input: Record<string, unknown>;
|
|
27
|
-
/** Workflow variables, accessible as `$vars` in placeholders. */
|
|
28
|
-
vars?: Record<string, unknown>;
|
|
29
|
-
/** Current loop item (if inside a foreach), accessible as `$item`. */
|
|
30
|
-
item?: unknown;
|
|
31
|
-
/** Current loop index (if inside a foreach), accessible as `$index`. */
|
|
32
|
-
index?: number;
|
|
33
|
-
/** Outputs of upstream nodes, accessible as `$node["Name"].output`. */
|
|
34
|
-
nodes?: Record<string, Record<string, unknown>>;
|
|
35
|
-
/**
|
|
36
|
-
* Optional logger that receives `console.log/warn/debug/error` calls from
|
|
37
|
-
* inside the sandbox. When provided, a `console` object is injected into
|
|
38
|
-
* the isolate whose methods forward to this logger.
|
|
39
|
-
*/
|
|
40
|
-
logger?: SandboxLogger;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Minimal logger interface the sandbox can call without importing the full
|
|
44
|
-
* Decaf logging package (keeps the interface frontend-safe). Mirrors the
|
|
45
|
-
* methods on `@decaf-ts/logging`'s `Logger`.
|
|
46
|
-
*/
|
|
47
|
-
export interface SandboxLogger {
|
|
48
|
-
benchmark(msg: string, meta?: unknown): void;
|
|
49
|
-
fatal(msg: string, meta?: unknown): void;
|
|
50
|
-
critical(msg: string, meta?: unknown): void;
|
|
51
|
-
silly(msg: string, meta?: unknown): void;
|
|
52
|
-
verbose(msg: string, meta?: unknown): void;
|
|
53
|
-
info(msg: string, meta?: unknown): void;
|
|
54
|
-
debug(msg: string, meta?: unknown): void;
|
|
55
|
-
error(msg: string, meta?: unknown): void;
|
|
56
|
-
warn(msg: string, meta?: unknown): void;
|
|
57
|
-
trace(msg: string, meta?: unknown): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Pluggable evaluator for code-based conditions and Code Node transforms.
|
|
61
|
-
*
|
|
62
|
-
* Implementations MUST enforce the Code Node restrictions (§22.4):
|
|
63
|
-
* no system API access, static validation, placeholder resolution.
|
|
64
|
-
*/
|
|
65
|
-
export interface CodeSandboxEvaluator {
|
|
66
|
-
/**
|
|
67
|
-
* Evaluates the given code in a restricted sandbox and returns the result.
|
|
68
|
-
*
|
|
69
|
-
* For conditions, the code is expected to return a boolean.
|
|
70
|
-
* For Code Node transforms, the code may return any value.
|
|
71
|
-
*
|
|
72
|
-
* @param ctx - The sandbox context containing code, input, and references.
|
|
73
|
-
* @returns The result of evaluating the code.
|
|
74
|
-
*/
|
|
75
|
-
evaluate(ctx: CodeSandboxContext): Promise<unknown> | unknown;
|
|
76
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/CodeSandboxEvaluator
|
|
3
|
-
* @summary Pluggable contract for evaluating code-based conditions (DECAF-32 §22.4).
|
|
4
|
-
* @description The engine does NOT implement the VM sandbox directly (§22.4).
|
|
5
|
-
* Downstream projects (e.g. ALFRED) register a `CodeSandboxEvaluator` via the
|
|
6
|
-
* `GraphExecutionEngineConfig.codeSandboxEvaluator` field. When absent, code
|
|
7
|
-
* conditions throw a `GRAPH_CODE_SANDBOX_NOT_CONFIGURED` error.
|
|
8
|
-
*
|
|
9
|
-
* The sandbox must follow the same restrictions as the Code Node (§22.4):
|
|
10
|
-
* - No system API access (`require`, `process`, `fs`, `child_process`, etc.)
|
|
11
|
-
* - Placeholder syntax for workflow data references (`{{ $input.foo }}`,
|
|
12
|
-
* `{{ $node["Name"].output }}`, `{{ $vars.bar }}`, etc.)
|
|
13
|
-
* - Static code validation (e.g. `acorn`-based) before execution
|
|
14
|
-
* - The code must return a boolean value (for conditions) or any value
|
|
15
|
-
* (for Code Node transforms)
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Context passed to the code sandbox evaluator.
|
|
19
|
-
*/
|
|
20
|
-
export interface CodeSandboxContext {
|
|
21
|
-
/** The raw code string authored by the user. */
|
|
22
|
-
code: string;
|
|
23
|
-
/** The programming language (defaults to `"javascript"`). */
|
|
24
|
-
language?: "javascript" | "typescript";
|
|
25
|
-
/** The current input values, accessible as `$input` in placeholders. */
|
|
26
|
-
input: Record<string, unknown>;
|
|
27
|
-
/** Workflow variables, accessible as `$vars` in placeholders. */
|
|
28
|
-
vars?: Record<string, unknown>;
|
|
29
|
-
/** Current loop item (if inside a foreach), accessible as `$item`. */
|
|
30
|
-
item?: unknown;
|
|
31
|
-
/** Current loop index (if inside a foreach), accessible as `$index`. */
|
|
32
|
-
index?: number;
|
|
33
|
-
/** Outputs of upstream nodes, accessible as `$node["Name"].output`. */
|
|
34
|
-
nodes?: Record<string, Record<string, unknown>>;
|
|
35
|
-
/**
|
|
36
|
-
* Optional logger that receives `console.log/warn/debug/error` calls from
|
|
37
|
-
* inside the sandbox. When provided, a `console` object is injected into
|
|
38
|
-
* the isolate whose methods forward to this logger.
|
|
39
|
-
*/
|
|
40
|
-
logger?: SandboxLogger;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Minimal logger interface the sandbox can call without importing the full
|
|
44
|
-
* Decaf logging package (keeps the interface frontend-safe). Mirrors the
|
|
45
|
-
* methods on `@decaf-ts/logging`'s `Logger`.
|
|
46
|
-
*/
|
|
47
|
-
export interface SandboxLogger {
|
|
48
|
-
benchmark(msg: string, meta?: unknown): void;
|
|
49
|
-
fatal(msg: string, meta?: unknown): void;
|
|
50
|
-
critical(msg: string, meta?: unknown): void;
|
|
51
|
-
silly(msg: string, meta?: unknown): void;
|
|
52
|
-
verbose(msg: string, meta?: unknown): void;
|
|
53
|
-
info(msg: string, meta?: unknown): void;
|
|
54
|
-
debug(msg: string, meta?: unknown): void;
|
|
55
|
-
error(msg: string, meta?: unknown): void;
|
|
56
|
-
warn(msg: string, meta?: unknown): void;
|
|
57
|
-
trace(msg: string, meta?: unknown): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Pluggable evaluator for code-based conditions and Code Node transforms.
|
|
61
|
-
*
|
|
62
|
-
* Implementations MUST enforce the Code Node restrictions (§22.4):
|
|
63
|
-
* no system API access, static validation, placeholder resolution.
|
|
64
|
-
*/
|
|
65
|
-
export interface CodeSandboxEvaluator {
|
|
66
|
-
/**
|
|
67
|
-
* Evaluates the given code in a restricted sandbox and returns the result.
|
|
68
|
-
*
|
|
69
|
-
* For conditions, the code is expected to return a boolean.
|
|
70
|
-
* For Code Node transforms, the code may return any value.
|
|
71
|
-
*
|
|
72
|
-
* @param ctx - The sandbox context containing code, input, and references.
|
|
73
|
-
* @returns The result of evaluating the code.
|
|
74
|
-
*/
|
|
75
|
-
evaluate(ctx: CodeSandboxContext): Promise<unknown> | unknown;
|
|
76
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/GraphExecutionContext
|
|
3
|
-
* @summary Decaf Context for graph node execution (DECAF-50 §4.9).
|
|
4
|
-
* @description Extends Decaf's {@link Context} so node executors receive the
|
|
5
|
-
* same contextual plumbing as task handlers. The context carries the
|
|
6
|
-
* canonical workflow document, the executing node's canonical instance, and
|
|
7
|
-
* its effective resolved manifest — never a raw node definition. Executors
|
|
8
|
-
* use the context to emit progress, log messages, and report state through
|
|
9
|
-
* the engine's observer pipeline. Each context also exposes a run-scoped
|
|
10
|
-
* `ctx.logger` (DECAF-48 §4.3) bound to the executing node's `runId` /
|
|
11
|
-
* `workflowId` / `nodeId` / `user`, so every log line streams over
|
|
12
|
-
* `graph.run.log` with the DECAF-9 custom attributes.
|
|
13
|
-
*/
|
|
14
|
-
import { Context } from "@decaf-ts/core";
|
|
15
|
-
import type { GraphNodeInstance, GraphWorkflowDocument } from "@decaf-ts/ui-decorators/graph";
|
|
16
|
-
import type { Logger } from "@decaf-ts/logging";
|
|
17
|
-
import type { GraphResolvedNodeManifest } from "@decaf-ts/ui-decorators/graph";
|
|
18
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
-
import type { GraphRunId } from "../types.d.cts";
|
|
20
|
-
/**
|
|
21
|
-
* Context passed to every graph node executor.
|
|
22
|
-
*
|
|
23
|
-
* The engine creates a `GraphExecutionContext` per node execution and passes
|
|
24
|
-
* it to the executor alongside the node's inputs/parameters. The executor
|
|
25
|
-
* uses `context.progress(...)` and `context.log(...)` to report intermediate
|
|
26
|
-
* state, and `context.logger` to emit structured run log lines (DECAF-48
|
|
27
|
-
* §4.3).
|
|
28
|
-
*/
|
|
29
|
-
export declare class GraphExecutionContext extends Context {
|
|
30
|
-
readonly runId: GraphRunId;
|
|
31
|
-
readonly parentRunId: GraphRunId | undefined;
|
|
32
|
-
readonly workflowId: string;
|
|
33
|
-
readonly document: GraphWorkflowDocument;
|
|
34
|
-
readonly node: GraphNodeInstance;
|
|
35
|
-
readonly manifest: GraphResolvedNodeManifest;
|
|
36
|
-
readonly path: string[];
|
|
37
|
-
private readonly emitFn;
|
|
38
|
-
readonly metadata: Record<string, unknown>;
|
|
39
|
-
private readonly runLogger?;
|
|
40
|
-
/**
|
|
41
|
-
* @param runId - Unique identifier for the current execution run.
|
|
42
|
-
* @param parentRunId - Run id of the parent execution (for nested loop bodies).
|
|
43
|
-
* @param workflowId - The canonical workflow document id.
|
|
44
|
-
* @param document - The canonical workflow document being executed.
|
|
45
|
-
* @param node - The canonical node instance being executed.
|
|
46
|
-
* @param manifest - The effective (dynamics-expanded) manifest for the node.
|
|
47
|
-
* @param path - Dotted path from the workflow root to this node.
|
|
48
|
-
* @param emitFn - Callback invoked when an event is emitted from this context.
|
|
49
|
-
* @param metadata - Free-form metadata attached to this context.
|
|
50
|
-
*/
|
|
51
|
-
constructor(runId: GraphRunId, parentRunId: GraphRunId | undefined, workflowId: string, document: GraphWorkflowDocument, node: GraphNodeInstance, manifest: GraphResolvedNodeManifest, path: string[], emitFn: (event: Partial<GraphExecutionEvent>) => Promise<void>, metadata?: Record<string, unknown>);
|
|
52
|
-
/**
|
|
53
|
-
* The decaf-ts {@link Logger} bound to this node's run context. Every log
|
|
54
|
-
* line carries the DECAF-48 attributes (`nodeId` / `workflowId` / `runId` /
|
|
55
|
-
* `user`) and is forwarded onto the existing graph execution Observable as
|
|
56
|
-
* a `GRAPH_RUN_LOG` event (streamed over the `graph.run.log` SSE channel).
|
|
57
|
-
*/
|
|
58
|
-
get logger(): Logger;
|
|
59
|
-
/**
|
|
60
|
-
* Emits a partial graph execution event. The engine fills in runId,
|
|
61
|
-
* parentRunId, workflowId, nodeId, and path automatically.
|
|
62
|
-
*/
|
|
63
|
-
emit(event: Partial<GraphExecutionEvent>): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Emits a `NODE_OUTPUT` event with the given payload, useful for reporting
|
|
66
|
-
* intermediate progress from within a node executor.
|
|
67
|
-
*/
|
|
68
|
-
progress(payload: unknown): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Emits a `NODE_OUTPUT` event with a structured `{ message, payload }` shape
|
|
71
|
-
* so executors can log human-readable messages.
|
|
72
|
-
*/
|
|
73
|
-
log(message: string, payload?: unknown): Promise<void>;
|
|
74
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module integrations/graph/execution/GraphExecutionContext
|
|
3
|
-
* @summary Decaf Context for graph node execution (DECAF-50 §4.9).
|
|
4
|
-
* @description Extends Decaf's {@link Context} so node executors receive the
|
|
5
|
-
* same contextual plumbing as task handlers. The context carries the
|
|
6
|
-
* canonical workflow document, the executing node's canonical instance, and
|
|
7
|
-
* its effective resolved manifest — never a raw node definition. Executors
|
|
8
|
-
* use the context to emit progress, log messages, and report state through
|
|
9
|
-
* the engine's observer pipeline. Each context also exposes a run-scoped
|
|
10
|
-
* `ctx.logger` (DECAF-48 §4.3) bound to the executing node's `runId` /
|
|
11
|
-
* `workflowId` / `nodeId` / `user`, so every log line streams over
|
|
12
|
-
* `graph.run.log` with the DECAF-9 custom attributes.
|
|
13
|
-
*/
|
|
14
|
-
import { Context } from "@decaf-ts/core";
|
|
15
|
-
import type { GraphNodeInstance, GraphWorkflowDocument } from "@decaf-ts/ui-decorators/graph";
|
|
16
|
-
import type { Logger } from "@decaf-ts/logging";
|
|
17
|
-
import type { GraphResolvedNodeManifest } from "@decaf-ts/ui-decorators/graph";
|
|
18
|
-
import type { GraphExecutionEvent } from "@decaf-ts/ui-decorators/graph";
|
|
19
|
-
import type { GraphRunId } from "../types.d.mts";
|
|
20
|
-
/**
|
|
21
|
-
* Context passed to every graph node executor.
|
|
22
|
-
*
|
|
23
|
-
* The engine creates a `GraphExecutionContext` per node execution and passes
|
|
24
|
-
* it to the executor alongside the node's inputs/parameters. The executor
|
|
25
|
-
* uses `context.progress(...)` and `context.log(...)` to report intermediate
|
|
26
|
-
* state, and `context.logger` to emit structured run log lines (DECAF-48
|
|
27
|
-
* §4.3).
|
|
28
|
-
*/
|
|
29
|
-
export declare class GraphExecutionContext extends Context {
|
|
30
|
-
readonly runId: GraphRunId;
|
|
31
|
-
readonly parentRunId: GraphRunId | undefined;
|
|
32
|
-
readonly workflowId: string;
|
|
33
|
-
readonly document: GraphWorkflowDocument;
|
|
34
|
-
readonly node: GraphNodeInstance;
|
|
35
|
-
readonly manifest: GraphResolvedNodeManifest;
|
|
36
|
-
readonly path: string[];
|
|
37
|
-
private readonly emitFn;
|
|
38
|
-
readonly metadata: Record<string, unknown>;
|
|
39
|
-
private readonly runLogger?;
|
|
40
|
-
/**
|
|
41
|
-
* @param runId - Unique identifier for the current execution run.
|
|
42
|
-
* @param parentRunId - Run id of the parent execution (for nested loop bodies).
|
|
43
|
-
* @param workflowId - The canonical workflow document id.
|
|
44
|
-
* @param document - The canonical workflow document being executed.
|
|
45
|
-
* @param node - The canonical node instance being executed.
|
|
46
|
-
* @param manifest - The effective (dynamics-expanded) manifest for the node.
|
|
47
|
-
* @param path - Dotted path from the workflow root to this node.
|
|
48
|
-
* @param emitFn - Callback invoked when an event is emitted from this context.
|
|
49
|
-
* @param metadata - Free-form metadata attached to this context.
|
|
50
|
-
*/
|
|
51
|
-
constructor(runId: GraphRunId, parentRunId: GraphRunId | undefined, workflowId: string, document: GraphWorkflowDocument, node: GraphNodeInstance, manifest: GraphResolvedNodeManifest, path: string[], emitFn: (event: Partial<GraphExecutionEvent>) => Promise<void>, metadata?: Record<string, unknown>);
|
|
52
|
-
/**
|
|
53
|
-
* The decaf-ts {@link Logger} bound to this node's run context. Every log
|
|
54
|
-
* line carries the DECAF-48 attributes (`nodeId` / `workflowId` / `runId` /
|
|
55
|
-
* `user`) and is forwarded onto the existing graph execution Observable as
|
|
56
|
-
* a `GRAPH_RUN_LOG` event (streamed over the `graph.run.log` SSE channel).
|
|
57
|
-
*/
|
|
58
|
-
get logger(): Logger;
|
|
59
|
-
/**
|
|
60
|
-
* Emits a partial graph execution event. The engine fills in runId,
|
|
61
|
-
* parentRunId, workflowId, nodeId, and path automatically.
|
|
62
|
-
*/
|
|
63
|
-
emit(event: Partial<GraphExecutionEvent>): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Emits a `NODE_OUTPUT` event with the given payload, useful for reporting
|
|
66
|
-
* intermediate progress from within a node executor.
|
|
67
|
-
*/
|
|
68
|
-
progress(payload: unknown): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Emits a `NODE_OUTPUT` event with a structured `{ message, payload }` shape
|
|
71
|
-
* so executors can log human-readable messages.
|
|
72
|
-
*/
|
|
73
|
-
log(message: string, payload?: unknown): Promise<void>;
|
|
74
|
-
}
|