@decaf-ts/integrations 0.8.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 +2 -2
- 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 +55 -5
- package/lib/cjs/sftp/aws/AwsSftpService.cjs.map +1 -1
- 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 +10 -0
- package/lib/cjs/sftp/core/SftpSource.cjs.map +1 -1
- package/lib/cjs/sftp/core/index.cjs +1 -0
- package/lib/cjs/sftp/core/index.cjs.map +1 -1
- package/lib/cjs/sftp/index.cjs +3 -0
- package/lib/cjs/sftp/index.cjs.map +1 -1
- 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 +46 -5
- package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs.map +1 -1
- 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 +2 -2
- 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 +52 -6
- package/lib/esm/sftp/aws/AwsSftpService.js.map +1 -1
- 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 +12 -2
- package/lib/esm/sftp/core/SftpSource.js.map +1 -1
- package/lib/esm/sftp/core/index.js +1 -0
- package/lib/esm/sftp/core/index.js.map +1 -1
- package/lib/esm/sftp/index.js +3 -0
- package/lib/esm/sftp/index.js.map +1 -1
- 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 +43 -6
- package/lib/esm/sftp/ssh2/Ssh2SftpService.js.map +1 -1
- 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 +1 -0
- package/lib/types/sftp/aws/AwsSftpService.d.mts +1 -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 +7 -0
- package/lib/types/sftp/core/SftpSource.d.mts +7 -0
- package/lib/types/sftp/core/index.d.cts +1 -0
- package/lib/types/sftp/core/index.d.mts +1 -0
- package/lib/types/sftp/index.d.cts +3 -0
- package/lib/types/sftp/index.d.mts +3 -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 +1 -0
- package/lib/types/sftp/ssh2/Ssh2SftpService.d.mts +1 -0
- package/lib/types/shared/environmentValue.d.cts +16 -0
- package/lib/types/shared/environmentValue.d.mts +16 -0
- package/package.json +6 -16
- 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
|
@@ -10,19 +10,43 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @module integrations/nest/graph/GraphExecutionController
|
|
15
|
+
* @summary Legacy synchronous graph execution surface (SAA-595).
|
|
16
|
+
* @description The deprecated `POST /graph/execute` endpoint, the deprecated
|
|
17
|
+
* global `SSE /graph/events` stream, plus the run-result read and workflow
|
|
18
|
+
* persistence endpoints. All execution now flows through
|
|
19
|
+
* {@link GraphRunService}; only canonical documents are accepted (inline
|
|
20
|
+
* node/definition/executor/ports/component fields are rejected at the
|
|
21
|
+
* boundary) and the global stream is disabled unless explicitly enabled.
|
|
22
|
+
*/
|
|
23
|
+
import { Controller, Post, Put, Get, Body, Param, Sse, Optional, Inject, NotFoundException, HttpException, HttpStatus, } from "@nestjs/common";
|
|
14
24
|
import { Subject, Observable } from "rxjs";
|
|
15
|
-
import {
|
|
16
|
-
import { GraphExecutionEngine, } from "./../../graph/index.js";
|
|
25
|
+
import { concatMap, filter } from "rxjs/operators";
|
|
26
|
+
import { GraphExecutionEngine, GraphRunService, } from "./../../graph/index.js";
|
|
27
|
+
import { isGraphWorkflowDocumentShape, } from "@decaf-ts/ui-decorators/graph";
|
|
28
|
+
import { ValidationError, NotFoundError } from "@decaf-ts/db-decorators";
|
|
29
|
+
import { AuthorizationError, ForbiddenError } from "@decaf-ts/core";
|
|
17
30
|
import { DecafRequestContext } from "@decaf-ts/for-nest";
|
|
18
31
|
import { GraphResultService } from "./GraphResultService.js";
|
|
19
|
-
import { GraphWorkflowService } from "./GraphWorkflowService.js";
|
|
32
|
+
import { GraphWorkflowService, graphWorkflowOwnerOf } from "./GraphWorkflowService.js";
|
|
33
|
+
/** DI token for {@link GraphExecutionControllerOptions}. */
|
|
34
|
+
export const GRAPH_EXECUTION_OPTIONS = "GRAPH_EXECUTION_OPTIONS";
|
|
35
|
+
/**
|
|
36
|
+
* Legacy synchronous graph execution surface (DECAF-50 §4.14/§4.18): the
|
|
37
|
+
* `POST /graph/execute` endpoint (deprecated in favour of the run lifecycle
|
|
38
|
+
* at `POST /graph/runs`), the legacy `PUT /graph/:id/execute` alias, and the
|
|
39
|
+
* deprecated global SSE event stream. All execution now flows through
|
|
40
|
+
* {@link GraphRunService}; only canonical documents are accepted.
|
|
41
|
+
*/
|
|
20
42
|
let GraphExecutionController = class GraphExecutionController {
|
|
21
|
-
constructor(engine, resultService, workflowService, requestContext) {
|
|
43
|
+
constructor(engine, resultService, workflowService, runService, requestContext, options = {}) {
|
|
22
44
|
this.engine = engine;
|
|
23
45
|
this.resultService = resultService;
|
|
24
46
|
this.workflowService = workflowService;
|
|
47
|
+
this.runService = runService;
|
|
25
48
|
this.requestContext = requestContext;
|
|
49
|
+
this.options = options;
|
|
26
50
|
this.eventSubject = new Subject();
|
|
27
51
|
this.engine.observe({
|
|
28
52
|
refresh: async (event) => {
|
|
@@ -30,22 +54,67 @@ let GraphExecutionController = class GraphExecutionController {
|
|
|
30
54
|
},
|
|
31
55
|
});
|
|
32
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated DECAF-50 §4.14/§4.18 cutover: the synchronous execution
|
|
59
|
+
* endpoint is deprecated in favour of the asynchronous run lifecycle
|
|
60
|
+
* (`POST /graph/runs`). It is kept, not removed, within this
|
|
61
|
+
* specification. Only canonical {@link GraphWorkflowDocument} payloads are
|
|
62
|
+
* accepted; legacy definition/snapshot payloads and inline
|
|
63
|
+
* node/definition/executor/ports/component fields are rejected (§4.16).
|
|
64
|
+
*/
|
|
33
65
|
async execute(body) {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
66
|
+
const document = this.requireCanonicalDocument(body.workflow);
|
|
67
|
+
const owner = graphWorkflowOwnerOf(this.requestContext) ?? null;
|
|
68
|
+
const run = await this.runService.executeAndWait({ workflow: document, inputs: body.inputs ?? {} }, owner, this.concurrencyKeyOf(owner), this.requestContext);
|
|
69
|
+
if (run.result) {
|
|
70
|
+
try {
|
|
71
|
+
await this.resultService.saveResult(run.result, this.requestContext);
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
// persistence failures must not mask a successful execution result
|
|
75
|
+
}
|
|
40
76
|
}
|
|
41
77
|
return {
|
|
42
|
-
runId:
|
|
43
|
-
status:
|
|
44
|
-
outputs: result
|
|
78
|
+
runId: run.runId,
|
|
79
|
+
status: run.status,
|
|
80
|
+
outputs: (run.result?.outputs ?? {}),
|
|
45
81
|
};
|
|
46
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* DECAF-50 §4.16 cutover: only a canonical {@link GraphWorkflowDocument}
|
|
85
|
+
* is accepted. Payloads resembling legacy decorated definitions, snapshot
|
|
86
|
+
* wrappers, or any other non-canonical shape are rejected with a Decaf
|
|
87
|
+
* {@link ValidationError} before the engine or planner sees them.
|
|
88
|
+
*/
|
|
89
|
+
requireCanonicalDocument(workflow) {
|
|
90
|
+
if (isGraphWorkflowDocumentShape(workflow)) {
|
|
91
|
+
return workflow;
|
|
92
|
+
}
|
|
93
|
+
throw new ValidationError("Execution payload must be a canonical GraphWorkflowDocument: legacy workflow definitions, snapshot wrappers and inline node/definition/executor/ports/component payloads are rejected; compile decorated workflows client-side via GraphDecoratedWorkflowCompiler or use POST /graph/runs");
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated DECAF-50 §4.15 cutover (SAA-595 F2): the global `/graph/events`
|
|
97
|
+
* stream is disabled by default — the run-scoped, authorized, replayable
|
|
98
|
+
* `GET /graph/runs/{runId}/events` transport is the canonical stream. Hosts
|
|
99
|
+
* with a residual transition need may re-enable it explicitly via
|
|
100
|
+
* {@link GraphExecutionControllerOptions.enableGlobalEventStream}; every
|
|
101
|
+
* event is then ownership-gated at emit: a connected caller only ever
|
|
102
|
+
* receives events for runs they own.
|
|
103
|
+
*/
|
|
47
104
|
events() {
|
|
48
|
-
|
|
105
|
+
if (this.options.enableGlobalEventStream !== true) {
|
|
106
|
+
throw new HttpException("The global graph event stream is disabled; use the run-scoped GET /graph/runs/{runId}/events transport", HttpStatus.NOT_FOUND);
|
|
107
|
+
}
|
|
108
|
+
const caller = graphWorkflowOwnerOf(this.requestContext) ?? null;
|
|
109
|
+
return this.eventSubject.asObservable().pipe(concatMap(async (event) => {
|
|
110
|
+
return (await this.callerOwnsRun(caller, event.runId))
|
|
111
|
+
? this.messageOf(event)
|
|
112
|
+
: null;
|
|
113
|
+
}), filter((message) => message !== null));
|
|
114
|
+
}
|
|
115
|
+
/** Encodes one engine event in the global stream's wire format: a `["graph", type, runId, envelope]` SSE message tuple. */
|
|
116
|
+
messageOf(event) {
|
|
117
|
+
return {
|
|
49
118
|
type: "message",
|
|
50
119
|
data: JSON.stringify([
|
|
51
120
|
"graph",
|
|
@@ -69,9 +138,32 @@ let GraphExecutionController = class GraphExecutionController {
|
|
|
69
138
|
timestamp: event.timestamp.toISOString(),
|
|
70
139
|
},
|
|
71
140
|
]),
|
|
72
|
-
}
|
|
141
|
+
};
|
|
73
142
|
}
|
|
143
|
+
/** Strict ownership gate for the global stream: only run owners see their runs' events. */
|
|
144
|
+
async callerOwnsRun(caller, runId) {
|
|
145
|
+
try {
|
|
146
|
+
const run = await this.runService.getRun(runId, caller, this.requestContext);
|
|
147
|
+
return (run.ownerUser ?? null) === caller;
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Reads a persisted execution result by run id (DECAF-50 §4.18). Gated
|
|
155
|
+
* through the centralized run ownership check first (SAA-595 F1): a
|
|
156
|
+
* cross-user or anonymous caller gets `403` for a run owned by another
|
|
157
|
+
* user before any result data is read.
|
|
158
|
+
*/
|
|
74
159
|
async getResult(runId) {
|
|
160
|
+
const owner = graphWorkflowOwnerOf(this.requestContext) ?? null;
|
|
161
|
+
try {
|
|
162
|
+
await this.runService.getRun(runId, owner, this.requestContext);
|
|
163
|
+
}
|
|
164
|
+
catch (e) {
|
|
165
|
+
throw graphExecutionHttpErrorOf(e, runId);
|
|
166
|
+
}
|
|
75
167
|
const model = await this.resultService.findByRunId(runId, this.requestContext);
|
|
76
168
|
if (!model) {
|
|
77
169
|
throw new NotFoundException(`No graph execution result found for runId '${runId}'`);
|
|
@@ -87,6 +179,13 @@ let GraphExecutionController = class GraphExecutionController {
|
|
|
87
179
|
finishedAt: model.finishedAt,
|
|
88
180
|
};
|
|
89
181
|
}
|
|
182
|
+
/** Concurrency-bucket key for the per-caller run cap: the owner, else the request IP, else a shared anonymous bucket. */
|
|
183
|
+
concurrencyKeyOf(owner) {
|
|
184
|
+
if (owner)
|
|
185
|
+
return owner;
|
|
186
|
+
const ip = this.requestContext?.request?.ip;
|
|
187
|
+
return ip ? `ip:${ip}` : "anonymous";
|
|
188
|
+
}
|
|
90
189
|
async saveWorkflow(id, snapshot) {
|
|
91
190
|
const model = await this.workflowService.saveSnapshot(id, snapshot, this.requestContext);
|
|
92
191
|
return { workflowId: id, savedAt: model.updatedAt.toISOString() };
|
|
@@ -122,12 +221,37 @@ __decorate([
|
|
|
122
221
|
], GraphExecutionController.prototype, "saveWorkflow", null);
|
|
123
222
|
GraphExecutionController = __decorate([
|
|
124
223
|
Controller("graph"),
|
|
125
|
-
__param(
|
|
126
|
-
__param(
|
|
224
|
+
__param(4, Optional()),
|
|
225
|
+
__param(4, Inject(DecafRequestContext)),
|
|
226
|
+
__param(5, Optional()),
|
|
227
|
+
__param(5, Inject(GRAPH_EXECUTION_OPTIONS)),
|
|
127
228
|
__metadata("design:paramtypes", [GraphExecutionEngine,
|
|
128
229
|
GraphResultService,
|
|
129
230
|
GraphWorkflowService,
|
|
130
|
-
|
|
231
|
+
GraphRunService,
|
|
232
|
+
DecafRequestContext, Object])
|
|
131
233
|
], GraphExecutionController);
|
|
132
234
|
export { GraphExecutionController };
|
|
235
|
+
/**
|
|
236
|
+
* Maps a thrown Decaf error to the Nest HTTP equivalent for the execution
|
|
237
|
+
* surface: ownership/authorization failures become `403` (naming the run),
|
|
238
|
+
* missing resources `404`, validation failures `400`, and anything else
|
|
239
|
+
* surfaces as `500` with its message. Nest {@link HttpException}s pass
|
|
240
|
+
* through unchanged.
|
|
241
|
+
*/
|
|
242
|
+
function graphExecutionHttpErrorOf(e, runId) {
|
|
243
|
+
if (e instanceof ForbiddenError || e instanceof AuthorizationError) {
|
|
244
|
+
return new HttpException(runId ? `Graph run '${runId}' is owned by another user` : e.message, HttpStatus.FORBIDDEN);
|
|
245
|
+
}
|
|
246
|
+
if (e instanceof NotFoundError) {
|
|
247
|
+
return new NotFoundException(e.message);
|
|
248
|
+
}
|
|
249
|
+
if (e instanceof ValidationError) {
|
|
250
|
+
return new HttpException(e.message, HttpStatus.BAD_REQUEST);
|
|
251
|
+
}
|
|
252
|
+
if (e instanceof HttpException)
|
|
253
|
+
return e;
|
|
254
|
+
const message = e instanceof Error ? e.message : String(e);
|
|
255
|
+
return new HttpException(message, HttpStatus.INTERNAL_SERVER_ERROR);
|
|
256
|
+
}
|
|
133
257
|
//# sourceMappingURL=GraphExecutionController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionController.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,IAAI,EACJ,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,GAAG,EAEH,QAAQ,EACR,MAAM,EACN,iBAAiB,
|
|
1
|
+
{"version":3,"file":"GraphExecutionController.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,UAAU,EACV,IAAI,EACJ,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,GAAG,EAEH,QAAQ,EACR,MAAM,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AAkB;QAChB,oBAAoB;QACzB,eAAe;QAC+B,mBAAmB;GARrF,wBAAwB,CAqMpC;;AAED;;;;;;GAMG;AACH,SAAS,yBAAyB,CAAC,CAAU,EAAE,KAAc;IAC3D,IAAI,CAAC,YAAY,cAAc,IAAI,CAAC,YAAY,kBAAkB,EAAE,CAAC;QACnE,OAAO,IAAI,aAAa,CACtB,KAAK,CAAC,CAAC,CAAC,cAAc,KAAK,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EACnE,UAAU,CAAC,SAAS,CACrB,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,YAAY,aAAa,EAAE,CAAC;QAC/B,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,CAAC,YAAY,eAAe,EAAE,CAAC;QACjC,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC9D,CAAC;IACD,IAAI,CAAC,YAAY,aAAa;QAAE,OAAO,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -5,16 +5,46 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
var GraphExecutionModule_1;
|
|
8
|
+
/**
|
|
9
|
+
* @module integrations/nest/graph/GraphExecutionModule
|
|
10
|
+
* @summary NestJS graph backend module wiring (DECAF-50 §4.10–§4.16).
|
|
11
|
+
* @description The dynamic module assembling the graph backend: the
|
|
12
|
+
* {@link GraphExecutionEngine}, the trusted {@link GraphNodeCatalogue} with
|
|
13
|
+
* built-in registrations, the run lifecycle services and stores, and the
|
|
14
|
+
* HTTP/SSE controllers (catalogue, workflows, runs, legacy execution) — each
|
|
15
|
+
* configurable with authentication enforcement and backend-enforced
|
|
16
|
+
* resource limits via {@link GraphExecutionModuleOptions}.
|
|
17
|
+
*/
|
|
8
18
|
import { Module } from "@nestjs/common";
|
|
9
|
-
import { GraphExecutionEngine } from "./../../graph/index.js";
|
|
19
|
+
import { GraphExecutionEngine, GraphNodeCatalogue, GraphRunService, InMemoryGraphRunEventStore, } from "./../../graph/index.js";
|
|
10
20
|
import { createDemoEngineConfig } from "./GraphExecutorRegistryFactory.js";
|
|
11
|
-
import { GraphExecutionController } from "./GraphExecutionController.js";
|
|
21
|
+
import { GraphExecutionController, GRAPH_EXECUTION_OPTIONS } from "./GraphExecutionController.js";
|
|
22
|
+
import { GraphNodeCatalogueController, GRAPH_CATALOGUE_CONTROLLER_OPTIONS, } from "./GraphNodeCatalogueController.js";
|
|
12
23
|
import { GraphResultService } from "./GraphResultService.js";
|
|
13
|
-
import {
|
|
24
|
+
import { GraphRunModelService } from "./GraphRunModelService.js";
|
|
25
|
+
import { GraphRunController, GRAPH_RUN_OPTIONS, } from "./GraphRunController.js";
|
|
26
|
+
import { GraphWorkflowService, GRAPH_WORKFLOW_OPTIONS, } from "./GraphWorkflowService.js";
|
|
27
|
+
import { GraphWorkflowController, } from "./GraphWorkflowController.js";
|
|
28
|
+
/**
|
|
29
|
+
* NestJS module wiring the graph execution stack (DECAF-50 §4.13–§4.16): the
|
|
30
|
+
* engine, catalogue, workflow persistence, run lifecycle/SSE controllers,
|
|
31
|
+
* and their services. Configure via {@link GraphExecutionModule.forRoot}.
|
|
32
|
+
*/
|
|
14
33
|
let GraphExecutionModule = GraphExecutionModule_1 = class GraphExecutionModule {
|
|
34
|
+
/**
|
|
35
|
+
* Creates the dynamic module. Boots a default RamAdapter for standalone
|
|
36
|
+
* development unless `initAdapter` is `false`. Wires the optional
|
|
37
|
+
* {@link GraphCredentialAuthorizer} into the engine's stage-8 validator
|
|
38
|
+
* (SAA-595 F8), and applies the workflow options to the
|
|
39
|
+
* {@link GraphWorkflowService} singleton via its {@link
|
|
40
|
+
* GraphWorkflowService.configure} method, since `@service` constructor
|
|
41
|
+
* injection does not forward provider options reliably.
|
|
42
|
+
*/
|
|
15
43
|
static forRoot(options = {}) {
|
|
16
44
|
const initAdapter = options.initAdapter ?? true;
|
|
17
45
|
const adapterUser = options.adapterUser ?? "graph-engine";
|
|
46
|
+
let engineConfig;
|
|
47
|
+
const sharedConfig = () => (engineConfig ??= createDemoEngineConfig());
|
|
18
48
|
const providers = [
|
|
19
49
|
{
|
|
20
50
|
provide: GraphExecutionEngine,
|
|
@@ -26,20 +56,77 @@ let GraphExecutionModule = GraphExecutionModule_1 = class GraphExecutionModule {
|
|
|
26
56
|
Adapter.setCurrent(RamFlavour);
|
|
27
57
|
new RamAdapter({ user: adapterUser });
|
|
28
58
|
}
|
|
29
|
-
const config =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
59
|
+
const config = sharedConfig();
|
|
60
|
+
return new GraphExecutionEngine(options.credentialAuthorizer
|
|
61
|
+
? { ...config, credentialAuthorizer: options.credentialAuthorizer }
|
|
62
|
+
: config);
|
|
33
63
|
},
|
|
34
64
|
},
|
|
65
|
+
{
|
|
66
|
+
provide: GraphNodeCatalogue,
|
|
67
|
+
useFactory: () => sharedConfig().catalogue,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
provide: GRAPH_CATALOGUE_CONTROLLER_OPTIONS,
|
|
71
|
+
useValue: options.catalogue ?? {},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
provide: GRAPH_WORKFLOW_OPTIONS,
|
|
75
|
+
useValue: (options.workflows ?? {}),
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
provide: GRAPH_RUN_OPTIONS,
|
|
79
|
+
useValue: (options.runs ?? {}),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
provide: GRAPH_EXECUTION_OPTIONS,
|
|
83
|
+
useValue: (options.execution ?? {}),
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
provide: InMemoryGraphRunEventStore,
|
|
87
|
+
useFactory: () => new InMemoryGraphRunEventStore(options.runs?.limits ?? {}),
|
|
88
|
+
},
|
|
35
89
|
GraphResultService,
|
|
36
|
-
|
|
90
|
+
GraphRunModelService,
|
|
91
|
+
{
|
|
92
|
+
provide: GraphWorkflowService,
|
|
93
|
+
useFactory: (workflowOptions) => new GraphWorkflowService().configure(workflowOptions),
|
|
94
|
+
inject: [GRAPH_WORKFLOW_OPTIONS],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
provide: GraphRunService,
|
|
98
|
+
useFactory: (engine, runStore, eventStore, workflowService) => new GraphRunService(engine, runStore, eventStore, {
|
|
99
|
+
limits: (options.runs?.limits ?? {}),
|
|
100
|
+
allowAnonymousAccess: options.runs?.allowAnonymousAccess === true,
|
|
101
|
+
documentResolver: {
|
|
102
|
+
resolve: async (workflowId, _ownerUser, ...args) => workflowService.getDocument(workflowId, ...args),
|
|
103
|
+
},
|
|
104
|
+
}),
|
|
105
|
+
inject: [
|
|
106
|
+
GraphExecutionEngine,
|
|
107
|
+
GraphRunModelService,
|
|
108
|
+
InMemoryGraphRunEventStore,
|
|
109
|
+
GraphWorkflowService,
|
|
110
|
+
],
|
|
111
|
+
},
|
|
37
112
|
];
|
|
38
113
|
return {
|
|
39
114
|
module: GraphExecutionModule_1,
|
|
40
|
-
controllers: [
|
|
115
|
+
controllers: [
|
|
116
|
+
GraphExecutionController,
|
|
117
|
+
GraphNodeCatalogueController,
|
|
118
|
+
GraphWorkflowController,
|
|
119
|
+
GraphRunController,
|
|
120
|
+
],
|
|
41
121
|
providers,
|
|
42
|
-
exports: [
|
|
122
|
+
exports: [
|
|
123
|
+
GraphExecutionEngine,
|
|
124
|
+
GraphNodeCatalogue,
|
|
125
|
+
GraphResultService,
|
|
126
|
+
GraphRunModelService,
|
|
127
|
+
GraphRunService,
|
|
128
|
+
GraphWorkflowService,
|
|
129
|
+
],
|
|
43
130
|
};
|
|
44
131
|
}
|
|
45
132
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionModule.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionModule.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAiB,MAAM,EAAY,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"GraphExecutionModule.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionModule.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;GASG;AACH,OAAO,EAAiB,MAAM,EAAY,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,0BAA0B,GAE3B,+BAAoB;AACrB,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAwC,sCAAmC;AACrI,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,GAEnC,0CAAuC;AACxC,OAAO,EAAE,kBAAkB,EAAE,gCAA6B;AAC1D,OAAO,EAAE,oBAAoB,EAAE,kCAA+B;AAC9D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAElB,gCAA6B;AAC9B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GAEvB,kCAA+B;AAChC,OAAO,EACL,uBAAuB,GAExB,qCAAkC;AAoDnC;;;;GAIG;AAEI,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAC/B;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CACZ,UAAuC,EAAE;QAEzC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,cAAc,CAAC;QAE1D,IAAI,YAAmE,CAAC;QACxE,MAA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ACrB;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtHY,oBAAoB;IADhC,MAAM,CAAC,EAAE,CAAC;GACE,oBAAoB,CAsHhC"}
|
|
@@ -9,6 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { model } from "@decaf-ts/decorator-validation";
|
|
11
11
|
import { BaseModel, column, pk, table } from "@decaf-ts/core";
|
|
12
|
+
/**
|
|
13
|
+
* Persisted terminal snapshot of one graph run (written by
|
|
14
|
+
* {@link GraphResultService} after the deprecated synchronous execute
|
|
15
|
+
* endpoint completes). Keyed by `runId`; the optional `owner` column (added
|
|
16
|
+
* by SAA-595 F1) records the run's owning user so result reads can be
|
|
17
|
+
* ownership-gated at the route layer.
|
|
18
|
+
*/
|
|
12
19
|
let GraphExecutionResultModel = class GraphExecutionResultModel extends BaseModel {
|
|
13
20
|
constructor(arg) {
|
|
14
21
|
super(arg);
|
|
@@ -22,6 +29,10 @@ __decorate([
|
|
|
22
29
|
column(),
|
|
23
30
|
__metadata("design:type", String)
|
|
24
31
|
], GraphExecutionResultModel.prototype, "workflowId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
column(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], GraphExecutionResultModel.prototype, "owner", void 0);
|
|
25
36
|
__decorate([
|
|
26
37
|
column(),
|
|
27
38
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutionResultModel.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionResultModel.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"GraphExecutionResultModel.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutionResultModel.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;;GAMG;AAGI,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,SAAS;IAgCtD,YAAY,GAAwC;QAClD,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF,CAAA;AAjCC;IADC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;wDACxB;AAGf;IADC,MAAM,EAAE;;6DACW;AAOpB;IADC,MAAM,EAAE;;wDACM;AAGf;IADC,MAAM,EAAE;;yDACO;AAGhB;IADC,MAAM,EAAE;;yDACwB;AAGjC;IADC,MAAM,EAAE;;0DACyB;AAGlC;IADC,MAAM,EAAE;;8DAC6B;AAGtC;IADC,MAAM,EAAE;8BACG,IAAI;4DAAC;AAGjB;IADC,MAAM,EAAE;8BACI,IAAI;6DAAC;AA9BP,yBAAyB;IAFrC,KAAK,CAAC,wBAAwB,CAAC;IAC/B,KAAK,EAAE;;GACK,yBAAyB,CAmCrC"}
|
|
@@ -1,72 +1,78 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module integrations/nest/graph/GraphExecutorRegistryFactory
|
|
3
|
-
* @summary Factory that builds a populated {@link
|
|
4
|
-
* @
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
3
|
+
* @summary Factory that builds a populated {@link GraphNodeCatalogue} and its
|
|
4
|
+
* {@link GraphNodeExecutorRegistry} compatibility facade.
|
|
5
|
+
* @description Creates a catalogue pre-loaded with the DECAF-50 built-in
|
|
6
|
+
* manifest+executor registrations plus the demo executors used by the graph
|
|
7
|
+
* execution backend's sample workflows. The catalogue is the single
|
|
8
|
+
* kind→registration map (DECAF-50 §4.7); the returned registry is a facade
|
|
9
|
+
* over it, so no second executor map exists.
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"core.flow.return": (input) => ({ result: input["value"] ?? input }),
|
|
19
|
-
"core.flow.merge": (input) => ({ merged: input["values"] ?? input }),
|
|
20
|
-
"core.flow.if": (input) => ({ then: input["value"] ?? input }),
|
|
21
|
-
"core.flow.parallel": (input) => ({ branches: [input["value"] ?? input] }),
|
|
22
|
-
"core.flow.errorBoundary": (input) => ({ result: input["value"] ?? input }),
|
|
23
|
-
"core.flow.humanApproval": (input) => ({ approved: input["value"] ?? input }),
|
|
24
|
-
"core.flow.break": (input) => {
|
|
25
|
-
throw new GraphBreakSignal(input["value"]);
|
|
26
|
-
},
|
|
27
|
-
"core.agent": (input) => ({
|
|
28
|
-
response: `[Agent response] ${String(input["prompt"] ?? "")}`,
|
|
29
|
-
actions: [],
|
|
11
|
+
import { GraphNodeCatalogue, GraphNodeExecutorRegistry, builtInGraphNodeRegistrations, registerBuiltInGraphNodes, IsolatedVmCodeSandboxEvaluator, } from "./../../graph/index.js";
|
|
12
|
+
const demoExecutorMap = {
|
|
13
|
+
"math.add": (request) => ({
|
|
14
|
+
sum: Number(request.inputs.a) + Number(request.inputs.b),
|
|
15
|
+
}),
|
|
16
|
+
"math.multiply": (request) => ({
|
|
17
|
+
product: Number(request.inputs.x) * 2,
|
|
30
18
|
}),
|
|
31
19
|
};
|
|
32
20
|
/**
|
|
33
|
-
* Builds a {@link
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* resolve executors at runtime). The for-angular demo nodes use the kind as
|
|
37
|
-
* their tag, so the same key works for both dispatch-by-kind and
|
|
38
|
-
* dispatch-by-tag.
|
|
21
|
+
* Builds a {@link GraphNodeCatalogue} populated with the built-in
|
|
22
|
+
* manifest+executor registrations and the arithmetic demo executors, wrapped
|
|
23
|
+
* with its {@link GraphNodeExecutorRegistry} facade.
|
|
39
24
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* parallel, errorBoundary, humanApproval). The `core.flow.code`,
|
|
44
|
-
* `core.flow.log`, and `core.flow.switch` kinds are registered in
|
|
45
|
-
* `onEngineCreated` via their real executors because Code and Switch
|
|
46
|
-
* need the engine's `codeSandboxEvaluator`.
|
|
47
|
-
* - `core.agent` — agent node.
|
|
48
|
-
* - `core.loop.foreach`, `core.loop.while`, `core.loop.until` — loop executors
|
|
49
|
-
* (registered after the engine is created via `onEngineCreated`).
|
|
25
|
+
* The built-in kinds whose executors need the engine instance (loops, Code,
|
|
26
|
+
* Switch) are only registered by {@link createDemoEngineConfig}'s
|
|
27
|
+
* `onEngineCreated` hook via {@link registerEngineBoundGraphNodes}.
|
|
50
28
|
*
|
|
51
|
-
* @param extra - Additional
|
|
52
|
-
* @returns
|
|
29
|
+
* @param extra - Additional executor registrations to merge into the catalogue.
|
|
30
|
+
* @returns The populated catalogue and its registry facade.
|
|
53
31
|
*/
|
|
54
|
-
export function
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
32
|
+
export function createGraphNodeCatalogue(extra) {
|
|
33
|
+
const catalogue = new GraphNodeCatalogue();
|
|
34
|
+
registerBuiltInGraphNodes(catalogue);
|
|
35
|
+
for (const [kind, fn] of Object.entries(demoExecutorMap)) {
|
|
36
|
+
catalogue.registerExecutor(kind, { execute: fn });
|
|
58
37
|
}
|
|
59
38
|
if (extra) {
|
|
60
39
|
for (const [kind, executor] of Object.entries(extra)) {
|
|
61
|
-
|
|
40
|
+
catalogue.registerExecutor(kind, executor);
|
|
62
41
|
}
|
|
63
42
|
}
|
|
64
|
-
return registry;
|
|
43
|
+
return { catalogue, registry: new GraphNodeExecutorRegistry(catalogue) };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Builds a {@link GraphNodeExecutorRegistry} facade over a populated
|
|
47
|
+
* {@link GraphNodeCatalogue} (compatibility entry point).
|
|
48
|
+
*
|
|
49
|
+
* @param extra - Additional executor registrations to merge into the catalogue.
|
|
50
|
+
* @returns The registry facade; the underlying catalogue is available as
|
|
51
|
+
* `registry.catalog`.
|
|
52
|
+
*/
|
|
53
|
+
export function createGraphExecutorRegistry(extra) {
|
|
54
|
+
return createGraphNodeCatalogue(extra).registry;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Registers the engine-bound built-in kinds (loops, Code, Switch) on an
|
|
58
|
+
* existing catalogue, replacing their placeholder-free entries with the real
|
|
59
|
+
* engine-bound executors.
|
|
60
|
+
*
|
|
61
|
+
* @param catalogue - The catalogue receiving the registrations.
|
|
62
|
+
* @param engine - The engine instance the loop/Code/Switch executors bind to.
|
|
63
|
+
* @returns The catalogue with the engine-bound registrations applied.
|
|
64
|
+
*/
|
|
65
|
+
export function registerEngineBoundGraphNodes(catalogue, engine) {
|
|
66
|
+
for (const registration of builtInGraphNodeRegistrations(engine)) {
|
|
67
|
+
catalogue.register(registration, { replace: true });
|
|
68
|
+
}
|
|
69
|
+
return catalogue;
|
|
65
70
|
}
|
|
66
71
|
/**
|
|
67
|
-
* Builds a
|
|
68
|
-
* including loop executors that need a back-reference to the
|
|
69
|
-
* Code node executor that needs the engine's
|
|
72
|
+
* Builds a `GraphExecutionEngineConfig` populated with all built-in
|
|
73
|
+
* registrations including loop executors that need a back-reference to the
|
|
74
|
+
* engine and the Code node executor that needs the engine's
|
|
75
|
+
* `codeSandboxEvaluator`.
|
|
70
76
|
*
|
|
71
77
|
* The config wires an {@link IsolatedVmCodeSandboxEvaluator} (backed by
|
|
72
78
|
* `isolated-vm`) so the Code Node runs in a truly isolated V8 sandbox.
|
|
@@ -74,21 +80,15 @@ export function createGraphExecutorRegistry(extra) {
|
|
|
74
80
|
* @returns A config object ready for `new GraphExecutionEngine(config)`.
|
|
75
81
|
*/
|
|
76
82
|
export function createDemoEngineConfig() {
|
|
77
|
-
const registry =
|
|
83
|
+
const { catalogue, registry } = createGraphNodeCatalogue();
|
|
78
84
|
const codeSandboxEvaluator = new IsolatedVmCodeSandboxEvaluator();
|
|
79
85
|
return {
|
|
86
|
+
catalogue,
|
|
80
87
|
registry,
|
|
81
88
|
defaultOptions: { failFast: false },
|
|
82
89
|
codeSandboxEvaluator,
|
|
83
90
|
onEngineCreated: (engine) => {
|
|
84
|
-
|
|
85
|
-
registry.register("core.loop.while", new WhileGraphNodeExecutor(engine));
|
|
86
|
-
registry.register("core.loop.until", new UntilGraphNodeExecutor(engine));
|
|
87
|
-
registry.register("core.flow.code", new CodeGraphNodeExecutor(engine));
|
|
88
|
-
registry.register("core.flow.log", new LogGraphNodeExecutor());
|
|
89
|
-
registry.register("core.utility.log", new LogGraphNodeExecutor());
|
|
90
|
-
registry.register("core.flow.switch", new SwitchGraphNodeExecutor(engine));
|
|
91
|
-
registry.register("core.flow.break", new BreakGraphNodeExecutor());
|
|
91
|
+
registerEngineBoundGraphNodes(catalogue, engine);
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphExecutorRegistryFactory.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutorRegistryFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"GraphExecutorRegistryFactory.js","sourceRoot":"","sources":["../../../../src/nest/graph/GraphExecutorRegistryFactory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EAEzB,6BAA6B,EAC7B,yBAAyB,EAGzB,8BAA8B,GAC/B,+BAAoB;AAOrB,MAAM,eAAe,GAA+B;IAClD,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACxB,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,M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