@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,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.GraphExecutionModule = void 0;
|
|
37
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
38
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
39
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
40
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
41
|
-
else
|
|
42
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
43
|
-
if (d = decorators[i])
|
|
44
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
45
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
46
|
-
};
|
|
47
|
-
var GraphExecutionModule_1;
|
|
48
|
-
/**
|
|
49
|
-
* @module integrations/nest/graph/GraphExecutionModule
|
|
50
|
-
* @summary NestJS graph backend module wiring (DECAF-50 §4.10–§4.16).
|
|
51
|
-
* @description The dynamic module assembling the graph backend: the
|
|
52
|
-
* {@link GraphExecutionEngine}, the trusted {@link GraphNodeCatalogue} with
|
|
53
|
-
* built-in registrations, the run lifecycle services and stores, and the
|
|
54
|
-
* HTTP/SSE controllers (catalogue, workflows, runs, legacy execution) — each
|
|
55
|
-
* configurable with authentication enforcement and backend-enforced
|
|
56
|
-
* resource limits via {@link GraphExecutionModuleOptions}.
|
|
57
|
-
*/
|
|
58
|
-
const common_1 = require("@nestjs/common");
|
|
59
|
-
const index_js_1 = require("./../../graph/index.cjs");
|
|
60
|
-
const GraphExecutorRegistryFactory_js_1 = require("./GraphExecutorRegistryFactory.cjs");
|
|
61
|
-
const GraphExecutionController_js_1 = require("./GraphExecutionController.cjs");
|
|
62
|
-
const GraphNodeCatalogueController_js_1 = require("./GraphNodeCatalogueController.cjs");
|
|
63
|
-
const GraphResultService_js_1 = require("./GraphResultService.cjs");
|
|
64
|
-
const GraphRunModelService_js_1 = require("./GraphRunModelService.cjs");
|
|
65
|
-
const GraphRunController_js_1 = require("./GraphRunController.cjs");
|
|
66
|
-
const GraphWorkflowService_js_1 = require("./GraphWorkflowService.cjs");
|
|
67
|
-
const GraphWorkflowController_js_1 = require("./GraphWorkflowController.cjs");
|
|
68
|
-
/**
|
|
69
|
-
* NestJS module wiring the graph execution stack (DECAF-50 §4.13–§4.16): the
|
|
70
|
-
* engine, catalogue, workflow persistence, run lifecycle/SSE controllers,
|
|
71
|
-
* and their services. Configure via {@link GraphExecutionModule.forRoot}.
|
|
72
|
-
*/
|
|
73
|
-
let GraphExecutionModule = GraphExecutionModule_1 = class GraphExecutionModule {
|
|
74
|
-
/**
|
|
75
|
-
* Creates the dynamic module. Boots a default RamAdapter for standalone
|
|
76
|
-
* development unless `initAdapter` is `false`. Wires the optional
|
|
77
|
-
* {@link GraphCredentialAuthorizer} into the engine's stage-8 validator
|
|
78
|
-
* (SAA-595 F8), and applies the workflow options to the
|
|
79
|
-
* {@link GraphWorkflowService} singleton via its {@link
|
|
80
|
-
* GraphWorkflowService.configure} method, since `@service` constructor
|
|
81
|
-
* injection does not forward provider options reliably.
|
|
82
|
-
*/
|
|
83
|
-
static forRoot(options = {}) {
|
|
84
|
-
const initAdapter = options.initAdapter ?? true;
|
|
85
|
-
const adapterUser = options.adapterUser ?? "graph-engine";
|
|
86
|
-
let engineConfig;
|
|
87
|
-
const sharedConfig = () => (engineConfig ??= (0, GraphExecutorRegistryFactory_js_1.createDemoEngineConfig)());
|
|
88
|
-
const providers = [
|
|
89
|
-
{
|
|
90
|
-
provide: index_js_1.GraphExecutionEngine,
|
|
91
|
-
useFactory: async () => {
|
|
92
|
-
if (initAdapter) {
|
|
93
|
-
const { RamAdapter, RamFlavour } = await Promise.resolve().then(() => __importStar(require("@decaf-ts/core/ram")));
|
|
94
|
-
const { Adapter } = await Promise.resolve().then(() => __importStar(require("@decaf-ts/core")));
|
|
95
|
-
RamAdapter.decoration();
|
|
96
|
-
Adapter.setCurrent(RamFlavour);
|
|
97
|
-
new RamAdapter({ user: adapterUser });
|
|
98
|
-
}
|
|
99
|
-
const config = sharedConfig();
|
|
100
|
-
return new index_js_1.GraphExecutionEngine(options.credentialAuthorizer
|
|
101
|
-
? { ...config, credentialAuthorizer: options.credentialAuthorizer }
|
|
102
|
-
: config);
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
provide: index_js_1.GraphNodeCatalogue,
|
|
107
|
-
useFactory: () => sharedConfig().catalogue,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
provide: GraphNodeCatalogueController_js_1.GRAPH_CATALOGUE_CONTROLLER_OPTIONS,
|
|
111
|
-
useValue: options.catalogue ?? {},
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
provide: GraphWorkflowService_js_1.GRAPH_WORKFLOW_OPTIONS,
|
|
115
|
-
useValue: (options.workflows ?? {}),
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
provide: GraphRunController_js_1.GRAPH_RUN_OPTIONS,
|
|
119
|
-
useValue: (options.runs ?? {}),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
provide: GraphExecutionController_js_1.GRAPH_EXECUTION_OPTIONS,
|
|
123
|
-
useValue: (options.execution ?? {}),
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
provide: index_js_1.InMemoryGraphRunEventStore,
|
|
127
|
-
useFactory: () => new index_js_1.InMemoryGraphRunEventStore(options.runs?.limits ?? {}),
|
|
128
|
-
},
|
|
129
|
-
GraphResultService_js_1.GraphResultService,
|
|
130
|
-
GraphRunModelService_js_1.GraphRunModelService,
|
|
131
|
-
{
|
|
132
|
-
provide: GraphWorkflowService_js_1.GraphWorkflowService,
|
|
133
|
-
useFactory: (workflowOptions) => new GraphWorkflowService_js_1.GraphWorkflowService().configure(workflowOptions),
|
|
134
|
-
inject: [GraphWorkflowService_js_1.GRAPH_WORKFLOW_OPTIONS],
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
provide: index_js_1.GraphRunService,
|
|
138
|
-
useFactory: (engine, runStore, eventStore, workflowService) => new index_js_1.GraphRunService(engine, runStore, eventStore, {
|
|
139
|
-
limits: (options.runs?.limits ?? {}),
|
|
140
|
-
allowAnonymousAccess: options.runs?.allowAnonymousAccess === true,
|
|
141
|
-
documentResolver: {
|
|
142
|
-
resolve: async (workflowId, _ownerUser, ...args) => workflowService.getDocument(workflowId, ...args),
|
|
143
|
-
},
|
|
144
|
-
}),
|
|
145
|
-
inject: [
|
|
146
|
-
index_js_1.GraphExecutionEngine,
|
|
147
|
-
GraphRunModelService_js_1.GraphRunModelService,
|
|
148
|
-
index_js_1.InMemoryGraphRunEventStore,
|
|
149
|
-
GraphWorkflowService_js_1.GraphWorkflowService,
|
|
150
|
-
],
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
|
-
return {
|
|
154
|
-
module: GraphExecutionModule_1,
|
|
155
|
-
controllers: [
|
|
156
|
-
GraphExecutionController_js_1.GraphExecutionController,
|
|
157
|
-
GraphNodeCatalogueController_js_1.GraphNodeCatalogueController,
|
|
158
|
-
GraphWorkflowController_js_1.GraphWorkflowController,
|
|
159
|
-
GraphRunController_js_1.GraphRunController,
|
|
160
|
-
],
|
|
161
|
-
providers,
|
|
162
|
-
exports: [
|
|
163
|
-
index_js_1.GraphExecutionEngine,
|
|
164
|
-
index_js_1.GraphNodeCatalogue,
|
|
165
|
-
GraphResultService_js_1.GraphResultService,
|
|
166
|
-
GraphRunModelService_js_1.GraphRunModelService,
|
|
167
|
-
index_js_1.GraphRunService,
|
|
168
|
-
GraphWorkflowService_js_1.GraphWorkflowService,
|
|
169
|
-
],
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
exports.GraphExecutionModule = GraphExecutionModule;
|
|
174
|
-
exports.GraphExecutionModule = GraphExecutionModule = GraphExecutionModule_1 = __decorate([
|
|
175
|
-
(0, common_1.Module)({})
|
|
176
|
-
], GraphExecutionModule);
|
|
177
|
-
//# sourceMappingURL=GraphExecutionModule.js.map
|
|
178
|
-
//# sourceMappingURL=GraphExecutionModule.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest/graph/GraphExecutionModule.cjs","sourceRoot":"","sources":["nest/graph/GraphExecutionModule.js"],"names":[],"mappings":"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"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphExecutionResultModel = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
19
|
-
const core_1 = require("@decaf-ts/core");
|
|
20
|
-
/**
|
|
21
|
-
* Persisted terminal snapshot of one graph run (written by
|
|
22
|
-
* {@link GraphResultService} after the deprecated synchronous execute
|
|
23
|
-
* endpoint completes). Keyed by `runId`; the optional `owner` column (added
|
|
24
|
-
* by SAA-595 F1) records the run's owning user so result reads can be
|
|
25
|
-
* ownership-gated at the route layer.
|
|
26
|
-
*/
|
|
27
|
-
let GraphExecutionResultModel = class GraphExecutionResultModel extends core_1.BaseModel {
|
|
28
|
-
constructor(arg) {
|
|
29
|
-
super(arg);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.GraphExecutionResultModel = GraphExecutionResultModel;
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, core_1.pk)({ type: String, generated: false }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], GraphExecutionResultModel.prototype, "runId", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, core_1.column)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], GraphExecutionResultModel.prototype, "workflowId", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, core_1.column)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], GraphExecutionResultModel.prototype, "owner", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, core_1.column)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], GraphExecutionResultModel.prototype, "status", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, core_1.column)(),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], GraphExecutionResultModel.prototype, "inputs", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, core_1.column)(),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], GraphExecutionResultModel.prototype, "outputs", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, core_1.column)(),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], GraphExecutionResultModel.prototype, "nodeResults", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, core_1.column)(),
|
|
63
|
-
__metadata("design:type", Date)
|
|
64
|
-
], GraphExecutionResultModel.prototype, "startedAt", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, core_1.column)(),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], GraphExecutionResultModel.prototype, "finishedAt", void 0);
|
|
69
|
-
exports.GraphExecutionResultModel = GraphExecutionResultModel = __decorate([
|
|
70
|
-
(0, core_1.table)("graph_execution_result"),
|
|
71
|
-
(0, decorator_validation_1.model)(),
|
|
72
|
-
__metadata("design:paramtypes", [Object])
|
|
73
|
-
], GraphExecutionResultModel);
|
|
74
|
-
//# sourceMappingURL=GraphExecutionResultModel.js.map
|
|
75
|
-
//# sourceMappingURL=GraphExecutionResultModel.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest/graph/GraphExecutionResultModel.cjs","sourceRoot":"","sources":["nest/graph/GraphExecutionResultModel.js"],"names":[],"mappings":"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"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createGraphNodeCatalogue = createGraphNodeCatalogue;
|
|
4
|
-
exports.createGraphExecutorRegistry = createGraphExecutorRegistry;
|
|
5
|
-
exports.registerEngineBoundGraphNodes = registerEngineBoundGraphNodes;
|
|
6
|
-
exports.createDemoEngineConfig = createDemoEngineConfig;
|
|
7
|
-
/**
|
|
8
|
-
* @module integrations/nest/graph/GraphExecutorRegistryFactory
|
|
9
|
-
* @summary Factory that builds a populated {@link GraphNodeCatalogue} and its
|
|
10
|
-
* {@link GraphNodeExecutorRegistry} compatibility facade.
|
|
11
|
-
* @description Creates a catalogue pre-loaded with the DECAF-50 built-in
|
|
12
|
-
* manifest+executor registrations plus the demo executors used by the graph
|
|
13
|
-
* execution backend's sample workflows. The catalogue is the single
|
|
14
|
-
* kind→registration map (DECAF-50 §4.7); the returned registry is a facade
|
|
15
|
-
* over it, so no second executor map exists.
|
|
16
|
-
*/
|
|
17
|
-
const index_js_1 = require("./../../graph/index.cjs");
|
|
18
|
-
const demoExecutorMap = {
|
|
19
|
-
"math.add": (request) => ({
|
|
20
|
-
sum: Number(request.inputs.a) + Number(request.inputs.b),
|
|
21
|
-
}),
|
|
22
|
-
"math.multiply": (request) => ({
|
|
23
|
-
product: Number(request.inputs.x) * 2,
|
|
24
|
-
}),
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Builds a {@link GraphNodeCatalogue} populated with the built-in
|
|
28
|
-
* manifest+executor registrations and the arithmetic demo executors, wrapped
|
|
29
|
-
* with its {@link GraphNodeExecutorRegistry} facade.
|
|
30
|
-
*
|
|
31
|
-
* The built-in kinds whose executors need the engine instance (loops, Code,
|
|
32
|
-
* Switch) are only registered by {@link createDemoEngineConfig}'s
|
|
33
|
-
* `onEngineCreated` hook via {@link registerEngineBoundGraphNodes}.
|
|
34
|
-
*
|
|
35
|
-
* @param extra - Additional executor registrations to merge into the catalogue.
|
|
36
|
-
* @returns The populated catalogue and its registry facade.
|
|
37
|
-
*/
|
|
38
|
-
function createGraphNodeCatalogue(extra) {
|
|
39
|
-
const catalogue = new index_js_1.GraphNodeCatalogue();
|
|
40
|
-
(0, index_js_1.registerBuiltInGraphNodes)(catalogue);
|
|
41
|
-
for (const [kind, fn] of Object.entries(demoExecutorMap)) {
|
|
42
|
-
catalogue.registerExecutor(kind, { execute: fn });
|
|
43
|
-
}
|
|
44
|
-
if (extra) {
|
|
45
|
-
for (const [kind, executor] of Object.entries(extra)) {
|
|
46
|
-
catalogue.registerExecutor(kind, executor);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return { catalogue, registry: new index_js_1.GraphNodeExecutorRegistry(catalogue) };
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Builds a {@link GraphNodeExecutorRegistry} facade over a populated
|
|
53
|
-
* {@link GraphNodeCatalogue} (compatibility entry point).
|
|
54
|
-
*
|
|
55
|
-
* @param extra - Additional executor registrations to merge into the catalogue.
|
|
56
|
-
* @returns The registry facade; the underlying catalogue is available as
|
|
57
|
-
* `registry.catalog`.
|
|
58
|
-
*/
|
|
59
|
-
function createGraphExecutorRegistry(extra) {
|
|
60
|
-
return createGraphNodeCatalogue(extra).registry;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Registers the engine-bound built-in kinds (loops, Code, Switch) on an
|
|
64
|
-
* existing catalogue, replacing their placeholder-free entries with the real
|
|
65
|
-
* engine-bound executors.
|
|
66
|
-
*
|
|
67
|
-
* @param catalogue - The catalogue receiving the registrations.
|
|
68
|
-
* @param engine - The engine instance the loop/Code/Switch executors bind to.
|
|
69
|
-
* @returns The catalogue with the engine-bound registrations applied.
|
|
70
|
-
*/
|
|
71
|
-
function registerEngineBoundGraphNodes(catalogue, engine) {
|
|
72
|
-
for (const registration of (0, index_js_1.builtInGraphNodeRegistrations)(engine)) {
|
|
73
|
-
catalogue.register(registration, { replace: true });
|
|
74
|
-
}
|
|
75
|
-
return catalogue;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Builds a `GraphExecutionEngineConfig` populated with all built-in
|
|
79
|
-
* registrations including loop executors that need a back-reference to the
|
|
80
|
-
* engine and the Code node executor that needs the engine's
|
|
81
|
-
* `codeSandboxEvaluator`.
|
|
82
|
-
*
|
|
83
|
-
* The config wires an {@link IsolatedVmCodeSandboxEvaluator} (backed by
|
|
84
|
-
* `isolated-vm`) so the Code Node runs in a truly isolated V8 sandbox.
|
|
85
|
-
*
|
|
86
|
-
* @returns A config object ready for `new GraphExecutionEngine(config)`.
|
|
87
|
-
*/
|
|
88
|
-
function createDemoEngineConfig() {
|
|
89
|
-
const { catalogue, registry } = createGraphNodeCatalogue();
|
|
90
|
-
const codeSandboxEvaluator = new index_js_1.IsolatedVmCodeSandboxEvaluator();
|
|
91
|
-
return {
|
|
92
|
-
catalogue,
|
|
93
|
-
registry,
|
|
94
|
-
defaultOptions: { failFast: false },
|
|
95
|
-
codeSandboxEvaluator,
|
|
96
|
-
onEngineCreated: (engine) => {
|
|
97
|
-
registerEngineBoundGraphNodes(catalogue, engine);
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=GraphExecutorRegistryFactory.js.map
|
|
102
|
-
//# sourceMappingURL=GraphExecutorRegistryFactory.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest/graph/GraphExecutorRegistryFactory.cjs","sourceRoot":"","sources":["nest/graph/GraphExecutorRegistryFactory.js"],"names":[],"mappings":";;AA+BA,4DAYC;AASD,kEAEC;AAUD,sEAKC;AAYD,wDAYC;AA7FD;;;;;;;;;GASG;AACH,qDAAkL;AAClL,MAAM,eAAe,GAAG;IACpB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACtB,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;KAC3D,CAAC;IACF,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC;KACxC,CAAC;CACL,CAAC;AACF;;;;;;;;;;;GAWG;AACH,SAAgB,wBAAwB,CAAC,KAAK;IAC1C,MAAM,SAAS,GAAG,IAAI,6BAAkB,EAAE,CAAC;IAC3C,IAAA,oCAAyB,EAAC,SAAS,CAAC,CAAC;IACrC,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACvD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACR,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACnD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,oCAAyB,CAAC,SAAS,CAAC,EAAE,CAAC;AAC7E,CAAC;AACD;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CAAC,KAAK;IAC7C,OAAO,wBAAwB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;AACpD,CAAC;AACD;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM;IAC3D,KAAK,MAAM,YAAY,IAAI,IAAA,wCAA6B,EAAC,MAAM,CAAC,EAAE,CAAC;QAC/D,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AACD;;;;;;;;;;GAUG;AACH,SAAgB,sBAAsB;IAClC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,wBAAwB,EAAE,CAAC;IAC3D,MAAM,oBAAoB,GAAG,IAAI,yCAA8B,EAAE,CAAC;IAClE,OAAO;QACH,SAAS;QACT,QAAQ;QACR,cAAc,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;QACnC,oBAAoB;QACpB,eAAe,EAAE,CAAC,MAAM,EAAE,EAAE;YACxB,6BAA6B,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;KACJ,CAAC;AACN,CAAC;AACD,wDAAwD"}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphNodeCatalogueController = exports.GRAPH_CATALOGUE_CONTROLLER_OPTIONS = void 0;
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
19
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @module integrations/nest/graph/GraphNodeCatalogueController
|
|
23
|
-
* @summary Catalogue HTTP API (DECAF-50 §4.12–§4.13).
|
|
24
|
-
* @description Serves the trusted node catalogue over HTTP — manifest
|
|
25
|
-
* listing (`node-types`), per-kind manifests/icons, parameterized `resolve`,
|
|
26
|
-
* and node-method invocation — with optional authentication and per-user
|
|
27
|
-
* rate limits on the expensive `resolve`/`methods` operations; non-JSON-safe
|
|
28
|
-
* request bodies are rejected.
|
|
29
|
-
*/
|
|
30
|
-
const common_1 = require("@nestjs/common");
|
|
31
|
-
const node_crypto_1 = require("node:crypto");
|
|
32
|
-
const for_nest_1 = require("@decaf-ts/for-nest");
|
|
33
|
-
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
34
|
-
const index_js_1 = require("./../../graph/index.cjs");
|
|
35
|
-
const GraphWorkflowService_js_1 = require("./GraphWorkflowService.cjs");
|
|
36
|
-
/** DI token for {@link GraphCatalogueControllerOptions}. */
|
|
37
|
-
exports.GRAPH_CATALOGUE_CONTROLLER_OPTIONS = "GRAPH_CATALOGUE_CONTROLLER_OPTIONS";
|
|
38
|
-
const DEFAULT_RATE_LIMIT = {
|
|
39
|
-
windowMs: 60_000,
|
|
40
|
-
maxRequests: 60,
|
|
41
|
-
};
|
|
42
|
-
function sanitizeGraphJsonInput(value, scope) {
|
|
43
|
-
if (!(0, graph_1.isGraphJsonSafeValue)(value)) {
|
|
44
|
-
throw new common_1.HttpException(`${scope} must be JSON-safe: functions, class instances, undefined, NaN/Infinity, symbol keys and unsafe prototype keys (__proto__/prototype/constructor) are not allowed`, common_1.HttpStatus.UNPROCESSABLE_ENTITY);
|
|
45
|
-
}
|
|
46
|
-
return (0, graph_1.cloneGraphJsonValue)(value);
|
|
47
|
-
}
|
|
48
|
-
function manifestDigest(payload) {
|
|
49
|
-
return `"${(0, node_crypto_1.createHash)("sha1")
|
|
50
|
-
.update(JSON.stringify(payload))
|
|
51
|
-
.digest("base64url")}"`;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Catalogue HTTP API (DECAF-50 §4.13): serves registered node manifests as
|
|
55
|
-
* data (never constructors), resolves effective manifests for node
|
|
56
|
-
* instances, and invokes declared node methods. Enforces configured
|
|
57
|
-
* authentication and per-user rate limits on the expensive
|
|
58
|
-
* `resolve`/`methods` operations, and rejects non-JSON-safe request bodies.
|
|
59
|
-
*/
|
|
60
|
-
let GraphNodeCatalogueController = class GraphNodeCatalogueController {
|
|
61
|
-
constructor(catalogue, requestContext, options = {}) {
|
|
62
|
-
this.catalogue = catalogue;
|
|
63
|
-
this.requestContext = requestContext;
|
|
64
|
-
this.options = options;
|
|
65
|
-
this.rateBuckets = new Map();
|
|
66
|
-
}
|
|
67
|
-
requireAuthenticatedContext() {
|
|
68
|
-
if ((this.options.auth ?? "required") !== "required") {
|
|
69
|
-
return this.requestContext;
|
|
70
|
-
}
|
|
71
|
-
if (!this.requestContext) {
|
|
72
|
-
throw new common_1.HttpException("Graph node catalogue access requires an authenticated request context", common_1.HttpStatus.UNAUTHORIZED);
|
|
73
|
-
}
|
|
74
|
-
return this.requestContext;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Builds the rate-limit bucket key for an operation: the authenticated
|
|
78
|
-
* owner resolved via {@link graphWorkflowOwnerOf} (SAA-595 F6), falling
|
|
79
|
-
* back to the context `user.id`, then the request IP, then a shared
|
|
80
|
-
* `"anonymous"` bucket.
|
|
81
|
-
*/
|
|
82
|
-
rateLimitKey(operation) {
|
|
83
|
-
const context = this.requestContext;
|
|
84
|
-
const user = context?.["user"];
|
|
85
|
-
const identity = (0, GraphWorkflowService_js_1.graphWorkflowOwnerOf)(context) ||
|
|
86
|
-
(typeof user?.["id"] === "string" && user["id"]) ||
|
|
87
|
-
context?.request
|
|
88
|
-
?.ip ||
|
|
89
|
-
"anonymous";
|
|
90
|
-
return `${operation}:${identity}`;
|
|
91
|
-
}
|
|
92
|
-
enforceRateLimit(operation, limits) {
|
|
93
|
-
const config = { ...DEFAULT_RATE_LIMIT, ...limits };
|
|
94
|
-
const now = Date.now();
|
|
95
|
-
const key = this.rateLimitKey(operation);
|
|
96
|
-
const bucket = this.rateBuckets.get(key);
|
|
97
|
-
if (!bucket || bucket.resetAt <= now) {
|
|
98
|
-
this.rateBuckets.set(key, { count: 1, resetAt: now + config.windowMs });
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
if (bucket.count >= config.maxRequests) {
|
|
102
|
-
throw new common_1.HttpException(`Rate limit exceeded for graph catalogue operation '${operation}' (max ${config.maxRequests} per ${config.windowMs}ms)`, common_1.HttpStatus.TOO_MANY_REQUESTS);
|
|
103
|
-
}
|
|
104
|
-
bucket.count += 1;
|
|
105
|
-
}
|
|
106
|
-
async listNodeTypes(ifNoneMatch, res) {
|
|
107
|
-
this.requireAuthenticatedContext();
|
|
108
|
-
const manifests = this.catalogue.listManifests();
|
|
109
|
-
const etag = manifestDigest(manifests);
|
|
110
|
-
res.setHeader("ETag", etag);
|
|
111
|
-
if (ifNoneMatch && ifNoneMatch === etag) {
|
|
112
|
-
res.status(common_1.HttpStatus.NOT_MODIFIED);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
return manifests;
|
|
116
|
-
}
|
|
117
|
-
async getNodeType(kind) {
|
|
118
|
-
this.requireAuthenticatedContext();
|
|
119
|
-
this.assertKnownKind(kind);
|
|
120
|
-
return this.catalogue.getManifest(kind);
|
|
121
|
-
}
|
|
122
|
-
async getNodeTypeIcon(kind) {
|
|
123
|
-
this.requireAuthenticatedContext();
|
|
124
|
-
this.assertKnownKind(kind);
|
|
125
|
-
const manifest = this.catalogue.getManifest(kind);
|
|
126
|
-
return { kind, icon: manifest.display.icon ?? null };
|
|
127
|
-
}
|
|
128
|
-
async resolveNodeType(kind, body = {}) {
|
|
129
|
-
this.requireAuthenticatedContext();
|
|
130
|
-
this.enforceRateLimit("resolve", this.options.resolveRateLimit);
|
|
131
|
-
this.assertKnownKind(kind);
|
|
132
|
-
const parameters = body?.parameters
|
|
133
|
-
? sanitizeGraphJsonInput(body.parameters, "resolve parameters")
|
|
134
|
-
: {};
|
|
135
|
-
const metadata = body?.metadata
|
|
136
|
-
? sanitizeGraphJsonInput(body.metadata, "resolve metadata")
|
|
137
|
-
: undefined;
|
|
138
|
-
const instance = {
|
|
139
|
-
id: `resolve:${kind}`,
|
|
140
|
-
kind,
|
|
141
|
-
parameters,
|
|
142
|
-
...(metadata ? { metadata } : {}),
|
|
143
|
-
};
|
|
144
|
-
const context = {
|
|
145
|
-
requestContext: this.requestContext,
|
|
146
|
-
};
|
|
147
|
-
return this.catalogue.resolveManifest(kind, instance, context);
|
|
148
|
-
}
|
|
149
|
-
async invokeNodeMethod(kind, method, body = {}) {
|
|
150
|
-
this.requireAuthenticatedContext();
|
|
151
|
-
this.enforceRateLimit("methods", this.options.methodsRateLimit);
|
|
152
|
-
this.assertKnownKind(kind);
|
|
153
|
-
this.declaredMethod(kind, method, body?.methodType);
|
|
154
|
-
const parameters = body?.parameters
|
|
155
|
-
? sanitizeGraphJsonInput(body.parameters, "method parameters")
|
|
156
|
-
: {};
|
|
157
|
-
const payload = body?.payload !== undefined
|
|
158
|
-
? sanitizeGraphJsonInput(body.payload, "method payload")
|
|
159
|
-
: undefined;
|
|
160
|
-
const credentials = this.authorizeCredentials(kind, body?.credentials);
|
|
161
|
-
const nodeMethod = this.catalogue.getMethod(kind, method);
|
|
162
|
-
return nodeMethod({
|
|
163
|
-
kind,
|
|
164
|
-
method,
|
|
165
|
-
parameters,
|
|
166
|
-
...(payload !== undefined ? { payload } : {}),
|
|
167
|
-
}, {
|
|
168
|
-
requestContext: this.requestContext,
|
|
169
|
-
...(credentials.length ? { credentials } : {}),
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
assertKnownKind(kind) {
|
|
173
|
-
if (!this.catalogue.has(kind)) {
|
|
174
|
-
throw new common_1.HttpException(`No graph node kind '${kind}' is registered in the catalogue`, common_1.HttpStatus.NOT_FOUND);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
declaredMethod(kind, method, expectedType) {
|
|
178
|
-
let declaration;
|
|
179
|
-
try {
|
|
180
|
-
declaration = this.catalogue.getMethodDeclaration(kind, method);
|
|
181
|
-
}
|
|
182
|
-
catch {
|
|
183
|
-
throw new common_1.HttpException(`Graph node kind '${kind}' does not declare method '${method}'`, common_1.HttpStatus.NOT_FOUND);
|
|
184
|
-
}
|
|
185
|
-
if (!(0, graph_1.isGraphNodeMethodType)(declaration.type)) {
|
|
186
|
-
throw new common_1.HttpException(`Graph node kind '${kind}' declares method '${method}' with an invalid type '${String(declaration.type)}'`, common_1.HttpStatus.INTERNAL_SERVER_ERROR);
|
|
187
|
-
}
|
|
188
|
-
if (expectedType && expectedType !== declaration.type) {
|
|
189
|
-
throw new common_1.HttpException(`Method '${method}' on kind '${kind}' has type '${declaration.type}', not '${expectedType}'`, common_1.HttpStatus.BAD_REQUEST);
|
|
190
|
-
}
|
|
191
|
-
return declaration;
|
|
192
|
-
}
|
|
193
|
-
authorizeCredentials(kind, provided) {
|
|
194
|
-
const requirements = this.catalogue.getManifest(kind).credentials ?? [];
|
|
195
|
-
const references = provided ?? [];
|
|
196
|
-
for (const reference of references) {
|
|
197
|
-
if (!reference ||
|
|
198
|
-
typeof reference.credentialId !== "string" ||
|
|
199
|
-
!reference.credentialId ||
|
|
200
|
-
typeof reference.credentialType !== "string" ||
|
|
201
|
-
!reference.credentialType) {
|
|
202
|
-
throw new common_1.HttpException("Credential references must carry a credentialId and a credentialType", common_1.HttpStatus.BAD_REQUEST);
|
|
203
|
-
}
|
|
204
|
-
const declared = requirements.some((requirement) => requirement.type === reference.credentialType);
|
|
205
|
-
if (!declared) {
|
|
206
|
-
throw new common_1.HttpException(`Graph node kind '${kind}' does not accept credentials of type '${reference.credentialType}'`, common_1.HttpStatus.FORBIDDEN);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
for (const requirement of requirements) {
|
|
210
|
-
if (!requirement.required)
|
|
211
|
-
continue;
|
|
212
|
-
const satisfied = references.some((reference) => reference.credentialType === requirement.type);
|
|
213
|
-
if (!satisfied) {
|
|
214
|
-
throw new common_1.HttpException(`Graph node kind '${kind}' requires a credential of type '${requirement.type}'`, common_1.HttpStatus.UNAUTHORIZED);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return references;
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
exports.GraphNodeCatalogueController = GraphNodeCatalogueController;
|
|
221
|
-
__decorate([
|
|
222
|
-
(0, common_1.Get)("node-types"),
|
|
223
|
-
__param(0, (0, common_1.Headers)("if-none-match")),
|
|
224
|
-
__param(1, (0, common_1.Res)({ passthrough: true })),
|
|
225
|
-
__metadata("design:type", Function),
|
|
226
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
227
|
-
__metadata("design:returntype", Promise)
|
|
228
|
-
], GraphNodeCatalogueController.prototype, "listNodeTypes", null);
|
|
229
|
-
__decorate([
|
|
230
|
-
(0, common_1.Get)("node-types/:kind"),
|
|
231
|
-
__param(0, (0, common_1.Param)("kind")),
|
|
232
|
-
__metadata("design:type", Function),
|
|
233
|
-
__metadata("design:paramtypes", [String]),
|
|
234
|
-
__metadata("design:returntype", Promise)
|
|
235
|
-
], GraphNodeCatalogueController.prototype, "getNodeType", null);
|
|
236
|
-
__decorate([
|
|
237
|
-
(0, common_1.Get)("node-types/:kind/icon"),
|
|
238
|
-
__param(0, (0, common_1.Param)("kind")),
|
|
239
|
-
__metadata("design:type", Function),
|
|
240
|
-
__metadata("design:paramtypes", [String]),
|
|
241
|
-
__metadata("design:returntype", Promise)
|
|
242
|
-
], GraphNodeCatalogueController.prototype, "getNodeTypeIcon", null);
|
|
243
|
-
__decorate([
|
|
244
|
-
(0, common_1.Post)("node-types/:kind/resolve"),
|
|
245
|
-
__param(0, (0, common_1.Param)("kind")),
|
|
246
|
-
__param(1, (0, common_1.Body)()),
|
|
247
|
-
__metadata("design:type", Function),
|
|
248
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
249
|
-
__metadata("design:returntype", Promise)
|
|
250
|
-
], GraphNodeCatalogueController.prototype, "resolveNodeType", null);
|
|
251
|
-
__decorate([
|
|
252
|
-
(0, common_1.Post)("node-types/:kind/methods/:method"),
|
|
253
|
-
__param(0, (0, common_1.Param)("kind")),
|
|
254
|
-
__param(1, (0, common_1.Param)("method")),
|
|
255
|
-
__param(2, (0, common_1.Body)()),
|
|
256
|
-
__metadata("design:type", Function),
|
|
257
|
-
__metadata("design:paramtypes", [String, String, Object]),
|
|
258
|
-
__metadata("design:returntype", Promise)
|
|
259
|
-
], GraphNodeCatalogueController.prototype, "invokeNodeMethod", null);
|
|
260
|
-
exports.GraphNodeCatalogueController = GraphNodeCatalogueController = __decorate([
|
|
261
|
-
(0, common_1.Controller)("graph"),
|
|
262
|
-
__param(1, (0, common_1.Optional)()),
|
|
263
|
-
__param(1, (0, common_1.Inject)(for_nest_1.DecafRequestContext)),
|
|
264
|
-
__param(2, (0, common_1.Optional)()),
|
|
265
|
-
__param(2, (0, common_1.Inject)(exports.GRAPH_CATALOGUE_CONTROLLER_OPTIONS)),
|
|
266
|
-
__metadata("design:paramtypes", [index_js_1.GraphNodeCatalogue,
|
|
267
|
-
for_nest_1.DecafRequestContext, Object])
|
|
268
|
-
], GraphNodeCatalogueController);
|
|
269
|
-
//# sourceMappingURL=GraphNodeCatalogueController.js.map
|
|
270
|
-
//# sourceMappingURL=GraphNodeCatalogueController.cjs.map
|