@decaf-ts/integrations 0.10.8 → 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 -39
- 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/CodeSandboxEvaluator.cjs +0 -4
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +0 -116
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +0 -854
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +0 -48
- 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/index.cjs +0 -30
- package/lib/cjs/graph/engine/execution/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/index.cjs +0 -79
- 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/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/index.cjs +0 -26
- 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/GraphLooseNodeValidation.cjs +0 -36
- package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.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 -456
- 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 -509
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/index.cjs +0 -38
- 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/graph/nodes/agents/agent.cjs +0 -118
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
- package/lib/cjs/graph/nodes/base.cjs +0 -61
- package/lib/cjs/graph/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -59
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -71
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -72
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -80
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -82
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -69
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -190
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
- package/lib/cjs/graph/nodes/index.cjs +0 -162
- package/lib/cjs/graph/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -189
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs +0 -48
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/until.cjs +0 -136
- package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/while.cjs +0 -133
- package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
- package/lib/cjs/graph/nodes/manifests.cjs +0 -342
- package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -82
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/event.cjs +0 -63
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/form.cjs +0 -64
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -65
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -65
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -67
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/code.cjs +0 -139
- package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/delay.cjs +0 -66
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/log.cjs +0 -70
- package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/map.cjs +0 -69
- package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/merge.cjs +0 -67
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/return.cjs +0 -69
- package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -77
- package/lib/cjs/graph/nodes/utility/utility-log.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 -106
- 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 -171
- 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 -253
- 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 -34
- 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/CodeSandboxEvaluator.js +0 -18
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +0 -111
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +0 -849
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +0 -43
- 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/index.js +0 -13
- package/lib/esm/graph/engine/execution/index.js.map +0 -1
- package/lib/esm/graph/engine/index.js +0 -62
- 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/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/index.js +0 -9
- 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/GraphLooseNodeValidation.js +0 -32
- package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.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 -449
- 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 -503
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/index.js +0 -21
- 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/graph/nodes/agents/agent.js +0 -109
- package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
- package/lib/esm/graph/nodes/base.js +0 -56
- package/lib/esm/graph/nodes/base.js.map +0 -1
- package/lib/esm/graph/nodes/boundary/input-value.js +0 -50
- package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/break.js +0 -62
- package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -63
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -71
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/if.js +0 -73
- package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/parallel.js +0 -60
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/switch.js +0 -181
- package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
- package/lib/esm/graph/nodes/index.js +0 -144
- package/lib/esm/graph/nodes/index.js.map +0 -1
- package/lib/esm/graph/nodes/loops/foreach.js +0 -180
- package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
- package/lib/esm/graph/nodes/loops/loop-metadata.js +0 -44
- package/lib/esm/graph/nodes/loops/loop-metadata.js.map +0 -1
- package/lib/esm/graph/nodes/loops/until.js +0 -127
- package/lib/esm/graph/nodes/loops/until.js.map +0 -1
- package/lib/esm/graph/nodes/loops/while.js +0 -124
- package/lib/esm/graph/nodes/loops/while.js.map +0 -1
- package/lib/esm/graph/nodes/manifests.js +0 -338
- package/lib/esm/graph/nodes/manifests.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/chat.js +0 -73
- package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/event.js +0 -54
- package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/form.js +0 -55
- package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/manual.js +0 -56
- package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/schedule.js +0 -56
- package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/webhook.js +0 -58
- package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
- package/lib/esm/graph/nodes/utility/code.js +0 -130
- package/lib/esm/graph/nodes/utility/code.js.map +0 -1
- package/lib/esm/graph/nodes/utility/delay.js +0 -57
- package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
- package/lib/esm/graph/nodes/utility/log.js +0 -61
- package/lib/esm/graph/nodes/utility/log.js.map +0 -1
- package/lib/esm/graph/nodes/utility/map.js +0 -60
- package/lib/esm/graph/nodes/utility/map.js.map +0 -1
- package/lib/esm/graph/nodes/utility/merge.js +0 -58
- package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
- package/lib/esm/graph/nodes/utility/return.js +0 -60
- package/lib/esm/graph/nodes/utility/return.js.map +0 -1
- package/lib/esm/graph/nodes/utility/utility-log.js +0 -68
- package/lib/esm/graph/nodes/utility/utility-log.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 -99
- 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 -166
- 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 -243
- 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 -14
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +0 -14
- 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/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 -79
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +0 -79
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +0 -278
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +0 -278
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +0 -42
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +0 -42
- 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/index.d.cts +0 -12
- package/lib/types/graph/engine/execution/index.d.mts +0 -12
- package/lib/types/graph/engine/index.d.cts +0 -56
- package/lib/types/graph/engine/index.d.mts +0 -56
- 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/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/index.d.cts +0 -8
- package/lib/types/graph/engine/loops/index.d.mts +0 -8
- 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/GraphLooseNodeValidation.d.cts +0 -21
- package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.mts +0 -21
- 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 -116
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +0 -116
- 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 -20
- package/lib/types/graph/engine/validation/index.d.mts +0 -20
- 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/graph/nodes/agents/agent.d.cts +0 -31
- package/lib/types/graph/nodes/agents/agent.d.mts +0 -31
- package/lib/types/graph/nodes/base.d.cts +0 -58
- package/lib/types/graph/nodes/base.d.mts +0 -58
- package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -6
- package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -6
- package/lib/types/graph/nodes/flow-control/break.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/break.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/if.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/if.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -7
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -7
- package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -23
- package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -23
- package/lib/types/graph/nodes/index.d.cts +0 -93
- package/lib/types/graph/nodes/index.d.mts +0 -93
- package/lib/types/graph/nodes/loops/foreach.d.cts +0 -11
- package/lib/types/graph/nodes/loops/foreach.d.mts +0 -11
- package/lib/types/graph/nodes/loops/loop-metadata.d.cts +0 -20
- package/lib/types/graph/nodes/loops/loop-metadata.d.mts +0 -20
- package/lib/types/graph/nodes/loops/until.d.cts +0 -8
- package/lib/types/graph/nodes/loops/until.d.mts +0 -8
- package/lib/types/graph/nodes/loops/while.d.cts +0 -8
- package/lib/types/graph/nodes/loops/while.d.mts +0 -8
- package/lib/types/graph/nodes/manifests.d.cts +0 -62
- package/lib/types/graph/nodes/manifests.d.mts +0 -62
- package/lib/types/graph/nodes/triggers/chat.d.cts +0 -8
- package/lib/types/graph/nodes/triggers/chat.d.mts +0 -8
- package/lib/types/graph/nodes/triggers/event.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/event.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/form.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/form.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/manual.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/manual.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -6
- package/lib/types/graph/nodes/utility/code.d.cts +0 -36
- package/lib/types/graph/nodes/utility/code.d.mts +0 -36
- package/lib/types/graph/nodes/utility/delay.d.cts +0 -7
- package/lib/types/graph/nodes/utility/delay.d.mts +0 -7
- package/lib/types/graph/nodes/utility/log.d.cts +0 -8
- package/lib/types/graph/nodes/utility/log.d.mts +0 -8
- package/lib/types/graph/nodes/utility/map.d.cts +0 -7
- package/lib/types/graph/nodes/utility/map.d.mts +0 -7
- package/lib/types/graph/nodes/utility/merge.d.cts +0 -7
- package/lib/types/graph/nodes/utility/merge.d.mts +0 -7
- package/lib/types/graph/nodes/utility/return.d.cts +0 -7
- package/lib/types/graph/nodes/utility/return.d.mts +0 -7
- package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -10
- package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -10
- 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 -68
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +0 -68
- 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,13 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AngularComponentObjectLoader = exports.EnvironmentObjectLoader = exports.ControllerObjectLoader = exports.ServiceObjectLoader = exports.RepositoryObjectLoader = exports.AdapterObjectLoader = exports.ModelObjectLoader = void 0;
|
|
4
|
+
exports.assertConstructor = assertConstructor;
|
|
5
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
4
6
|
const ObjectLoader_js_1 = require("./ObjectLoader.cjs");
|
|
7
|
+
/**
|
|
8
|
+
* @summary Assert a loaded export is a constructor.
|
|
9
|
+
* @description Concrete class loaders (models, services, Nest controllers) only
|
|
10
|
+
* make sense for constructor exports. Throwing a decaf {@link ValidationError}
|
|
11
|
+
* keeps the failure inside the decaf error hierarchy instead of a raw `Error`.
|
|
12
|
+
*/
|
|
13
|
+
function assertConstructor(value, family, source, exportName) {
|
|
14
|
+
if (typeof value !== "function") {
|
|
15
|
+
throw new db_decorators_1.ValidationError(`Loaded ${family} export "${exportName}" from "${source}" is not a constructor.`);
|
|
16
|
+
}
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Concrete model loader. Resolves a model constructor from a module source and
|
|
21
|
+
* runs the shared hook pipeline before returning it.
|
|
22
|
+
*/
|
|
5
23
|
class ModelObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
6
24
|
constructor(options = {}) {
|
|
7
25
|
super({ ...options, family: "model" });
|
|
8
26
|
}
|
|
9
27
|
async loadModel(source, exportName = this.defaultExportName, options = {}) {
|
|
10
|
-
|
|
28
|
+
const value = await this.loadExport(source, exportName, options);
|
|
29
|
+
return assertConstructor(value, this.family, this.normalizeSource(source), exportName);
|
|
11
30
|
}
|
|
12
31
|
}
|
|
13
32
|
exports.ModelObjectLoader = ModelObjectLoader;
|
|
@@ -29,12 +48,17 @@ class RepositoryObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
|
29
48
|
}
|
|
30
49
|
}
|
|
31
50
|
exports.RepositoryObjectLoader = RepositoryObjectLoader;
|
|
51
|
+
/**
|
|
52
|
+
* Concrete service loader. Resolves a service constructor from a module source and
|
|
53
|
+
* runs the shared hook pipeline before returning it.
|
|
54
|
+
*/
|
|
32
55
|
class ServiceObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
33
56
|
constructor(options = {}) {
|
|
34
57
|
super({ ...options, family: "service" });
|
|
35
58
|
}
|
|
36
59
|
async loadService(source, exportName = this.defaultExportName, options = {}) {
|
|
37
|
-
|
|
60
|
+
const value = await this.loadExport(source, exportName, options);
|
|
61
|
+
return assertConstructor(value, this.family, this.normalizeSource(source), exportName);
|
|
38
62
|
}
|
|
39
63
|
}
|
|
40
64
|
exports.ServiceObjectLoader = ServiceObjectLoader;
|
|
@@ -65,14 +89,5 @@ class AngularComponentObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
|
65
89
|
}
|
|
66
90
|
}
|
|
67
91
|
exports.AngularComponentObjectLoader = AngularComponentObjectLoader;
|
|
68
|
-
class GraphNodeObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
69
|
-
constructor(options = {}) {
|
|
70
|
-
super({ ...options, family: "node" });
|
|
71
|
-
}
|
|
72
|
-
async loadNode(source, exportName = this.defaultExportName, options = {}) {
|
|
73
|
-
return this.loadExport(source, exportName, options);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
exports.GraphNodeObjectLoader = GraphNodeObjectLoader;
|
|
77
92
|
//# sourceMappingURL=families.js.map
|
|
78
93
|
//# sourceMappingURL=families.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader/families.cjs","sourceRoot":"","sources":["loader/families.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"loader/families.cjs","sourceRoot":"","sources":["loader/families.js"],"names":[],"mappings":";;;AAQA,8CAKC;AAbD,2DAA0D;AAC1D,uDAAiD;AACjD;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;IAC/D,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;QAC9B,MAAM,IAAI,+BAAe,CAAC,UAAU,MAAM,YAAY,UAAU,WAAW,MAAM,yBAAyB,CAAC,CAAC;IAChH,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AACD;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,8BAAY;IAC/C,YAAY,OAAO,GAAG,EAAE;QACpB,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,EAAE;QACrE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;IAC3F,CAAC;CACJ;AARD,8CAQC;AACD,MAAa,mBAAoB,SAAQ,8BAAY;IACjD,YAAY,OAAO,GAAG,EAAE;QACpB,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7C,CAAC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D,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,EAAE;QAC1E,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACJ;AAPD,wDAOC;AACD,MAAa,uBAAwB,SAAQ,8BAAY;IACrD,YAAY,OAAO,GAAG,EAAE;QACpB,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,EAAE;QAC3E,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACJ;AAPD,0DAOC;AACD,MAAa,4BAA6B,SAAQ,8BAAY;IAC1D,YAAY,OAAO,GAAG,EAAE;QACpB,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IAC/C,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,EAAE;QACzE,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACJ;AAPD,oEAOC;AACD,oCAAoC"}
|
package/lib/cjs/loader/index.cjs
CHANGED
|
@@ -24,5 +24,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
__exportStar(require("./types.cjs"), exports);
|
|
25
25
|
__exportStar(require("./ObjectLoader.cjs"), exports);
|
|
26
26
|
__exportStar(require("./families.cjs"), exports);
|
|
27
|
+
__exportStar(require("./assets.cjs"), exports);
|
|
28
|
+
__exportStar(require("./nest.cjs"), exports);
|
|
29
|
+
__exportStar(require("./config.cjs"), exports);
|
|
27
30
|
//# sourceMappingURL=index.js.map
|
|
28
31
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader/index.cjs","sourceRoot":"","sources":["loader/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA2B;AAC3B,oDAAkC;AAClC,gDAA8B;AAC9B,iCAAiC"}
|
|
1
|
+
{"version":3,"file":"loader/index.cjs","sourceRoot":"","sources":["loader/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA2B;AAC3B,oDAAkC;AAClC,gDAA8B;AAC9B,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,iCAAiC"}
|
|
@@ -0,0 +1,331 @@
|
|
|
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.NestRouteObjectLoader = exports.NestControllerObjectLoader = exports.NEST_MODULE_IMPORTS = exports.NEST_MODULE_CONTROLLERS = exports.NEST_CONTROLLER_WATERMARK = exports.NEST_METHOD_METADATA = exports.NEST_PATH_METADATA = void 0;
|
|
37
|
+
exports.loadNestCommon = loadNestCommon;
|
|
38
|
+
const core_1 = require("@decaf-ts/core");
|
|
39
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
40
|
+
const ObjectLoader_js_1 = require("./ObjectLoader.cjs");
|
|
41
|
+
/**
|
|
42
|
+
* @module integrations/loader/nest
|
|
43
|
+
* @summary Lazy NestJS loaders.
|
|
44
|
+
* @description Resolves NestJS controller classes and their route definitions
|
|
45
|
+
* from dynamically loaded modules. `@nestjs/common` and `reflect-metadata` are
|
|
46
|
+
* optional at runtime: both are dynamically imported/checked and the loaders
|
|
47
|
+
* degrade with a decaf {@link UnsupportedError} when they are unavailable.
|
|
48
|
+
*
|
|
49
|
+
* ## Tree-shaking
|
|
50
|
+
* The NestJS runtime is imported through a non-literal specifier so bundlers keep
|
|
51
|
+
* it as a runtime import and never inline it into the loader chunk. Nest
|
|
52
|
+
* applications already keep `@nestjs/common` in their entry graph, so the loader
|
|
53
|
+
* does not need a static reference of its own.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Stable NestJS metadata keys. Declared as literals so this module never
|
|
57
|
+
* hard-depends on `@nestjs/common/constants` (a CommonJS-only subpath).
|
|
58
|
+
*/
|
|
59
|
+
exports.NEST_PATH_METADATA = "path";
|
|
60
|
+
exports.NEST_METHOD_METADATA = "method";
|
|
61
|
+
exports.NEST_CONTROLLER_WATERMARK = "__controller__";
|
|
62
|
+
exports.NEST_MODULE_CONTROLLERS = "controllers";
|
|
63
|
+
exports.NEST_MODULE_IMPORTS = "imports";
|
|
64
|
+
const NEST_COMMON_SPECIFIER = "@nestjs/common";
|
|
65
|
+
const HTTP_METHOD_NAMES = {
|
|
66
|
+
0: "GET",
|
|
67
|
+
1: "POST",
|
|
68
|
+
2: "PUT",
|
|
69
|
+
3: "DELETE",
|
|
70
|
+
4: "PATCH",
|
|
71
|
+
5: "ALL",
|
|
72
|
+
6: "OPTIONS",
|
|
73
|
+
7: "HEAD",
|
|
74
|
+
8: "SEARCH",
|
|
75
|
+
9: "PROPFIND",
|
|
76
|
+
10: "PROPPATCH",
|
|
77
|
+
11: "MKCOL",
|
|
78
|
+
12: "COPY",
|
|
79
|
+
13: "MOVE",
|
|
80
|
+
14: "LOCK",
|
|
81
|
+
15: "UNLOCK",
|
|
82
|
+
16: "QUERY",
|
|
83
|
+
};
|
|
84
|
+
let nestCommonPromise;
|
|
85
|
+
/**
|
|
86
|
+
* @summary Lazily resolve the NestJS runtime.
|
|
87
|
+
* @description Uses a non-literal dynamic import so bundlers do not inline or
|
|
88
|
+
* drop `@nestjs/common`. Throws a decaf {@link UnsupportedError} when the
|
|
89
|
+
* package cannot be resolved.
|
|
90
|
+
*/
|
|
91
|
+
async function loadNestCommon() {
|
|
92
|
+
if (!nestCommonPromise) {
|
|
93
|
+
nestCommonPromise = Promise.resolve(`${NEST_COMMON_SPECIFIER}`).then(s => __importStar(require(s))).then((module) => {
|
|
94
|
+
const resolved = module;
|
|
95
|
+
if (typeof resolved.Controller !== "function") {
|
|
96
|
+
throw new core_1.UnsupportedError(`NestJS integration is not available: "${NEST_COMMON_SPECIFIER}" does not expose the expected exports.`);
|
|
97
|
+
}
|
|
98
|
+
return resolved;
|
|
99
|
+
})
|
|
100
|
+
.catch((error) => {
|
|
101
|
+
nestCommonPromise = undefined;
|
|
102
|
+
if (error instanceof core_1.UnsupportedError)
|
|
103
|
+
throw error;
|
|
104
|
+
throw new core_1.UnsupportedError(`NestJS integration is not available: "${NEST_COMMON_SPECIFIER}" could not be resolved. ` +
|
|
105
|
+
`Install @nestjs/common and reflect-metadata to use the Nest loaders. ` +
|
|
106
|
+
`Cause: ${error?.message ?? String(error)}`);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return nestCommonPromise;
|
|
110
|
+
}
|
|
111
|
+
function metadataReader() {
|
|
112
|
+
const reflect = Reflect;
|
|
113
|
+
if (typeof reflect.getMetadata !== "function") {
|
|
114
|
+
throw new core_1.UnsupportedError("NestJS metadata is not available: reflect-metadata must be loaded before using the Nest loaders.");
|
|
115
|
+
}
|
|
116
|
+
return reflect;
|
|
117
|
+
}
|
|
118
|
+
function methodNameFor(method) {
|
|
119
|
+
return HTTP_METHOD_NAMES[method] ?? `METHOD_${method}`;
|
|
120
|
+
}
|
|
121
|
+
function normalizeSegment(segment) {
|
|
122
|
+
return segment.replace(/^\/+|\/+$/g, "");
|
|
123
|
+
}
|
|
124
|
+
function joinRoutePaths(controllerPath, routePath) {
|
|
125
|
+
const segments = [controllerPath, routePath]
|
|
126
|
+
.filter((value) => typeof value === "string")
|
|
127
|
+
.map(normalizeSegment)
|
|
128
|
+
.filter(Boolean);
|
|
129
|
+
return `/${segments.join("/")}`;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @summary Resolve NestJS controller classes from dynamically loaded modules.
|
|
133
|
+
* @description Extends the generic controller family with NestJS metadata
|
|
134
|
+
* awareness. Requires `@nestjs/common` and `reflect-metadata` at runtime.
|
|
135
|
+
*/
|
|
136
|
+
class NestControllerObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
137
|
+
constructor(options = {}) {
|
|
138
|
+
super({ ...options, family: "controller" });
|
|
139
|
+
}
|
|
140
|
+
async loadController(source, exportName = this.defaultExportName, options = {}) {
|
|
141
|
+
await loadNestCommon();
|
|
142
|
+
const value = await this.loadExport(source, exportName, options);
|
|
143
|
+
return this.assertController(value, this.normalizeSource(source), exportName);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @summary Load every controller exported by a module.
|
|
147
|
+
*/
|
|
148
|
+
async loadControllers(source, options = {}) {
|
|
149
|
+
await loadNestCommon();
|
|
150
|
+
const module = await this.loadModule(source);
|
|
151
|
+
const controllers = this.collectControllers(module, options.recursive);
|
|
152
|
+
const context = this.createContext(this.normalizeSource(source), "*", module, "afterResolve", {
|
|
153
|
+
...this.metadata,
|
|
154
|
+
...(options.metadata ?? {}),
|
|
155
|
+
controllerCount: controllers.length,
|
|
156
|
+
});
|
|
157
|
+
return this.runHooks(controllers, context, options);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @summary Scan a NestJS module (or namespace) for controller classes.
|
|
161
|
+
* @description Synchronous metadata scan. Requires `reflect-metadata` but not
|
|
162
|
+
* `@nestjs/common`; call {@link loadNestCommon} first when the module must be
|
|
163
|
+
* imported.
|
|
164
|
+
*/
|
|
165
|
+
collectControllers(value, recursive = true) {
|
|
166
|
+
const result = [];
|
|
167
|
+
const seen = new Set();
|
|
168
|
+
this.scanControllers(value, result, seen, recursive);
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
isController(value) {
|
|
172
|
+
if (typeof value !== "function")
|
|
173
|
+
return false;
|
|
174
|
+
const reader = metadataReader();
|
|
175
|
+
return (reader.getMetadata(exports.NEST_CONTROLLER_WATERMARK, value) === true ||
|
|
176
|
+
typeof reader.getMetadata(exports.NEST_PATH_METADATA, value) !== "undefined");
|
|
177
|
+
}
|
|
178
|
+
getControllerPath(controller) {
|
|
179
|
+
const value = metadataReader().getMetadata(exports.NEST_PATH_METADATA, controller);
|
|
180
|
+
return typeof value === "string" ? value : undefined;
|
|
181
|
+
}
|
|
182
|
+
assertController(value, source, exportName) {
|
|
183
|
+
if (!this.isController(value)) {
|
|
184
|
+
throw new db_decorators_1.ValidationError(`Loaded controller export "${exportName}" from "${source}" is not a NestJS controller.`);
|
|
185
|
+
}
|
|
186
|
+
return value;
|
|
187
|
+
}
|
|
188
|
+
scanControllers(value, result, seen, recursive) {
|
|
189
|
+
if (value === null || typeof value !== "object") {
|
|
190
|
+
if (this.isController(value) && !result.includes(value)) {
|
|
191
|
+
result.push(value);
|
|
192
|
+
}
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (seen.has(value))
|
|
196
|
+
return;
|
|
197
|
+
seen.add(value);
|
|
198
|
+
const record = value;
|
|
199
|
+
const controllers = record[exports.NEST_MODULE_CONTROLLERS];
|
|
200
|
+
if (Array.isArray(controllers)) {
|
|
201
|
+
for (const controller of controllers) {
|
|
202
|
+
if (this.isController(controller) &&
|
|
203
|
+
!result.includes(controller)) {
|
|
204
|
+
result.push(controller);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (recursive) {
|
|
209
|
+
const imports = record[exports.NEST_MODULE_IMPORTS];
|
|
210
|
+
if (Array.isArray(imports)) {
|
|
211
|
+
for (const imported of imports) {
|
|
212
|
+
if (imported &&
|
|
213
|
+
typeof imported.then === "function") {
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
this.scanControllers(imported, result, seen, recursive);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
for (const key of Object.keys(record)) {
|
|
221
|
+
const candidate = record[key];
|
|
222
|
+
if (this.isController(candidate) && !result.includes(candidate)) {
|
|
223
|
+
result.push(candidate);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.NestControllerObjectLoader = NestControllerObjectLoader;
|
|
229
|
+
/**
|
|
230
|
+
* @summary Resolve route definitions from dynamically loaded NestJS modules.
|
|
231
|
+
*/
|
|
232
|
+
class NestRouteObjectLoader extends ObjectLoader_js_1.ObjectLoader {
|
|
233
|
+
constructor(options = {}) {
|
|
234
|
+
super({ ...options, family: "route" });
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @summary Load every route declared by a controller exported from a module.
|
|
238
|
+
*/
|
|
239
|
+
async loadControllerRoutes(source, exportName = this.defaultExportName, options = {}) {
|
|
240
|
+
await loadNestCommon();
|
|
241
|
+
const value = await this.loadExport(source, exportName, options);
|
|
242
|
+
const controller = this.assertController(value, this.normalizeSource(source), exportName);
|
|
243
|
+
const routes = this.getRoutes(controller);
|
|
244
|
+
const context = this.createContext(this.normalizeSource(source), exportName, {}, "afterResolve", {
|
|
245
|
+
...this.metadata,
|
|
246
|
+
...(options.metadata ?? {}),
|
|
247
|
+
routeCount: routes.length,
|
|
248
|
+
});
|
|
249
|
+
return this.runHooks(routes, context, options);
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @summary Load every route declared by every controller in a module.
|
|
253
|
+
*/
|
|
254
|
+
async loadRoutes(source, options = {}) {
|
|
255
|
+
await loadNestCommon();
|
|
256
|
+
const module = await this.loadModule(source);
|
|
257
|
+
const controllerLoader = new NestControllerObjectLoader({
|
|
258
|
+
hooks: this.hooks,
|
|
259
|
+
beforeResolveHooks: this.beforeResolveHooks,
|
|
260
|
+
});
|
|
261
|
+
const controllers = controllerLoader.collectControllers(module);
|
|
262
|
+
const routes = [];
|
|
263
|
+
for (const controller of controllers) {
|
|
264
|
+
routes.push(...this.getRoutes(controller));
|
|
265
|
+
}
|
|
266
|
+
const context = this.createContext(this.normalizeSource(source), "*", module, "afterResolve", {
|
|
267
|
+
...this.metadata,
|
|
268
|
+
...(options.metadata ?? {}),
|
|
269
|
+
routeCount: routes.length,
|
|
270
|
+
});
|
|
271
|
+
return this.runHooks(routes, context, options);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @summary Extract route definitions from a controller class.
|
|
275
|
+
* @description Synchronous metadata scan. Requires `reflect-metadata`.
|
|
276
|
+
*/
|
|
277
|
+
getRoutes(controller, controllerPath) {
|
|
278
|
+
const reader = metadataReader();
|
|
279
|
+
const resolvedControllerPath = controllerPath ?? this.getControllerPath(controller);
|
|
280
|
+
const prototype = controller.prototype;
|
|
281
|
+
const keys = [
|
|
282
|
+
...Object.getOwnPropertyNames(prototype),
|
|
283
|
+
...Object.getOwnPropertySymbols(prototype),
|
|
284
|
+
];
|
|
285
|
+
const routes = [];
|
|
286
|
+
for (const propertyKey of keys) {
|
|
287
|
+
if (propertyKey === "constructor")
|
|
288
|
+
continue;
|
|
289
|
+
const handler = prototype[propertyKey];
|
|
290
|
+
if (typeof handler !== "function")
|
|
291
|
+
continue;
|
|
292
|
+
const method = reader.getMetadata(exports.NEST_METHOD_METADATA, handler);
|
|
293
|
+
if (typeof method !== "number")
|
|
294
|
+
continue;
|
|
295
|
+
const routePath = reader.getMetadata(exports.NEST_PATH_METADATA, handler);
|
|
296
|
+
const path = typeof routePath === "string" ? routePath : "";
|
|
297
|
+
routes.push({
|
|
298
|
+
controller,
|
|
299
|
+
controllerName: controller.name,
|
|
300
|
+
controllerPath: resolvedControllerPath || undefined,
|
|
301
|
+
propertyKey,
|
|
302
|
+
handler: handler,
|
|
303
|
+
method,
|
|
304
|
+
methodName: methodNameFor(method),
|
|
305
|
+
path,
|
|
306
|
+
fullPath: joinRoutePaths(resolvedControllerPath, path),
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
return routes;
|
|
310
|
+
}
|
|
311
|
+
isController(value) {
|
|
312
|
+
if (typeof value !== "function")
|
|
313
|
+
return false;
|
|
314
|
+
const reader = metadataReader();
|
|
315
|
+
return (reader.getMetadata(exports.NEST_CONTROLLER_WATERMARK, value) === true ||
|
|
316
|
+
typeof reader.getMetadata(exports.NEST_PATH_METADATA, value) !== "undefined");
|
|
317
|
+
}
|
|
318
|
+
getControllerPath(controller) {
|
|
319
|
+
const value = metadataReader().getMetadata(exports.NEST_PATH_METADATA, controller);
|
|
320
|
+
return typeof value === "string" ? value : undefined;
|
|
321
|
+
}
|
|
322
|
+
assertController(value, source, exportName) {
|
|
323
|
+
if (!this.isController(value)) {
|
|
324
|
+
throw new db_decorators_1.ValidationError(`Loaded controller export "${exportName}" from "${source}" is not a NestJS controller.`);
|
|
325
|
+
}
|
|
326
|
+
return value;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
exports.NestRouteObjectLoader = NestRouteObjectLoader;
|
|
330
|
+
//# sourceMappingURL=nest.js.map
|
|
331
|
+
//# sourceMappingURL=nest.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader/nest.cjs","sourceRoot":"","sources":["loader/nest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,wCAoBC;AAzED,yCAAkD;AAClD,2DAA0D;AAC1D,uDAAiD;AACjD;;;;;;;;;;;;;GAaG;AACH;;;GAGG;AACU,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAC5B,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAChC,QAAA,yBAAyB,GAAG,gBAAgB,CAAC;AAC7C,QAAA,uBAAuB,GAAG,aAAa,CAAC;AACxC,QAAA,mBAAmB,GAAG,SAAS,CAAC;AAC7C,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAC/C,MAAM,iBAAiB,GAAG;IACtB,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,SAAS;IACZ,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,UAAU;IACb,EAAE,EAAE,WAAW;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;QACd,IAAI,OAAO,KAAK,KAAK,UAAU;YAC3B,OAAO,KAAK,CAAC;QACjB,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;QAChC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,iCAAyB,EAAE,KAAK,CAAC,KAAK,IAAI;YACjE,OAAO,MAAM,CAAC,WAAW,CAAC,0BAAkB,EAAE,KAAK,CAAC,KAAK,WAAW,CAAC,CAAC;IAC9E,CAAC;IACD,iBAAiB,CAAC,UAAU;QACxB,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC,WAAW,CAAC,0BAAkB,EAAE,UAAU,CAAC,CAAC;QAC3E,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IACzD,CAAC;IACD,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU;QACtC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,+BAAe,CAAC,6BAA6B,UAAU,WAAW,MAAM,+BAA+B,CAAC,CAAC;QACvH,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAhGD,sDAgGC;AACD,gCAAgC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedisContextLock = void 0;
|
|
4
|
+
const core_1 = require("@decaf-ts/core");
|
|
5
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
6
|
+
const redis_1 = require("redis");
|
|
7
|
+
/**
|
|
8
|
+
* @description Redis-native transaction lock for the Redis adapter
|
|
9
|
+
* @summary Backs `@transactional()` with a dedicated Redis connection carrying a
|
|
10
|
+
* native `MULTI` command queue plus an in-memory read cache. Every CRUD write
|
|
11
|
+
* performed under an active transaction is queued on the native `MULTI` object and
|
|
12
|
+
* mirrored into the read cache, so the transaction observes its own writes
|
|
13
|
+
* (read-your-writes) while remaining invisible to every other connection until
|
|
14
|
+
* {@link RedisContextLock.commit} issues `WATCH` and `EXEC`. If a watched table
|
|
15
|
+
* changed concurrently, `EXEC` aborts and the transaction raises a
|
|
16
|
+
* `ConflictError` instead of silently overwriting the concurrent write.
|
|
17
|
+
*
|
|
18
|
+
* A dedicated connection is required: `WATCH` is per-connection state on the
|
|
19
|
+
* node-redis client, so a `WATCH` issued on the shared, multiplexed adapter
|
|
20
|
+
* client would be cleared or replaced by any concurrent adapter operation (and a
|
|
21
|
+
* concurrent write to a watched key would abort an unrelated transaction).
|
|
22
|
+
* @class RedisContextLock
|
|
23
|
+
* @category Redis
|
|
24
|
+
*/
|
|
25
|
+
class RedisContextLock extends core_1.ContextLock {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.readCache = new Map();
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @description Whether a Redis transaction is currently open
|
|
32
|
+
* @return {boolean} True while a transaction is active
|
|
33
|
+
*/
|
|
34
|
+
get active() {
|
|
35
|
+
return !!this.txClient;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @description Returns the buffered entry for a record, when present
|
|
39
|
+
* @param {string} table - The table (model) name
|
|
40
|
+
* @param {string} id - The record id
|
|
41
|
+
* @return {{found: boolean, value?: RedisBufferedValue}} The buffered entry state
|
|
42
|
+
*/
|
|
43
|
+
getRecord(table, id) {
|
|
44
|
+
const entries = this.readCache.get(table);
|
|
45
|
+
if (!entries || !entries.has(id))
|
|
46
|
+
return { found: false };
|
|
47
|
+
return { found: true, value: entries.get(id) };
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @description Queues a serialized record on the native transaction and buffers it for reads
|
|
51
|
+
* @param {string} table - The table (model) name
|
|
52
|
+
* @param {string} id - The record id
|
|
53
|
+
* @param {string} value - The serialized record
|
|
54
|
+
* @return {void}
|
|
55
|
+
*/
|
|
56
|
+
setRecord(table, id, value) {
|
|
57
|
+
let entries = this.readCache.get(table);
|
|
58
|
+
if (!entries) {
|
|
59
|
+
entries = new Map();
|
|
60
|
+
this.readCache.set(table, entries);
|
|
61
|
+
}
|
|
62
|
+
entries.set(id, value);
|
|
63
|
+
if (!this.multi)
|
|
64
|
+
return;
|
|
65
|
+
const key = this.adapter.recordKey(table);
|
|
66
|
+
if (value === null)
|
|
67
|
+
this.multi.hDel(key, id);
|
|
68
|
+
else
|
|
69
|
+
this.multi.hSet(key, id, value);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @description Queues a record deletion on the native transaction and buffers it
|
|
73
|
+
* @param {string} table - The table (model) name
|
|
74
|
+
* @param {string} id - The record id
|
|
75
|
+
* @return {void}
|
|
76
|
+
*/
|
|
77
|
+
deleteRecord(table, id) {
|
|
78
|
+
this.setRecord(table, id, null);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @description Returns the buffered writes for a table, when any exist
|
|
82
|
+
* @param {string} table - The table (model) name
|
|
83
|
+
* @return {Map<string, RedisBufferedValue> | undefined} The buffered entries
|
|
84
|
+
*/
|
|
85
|
+
tableEntries(table) {
|
|
86
|
+
return this.readCache.get(table);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @description Starts the transaction, opening a dedicated connection and native queue
|
|
90
|
+
* @summary Delegates to the base implementation so `maxConcurrentTransactions`
|
|
91
|
+
* continues to gate concurrency, then opens a dedicated connection and its native
|
|
92
|
+
* `MULTI` command queue.
|
|
93
|
+
* @param {Context<any>} context - The context the transaction is starting under
|
|
94
|
+
* @return {Promise<void>} A promise that resolves once the transaction is open
|
|
95
|
+
*/
|
|
96
|
+
async begin(context) {
|
|
97
|
+
await super.begin(context);
|
|
98
|
+
try {
|
|
99
|
+
const client = this.adapter.client.duplicate();
|
|
100
|
+
await client.connect();
|
|
101
|
+
this.txClient = client;
|
|
102
|
+
this.multi = this.txClient.multi();
|
|
103
|
+
}
|
|
104
|
+
catch (e) {
|
|
105
|
+
await super.rollback(e, context);
|
|
106
|
+
throw e;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @description Flushes the queued writes atomically and ends the transaction
|
|
111
|
+
* @summary `WATCH`es every touched table on the dedicated connection, then runs
|
|
112
|
+
* the native `MULTI` queue with `EXEC`. If a watched table changed concurrently,
|
|
113
|
+
* `EXEC` aborts with a `WatchError` and the transaction raises a
|
|
114
|
+
* `ConflictError`. On success (or conflict) the dedicated connection is released
|
|
115
|
+
* and the concurrency permit returned.
|
|
116
|
+
* @param {Context<any>} context - The context the transaction ran under
|
|
117
|
+
* @return {Promise<void>} A promise that resolves once the transaction ends
|
|
118
|
+
*/
|
|
119
|
+
async commit(context) {
|
|
120
|
+
if (!this.txClient || !this.multi) {
|
|
121
|
+
await super.commit(context);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const watched = [...this.readCache.keys()].map((table) => this.adapter.recordKey(table));
|
|
125
|
+
try {
|
|
126
|
+
if (watched.length)
|
|
127
|
+
await this.txClient.watch(watched);
|
|
128
|
+
await this.multi.exec();
|
|
129
|
+
}
|
|
130
|
+
catch (e) {
|
|
131
|
+
if (e instanceof redis_1.WatchError)
|
|
132
|
+
throw new db_decorators_1.ConflictError("Redis transaction aborted: a watched record changed concurrently");
|
|
133
|
+
throw e;
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
await this.releaseTx();
|
|
137
|
+
await super.commit(context);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @description Discards the queued writes and ends the transaction
|
|
142
|
+
* @param {Error} err - The error that triggered the rollback
|
|
143
|
+
* @param {Context<any>} context - The context the transaction ran under
|
|
144
|
+
* @return {Promise<void>} A promise that resolves once the transaction ends
|
|
145
|
+
*/
|
|
146
|
+
async rollback(err, context) {
|
|
147
|
+
await this.releaseTx();
|
|
148
|
+
await super.rollback(err, context);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @description Releases the dedicated transaction connection and clears state
|
|
152
|
+
* @summary Unwatches and closes the dedicated connection, then clears the native
|
|
153
|
+
* queue and read cache so queued writes are never applied after rollback or after
|
|
154
|
+
* an already flushed commit.
|
|
155
|
+
* @return {Promise<void>} A promise that resolves once the connection is released
|
|
156
|
+
*/
|
|
157
|
+
async releaseTx() {
|
|
158
|
+
const client = this.txClient;
|
|
159
|
+
this.txClient = undefined;
|
|
160
|
+
this.multi = undefined;
|
|
161
|
+
this.readCache.clear();
|
|
162
|
+
if (!client)
|
|
163
|
+
return;
|
|
164
|
+
try {
|
|
165
|
+
await client.unwatch();
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
// the connection may already be gone; nothing left to unwatch
|
|
169
|
+
}
|
|
170
|
+
try {
|
|
171
|
+
await client.quit();
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
try {
|
|
175
|
+
client.destroy();
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
// connection already closed
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
exports.RedisContextLock = RedisContextLock;
|
|
184
|
+
//# sourceMappingURL=RedisContextLock.js.map
|
|
185
|
+
//# sourceMappingURL=RedisContextLock.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis/RedisContextLock.cjs","sourceRoot":"","sources":["redis/RedisContextLock.js"],"names":[],"mappings":";;;AAAA,yCAA6C;AAC7C,2DAAwD;AACxD,iCAAmC;AACnC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,gBAAiB,SAAQ,kBAAW;IAC7C;QACI,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;IAC/B,CAAC;IACD;;;OAGG;IACH,IAAI,MAAM;QACN,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CA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