@decaf-ts/integrations 0.3.9 → 0.3.11
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/dist/integrations.cjs +2 -1649
- package/dist/integrations.cjs.map +1 -0
- package/dist/integrations.js +2 -1885
- package/dist/integrations.js.map +1 -0
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/azure/index.cjs +2 -2
- package/lib/cjs/blob/azure/index.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobErrors.cjs +2 -2
- package/lib/cjs/blob/core/BlobErrors.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobKey.cjs +2 -2
- package/lib/cjs/blob/core/BlobKey.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobStoreFactory.cjs +2 -2
- package/lib/cjs/blob/core/BlobStoreFactory.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobStoreService.cjs +2 -2
- package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobTypes.cjs +2 -2
- package/lib/cjs/blob/core/BlobTypes.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobValue.cjs +2 -2
- package/lib/cjs/blob/core/BlobValue.cjs.map +1 -0
- package/lib/cjs/blob/core/index.cjs +2 -2
- package/lib/cjs/blob/core/index.cjs.map +1 -0
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/gcp/index.cjs +2 -2
- package/lib/cjs/blob/gcp/index.cjs.map +1 -0
- package/lib/cjs/blob/index.cjs +2 -2
- package/lib/cjs/blob/index.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs +2 -2
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs +2 -2
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs +2 -2
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs +2 -2
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/index.cjs +2 -2
- package/lib/cjs/blob/ipfs/index.cjs.map +1 -0
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/local/index.cjs +2 -2
- package/lib/cjs/blob/local/index.cjs.map +1 -0
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/memory/index.cjs +2 -2
- package/lib/cjs/blob/memory/index.cjs.map +1 -0
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +2 -2
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs +2 -2
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs +2 -2
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/s3/index.cjs +2 -2
- package/lib/cjs/blob/s3/index.cjs.map +1 -0
- package/lib/cjs/docker/DockerComposeService.cjs +2 -2
- package/lib/cjs/docker/DockerComposeService.cjs.map +1 -0
- package/lib/cjs/docker/index.cjs +2 -2
- package/lib/cjs/docker/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/constants.cjs +2 -2
- package/lib/cjs/graph/engine/constants.cjs.map +1 -0
- package/lib/cjs/graph/engine/decorators.cjs +2 -2
- package/lib/cjs/graph/engine/decorators.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/index.cjs +2 -2
- package/lib/cjs/graph/engine/errors/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs +2 -2
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs.map +1 -0
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs +2 -2
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs.map +1 -0
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs +2 -2
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs.map +1 -0
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs +2 -2
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs.map +1 -0
- package/lib/cjs/graph/engine/events/index.cjs +2 -2
- package/lib/cjs/graph/engine/events/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +102 -0
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs +2 -2
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +2 -2
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +7 -2
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +2 -2
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +2 -2
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs +355 -0
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/execution/index.cjs +4 -2
- package/lib/cjs/graph/engine/execution/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/index.cjs +4 -2
- package/lib/cjs/graph/engine/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs +2 -2
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs +2 -2
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs +2 -2
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/loops/index.cjs +2 -2
- package/lib/cjs/graph/engine/loops/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs.map +1 -0
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +1 -0
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +1 -0
- package/lib/cjs/graph/engine/pinning/index.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs +2 -2
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs.map +1 -0
- package/lib/cjs/graph/engine/planning/index.cjs +2 -2
- package/lib/cjs/graph/engine/planning/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +2 -2
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +1 -0
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs +2 -2
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/registry/index.cjs +2 -2
- package/lib/cjs/graph/engine/registry/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +2 -2
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -0
- package/lib/cjs/graph/engine/snapshots/index.cjs +2 -2
- package/lib/cjs/graph/engine/snapshots/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs +2 -2
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs +2 -2
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs +2 -2
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs +2 -2
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs +2 -2
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs.map +1 -0
- package/lib/cjs/graph/engine/store/index.cjs +2 -2
- package/lib/cjs/graph/engine/store/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/types.cjs +2 -2
- package/lib/cjs/graph/engine/types.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +2 -2
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs +2 -2
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs +2 -2
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/index.cjs +2 -2
- package/lib/cjs/graph/engine/validation/index.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +2 -2
- package/lib/cjs/graph/index.cjs.map +1 -0
- package/lib/cjs/graph/shared/constants.cjs +2 -2
- package/lib/cjs/graph/shared/constants.cjs.map +1 -0
- package/lib/cjs/graph/shared/index.cjs +2 -2
- package/lib/cjs/graph/shared/index.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/agent.cjs +2 -2
- package/lib/cjs/graph/shared/nodes/agent.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/base.cjs +3 -2
- package/lib/cjs/graph/shared/nodes/base.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/category-styles.cjs +2 -2
- package/lib/cjs/graph/shared/nodes/category-styles.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/flow-control.cjs +10 -8
- package/lib/cjs/graph/shared/nodes/flow-control.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/index.cjs +2 -2
- package/lib/cjs/graph/shared/nodes/index.cjs.map +1 -0
- package/lib/cjs/graph/shared/nodes/triggers.cjs +2 -2
- package/lib/cjs/graph/shared/nodes/triggers.cjs.map +1 -0
- package/lib/cjs/graph/shared/types.cjs +2 -2
- package/lib/cjs/graph/shared/types.cjs.map +1 -0
- package/lib/cjs/index.cjs +5 -5
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/keycloak/index.cjs +2 -2
- package/lib/cjs/keycloak/index.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -0
- package/lib/cjs/keycloak/services/index.cjs +2 -2
- package/lib/cjs/keycloak/services/index.cjs.map +1 -0
- package/lib/cjs/keycloak/services/runtime.cjs +2 -2
- package/lib/cjs/keycloak/services/runtime.cjs.map +1 -0
- package/lib/cjs/keycloak/types.cjs +2 -2
- package/lib/cjs/keycloak/types.cjs.map +1 -0
- package/lib/cjs/kibana/helpers.cjs +2 -2
- package/lib/cjs/kibana/helpers.cjs.map +1 -0
- package/lib/cjs/kibana/index.cjs +2 -2
- package/lib/cjs/kibana/index.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaAuthService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaRoleService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -0
- package/lib/cjs/kibana/services/KibanaUserService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -0
- package/lib/cjs/kibana/services/index.cjs +2 -2
- package/lib/cjs/kibana/services/index.cjs.map +1 -0
- package/lib/cjs/kibana/services/runtime.cjs +2 -2
- package/lib/cjs/kibana/services/runtime.cjs.map +1 -0
- package/lib/cjs/kibana/types.cjs +2 -2
- package/lib/cjs/kibana/types.cjs.map +1 -0
- package/lib/cjs/namespaces/index.cjs +2 -2
- package/lib/cjs/namespaces/index.cjs.map +1 -0
- package/lib/cjs/namespaces/models/authorization-model.cjs +2 -2
- package/lib/cjs/namespaces/models/authorization-model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/effective-permission.model.cjs +6 -6
- package/lib/cjs/namespaces/models/effective-permission.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/group-membership.model.cjs +8 -8
- package/lib/cjs/namespaces/models/group-membership.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/group.model.cjs +8 -8
- package/lib/cjs/namespaces/models/group.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/index.cjs +22 -22
- package/lib/cjs/namespaces/models/index.cjs.map +1 -0
- package/lib/cjs/namespaces/models/inheritance-block.model.cjs +7 -7
- package/lib/cjs/namespaces/models/inheritance-block.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/org-unit-closure.model.cjs +7 -7
- package/lib/cjs/namespaces/models/org-unit-closure.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/org-unit-membership.model.cjs +8 -8
- package/lib/cjs/namespaces/models/org-unit-membership.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/org-unit-profile.model.cjs +4 -4
- package/lib/cjs/namespaces/models/org-unit-profile.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/org-unit.model.cjs +13 -13
- package/lib/cjs/namespaces/models/org-unit.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/permission.model.cjs +4 -4
- package/lib/cjs/namespaces/models/permission.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/principal.model.cjs +8 -8
- package/lib/cjs/namespaces/models/principal.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/protected-resource.model.cjs +10 -10
- package/lib/cjs/namespaces/models/protected-resource.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/resource-grant.model.cjs +9 -9
- package/lib/cjs/namespaces/models/resource-grant.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/role-assignment.model.cjs +8 -8
- package/lib/cjs/namespaces/models/role-assignment.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/role-permission.model.cjs +6 -6
- package/lib/cjs/namespaces/models/role-permission.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/role.model.cjs +8 -8
- package/lib/cjs/namespaces/models/role.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/storage-binding.model.cjs +4 -4
- package/lib/cjs/namespaces/models/storage-binding.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/tenant-membership.model.cjs +6 -6
- package/lib/cjs/namespaces/models/tenant-membership.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/tenant-profile.model.cjs +4 -4
- package/lib/cjs/namespaces/models/tenant-profile.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/tenant.model.cjs +10 -10
- package/lib/cjs/namespaces/models/tenant.model.cjs.map +1 -0
- package/lib/cjs/namespaces/models/user.model.cjs +6 -6
- package/lib/cjs/namespaces/models/user.model.cjs.map +1 -0
- package/lib/cjs/namespaces/org-based-authorization-system.cjs +10 -4
- package/lib/cjs/namespaces/org-based-authorization-system.cjs.map +1 -0
- package/lib/cjs/namespaces/org-based-authorization-system.models.cjs +2 -2
- package/lib/cjs/namespaces/org-based-authorization-system.models.cjs.map +1 -0
- package/lib/cjs/namespaces/org-based-authorization-system.services.cjs +40 -31
- package/lib/cjs/namespaces/org-based-authorization-system.services.cjs.map +1 -0
- package/lib/cjs/namespaces/services/authz.service.cjs +39 -13
- package/lib/cjs/namespaces/services/authz.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/bootstrap.service.cjs +26 -26
- package/lib/cjs/namespaces/services/bootstrap.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/effective-permission.service.cjs +19 -19
- package/lib/cjs/namespaces/services/effective-permission.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/group-membership.service.cjs +6 -6
- package/lib/cjs/namespaces/services/group-membership.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/group.service.cjs +4 -4
- package/lib/cjs/namespaces/services/group.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/index.cjs +26 -26
- package/lib/cjs/namespaces/services/index.cjs.map +1 -0
- package/lib/cjs/namespaces/services/inheritance-block.service.cjs +8 -6
- package/lib/cjs/namespaces/services/inheritance-block.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/org-unit-closure.service.cjs +18 -9
- package/lib/cjs/namespaces/services/org-unit-closure.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/org-unit-membership.service.cjs +4 -4
- package/lib/cjs/namespaces/services/org-unit-membership.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/org-unit-profile.service.cjs +4 -4
- package/lib/cjs/namespaces/services/org-unit-profile.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/org-unit.service.cjs +13 -13
- package/lib/cjs/namespaces/services/org-unit.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/permission.service.cjs +4 -4
- package/lib/cjs/namespaces/services/permission.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/principal.service.cjs +4 -4
- package/lib/cjs/namespaces/services/principal.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/protected-resource.service.cjs +4 -4
- package/lib/cjs/namespaces/services/protected-resource.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/resource-grant.service.cjs +4 -4
- package/lib/cjs/namespaces/services/resource-grant.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/resource-lifecycle.service.cjs +7 -7
- package/lib/cjs/namespaces/services/resource-lifecycle.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/role-assignment.service.cjs +6 -5
- package/lib/cjs/namespaces/services/role-assignment.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/role-permission.service.cjs +8 -8
- package/lib/cjs/namespaces/services/role-permission.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/role.service.cjs +4 -4
- package/lib/cjs/namespaces/services/role.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/storage-binding.service.cjs +4 -4
- package/lib/cjs/namespaces/services/storage-binding.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/system-management.service.cjs +14 -14
- package/lib/cjs/namespaces/services/system-management.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/tenant-membership.service.cjs +4 -4
- package/lib/cjs/namespaces/services/tenant-membership.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/tenant-profile.service.cjs +4 -4
- package/lib/cjs/namespaces/services/tenant-profile.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/tenant.service.cjs +4 -4
- package/lib/cjs/namespaces/services/tenant.service.cjs.map +1 -0
- package/lib/cjs/namespaces/services/user.service.cjs +4 -4
- package/lib/cjs/namespaces/services/user.service.cjs.map +1 -0
- package/lib/cjs/namespaces/types.cjs +2 -2
- package/lib/cjs/namespaces/types.cjs.map +1 -0
- package/lib/cjs/namespaces/utils.cjs +13 -5
- package/lib/cjs/namespaces/utils.cjs.map +1 -0
- package/lib/cjs/nest/authService.cjs +2 -2
- package/lib/cjs/nest/authService.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +2 -2
- package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +6 -4
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +2 -2
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionResultRepository.cjs +2 -2
- package/lib/cjs/nest/graph/GraphExecutionResultRepository.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +105 -11
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -0
- package/lib/cjs/nest/graph/index.cjs +2 -2
- package/lib/cjs/nest/graph/index.cjs.map +1 -0
- package/lib/cjs/nest/graph/main.cjs +30 -0
- package/lib/cjs/nest/graph/main.cjs.map +1 -0
- package/lib/cjs/nest/index.cjs +2 -2
- package/lib/cjs/nest/index.cjs.map +1 -0
- package/lib/cjs/nest/keycloakAuthHandler.cjs +2 -2
- package/lib/cjs/nest/keycloakAuthHandler.cjs.map +1 -0
- package/lib/cjs/nest/keycloakModule.cjs +2 -2
- package/lib/cjs/nest/keycloakModule.cjs.map +1 -0
- package/lib/cjs/nest/logging.cjs +2 -2
- package/lib/cjs/nest/logging.cjs.map +1 -0
- package/lib/cjs/nest/types.cjs +2 -2
- package/lib/cjs/nest/types.cjs.map +1 -0
- package/lib/cjs/nest/utils.cjs +2 -2
- package/lib/cjs/nest/utils.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs +2 -2
- package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/aws/AwsSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/aws/index.cjs +2 -2
- package/lib/cjs/secrets/aws/index.cjs.map +1 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +2 -2
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/azure/index.cjs +2 -2
- package/lib/cjs/secrets/azure/index.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretErrors.cjs +2 -2
- package/lib/cjs/secrets/core/SecretErrors.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretName.cjs +2 -2
- package/lib/cjs/secrets/core/SecretName.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretReference.cjs +2 -2
- package/lib/cjs/secrets/core/SecretReference.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretSerialization.cjs +2 -2
- package/lib/cjs/secrets/core/SecretSerialization.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretService.cjs +2 -2
- package/lib/cjs/secrets/core/SecretService.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretTypes.cjs +2 -2
- package/lib/cjs/secrets/core/SecretTypes.cjs.map +1 -0
- package/lib/cjs/secrets/core/index.cjs +2 -2
- package/lib/cjs/secrets/core/index.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +2 -2
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/gcp/GcpSecretManagerServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/index.cjs +2 -2
- package/lib/cjs/secrets/gcp/index.cjs.map +1 -0
- package/lib/cjs/secrets/index.cjs +2 -2
- package/lib/cjs/secrets/index.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretCrypto.cjs +2 -2
- package/lib/cjs/secrets/model/ModelSecretCrypto.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretService.cjs +2 -2
- package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/model/ModelSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/model/Secret.cjs +2 -2
- package/lib/cjs/secrets/model/Secret.cjs.map +1 -0
- package/lib/cjs/secrets/model/index.cjs +2 -2
- package/lib/cjs/secrets/model/index.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +2 -2
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/onepassword/OnePasswordSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/index.cjs +2 -2
- package/lib/cjs/secrets/onepassword/index.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretService.cjs +2 -2
- package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretServiceConfig.cjs +2 -2
- package/lib/cjs/secrets/vault/VaultSecretServiceConfig.cjs.map +1 -0
- package/lib/cjs/secrets/vault/index.cjs +2 -2
- package/lib/cjs/secrets/vault/index.cjs.map +1 -0
- package/lib/cjs/shared/runtime.cjs +2 -2
- package/lib/cjs/shared/runtime.cjs.map +1 -0
- package/lib/cjs/utils.cjs +2 -2
- package/lib/cjs/utils.cjs.map +1 -0
- package/lib/esm/blob/azure/AzureBlobStoreService.js +1 -1
- package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -0
- package/lib/esm/blob/azure/index.js +1 -1
- package/lib/esm/blob/azure/index.js.map +1 -0
- package/lib/esm/blob/core/BlobErrors.js +1 -1
- package/lib/esm/blob/core/BlobErrors.js.map +1 -0
- package/lib/esm/blob/core/BlobKey.js +1 -1
- package/lib/esm/blob/core/BlobKey.js.map +1 -0
- package/lib/esm/blob/core/BlobStoreFactory.js +1 -1
- package/lib/esm/blob/core/BlobStoreFactory.js.map +1 -0
- package/lib/esm/blob/core/BlobStoreService.js +1 -1
- package/lib/esm/blob/core/BlobStoreService.js.map +1 -0
- package/lib/esm/blob/core/BlobTypes.js +1 -1
- package/lib/esm/blob/core/BlobTypes.js.map +1 -0
- package/lib/esm/blob/core/BlobValue.js +1 -1
- package/lib/esm/blob/core/BlobValue.js.map +1 -0
- package/lib/esm/blob/core/index.js +1 -1
- package/lib/esm/blob/core/index.js.map +1 -0
- package/lib/esm/blob/gcp/GcsBlobStoreService.js +1 -1
- package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -0
- package/lib/esm/blob/gcp/index.js +1 -1
- package/lib/esm/blob/gcp/index.js.map +1 -0
- package/lib/esm/blob/index.js +1 -1
- package/lib/esm/blob/index.js.map +1 -0
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +1 -1
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -0
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js +1 -1
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js.map +1 -0
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js +1 -1
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js.map +1 -0
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js +1 -1
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js.map +1 -0
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js +1 -1
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js.map +1 -0
- package/lib/esm/blob/ipfs/index.js +1 -1
- package/lib/esm/blob/ipfs/index.js.map +1 -0
- package/lib/esm/blob/local/LocalBlobStoreService.js +1 -1
- package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -0
- package/lib/esm/blob/local/index.js +1 -1
- package/lib/esm/blob/local/index.js.map +1 -0
- package/lib/esm/blob/memory/MemoryBlobStoreService.js +1 -1
- package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -0
- package/lib/esm/blob/memory/index.js +1 -1
- package/lib/esm/blob/memory/index.js.map +1 -0
- package/lib/esm/blob/s3/MinioBlobStoreService.js +1 -1
- package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -0
- package/lib/esm/blob/s3/R2BlobStoreService.js +1 -1
- package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -0
- package/lib/esm/blob/s3/S3BlobStoreService.js +1 -1
- package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -0
- package/lib/esm/blob/s3/index.js +1 -1
- package/lib/esm/blob/s3/index.js.map +1 -0
- package/lib/esm/docker/DockerComposeService.js +1 -1
- package/lib/esm/docker/DockerComposeService.js.map +1 -0
- package/lib/esm/docker/index.js +1 -1
- package/lib/esm/docker/index.js.map +1 -0
- package/lib/esm/graph/engine/constants.js +1 -1
- package/lib/esm/graph/engine/constants.js.map +1 -0
- package/lib/esm/graph/engine/decorators.js +1 -1
- package/lib/esm/graph/engine/decorators.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphCycleError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphCycleError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphExecutionError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphInputError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphInputError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphPinningError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphPinningError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphPortError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphPortError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphStoreError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphStoreError.js.map +1 -0
- package/lib/esm/graph/engine/errors/GraphTopologyError.js +1 -1
- package/lib/esm/graph/engine/errors/GraphTopologyError.js.map +1 -0
- package/lib/esm/graph/engine/errors/index.js +1 -1
- package/lib/esm/graph/engine/errors/index.js.map +1 -0
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js.map +1 -0
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +1 -0
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +1 -0
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js.map +1 -0
- package/lib/esm/graph/engine/events/index.js +1 -1
- package/lib/esm/graph/engine/events/index.js.map +1 -0
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +97 -0
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js +1 -1
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js.map +1 -0
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -0
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +6 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -0
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -0
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +1 -0
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js +1 -1
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js +314 -0
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js.map +1 -0
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +1 -1
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/execution/index.js +3 -1
- package/lib/esm/graph/engine/execution/index.js.map +1 -0
- package/lib/esm/graph/engine/index.js +3 -1
- package/lib/esm/graph/engine/index.js.map +1 -0
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js +1 -1
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js.map +1 -0
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +1 -1
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js +1 -1
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js.map +1 -0
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js +1 -1
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js.map +1 -0
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +1 -1
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +1 -1
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/engine/loops/index.js +1 -1
- package/lib/esm/graph/engine/loops/index.js.map +1 -0
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js.map +1 -0
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js.map +1 -0
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +1 -0
- package/lib/esm/graph/engine/pinning/GraphPinningService.js +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +1 -0
- package/lib/esm/graph/engine/pinning/index.js +1 -1
- package/lib/esm/graph/engine/pinning/index.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js +1 -1
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js.map +1 -0
- package/lib/esm/graph/engine/planning/GraphTopology.js +1 -1
- package/lib/esm/graph/engine/planning/GraphTopology.js.map +1 -0
- package/lib/esm/graph/engine/planning/index.js +1 -1
- package/lib/esm/graph/engine/planning/index.js.map +1 -0
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +1 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +1 -0
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js +1 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js.map +1 -0
- package/lib/esm/graph/engine/registry/index.js +1 -1
- package/lib/esm/graph/engine/registry/index.js.map +1 -0
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +1 -1
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +1 -0
- package/lib/esm/graph/engine/snapshots/index.js +1 -1
- package/lib/esm/graph/engine/snapshots/index.js.map +1 -0
- package/lib/esm/graph/engine/store/GraphCachedValue.js +1 -1
- package/lib/esm/graph/engine/store/GraphCachedValue.js.map +1 -0
- package/lib/esm/graph/engine/store/GraphValueKey.js +1 -1
- package/lib/esm/graph/engine/store/GraphValueKey.js.map +1 -0
- package/lib/esm/graph/engine/store/GraphValueStore.js +1 -1
- package/lib/esm/graph/engine/store/GraphValueStore.js.map +1 -0
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js +1 -1
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js.map +1 -0
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js +1 -1
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js.map +1 -0
- package/lib/esm/graph/engine/store/index.js +1 -1
- package/lib/esm/graph/engine/store/index.js.map +1 -0
- package/lib/esm/graph/engine/types.js +1 -1
- package/lib/esm/graph/engine/types.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +1 -1
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js +1 -1
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphValueValidator.js +1 -1
- package/lib/esm/graph/engine/validation/GraphValueValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/index.js +1 -1
- package/lib/esm/graph/engine/validation/index.js.map +1 -0
- package/lib/esm/graph/index.js +1 -1
- package/lib/esm/graph/index.js.map +1 -0
- package/lib/esm/graph/shared/constants.js +1 -1
- package/lib/esm/graph/shared/constants.js.map +1 -0
- package/lib/esm/graph/shared/index.js +1 -1
- package/lib/esm/graph/shared/index.js.map +1 -0
- package/lib/esm/graph/shared/nodes/agent.js +1 -1
- package/lib/esm/graph/shared/nodes/agent.js.map +1 -0
- package/lib/esm/graph/shared/nodes/base.js +2 -1
- package/lib/esm/graph/shared/nodes/base.js.map +1 -0
- package/lib/esm/graph/shared/nodes/category-styles.js +1 -1
- package/lib/esm/graph/shared/nodes/category-styles.js.map +1 -0
- package/lib/esm/graph/shared/nodes/flow-control.js +9 -7
- package/lib/esm/graph/shared/nodes/flow-control.js.map +1 -0
- package/lib/esm/graph/shared/nodes/index.js +1 -1
- package/lib/esm/graph/shared/nodes/index.js.map +1 -0
- package/lib/esm/graph/shared/nodes/triggers.js +1 -1
- package/lib/esm/graph/shared/nodes/triggers.js.map +1 -0
- package/lib/esm/graph/shared/types.js +1 -1
- package/lib/esm/graph/shared/types.js.map +1 -0
- package/lib/esm/index.js +4 -4
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/keycloak/index.js +1 -1
- package/lib/esm/keycloak/index.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakAuthService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakClientService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakRealmService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakRoleService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakService.js.map +1 -0
- package/lib/esm/keycloak/services/KeycloakUserService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -0
- package/lib/esm/keycloak/services/index.js +1 -1
- package/lib/esm/keycloak/services/index.js.map +1 -0
- package/lib/esm/keycloak/services/runtime.js +1 -1
- package/lib/esm/keycloak/services/runtime.js.map +1 -0
- package/lib/esm/keycloak/types.js +1 -1
- package/lib/esm/keycloak/types.js.map +1 -0
- package/lib/esm/kibana/helpers.js +1 -1
- package/lib/esm/kibana/helpers.js.map +1 -0
- package/lib/esm/kibana/index.js +1 -1
- package/lib/esm/kibana/index.js.map +1 -0
- package/lib/esm/kibana/services/KibanaAuthService.js +1 -1
- package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaDashboardService.js +1 -1
- package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaDataViewService.js +1 -1
- package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaRoleService.js +1 -1
- package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaService.js +1 -1
- package/lib/esm/kibana/services/KibanaService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaSpaceService.js +1 -1
- package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -0
- package/lib/esm/kibana/services/KibanaUserService.js +1 -1
- package/lib/esm/kibana/services/KibanaUserService.js.map +1 -0
- package/lib/esm/kibana/services/index.js +1 -1
- package/lib/esm/kibana/services/index.js.map +1 -0
- package/lib/esm/kibana/services/runtime.js +1 -1
- package/lib/esm/kibana/services/runtime.js.map +1 -0
- package/lib/esm/kibana/types.js +1 -1
- package/lib/esm/kibana/types.js.map +1 -0
- package/lib/esm/namespaces/index.js +1 -1
- package/lib/esm/namespaces/index.js.map +1 -0
- package/lib/esm/namespaces/models/authorization-model.js +1 -1
- package/lib/esm/namespaces/models/authorization-model.js.map +1 -0
- package/lib/esm/namespaces/models/effective-permission.model.js +3 -3
- package/lib/esm/namespaces/models/effective-permission.model.js.map +1 -0
- package/lib/esm/namespaces/models/group-membership.model.js +4 -4
- package/lib/esm/namespaces/models/group-membership.model.js.map +1 -0
- package/lib/esm/namespaces/models/group.model.js +4 -4
- package/lib/esm/namespaces/models/group.model.js.map +1 -0
- package/lib/esm/namespaces/models/index.js +21 -21
- package/lib/esm/namespaces/models/index.js.map +1 -0
- package/lib/esm/namespaces/models/inheritance-block.model.js +3 -3
- package/lib/esm/namespaces/models/inheritance-block.model.js.map +1 -0
- package/lib/esm/namespaces/models/org-unit-closure.model.js +3 -3
- package/lib/esm/namespaces/models/org-unit-closure.model.js.map +1 -0
- package/lib/esm/namespaces/models/org-unit-membership.model.js +4 -4
- package/lib/esm/namespaces/models/org-unit-membership.model.js.map +1 -0
- package/lib/esm/namespaces/models/org-unit-profile.model.js +2 -2
- package/lib/esm/namespaces/models/org-unit-profile.model.js.map +1 -0
- package/lib/esm/namespaces/models/org-unit.model.js +6 -6
- package/lib/esm/namespaces/models/org-unit.model.js.map +1 -0
- package/lib/esm/namespaces/models/permission.model.js +2 -2
- package/lib/esm/namespaces/models/permission.model.js.map +1 -0
- package/lib/esm/namespaces/models/principal.model.js +4 -4
- package/lib/esm/namespaces/models/principal.model.js.map +1 -0
- package/lib/esm/namespaces/models/protected-resource.model.js +5 -5
- package/lib/esm/namespaces/models/protected-resource.model.js.map +1 -0
- package/lib/esm/namespaces/models/resource-grant.model.js +4 -4
- package/lib/esm/namespaces/models/resource-grant.model.js.map +1 -0
- package/lib/esm/namespaces/models/role-assignment.model.js +4 -4
- package/lib/esm/namespaces/models/role-assignment.model.js.map +1 -0
- package/lib/esm/namespaces/models/role-permission.model.js +3 -3
- package/lib/esm/namespaces/models/role-permission.model.js.map +1 -0
- package/lib/esm/namespaces/models/role.model.js +4 -4
- package/lib/esm/namespaces/models/role.model.js.map +1 -0
- package/lib/esm/namespaces/models/storage-binding.model.js +2 -2
- package/lib/esm/namespaces/models/storage-binding.model.js.map +1 -0
- package/lib/esm/namespaces/models/tenant-membership.model.js +3 -3
- package/lib/esm/namespaces/models/tenant-membership.model.js.map +1 -0
- package/lib/esm/namespaces/models/tenant-profile.model.js +2 -2
- package/lib/esm/namespaces/models/tenant-profile.model.js.map +1 -0
- package/lib/esm/namespaces/models/tenant.model.js +7 -7
- package/lib/esm/namespaces/models/tenant.model.js.map +1 -0
- package/lib/esm/namespaces/models/user.model.js +3 -3
- package/lib/esm/namespaces/models/user.model.js.map +1 -0
- package/lib/esm/namespaces/org-based-authorization-system.js +10 -4
- package/lib/esm/namespaces/org-based-authorization-system.js.map +1 -0
- package/lib/esm/namespaces/org-based-authorization-system.models.js +1 -1
- package/lib/esm/namespaces/org-based-authorization-system.models.js.map +1 -0
- package/lib/esm/namespaces/org-based-authorization-system.services.js +19 -10
- package/lib/esm/namespaces/org-based-authorization-system.services.js.map +1 -0
- package/lib/esm/namespaces/services/authz.service.js +40 -14
- package/lib/esm/namespaces/services/authz.service.js.map +1 -0
- package/lib/esm/namespaces/services/bootstrap.service.js +13 -13
- package/lib/esm/namespaces/services/bootstrap.service.js.map +1 -0
- package/lib/esm/namespaces/services/effective-permission.service.js +9 -9
- package/lib/esm/namespaces/services/effective-permission.service.js.map +1 -0
- package/lib/esm/namespaces/services/group-membership.service.js +3 -3
- package/lib/esm/namespaces/services/group-membership.service.js.map +1 -0
- package/lib/esm/namespaces/services/group.service.js +2 -2
- package/lib/esm/namespaces/services/group.service.js.map +1 -0
- package/lib/esm/namespaces/services/index.js +25 -25
- package/lib/esm/namespaces/services/index.js.map +1 -0
- package/lib/esm/namespaces/services/inheritance-block.service.js +6 -4
- package/lib/esm/namespaces/services/inheritance-block.service.js.map +1 -0
- package/lib/esm/namespaces/services/org-unit-closure.service.js +17 -8
- package/lib/esm/namespaces/services/org-unit-closure.service.js.map +1 -0
- package/lib/esm/namespaces/services/org-unit-membership.service.js +2 -2
- package/lib/esm/namespaces/services/org-unit-membership.service.js.map +1 -0
- package/lib/esm/namespaces/services/org-unit-profile.service.js +2 -2
- package/lib/esm/namespaces/services/org-unit-profile.service.js.map +1 -0
- package/lib/esm/namespaces/services/org-unit.service.js +4 -4
- package/lib/esm/namespaces/services/org-unit.service.js.map +1 -0
- package/lib/esm/namespaces/services/permission.service.js +2 -2
- package/lib/esm/namespaces/services/permission.service.js.map +1 -0
- package/lib/esm/namespaces/services/principal.service.js +2 -2
- package/lib/esm/namespaces/services/principal.service.js.map +1 -0
- package/lib/esm/namespaces/services/protected-resource.service.js +2 -2
- package/lib/esm/namespaces/services/protected-resource.service.js.map +1 -0
- package/lib/esm/namespaces/services/resource-grant.service.js +2 -2
- package/lib/esm/namespaces/services/resource-grant.service.js.map +1 -0
- package/lib/esm/namespaces/services/resource-lifecycle.service.js +3 -3
- package/lib/esm/namespaces/services/resource-lifecycle.service.js.map +1 -0
- package/lib/esm/namespaces/services/role-assignment.service.js +4 -3
- package/lib/esm/namespaces/services/role-assignment.service.js.map +1 -0
- package/lib/esm/namespaces/services/role-permission.service.js +4 -4
- package/lib/esm/namespaces/services/role-permission.service.js.map +1 -0
- package/lib/esm/namespaces/services/role.service.js +2 -2
- package/lib/esm/namespaces/services/role.service.js.map +1 -0
- package/lib/esm/namespaces/services/storage-binding.service.js +2 -2
- package/lib/esm/namespaces/services/storage-binding.service.js.map +1 -0
- package/lib/esm/namespaces/services/system-management.service.js +7 -7
- package/lib/esm/namespaces/services/system-management.service.js.map +1 -0
- package/lib/esm/namespaces/services/tenant-membership.service.js +2 -2
- package/lib/esm/namespaces/services/tenant-membership.service.js.map +1 -0
- package/lib/esm/namespaces/services/tenant-profile.service.js +2 -2
- package/lib/esm/namespaces/services/tenant-profile.service.js.map +1 -0
- package/lib/esm/namespaces/services/tenant.service.js +2 -2
- package/lib/esm/namespaces/services/tenant.service.js.map +1 -0
- package/lib/esm/namespaces/services/user.service.js +2 -2
- package/lib/esm/namespaces/services/user.service.js.map +1 -0
- package/lib/esm/namespaces/types.js +1 -1
- package/lib/esm/namespaces/types.js.map +1 -0
- package/lib/esm/namespaces/utils.js +12 -4
- package/lib/esm/namespaces/utils.js.map +1 -0
- package/lib/esm/nest/authService.js +1 -1
- package/lib/esm/nest/authService.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionController.js +1 -1
- package/lib/esm/nest/graph/GraphExecutionController.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionModule.js +6 -4
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +1 -1
- package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionResultRepository.js +1 -1
- package/lib/esm/nest/graph/GraphExecutionResultRepository.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +104 -11
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -0
- package/lib/esm/nest/graph/index.js +1 -1
- package/lib/esm/nest/graph/index.js.map +1 -0
- package/lib/esm/nest/graph/main.js +27 -0
- package/lib/esm/nest/graph/main.js.map +1 -0
- package/lib/esm/nest/index.js +1 -1
- package/lib/esm/nest/index.js.map +1 -0
- package/lib/esm/nest/keycloakAuthHandler.js +1 -1
- package/lib/esm/nest/keycloakAuthHandler.js.map +1 -0
- package/lib/esm/nest/keycloakModule.js +1 -1
- package/lib/esm/nest/keycloakModule.js.map +1 -0
- package/lib/esm/nest/logging.js +1 -1
- package/lib/esm/nest/logging.js.map +1 -0
- package/lib/esm/nest/types.js +1 -1
- package/lib/esm/nest/types.js.map +1 -0
- package/lib/esm/nest/utils.js +1 -1
- package/lib/esm/nest/utils.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretService.js +1 -1
- package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretServiceConfig.js +1 -1
- package/lib/esm/secrets/aws/AwsSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/aws/index.js +1 -1
- package/lib/esm/secrets/aws/index.js.map +1 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +1 -1
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -0
- package/lib/esm/secrets/azure/AzureKeyVaultSecretServiceConfig.js +1 -1
- package/lib/esm/secrets/azure/AzureKeyVaultSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/azure/index.js +1 -1
- package/lib/esm/secrets/azure/index.js.map +1 -0
- package/lib/esm/secrets/core/SecretErrors.js +1 -1
- package/lib/esm/secrets/core/SecretErrors.js.map +1 -0
- package/lib/esm/secrets/core/SecretName.js +1 -1
- package/lib/esm/secrets/core/SecretName.js.map +1 -0
- package/lib/esm/secrets/core/SecretReference.js +1 -1
- package/lib/esm/secrets/core/SecretReference.js.map +1 -0
- package/lib/esm/secrets/core/SecretSerialization.js +1 -1
- package/lib/esm/secrets/core/SecretSerialization.js.map +1 -0
- package/lib/esm/secrets/core/SecretService.js +1 -1
- package/lib/esm/secrets/core/SecretService.js.map +1 -0
- package/lib/esm/secrets/core/SecretTypes.js +1 -1
- package/lib/esm/secrets/core/SecretTypes.js.map +1 -0
- package/lib/esm/secrets/core/index.js +1 -1
- package/lib/esm/secrets/core/index.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js +1 -1
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerServiceConfig.js +1 -1
- package/lib/esm/secrets/gcp/GcpSecretManagerServiceConfig.js.map +1 -0
- package/lib/esm/secrets/gcp/index.js +1 -1
- package/lib/esm/secrets/gcp/index.js.map +1 -0
- package/lib/esm/secrets/index.js +1 -1
- package/lib/esm/secrets/index.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretCrypto.js +1 -1
- package/lib/esm/secrets/model/ModelSecretCrypto.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretService.js +1 -1
- package/lib/esm/secrets/model/ModelSecretService.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretServiceConfig.js +1 -1
- package/lib/esm/secrets/model/ModelSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/model/Secret.js +1 -1
- package/lib/esm/secrets/model/Secret.js.map +1 -0
- package/lib/esm/secrets/model/index.js +1 -1
- package/lib/esm/secrets/model/index.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +1 -1
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretServiceConfig.js +1 -1
- package/lib/esm/secrets/onepassword/OnePasswordSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/onepassword/index.js +1 -1
- package/lib/esm/secrets/onepassword/index.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretService.js +1 -1
- package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretServiceConfig.js +1 -1
- package/lib/esm/secrets/vault/VaultSecretServiceConfig.js.map +1 -0
- package/lib/esm/secrets/vault/index.js +1 -1
- package/lib/esm/secrets/vault/index.js.map +1 -0
- package/lib/esm/shared/runtime.js +1 -1
- package/lib/esm/shared/runtime.js.map +1 -0
- package/lib/esm/utils.js +1 -1
- package/lib/esm/utils.js.map +1 -0
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +65 -0
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +65 -0
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.cts +45 -0
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.mts +45 -0
- package/lib/types/graph/engine/execution/index.d.cts +2 -0
- package/lib/types/graph/engine/execution/index.d.mts +2 -0
- package/lib/types/graph/engine/index.d.cts +2 -0
- package/lib/types/graph/engine/index.d.mts +2 -0
- package/lib/types/graph/engine/types.d.cts +6 -34
- package/lib/types/graph/engine/types.d.mts +6 -34
- package/lib/types/graph/shared/nodes/flow-control.d.cts +7 -6
- package/lib/types/graph/shared/nodes/flow-control.d.mts +7 -6
- package/lib/types/graph/shared/types.d.cts +43 -2
- package/lib/types/graph/shared/types.d.mts +43 -2
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +40 -5
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +40 -5
- package/lib/types/nest/graph/main.d.cts +1 -0
- package/lib/types/nest/graph/main.d.mts +1 -0
- package/package.json +10 -6
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/graph/execution/CodeGraphNodeExecutor
|
|
3
|
+
* @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
|
|
4
|
+
* @description Executes user-authored JS/TS in a restricted sandbox via the
|
|
5
|
+
* pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
|
|
6
|
+
* restrictions: no imports, no requires, pure functions only (no system API
|
|
7
|
+
* access). The executor reads the code, language, and timeout from the node's
|
|
8
|
+
* graph metadata, resolves the sandbox context from the node's input values
|
|
9
|
+
* and execution context, invokes the evaluator, and returns the result on the
|
|
10
|
+
* `result` output port.
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.cts";
|
|
13
|
+
import type { GraphExecutionContext } from "./GraphExecutionContext.d.cts";
|
|
14
|
+
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.cts";
|
|
15
|
+
import type { GraphExecutionValues } from "../types.d.cts";
|
|
16
|
+
/**
|
|
17
|
+
* Executor for `core.flow.code` nodes.
|
|
18
|
+
*
|
|
19
|
+
* The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
|
|
20
|
+
* does not implement the sandbox directly (§22.4); instead it delegates to the
|
|
21
|
+
* pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
|
|
22
|
+
* no evaluator is registered, the executor throws
|
|
23
|
+
* `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
|
|
24
|
+
*
|
|
25
|
+
* The sandbox context exposes:
|
|
26
|
+
* - `$input` — the value on the node's `input` port (or the full input object
|
|
27
|
+
* as a fallback when no `input` port is present).
|
|
28
|
+
* - `$vars` — workflow variables (sourced from `context.metadata.vars` when
|
|
29
|
+
* the engine populates it).
|
|
30
|
+
* - `$item` / `$index` — current loop item and index (sourced from
|
|
31
|
+
* `context.metadata` when the node executes inside a foreach body).
|
|
32
|
+
* - `$node` — outputs of upstream nodes (sourced from
|
|
33
|
+
* `context.metadata.nodes` when available).
|
|
34
|
+
* - `$output` — the current draft output (sourced from
|
|
35
|
+
* `context.metadata.output`).
|
|
36
|
+
*
|
|
37
|
+
* The evaluator's return value is forwarded verbatim on the `result` output
|
|
38
|
+
* port.
|
|
39
|
+
*/
|
|
40
|
+
export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
|
|
41
|
+
private readonly engine?;
|
|
42
|
+
/**
|
|
43
|
+
* @param engine - The graph execution engine (or any object exposing the
|
|
44
|
+
* optional `codeSandboxEvaluator`). This mirrors the pattern used by
|
|
45
|
+
* {@link SwitchGraphNodeExecutor} for code conditions.
|
|
46
|
+
*/
|
|
47
|
+
constructor(engine?: {
|
|
48
|
+
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
49
|
+
} | undefined);
|
|
50
|
+
execute(input: GraphExecutionValues, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
51
|
+
/**
|
|
52
|
+
* Builds the {@link CodeSandboxContext} from the executor input and the
|
|
53
|
+
* graph execution context.
|
|
54
|
+
*
|
|
55
|
+
* The `$input` value is resolved from the node's `input` port. When the node
|
|
56
|
+
* has no explicit `input` port, the full input values object is used as
|
|
57
|
+
* `$input` so the code can still access every resolved port value.
|
|
58
|
+
*
|
|
59
|
+
* The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
|
|
60
|
+
* from `context.metadata` — the engine (or a wrapping loop executor) may
|
|
61
|
+
* populate these when the Code node runs inside a loop body or a workflow
|
|
62
|
+
* with variables.
|
|
63
|
+
*/
|
|
64
|
+
private buildSandboxContext;
|
|
65
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/graph/execution/CodeGraphNodeExecutor
|
|
3
|
+
* @summary Executor for the Code flow-control node (DECAF-32 §22.4, DECAF-34 §7.5).
|
|
4
|
+
* @description Executes user-authored JS/TS in a restricted sandbox via the
|
|
5
|
+
* pluggable {@link CodeSandboxEvaluator}. The sandbox enforces the Code Node
|
|
6
|
+
* restrictions: no imports, no requires, pure functions only (no system API
|
|
7
|
+
* access). The executor reads the code, language, and timeout from the node's
|
|
8
|
+
* graph metadata, resolves the sandbox context from the node's input values
|
|
9
|
+
* and execution context, invokes the evaluator, and returns the result on the
|
|
10
|
+
* `result` output port.
|
|
11
|
+
*/
|
|
12
|
+
import type { GraphNodeExecutor } from "./GraphNodeExecutor.d.mts";
|
|
13
|
+
import type { GraphExecutionContext } from "./GraphExecutionContext.d.mts";
|
|
14
|
+
import type { CodeSandboxEvaluator } from "./CodeSandboxEvaluator.d.mts";
|
|
15
|
+
import type { GraphExecutionValues } from "../types.d.mts";
|
|
16
|
+
/**
|
|
17
|
+
* Executor for `core.flow.code` nodes.
|
|
18
|
+
*
|
|
19
|
+
* The Code Node runs user-authored JS/TS in a restricted sandbox. The engine
|
|
20
|
+
* does not implement the sandbox directly (§22.4); instead it delegates to the
|
|
21
|
+
* pluggable {@link CodeSandboxEvaluator} registered on the engine config. When
|
|
22
|
+
* no evaluator is registered, the executor throws
|
|
23
|
+
* `GRAPH_CODE_SANDBOX_NOT_CONFIGURED`.
|
|
24
|
+
*
|
|
25
|
+
* The sandbox context exposes:
|
|
26
|
+
* - `$input` — the value on the node's `input` port (or the full input object
|
|
27
|
+
* as a fallback when no `input` port is present).
|
|
28
|
+
* - `$vars` — workflow variables (sourced from `context.metadata.vars` when
|
|
29
|
+
* the engine populates it).
|
|
30
|
+
* - `$item` / `$index` — current loop item and index (sourced from
|
|
31
|
+
* `context.metadata` when the node executes inside a foreach body).
|
|
32
|
+
* - `$node` — outputs of upstream nodes (sourced from
|
|
33
|
+
* `context.metadata.nodes` when available).
|
|
34
|
+
* - `$output` — the current draft output (sourced from
|
|
35
|
+
* `context.metadata.output`).
|
|
36
|
+
*
|
|
37
|
+
* The evaluator's return value is forwarded verbatim on the `result` output
|
|
38
|
+
* port.
|
|
39
|
+
*/
|
|
40
|
+
export declare class CodeGraphNodeExecutor implements GraphNodeExecutor {
|
|
41
|
+
private readonly engine?;
|
|
42
|
+
/**
|
|
43
|
+
* @param engine - The graph execution engine (or any object exposing the
|
|
44
|
+
* optional `codeSandboxEvaluator`). This mirrors the pattern used by
|
|
45
|
+
* {@link SwitchGraphNodeExecutor} for code conditions.
|
|
46
|
+
*/
|
|
47
|
+
constructor(engine?: {
|
|
48
|
+
codeSandboxEvaluator?: CodeSandboxEvaluator;
|
|
49
|
+
} | undefined);
|
|
50
|
+
execute(input: GraphExecutionValues, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
51
|
+
/**
|
|
52
|
+
* Builds the {@link CodeSandboxContext} from the executor input and the
|
|
53
|
+
* graph execution context.
|
|
54
|
+
*
|
|
55
|
+
* The `$input` value is resolved from the node's `input` port. When the node
|
|
56
|
+
* has no explicit `input` port, the full input values object is used as
|
|
57
|
+
* `$input` so the code can still access every resolved port value.
|
|
58
|
+
*
|
|
59
|
+
* The `$vars`, `$item`, `$index`, `$node`, and `$output` values are sourced
|
|
60
|
+
* from `context.metadata` — the engine (or a wrapping loop executor) may
|
|
61
|
+
* populate these when the Code node runs inside a loop body or a workflow
|
|
62
|
+
* with variables.
|
|
63
|
+
*/
|
|
64
|
+
private buildSandboxContext;
|
|
65
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { CodeSandboxEvaluator, CodeSandboxContext } from "./CodeSandboxEvaluator.d.cts";
|
|
2
|
+
/**
|
|
3
|
+
* `isolated-vm`-backed {@link CodeSandboxEvaluator} (ALFRED-5 §7.18).
|
|
4
|
+
*
|
|
5
|
+
* This evaluator provides a truly isolated V8 sandbox — the code runs in a
|
|
6
|
+
* separate isolate with its own heap, separate from the host process. The
|
|
7
|
+
* sandbox context exposes only the data variables (`$input`, `$vars`, `$item`,
|
|
8
|
+
* `$index`, `$node`, `$output`); no host globals are available.
|
|
9
|
+
*
|
|
10
|
+
* Execution pipeline:
|
|
11
|
+
* 1. **Transpile** — TypeScript code is transpiled to JavaScript via
|
|
12
|
+
* `typescript.transpileModule` (ALFRED-5 §7.4).
|
|
13
|
+
* 2. **Validate** — the JavaScript code is parsed with `acorn` and walked with
|
|
14
|
+
* `acorn-walk` to reject imports, exports, blocked identifiers, `eval()`,
|
|
15
|
+
* and `new Function()` (ALFRED-5 §7.11).
|
|
16
|
+
* 3. **Isolate** — a new `isolated-vm` `Isolate` is created with a memory
|
|
17
|
+
* limit. A context is created and the data variables are copied into the
|
|
18
|
+
* isolate's heap via `ExternalCopy`.
|
|
19
|
+
* 4. **Compile & run** — the wrapped code is compiled and executed with a
|
|
20
|
+
* timeout. The result is copied back to the host heap.
|
|
21
|
+
* 5. **Dispose** — the isolate is always disposed in a `finally` block.
|
|
22
|
+
*
|
|
23
|
+
* The user code is wrapped in a strict-mode async function:
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* "use strict";
|
|
27
|
+
* async function __userFunction($input, $vars, $item, $index, $node, $output) {
|
|
28
|
+
* <user code>
|
|
29
|
+
* }
|
|
30
|
+
* __userFunction($input, $vars, $item, $index, $node, $output);
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* When the code has no `return` statement it is treated as a single expression
|
|
34
|
+
* and wrapped in `return (...)`.
|
|
35
|
+
*/
|
|
36
|
+
export declare class IsolatedVmCodeSandboxEvaluator implements CodeSandboxEvaluator {
|
|
37
|
+
private readonly defaultTimeoutMs;
|
|
38
|
+
private readonly defaultMemoryMb;
|
|
39
|
+
/**
|
|
40
|
+
* @param defaultTimeoutMs - Default execution timeout in milliseconds.
|
|
41
|
+
* @param defaultMemoryMb - Default isolate memory limit in MB.
|
|
42
|
+
*/
|
|
43
|
+
constructor(defaultTimeoutMs?: number, defaultMemoryMb?: number);
|
|
44
|
+
evaluate(ctx: CodeSandboxContext): Promise<unknown>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { CodeSandboxEvaluator, CodeSandboxContext } from "./CodeSandboxEvaluator.d.mts";
|
|
2
|
+
/**
|
|
3
|
+
* `isolated-vm`-backed {@link CodeSandboxEvaluator} (ALFRED-5 §7.18).
|
|
4
|
+
*
|
|
5
|
+
* This evaluator provides a truly isolated V8 sandbox — the code runs in a
|
|
6
|
+
* separate isolate with its own heap, separate from the host process. The
|
|
7
|
+
* sandbox context exposes only the data variables (`$input`, `$vars`, `$item`,
|
|
8
|
+
* `$index`, `$node`, `$output`); no host globals are available.
|
|
9
|
+
*
|
|
10
|
+
* Execution pipeline:
|
|
11
|
+
* 1. **Transpile** — TypeScript code is transpiled to JavaScript via
|
|
12
|
+
* `typescript.transpileModule` (ALFRED-5 §7.4).
|
|
13
|
+
* 2. **Validate** — the JavaScript code is parsed with `acorn` and walked with
|
|
14
|
+
* `acorn-walk` to reject imports, exports, blocked identifiers, `eval()`,
|
|
15
|
+
* and `new Function()` (ALFRED-5 §7.11).
|
|
16
|
+
* 3. **Isolate** — a new `isolated-vm` `Isolate` is created with a memory
|
|
17
|
+
* limit. A context is created and the data variables are copied into the
|
|
18
|
+
* isolate's heap via `ExternalCopy`.
|
|
19
|
+
* 4. **Compile & run** — the wrapped code is compiled and executed with a
|
|
20
|
+
* timeout. The result is copied back to the host heap.
|
|
21
|
+
* 5. **Dispose** — the isolate is always disposed in a `finally` block.
|
|
22
|
+
*
|
|
23
|
+
* The user code is wrapped in a strict-mode async function:
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* "use strict";
|
|
27
|
+
* async function __userFunction($input, $vars, $item, $index, $node, $output) {
|
|
28
|
+
* <user code>
|
|
29
|
+
* }
|
|
30
|
+
* __userFunction($input, $vars, $item, $index, $node, $output);
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* When the code has no `return` statement it is treated as a single expression
|
|
34
|
+
* and wrapped in `return (...)`.
|
|
35
|
+
*/
|
|
36
|
+
export declare class IsolatedVmCodeSandboxEvaluator implements CodeSandboxEvaluator {
|
|
37
|
+
private readonly defaultTimeoutMs;
|
|
38
|
+
private readonly defaultMemoryMb;
|
|
39
|
+
/**
|
|
40
|
+
* @param defaultTimeoutMs - Default execution timeout in milliseconds.
|
|
41
|
+
* @param defaultMemoryMb - Default isolate memory limit in MB.
|
|
42
|
+
*/
|
|
43
|
+
constructor(defaultTimeoutMs?: number, defaultMemoryMb?: number);
|
|
44
|
+
evaluate(ctx: CodeSandboxContext): Promise<unknown>;
|
|
45
|
+
}
|
|
@@ -10,3 +10,5 @@ export * from "./GraphExecutionFrame.d.cts";
|
|
|
10
10
|
export * from "./GraphExecutionEngine.d.cts";
|
|
11
11
|
export * from "./CodeSandboxEvaluator.d.cts";
|
|
12
12
|
export * from "./SwitchGraphNodeExecutor.d.cts";
|
|
13
|
+
export * from "./CodeGraphNodeExecutor.d.cts";
|
|
14
|
+
export * from "./IsolatedVmCodeSandboxEvaluator.d.cts";
|
|
@@ -10,3 +10,5 @@ export * from "./GraphExecutionFrame.d.mts";
|
|
|
10
10
|
export * from "./GraphExecutionEngine.d.mts";
|
|
11
11
|
export * from "./CodeSandboxEvaluator.d.mts";
|
|
12
12
|
export * from "./SwitchGraphNodeExecutor.d.mts";
|
|
13
|
+
export * from "./CodeGraphNodeExecutor.d.mts";
|
|
14
|
+
export * from "./IsolatedVmCodeSandboxEvaluator.d.mts";
|
|
@@ -31,6 +31,8 @@ export * from "./execution/GraphExecutionResult.d.cts";
|
|
|
31
31
|
export * from "./execution/GraphExecutionEngine.d.cts";
|
|
32
32
|
export * from "./execution/CodeSandboxEvaluator.d.cts";
|
|
33
33
|
export * from "./execution/SwitchGraphNodeExecutor.d.cts";
|
|
34
|
+
export * from "./execution/CodeGraphNodeExecutor.d.cts";
|
|
35
|
+
export * from "./execution/IsolatedVmCodeSandboxEvaluator.d.cts";
|
|
34
36
|
export * from "./registry/GraphNodeExecutorRegistry.d.cts";
|
|
35
37
|
export * from "./registry/GraphNodeExecutorResolver.d.cts";
|
|
36
38
|
export * from "./store/GraphValueKey.d.cts";
|
|
@@ -31,6 +31,8 @@ export * from "./execution/GraphExecutionResult.d.mts";
|
|
|
31
31
|
export * from "./execution/GraphExecutionEngine.d.mts";
|
|
32
32
|
export * from "./execution/CodeSandboxEvaluator.d.mts";
|
|
33
33
|
export * from "./execution/SwitchGraphNodeExecutor.d.mts";
|
|
34
|
+
export * from "./execution/CodeGraphNodeExecutor.d.mts";
|
|
35
|
+
export * from "./execution/IsolatedVmCodeSandboxEvaluator.d.mts";
|
|
34
36
|
export * from "./registry/GraphNodeExecutorRegistry.d.mts";
|
|
35
37
|
export * from "./registry/GraphNodeExecutorResolver.d.mts";
|
|
36
38
|
export * from "./store/GraphValueKey.d.mts";
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* @description Engine-private type aliases and interfaces. Frontend-safe
|
|
5
5
|
* types (`ExprValue`, `ConditionExpression`, `CodeCondition`,
|
|
6
6
|
* `SwitchCaseCondition`, `SwitchCase`, `SwitchNodeMetadata`,
|
|
7
|
-
* `NodeMetadataChange`)
|
|
8
|
-
* shared
|
|
7
|
+
* `NodeMetadataChange`, `GraphExecutionEvent`, `GraphExecutionErrorPayload`)
|
|
8
|
+
* live in `../shared/types`; engine modules import shared symbols from there
|
|
9
|
+
* and engine-private symbols from here.
|
|
9
10
|
*/
|
|
10
11
|
import type { GraphNodeDefinition, GraphWorkflowDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
11
|
-
import type {
|
|
12
|
+
import type { GraphExecutionStatus } from "../shared/constants.d.cts";
|
|
13
|
+
import type { GraphExecutionErrorPayload, GraphExecutionEvent } from "../shared/types.d.cts";
|
|
14
|
+
export type { GraphExecutionErrorPayload, GraphExecutionEvent, } from "../shared/types.d.cts";
|
|
12
15
|
/**
|
|
13
16
|
* Unique identifier for a single graph execution run.
|
|
14
17
|
*/
|
|
@@ -47,37 +50,6 @@ export interface GraphExecutionOptions {
|
|
|
47
50
|
writeThroughCache?: boolean;
|
|
48
51
|
metadata?: Record<string, unknown>;
|
|
49
52
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Serialized error payload included in execution events and results.
|
|
52
|
-
*/
|
|
53
|
-
export interface GraphExecutionErrorPayload {
|
|
54
|
-
name: string;
|
|
55
|
-
message: string;
|
|
56
|
-
stack?: string;
|
|
57
|
-
code?: string;
|
|
58
|
-
details?: unknown;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A single event emitted during graph execution.
|
|
62
|
-
*/
|
|
63
|
-
export interface GraphExecutionEvent {
|
|
64
|
-
id: string;
|
|
65
|
-
sequence: number;
|
|
66
|
-
runId: GraphRunId;
|
|
67
|
-
parentRunId?: GraphRunId;
|
|
68
|
-
workflowId: GraphWorkflowId;
|
|
69
|
-
type: GraphExecutionEventType;
|
|
70
|
-
timestamp: Date;
|
|
71
|
-
nodeId?: GraphNodeId;
|
|
72
|
-
edgeId?: string;
|
|
73
|
-
port?: GraphPortName;
|
|
74
|
-
iteration?: number;
|
|
75
|
-
path: string[];
|
|
76
|
-
status?: GraphExecutionStatus;
|
|
77
|
-
payload?: unknown;
|
|
78
|
-
error?: GraphExecutionErrorPayload;
|
|
79
|
-
metadata?: Record<string, unknown>;
|
|
80
|
-
}
|
|
81
53
|
/**
|
|
82
54
|
* Result of executing a single node.
|
|
83
55
|
*/
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
* @description Engine-private type aliases and interfaces. Frontend-safe
|
|
5
5
|
* types (`ExprValue`, `ConditionExpression`, `CodeCondition`,
|
|
6
6
|
* `SwitchCaseCondition`, `SwitchCase`, `SwitchNodeMetadata`,
|
|
7
|
-
* `NodeMetadataChange`)
|
|
8
|
-
* shared
|
|
7
|
+
* `NodeMetadataChange`, `GraphExecutionEvent`, `GraphExecutionErrorPayload`)
|
|
8
|
+
* live in `../shared/types`; engine modules import shared symbols from there
|
|
9
|
+
* and engine-private symbols from here.
|
|
9
10
|
*/
|
|
10
11
|
import type { GraphNodeDefinition, GraphWorkflowDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
11
|
-
import type {
|
|
12
|
+
import type { GraphExecutionStatus } from "../shared/constants.d.mts";
|
|
13
|
+
import type { GraphExecutionErrorPayload, GraphExecutionEvent } from "../shared/types.d.mts";
|
|
14
|
+
export type { GraphExecutionErrorPayload, GraphExecutionEvent, } from "../shared/types.d.mts";
|
|
12
15
|
/**
|
|
13
16
|
* Unique identifier for a single graph execution run.
|
|
14
17
|
*/
|
|
@@ -47,37 +50,6 @@ export interface GraphExecutionOptions {
|
|
|
47
50
|
writeThroughCache?: boolean;
|
|
48
51
|
metadata?: Record<string, unknown>;
|
|
49
52
|
}
|
|
50
|
-
/**
|
|
51
|
-
* Serialized error payload included in execution events and results.
|
|
52
|
-
*/
|
|
53
|
-
export interface GraphExecutionErrorPayload {
|
|
54
|
-
name: string;
|
|
55
|
-
message: string;
|
|
56
|
-
stack?: string;
|
|
57
|
-
code?: string;
|
|
58
|
-
details?: unknown;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A single event emitted during graph execution.
|
|
62
|
-
*/
|
|
63
|
-
export interface GraphExecutionEvent {
|
|
64
|
-
id: string;
|
|
65
|
-
sequence: number;
|
|
66
|
-
runId: GraphRunId;
|
|
67
|
-
parentRunId?: GraphRunId;
|
|
68
|
-
workflowId: GraphWorkflowId;
|
|
69
|
-
type: GraphExecutionEventType;
|
|
70
|
-
timestamp: Date;
|
|
71
|
-
nodeId?: GraphNodeId;
|
|
72
|
-
edgeId?: string;
|
|
73
|
-
port?: GraphPortName;
|
|
74
|
-
iteration?: number;
|
|
75
|
-
path: string[];
|
|
76
|
-
status?: GraphExecutionStatus;
|
|
77
|
-
payload?: unknown;
|
|
78
|
-
error?: GraphExecutionErrorPayload;
|
|
79
|
-
metadata?: Record<string, unknown>;
|
|
80
|
-
}
|
|
81
53
|
/**
|
|
82
54
|
* Result of executing a single node.
|
|
83
55
|
*/
|
|
@@ -94,13 +94,14 @@ export declare class ReturnFlowNode extends Model {
|
|
|
94
94
|
result: unknown;
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* Code — sandboxed JS/TS code execution (ALFRED-5 §7).
|
|
97
|
+
* Code — sandboxed JS/TS code execution (ALFRED-5 §7, DECAF-32 §22.4).
|
|
98
98
|
*
|
|
99
|
-
* The engine
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
99
|
+
* The engine's {@link CodeGraphNodeExecutor} delegates to the pluggable
|
|
100
|
+
* {@link CodeSandboxEvaluator}. The default
|
|
101
|
+
* `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`) enforces the
|
|
102
|
+
* Code Node restrictions: no imports, no requires, pure functions only. The
|
|
103
|
+
* sandbox context exposes `$input`, `$vars`, `$item`, `$index`, `$node`, and
|
|
104
|
+
* `$output` as data variables. TypeScript is supported via transpilation.
|
|
104
105
|
*/
|
|
105
106
|
export declare class CodeFlowNode extends Model {
|
|
106
107
|
input: unknown;
|
|
@@ -94,13 +94,14 @@ export declare class ReturnFlowNode extends Model {
|
|
|
94
94
|
result: unknown;
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* Code — sandboxed JS/TS code execution (ALFRED-5 §7).
|
|
97
|
+
* Code — sandboxed JS/TS code execution (ALFRED-5 §7, DECAF-32 §22.4).
|
|
98
98
|
*
|
|
99
|
-
* The engine
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
99
|
+
* The engine's {@link CodeGraphNodeExecutor} delegates to the pluggable
|
|
100
|
+
* {@link CodeSandboxEvaluator}. The default
|
|
101
|
+
* `IsolatedVmCodeSandboxEvaluator` (backed by `isolated-vm`) enforces the
|
|
102
|
+
* Code Node restrictions: no imports, no requires, pure functions only. The
|
|
103
|
+
* sandbox context exposes `$input`, `$vars`, `$item`, `$index`, `$node`, and
|
|
104
|
+
* `$output` as data variables. TypeScript is supported via transpilation.
|
|
104
105
|
*/
|
|
105
106
|
export declare class CodeFlowNode extends Model {
|
|
106
107
|
input: unknown;
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* @summary Frontend-safe graph type declarations.
|
|
4
4
|
* @description Type aliases and interfaces that are safe to import from a
|
|
5
5
|
* frontend bundle. These types describe declarative graph metadata (loop
|
|
6
|
-
* condition DSL, switch cases, node metadata patches)
|
|
7
|
-
*
|
|
6
|
+
* condition DSL, switch cases, node metadata patches) and the execution-event
|
|
7
|
+
* data contract consumed by the frontend via SSE — no engine runtime
|
|
8
|
+
* dependency.
|
|
8
9
|
*/
|
|
9
10
|
import type { GraphPortDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
11
|
+
import type { GraphExecutionEventType, GraphExecutionStatus } from "./constants.d.cts";
|
|
10
12
|
/**
|
|
11
13
|
* A value reference inside a {@link ConditionExpression}.
|
|
12
14
|
*
|
|
@@ -119,3 +121,42 @@ export interface NodeMetadataChange {
|
|
|
119
121
|
};
|
|
120
122
|
dataPatch: Record<string, unknown>;
|
|
121
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Serialized error payload included in execution events and results.
|
|
126
|
+
*
|
|
127
|
+
* Frontend-safe: the frontend receives this over SSE when a node or workflow
|
|
128
|
+
* fails and needs to render the error details.
|
|
129
|
+
*/
|
|
130
|
+
export interface GraphExecutionErrorPayload {
|
|
131
|
+
name: string;
|
|
132
|
+
message: string;
|
|
133
|
+
stack?: string;
|
|
134
|
+
code?: string;
|
|
135
|
+
details?: unknown;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A single event emitted during graph execution.
|
|
139
|
+
*
|
|
140
|
+
* Frontend-safe: the frontend consumes these events over the SSE endpoint
|
|
141
|
+
* (`GET /graph/events`) and maps them to UI state updates via
|
|
142
|
+
* `GraphExecutionStateMapper`. The `timestamp` is serialised as an ISO string
|
|
143
|
+
* over the wire; the frontend deserialises it back to a `Date` when mapping.
|
|
144
|
+
*/
|
|
145
|
+
export interface GraphExecutionEvent {
|
|
146
|
+
id: string;
|
|
147
|
+
sequence: number;
|
|
148
|
+
runId: string;
|
|
149
|
+
parentRunId?: string;
|
|
150
|
+
workflowId: string;
|
|
151
|
+
type: GraphExecutionEventType;
|
|
152
|
+
timestamp: Date;
|
|
153
|
+
nodeId?: string;
|
|
154
|
+
edgeId?: string;
|
|
155
|
+
port?: string;
|
|
156
|
+
iteration?: number;
|
|
157
|
+
path: string[];
|
|
158
|
+
status?: GraphExecutionStatus;
|
|
159
|
+
payload?: unknown;
|
|
160
|
+
error?: GraphExecutionErrorPayload;
|
|
161
|
+
metadata?: Record<string, unknown>;
|
|
162
|
+
}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* @summary Frontend-safe graph type declarations.
|
|
4
4
|
* @description Type aliases and interfaces that are safe to import from a
|
|
5
5
|
* frontend bundle. These types describe declarative graph metadata (loop
|
|
6
|
-
* condition DSL, switch cases, node metadata patches)
|
|
7
|
-
*
|
|
6
|
+
* condition DSL, switch cases, node metadata patches) and the execution-event
|
|
7
|
+
* data contract consumed by the frontend via SSE — no engine runtime
|
|
8
|
+
* dependency.
|
|
8
9
|
*/
|
|
9
10
|
import type { GraphPortDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
11
|
+
import type { GraphExecutionEventType, GraphExecutionStatus } from "./constants.d.mts";
|
|
10
12
|
/**
|
|
11
13
|
* A value reference inside a {@link ConditionExpression}.
|
|
12
14
|
*
|
|
@@ -119,3 +121,42 @@ export interface NodeMetadataChange {
|
|
|
119
121
|
};
|
|
120
122
|
dataPatch: Record<string, unknown>;
|
|
121
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Serialized error payload included in execution events and results.
|
|
126
|
+
*
|
|
127
|
+
* Frontend-safe: the frontend receives this over SSE when a node or workflow
|
|
128
|
+
* fails and needs to render the error details.
|
|
129
|
+
*/
|
|
130
|
+
export interface GraphExecutionErrorPayload {
|
|
131
|
+
name: string;
|
|
132
|
+
message: string;
|
|
133
|
+
stack?: string;
|
|
134
|
+
code?: string;
|
|
135
|
+
details?: unknown;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A single event emitted during graph execution.
|
|
139
|
+
*
|
|
140
|
+
* Frontend-safe: the frontend consumes these events over the SSE endpoint
|
|
141
|
+
* (`GET /graph/events`) and maps them to UI state updates via
|
|
142
|
+
* `GraphExecutionStateMapper`. The `timestamp` is serialised as an ISO string
|
|
143
|
+
* over the wire; the frontend deserialises it back to a `Date` when mapping.
|
|
144
|
+
*/
|
|
145
|
+
export interface GraphExecutionEvent {
|
|
146
|
+
id: string;
|
|
147
|
+
sequence: number;
|
|
148
|
+
runId: string;
|
|
149
|
+
parentRunId?: string;
|
|
150
|
+
workflowId: string;
|
|
151
|
+
type: GraphExecutionEventType;
|
|
152
|
+
timestamp: Date;
|
|
153
|
+
nodeId?: string;
|
|
154
|
+
edgeId?: string;
|
|
155
|
+
port?: string;
|
|
156
|
+
iteration?: number;
|
|
157
|
+
path: string[];
|
|
158
|
+
status?: GraphExecutionStatus;
|
|
159
|
+
payload?: unknown;
|
|
160
|
+
error?: GraphExecutionErrorPayload;
|
|
161
|
+
metadata?: Record<string, unknown>;
|
|
162
|
+
}
|
package/lib/types/index.d.cts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
export * from "./utils.d.cts";
|
|
7
7
|
export * from "./namespaces/index.d.cts";
|
|
8
8
|
export declare const VERSION: string;
|
|
9
|
-
export declare const COMMIT = "
|
|
10
|
-
export declare const FULL_VERSION = "0.3.
|
|
9
|
+
export declare const COMMIT = "857014d";
|
|
10
|
+
export declare const FULL_VERSION = "0.3.10-857014d";
|
|
11
11
|
export declare const PACKAGE_NAME: string;
|
package/lib/types/index.d.mts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
export * from "./utils.d.mts";
|
|
7
7
|
export * from "./namespaces/index.d.mts";
|
|
8
8
|
export declare const VERSION: string;
|
|
9
|
-
export declare const COMMIT = "
|
|
10
|
-
export declare const FULL_VERSION = "0.3.
|
|
9
|
+
export declare const COMMIT = "857014d";
|
|
10
|
+
export declare const FULL_VERSION = "0.3.10-857014d";
|
|
11
11
|
export declare const PACKAGE_NAME: string;
|
|
@@ -1,17 +1,52 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module integrations/nest/graph/GraphExecutorRegistryFactory
|
|
3
3
|
* @summary Factory that builds a populated {@link GraphNodeExecutorRegistry}.
|
|
4
|
-
* @description Creates a registry pre-loaded with the demo executors
|
|
4
|
+
* @description Creates a registry pre-loaded with the demo executors used by
|
|
5
|
+
* the graph execution backend's sample workflows. The executors cover the
|
|
6
|
+
* publishing-workflow node tags, the flow-control kinds, the agent kind, and
|
|
7
|
+
* the loop kinds. Additional executors can be registered on the returned
|
|
8
|
+
* registry before it is handed to the {@link GraphExecutionEngine}.
|
|
5
9
|
*/
|
|
6
|
-
import { GraphNodeExecutorRegistry } from "../../graph/index.d.cts";
|
|
7
|
-
import type { GraphNodeExecutor } from "../../graph/index.d.cts";
|
|
10
|
+
import { GraphNodeExecutorRegistry, GraphExecutionEngine, type GraphNodeExecutor, IsolatedVmCodeSandboxEvaluator } from "../../graph/index.d.cts";
|
|
8
11
|
/**
|
|
9
12
|
* Builds a {@link GraphNodeExecutorRegistry} populated with the demo executors.
|
|
10
13
|
*
|
|
14
|
+
* Executors are registered by **node kind** (the same key the engine uses to
|
|
15
|
+
* resolve executors at runtime). The for-angular demo nodes use the kind as
|
|
16
|
+
* their tag, so the same key works for both dispatch-by-kind and
|
|
17
|
+
* dispatch-by-tag.
|
|
18
|
+
*
|
|
11
19
|
* Registered kinds:
|
|
12
|
-
* - `math.add
|
|
13
|
-
* - `
|
|
20
|
+
* - `math.add`, `math.multiply` — arithmetic demo executors.
|
|
21
|
+
* - `graph-intake-workflow`, `graph-planning-pipeline`, `graph-draft-node`,
|
|
22
|
+
* `graph-review-node`, `graph-publish-workflow` — publishing workflow demo.
|
|
23
|
+
* - `core.flow.*` — flow-control kinds (map, delay, return, merge, if, switch,
|
|
24
|
+
* parallel, errorBoundary, humanApproval). The `core.flow.code` kind is
|
|
25
|
+
* registered in `onEngineCreated` via the real {@link CodeGraphNodeExecutor}
|
|
26
|
+
* because it needs the engine's `codeSandboxEvaluator`.
|
|
27
|
+
* - `core.agent` — agent node.
|
|
28
|
+
* - `core.loop.foreach`, `core.loop.while`, `core.loop.until` — loop executors
|
|
29
|
+
* (registered after the engine is created via `onEngineCreated`).
|
|
14
30
|
*
|
|
31
|
+
* @param extra - Additional executors to merge into the registry.
|
|
15
32
|
* @returns A populated registry ready for use with {@link GraphExecutionEngine}.
|
|
16
33
|
*/
|
|
17
34
|
export declare function createGraphExecutorRegistry(extra?: Record<string, GraphNodeExecutor>): GraphNodeExecutorRegistry;
|
|
35
|
+
/**
|
|
36
|
+
* Builds a {@link GraphExecutionEngineConfig} populated with all demo executors
|
|
37
|
+
* including loop executors that need a back-reference to the engine and the
|
|
38
|
+
* Code node executor that needs the engine's `codeSandboxEvaluator`.
|
|
39
|
+
*
|
|
40
|
+
* The config wires an {@link IsolatedVmCodeSandboxEvaluator} (backed by
|
|
41
|
+
* `isolated-vm`) so the Code Node runs in a truly isolated V8 sandbox.
|
|
42
|
+
*
|
|
43
|
+
* @returns A config object ready for `new GraphExecutionEngine(config)`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function createDemoEngineConfig(): {
|
|
46
|
+
registry: GraphNodeExecutorRegistry;
|
|
47
|
+
defaultOptions: {
|
|
48
|
+
failFast: boolean;
|
|
49
|
+
};
|
|
50
|
+
codeSandboxEvaluator: IsolatedVmCodeSandboxEvaluator;
|
|
51
|
+
onEngineCreated: (engine: GraphExecutionEngine) => void;
|
|
52
|
+
};
|