@decaf-ts/integrations 0.7.0 → 0.9.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 +4 -0
- package/dist/integrations.cjs +1 -1
- package/jest.config.cjs +1 -11
- package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs +25 -0
- package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +52 -10
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/azure/index.cjs +1 -0
- package/lib/cjs/blob/azure/index.cjs.map +1 -1
- package/lib/cjs/blob/core/BlobEnvironment.cjs +19 -0
- package/lib/cjs/blob/core/BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobStoreService.cjs +6 -3
- package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/core/index.cjs +1 -0
- package/lib/cjs/blob/core/index.cjs.map +1 -1
- package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs +26 -0
- package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +31 -2
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/gcp/index.cjs +1 -0
- package/lib/cjs/blob/gcp/index.cjs.map +1 -1
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +30 -0
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +37 -2
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/ipfs/index.cjs +1 -0
- package/lib/cjs/blob/ipfs/index.cjs.map +1 -1
- package/lib/cjs/blob/local/LocalBlobEnvironment.cjs +22 -0
- package/lib/cjs/blob/local/LocalBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs +29 -2
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/local/index.cjs +1 -0
- package/lib/cjs/blob/local/index.cjs.map +1 -1
- package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs +21 -0
- package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +28 -2
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/memory/index.cjs +1 -0
- package/lib/cjs/blob/memory/index.cjs.map +1 -1
- package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +45 -4
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/R2BlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/R2BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs +45 -4
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3BlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/S3BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs +43 -310
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs +327 -0
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/s3/index.cjs +4 -0
- package/lib/cjs/blob/s3/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +100 -0
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +29 -0
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +270 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +169 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +64 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +17 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/index.cjs +24 -0
- package/lib/cjs/graph/engine/catalog/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/constants.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +1 -0
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +1 -1
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +18 -0
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/index.cjs +1 -0
- package/lib/cjs/graph/engine/errors/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/events/index.cjs +0 -1
- package/lib/cjs/graph/engine/events/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +10 -6
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +30 -18
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +354 -73
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +3 -3
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +9 -6
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +11 -10
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/index.cjs +8 -11
- package/lib/cjs/graph/engine/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +37 -12
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +38 -13
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +38 -13
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +1 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +43 -14
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +79 -88
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/index.cjs +0 -1
- package/lib/cjs/graph/engine/planning/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +28 -15
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +1 -1
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +69 -0
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +291 -0
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +29 -0
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs +259 -0
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +69 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +26 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/index.cjs +26 -0
- package/lib/cjs/graph/engine/runs/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/ownership.cjs +34 -0
- package/lib/cjs/graph/engine/runs/ownership.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/types.cjs.map +1 -0
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +2 -2
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +142 -0
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +160 -0
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +6 -10
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +166 -0
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +86 -0
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +423 -0
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +4 -0
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +50 -0
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +4 -0
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +478 -0
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/index.cjs +12 -1
- package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
- package/lib/cjs/graph/index.cjs +4 -4
- package/lib/cjs/graph/log/GraphRunLogger.cjs +10 -6
- package/lib/cjs/graph/log/GraphRunLogger.cjs.map +1 -1
- package/lib/cjs/graph/log/LogParameters.cjs +13 -13
- package/lib/cjs/graph/log/LogParameters.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +140 -16
- package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +94 -7
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +11 -0
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +63 -61
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +270 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphResultService.cjs +16 -1
- package/lib/cjs/nest/graph/GraphResultService.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +279 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphRunModel.cjs +83 -0
- package/lib/cjs/nest/graph/GraphRunModel.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphRunModelService.cjs +121 -0
- package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +169 -0
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +162 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +12 -0
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +23 -0
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +27 -1
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs +211 -8
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
- package/lib/cjs/nest/graph/index.cjs +8 -0
- package/lib/cjs/nest/graph/index.cjs.map +1 -1
- package/lib/cjs/nest/graph/main.cjs +22 -5
- package/lib/cjs/nest/graph/main.cjs.map +1 -1
- package/lib/cjs/nest/keycloakModule.cjs +3 -1
- package/lib/cjs/nest/keycloakModule.cjs.map +1 -1
- package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs +27 -0
- package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs +53 -19
- package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/aws/index.cjs +1 -0
- package/lib/cjs/secrets/aws/index.cjs.map +1 -1
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +45 -16
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs +23 -0
- package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/azure/index.cjs +1 -0
- package/lib/cjs/secrets/azure/index.cjs.map +1 -1
- package/lib/cjs/secrets/core/ClientBasedSecretService.cjs +29 -0
- package/lib/cjs/secrets/core/ClientBasedSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretEnvironment.cjs +19 -0
- package/lib/cjs/secrets/core/SecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/core/index.cjs +2 -0
- package/lib/cjs/secrets/core/index.cjs.map +1 -1
- package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs +25 -0
- package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +45 -17
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -1
- package/lib/cjs/secrets/gcp/index.cjs +1 -0
- package/lib/cjs/secrets/gcp/index.cjs.map +1 -1
- package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs +21 -0
- package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretService.cjs +29 -3
- package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/model/index.cjs +1 -0
- package/lib/cjs/secrets/model/index.cjs.map +1 -1
- package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs +24 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +34 -3
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/onepassword/index.cjs +1 -0
- package/lib/cjs/secrets/onepassword/index.cjs.map +1 -1
- package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs +24 -0
- package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretService.cjs +47 -16
- package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/vault/index.cjs +1 -0
- package/lib/cjs/secrets/vault/index.cjs.map +1 -1
- package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs +31 -0
- package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/aws/AwsSftpService.cjs +170 -0
- package/lib/cjs/sftp/aws/AwsSftpService.cjs.map +1 -0
- package/lib/cjs/sftp/core/SftpEnvironment.cjs +19 -0
- package/lib/cjs/sftp/core/SftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/core/SftpSource.cjs +39 -0
- package/lib/cjs/sftp/core/SftpSource.cjs.map +1 -0
- package/lib/cjs/sftp/core/index.cjs +20 -0
- package/lib/cjs/sftp/core/index.cjs.map +1 -0
- package/lib/cjs/sftp/index.cjs +24 -0
- package/lib/cjs/sftp/index.cjs.map +1 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs +28 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs +213 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs.map +1 -0
- package/lib/cjs/shared/environmentValue.cjs +31 -0
- package/lib/cjs/shared/environmentValue.cjs.map +1 -0
- package/lib/esm/blob/azure/AzureBlobEnvironment.js +21 -0
- package/lib/esm/blob/azure/AzureBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/azure/AzureBlobStoreService.js +51 -12
- package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -1
- package/lib/esm/blob/azure/index.js +1 -0
- package/lib/esm/blob/azure/index.js.map +1 -1
- package/lib/esm/blob/core/BlobEnvironment.js +15 -0
- package/lib/esm/blob/core/BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/core/BlobStoreService.js +6 -3
- package/lib/esm/blob/core/BlobStoreService.js.map +1 -1
- package/lib/esm/blob/core/index.js +1 -0
- package/lib/esm/blob/core/index.js.map +1 -1
- package/lib/esm/blob/gcp/GcsBlobEnvironment.js +22 -0
- package/lib/esm/blob/gcp/GcsBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/gcp/GcsBlobStoreService.js +29 -3
- package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/gcp/index.js +1 -0
- package/lib/esm/blob/gcp/index.js.map +1 -1
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +26 -0
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +35 -3
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/ipfs/index.js +1 -0
- package/lib/esm/blob/ipfs/index.js.map +1 -1
- package/lib/esm/blob/local/LocalBlobEnvironment.js +18 -0
- package/lib/esm/blob/local/LocalBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/local/LocalBlobStoreService.js +27 -3
- package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -1
- package/lib/esm/blob/local/index.js +1 -0
- package/lib/esm/blob/local/index.js.map +1 -1
- package/lib/esm/blob/memory/MemoryBlobEnvironment.js +17 -0
- package/lib/esm/blob/memory/MemoryBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/memory/MemoryBlobStoreService.js +26 -3
- package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -1
- package/lib/esm/blob/memory/index.js +1 -0
- package/lib/esm/blob/memory/index.js.map +1 -1
- package/lib/esm/blob/s3/MinioBlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/MinioBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/MinioBlobStoreService.js +42 -4
- package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/R2BlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/R2BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/R2BlobStoreService.js +42 -4
- package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3BlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/S3BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/S3BlobStoreService.js +41 -311
- package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js +322 -0
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js.map +1 -0
- package/lib/esm/blob/s3/index.js +4 -0
- package/lib/esm/blob/s3/index.js.map +1 -1
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +95 -0
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +22 -0
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +265 -0
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +162 -0
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +59 -0
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +12 -0
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +1 -0
- package/lib/esm/graph/engine/catalog/index.js +7 -0
- package/lib/esm/graph/engine/catalog/index.js.map +1 -0
- package/lib/esm/graph/engine/constants.js +2 -2
- package/lib/esm/graph/engine/errors/GraphExecutionError.js +1 -0
- package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +1 -1
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +13 -0
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +1 -0
- package/lib/esm/graph/engine/errors/index.js +1 -0
- package/lib/esm/graph/engine/errors/index.js.map +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +1 -1
- package/lib/esm/graph/engine/events/index.js +0 -1
- package/lib/esm/graph/engine/events/index.js.map +1 -1
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +2 -2
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +10 -6
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +28 -16
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +322 -41
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js +3 -3
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +1 -1
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +9 -6
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +11 -10
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/index.js +8 -11
- package/lib/esm/graph/engine/index.js.map +1 -1
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +2 -2
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningService.js +43 -14
- package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +3 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +79 -88
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +1 -1
- package/lib/esm/graph/engine/planning/index.js +0 -1
- package/lib/esm/graph/engine/planning/index.js.map +1 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +28 -15
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +1 -1
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +64 -0
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js +286 -0
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +25 -0
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunService.js +254 -0
- package/lib/esm/graph/engine/runs/GraphRunService.js.map +1 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +64 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +1 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +21 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +1 -0
- package/lib/esm/graph/engine/runs/index.js +9 -0
- package/lib/esm/graph/engine/runs/index.js.map +1 -0
- package/lib/esm/graph/engine/runs/ownership.js +30 -0
- package/lib/esm/graph/engine/runs/ownership.js.map +1 -0
- package/lib/esm/graph/engine/runs/types.js.map +1 -0
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +1 -1
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +137 -0
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +155 -0
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +6 -10
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +161 -0
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +81 -0
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js +416 -0
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +2 -0
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js +43 -0
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js +2 -0
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +472 -0
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/index.js +12 -1
- package/lib/esm/graph/engine/validation/index.js.map +1 -1
- package/lib/esm/graph/index.js +4 -4
- package/lib/esm/graph/log/GraphRunLogger.js +5 -1
- package/lib/esm/graph/log/GraphRunLogger.js.map +1 -1
- package/lib/esm/graph/log/LogParameters.js +1 -1
- package/lib/esm/graph/log/LogParameters.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/nest/graph/GraphExecutionController.js +143 -19
- package/lib/esm/nest/graph/GraphExecutionController.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutionModule.js +97 -10
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +11 -0
- package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +62 -62
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +261 -0
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -0
- package/lib/esm/nest/graph/GraphResultService.js +16 -1
- package/lib/esm/nest/graph/GraphResultService.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +270 -0
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -0
- package/lib/esm/nest/graph/GraphRunModel.js +74 -0
- package/lib/esm/nest/graph/GraphRunModel.js.map +1 -0
- package/lib/esm/nest/graph/GraphRunModelService.js +112 -0
- package/lib/esm/nest/graph/GraphRunModelService.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +164 -0
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js +153 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +8 -0
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowErrors.js +18 -0
- package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowModel.js +27 -1
- package/lib/esm/nest/graph/GraphWorkflowModel.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowService.js +210 -8
- package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
- package/lib/esm/nest/graph/index.js +8 -0
- package/lib/esm/nest/graph/index.js.map +1 -1
- package/lib/esm/nest/graph/main.js +22 -5
- package/lib/esm/nest/graph/main.js.map +1 -1
- package/lib/esm/nest/keycloakModule.js +3 -1
- package/lib/esm/nest/keycloakModule.js.map +1 -1
- package/lib/esm/secrets/aws/AwsSecretEnvironment.js +23 -0
- package/lib/esm/secrets/aws/AwsSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretService.js +39 -8
- package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -1
- package/lib/esm/secrets/aws/index.js +1 -0
- package/lib/esm/secrets/aws/index.js.map +1 -1
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +30 -4
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -1
- package/lib/esm/secrets/azure/AzureSecretEnvironment.js +19 -0
- package/lib/esm/secrets/azure/AzureSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/azure/index.js +1 -0
- package/lib/esm/secrets/azure/index.js.map +1 -1
- package/lib/esm/secrets/core/ClientBasedSecretService.js +24 -0
- package/lib/esm/secrets/core/ClientBasedSecretService.js.map +1 -0
- package/lib/esm/secrets/core/SecretEnvironment.js +15 -0
- package/lib/esm/secrets/core/SecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/core/index.js +2 -0
- package/lib/esm/secrets/core/index.js.map +1 -1
- package/lib/esm/secrets/gcp/GcpSecretEnvironment.js +21 -0
- package/lib/esm/secrets/gcp/GcpSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js +30 -5
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -1
- package/lib/esm/secrets/gcp/index.js +1 -0
- package/lib/esm/secrets/gcp/index.js.map +1 -1
- package/lib/esm/secrets/model/ModelSecretEnvironment.js +17 -0
- package/lib/esm/secrets/model/ModelSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretService.js +28 -5
- package/lib/esm/secrets/model/ModelSecretService.js.map +1 -1
- package/lib/esm/secrets/model/index.js +1 -0
- package/lib/esm/secrets/model/index.js.map +1 -1
- package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js +20 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +33 -5
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -1
- package/lib/esm/secrets/onepassword/index.js +1 -0
- package/lib/esm/secrets/onepassword/index.js.map +1 -1
- package/lib/esm/secrets/vault/VaultSecretEnvironment.js +20 -0
- package/lib/esm/secrets/vault/VaultSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretService.js +33 -5
- package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -1
- package/lib/esm/secrets/vault/index.js +1 -0
- package/lib/esm/secrets/vault/index.js.map +1 -1
- package/lib/esm/sftp/aws/AwsSftpEnvironment.js +27 -0
- package/lib/esm/sftp/aws/AwsSftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/aws/AwsSftpService.js +128 -0
- package/lib/esm/sftp/aws/AwsSftpService.js.map +1 -0
- package/lib/esm/sftp/core/SftpEnvironment.js +15 -0
- package/lib/esm/sftp/core/SftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/core/SftpSource.js +33 -0
- package/lib/esm/sftp/core/SftpSource.js.map +1 -0
- package/lib/esm/sftp/core/index.js +3 -0
- package/lib/esm/sftp/core/index.js.map +1 -0
- package/lib/esm/sftp/index.js +7 -0
- package/lib/esm/sftp/index.js.map +1 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js +24 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpService.js +172 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpService.js.map +1 -0
- package/lib/esm/shared/environmentValue.js +25 -0
- package/lib/esm/shared/environmentValue.js.map +1 -0
- package/lib/types/blob/azure/AzureBlobEnvironment.d.cts +25 -0
- package/lib/types/blob/azure/AzureBlobEnvironment.d.mts +25 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.cts +1 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.mts +1 -0
- package/lib/types/blob/azure/index.d.cts +1 -0
- package/lib/types/blob/azure/index.d.mts +1 -0
- package/lib/types/blob/core/BlobEnvironment.d.cts +11 -0
- package/lib/types/blob/core/BlobEnvironment.d.mts +11 -0
- package/lib/types/blob/core/BlobStoreService.d.cts +6 -0
- package/lib/types/blob/core/BlobStoreService.d.mts +6 -0
- package/lib/types/blob/core/index.d.cts +1 -0
- package/lib/types/blob/core/index.d.mts +1 -0
- package/lib/types/blob/gcp/GcsBlobEnvironment.d.cts +17 -0
- package/lib/types/blob/gcp/GcsBlobEnvironment.d.mts +17 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +1 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +1 -0
- package/lib/types/blob/gcp/index.d.cts +1 -0
- package/lib/types/blob/gcp/index.d.mts +1 -0
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +24 -0
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +24 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +1 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +1 -0
- package/lib/types/blob/ipfs/index.d.cts +1 -0
- package/lib/types/blob/ipfs/index.d.mts +1 -0
- package/lib/types/blob/local/LocalBlobEnvironment.d.cts +15 -0
- package/lib/types/blob/local/LocalBlobEnvironment.d.mts +15 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.cts +1 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.mts +1 -0
- package/lib/types/blob/local/index.d.cts +1 -0
- package/lib/types/blob/local/index.d.mts +1 -0
- package/lib/types/blob/memory/MemoryBlobEnvironment.d.cts +14 -0
- package/lib/types/blob/memory/MemoryBlobEnvironment.d.mts +14 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.cts +1 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +1 -0
- package/lib/types/blob/memory/index.d.cts +1 -0
- package/lib/types/blob/memory/index.d.mts +1 -0
- package/lib/types/blob/s3/MinioBlobEnvironment.d.cts +11 -0
- package/lib/types/blob/s3/MinioBlobEnvironment.d.mts +11 -0
- package/lib/types/blob/s3/MinioBlobStoreService.d.cts +4 -7
- package/lib/types/blob/s3/MinioBlobStoreService.d.mts +4 -7
- package/lib/types/blob/s3/R2BlobEnvironment.d.cts +11 -0
- package/lib/types/blob/s3/R2BlobEnvironment.d.mts +11 -0
- package/lib/types/blob/s3/R2BlobStoreService.d.cts +4 -7
- package/lib/types/blob/s3/R2BlobStoreService.d.mts +4 -7
- package/lib/types/blob/s3/S3BlobEnvironment.d.cts +26 -0
- package/lib/types/blob/s3/S3BlobEnvironment.d.mts +26 -0
- package/lib/types/blob/s3/S3BlobStoreService.d.cts +4 -24
- package/lib/types/blob/s3/S3BlobStoreService.d.mts +4 -24
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.cts +30 -0
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +30 -0
- package/lib/types/blob/s3/index.d.cts +4 -0
- package/lib/types/blob/s3/index.d.mts +4 -0
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +17 -0
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +17 -0
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +13 -0
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +13 -0
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +71 -0
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +71 -0
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +42 -0
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +42 -0
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +22 -0
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +22 -0
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +68 -0
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +68 -0
- package/lib/types/graph/engine/catalog/index.d.cts +6 -0
- package/lib/types/graph/engine/catalog/index.d.mts +6 -0
- package/lib/types/graph/engine/constants.d.cts +2 -2
- package/lib/types/graph/engine/constants.d.mts +2 -2
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +9 -0
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +9 -0
- package/lib/types/graph/engine/errors/index.d.cts +1 -0
- package/lib/types/graph/engine/errors/index.d.mts +1 -0
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +1 -1
- package/lib/types/graph/engine/events/index.d.cts +0 -1
- package/lib/types/graph/engine/events/index.d.mts +0 -1
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +28 -14
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +28 -14
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +106 -23
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +106 -23
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +2 -1
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +2 -1
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +3 -3
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +3 -3
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +17 -9
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +17 -9
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +3 -3
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +3 -3
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/index.d.cts +6 -9
- package/lib/types/graph/engine/index.d.mts +6 -9
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +1 -1
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +1 -1
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +1 -1
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +1 -1
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +16 -5
- package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +16 -5
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +8 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +8 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +9 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +9 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +17 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +17 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +21 -33
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +21 -33
- package/lib/types/graph/engine/planning/index.d.cts +0 -1
- package/lib/types/graph/engine/planning/index.d.mts +0 -1
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +22 -8
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +22 -8
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +26 -0
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +26 -0
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +75 -0
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +75 -0
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +8 -0
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +8 -0
- package/lib/types/graph/engine/runs/GraphRunService.d.cts +93 -0
- package/lib/types/graph/engine/runs/GraphRunService.d.mts +93 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +28 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +28 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +12 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +12 -0
- package/lib/types/graph/engine/runs/index.d.cts +8 -0
- package/lib/types/graph/engine/runs/index.d.mts +8 -0
- package/lib/types/graph/engine/runs/ownership.d.cts +25 -0
- package/lib/types/graph/engine/runs/ownership.d.mts +25 -0
- package/lib/types/graph/engine/runs/types.d.cts +83 -0
- package/lib/types/graph/engine/runs/types.d.mts +83 -0
- package/lib/types/graph/engine/types.d.cts +37 -12
- package/lib/types/graph/engine/types.d.mts +37 -12
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +32 -0
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +32 -0
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +62 -0
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +62 -0
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +11 -9
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +11 -9
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +32 -0
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +32 -0
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +37 -0
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +37 -0
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +92 -0
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +92 -0
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +66 -0
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +66 -0
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +34 -0
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +34 -0
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +39 -0
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +39 -0
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +162 -0
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +162 -0
- package/lib/types/graph/engine/validation/index.d.cts +12 -1
- package/lib/types/graph/engine/validation/index.d.mts +12 -1
- package/lib/types/graph/index.d.cts +4 -4
- package/lib/types/graph/index.d.mts +4 -4
- package/lib/types/graph/log/GraphRunLogger.d.cts +3 -1
- package/lib/types/graph/log/GraphRunLogger.d.mts +3 -1
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/nest/graph/GraphExecutionController.d.cts +83 -4
- package/lib/types/nest/graph/GraphExecutionController.d.mts +83 -4
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +64 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +64 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +12 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +12 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +42 -28
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +42 -28
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +70 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +70 -0
- package/lib/types/nest/graph/GraphResultService.d.cts +12 -0
- package/lib/types/nest/graph/GraphResultService.d.mts +12 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +87 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +87 -0
- package/lib/types/nest/graph/GraphRunModel.d.cts +22 -0
- package/lib/types/nest/graph/GraphRunModel.d.mts +22 -0
- package/lib/types/nest/graph/GraphRunModelService.d.cts +21 -0
- package/lib/types/nest/graph/GraphRunModelService.d.mts +21 -0
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +28 -0
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +28 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +62 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +62 -0
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +33 -0
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +33 -0
- package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +13 -0
- package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +13 -0
- package/lib/types/nest/graph/GraphWorkflowModel.d.cts +19 -1
- package/lib/types/nest/graph/GraphWorkflowModel.d.mts +19 -1
- package/lib/types/nest/graph/GraphWorkflowService.d.cts +48 -1
- package/lib/types/nest/graph/GraphWorkflowService.d.mts +48 -1
- package/lib/types/nest/graph/index.d.cts +8 -0
- package/lib/types/nest/graph/index.d.mts +8 -0
- package/lib/types/nest/keycloakModule.d.cts +9 -1
- package/lib/types/nest/keycloakModule.d.mts +9 -1
- package/lib/types/secrets/aws/AwsSecretEnvironment.d.cts +21 -0
- package/lib/types/secrets/aws/AwsSecretEnvironment.d.mts +21 -0
- package/lib/types/secrets/aws/AwsSecretService.d.cts +4 -3
- package/lib/types/secrets/aws/AwsSecretService.d.mts +4 -3
- package/lib/types/secrets/aws/index.d.cts +1 -0
- package/lib/types/secrets/aws/index.d.mts +1 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.cts +4 -3
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.mts +4 -3
- package/lib/types/secrets/azure/AzureSecretEnvironment.d.cts +14 -0
- package/lib/types/secrets/azure/AzureSecretEnvironment.d.mts +14 -0
- package/lib/types/secrets/azure/index.d.cts +1 -0
- package/lib/types/secrets/azure/index.d.mts +1 -0
- package/lib/types/secrets/core/ClientBasedSecretService.d.cts +20 -0
- package/lib/types/secrets/core/ClientBasedSecretService.d.mts +20 -0
- package/lib/types/secrets/core/SecretEnvironment.d.cts +11 -0
- package/lib/types/secrets/core/SecretEnvironment.d.mts +11 -0
- package/lib/types/secrets/core/index.d.cts +2 -0
- package/lib/types/secrets/core/index.d.mts +2 -0
- package/lib/types/secrets/gcp/GcpSecretEnvironment.d.cts +16 -0
- package/lib/types/secrets/gcp/GcpSecretEnvironment.d.mts +16 -0
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.cts +4 -3
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.mts +4 -3
- package/lib/types/secrets/gcp/index.d.cts +1 -0
- package/lib/types/secrets/gcp/index.d.mts +1 -0
- package/lib/types/secrets/model/ModelSecretEnvironment.d.cts +14 -0
- package/lib/types/secrets/model/ModelSecretEnvironment.d.mts +14 -0
- package/lib/types/secrets/model/ModelSecretService.d.cts +4 -3
- package/lib/types/secrets/model/ModelSecretService.d.mts +4 -3
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.cts +2 -1
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.mts +2 -1
- package/lib/types/secrets/model/index.d.cts +1 -0
- package/lib/types/secrets/model/index.d.mts +1 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.cts +17 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.mts +17 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.cts +4 -3
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.mts +4 -3
- package/lib/types/secrets/onepassword/index.d.cts +1 -0
- package/lib/types/secrets/onepassword/index.d.mts +1 -0
- package/lib/types/secrets/vault/VaultSecretEnvironment.d.cts +17 -0
- package/lib/types/secrets/vault/VaultSecretEnvironment.d.mts +17 -0
- package/lib/types/secrets/vault/VaultSecretService.d.cts +4 -3
- package/lib/types/secrets/vault/VaultSecretService.d.mts +4 -3
- package/lib/types/secrets/vault/index.d.cts +1 -0
- package/lib/types/secrets/vault/index.d.mts +1 -0
- package/lib/types/sftp/aws/AwsSftpEnvironment.d.cts +24 -0
- package/lib/types/sftp/aws/AwsSftpEnvironment.d.mts +24 -0
- package/lib/types/sftp/aws/AwsSftpService.d.cts +38 -0
- package/lib/types/sftp/aws/AwsSftpService.d.mts +38 -0
- package/lib/types/sftp/core/SftpEnvironment.d.cts +11 -0
- package/lib/types/sftp/core/SftpEnvironment.d.mts +11 -0
- package/lib/types/sftp/core/SftpSource.d.cts +47 -0
- package/lib/types/sftp/core/SftpSource.d.mts +47 -0
- package/lib/types/sftp/core/index.d.cts +2 -0
- package/lib/types/sftp/core/index.d.mts +2 -0
- package/lib/types/sftp/index.d.cts +6 -0
- package/lib/types/sftp/index.d.mts +6 -0
- package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.cts +21 -0
- package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.mts +21 -0
- package/lib/types/sftp/ssh2/Ssh2SftpService.d.cts +48 -0
- package/lib/types/sftp/ssh2/Ssh2SftpService.d.mts +48 -0
- package/lib/types/shared/environmentValue.d.cts +16 -0
- package/lib/types/shared/environmentValue.d.mts +16 -0
- package/package.json +13 -11
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs +0 -4
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs +0 -172
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs.map +0 -1
- package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs +0 -97
- package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs.map +0 -1
- package/lib/cjs/graph/shared/constants.cjs +0 -99
- package/lib/cjs/graph/shared/constants.cjs.map +0 -1
- package/lib/cjs/graph/shared/index.cjs +0 -46
- package/lib/cjs/graph/shared/index.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/agent.cjs +0 -110
- package/lib/cjs/graph/shared/nodes/agent.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/base.cjs +0 -36
- package/lib/cjs/graph/shared/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/category-styles.cjs +0 -38
- package/lib/cjs/graph/shared/nodes/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/flow-control.cjs +0 -630
- package/lib/cjs/graph/shared/nodes/flow-control.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/index.cjs +0 -35
- package/lib/cjs/graph/shared/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/triggers.cjs +0 -250
- package/lib/cjs/graph/shared/nodes/triggers.cjs.map +0 -1
- package/lib/cjs/graph/shared/types.cjs.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js +0 -2
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js +0 -167
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js.map +0 -1
- package/lib/esm/graph/shared/GraphExecutionStateMapper.js +0 -91
- package/lib/esm/graph/shared/GraphExecutionStateMapper.js.map +0 -1
- package/lib/esm/graph/shared/constants.js +0 -135
- package/lib/esm/graph/shared/constants.js.map +0 -1
- package/lib/esm/graph/shared/index.js +0 -25
- package/lib/esm/graph/shared/index.js.map +0 -1
- package/lib/esm/graph/shared/nodes/agent.js +0 -101
- package/lib/esm/graph/shared/nodes/agent.js.map +0 -1
- package/lib/esm/graph/shared/nodes/base.js +0 -31
- package/lib/esm/graph/shared/nodes/base.js.map +0 -1
- package/lib/esm/graph/shared/nodes/category-styles.js +0 -34
- package/lib/esm/graph/shared/nodes/category-styles.js.map +0 -1
- package/lib/esm/graph/shared/nodes/flow-control.js +0 -621
- package/lib/esm/graph/shared/nodes/flow-control.js.map +0 -1
- package/lib/esm/graph/shared/nodes/index.js +0 -18
- package/lib/esm/graph/shared/nodes/index.js.map +0 -1
- package/lib/esm/graph/shared/nodes/triggers.js +0 -241
- package/lib/esm/graph/shared/nodes/triggers.js.map +0 -1
- package/lib/esm/graph/shared/types.js.map +0 -1
- package/lib/types/graph/engine/events/GraphExecutionEvent.d.cts +0 -6
- package/lib/types/graph/engine/events/GraphExecutionEvent.d.mts +0 -6
- package/lib/types/graph/engine/planning/GraphRelationResolver.d.cts +0 -62
- package/lib/types/graph/engine/planning/GraphRelationResolver.d.mts +0 -62
- package/lib/types/graph/shared/GraphExecutionStateMapper.d.cts +0 -66
- package/lib/types/graph/shared/GraphExecutionStateMapper.d.mts +0 -66
- package/lib/types/graph/shared/constants.d.cts +0 -120
- package/lib/types/graph/shared/constants.d.mts +0 -120
- package/lib/types/graph/shared/index.d.cts +0 -21
- package/lib/types/graph/shared/index.d.mts +0 -21
- package/lib/types/graph/shared/nodes/agent.d.cts +0 -44
- package/lib/types/graph/shared/nodes/agent.d.mts +0 -44
- package/lib/types/graph/shared/nodes/base.d.cts +0 -28
- package/lib/types/graph/shared/nodes/base.d.mts +0 -28
- package/lib/types/graph/shared/nodes/category-styles.d.cts +0 -8
- package/lib/types/graph/shared/nodes/category-styles.d.mts +0 -8
- package/lib/types/graph/shared/nodes/flow-control.d.cts +0 -163
- package/lib/types/graph/shared/nodes/flow-control.d.mts +0 -163
- package/lib/types/graph/shared/nodes/index.d.cts +0 -17
- package/lib/types/graph/shared/nodes/index.d.mts +0 -17
- package/lib/types/graph/shared/nodes/triggers.d.cts +0 -53
- package/lib/types/graph/shared/nodes/triggers.d.mts +0 -53
- package/lib/types/graph/shared/types.d.cts +0 -257
- package/lib/types/graph/shared/types.d.mts +0 -257
- /package/lib/cjs/graph/{shared → engine/runs}/types.cjs +0 -0
- /package/lib/esm/graph/{shared → engine/runs}/types.js +0 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { assertGraphNodeManifestSerializable, cloneGraphJsonValue, isGraphCredentialRequirement, isGraphNodeMethodManifest, isGraphUnsafeObjectKey, } from "@decaf-ts/ui-decorators/graph";
|
|
2
|
+
import { GraphNodeRegistrationError, GraphNodeNotFoundError, } from "./GraphCatalogueErrors.js";
|
|
3
|
+
import { GraphNodeMethodRegistry } from "./GraphNodeMethodRegistry.js";
|
|
4
|
+
import { GraphNodeManifestResolver } from "./GraphNodeManifestResolver.js";
|
|
5
|
+
const GRAPH_PORT_BINDING_MODES = ["edge", "literal", "expression"];
|
|
6
|
+
function isGraphPortBindingMode(value) {
|
|
7
|
+
return GRAPH_PORT_BINDING_MODES.includes(value);
|
|
8
|
+
}
|
|
9
|
+
function assertValidPortId(kind, scope, id) {
|
|
10
|
+
if (typeof id !== "string" || !id) {
|
|
11
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a ${scope} with an empty port id`);
|
|
12
|
+
}
|
|
13
|
+
if (isGraphUnsafeObjectKey(id)) {
|
|
14
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a ${scope} with unsafe port id '${id}'`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function validateStaticPorts(kind, manifest) {
|
|
18
|
+
const buckets = [
|
|
19
|
+
["input", manifest.inputs],
|
|
20
|
+
["output", manifest.outputs],
|
|
21
|
+
["connection", manifest.connections ?? []],
|
|
22
|
+
];
|
|
23
|
+
for (const [scope, ports] of buckets) {
|
|
24
|
+
const seen = new Set();
|
|
25
|
+
for (const port of ports) {
|
|
26
|
+
assertValidPortId(kind, `${scope} port`, port?.id);
|
|
27
|
+
if (seen.has(port.id)) {
|
|
28
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' declares duplicate static ${scope} port id '${port.id}'`);
|
|
29
|
+
}
|
|
30
|
+
seen.add(port.id);
|
|
31
|
+
if (port.defaultMode !== undefined && !isGraphPortBindingMode(port.defaultMode)) {
|
|
32
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' declares invalid default binding mode '${String(port.defaultMode)}' on ${scope} port '${port.id}'`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function validateParameters(kind, manifest) {
|
|
38
|
+
const ids = new Set();
|
|
39
|
+
for (const parameter of manifest.parameters) {
|
|
40
|
+
const id = parameter?.id;
|
|
41
|
+
if (typeof id !== "string" || !id) {
|
|
42
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a parameter with an empty id`);
|
|
43
|
+
}
|
|
44
|
+
if (isGraphUnsafeObjectKey(id)) {
|
|
45
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a parameter with unsafe id '${id}'`);
|
|
46
|
+
}
|
|
47
|
+
if (ids.has(id)) {
|
|
48
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' declares duplicate parameter id '${id}'`);
|
|
49
|
+
}
|
|
50
|
+
ids.add(id);
|
|
51
|
+
}
|
|
52
|
+
return ids;
|
|
53
|
+
}
|
|
54
|
+
function validateDynamicPortRules(kind, manifest, parameterIds) {
|
|
55
|
+
for (const rule of manifest.dynamicPorts ?? []) {
|
|
56
|
+
if (!rule || typeof rule.parameter !== "string" || !rule.parameter) {
|
|
57
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a dynamic-port rule without a parameter reference`);
|
|
58
|
+
}
|
|
59
|
+
if (!parameterIds.has(rule.parameter)) {
|
|
60
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a dynamic-port rule referencing missing parameter '${rule.parameter}'`);
|
|
61
|
+
}
|
|
62
|
+
if (rule.type === "togglePort") {
|
|
63
|
+
if (!rule.port) {
|
|
64
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a togglePort rule without a port`);
|
|
65
|
+
}
|
|
66
|
+
assertValidPortId(kind, "togglePort rule port", rule.port.id);
|
|
67
|
+
}
|
|
68
|
+
if (rule.type === "repeatFromParameter" && typeof rule.portIdTemplate !== "string") {
|
|
69
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a repeatFromParameter rule without a portIdTemplate`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function validateCredentials(kind, manifest) {
|
|
74
|
+
for (const credential of manifest.credentials ?? []) {
|
|
75
|
+
if (!isGraphCredentialRequirement(credential)) {
|
|
76
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a malformed credential requirement`);
|
|
77
|
+
}
|
|
78
|
+
if (!credential.type) {
|
|
79
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a credential requirement with an empty type`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function validateMethodDeclarations(kind, manifest) {
|
|
84
|
+
for (const declaration of manifest.methods ?? []) {
|
|
85
|
+
if (!isGraphNodeMethodManifest(declaration)) {
|
|
86
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' has a malformed method declaration`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function assertValidRegistration(registration) {
|
|
91
|
+
if (!registration || typeof registration !== "object") {
|
|
92
|
+
throw new GraphNodeRegistrationError("Graph node registration is required");
|
|
93
|
+
}
|
|
94
|
+
if (!registration.manifest || typeof registration.manifest !== "object") {
|
|
95
|
+
throw new GraphNodeRegistrationError("Graph node registration is missing a manifest");
|
|
96
|
+
}
|
|
97
|
+
if (!registration.executor || typeof registration.executor.execute !== "function") {
|
|
98
|
+
throw new GraphNodeRegistrationError(`Graph node registration for kind '${String(registration.manifest?.kind)}' is missing an executor`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Backend-side trusted node catalogue (DECAF-50 §4.10–§4.12): the single
|
|
103
|
+
* registry of node kinds the nine-stage validator resolves against and the
|
|
104
|
+
* execution engine pulls executors from. Registrations are validated on
|
|
105
|
+
* {@link GraphNodeCatalogue.register} (manifest serializability, static
|
|
106
|
+
* ports, parameters, dynamic-port rules, credentials, method declarations)
|
|
107
|
+
* and manifests are served as JSON-safe clones — never class instances.
|
|
108
|
+
* Supports the transition path via
|
|
109
|
+
* {@link GraphNodeCatalogue.registerExecutor}, which creates placeholder
|
|
110
|
+
* manifests with lenient policies for legacy executor-only registrations
|
|
111
|
+
* (removed at cutover, P7).
|
|
112
|
+
*/
|
|
113
|
+
export class GraphNodeCatalogue {
|
|
114
|
+
constructor() {
|
|
115
|
+
this.entries = new Map();
|
|
116
|
+
this.resolver = new GraphNodeManifestResolver();
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Validates and registers a node kind. Throws
|
|
120
|
+
* {@link GraphNodeRegistrationError} on invalid manifests, and on duplicate
|
|
121
|
+
* kinds unless `options.replace` is set.
|
|
122
|
+
*/
|
|
123
|
+
register(registration, options = {}) {
|
|
124
|
+
assertValidRegistration(registration);
|
|
125
|
+
const manifest = registration.manifest;
|
|
126
|
+
if (typeof manifest.kind !== "string" || !manifest.kind.trim()) {
|
|
127
|
+
throw new GraphNodeRegistrationError("Graph node manifest kind is required and must be a non-empty string");
|
|
128
|
+
}
|
|
129
|
+
const kind = manifest.kind;
|
|
130
|
+
if (this.entries.has(kind) && !options.replace) {
|
|
131
|
+
throw new GraphNodeRegistrationError(`Graph node kind '${kind}' is already registered; pass { replace: true } to replace it`);
|
|
132
|
+
}
|
|
133
|
+
try {
|
|
134
|
+
assertGraphNodeManifestSerializable(manifest);
|
|
135
|
+
}
|
|
136
|
+
catch (e) {
|
|
137
|
+
throw new GraphNodeRegistrationError(`Manifest for kind '${kind}' is not JSON-serializable: ${e.message}`);
|
|
138
|
+
}
|
|
139
|
+
validateStaticPorts(kind, manifest);
|
|
140
|
+
const parameterIds = validateParameters(kind, manifest);
|
|
141
|
+
validateDynamicPortRules(kind, manifest, parameterIds);
|
|
142
|
+
validateCredentials(kind, manifest);
|
|
143
|
+
validateMethodDeclarations(kind, manifest);
|
|
144
|
+
const methods = new GraphNodeMethodRegistry(kind, manifest.methods ?? [], registration.methods ?? {});
|
|
145
|
+
this.entries.set(kind, {
|
|
146
|
+
registration,
|
|
147
|
+
methods,
|
|
148
|
+
placeholderManifest: false,
|
|
149
|
+
});
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Registers an executor for a kind. When the kind has no manifest yet, a
|
|
154
|
+
* placeholder manifest is created with transition-leniency policies
|
|
155
|
+
* (`allowUndeclaredParameters`/`allowUnknownOutputs`, DECAF-50 §4.18) that
|
|
156
|
+
* are removed at cutover (P7).
|
|
157
|
+
*/
|
|
158
|
+
registerExecutor(kind, executor) {
|
|
159
|
+
if (typeof kind !== "string" || !kind.trim()) {
|
|
160
|
+
throw new GraphNodeRegistrationError("Graph executor kind is required");
|
|
161
|
+
}
|
|
162
|
+
if (!executor || typeof executor.execute !== "function") {
|
|
163
|
+
throw new GraphNodeRegistrationError(`Executor registered for kind '${kind}' is missing an execute method`);
|
|
164
|
+
}
|
|
165
|
+
const existing = this.entries.get(kind);
|
|
166
|
+
if (existing) {
|
|
167
|
+
existing.registration = { ...existing.registration, executor };
|
|
168
|
+
return this;
|
|
169
|
+
}
|
|
170
|
+
const manifest = {
|
|
171
|
+
kind,
|
|
172
|
+
display: { name: kind },
|
|
173
|
+
inputs: [],
|
|
174
|
+
outputs: [],
|
|
175
|
+
parameters: [],
|
|
176
|
+
// Transition leniency (DECAF-50 §4.8/§4.9/§4.18): placeholder manifests
|
|
177
|
+
// created for legacy executor-only registrations accept undeclared
|
|
178
|
+
// parameters and unknown outputs until cutover (P7).
|
|
179
|
+
policies: {
|
|
180
|
+
allowUndeclaredParameters: true,
|
|
181
|
+
allowUnknownOutputs: true,
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
this.entries.set(kind, {
|
|
185
|
+
registration: { manifest, executor },
|
|
186
|
+
methods: new GraphNodeMethodRegistry(kind, [], {}),
|
|
187
|
+
placeholderManifest: true,
|
|
188
|
+
});
|
|
189
|
+
return this;
|
|
190
|
+
}
|
|
191
|
+
/** Removes a kind registration. */
|
|
192
|
+
unregister(kind) {
|
|
193
|
+
this.entries.delete(kind);
|
|
194
|
+
return this;
|
|
195
|
+
}
|
|
196
|
+
/** Whether a kind is registered. */
|
|
197
|
+
has(kind) {
|
|
198
|
+
return this.entries.has(kind);
|
|
199
|
+
}
|
|
200
|
+
entry(kind) {
|
|
201
|
+
const entry = this.entries.get(kind);
|
|
202
|
+
if (!entry) {
|
|
203
|
+
throw new GraphNodeNotFoundError(`No graph node kind '${kind}' is registered in the catalogue`);
|
|
204
|
+
}
|
|
205
|
+
return entry;
|
|
206
|
+
}
|
|
207
|
+
/** Returns a JSON-safe clone of the kind's registered manifest. */
|
|
208
|
+
getManifest(kind) {
|
|
209
|
+
return cloneGraphJsonValue(this.entry(kind).registration.manifest);
|
|
210
|
+
}
|
|
211
|
+
/** Returns the kind's registered executor. */
|
|
212
|
+
getExecutor(kind) {
|
|
213
|
+
return this.entry(kind).registration.executor;
|
|
214
|
+
}
|
|
215
|
+
/** Returns the declared method manifest for a kind, if declared. */
|
|
216
|
+
getMethodDeclaration(kind, method) {
|
|
217
|
+
return this.entry(kind).methods.getDeclaration(method);
|
|
218
|
+
}
|
|
219
|
+
/** Returns the registered method implementation for a kind. */
|
|
220
|
+
getMethod(kind, method) {
|
|
221
|
+
this.entry(kind).methods.getDeclaration(method);
|
|
222
|
+
return this.entry(kind).methods.get(method);
|
|
223
|
+
}
|
|
224
|
+
/** Lists all method declarations registered for a kind. */
|
|
225
|
+
listMethodDeclarations(kind) {
|
|
226
|
+
return this.entry(kind).methods.list();
|
|
227
|
+
}
|
|
228
|
+
/** Lists registered manifests, optionally filtered by kind and display category. */
|
|
229
|
+
listManifests(context) {
|
|
230
|
+
const kinds = [...this.entries.keys()].sort();
|
|
231
|
+
const categoryFilter = context?.categories?.length
|
|
232
|
+
? new Set(context.categories)
|
|
233
|
+
: undefined;
|
|
234
|
+
const kindFilter = context?.kinds?.length ? new Set(context.kinds) : undefined;
|
|
235
|
+
const manifests = [];
|
|
236
|
+
for (const kind of kinds) {
|
|
237
|
+
if (kindFilter && !kindFilter.has(kind))
|
|
238
|
+
continue;
|
|
239
|
+
const manifest = this.getManifest(kind);
|
|
240
|
+
if (categoryFilter && !categoryFilter.has(manifest.display.category ?? "")) {
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
manifests.push(manifest);
|
|
244
|
+
}
|
|
245
|
+
return manifests;
|
|
246
|
+
}
|
|
247
|
+
/** Lists all registered kinds, sorted. */
|
|
248
|
+
listKinds() {
|
|
249
|
+
return [...this.entries.keys()].sort();
|
|
250
|
+
}
|
|
251
|
+
/** Number of registered kinds. */
|
|
252
|
+
get size() {
|
|
253
|
+
return this.entries.size;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Resolves the effective manifest for a node instance (dynamic ports
|
|
257
|
+
* expanded, instance context applied) as a
|
|
258
|
+
* {@link GraphResolvedNodeManifest}.
|
|
259
|
+
*/
|
|
260
|
+
async resolveManifest(kind, instance, context) {
|
|
261
|
+
const entry = this.entry(kind);
|
|
262
|
+
return this.resolver.resolve(kind, entry.registration.manifest, entry.registration.resolveManifest, instance, context);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
//# sourceMappingURL=GraphNodeCatalogue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphNodeCatalogue.js","sourceRoot":"","sources":["../../../../../src/graph/engine/catalog/GraphNodeCatalogue.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,mCAAmC,EACnC,mBAAmB,EACnB,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GACvB,kCAA+B;AAMhC,OAAO,EAAE,uBAAuB,EAAE,qCAAkC;AACpE,OAAO,EAAE,yBAAyB,EAAE,uCAAoC;AAExE,MAA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AC1B,IAAI,EACJ,KAAK,CAAC,YAAY,CAAC,QAAQ,EAC3B,KAAK,CAAC,YAAY,CAAC,eAAe,EAClC,QAAQ,EACR,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { cloneGraphJsonValue, isGraphJsonSafeValue, } from "@decaf-ts/ui-decorators/graph";
|
|
2
|
+
import { isGraphResolvedNodeManifest } from "@decaf-ts/ui-decorators/graph";
|
|
3
|
+
import { GraphNodeRegistrationError } from "./GraphCatalogueErrors.js";
|
|
4
|
+
function readItemPath(item, path) {
|
|
5
|
+
if (!path)
|
|
6
|
+
return undefined;
|
|
7
|
+
let current = item;
|
|
8
|
+
for (const segment of path.split(".")) {
|
|
9
|
+
if (!current || typeof current !== "object")
|
|
10
|
+
return undefined;
|
|
11
|
+
current = current[segment];
|
|
12
|
+
}
|
|
13
|
+
return current;
|
|
14
|
+
}
|
|
15
|
+
function expandPortIdTemplate(template, values) {
|
|
16
|
+
return template
|
|
17
|
+
.replaceAll("${id}", values.id)
|
|
18
|
+
.replaceAll("${index}", String(values.index))
|
|
19
|
+
.replaceAll("${label}", values.label);
|
|
20
|
+
}
|
|
21
|
+
function dynamicPortIdFor(rule, item, index) {
|
|
22
|
+
const rawId = readItemPath(item, rule.itemIdPath);
|
|
23
|
+
const rawLabel = rule.itemLabelPath
|
|
24
|
+
? readItemPath(item, rule.itemLabelPath)
|
|
25
|
+
: undefined;
|
|
26
|
+
const id = (typeof rawId === "string" && rawId) ||
|
|
27
|
+
(typeof rawId === "number" && Number.isFinite(rawId) && String(rawId)) ||
|
|
28
|
+
String(index);
|
|
29
|
+
const label = typeof rawLabel === "string" ? rawLabel : undefined;
|
|
30
|
+
return { id, label };
|
|
31
|
+
}
|
|
32
|
+
function dynamicPortTargets(resolution, direction) {
|
|
33
|
+
switch (direction) {
|
|
34
|
+
case "input":
|
|
35
|
+
return resolution.inputs;
|
|
36
|
+
case "output":
|
|
37
|
+
return resolution.outputs;
|
|
38
|
+
default:
|
|
39
|
+
return resolution.connections;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Expands a manifest's `dynamicPorts` rules (DECAF-50 §4.11) against the
|
|
44
|
+
* given parameter values — e.g. `repeatFromParameter` turns each array item
|
|
45
|
+
* into a concrete port with a templated id/label. Static ports are never
|
|
46
|
+
* duplicated; expanded ports are appended per direction.
|
|
47
|
+
*/
|
|
48
|
+
export function resolveGraphDynamicPorts(manifest, parameters) {
|
|
49
|
+
const resolution = {
|
|
50
|
+
inputs: [],
|
|
51
|
+
outputs: [],
|
|
52
|
+
connections: [],
|
|
53
|
+
};
|
|
54
|
+
const seen = {
|
|
55
|
+
input: new Set((manifest.inputs ?? []).map((port) => port.id)),
|
|
56
|
+
output: new Set((manifest.outputs ?? []).map((port) => port.id)),
|
|
57
|
+
connection: new Set((manifest.connections ?? []).map((port) => port.id)),
|
|
58
|
+
};
|
|
59
|
+
const claim = (direction, portId) => {
|
|
60
|
+
const taken = seen[direction];
|
|
61
|
+
if (taken.has(portId))
|
|
62
|
+
return false;
|
|
63
|
+
taken.add(portId);
|
|
64
|
+
return true;
|
|
65
|
+
};
|
|
66
|
+
for (const rule of manifest.dynamicPorts ?? []) {
|
|
67
|
+
if (rule.type === "repeatFromParameter") {
|
|
68
|
+
const value = parameters[rule.parameter];
|
|
69
|
+
if (!Array.isArray(value))
|
|
70
|
+
continue;
|
|
71
|
+
const targets = dynamicPortTargets(resolution, rule.direction);
|
|
72
|
+
value.forEach((item, index) => {
|
|
73
|
+
const { id, label } = dynamicPortIdFor(rule, item, index);
|
|
74
|
+
const portId = expandPortIdTemplate(rule.portIdTemplate, {
|
|
75
|
+
id,
|
|
76
|
+
index,
|
|
77
|
+
label: label ?? id,
|
|
78
|
+
});
|
|
79
|
+
if (!claim(rule.direction, portId))
|
|
80
|
+
return;
|
|
81
|
+
const base = rule.defaultPort
|
|
82
|
+
? cloneGraphJsonValue(rule.defaultPort)
|
|
83
|
+
: {
|
|
84
|
+
id: portId,
|
|
85
|
+
label: label ?? portId,
|
|
86
|
+
direction: rule.direction,
|
|
87
|
+
};
|
|
88
|
+
const port = base;
|
|
89
|
+
port.id = portId;
|
|
90
|
+
port.direction = rule.direction;
|
|
91
|
+
if (label)
|
|
92
|
+
port.label = label;
|
|
93
|
+
targets.push(port);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
else if (rule.type === "togglePort") {
|
|
97
|
+
const value = parameters[rule.parameter];
|
|
98
|
+
if (value !== rule.equals)
|
|
99
|
+
continue;
|
|
100
|
+
const port = cloneGraphJsonValue(rule.port);
|
|
101
|
+
if (!claim(port.direction, port.id))
|
|
102
|
+
continue;
|
|
103
|
+
dynamicPortTargets(resolution, port.direction).push(port);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return resolution;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Resolves a manifest against parameter values into a
|
|
110
|
+
* {@link GraphResolvedNodeManifest}: static ports plus expanded dynamic
|
|
111
|
+
* ports, with credentials/capabilities/policies/metadata carried over. The
|
|
112
|
+
* result is a JSON-safe clone.
|
|
113
|
+
*/
|
|
114
|
+
export function resolveGraphNodeManifest(manifest, parameters) {
|
|
115
|
+
const dynamic = resolveGraphDynamicPorts(manifest, parameters);
|
|
116
|
+
const resolved = {
|
|
117
|
+
kind: manifest.kind,
|
|
118
|
+
display: manifest.display,
|
|
119
|
+
inputs: [...manifest.inputs, ...dynamic.inputs],
|
|
120
|
+
outputs: [...manifest.outputs, ...dynamic.outputs],
|
|
121
|
+
parameters: manifest.parameters,
|
|
122
|
+
};
|
|
123
|
+
const connections = [
|
|
124
|
+
...(manifest.connections ?? []),
|
|
125
|
+
...dynamic.connections,
|
|
126
|
+
];
|
|
127
|
+
if (connections.length)
|
|
128
|
+
resolved.connections = connections;
|
|
129
|
+
if (manifest.dynamicPorts?.length)
|
|
130
|
+
resolved.dynamicPorts = manifest.dynamicPorts;
|
|
131
|
+
if (manifest.credentials?.length)
|
|
132
|
+
resolved.credentials = manifest.credentials;
|
|
133
|
+
if (manifest.capabilities?.length)
|
|
134
|
+
resolved.capabilities = manifest.capabilities;
|
|
135
|
+
if (manifest.policies)
|
|
136
|
+
resolved.policies = manifest.policies;
|
|
137
|
+
if (manifest.metadata)
|
|
138
|
+
resolved.metadata = manifest.metadata;
|
|
139
|
+
return cloneGraphJsonValue(resolved);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Resolves the effective manifest for a node instance. Prefers the
|
|
143
|
+
* registration's `resolveManifest` provider (validated for shape and JSON
|
|
144
|
+
* safety) and falls back to static-plus-dynamic resolution via
|
|
145
|
+
* {@link resolveGraphNodeManifest}.
|
|
146
|
+
*/
|
|
147
|
+
export class GraphNodeManifestResolver {
|
|
148
|
+
async resolve(kind, manifest, provider, instance, context) {
|
|
149
|
+
if (provider) {
|
|
150
|
+
const resolved = await provider(instance, context);
|
|
151
|
+
if (!isGraphResolvedNodeManifest(resolved)) {
|
|
152
|
+
throw new GraphNodeRegistrationError(`resolveManifest provider for kind '${kind}' returned a value that does not conform to GraphResolvedNodeManifest`);
|
|
153
|
+
}
|
|
154
|
+
if (!isGraphJsonSafeValue(resolved)) {
|
|
155
|
+
throw new GraphNodeRegistrationError(`resolveManifest provider for kind '${kind}' returned a non-JSON-safe resolved manifest`);
|
|
156
|
+
}
|
|
157
|
+
return cloneGraphJsonValue(resolved);
|
|
158
|
+
}
|
|
159
|
+
return resolveGraphNodeManifest(manifest, instance.parameters ?? {});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=GraphNodeManifestResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphNodeManifestResolver.js","sourceRoot":"","sources":["../../../../../src/graph/engine/catalog/GraphNodeManifestResolver.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,+BAA+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C;QACD,OAAO,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { GraphNodeRegistrationError, GraphNodeMethodNotFoundError, } from "./GraphCatalogueErrors.js";
|
|
2
|
+
/**
|
|
3
|
+
* Per-kind registry of declared node methods (DECAF-50 §4.12): validates at
|
|
4
|
+
* construction that every declared method has an implementation and no
|
|
5
|
+
* implementation exists without a declaration, then serves declarations and
|
|
6
|
+
* implementations by name.
|
|
7
|
+
*/
|
|
8
|
+
export class GraphNodeMethodRegistry {
|
|
9
|
+
constructor(kind, declared, provided = {}) {
|
|
10
|
+
this.kind = kind;
|
|
11
|
+
this.declarations = new Map();
|
|
12
|
+
this.implementations = new Map();
|
|
13
|
+
for (const declaration of declared) {
|
|
14
|
+
if (typeof declaration?.name !== "string" || !declaration.name) {
|
|
15
|
+
throw new GraphNodeRegistrationError(`Method declaration for kind '${this.kind}' is missing a name`);
|
|
16
|
+
}
|
|
17
|
+
if (this.declarations.has(declaration.name)) {
|
|
18
|
+
throw new GraphNodeRegistrationError(`Kind '${this.kind}' declares duplicate method '${declaration.name}'`);
|
|
19
|
+
}
|
|
20
|
+
this.declarations.set(declaration.name, declaration);
|
|
21
|
+
}
|
|
22
|
+
for (const [name, implementation] of Object.entries(provided)) {
|
|
23
|
+
if (typeof implementation !== "function") {
|
|
24
|
+
throw new GraphNodeRegistrationError(`Method implementation '${name}' for kind '${this.kind}' is not a function`);
|
|
25
|
+
}
|
|
26
|
+
if (!this.declarations.has(name)) {
|
|
27
|
+
throw new GraphNodeRegistrationError(`Kind '${this.kind}' implements method '${name}' which is not declared by its manifest`);
|
|
28
|
+
}
|
|
29
|
+
this.implementations.set(name, implementation);
|
|
30
|
+
}
|
|
31
|
+
for (const name of this.declarations.keys()) {
|
|
32
|
+
if (!this.implementations.has(name)) {
|
|
33
|
+
throw new GraphNodeRegistrationError(`Kind '${this.kind}' declares method '${name}' with no implementation`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** Whether a method with the given name is declared. */
|
|
38
|
+
has(name) {
|
|
39
|
+
return this.declarations.has(name);
|
|
40
|
+
}
|
|
41
|
+
/** Returns the method's declaration; throws {@link GraphNodeMethodNotFoundError} when undeclared. */
|
|
42
|
+
getDeclaration(name) {
|
|
43
|
+
const declaration = this.declarations.get(name);
|
|
44
|
+
if (!declaration) {
|
|
45
|
+
throw new GraphNodeMethodNotFoundError(`Kind '${this.kind}' does not declare method '${name}'`);
|
|
46
|
+
}
|
|
47
|
+
return declaration;
|
|
48
|
+
}
|
|
49
|
+
/** Returns the method's implementation (asserting it is declared first). */
|
|
50
|
+
get(name) {
|
|
51
|
+
this.getDeclaration(name);
|
|
52
|
+
return this.implementations.get(name);
|
|
53
|
+
}
|
|
54
|
+
/** Lists all declarations, sorted by method name. */
|
|
55
|
+
list() {
|
|
56
|
+
return [...this.declarations.values()].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=GraphNodeMethodRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphNodeMethodRegistry.js","sourceRoot":"","sources":["../../../../../src/graph/engine/catalog/GraphNodeMethodRegistry.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,kCAA+B;AAGhC;;;;;GAKG;AACH,MAAM,OAAO,uBAAuB;IAIlC,YACmB,IAAY,EAC7B,QAAmC,EACnC,WAA4C,EAAE;QAF7B,SAAI,GAAJ,IAAI,CAAQ;QAJd,iBAAY,GAAG,IAAI,GAAG,EAAmC,CAAC;QAC1D,oBAAe,GAAG,IAAI,GAAG,EAA2B,CAAC;QAOpE,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,CAAC;YACnC,IAAI,OAAO,W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YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,wDAAwD;IACxD,GAAG,CAAC,IAAY;QACd,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,qGAAqG;IACrG,cAAc,CAAC,IAAY;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,4BAA4B,CACpC,SAAS,IAAI,CAAC,IAAI,8BAA8B,IAAI,GAAG,CACxD,CAAC;QACJ,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,4EAA4E;IAC5E,GAAG,CAAC,IAAY;QACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAoB,CAAC;IAC3D,CAAC;IAED,qDAAqD;IACrD,IAAI;QACF,OAAO,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACnD,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity helper that types a registration payload as a
|
|
3
|
+
* {@link GraphNodeRegistration} for catalogue registration.
|
|
4
|
+
*/
|
|
5
|
+
export function defineGraphNode(registration) {
|
|
6
|
+
return registration;
|
|
7
|
+
}
|
|
8
|
+
/** Returns the method manifests declared by a node manifest. */
|
|
9
|
+
export function declaredGraphNodeMethods(manifest) {
|
|
10
|
+
return manifest.methods ?? [];
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=GraphNodeRegistration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphNodeRegistration.js","sourceRoot":"","sources":["../../../../../src/graph/engine/catalog/GraphNodeRegistration.ts"],"names":[],"mappings":"AAkFA;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,YAAmC;IAEnC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,wBAAwB,CACtC,QAA2B;IAE3B,OAAO,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./GraphCatalogueErrors.js";
|
|
2
|
+
export * from "./GraphNodeRegistration.js";
|
|
3
|
+
export * from "./GraphNodeMethodRegistry.js";
|
|
4
|
+
export * from "./GraphNodeManifestResolver.js";
|
|
5
|
+
export * from "./GraphNodeCatalogue.js";
|
|
6
|
+
export * from "./GraphBuiltInRegistrations.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/graph/engine/catalog/index.ts"],"names":[],"mappings":"AAAA,0CAAuC;AACvC,2CAAwC;AACxC,6CAA0C;AAC1C,+CAA4C;AAC5C,wCAAqC;AACrC,+CAA4C"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @summary Graph execution engine-private constants and enums.
|
|
4
4
|
* @description Engine-only constants, default limits, and enumerations.
|
|
5
5
|
* Frontend-safe enums (`GraphExecutionStatus`, `GraphExecutionEventType`)
|
|
6
|
-
* live in
|
|
7
|
-
* there and engine-private symbols from here.
|
|
6
|
+
* live in `@decaf-ts/ui-decorators/graph`; engine modules import shared
|
|
7
|
+
* symbols from there and engine-private symbols from here.
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Boundary identifier used as the node id for workflow-level input/output ports.
|
|
@@ -17,6 +17,7 @@ export class GraphExecutionError extends InternalError {
|
|
|
17
17
|
super(message, GraphExecutionError.name, 500);
|
|
18
18
|
this.graphCode = graphCode;
|
|
19
19
|
this.details = details;
|
|
20
|
+
this.name = this.constructor.name;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=GraphExecutionError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionError.js","sourceRoot":"","sources":["../../../../../src/graph/engine/errors/GraphExecutionError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAIpD,YACE,OAAe,EACf,SAAS,GAAG,uBAAuB,EACnC,OAAiB;QAEjB,KAAK,CAAC,OAAO,EAAE,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GraphExecutionError.js","sourceRoot":"","sources":["../../../../../src/graph/engine/errors/GraphExecutionError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAIpD,YACE,OAAe,EACf,SAAS,GAAG,uBAAuB,EACnC,OAAiB;QAEjB,KAAK,CAAC,OAAO,EAAE,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GraphExecutionError } from "./GraphExecutionError.js";
|
|
2
|
+
/**
|
|
3
|
+
* Thrown when a graph run is cancelled before completion: carries the run id
|
|
4
|
+
* under the `GRAPH_RUN_CANCELLED` code so run lifecycle bookkeeping can
|
|
5
|
+
* distinguish cancellation from failure.
|
|
6
|
+
*/
|
|
7
|
+
export class GraphRunCancelledError extends GraphExecutionError {
|
|
8
|
+
constructor(runId) {
|
|
9
|
+
super(`Graph run '${runId}' was cancelled`, "GRAPH_RUN_CANCELLED", { runId });
|
|
10
|
+
this.name = GraphRunCancelledError.name;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GraphRunCancelledError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphRunCancelledError.js","sourceRoot":"","sources":["../../../../../src/graph/engine/errors/GraphRunCancelledError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iCAA8B;AAE5D;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,mBAAmB;IAC7D,YAAY,KAAa;QACvB,KAAK,CACH,cAAc,KAAK,iBAAiB,EACpC,qBAAqB,EACrB,EAAE,KAAK,EAAE,CACV,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/graph/engine/errors/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yCAAsC;AACtC,qCAAkC;AAClC,qCAAkC;AAClC,yCAAsC;AACtC,uCAAoC;AACpC,oCAAiC;AACjC,qCAAkC;AAClC,wCAAqC;AACrC,sCAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/graph/engine/errors/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yCAAsC;AACtC,qCAAkC;AAClC,qCAAkC;AAClC,yCAAsC;AACtC,uCAAoC;AACpC,oCAAiC;AACjC,qCAAkC;AAClC,wCAAqC;AACrC,sCAAmC;AACnC,4CAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionEventEmitter.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/GraphExecutionEventEmitter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GraphExecutionEventEmitter.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/GraphExecutionEventEmitter.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,OAAO,0BAA0B;IAAvC;QAEmB,cAAS,GAAG,IAAI,GAAG,EAA0B,CAAC;IA8BjE,CAAC;IA5BC,iEAAiE;IACjE,OAAO,CAAC,QAAgC;QACtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,gDAAgD;IAChD,SAAS,CAAC,QAAgC;QACxC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CAAC,KAA0B;QAC9C,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;YAChD,IAAI,CAAC;gBACH,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;YACjD,CAAC;YAAC,MAAM,CAAC;gBACP,8CAA8C;YAChD,CAAC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionEventFactory.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/GraphExecutionEventFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GraphExecutionEventFactory.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/GraphExecutionEventFactory.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,MAAM,OAAO,0BAA0B;IAAvC;QACU,aAAQ,GAAG,CAAC,CAAC;IA6BvB,CAAC;IA3BC;;;;;OAKG;IACH,MAAM,CACJ,IAAgE;QAEhE,OAAO;YACL,GAAG,IAAI;YACP,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE;YACxB,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ;YACzB,SAAS,EAAE,IAAI,IAAI,EAAE;SACtB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACK,aAAa;QACnB,OAAO,CACL,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YACjC,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CACvD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @summary Graph execution event pipeline.
|
|
4
4
|
* @description Re-exports the observer interface, event emitter, and event factory.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./GraphExecutionEvent.js";
|
|
7
6
|
export * from "./GraphExecutionObserver.js";
|
|
8
7
|
export * from "./GraphExecutionEventEmitter.js";
|
|
9
8
|
export * from "./GraphExecutionEventFactory.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/graph/engine/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4CAAyC;AACzC,gDAA6C;AAC7C,gDAA6C"}
|