@decaf-ts/integrations 0.8.0 → 0.10.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/docker/minio-compose.yml +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 +85 -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 +181 -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 +63 -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 +68 -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 +59 -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 +58 -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 +358 -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/calendar/CalendarService.cjs +393 -0
- package/lib/cjs/calendar/CalendarService.cjs.map +1 -0
- package/lib/cjs/calendar/index.cjs +21 -0
- package/lib/cjs/calendar/index.cjs.map +1 -0
- package/lib/cjs/calendar/types.cjs.map +1 -0
- package/lib/cjs/calendar/validators/cron.cjs +58 -0
- package/lib/cjs/calendar/validators/cron.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs +39 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs +47 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs.map +1 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs +4 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs.map +1 -0
- 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 +4 -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 +9 -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 +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 +84 -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 +181 -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 +61 -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 +66 -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 +57 -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 +56 -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 +353 -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/calendar/CalendarService.js +384 -0
- package/lib/esm/calendar/CalendarService.js.map +1 -0
- package/lib/esm/calendar/index.js +4 -0
- package/lib/esm/calendar/index.js.map +1 -0
- package/lib/esm/{graph/shared → calendar}/types.js.map +1 -1
- package/lib/esm/calendar/validators/cron.js +48 -0
- package/lib/esm/calendar/validators/cron.js.map +1 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js +31 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js.map +1 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js +39 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js.map +1 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js +2 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js.map +1 -0
- 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 +2 -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 +4 -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 +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 +38 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.mts +38 -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 +238 -1
- package/lib/types/blob/core/BlobStoreService.d.mts +238 -1
- 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 +36 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +36 -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 +35 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +35 -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 +28 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.mts +28 -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 +28 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +28 -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 +58 -0
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +58 -0
- package/lib/types/blob/s3/index.d.cts +4 -0
- package/lib/types/blob/s3/index.d.mts +4 -0
- package/lib/types/calendar/CalendarService.d.cts +40 -0
- package/lib/types/calendar/CalendarService.d.mts +40 -0
- package/lib/types/calendar/index.d.cts +3 -0
- package/lib/types/calendar/index.d.mts +3 -0
- package/lib/types/calendar/types.d.cts +64 -0
- package/lib/types/calendar/types.d.mts +64 -0
- package/lib/types/calendar/validators/cron.d.cts +7 -0
- package/lib/types/calendar/validators/cron.d.mts +7 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.cts +6 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.mts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.cts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.mts +6 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.cts +5 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.mts +5 -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 +5 -1
- package/lib/types/graph/log/GraphRunLogger.d.mts +5 -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 +19 -17
- 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/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 → calendar}/types.cjs +0 -0
- /package/lib/esm/{graph/shared → calendar}/types.js +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WhileGraphNodeExecutor = void 0;
|
|
4
4
|
const constants_js_1 = require("./../constants.cjs");
|
|
5
|
-
const
|
|
5
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
6
6
|
const GraphInputError_js_1 = require("./../errors/GraphInputError.cjs");
|
|
7
7
|
const GraphLoopLimitError_js_1 = require("./../errors/GraphLoopLimitError.cjs");
|
|
8
8
|
const GraphConditionEvaluator_js_1 = require("./GraphConditionEvaluator.cjs");
|
|
@@ -21,8 +21,9 @@ class WhileGraphNodeExecutor {
|
|
|
21
21
|
this.engine = engine;
|
|
22
22
|
this.evaluator = new GraphConditionEvaluator_js_1.GraphConditionEvaluator();
|
|
23
23
|
}
|
|
24
|
-
async execute(
|
|
24
|
+
async execute(request, context) {
|
|
25
25
|
const metadata = this.extractMetadata(context);
|
|
26
|
+
const input = request.inputs;
|
|
26
27
|
const maxIterations = metadata.maxIterations ?? constants_js_1.GRAPH_DEFAULT_MAX_LOOP_ITERATIONS;
|
|
27
28
|
const condition = metadata.condition;
|
|
28
29
|
if (!condition) {
|
|
@@ -32,22 +33,22 @@ class WhileGraphNodeExecutor {
|
|
|
32
33
|
const bodyWorkflow = metadata.body;
|
|
33
34
|
let state = input.state;
|
|
34
35
|
let iteration = 0;
|
|
35
|
-
await context.emit({ type:
|
|
36
|
+
await context.emit({ type: graph_1.GraphExecutionEventType.LOOP_STARTED });
|
|
36
37
|
while (this.evaluator.evaluate(condition, state)) {
|
|
37
38
|
if (iteration >= maxIterations) {
|
|
38
39
|
await context.emit({
|
|
39
|
-
type:
|
|
40
|
+
type: graph_1.GraphExecutionEventType.LOOP_LIMIT_REACHED,
|
|
40
41
|
iteration,
|
|
41
42
|
});
|
|
42
43
|
throw new GraphLoopLimitError_js_1.GraphLoopLimitError(`while loop exceeded max iterations (${maxIterations})`);
|
|
43
44
|
}
|
|
44
45
|
await context.emit({
|
|
45
|
-
type:
|
|
46
|
+
type: graph_1.GraphExecutionEventType.LOOP_CONDITION_EVALUATED,
|
|
46
47
|
iteration,
|
|
47
48
|
payload: { result: true },
|
|
48
49
|
});
|
|
49
50
|
await context.emit({
|
|
50
|
-
type:
|
|
51
|
+
type: graph_1.GraphExecutionEventType.LOOP_ITERATION_STARTED,
|
|
51
52
|
iteration,
|
|
52
53
|
});
|
|
53
54
|
const childResult = await this.engine.execute(bodyWorkflow, { [statePort]: state, iteration }, {
|
|
@@ -56,21 +57,45 @@ class WhileGraphNodeExecutor {
|
|
|
56
57
|
});
|
|
57
58
|
state = childResult.outputs[statePort];
|
|
58
59
|
await context.emit({
|
|
59
|
-
type:
|
|
60
|
+
type: graph_1.GraphExecutionEventType.LOOP_ITERATION_COMPLETED,
|
|
60
61
|
iteration,
|
|
61
62
|
});
|
|
62
63
|
iteration++;
|
|
63
64
|
}
|
|
64
|
-
await context.emit({ type:
|
|
65
|
+
await context.emit({ type: graph_1.GraphExecutionEventType.LOOP_COMPLETED });
|
|
65
66
|
return { [statePort]: state, iterations: iteration };
|
|
66
67
|
}
|
|
67
68
|
extractMetadata(context) {
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
const instance = context.node;
|
|
70
|
+
const parameters = (instance.parameters ?? {});
|
|
71
|
+
const loop = instance.loop;
|
|
72
|
+
const fallback = context.metadata?.["loop"];
|
|
73
|
+
if (!loop?.body && !fallback?.["body"]) {
|
|
74
|
+
throw new GraphInputError_js_1.GraphInputError("while node is missing loop configuration (instance.loop.body)");
|
|
72
75
|
}
|
|
73
|
-
|
|
76
|
+
const body = (loop?.body ?? fallback?.["body"]);
|
|
77
|
+
const number = (key) => {
|
|
78
|
+
const raw = parameters[key] ?? loop?.[key] ?? fallback?.[key];
|
|
79
|
+
const value = Number(raw);
|
|
80
|
+
return raw !== undefined && Number.isFinite(value) ? value : undefined;
|
|
81
|
+
};
|
|
82
|
+
const string = (key) => {
|
|
83
|
+
const raw = parameters[key] ?? fallback?.[key];
|
|
84
|
+
return typeof raw === "string" ? raw : undefined;
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
body,
|
|
88
|
+
maxIterations: number("maxIterations"),
|
|
89
|
+
timeoutMs: number("timeoutMs"),
|
|
90
|
+
concurrency: number("concurrency"),
|
|
91
|
+
condition: (parameters["condition"] ?? fallback?.["condition"]),
|
|
92
|
+
inputPort: string("inputPort"),
|
|
93
|
+
outputPort: string("outputPort"),
|
|
94
|
+
itemPort: string("itemPort"),
|
|
95
|
+
resultPort: string("resultPort"),
|
|
96
|
+
statePort: string("statePort"),
|
|
97
|
+
slice: number("slice"),
|
|
98
|
+
};
|
|
74
99
|
}
|
|
75
100
|
}
|
|
76
101
|
exports.WhileGraphNodeExecutor = WhileGraphNodeExecutor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/loops/WhileGraphNodeExecutor.cjs","sourceRoot":"","sources":["graph/engine/loops/WhileGraphNodeExecutor.js"],"names":[],"mappings":";;;AAAA,oDAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"graph/engine/loops/WhileGraphNodeExecutor.cjs","sourceRoot":"","sources":["graph/engine/loops/WhileGraphNodeExecutor.js"],"names":[],"mappings":";;;AAAA,oDAAsE;AACtE,yDAAwE;AACxE,uEAAiE;AACjE,+EAAyE;AACzE,6EAAuE;AACvE;;;;;;;;;GASG;AACH,MAAa,sBAAsB;IAC/B,YAAY,MAAM;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAA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inningPolicy {
|
|
|
22
22
|
}
|
|
23
23
|
/** Extracts pinning metadata from a plan node. */
|
|
24
24
|
getPinningMetadata(node) {
|
|
25
|
-
const raw = node.
|
|
26
|
-
node.metadata?.pinnable;
|
|
25
|
+
const raw = node.manifest.metadata?.["pinnable"] ??
|
|
26
|
+
node.metadata?.["pinnable"];
|
|
27
27
|
return raw
|
|
28
28
|
? { ...GraphPinningMetadata_js_1.DEFAULT_PINNING_METADATA, ...raw }
|
|
29
29
|
: { ...GraphPinningMetadata_js_1.DEFAULT_PINNING_METADATA, enabled: false };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/pinning/GraphPinningPolicy.cjs","sourceRoot":"","sources":["graph/engine/pinning/GraphPinningPolicy.js"],"names":[],"mappings":";;;AAAA,uEAAiF;AACjF;;GAEG;AACH,MAAa,kBAAkB;IAC3B,wDAAwD;IACxD,MAAM,CAAC,IAAI;QACP,OAAO,IAAA,oCAAU,EAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,oFAAoF;IACpF,oBAAoB,CAAC,IAAI;QACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,IAAI,QAAQ,CAAC,QAAQ,KAAK,UAAU,CAAC;IACzE,CAAC;IACD,sEAAsE;IACtE,aAAa,CAAC,IAAI;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,IAAI,QAAQ,CAAC,QAAQ,KAAK,WAAW,CAAC;IAC1E,CAAC;IACD,kDAAkD;IAClD,kBAAkB,CAAC,IAAI;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"graph/engine/pinning/GraphPinningPolicy.cjs","sourceRoot":"","sources":["graph/engine/pinning/GraphPinningPolicy.js"],"names":[],"mappings":";;;AAAA,uEAAiF;AACjF;;GAEG;AACH,MAAa,kBAAkB;IAC3B,wDAAwD;IACxD,MAAM,CAAC,IAAI;QACP,OAAO,IAAA,oCAAU,EAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,oFAAoF;IACpF,oBAAoB,CAAC,IAAI;QACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,IAAI,QAAQ,CAAC,QAAQ,KAAK,UAAU,CAAC;IACzE,CAAC;IACD,sEAAsE;IACtE,aAAa,CAAC,IAAI;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,QAAQ,CAAC,OAAO,KAAK,IAAI,IAAI,QAAQ,CAAC,QAAQ,KAAK,WAAW,CAAC;IAC1E,CAAC;IACD,kDAAkD;IAClD,kBAAkB,CAAC,IAAI;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC;YAC5C,IAAI,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,CAAC;QAChC,OAAO,GAAG;YACN,CAAC,CAAC,EAAE,GAAG,kDAAwB,EAAE,GAAG,GAAG,EAAE;YACzC,CAAC,CAAC,EAAE,GAAG,kDAAwB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC;CACJ;AAvBD,gDAuBC;AACD,8CAA8C"}
|
|
@@ -3,8 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GraphPinningService = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @module integrations/graph/pinning/GraphPinningService
|
|
6
|
-
* @summary Service for pinning and unpinning graph node values.
|
|
7
|
-
* @description Computes stable fingerprints, pins/unpins nodes and their
|
|
6
|
+
* @summary Service for pinning and unpinning graph node values (DECAF-50 §4.9).
|
|
7
|
+
* @description Computes stable fingerprints, pins/unpins nodes and their
|
|
8
|
+
* upstream dependencies, reads pinned values, and emits pinning events.
|
|
9
|
+
* Pinning is all-or-nothing: if any upstream dependency is not pinnable, the
|
|
10
|
+
* operation fails.
|
|
11
|
+
*
|
|
12
|
+
* Fingerprints derive from the node kind, parameters, bindings, effective
|
|
13
|
+
* inputs, relevant metadata, and configured dependency fingerprints
|
|
14
|
+
* (DECAF-50 §4.9). Presentation-only UI state (node/canvas positions, colors,
|
|
15
|
+
* and every `ui` record) is excluded — moving a node on the canvas never
|
|
16
|
+
* invalidates its pinned value.
|
|
8
17
|
*/
|
|
9
18
|
const constants_js_1 = require("./../constants.cjs");
|
|
10
19
|
const GraphPinningError_js_1 = require("./../errors/GraphPinningError.cjs");
|
|
@@ -49,7 +58,7 @@ class GraphPinningService {
|
|
|
49
58
|
}
|
|
50
59
|
const inputs = result.inputs ?? {};
|
|
51
60
|
const depFingerprints = this.dependencyFingerprints(plan, nodeId, options.result);
|
|
52
|
-
const key = this.createValueKey(options.
|
|
61
|
+
const key = this.createValueKey(options.document.id, node, inputs, depFingerprints);
|
|
53
62
|
const now = new Date().toISOString();
|
|
54
63
|
const cached = {
|
|
55
64
|
key,
|
|
@@ -67,7 +76,7 @@ class GraphPinningService {
|
|
|
67
76
|
*/
|
|
68
77
|
async unpinNode(options) {
|
|
69
78
|
const key = {
|
|
70
|
-
workflowId: options.
|
|
79
|
+
workflowId: options.document.id,
|
|
71
80
|
nodeId: options.nodeId,
|
|
72
81
|
fingerprint: options.fingerprint,
|
|
73
82
|
namespace: options.namespace,
|
|
@@ -78,8 +87,8 @@ class GraphPinningService {
|
|
|
78
87
|
* Reads a pinned value for a node, returning `undefined` when no valid
|
|
79
88
|
* pinned value exists.
|
|
80
89
|
*/
|
|
81
|
-
async readPinnedValue(
|
|
82
|
-
const key = this.createValueKey(
|
|
90
|
+
async readPinnedValue(workflowId, node, inputs, dependencyFingerprints, namespace) {
|
|
91
|
+
const key = this.createValueKey(workflowId, node, inputs, dependencyFingerprints, namespace);
|
|
83
92
|
const cached = await this.store.readCached(key);
|
|
84
93
|
if (cached && cached.pinned) {
|
|
85
94
|
if (cached.expiresAt && new Date(cached.expiresAt) < new Date()) {
|
|
@@ -92,23 +101,32 @@ class GraphPinningService {
|
|
|
92
101
|
/**
|
|
93
102
|
* Creates a stable value key for a node.
|
|
94
103
|
*/
|
|
95
|
-
createValueKey(
|
|
104
|
+
createValueKey(workflowId, node, inputs, dependencyFingerprints, namespace) {
|
|
96
105
|
return {
|
|
97
|
-
workflowId
|
|
106
|
+
workflowId,
|
|
98
107
|
nodeId: node.id,
|
|
99
|
-
fingerprint: this.computeFingerprint(
|
|
108
|
+
fingerprint: this.computeFingerprint(workflowId, node, inputs, dependencyFingerprints),
|
|
100
109
|
namespace,
|
|
101
110
|
};
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
104
|
-
* Computes a stable fingerprint for a node
|
|
113
|
+
* Computes a stable fingerprint for a node (DECAF-50 §4.9).
|
|
114
|
+
*
|
|
115
|
+
* The fingerprint derives from the node kind, the instance parameters, the
|
|
116
|
+
* input bindings, the effective input values, relevant instance metadata,
|
|
117
|
+
* and the configured dependency fingerprints. Presentation-only UI state is
|
|
118
|
+
* excluded: the instance `ui` record is never read, and a `ui` key inside
|
|
119
|
+
* metadata is stripped, so canvas positions and visual settings cannot
|
|
120
|
+
* affect pinning.
|
|
105
121
|
*/
|
|
106
|
-
computeFingerprint(
|
|
122
|
+
computeFingerprint(workflowId, node, inputs, dependencyFingerprints) {
|
|
107
123
|
const data = {
|
|
108
|
-
workflowId
|
|
124
|
+
workflowId,
|
|
109
125
|
nodeId: node.id,
|
|
110
126
|
nodeKind: node.kind,
|
|
111
|
-
|
|
127
|
+
parameters: this.stableSerialize(node.instance.parameters ?? {}),
|
|
128
|
+
inputBindings: this.stableSerialize(node.instance.inputBindings ?? {}),
|
|
129
|
+
metadata: this.stableSerialize(this.relevantMetadata(node)),
|
|
112
130
|
inputs: this.stableSerialize(inputs),
|
|
113
131
|
dependencyFingerprints: this.stableSerialize(dependencyFingerprints),
|
|
114
132
|
};
|
|
@@ -117,6 +135,17 @@ class GraphPinningService {
|
|
|
117
135
|
// and Node environments without requiring `node:crypto`.
|
|
118
136
|
return this.simpleHash(json);
|
|
119
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Strips presentation-only keys (`ui` and UI-state shapes) from the node's
|
|
140
|
+
* instance metadata, leaving only pinning-relevant metadata.
|
|
141
|
+
*/
|
|
142
|
+
relevantMetadata(node) {
|
|
143
|
+
const metadata = { ...(node.metadata ?? {}) };
|
|
144
|
+
delete metadata["ui"];
|
|
145
|
+
delete metadata["position"];
|
|
146
|
+
delete metadata["visual"];
|
|
147
|
+
return metadata;
|
|
148
|
+
}
|
|
120
149
|
/**
|
|
121
150
|
* Returns a topological ordering of the given node set.
|
|
122
151
|
*/
|
|
@@ -150,7 +179,7 @@ class GraphPinningService {
|
|
|
150
179
|
const depResult = result.nodeResults[dep];
|
|
151
180
|
const inputs = depResult?.inputs ?? {};
|
|
152
181
|
const nestedDeps = this.dependencyFingerprints(plan, dep, result);
|
|
153
|
-
fingerprints[dep] = this.computeFingerprint(plan.
|
|
182
|
+
fingerprints[dep] = this.computeFingerprint(plan.workflowId, node, inputs, nestedDeps);
|
|
154
183
|
}
|
|
155
184
|
}
|
|
156
185
|
return fingerprints;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/pinning/GraphPinningService.cjs","sourceRoot":"","sources":["graph/engine/pinning/GraphPinningService.js"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"graph/engine/pinning/GraphPinningService.cjs","sourceRoot":"","sources":["graph/engine/pinning/GraphPinningService.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;GAaG;AACH,oDAA+D;AAC/D,2EAAqE;AACrE,qE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AAChC,+CAA+C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/planning/GraphExecutionPlanEdge.cjs","sourceRoot":"","sources":["graph/engine/planning/GraphExecutionPlanEdge.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"graph/engine/planning/GraphExecutionPlanEdge.cjs","sourceRoot":"","sources":["graph/engine/planning/GraphExecutionPlanEdge.js"],"names":[],"mappings":";;AAQA,kDAAkD"}
|
|
@@ -1,37 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GraphExecutionPlanner = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/planning/GraphExecutionPlanner
|
|
6
|
+
* @summary Topological planner for resolved graph workflows (DECAF-50 §4.9).
|
|
7
|
+
* @description Turns a {@link GraphResolvedWorkflow} — the output of the
|
|
8
|
+
* nine-stage §4.8 validation gate — into a {@link GraphExecutionPlan} with
|
|
9
|
+
* topological layers. The planner accepts ONLY resolved workflows: it never
|
|
10
|
+
* calls `graphDefinitionOf()` and never accepts `GraphWorkflowDefinition`
|
|
11
|
+
* objects or inline raw `GraphNodeDefinition` objects (P3 gate). Resolution
|
|
12
|
+
* against the trusted backend catalogue happens upstream, in
|
|
13
|
+
* {@link GraphWorkflowDocumentValidator}.
|
|
14
|
+
*/
|
|
5
15
|
const constants_js_1 = require("./../constants.cjs");
|
|
6
16
|
const GraphCycleError_js_1 = require("./../errors/GraphCycleError.cjs");
|
|
7
17
|
const GraphTopologyError_js_1 = require("./../errors/GraphTopologyError.cjs");
|
|
8
|
-
const
|
|
18
|
+
const GraphWorkflowDocumentValidator_js_1 = require("./../validation/GraphWorkflowDocumentValidator.cjs");
|
|
9
19
|
/**
|
|
10
|
-
* Planner that turns a {@link
|
|
20
|
+
* Planner that turns a {@link GraphResolvedWorkflow} into a
|
|
11
21
|
* {@link GraphExecutionPlan} with topological layers.
|
|
12
22
|
*/
|
|
13
23
|
class GraphExecutionPlanner {
|
|
14
|
-
constructor(resolver) {
|
|
15
|
-
this.resolver = resolver ?? new GraphRelationResolver_js_1.GraphRelationResolver();
|
|
16
|
-
}
|
|
17
24
|
/**
|
|
18
|
-
* Plans a workflow for execution.
|
|
25
|
+
* Plans a resolved workflow for execution.
|
|
19
26
|
*
|
|
20
|
-
* @param workflow - The workflow
|
|
27
|
+
* @param workflow - The catalogue-resolved workflow (output of the
|
|
28
|
+
* nine-stage validation gate). Raw `GraphWorkflowDefinition` objects and
|
|
29
|
+
* inline `GraphNodeDefinition` objects are rejected.
|
|
21
30
|
* @returns The execution plan with nodes, edges, layers, and maps.
|
|
22
|
-
* @throws {GraphTopologyError} when
|
|
31
|
+
* @throws {GraphTopologyError} when the input is not a resolved workflow.
|
|
23
32
|
* @throws {GraphCycleError} when the workflow contains an unsupported cycle.
|
|
24
33
|
*/
|
|
25
34
|
plan(workflow) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
if (!(0, GraphWorkflowDocumentValidator_js_1.isGraphResolvedWorkflow)(workflow)) {
|
|
36
|
+
throw new GraphTopologyError_js_1.GraphTopologyError("GraphExecutionPlanner.plan accepts only a GraphResolvedWorkflow produced by the nine-stage validation gate; raw workflow definitions and inline node definitions are rejected", { received: describeInput(workflow) });
|
|
37
|
+
}
|
|
38
|
+
const nodes = this.buildPlanNodes(workflow);
|
|
39
|
+
const edges = this.buildPlanEdges(workflow);
|
|
29
40
|
const incomingByNode = this.buildIncomingMap(edges);
|
|
30
41
|
const outgoingByNode = this.buildOutgoingMap(edges);
|
|
31
42
|
const layers = this.topologicalLayers(nodes, edges);
|
|
32
43
|
return {
|
|
33
|
-
workflow,
|
|
34
|
-
workflowId: workflow.name,
|
|
44
|
+
resolved: workflow,
|
|
45
|
+
workflowId: workflow.document.id || workflow.document.name,
|
|
35
46
|
nodes,
|
|
36
47
|
edges,
|
|
37
48
|
layers,
|
|
@@ -40,88 +51,47 @@ class GraphExecutionPlanner {
|
|
|
40
51
|
};
|
|
41
52
|
}
|
|
42
53
|
/**
|
|
43
|
-
*
|
|
54
|
+
* Builds catalogue-resolved plan nodes from the resolved workflow.
|
|
55
|
+
* Each plan node carries the canonical instance, the effective manifest,
|
|
56
|
+
* and the trusted executor — never a raw node definition.
|
|
44
57
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
buildPlanNodes(workflow) {
|
|
59
|
+
return workflow.nodes.map((node) => ({
|
|
60
|
+
id: node.instance.id,
|
|
61
|
+
kind: node.manifest.kind,
|
|
62
|
+
instance: node.instance,
|
|
63
|
+
manifest: node.manifest,
|
|
64
|
+
executor: node.executor,
|
|
65
|
+
inputPorts: node.manifest.inputs.map((port) => port.id),
|
|
66
|
+
outputPorts: node.manifest.outputs.map((port) => port.id),
|
|
67
|
+
connectionPorts: (node.manifest.connections ?? []).map((port) => port.id),
|
|
68
|
+
metadata: node.instance.metadata,
|
|
69
|
+
}));
|
|
53
70
|
}
|
|
54
71
|
/**
|
|
55
|
-
*
|
|
72
|
+
* Builds plan edges from the flattened resolved edges (already validated by
|
|
73
|
+
* §4.8 stage 5/6).
|
|
56
74
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
id: nodeMeta.id,
|
|
69
|
-
kind: nodeMeta.kind ?? definition.kind ?? nodeMeta.id,
|
|
70
|
-
label: nodeMeta.label,
|
|
71
|
-
source: nodeMeta,
|
|
72
|
-
definition,
|
|
73
|
-
inputPorts,
|
|
74
|
-
outputPorts,
|
|
75
|
-
metadata: nodeMeta.metadata,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return result;
|
|
75
|
+
buildPlanEdges(workflow) {
|
|
76
|
+
return workflow.edges.map((edge) => ({
|
|
77
|
+
id: edge.id,
|
|
78
|
+
type: edge.type,
|
|
79
|
+
sourceNodeId: edge.sourceNodeId,
|
|
80
|
+
sourcePort: edge.sourcePort,
|
|
81
|
+
targetNodeId: edge.targetNodeId,
|
|
82
|
+
targetPort: edge.targetPort,
|
|
83
|
+
...(edge.label !== undefined ? { label: edge.label } : {}),
|
|
84
|
+
metadata: edge.metadata,
|
|
85
|
+
}));
|
|
79
86
|
}
|
|
80
87
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* Accepts either a decorated Model class/instance (resolved via
|
|
84
|
-
* `graphDefinitionOf`) or a plain `GraphNodeDefinition`-shaped object
|
|
85
|
-
* (useful for serialized workflows that inline node definitions).
|
|
86
|
-
*/
|
|
87
|
-
resolveDefinition(nodeMeta) {
|
|
88
|
-
if (nodeMeta.node) {
|
|
89
|
-
if (this.isRawDefinition(nodeMeta.node)) {
|
|
90
|
-
return nodeMeta.node;
|
|
91
|
-
}
|
|
92
|
-
try {
|
|
93
|
-
return (0, graph_1.graphDefinitionOf)(nodeMeta.node);
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
// fall through to stub
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
// Return a minimal stub definition so planning can proceed
|
|
100
|
-
return {
|
|
101
|
-
name: nodeMeta.id,
|
|
102
|
-
tag: nodeMeta.id,
|
|
103
|
-
kind: nodeMeta.kind ?? nodeMeta.id,
|
|
104
|
-
labels: [],
|
|
105
|
-
ports: [],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns `true` when a value looks like a raw {@link GraphNodeDefinition}
|
|
110
|
-
* (a plain object with a `ports` array and a `name` string).
|
|
111
|
-
*/
|
|
112
|
-
isRawDefinition(value) {
|
|
113
|
-
return (typeof value === "object" &&
|
|
114
|
-
value !== null &&
|
|
115
|
-
!Array.isArray(value) &&
|
|
116
|
-
typeof value.name === "string" &&
|
|
117
|
-
Array.isArray(value.ports));
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Builds a map of node id -> incoming edges.
|
|
88
|
+
* Builds a map of node id -> incoming edges (boundary excluded from keys).
|
|
121
89
|
*/
|
|
122
90
|
buildIncomingMap(edges) {
|
|
123
91
|
const map = new Map();
|
|
124
92
|
for (const edge of edges) {
|
|
93
|
+
if (edge.targetNodeId === constants_js_1.GRAPH_WORKFLOW_BOUNDARY)
|
|
94
|
+
continue;
|
|
125
95
|
const list = map.get(edge.targetNodeId) ?? [];
|
|
126
96
|
list.push(edge);
|
|
127
97
|
map.set(edge.targetNodeId, list);
|
|
@@ -129,11 +99,14 @@ class GraphExecutionPlanner {
|
|
|
129
99
|
return map;
|
|
130
100
|
}
|
|
131
101
|
/**
|
|
132
|
-
* Builds a map of node id -> outgoing edges
|
|
102
|
+
* Builds a map of node id -> outgoing edges (boundary targets included as
|
|
103
|
+
* edge values so workflow outputs stay routable).
|
|
133
104
|
*/
|
|
134
105
|
buildOutgoingMap(edges) {
|
|
135
106
|
const map = new Map();
|
|
136
107
|
for (const edge of edges) {
|
|
108
|
+
if (edge.sourceNodeId === constants_js_1.GRAPH_WORKFLOW_BOUNDARY)
|
|
109
|
+
continue;
|
|
137
110
|
const list = map.get(edge.sourceNodeId) ?? [];
|
|
138
111
|
list.push(edge);
|
|
139
112
|
map.set(edge.sourceNodeId, list);
|
|
@@ -144,6 +117,9 @@ class GraphExecutionPlanner {
|
|
|
144
117
|
* Produces topological layers using Kahn's algorithm.
|
|
145
118
|
*
|
|
146
119
|
* Workflow boundary edges do not count as executable-node dependencies.
|
|
120
|
+
* Both data and structural (connection) edges count as dependencies
|
|
121
|
+
* (DECAF-32 acyclicity preserved; loop constructs are excepted because
|
|
122
|
+
* their bodies are separate nested documents).
|
|
147
123
|
*/
|
|
148
124
|
topologicalLayers(nodes, edges) {
|
|
149
125
|
const executableNodes = nodes.filter((n) => n.id !== constants_js_1.GRAPH_WORKFLOW_BOUNDARY);
|
|
@@ -186,12 +162,27 @@ class GraphExecutionPlanner {
|
|
|
186
162
|
.map((n) => n.id);
|
|
187
163
|
throw new GraphCycleError_js_1.GraphCycleError({
|
|
188
164
|
unplannedNodes: unplanned,
|
|
189
|
-
workflowId:
|
|
165
|
+
workflowId: executableNodes[0]?.manifest.kind,
|
|
190
166
|
});
|
|
191
167
|
}
|
|
192
168
|
return layers;
|
|
193
169
|
}
|
|
194
170
|
}
|
|
195
171
|
exports.GraphExecutionPlanner = GraphExecutionPlanner;
|
|
172
|
+
/**
|
|
173
|
+
* Produces a safe, JSON-friendly description of a rejected planner input for
|
|
174
|
+
* error details (never serialises executors or class instances).
|
|
175
|
+
*/
|
|
176
|
+
function describeInput(value) {
|
|
177
|
+
if (!value || typeof value !== "object") {
|
|
178
|
+
return { reason: "input is not an object" };
|
|
179
|
+
}
|
|
180
|
+
const record = value;
|
|
181
|
+
return {
|
|
182
|
+
reason: "input is not a GraphResolvedWorkflow",
|
|
183
|
+
looksLikeWorkflowDefinition: "nodes" in record && "relations" in record && !("nodeById" in record),
|
|
184
|
+
hasResolvedNodes: Array.isArray(record["nodes"]),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
196
187
|
//# sourceMappingURL=GraphExecutionPlanner.js.map
|
|
197
188
|
//# sourceMappingURL=GraphExecutionPlanner.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/planning/GraphExecutionPlanner.cjs","sourceRoot":"","sources":["graph/engine/planning/GraphExecutionPlanner.js"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"graph/engine/planning/GraphExecutionPlanner.cjs","sourceRoot":"","sources":["graph/engine/planning/GraphExecutionPlanner.js"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,oDAA4D;AAC5D,uEAAiE;AACjE,6EAAuE;AACvE,yGAA4F;AAC5F;;;GAGG;AACH,MAAa,qBAAqB;IAC9B;;;;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,IAAI,CAAC,CAAC,UAAU,IAAI,MAAM,CAAC;QAClG,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KACnD,CAAC;AACN,CAAC;AACD,iDAAiD"}
|
|
@@ -23,7 +23,6 @@ __exportStar(require("./GraphExecutionPlanNode.cjs"), exports);
|
|
|
23
23
|
__exportStar(require("./GraphExecutionPlanEdge.cjs"), exports);
|
|
24
24
|
__exportStar(require("./GraphExecutionPlanLayer.cjs"), exports);
|
|
25
25
|
__exportStar(require("./GraphExecutionPlan.cjs"), exports);
|
|
26
|
-
__exportStar(require("./GraphRelationResolver.cjs"), exports);
|
|
27
26
|
__exportStar(require("./GraphExecutionPlanner.cjs"), exports);
|
|
28
27
|
__exportStar(require("./GraphTopology.cjs"), exports);
|
|
29
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/planning/index.cjs","sourceRoot":"","sources":["graph/engine/planning/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"graph/engine/planning/index.cjs","sourceRoot":"","sources":["graph/engine/planning/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,qDAAmC;AACnC,iCAAiC"}
|