@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,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphNodeCatalogue = void 0;
|
|
4
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
5
|
+
const GraphCatalogueErrors_js_1 = require("./GraphCatalogueErrors.cjs");
|
|
6
|
+
const GraphNodeMethodRegistry_js_1 = require("./GraphNodeMethodRegistry.cjs");
|
|
7
|
+
const GraphNodeManifestResolver_js_1 = require("./GraphNodeManifestResolver.cjs");
|
|
8
|
+
const GRAPH_PORT_BINDING_MODES = ["edge", "literal", "expression"];
|
|
9
|
+
function isGraphPortBindingMode(value) {
|
|
10
|
+
return GRAPH_PORT_BINDING_MODES.includes(value);
|
|
11
|
+
}
|
|
12
|
+
function assertValidPortId(kind, scope, id) {
|
|
13
|
+
if (typeof id !== "string" || !id) {
|
|
14
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a ${scope} with an empty port id`);
|
|
15
|
+
}
|
|
16
|
+
if ((0, graph_1.isGraphUnsafeObjectKey)(id)) {
|
|
17
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a ${scope} with unsafe port id '${id}'`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function validateStaticPorts(kind, manifest) {
|
|
21
|
+
const buckets = [
|
|
22
|
+
["input", manifest.inputs],
|
|
23
|
+
["output", manifest.outputs],
|
|
24
|
+
["connection", manifest.connections ?? []],
|
|
25
|
+
];
|
|
26
|
+
for (const [scope, ports] of buckets) {
|
|
27
|
+
const seen = new Set();
|
|
28
|
+
for (const port of ports) {
|
|
29
|
+
assertValidPortId(kind, `${scope} port`, port?.id);
|
|
30
|
+
if (seen.has(port.id)) {
|
|
31
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' declares duplicate static ${scope} port id '${port.id}'`);
|
|
32
|
+
}
|
|
33
|
+
seen.add(port.id);
|
|
34
|
+
if (port.defaultMode !== undefined && !isGraphPortBindingMode(port.defaultMode)) {
|
|
35
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' declares invalid default binding mode '${String(port.defaultMode)}' on ${scope} port '${port.id}'`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function validateParameters(kind, manifest) {
|
|
41
|
+
const ids = new Set();
|
|
42
|
+
for (const parameter of manifest.parameters) {
|
|
43
|
+
const id = parameter?.id;
|
|
44
|
+
if (typeof id !== "string" || !id) {
|
|
45
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a parameter with an empty id`);
|
|
46
|
+
}
|
|
47
|
+
if ((0, graph_1.isGraphUnsafeObjectKey)(id)) {
|
|
48
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a parameter with unsafe id '${id}'`);
|
|
49
|
+
}
|
|
50
|
+
if (ids.has(id)) {
|
|
51
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' declares duplicate parameter id '${id}'`);
|
|
52
|
+
}
|
|
53
|
+
ids.add(id);
|
|
54
|
+
}
|
|
55
|
+
return ids;
|
|
56
|
+
}
|
|
57
|
+
function validateDynamicPortRules(kind, manifest, parameterIds) {
|
|
58
|
+
for (const rule of manifest.dynamicPorts ?? []) {
|
|
59
|
+
if (!rule || typeof rule.parameter !== "string" || !rule.parameter) {
|
|
60
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a dynamic-port rule without a parameter reference`);
|
|
61
|
+
}
|
|
62
|
+
if (!parameterIds.has(rule.parameter)) {
|
|
63
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a dynamic-port rule referencing missing parameter '${rule.parameter}'`);
|
|
64
|
+
}
|
|
65
|
+
if (rule.type === "togglePort") {
|
|
66
|
+
if (!rule.port) {
|
|
67
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a togglePort rule without a port`);
|
|
68
|
+
}
|
|
69
|
+
assertValidPortId(kind, "togglePort rule port", rule.port.id);
|
|
70
|
+
}
|
|
71
|
+
if (rule.type === "repeatFromParameter" && typeof rule.portIdTemplate !== "string") {
|
|
72
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a repeatFromParameter rule without a portIdTemplate`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function validateCredentials(kind, manifest) {
|
|
77
|
+
for (const credential of manifest.credentials ?? []) {
|
|
78
|
+
if (!(0, graph_1.isGraphCredentialRequirement)(credential)) {
|
|
79
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a malformed credential requirement`);
|
|
80
|
+
}
|
|
81
|
+
if (!credential.type) {
|
|
82
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a credential requirement with an empty type`);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function validateMethodDeclarations(kind, manifest) {
|
|
87
|
+
for (const declaration of manifest.methods ?? []) {
|
|
88
|
+
if (!(0, graph_1.isGraphNodeMethodManifest)(declaration)) {
|
|
89
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' has a malformed method declaration`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function assertValidRegistration(registration) {
|
|
94
|
+
if (!registration || typeof registration !== "object") {
|
|
95
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError("Graph node registration is required");
|
|
96
|
+
}
|
|
97
|
+
if (!registration.manifest || typeof registration.manifest !== "object") {
|
|
98
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError("Graph node registration is missing a manifest");
|
|
99
|
+
}
|
|
100
|
+
if (!registration.executor || typeof registration.executor.execute !== "function") {
|
|
101
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Graph node registration for kind '${String(registration.manifest?.kind)}' is missing an executor`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Backend-side trusted node catalogue (DECAF-50 §4.10–§4.12): the single
|
|
106
|
+
* registry of node kinds the nine-stage validator resolves against and the
|
|
107
|
+
* execution engine pulls executors from. Registrations are validated on
|
|
108
|
+
* {@link GraphNodeCatalogue.register} (manifest serializability, static
|
|
109
|
+
* ports, parameters, dynamic-port rules, credentials, method declarations)
|
|
110
|
+
* and manifests are served as JSON-safe clones — never class instances.
|
|
111
|
+
* Supports the transition path via
|
|
112
|
+
* {@link GraphNodeCatalogue.registerExecutor}, which creates placeholder
|
|
113
|
+
* manifests with lenient policies for legacy executor-only registrations
|
|
114
|
+
* (removed at cutover, P7).
|
|
115
|
+
*/
|
|
116
|
+
class GraphNodeCatalogue {
|
|
117
|
+
constructor() {
|
|
118
|
+
this.entries = new Map();
|
|
119
|
+
this.resolver = new GraphNodeManifestResolver_js_1.GraphNodeManifestResolver();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Validates and registers a node kind. Throws
|
|
123
|
+
* {@link GraphNodeRegistrationError} on invalid manifests, and on duplicate
|
|
124
|
+
* kinds unless `options.replace` is set.
|
|
125
|
+
*/
|
|
126
|
+
register(registration, options = {}) {
|
|
127
|
+
assertValidRegistration(registration);
|
|
128
|
+
const manifest = registration.manifest;
|
|
129
|
+
if (typeof manifest.kind !== "string" || !manifest.kind.trim()) {
|
|
130
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError("Graph node manifest kind is required and must be a non-empty string");
|
|
131
|
+
}
|
|
132
|
+
const kind = manifest.kind;
|
|
133
|
+
if (this.entries.has(kind) && !options.replace) {
|
|
134
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Graph node kind '${kind}' is already registered; pass { replace: true } to replace it`);
|
|
135
|
+
}
|
|
136
|
+
try {
|
|
137
|
+
(0, graph_1.assertGraphNodeManifestSerializable)(manifest);
|
|
138
|
+
}
|
|
139
|
+
catch (e) {
|
|
140
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Manifest for kind '${kind}' is not JSON-serializable: ${e.message}`);
|
|
141
|
+
}
|
|
142
|
+
validateStaticPorts(kind, manifest);
|
|
143
|
+
const parameterIds = validateParameters(kind, manifest);
|
|
144
|
+
validateDynamicPortRules(kind, manifest, parameterIds);
|
|
145
|
+
validateCredentials(kind, manifest);
|
|
146
|
+
validateMethodDeclarations(kind, manifest);
|
|
147
|
+
const methods = new GraphNodeMethodRegistry_js_1.GraphNodeMethodRegistry(kind, manifest.methods ?? [], registration.methods ?? {});
|
|
148
|
+
this.entries.set(kind, {
|
|
149
|
+
registration,
|
|
150
|
+
methods,
|
|
151
|
+
placeholderManifest: false,
|
|
152
|
+
});
|
|
153
|
+
return this;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Registers an executor for a kind. When the kind has no manifest yet, a
|
|
157
|
+
* placeholder manifest is created with transition-leniency policies
|
|
158
|
+
* (`allowUndeclaredParameters`/`allowUnknownOutputs`, DECAF-50 §4.18) that
|
|
159
|
+
* are removed at cutover (P7).
|
|
160
|
+
*/
|
|
161
|
+
registerExecutor(kind, executor) {
|
|
162
|
+
if (typeof kind !== "string" || !kind.trim()) {
|
|
163
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError("Graph executor kind is required");
|
|
164
|
+
}
|
|
165
|
+
if (!executor || typeof executor.execute !== "function") {
|
|
166
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Executor registered for kind '${kind}' is missing an execute method`);
|
|
167
|
+
}
|
|
168
|
+
const existing = this.entries.get(kind);
|
|
169
|
+
if (existing) {
|
|
170
|
+
existing.registration = { ...existing.registration, executor };
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
const manifest = {
|
|
174
|
+
kind,
|
|
175
|
+
display: { name: kind },
|
|
176
|
+
inputs: [],
|
|
177
|
+
outputs: [],
|
|
178
|
+
parameters: [],
|
|
179
|
+
// Transition leniency (DECAF-50 §4.8/§4.9/§4.18): placeholder manifests
|
|
180
|
+
// created for legacy executor-only registrations accept undeclared
|
|
181
|
+
// parameters and unknown outputs until cutover (P7).
|
|
182
|
+
policies: {
|
|
183
|
+
allowUndeclaredParameters: true,
|
|
184
|
+
allowUnknownOutputs: true,
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
this.entries.set(kind, {
|
|
188
|
+
registration: { manifest, executor },
|
|
189
|
+
methods: new GraphNodeMethodRegistry_js_1.GraphNodeMethodRegistry(kind, [], {}),
|
|
190
|
+
placeholderManifest: true,
|
|
191
|
+
});
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
/** Removes a kind registration. */
|
|
195
|
+
unregister(kind) {
|
|
196
|
+
this.entries.delete(kind);
|
|
197
|
+
return this;
|
|
198
|
+
}
|
|
199
|
+
/** Whether a kind is registered. */
|
|
200
|
+
has(kind) {
|
|
201
|
+
return this.entries.has(kind);
|
|
202
|
+
}
|
|
203
|
+
entry(kind) {
|
|
204
|
+
const entry = this.entries.get(kind);
|
|
205
|
+
if (!entry) {
|
|
206
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeNotFoundError(`No graph node kind '${kind}' is registered in the catalogue`);
|
|
207
|
+
}
|
|
208
|
+
return entry;
|
|
209
|
+
}
|
|
210
|
+
/** Returns a JSON-safe clone of the kind's registered manifest. */
|
|
211
|
+
getManifest(kind) {
|
|
212
|
+
return (0, graph_1.cloneGraphJsonValue)(this.entry(kind).registration.manifest);
|
|
213
|
+
}
|
|
214
|
+
/** Returns the kind's registered executor. */
|
|
215
|
+
getExecutor(kind) {
|
|
216
|
+
return this.entry(kind).registration.executor;
|
|
217
|
+
}
|
|
218
|
+
/** Returns the declared method manifest for a kind, if declared. */
|
|
219
|
+
getMethodDeclaration(kind, method) {
|
|
220
|
+
return this.entry(kind).methods.getDeclaration(method);
|
|
221
|
+
}
|
|
222
|
+
/** Returns the registered method implementation for a kind. */
|
|
223
|
+
getMethod(kind, method) {
|
|
224
|
+
this.entry(kind).methods.getDeclaration(method);
|
|
225
|
+
return this.entry(kind).methods.get(method);
|
|
226
|
+
}
|
|
227
|
+
/** Lists all method declarations registered for a kind. */
|
|
228
|
+
listMethodDeclarations(kind) {
|
|
229
|
+
return this.entry(kind).methods.list();
|
|
230
|
+
}
|
|
231
|
+
/** Lists registered manifests, optionally filtered by kind and display category. */
|
|
232
|
+
listManifests(context) {
|
|
233
|
+
const kinds = [...this.entries.keys()].sort();
|
|
234
|
+
const categoryFilter = context?.categories?.length
|
|
235
|
+
? new Set(context.categories)
|
|
236
|
+
: undefined;
|
|
237
|
+
const kindFilter = context?.kinds?.length ? new Set(context.kinds) : undefined;
|
|
238
|
+
const manifests = [];
|
|
239
|
+
for (const kind of kinds) {
|
|
240
|
+
if (kindFilter && !kindFilter.has(kind))
|
|
241
|
+
continue;
|
|
242
|
+
const manifest = this.getManifest(kind);
|
|
243
|
+
if (categoryFilter && !categoryFilter.has(manifest.display.category ?? "")) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
manifests.push(manifest);
|
|
247
|
+
}
|
|
248
|
+
return manifests;
|
|
249
|
+
}
|
|
250
|
+
/** Lists all registered kinds, sorted. */
|
|
251
|
+
listKinds() {
|
|
252
|
+
return [...this.entries.keys()].sort();
|
|
253
|
+
}
|
|
254
|
+
/** Number of registered kinds. */
|
|
255
|
+
get size() {
|
|
256
|
+
return this.entries.size;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Resolves the effective manifest for a node instance (dynamic ports
|
|
260
|
+
* expanded, instance context applied) as a
|
|
261
|
+
* {@link GraphResolvedNodeManifest}.
|
|
262
|
+
*/
|
|
263
|
+
async resolveManifest(kind, instance, context) {
|
|
264
|
+
const entry = this.entry(kind);
|
|
265
|
+
return this.resolver.resolve(kind, entry.registration.manifest, entry.registration.resolveManifest, instance, context);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
exports.GraphNodeCatalogue = GraphNodeCatalogue;
|
|
269
|
+
//# sourceMappingURL=GraphNodeCatalogue.js.map
|
|
270
|
+
//# sourceMappingURL=GraphNodeCatalogue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/catalog/GraphNodeCatalogue.cjs","sourceRoot":"","sources":["graph/engine/catalog/GraphNodeCatalogue.js"],"names":[],"mappings":";;;AAAA,yDAA2L;AAC3L,uEAAgG;AAChG,6EAAuE;AACvE,iFAA2E;AAC3E,MAAM,wBAAwB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AACnE,SAAS,sBAAsB,CAAC,KAAK;IACjC,OAAO,wBAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AACD,SAAS,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;IACtC,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,IAAI,oDAA0B,CAAC,sBAAsB,IAAI,WAAW,KAAK,wBAAwB,CAAC,CAAC;IAC7G,CAAC;IACD,IAAI,IAAA,8BAAsB,EAAC,EAAE,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,oDAA0B,CAAC,sBAAsB,IAAI,WAAW,KAAK,yBAAyB,EAAE,GAAG,CAAC,CAAC;IACnH,CAAC;AACL,CAAC;AACD,SAAS,mBAAmB,CAAC,IAAI,EAAE,QAAQ;IACvC,MAAM,OAAO,GAAG;QACZ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC;QAC1B,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC;QAC5B,CA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EAAE,CAAC;gBACzE,SAAS;YACb,CAAC;YACD,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,0CAA0C;IAC1C,SAAS;QACL,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3C,CAAC;IACD,kCAAkC;IAClC,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC7B,CAAC;IACD;;;;OAIG;IACH,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO;QACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC3H,CAAC;CACJ;AAvJD,gDAuJC;AACD,8CAA8C"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphNodeManifestResolver = void 0;
|
|
4
|
+
exports.resolveGraphDynamicPorts = resolveGraphDynamicPorts;
|
|
5
|
+
exports.resolveGraphNodeManifest = resolveGraphNodeManifest;
|
|
6
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
7
|
+
const graph_2 = require("@decaf-ts/ui-decorators/graph");
|
|
8
|
+
const GraphCatalogueErrors_js_1 = require("./GraphCatalogueErrors.cjs");
|
|
9
|
+
function readItemPath(item, path) {
|
|
10
|
+
if (!path)
|
|
11
|
+
return undefined;
|
|
12
|
+
let current = item;
|
|
13
|
+
for (const segment of path.split(".")) {
|
|
14
|
+
if (!current || typeof current !== "object")
|
|
15
|
+
return undefined;
|
|
16
|
+
current = current[segment];
|
|
17
|
+
}
|
|
18
|
+
return current;
|
|
19
|
+
}
|
|
20
|
+
function expandPortIdTemplate(template, values) {
|
|
21
|
+
return template
|
|
22
|
+
.replaceAll("${id}", values.id)
|
|
23
|
+
.replaceAll("${index}", String(values.index))
|
|
24
|
+
.replaceAll("${label}", values.label);
|
|
25
|
+
}
|
|
26
|
+
function dynamicPortIdFor(rule, item, index) {
|
|
27
|
+
const rawId = readItemPath(item, rule.itemIdPath);
|
|
28
|
+
const rawLabel = rule.itemLabelPath
|
|
29
|
+
? readItemPath(item, rule.itemLabelPath)
|
|
30
|
+
: undefined;
|
|
31
|
+
const id = (typeof rawId === "string" && rawId) ||
|
|
32
|
+
(typeof rawId === "number" && Number.isFinite(rawId) && String(rawId)) ||
|
|
33
|
+
String(index);
|
|
34
|
+
const label = typeof rawLabel === "string" ? rawLabel : undefined;
|
|
35
|
+
return { id, label };
|
|
36
|
+
}
|
|
37
|
+
function dynamicPortTargets(resolution, direction) {
|
|
38
|
+
switch (direction) {
|
|
39
|
+
case "input":
|
|
40
|
+
return resolution.inputs;
|
|
41
|
+
case "output":
|
|
42
|
+
return resolution.outputs;
|
|
43
|
+
default:
|
|
44
|
+
return resolution.connections;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Expands a manifest's `dynamicPorts` rules (DECAF-50 §4.11) against the
|
|
49
|
+
* given parameter values — e.g. `repeatFromParameter` turns each array item
|
|
50
|
+
* into a concrete port with a templated id/label. Static ports are never
|
|
51
|
+
* duplicated; expanded ports are appended per direction.
|
|
52
|
+
*/
|
|
53
|
+
function resolveGraphDynamicPorts(manifest, parameters) {
|
|
54
|
+
const resolution = {
|
|
55
|
+
inputs: [],
|
|
56
|
+
outputs: [],
|
|
57
|
+
connections: [],
|
|
58
|
+
};
|
|
59
|
+
const seen = {
|
|
60
|
+
input: new Set((manifest.inputs ?? []).map((port) => port.id)),
|
|
61
|
+
output: new Set((manifest.outputs ?? []).map((port) => port.id)),
|
|
62
|
+
connection: new Set((manifest.connections ?? []).map((port) => port.id)),
|
|
63
|
+
};
|
|
64
|
+
const claim = (direction, portId) => {
|
|
65
|
+
const taken = seen[direction];
|
|
66
|
+
if (taken.has(portId))
|
|
67
|
+
return false;
|
|
68
|
+
taken.add(portId);
|
|
69
|
+
return true;
|
|
70
|
+
};
|
|
71
|
+
for (const rule of manifest.dynamicPorts ?? []) {
|
|
72
|
+
if (rule.type === "repeatFromParameter") {
|
|
73
|
+
const value = parameters[rule.parameter];
|
|
74
|
+
if (!Array.isArray(value))
|
|
75
|
+
continue;
|
|
76
|
+
const targets = dynamicPortTargets(resolution, rule.direction);
|
|
77
|
+
value.forEach((item, index) => {
|
|
78
|
+
const { id, label } = dynamicPortIdFor(rule, item, index);
|
|
79
|
+
const portId = expandPortIdTemplate(rule.portIdTemplate, {
|
|
80
|
+
id,
|
|
81
|
+
index,
|
|
82
|
+
label: label ?? id,
|
|
83
|
+
});
|
|
84
|
+
if (!claim(rule.direction, portId))
|
|
85
|
+
return;
|
|
86
|
+
const base = rule.defaultPort
|
|
87
|
+
? (0, graph_1.cloneGraphJsonValue)(rule.defaultPort)
|
|
88
|
+
: {
|
|
89
|
+
id: portId,
|
|
90
|
+
label: label ?? portId,
|
|
91
|
+
direction: rule.direction,
|
|
92
|
+
};
|
|
93
|
+
const port = base;
|
|
94
|
+
port.id = portId;
|
|
95
|
+
port.direction = rule.direction;
|
|
96
|
+
if (label)
|
|
97
|
+
port.label = label;
|
|
98
|
+
targets.push(port);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
else if (rule.type === "togglePort") {
|
|
102
|
+
const value = parameters[rule.parameter];
|
|
103
|
+
if (value !== rule.equals)
|
|
104
|
+
continue;
|
|
105
|
+
const port = (0, graph_1.cloneGraphJsonValue)(rule.port);
|
|
106
|
+
if (!claim(port.direction, port.id))
|
|
107
|
+
continue;
|
|
108
|
+
dynamicPortTargets(resolution, port.direction).push(port);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return resolution;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Resolves a manifest against parameter values into a
|
|
115
|
+
* {@link GraphResolvedNodeManifest}: static ports plus expanded dynamic
|
|
116
|
+
* ports, with credentials/capabilities/policies/metadata carried over. The
|
|
117
|
+
* result is a JSON-safe clone.
|
|
118
|
+
*/
|
|
119
|
+
function resolveGraphNodeManifest(manifest, parameters) {
|
|
120
|
+
const dynamic = resolveGraphDynamicPorts(manifest, parameters);
|
|
121
|
+
const resolved = {
|
|
122
|
+
kind: manifest.kind,
|
|
123
|
+
display: manifest.display,
|
|
124
|
+
inputs: [...manifest.inputs, ...dynamic.inputs],
|
|
125
|
+
outputs: [...manifest.outputs, ...dynamic.outputs],
|
|
126
|
+
parameters: manifest.parameters,
|
|
127
|
+
};
|
|
128
|
+
const connections = [
|
|
129
|
+
...(manifest.connections ?? []),
|
|
130
|
+
...dynamic.connections,
|
|
131
|
+
];
|
|
132
|
+
if (connections.length)
|
|
133
|
+
resolved.connections = connections;
|
|
134
|
+
if (manifest.dynamicPorts?.length)
|
|
135
|
+
resolved.dynamicPorts = manifest.dynamicPorts;
|
|
136
|
+
if (manifest.credentials?.length)
|
|
137
|
+
resolved.credentials = manifest.credentials;
|
|
138
|
+
if (manifest.capabilities?.length)
|
|
139
|
+
resolved.capabilities = manifest.capabilities;
|
|
140
|
+
if (manifest.policies)
|
|
141
|
+
resolved.policies = manifest.policies;
|
|
142
|
+
if (manifest.metadata)
|
|
143
|
+
resolved.metadata = manifest.metadata;
|
|
144
|
+
return (0, graph_1.cloneGraphJsonValue)(resolved);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Resolves the effective manifest for a node instance. Prefers the
|
|
148
|
+
* registration's `resolveManifest` provider (validated for shape and JSON
|
|
149
|
+
* safety) and falls back to static-plus-dynamic resolution via
|
|
150
|
+
* {@link resolveGraphNodeManifest}.
|
|
151
|
+
*/
|
|
152
|
+
class GraphNodeManifestResolver {
|
|
153
|
+
async resolve(kind, manifest, provider, instance, context) {
|
|
154
|
+
if (provider) {
|
|
155
|
+
const resolved = await provider(instance, context);
|
|
156
|
+
if (!(0, graph_2.isGraphResolvedNodeManifest)(resolved)) {
|
|
157
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`resolveManifest provider for kind '${kind}' returned a value that does not conform to GraphResolvedNodeManifest`);
|
|
158
|
+
}
|
|
159
|
+
if (!(0, graph_1.isGraphJsonSafeValue)(resolved)) {
|
|
160
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`resolveManifest provider for kind '${kind}' returned a non-JSON-safe resolved manifest`);
|
|
161
|
+
}
|
|
162
|
+
return (0, graph_1.cloneGraphJsonValue)(resolved);
|
|
163
|
+
}
|
|
164
|
+
return resolveGraphNodeManifest(manifest, instance.parameters ?? {});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.GraphNodeManifestResolver = GraphNodeManifestResolver;
|
|
168
|
+
//# sourceMappingURL=GraphNodeManifestResolver.js.map
|
|
169
|
+
//# sourceMappingURL=GraphNodeManifestResolver.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/catalog/GraphNodeManifestResolver.cjs","sourceRoot":"","sources":["graph/engine/catalog/GraphNodeManifestResolver.js"],"names":[],"mappings":";;;AA+CA,4DA2DC;AAOD,4DA0BC;AA3ID,yDAA2F;AAC3F,yDAA4E;AAC5E,uEAAuE;AACvE,SAAS,YAAY,CAAC,IAAI,EAAE,IAAI;IAC5B,IAAI,CAAC,IAAI;QACL,OAAO,SAAS,CAAC;IACrB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACpC,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ;YACvC,OAAO,S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AC,YAAY,CAAC;IAClD,IAAI,QAAQ,CAAC,QAAQ;QACjB,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAC1C,IAAI,QAAQ,CAAC,QAAQ;QACjB,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAC1C,OAAO,IAAA,2BAAmB,EAAC,QAAQ,CAAC,CAAC;AACzC,CAAC;AACD;;;;;GAKG;AACH,MAAa,yBAAyB;IAClC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO;QACrD,IAAI,QAAQ,EAAE,CAAC;YACX,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACnD,IAAI,CAAC,IAAA,mCAA2B,EAAC,QAAQ,CAAC,EAAE,CAAC;gBACzC,MAAM,IAAI,oDAA0B,CAAC,sCAAsC,IAAI,uEAAuE,CAAC,CAAC;YAC5J,CAAC;YACD,IAAI,CAAC,IAAA,4BAAoB,EAAC,QAAQ,CAAC,EAAE,CAAC;gBAClC,MAAM,IAAI,oDAA0B,CAAC,sCAAsC,IAAI,8CAA8C,CAAC,CAAC;YACnI,CAAC;YACD,OAAO,IAAA,2BAAmB,EAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;CACJ;AAdD,8DAcC;AACD,qDAAqD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphNodeMethodRegistry = void 0;
|
|
4
|
+
const GraphCatalogueErrors_js_1 = require("./GraphCatalogueErrors.cjs");
|
|
5
|
+
/**
|
|
6
|
+
* Per-kind registry of declared node methods (DECAF-50 §4.12): validates at
|
|
7
|
+
* construction that every declared method has an implementation and no
|
|
8
|
+
* implementation exists without a declaration, then serves declarations and
|
|
9
|
+
* implementations by name.
|
|
10
|
+
*/
|
|
11
|
+
class GraphNodeMethodRegistry {
|
|
12
|
+
constructor(kind, declared, provided = {}) {
|
|
13
|
+
this.kind = kind;
|
|
14
|
+
this.declarations = new Map();
|
|
15
|
+
this.implementations = new Map();
|
|
16
|
+
for (const declaration of declared) {
|
|
17
|
+
if (typeof declaration?.name !== "string" || !declaration.name) {
|
|
18
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Method declaration for kind '${this.kind}' is missing a name`);
|
|
19
|
+
}
|
|
20
|
+
if (this.declarations.has(declaration.name)) {
|
|
21
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Kind '${this.kind}' declares duplicate method '${declaration.name}'`);
|
|
22
|
+
}
|
|
23
|
+
this.declarations.set(declaration.name, declaration);
|
|
24
|
+
}
|
|
25
|
+
for (const [name, implementation] of Object.entries(provided)) {
|
|
26
|
+
if (typeof implementation !== "function") {
|
|
27
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Method implementation '${name}' for kind '${this.kind}' is not a function`);
|
|
28
|
+
}
|
|
29
|
+
if (!this.declarations.has(name)) {
|
|
30
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Kind '${this.kind}' implements method '${name}' which is not declared by its manifest`);
|
|
31
|
+
}
|
|
32
|
+
this.implementations.set(name, implementation);
|
|
33
|
+
}
|
|
34
|
+
for (const name of this.declarations.keys()) {
|
|
35
|
+
if (!this.implementations.has(name)) {
|
|
36
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeRegistrationError(`Kind '${this.kind}' declares method '${name}' with no implementation`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** Whether a method with the given name is declared. */
|
|
41
|
+
has(name) {
|
|
42
|
+
return this.declarations.has(name);
|
|
43
|
+
}
|
|
44
|
+
/** Returns the method's declaration; throws {@link GraphNodeMethodNotFoundError} when undeclared. */
|
|
45
|
+
getDeclaration(name) {
|
|
46
|
+
const declaration = this.declarations.get(name);
|
|
47
|
+
if (!declaration) {
|
|
48
|
+
throw new GraphCatalogueErrors_js_1.GraphNodeMethodNotFoundError(`Kind '${this.kind}' does not declare method '${name}'`);
|
|
49
|
+
}
|
|
50
|
+
return declaration;
|
|
51
|
+
}
|
|
52
|
+
/** Returns the method's implementation (asserting it is declared first). */
|
|
53
|
+
get(name) {
|
|
54
|
+
this.getDeclaration(name);
|
|
55
|
+
return this.implementations.get(name);
|
|
56
|
+
}
|
|
57
|
+
/** Lists all declarations, sorted by method name. */
|
|
58
|
+
list() {
|
|
59
|
+
return [...this.declarations.values()].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.GraphNodeMethodRegistry = GraphNodeMethodRegistry;
|
|
63
|
+
//# sourceMappingURL=GraphNodeMethodRegistry.js.map
|
|
64
|
+
//# sourceMappingURL=GraphNodeMethodRegistry.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/catalog/GraphNodeMethodRegistry.cjs","sourceRoot":"","sources":["graph/engine/catalog/GraphNodeMethodRegistry.js"],"names":[],"mappings":";;;AAAA,uEAAsG;AACtG;;;;;GAKG;AACH,MAAa,uBAAuB;IAChC,YAAY,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAG,EAAE;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC;QACjC,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,CAAC;YACjC,IAAI,OAAO,WAAW,EAAE,IAAI,KAAK,QAAQ,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;gB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,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IACD,qGAAqG;IACrG,cAAc,CAAC,IAAI;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,MAAM,IAAI,sDAA4B,CAAC,SAAS,IAAI,CAAC,IAAI,8BAA8B,IAAI,GAAG,CAAC,CAAC;QACpG,CAAC;QACD,OAAO,WAAW,CAAC;IACvB,CAAC;IACD,4EAA4E;IAC5E,GAAG,CAAC,IAAI;QACJ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IACD,qDAAqD;IACrD,IAAI;QACA,OAAO,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,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,CAAC,CAAC;IAC1G,CAAC;CACJ;AAlDD,0DAkDC;AACD,mDAAmD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineGraphNode = defineGraphNode;
|
|
4
|
+
exports.declaredGraphNodeMethods = declaredGraphNodeMethods;
|
|
5
|
+
/**
|
|
6
|
+
* Identity helper that types a registration payload as a
|
|
7
|
+
* {@link GraphNodeRegistration} for catalogue registration.
|
|
8
|
+
*/
|
|
9
|
+
function defineGraphNode(registration) {
|
|
10
|
+
return registration;
|
|
11
|
+
}
|
|
12
|
+
/** Returns the method manifests declared by a node manifest. */
|
|
13
|
+
function declaredGraphNodeMethods(manifest) {
|
|
14
|
+
return manifest.methods ?? [];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=GraphNodeRegistration.js.map
|
|
17
|
+
//# sourceMappingURL=GraphNodeRegistration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/catalog/GraphNodeRegistration.cjs","sourceRoot":"","sources":["graph/engine/catalog/GraphNodeRegistration.js"],"names":[],"mappings":";;AAIA,0CAEC;AAED,4DAEC;AAVD;;;GAGG;AACH,SAAgB,eAAe,CAAC,YAAY;IACxC,OAAO,YAAY,CAAC;AACxB,CAAC;AACD,gEAAgE;AAChE,SAAgB,wBAAwB,CAAC,QAAQ;IAC7C,OAAO,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;AAClC,CAAC;AACD,iDAAiD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GraphCatalogueErrors.cjs"), exports);
|
|
18
|
+
__exportStar(require("./GraphNodeRegistration.cjs"), exports);
|
|
19
|
+
__exportStar(require("./GraphNodeMethodRegistry.cjs"), exports);
|
|
20
|
+
__exportStar(require("./GraphNodeManifestResolver.cjs"), exports);
|
|
21
|
+
__exportStar(require("./GraphNodeCatalogue.cjs"), exports);
|
|
22
|
+
__exportStar(require("./GraphBuiltInRegistrations.cjs"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/catalog/index.cjs","sourceRoot":"","sources":["graph/engine/catalog/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,iCAAiC"}
|
|
@@ -6,8 +6,8 @@ exports.GRAPH_LOOP_KIND = exports.GraphConditionType = exports.GraphPinningStrat
|
|
|
6
6
|
* @summary Graph execution engine-private constants and enums.
|
|
7
7
|
* @description Engine-only constants, default limits, and enumerations.
|
|
8
8
|
* Frontend-safe enums (`GraphExecutionStatus`, `GraphExecutionEventType`)
|
|
9
|
-
* live in
|
|
10
|
-
* there and engine-private symbols from here.
|
|
9
|
+
* live in `@decaf-ts/ui-decorators/graph`; engine modules import shared
|
|
10
|
+
* symbols from there and engine-private symbols from here.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Boundary identifier used as the node id for workflow-level input/output ports.
|
|
@@ -20,6 +20,7 @@ class GraphExecutionError extends db_decorators_1.InternalError {
|
|
|
20
20
|
super(message, GraphExecutionError.name, 500);
|
|
21
21
|
this.graphCode = graphCode;
|
|
22
22
|
this.details = details;
|
|
23
|
+
this.name = this.constructor.name;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
exports.GraphExecutionError = GraphExecutionError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/errors/GraphExecutionError.cjs","sourceRoot":"","sources":["graph/engine/errors/GraphExecutionError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,2DAAwD;AACxD;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,6BAAa;IAClD,YAAY,OAAO,EAAE,SAAS,GAAG,uBAAuB,EAAE,OAAO;QAC7D,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":"graph/engine/errors/GraphExecutionError.cjs","sourceRoot":"","sources":["graph/engine/errors/GraphExecutionError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,2DAAwD;AACxD;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,6BAAa;IAClD,YAAY,OAAO,EAAE,SAAS,GAAG,uBAAuB,EAAE,OAAO;QAC7D,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;IACtC,CAAC;CACJ;AAPD,kDAOC;AACD,+CAA+C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphRunCancelledError = void 0;
|
|
4
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
5
|
+
/**
|
|
6
|
+
* Thrown when a graph run is cancelled before completion: carries the run id
|
|
7
|
+
* under the `GRAPH_RUN_CANCELLED` code so run lifecycle bookkeeping can
|
|
8
|
+
* distinguish cancellation from failure.
|
|
9
|
+
*/
|
|
10
|
+
class GraphRunCancelledError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
11
|
+
constructor(runId) {
|
|
12
|
+
super(`Graph run '${runId}' was cancelled`, "GRAPH_RUN_CANCELLED", { runId });
|
|
13
|
+
this.name = GraphRunCancelledError.name;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.GraphRunCancelledError = GraphRunCancelledError;
|
|
17
|
+
//# sourceMappingURL=GraphRunCancelledError.js.map
|
|
18
|
+
//# sourceMappingURL=GraphRunCancelledError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/errors/GraphRunCancelledError.cjs","sourceRoot":"","sources":["graph/engine/errors/GraphRunCancelledError.js"],"names":[],"mappings":";;;AAAA,qEAA+D;AAC/D;;;;GAIG;AACH,MAAa,sBAAuB,SAAQ,4CAAmB;IAC3D,YAAY,KAAK;QACb,KAAK,CAAC,cAAc,KAAK,iBAAiB,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9E,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC;IAC5C,CAAC;CACJ;AALD,wDAKC;AACD,kDAAkD"}
|
|
@@ -28,5 +28,6 @@ __exportStar(require("./GraphPortError.cjs"), exports);
|
|
|
28
28
|
__exportStar(require("./GraphStoreError.cjs"), exports);
|
|
29
29
|
__exportStar(require("./GraphTopologyError.cjs"), exports);
|
|
30
30
|
__exportStar(require("./GraphBreakSignal.cjs"), exports);
|
|
31
|
+
__exportStar(require("./GraphRunCancelledError.cjs"), exports);
|
|
31
32
|
//# sourceMappingURL=index.js.map
|
|
32
33
|
//# sourceMappingURL=index.cjs.map
|