@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,423 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphParameterValidator = exports.GRAPH_PLAIN_SECRET_KEYS = void 0;
|
|
4
|
-
exports.checkGraphValueAgainstSchema = checkGraphValueAgainstSchema;
|
|
5
|
-
exports.isGraphCredentialReferenceLike = isGraphCredentialReferenceLike;
|
|
6
|
-
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
7
|
-
/**
|
|
8
|
-
* Checks a JSON value against a {@link GraphValueSchema}.
|
|
9
|
-
*
|
|
10
|
-
* `model` schemas are treated as `object` (property-level checks apply only
|
|
11
|
-
* when a `properties` map is declared).
|
|
12
|
-
*/
|
|
13
|
-
function checkGraphValueAgainstSchema(value, schema) {
|
|
14
|
-
if (!schema)
|
|
15
|
-
return { valid: true };
|
|
16
|
-
switch (schema.type) {
|
|
17
|
-
case "any":
|
|
18
|
-
return { valid: true };
|
|
19
|
-
case "string":
|
|
20
|
-
if (typeof value !== "string")
|
|
21
|
-
return notOfType("string");
|
|
22
|
-
return { valid: true };
|
|
23
|
-
case "number": {
|
|
24
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
25
|
-
return notOfType("number");
|
|
26
|
-
}
|
|
27
|
-
if (schema.integer && !Number.isInteger(value)) {
|
|
28
|
-
return { valid: false, message: "expected an integer number" };
|
|
29
|
-
}
|
|
30
|
-
if (schema.min !== undefined && value < schema.min) {
|
|
31
|
-
return { valid: false, message: `expected a number >= ${schema.min}` };
|
|
32
|
-
}
|
|
33
|
-
if (schema.max !== undefined && value > schema.max) {
|
|
34
|
-
return { valid: false, message: `expected a number <= ${schema.max}` };
|
|
35
|
-
}
|
|
36
|
-
return { valid: true };
|
|
37
|
-
}
|
|
38
|
-
case "boolean":
|
|
39
|
-
if (typeof value !== "boolean")
|
|
40
|
-
return notOfType("boolean");
|
|
41
|
-
return { valid: true };
|
|
42
|
-
case "array": {
|
|
43
|
-
if (!Array.isArray(value))
|
|
44
|
-
return notOfType("array");
|
|
45
|
-
if (schema.minItems !== undefined && value.length < schema.minItems) {
|
|
46
|
-
return {
|
|
47
|
-
valid: false,
|
|
48
|
-
message: `expected at least ${schema.minItems} items`,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
if (schema.maxItems !== undefined && value.length > schema.maxItems) {
|
|
52
|
-
return {
|
|
53
|
-
valid: false,
|
|
54
|
-
message: `expected at most ${schema.maxItems} items`,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
for (const item of value) {
|
|
58
|
-
const result = checkGraphValueAgainstSchema(item, schema.items);
|
|
59
|
-
if (!result.valid)
|
|
60
|
-
return result;
|
|
61
|
-
}
|
|
62
|
-
return { valid: true };
|
|
63
|
-
}
|
|
64
|
-
case "object":
|
|
65
|
-
case "model": {
|
|
66
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
67
|
-
return notOfType(schema.type);
|
|
68
|
-
}
|
|
69
|
-
const objectSchema = schema;
|
|
70
|
-
const properties = objectSchema.properties;
|
|
71
|
-
if (!properties)
|
|
72
|
-
return { valid: true };
|
|
73
|
-
for (const [key, propertySchema] of Object.entries(properties)) {
|
|
74
|
-
if (key in value) {
|
|
75
|
-
const result = checkGraphValueAgainstSchema(value[key], propertySchema);
|
|
76
|
-
if (!result.valid) {
|
|
77
|
-
return { valid: false, message: `property '${key}': ${result.message}` };
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (objectSchema.required) {
|
|
82
|
-
for (const key of objectSchema.required) {
|
|
83
|
-
if (!(key in value)) {
|
|
84
|
-
return {
|
|
85
|
-
valid: false,
|
|
86
|
-
message: `missing required property '${key}'`,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (objectSchema.additionalProperties === false) {
|
|
92
|
-
for (const key of Object.keys(value)) {
|
|
93
|
-
if (!(key in properties)) {
|
|
94
|
-
return {
|
|
95
|
-
valid: false,
|
|
96
|
-
message: `unexpected property '${key}'`,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return { valid: true };
|
|
102
|
-
}
|
|
103
|
-
case "enum":
|
|
104
|
-
if (!schema.values.some((candidate) => candidate === value)) {
|
|
105
|
-
return { valid: false, message: "value is not one of the enum values" };
|
|
106
|
-
}
|
|
107
|
-
return { valid: true };
|
|
108
|
-
default:
|
|
109
|
-
return { valid: true };
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function notOfType(expected) {
|
|
113
|
-
return { valid: false, message: `expected a ${expected} value` };
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Returns `true` when the value looks like a plain credential reference
|
|
117
|
-
* (a `credentialId` string, optionally with a `credentialType`).
|
|
118
|
-
*/
|
|
119
|
-
function isGraphCredentialReferenceLike(value) {
|
|
120
|
-
if (typeof value === "string")
|
|
121
|
-
return value.length > 0;
|
|
122
|
-
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
123
|
-
return false;
|
|
124
|
-
const record = value;
|
|
125
|
-
return (typeof record["credentialId"] === "string" &&
|
|
126
|
-
record["credentialId"].length > 0 &&
|
|
127
|
-
(record["credentialType"] === undefined ||
|
|
128
|
-
typeof record["credentialType"] === "string"));
|
|
129
|
-
}
|
|
130
|
-
/** Keys never allowed as instance metadata keys. */
|
|
131
|
-
const GRAPH_RESERVED_INSTANCE_METADATA_KEYS = new Set(["loop"]);
|
|
132
|
-
/**
|
|
133
|
-
* Keys that must never carry plain secret material in a workflow document
|
|
134
|
-
* (DECAF-50 §4.8/§4.16 — documents store credential references only).
|
|
135
|
-
*/
|
|
136
|
-
exports.GRAPH_PLAIN_SECRET_KEYS = [
|
|
137
|
-
"secret",
|
|
138
|
-
"secrets",
|
|
139
|
-
"password",
|
|
140
|
-
"passwd",
|
|
141
|
-
"token",
|
|
142
|
-
"accessToken",
|
|
143
|
-
"refreshToken",
|
|
144
|
-
"apiKey",
|
|
145
|
-
"api_key",
|
|
146
|
-
"privateKey",
|
|
147
|
-
"credentials",
|
|
148
|
-
];
|
|
149
|
-
/**
|
|
150
|
-
* Validates the parameters, bindings, metadata, and disabled behavior of a
|
|
151
|
-
* single resolved node instance.
|
|
152
|
-
*/
|
|
153
|
-
class GraphParameterValidator {
|
|
154
|
-
/**
|
|
155
|
-
* Validates a node's parameters, instance metadata keys, disabled
|
|
156
|
-
* behavior, and binding shapes against the effective manifest.
|
|
157
|
-
*
|
|
158
|
-
* Called at stage 3 (parameters) with the manifest resolved at stage 2.
|
|
159
|
-
*/
|
|
160
|
-
validate(node, manifest, issues, path) {
|
|
161
|
-
this.validateParameters(node, manifest, issues, path);
|
|
162
|
-
this.validateMetadataKeys(node, manifest, issues, path);
|
|
163
|
-
this.validateDisabledBehavior(node, issues, path);
|
|
164
|
-
this.validateBindingShapes(node, manifest, issues, path);
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Declared-ness, required presence, typing, and declarative validation
|
|
168
|
-
* rules for parameter values. Validation is visibility-invariant: hidden
|
|
169
|
-
* parameters are validated identically (visibility cannot bypass
|
|
170
|
-
* security-sensitive validation).
|
|
171
|
-
*/
|
|
172
|
-
validateParameters(node, manifest, issues, path) {
|
|
173
|
-
const allowUndeclared = manifest.policies?.allowUndeclaredParameters === true;
|
|
174
|
-
const declared = new Map(manifest.parameters.map((parameter) => [parameter.id, parameter]));
|
|
175
|
-
for (const [key, value] of Object.entries(node.parameters ?? {})) {
|
|
176
|
-
const parameter = declared.get(key);
|
|
177
|
-
if (!parameter) {
|
|
178
|
-
if (!allowUndeclared) {
|
|
179
|
-
issues.push({
|
|
180
|
-
code: "parameter.undeclared",
|
|
181
|
-
path: `${path}.parameters.${key}`,
|
|
182
|
-
message: `Node '${node.id}' sets parameter '${key}' which is not declared by kind '${manifest.kind}'`,
|
|
183
|
-
nodeId: node.id,
|
|
184
|
-
details: { kind: manifest.kind },
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
continue;
|
|
188
|
-
}
|
|
189
|
-
if (value === undefined) {
|
|
190
|
-
issues.push({
|
|
191
|
-
code: "parameter.invalid",
|
|
192
|
-
path: `${path}.parameters.${key}`,
|
|
193
|
-
message: `Node '${node.id}' parameter '${key}' must not be undefined`,
|
|
194
|
-
nodeId: node.id,
|
|
195
|
-
});
|
|
196
|
-
continue;
|
|
197
|
-
}
|
|
198
|
-
const result = this.checkParameterValue(value, parameter);
|
|
199
|
-
if (!result.valid) {
|
|
200
|
-
issues.push({
|
|
201
|
-
code: "parameter.type-mismatch",
|
|
202
|
-
path: `${path}.parameters.${key}`,
|
|
203
|
-
message: `Node '${node.id}' parameter '${key}' is invalid: ${result.message}`,
|
|
204
|
-
nodeId: node.id,
|
|
205
|
-
details: { expectedType: parameter.type },
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
for (const parameter of manifest.parameters) {
|
|
210
|
-
const provided = (node.parameters ?? {})[parameter.id];
|
|
211
|
-
if (provided !== undefined)
|
|
212
|
-
continue;
|
|
213
|
-
const isRequired = parameter.required === true ||
|
|
214
|
-
(parameter.validation ?? []).some((rule) => rule.kind === "required");
|
|
215
|
-
if (isRequired && parameter.defaultValue === undefined) {
|
|
216
|
-
issues.push({
|
|
217
|
-
code: "parameter.required-missing",
|
|
218
|
-
path: `${path}.parameters.${parameter.id}`,
|
|
219
|
-
message: `Node '${node.id}' is missing required parameter '${parameter.id}' declared by kind '${manifest.kind}'`,
|
|
220
|
-
nodeId: node.id,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Type-checks a parameter value against its parameter definition.
|
|
227
|
-
*/
|
|
228
|
-
checkParameterValue(value, parameter) {
|
|
229
|
-
switch (parameter.type) {
|
|
230
|
-
case "string":
|
|
231
|
-
case "code":
|
|
232
|
-
case "expression":
|
|
233
|
-
if (typeof value !== "string")
|
|
234
|
-
return notOfType("string");
|
|
235
|
-
return { valid: true };
|
|
236
|
-
case "number":
|
|
237
|
-
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
238
|
-
return notOfType("number");
|
|
239
|
-
}
|
|
240
|
-
return { valid: true };
|
|
241
|
-
case "boolean":
|
|
242
|
-
if (typeof value !== "boolean")
|
|
243
|
-
return notOfType("boolean");
|
|
244
|
-
return { valid: true };
|
|
245
|
-
case "options": {
|
|
246
|
-
const options = parameter.options;
|
|
247
|
-
if (options && options.length && !options.some((o) => o.value === value)) {
|
|
248
|
-
return { valid: false, message: "value is not one of the declared options" };
|
|
249
|
-
}
|
|
250
|
-
return { valid: true };
|
|
251
|
-
}
|
|
252
|
-
case "collection":
|
|
253
|
-
if (!Array.isArray(value))
|
|
254
|
-
return notOfType("array");
|
|
255
|
-
return { valid: true };
|
|
256
|
-
case "object":
|
|
257
|
-
case "resourceLocator":
|
|
258
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
259
|
-
return notOfType("object");
|
|
260
|
-
}
|
|
261
|
-
return { valid: true };
|
|
262
|
-
case "credential":
|
|
263
|
-
if (!isGraphCredentialReferenceLike(value)) {
|
|
264
|
-
return {
|
|
265
|
-
valid: false,
|
|
266
|
-
message: "credential parameters must hold a credential reference (credentialId), never a secret",
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
if (parameter.credentialType &&
|
|
270
|
-
typeof value === "object" &&
|
|
271
|
-
value.credentialType !== undefined &&
|
|
272
|
-
value.credentialType !== parameter.credentialType) {
|
|
273
|
-
return {
|
|
274
|
-
valid: false,
|
|
275
|
-
message: `credential type '${value.credentialType}' does not match the declared type '${parameter.credentialType}'`,
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
return { valid: true };
|
|
279
|
-
case "notice":
|
|
280
|
-
case "hidden":
|
|
281
|
-
return { valid: true };
|
|
282
|
-
default:
|
|
283
|
-
return { valid: true };
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Instance metadata keys: unsafe keys and engine-reserved keys are
|
|
288
|
-
* rejected; when the manifest declares an explicit allow-list
|
|
289
|
-
* (`metadata.allowedInstanceMetadataKeys`), only listed keys are allowed.
|
|
290
|
-
*/
|
|
291
|
-
validateMetadataKeys(node, manifest, issues, path) {
|
|
292
|
-
const allowedByManifest = manifest.metadata?.["allowedInstanceMetadataKeys"];
|
|
293
|
-
for (const key of Object.keys(node.metadata ?? {})) {
|
|
294
|
-
if (GRAPH_RESERVED_INSTANCE_METADATA_KEYS.has(key)) {
|
|
295
|
-
issues.push({
|
|
296
|
-
code: "metadata.key-not-allowed",
|
|
297
|
-
path: `${path}.metadata.${key}`,
|
|
298
|
-
message: `Node '${node.id}' metadata key '${key}' is reserved and must not be set directly`,
|
|
299
|
-
nodeId: node.id,
|
|
300
|
-
});
|
|
301
|
-
continue;
|
|
302
|
-
}
|
|
303
|
-
if (Array.isArray(allowedByManifest) &&
|
|
304
|
-
!allowedByManifest.includes(key)) {
|
|
305
|
-
issues.push({
|
|
306
|
-
code: "metadata.key-not-allowed",
|
|
307
|
-
path: `${path}.metadata.${key}`,
|
|
308
|
-
message: `Node '${node.id}' metadata key '${key}' is not in the allowed metadata keys of kind '${manifest.kind}'`,
|
|
309
|
-
nodeId: node.id,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Disabled-node behavior must be one of the explicit
|
|
316
|
-
* {@link GRAPH_DISABLED_NODE_BEHAVIORS} values when configured.
|
|
317
|
-
*/
|
|
318
|
-
validateDisabledBehavior(node, issues, path) {
|
|
319
|
-
if (node.disabled !== true && node.disabled !== false && node.disabled !== undefined) {
|
|
320
|
-
issues.push({
|
|
321
|
-
code: "disabled.invalid",
|
|
322
|
-
path: `${path}.disabled`,
|
|
323
|
-
message: `Node '${node.id}' disabled flag must be a boolean`,
|
|
324
|
-
nodeId: node.id,
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
const behavior = (node.metadata ?? {})["disabledBehavior"];
|
|
328
|
-
if (behavior !== undefined && !(0, graph_1.isGraphDisabledNodeBehavior)(behavior)) {
|
|
329
|
-
issues.push({
|
|
330
|
-
code: "disabled.invalid-behavior",
|
|
331
|
-
path: `${path}.metadata.disabledBehavior`,
|
|
332
|
-
message: `Node '${node.id}' disabled behavior '${String(behavior)}' is not one of: ${graph_1.GRAPH_DISABLED_NODE_BEHAVIORS.join(", ")}`,
|
|
333
|
-
nodeId: node.id,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Binding shape validity: literal bindings must conform to the effective
|
|
339
|
-
* port schema (when declared), expression bindings must be non-empty
|
|
340
|
-
* strings, and binding values must be JSON-safe.
|
|
341
|
-
*/
|
|
342
|
-
validateBindingShapes(node, manifest, issues, path) {
|
|
343
|
-
for (const [key, binding] of Object.entries(node.inputBindings ?? {})) {
|
|
344
|
-
if (binding.mode === "literal") {
|
|
345
|
-
const port = manifest.inputs.find((candidate) => candidate.id === key);
|
|
346
|
-
if (port?.schema) {
|
|
347
|
-
const result = checkGraphValueAgainstSchema(binding.value, port.schema);
|
|
348
|
-
if (!result.valid) {
|
|
349
|
-
issues.push({
|
|
350
|
-
code: "binding.literal-invalid",
|
|
351
|
-
path: `${path}.inputBindings.${key}`,
|
|
352
|
-
message: `Node '${node.id}' literal binding for '${key}' is schema-invalid: ${result.message}`,
|
|
353
|
-
nodeId: node.id,
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if (binding.mode === "expression" &&
|
|
359
|
-
(typeof binding.expression !== "string" || !binding.expression.trim())) {
|
|
360
|
-
issues.push({
|
|
361
|
-
code: "binding.expression-invalid",
|
|
362
|
-
path: `${path}.inputBindings.${key}`,
|
|
363
|
-
message: `Node '${node.id}' expression binding for '${key}' must contain a non-empty expression`,
|
|
364
|
-
nodeId: node.id,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* Stage-7 binding satisfaction checks: a port with an incoming edge must
|
|
371
|
-
* not also carry a literal binding (unless explicitly allowed), and every
|
|
372
|
-
* required effective input port must be satisfiable (incoming edge,
|
|
373
|
-
* literal, or expression binding).
|
|
374
|
-
*/
|
|
375
|
-
validateBindingSatisfaction(node, manifest, incoming, issues, path, options = {}) {
|
|
376
|
-
const edgePorts = new Set(incoming
|
|
377
|
-
.filter((edge) => edge.type === "data")
|
|
378
|
-
.map((edge) => edge.targetPort));
|
|
379
|
-
const boundPorts = new Set(Object.entries(node.inputBindings ?? {}).map(([key]) => key));
|
|
380
|
-
for (const key of edgePorts) {
|
|
381
|
-
const binding = (node.inputBindings ?? {})[key];
|
|
382
|
-
if (binding &&
|
|
383
|
-
binding.mode === "literal" &&
|
|
384
|
-
options.allowLiteralAndEdgeBindings !== true) {
|
|
385
|
-
issues.push({
|
|
386
|
-
code: "binding.conflict",
|
|
387
|
-
path: `${path}.inputBindings.${key}`,
|
|
388
|
-
message: `Node '${node.id}' input '${key}' has both an incoming edge and a literal binding`,
|
|
389
|
-
nodeId: node.id,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
for (const port of manifest.inputs) {
|
|
394
|
-
if (port.required !== true)
|
|
395
|
-
continue;
|
|
396
|
-
if (edgePorts.has(port.id) || boundPorts.has(port.id))
|
|
397
|
-
continue;
|
|
398
|
-
issues.push({
|
|
399
|
-
code: "topology.required-input-unsatisfiable",
|
|
400
|
-
path: `${path}.parameters`,
|
|
401
|
-
message: `Node '${node.id}' required input '${port.id}' has no incoming edge or binding`,
|
|
402
|
-
nodeId: node.id,
|
|
403
|
-
details: { port: port.id },
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Resolves the effective disabled-node behavior for a node: instance
|
|
409
|
-
* metadata override, else the document settings, else the default.
|
|
410
|
-
*/
|
|
411
|
-
static disabledBehaviorOf(node, settings) {
|
|
412
|
-
const fromNode = (node.metadata ?? {})["disabledBehavior"];
|
|
413
|
-
if ((0, graph_1.isGraphDisabledNodeBehavior)(fromNode))
|
|
414
|
-
return fromNode;
|
|
415
|
-
const fromSettings = settings?.["disabledBehavior"];
|
|
416
|
-
if ((0, graph_1.isGraphDisabledNodeBehavior)(fromSettings))
|
|
417
|
-
return fromSettings;
|
|
418
|
-
return graph_1.GRAPH_DEFAULT_DISABLED_NODE_BEHAVIOR;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
exports.GraphParameterValidator = GraphParameterValidator;
|
|
422
|
-
//# sourceMappingURL=GraphParameterValidator.js.map
|
|
423
|
-
//# sourceMappingURL=GraphParameterValidator.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphParameterValidator.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphParameterValidator.js"],"names":[],"mappings":";;;AAOA,oEAkGC;A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BACxF,MAAM,EAAE,IAAI,CAAC,EAAE;gBACf,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;aAC7B,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IACD;;;OAGG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ;QACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC;QAC3D,IAAI,IAAA,mCAA2B,EAAC,QAAQ,CAAC;YACrC,OAAO,QAAQ,CAAC;QACpB,MAAM,YAAY,GAAG,QAAQ,EAAE,CAAC,kBAAkB,CAAC,CAAC;QACpD,IAAI,IAAA,mCAA2B,EAAC,YAAY,CAAC;YACzC,OAAO,YAAY,CAAC;QACxB,OAAO,4CAAoC,CAAC;IAChD,CAAC;CACJ;AA3QD,0DA2QC;AACD,mDAAmD"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphPortSchemaResolver = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Resolves a {@link GraphPortDefinition} to a Zod schema (or a lightweight
|
|
6
|
-
* validation function when Zod is not available).
|
|
7
|
-
*
|
|
8
|
-
* This implementation uses primitive type mapping. When the port's `model`
|
|
9
|
-
* field or underlying Decaf metadata references a `Model` class, consumers
|
|
10
|
-
* should use `modelToZod` from `@decaf-ts/as-zod` to build the schema.
|
|
11
|
-
*/
|
|
12
|
-
class GraphPortSchemaResolver {
|
|
13
|
-
/**
|
|
14
|
-
* Resolves a single port to a schema descriptor.
|
|
15
|
-
*
|
|
16
|
-
* @returns A descriptor with the port name, a `validate` function, and
|
|
17
|
-
* optional Zod schema reference.
|
|
18
|
-
*/
|
|
19
|
-
resolve(port) {
|
|
20
|
-
const validate = this.createValidator(port);
|
|
21
|
-
return { name: port.name, required: port.required, validate };
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Resolves multiple ports into a map of name -> descriptor.
|
|
25
|
-
*/
|
|
26
|
-
resolveAll(ports) {
|
|
27
|
-
const result = {};
|
|
28
|
-
for (const port of ports) {
|
|
29
|
-
result[port.name] = this.resolve(port);
|
|
30
|
-
}
|
|
31
|
-
return result;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates a validation function based on the port's type.
|
|
35
|
-
*/
|
|
36
|
-
createValidator(port) {
|
|
37
|
-
const type = (port.type ?? port.designType ?? "").toLowerCase();
|
|
38
|
-
switch (type) {
|
|
39
|
-
case "string":
|
|
40
|
-
return (v) => typeof v === "string";
|
|
41
|
-
case "number":
|
|
42
|
-
return (v) => typeof v === "number";
|
|
43
|
-
case "boolean":
|
|
44
|
-
return (v) => typeof v === "boolean";
|
|
45
|
-
case "date":
|
|
46
|
-
return (v) => v instanceof Date || (typeof v === "string" && !isNaN(Date.parse(v)));
|
|
47
|
-
case "array":
|
|
48
|
-
return (v) => Array.isArray(v);
|
|
49
|
-
case "bigint":
|
|
50
|
-
return (v) => typeof v === "bigint";
|
|
51
|
-
default:
|
|
52
|
-
return () => true;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.GraphPortSchemaResolver = GraphPortSchemaResolver;
|
|
57
|
-
//# sourceMappingURL=GraphPortSchemaResolver.js.map
|
|
58
|
-
//# sourceMappingURL=GraphPortSchemaResolver.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphPortSchemaResolver.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphPortSchemaResolver.js"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,MAAa,uBAAuB;IAChC;;;;;OAKG;IACH,OAAO,CAAC,IAAI;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,IAAI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CAAC;QAC1B,CAAC;IACL,CAAC;CACJ;AA3CD,0DA2CC;AACD,mDAAmD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphResolvedWorkflow.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphResolvedWorkflow.js"],"names":[],"mappings":";;AACA,iDAAiD"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphCredentialAuthorizationError = exports.GraphConnectionValidationError = exports.GraphDocumentValidationError = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @module integrations/graph/engine/validation/GraphValidationErrors
|
|
6
|
-
* @summary Normative validation error hierarchy for graph modules (DECAF-50 §4.8).
|
|
7
|
-
* @description Decaf error hierarchy ONLY (constitution §1.1.3): these errors
|
|
8
|
-
* extend the base Decaf errors, never raw `Error`. They are thrown for
|
|
9
|
-
* fail-fast paths (e.g. the engine refusing to execute an invalid document);
|
|
10
|
-
* the nine-stage validator itself accumulates structured
|
|
11
|
-
* {@link GraphValidationIssue}s instead of throwing.
|
|
12
|
-
*/
|
|
13
|
-
const core_1 = require("@decaf-ts/core");
|
|
14
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
15
|
-
/**
|
|
16
|
-
* Thrown when a workflow document is structurally or semantically invalid.
|
|
17
|
-
* Carries the structured issues found by the nine-stage validator.
|
|
18
|
-
*/
|
|
19
|
-
class GraphDocumentValidationError extends db_decorators_1.ValidationError {
|
|
20
|
-
constructor(message, issues = []) {
|
|
21
|
-
super(message);
|
|
22
|
-
this.issues = issues;
|
|
23
|
-
this.name = GraphDocumentValidationError.name;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.GraphDocumentValidationError = GraphDocumentValidationError;
|
|
27
|
-
/**
|
|
28
|
-
* Thrown when an edge violates connection-policy rules.
|
|
29
|
-
*/
|
|
30
|
-
class GraphConnectionValidationError extends db_decorators_1.ValidationError {
|
|
31
|
-
constructor(message, edgeId) {
|
|
32
|
-
super(message);
|
|
33
|
-
this.edgeId = edgeId;
|
|
34
|
-
this.name = GraphConnectionValidationError.name;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.GraphConnectionValidationError = GraphConnectionValidationError;
|
|
38
|
-
/**
|
|
39
|
-
* Thrown when a credential reference fails existence, authorization, or
|
|
40
|
-
* type-match checks.
|
|
41
|
-
*/
|
|
42
|
-
class GraphCredentialAuthorizationError extends core_1.AuthorizationError {
|
|
43
|
-
constructor(message) {
|
|
44
|
-
super(message);
|
|
45
|
-
this.name = GraphCredentialAuthorizationError.name;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.GraphCredentialAuthorizationError = GraphCredentialAuthorizationError;
|
|
49
|
-
//# sourceMappingURL=GraphValidationErrors.js.map
|
|
50
|
-
//# sourceMappingURL=GraphValidationErrors.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphValidationErrors.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphValidationErrors.js"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACH,yCAAoD;AACpD,2DAA0D;AAC1D;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,+BAAe;IAC7D,YAAY,OAAO,EAAE,MAAM,GAAG,EAAE;QAC5B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC,IAAI,CAAC;IAClD,CAAC;CACJ;AAND,oEAMC;AACD;;GAEG;AACH,MAAa,8BAA+B,SAAQ,+BAAe;IAC/D,YAAY,OAAO,EAAE,MAAM;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,8BAA8B,CAAC,IAAI,CAAC;IACpD,CAAC;CACJ;AAND,wEAMC;AACD;;;GAGG;AACH,MAAa,iCAAkC,SAAQ,yBAAkB;IACrE,YAAY,OAAO;QACf,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,IAAI,CAAC;IACvD,CAAC;CACJ;AALD,8EAKC;AACD,iDAAiD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphValidationIssue.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphValidationIssue.js"],"names":[],"mappings":";;AACA,gDAAgD"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphValueValidator = void 0;
|
|
4
|
-
const GraphInputError_js_1 = require("./../errors/GraphInputError.cjs");
|
|
5
|
-
/**
|
|
6
|
-
* Validates runtime values against port definitions.
|
|
7
|
-
*/
|
|
8
|
-
class GraphValueValidator {
|
|
9
|
-
constructor(resolver) {
|
|
10
|
-
this.resolver = resolver;
|
|
11
|
-
}
|
|
12
|
-
/** Validates workflow-level input values. */
|
|
13
|
-
validateWorkflowInputs(workflow, values) {
|
|
14
|
-
this.validatePorts(workflow.inputs, values, "workflow input");
|
|
15
|
-
}
|
|
16
|
-
/** Validates workflow-level output values. */
|
|
17
|
-
validateWorkflowOutputs(workflow, values) {
|
|
18
|
-
this.validatePorts(workflow.outputs, values, "workflow output");
|
|
19
|
-
}
|
|
20
|
-
/** Validates a node's input values. */
|
|
21
|
-
validateNodeInputs(node, values) {
|
|
22
|
-
const inputPorts = (node.ports ?? []).filter((p) => p.direction === "input");
|
|
23
|
-
this.validatePorts(inputPorts, values, `node '${node.name}' input`);
|
|
24
|
-
}
|
|
25
|
-
/** Validates a node's output values. */
|
|
26
|
-
validateNodeOutputs(node, values) {
|
|
27
|
-
const outputPorts = (node.ports ?? []).filter((p) => p.direction === "output");
|
|
28
|
-
this.validatePorts(outputPorts, values, `node '${node.name}' output`);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Validates values against a set of port definitions.
|
|
32
|
-
*/
|
|
33
|
-
validatePorts(ports, values, context) {
|
|
34
|
-
if (!ports)
|
|
35
|
-
return;
|
|
36
|
-
for (const port of ports) {
|
|
37
|
-
const has = Object.prototype.hasOwnProperty.call(values, port.name);
|
|
38
|
-
if (port.required && !has) {
|
|
39
|
-
throw new GraphInputError_js_1.GraphInputError(`Missing required ${context} port '${port.name}'`);
|
|
40
|
-
}
|
|
41
|
-
if (has) {
|
|
42
|
-
const descriptor = this.resolver.resolve(port);
|
|
43
|
-
if (!descriptor.validate(values[port.name])) {
|
|
44
|
-
throw new GraphInputError_js_1.GraphInputError(`Invalid value for ${context} port '${port.name}'`);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.GraphValueValidator = GraphValueValidator;
|
|
51
|
-
//# sourceMappingURL=GraphValueValidator.js.map
|
|
52
|
-
//# sourceMappingURL=GraphValueValidator.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/validation/GraphValueValidator.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphValueValidator.js"],"names":[],"mappings":";;;AAAA,uEAAiE;AACjE;;GAEG;AACH,MAAa,mBAAmB;IAC5B,YAAY,QAAQ;QAChB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IACD,6CAA6C;IAC7C,sBAAsB,CAAC,QAAQ,EAAE,MAAM;QACnC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAClE,CAAC;IACD,8CAA8C;IAC9C,uBAAuB,CAAC,QAAQ,EAAE,MAAM;QACpC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,EAAE,M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