@decaf-ts/integrations 0.3.0 → 0.3.2
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 +1 -1
- package/lib/cjs/graph/constants.cjs +94 -0
- package/lib/cjs/graph/constants.cjs.map +1 -0
- package/lib/cjs/graph/decorators.cjs +4 -0
- package/lib/cjs/graph/decorators.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphCycleError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphCycleError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphExecutionError.cjs +27 -0
- package/lib/cjs/graph/errors/GraphExecutionError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphInputError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphInputError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphLoopLimitError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphLoopLimitError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphPinningError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphPinningError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphPortError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphPortError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphStoreError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphStoreError.cjs.map +1 -0
- package/lib/cjs/graph/errors/GraphTopologyError.cjs +20 -0
- package/lib/cjs/graph/errors/GraphTopologyError.cjs.map +1 -0
- package/lib/cjs/graph/errors/index.cjs +31 -0
- package/lib/cjs/graph/errors/index.cjs.map +1 -0
- package/lib/cjs/graph/events/GraphExecutionEvent.cjs +4 -0
- package/lib/cjs/graph/events/GraphExecutionEvent.cjs.map +1 -0
- package/lib/cjs/graph/events/GraphExecutionEventEmitter.cjs +40 -0
- package/lib/cjs/graph/events/GraphExecutionEventEmitter.cjs.map +1 -0
- package/lib/cjs/graph/events/GraphExecutionEventFactory.cjs +37 -0
- package/lib/cjs/graph/events/GraphExecutionEventFactory.cjs.map +1 -0
- package/lib/cjs/graph/events/GraphExecutionObserver.cjs +4 -0
- package/lib/cjs/graph/events/GraphExecutionObserver.cjs.map +1 -0
- package/lib/cjs/graph/events/index.cjs +27 -0
- package/lib/cjs/graph/events/index.cjs.map +1 -0
- package/lib/cjs/graph/execution/GraphExecutionContext.cjs +79 -0
- package/lib/cjs/graph/execution/GraphExecutionContext.cjs.map +1 -0
- package/lib/cjs/graph/execution/GraphExecutionEngine.cjs +405 -0
- package/lib/cjs/graph/execution/GraphExecutionEngine.cjs.map +1 -0
- package/lib/cjs/graph/execution/GraphExecutionFrame.cjs +32 -0
- package/lib/cjs/graph/execution/GraphExecutionFrame.cjs.map +1 -0
- package/lib/cjs/graph/execution/GraphExecutionResult.cjs +30 -0
- package/lib/cjs/graph/execution/GraphExecutionResult.cjs.map +1 -0
- package/lib/cjs/graph/execution/GraphNodeExecutor.cjs +4 -0
- package/lib/cjs/graph/execution/GraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/execution/index.cjs +28 -0
- package/lib/cjs/graph/execution/index.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +74 -0
- package/lib/cjs/graph/index.cjs.map +1 -0
- package/lib/cjs/graph/loops/ForeachGraphNodeExecutor.cjs +84 -0
- package/lib/cjs/graph/loops/ForeachGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/loops/GraphConditionEvaluator.cjs +63 -0
- package/lib/cjs/graph/loops/GraphConditionEvaluator.cjs.map +1 -0
- package/lib/cjs/graph/loops/GraphLoopExecutionContext.cjs +16 -0
- package/lib/cjs/graph/loops/GraphLoopExecutionContext.cjs.map +1 -0
- package/lib/cjs/graph/loops/UntilGraphNodeExecutor.cjs +76 -0
- package/lib/cjs/graph/loops/UntilGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/loops/WhileGraphNodeExecutor.cjs +77 -0
- package/lib/cjs/graph/loops/WhileGraphNodeExecutor.cjs.map +1 -0
- package/lib/cjs/graph/loops/index.cjs +28 -0
- package/lib/cjs/graph/loops/index.cjs.map +1 -0
- package/lib/cjs/graph/pinning/GraphPinningDependencyResolver.cjs +28 -0
- package/lib/cjs/graph/pinning/GraphPinningDependencyResolver.cjs.map +1 -0
- package/lib/cjs/graph/pinning/GraphPinningMetadata.cjs +20 -0
- package/lib/cjs/graph/pinning/GraphPinningMetadata.cjs.map +1 -0
- package/lib/cjs/graph/pinning/GraphPinningPolicy.cjs +34 -0
- package/lib/cjs/graph/pinning/GraphPinningPolicy.cjs.map +1 -0
- package/lib/cjs/graph/pinning/GraphPinningService.cjs +191 -0
- package/lib/cjs/graph/pinning/GraphPinningService.cjs.map +1 -0
- package/lib/cjs/graph/pinning/index.cjs +27 -0
- package/lib/cjs/graph/pinning/index.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphExecutionPlan.cjs +4 -0
- package/lib/cjs/graph/planning/GraphExecutionPlan.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanEdge.cjs +4 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanEdge.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanLayer.cjs +4 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanLayer.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanNode.cjs +4 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanNode.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanner.cjs +197 -0
- package/lib/cjs/graph/planning/GraphExecutionPlanner.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphRelationResolver.cjs +172 -0
- package/lib/cjs/graph/planning/GraphRelationResolver.cjs.map +1 -0
- package/lib/cjs/graph/planning/GraphTopology.cjs +57 -0
- package/lib/cjs/graph/planning/GraphTopology.cjs.map +1 -0
- package/lib/cjs/graph/planning/index.cjs +30 -0
- package/lib/cjs/graph/planning/index.cjs.map +1 -0
- package/lib/cjs/graph/registry/GraphNodeExecutorRegistry.cjs +44 -0
- package/lib/cjs/graph/registry/GraphNodeExecutorRegistry.cjs.map +1 -0
- package/lib/cjs/graph/registry/GraphNodeExecutorResolver.cjs +27 -0
- package/lib/cjs/graph/registry/GraphNodeExecutorResolver.cjs.map +1 -0
- package/lib/cjs/graph/registry/index.cjs +25 -0
- package/lib/cjs/graph/registry/index.cjs.map +1 -0
- package/lib/cjs/graph/snapshots/GraphExecutionSnapshotMapper.cjs +53 -0
- package/lib/cjs/graph/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -0
- package/lib/cjs/graph/snapshots/index.cjs +24 -0
- package/lib/cjs/graph/snapshots/index.cjs.map +1 -0
- package/lib/cjs/graph/store/GraphCachedValue.cjs +4 -0
- package/lib/cjs/graph/store/GraphCachedValue.cjs.map +1 -0
- package/lib/cjs/graph/store/GraphValueKey.cjs +4 -0
- package/lib/cjs/graph/store/GraphValueKey.cjs.map +1 -0
- package/lib/cjs/graph/store/GraphValueStore.cjs +76 -0
- package/lib/cjs/graph/store/GraphValueStore.cjs.map +1 -0
- package/lib/cjs/graph/store/GraphValueStoreAdapter.cjs +4 -0
- package/lib/cjs/graph/store/GraphValueStoreAdapter.cjs.map +1 -0
- package/lib/cjs/graph/store/InMemoryGraphValueStoreAdapter.cjs +69 -0
- package/lib/cjs/graph/store/InMemoryGraphValueStoreAdapter.cjs.map +1 -0
- package/lib/cjs/graph/store/index.cjs +28 -0
- package/lib/cjs/graph/store/index.cjs.map +1 -0
- package/lib/cjs/graph/types.cjs +4 -0
- package/lib/cjs/graph/types.cjs.map +1 -0
- package/lib/cjs/graph/validation/GraphDefinitionValidator.cjs +33 -0
- package/lib/cjs/graph/validation/GraphDefinitionValidator.cjs.map +1 -0
- package/lib/cjs/graph/validation/GraphPortSchemaResolver.cjs +58 -0
- package/lib/cjs/graph/validation/GraphPortSchemaResolver.cjs.map +1 -0
- package/lib/cjs/graph/validation/GraphValueValidator.cjs +52 -0
- package/lib/cjs/graph/validation/GraphValueValidator.cjs.map +1 -0
- package/lib/cjs/graph/validation/index.cjs +26 -0
- package/lib/cjs/graph/validation/index.cjs.map +1 -0
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +5 -18
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakService.cjs +1 -1
- package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs +2 -5
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaAuthService.cjs +3 -6
- package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs +6 -18
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs +4 -16
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaRoleService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaUserService.cjs +2 -5
- package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -1
- package/lib/cjs/shared/runtime.cjs +26 -0
- package/lib/cjs/shared/runtime.cjs.map +1 -0
- package/lib/esm/graph/constants.js +106 -0
- package/lib/esm/graph/constants.js.map +1 -0
- package/lib/esm/graph/decorators.js +2 -0
- package/lib/esm/graph/decorators.js.map +1 -0
- package/lib/esm/graph/errors/GraphCycleError.js +15 -0
- package/lib/esm/graph/errors/GraphCycleError.js.map +1 -0
- package/lib/esm/graph/errors/GraphExecutionError.js +22 -0
- package/lib/esm/graph/errors/GraphExecutionError.js.map +1 -0
- package/lib/esm/graph/errors/GraphInputError.js +15 -0
- package/lib/esm/graph/errors/GraphInputError.js.map +1 -0
- package/lib/esm/graph/errors/GraphLoopLimitError.js +15 -0
- package/lib/esm/graph/errors/GraphLoopLimitError.js.map +1 -0
- package/lib/esm/graph/errors/GraphPinningError.js +15 -0
- package/lib/esm/graph/errors/GraphPinningError.js.map +1 -0
- package/lib/esm/graph/errors/GraphPortError.js +15 -0
- package/lib/esm/graph/errors/GraphPortError.js.map +1 -0
- package/lib/esm/graph/errors/GraphStoreError.js +15 -0
- package/lib/esm/graph/errors/GraphStoreError.js.map +1 -0
- package/lib/esm/graph/errors/GraphTopologyError.js +15 -0
- package/lib/esm/graph/errors/GraphTopologyError.js.map +1 -0
- package/lib/esm/graph/errors/index.js +14 -0
- package/lib/esm/graph/errors/index.js.map +1 -0
- package/lib/esm/graph/events/GraphExecutionEvent.js +2 -0
- package/lib/esm/graph/events/GraphExecutionEvent.js.map +1 -0
- package/lib/esm/graph/events/GraphExecutionEventEmitter.js +35 -0
- package/lib/esm/graph/events/GraphExecutionEventEmitter.js.map +1 -0
- package/lib/esm/graph/events/GraphExecutionEventFactory.js +32 -0
- package/lib/esm/graph/events/GraphExecutionEventFactory.js.map +1 -0
- package/lib/esm/graph/events/GraphExecutionObserver.js +2 -0
- package/lib/esm/graph/events/GraphExecutionObserver.js.map +1 -0
- package/lib/esm/graph/events/index.js +10 -0
- package/lib/esm/graph/events/index.js.map +1 -0
- package/lib/esm/graph/execution/GraphExecutionContext.js +74 -0
- package/lib/esm/graph/execution/GraphExecutionContext.js.map +1 -0
- package/lib/esm/graph/execution/GraphExecutionEngine.js +400 -0
- package/lib/esm/graph/execution/GraphExecutionEngine.js.map +1 -0
- package/lib/esm/graph/execution/GraphExecutionFrame.js +27 -0
- package/lib/esm/graph/execution/GraphExecutionFrame.js.map +1 -0
- package/lib/esm/graph/execution/GraphExecutionResult.js +26 -0
- package/lib/esm/graph/execution/GraphExecutionResult.js.map +1 -0
- package/lib/esm/graph/execution/GraphNodeExecutor.js +2 -0
- package/lib/esm/graph/execution/GraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/execution/index.js +11 -0
- package/lib/esm/graph/execution/index.js.map +1 -0
- package/lib/esm/graph/index.js +57 -0
- package/lib/esm/graph/index.js.map +1 -0
- package/lib/esm/graph/loops/ForeachGraphNodeExecutor.js +79 -0
- package/lib/esm/graph/loops/ForeachGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/loops/GraphConditionEvaluator.js +58 -0
- package/lib/esm/graph/loops/GraphConditionEvaluator.js.map +1 -0
- package/lib/esm/graph/loops/GraphLoopExecutionContext.js +11 -0
- package/lib/esm/graph/loops/GraphLoopExecutionContext.js.map +1 -0
- package/lib/esm/graph/loops/UntilGraphNodeExecutor.js +71 -0
- package/lib/esm/graph/loops/UntilGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/loops/WhileGraphNodeExecutor.js +72 -0
- package/lib/esm/graph/loops/WhileGraphNodeExecutor.js.map +1 -0
- package/lib/esm/graph/loops/index.js +11 -0
- package/lib/esm/graph/loops/index.js.map +1 -0
- package/lib/esm/graph/pinning/GraphPinningDependencyResolver.js +23 -0
- package/lib/esm/graph/pinning/GraphPinningDependencyResolver.js.map +1 -0
- package/lib/esm/graph/pinning/GraphPinningMetadata.js +15 -0
- package/lib/esm/graph/pinning/GraphPinningMetadata.js.map +1 -0
- package/lib/esm/graph/pinning/GraphPinningPolicy.js +29 -0
- package/lib/esm/graph/pinning/GraphPinningPolicy.js.map +1 -0
- package/lib/esm/graph/pinning/GraphPinningService.js +186 -0
- package/lib/esm/graph/pinning/GraphPinningService.js.map +1 -0
- package/lib/esm/graph/pinning/index.js +10 -0
- package/lib/esm/graph/pinning/index.js.map +1 -0
- package/lib/esm/graph/planning/GraphExecutionPlan.js +2 -0
- package/lib/esm/graph/planning/GraphExecutionPlan.js.map +1 -0
- package/lib/esm/graph/planning/GraphExecutionPlanEdge.js +7 -0
- package/lib/esm/graph/planning/GraphExecutionPlanEdge.js.map +1 -0
- package/lib/esm/graph/planning/GraphExecutionPlanLayer.js +2 -0
- package/lib/esm/graph/planning/GraphExecutionPlanLayer.js.map +1 -0
- package/lib/esm/graph/planning/GraphExecutionPlanNode.js +2 -0
- package/lib/esm/graph/planning/GraphExecutionPlanNode.js.map +1 -0
- package/lib/esm/graph/planning/GraphExecutionPlanner.js +192 -0
- package/lib/esm/graph/planning/GraphExecutionPlanner.js.map +1 -0
- package/lib/esm/graph/planning/GraphRelationResolver.js +167 -0
- package/lib/esm/graph/planning/GraphRelationResolver.js.map +1 -0
- package/lib/esm/graph/planning/GraphTopology.js +52 -0
- package/lib/esm/graph/planning/GraphTopology.js.map +1 -0
- package/lib/esm/graph/planning/index.js +13 -0
- package/lib/esm/graph/planning/index.js.map +1 -0
- package/lib/esm/graph/registry/GraphNodeExecutorRegistry.js +39 -0
- package/lib/esm/graph/registry/GraphNodeExecutorRegistry.js.map +1 -0
- package/lib/esm/graph/registry/GraphNodeExecutorResolver.js +22 -0
- package/lib/esm/graph/registry/GraphNodeExecutorResolver.js.map +1 -0
- package/lib/esm/graph/registry/index.js +8 -0
- package/lib/esm/graph/registry/index.js.map +1 -0
- package/lib/esm/graph/snapshots/GraphExecutionSnapshotMapper.js +48 -0
- package/lib/esm/graph/snapshots/GraphExecutionSnapshotMapper.js.map +1 -0
- package/lib/esm/graph/snapshots/index.js +7 -0
- package/lib/esm/graph/snapshots/index.js.map +1 -0
- package/lib/esm/graph/store/GraphCachedValue.js +2 -0
- package/lib/esm/graph/store/GraphCachedValue.js.map +1 -0
- package/lib/esm/graph/store/GraphValueKey.js +7 -0
- package/lib/esm/graph/store/GraphValueKey.js.map +1 -0
- package/lib/esm/graph/store/GraphValueStore.js +71 -0
- package/lib/esm/graph/store/GraphValueStore.js.map +1 -0
- package/lib/esm/graph/store/GraphValueStoreAdapter.js +2 -0
- package/lib/esm/graph/store/GraphValueStoreAdapter.js.map +1 -0
- package/lib/esm/graph/store/InMemoryGraphValueStoreAdapter.js +64 -0
- package/lib/esm/graph/store/InMemoryGraphValueStoreAdapter.js.map +1 -0
- package/lib/esm/graph/store/index.js +11 -0
- package/lib/esm/graph/store/index.js.map +1 -0
- package/lib/esm/graph/types.js +2 -0
- package/lib/esm/graph/types.js.map +1 -0
- package/lib/esm/graph/validation/GraphDefinitionValidator.js +28 -0
- package/lib/esm/graph/validation/GraphDefinitionValidator.js.map +1 -0
- package/lib/esm/graph/validation/GraphPortSchemaResolver.js +53 -0
- package/lib/esm/graph/validation/GraphPortSchemaResolver.js.map +1 -0
- package/lib/esm/graph/validation/GraphValueValidator.js +47 -0
- package/lib/esm/graph/validation/GraphValueValidator.js.map +1 -0
- package/lib/esm/graph/validation/index.js +9 -0
- package/lib/esm/graph/validation/index.js.map +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/keycloak/services/KeycloakAuthService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakClientService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRealmService.js +5 -18
- package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRoleService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakService.js +1 -1
- package/lib/esm/keycloak/services/KeycloakService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakUserService.js +2 -5
- package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaAuthService.js +3 -6
- package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDashboardService.js +6 -18
- package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDataViewService.js +4 -16
- package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaRoleService.js +2 -5
- package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaSpaceService.js +2 -5
- package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaUserService.js +2 -5
- package/lib/esm/kibana/services/KibanaUserService.js.map +1 -1
- package/lib/esm/shared/runtime.js +21 -0
- package/lib/esm/shared/runtime.js.map +1 -0
- package/lib/types/graph/constants.d.cts +101 -0
- package/lib/types/graph/constants.d.mts +101 -0
- package/lib/types/graph/decorators.d.cts +6 -0
- package/lib/types/graph/decorators.d.mts +6 -0
- package/lib/types/graph/errors/GraphCycleError.d.cts +12 -0
- package/lib/types/graph/errors/GraphCycleError.d.mts +12 -0
- package/lib/types/graph/errors/GraphExecutionError.d.cts +19 -0
- package/lib/types/graph/errors/GraphExecutionError.d.mts +19 -0
- package/lib/types/graph/errors/GraphInputError.d.cts +12 -0
- package/lib/types/graph/errors/GraphInputError.d.mts +12 -0
- package/lib/types/graph/errors/GraphLoopLimitError.d.cts +12 -0
- package/lib/types/graph/errors/GraphLoopLimitError.d.mts +12 -0
- package/lib/types/graph/errors/GraphPinningError.d.cts +12 -0
- package/lib/types/graph/errors/GraphPinningError.d.mts +12 -0
- package/lib/types/graph/errors/GraphPortError.d.cts +12 -0
- package/lib/types/graph/errors/GraphPortError.d.mts +12 -0
- package/lib/types/graph/errors/GraphStoreError.d.cts +12 -0
- package/lib/types/graph/errors/GraphStoreError.d.mts +12 -0
- package/lib/types/graph/errors/GraphTopologyError.d.cts +12 -0
- package/lib/types/graph/errors/GraphTopologyError.d.mts +12 -0
- package/lib/types/graph/errors/index.d.cts +13 -0
- package/lib/types/graph/errors/index.d.mts +13 -0
- package/lib/types/graph/events/GraphExecutionEvent.d.cts +6 -0
- package/lib/types/graph/events/GraphExecutionEvent.d.mts +6 -0
- package/lib/types/graph/events/GraphExecutionEventEmitter.d.cts +26 -0
- package/lib/types/graph/events/GraphExecutionEventEmitter.d.mts +26 -0
- package/lib/types/graph/events/GraphExecutionEventFactory.d.cts +25 -0
- package/lib/types/graph/events/GraphExecutionEventFactory.d.mts +25 -0
- package/lib/types/graph/events/GraphExecutionObserver.d.cts +17 -0
- package/lib/types/graph/events/GraphExecutionObserver.d.mts +17 -0
- package/lib/types/graph/events/index.d.cts +9 -0
- package/lib/types/graph/events/index.d.mts +9 -0
- package/lib/types/graph/execution/GraphExecutionContext.d.cts +50 -0
- package/lib/types/graph/execution/GraphExecutionContext.d.mts +50 -0
- package/lib/types/graph/execution/GraphExecutionEngine.d.cts +112 -0
- package/lib/types/graph/execution/GraphExecutionEngine.d.mts +112 -0
- package/lib/types/graph/execution/GraphExecutionFrame.d.cts +29 -0
- package/lib/types/graph/execution/GraphExecutionFrame.d.mts +29 -0
- package/lib/types/graph/execution/GraphExecutionResult.d.cts +13 -0
- package/lib/types/graph/execution/GraphExecutionResult.d.mts +13 -0
- package/lib/types/graph/execution/GraphNodeExecutor.d.cts +23 -0
- package/lib/types/graph/execution/GraphNodeExecutor.d.mts +23 -0
- package/lib/types/graph/execution/index.d.cts +10 -0
- package/lib/types/graph/execution/index.d.mts +10 -0
- package/lib/types/graph/index.d.cts +52 -0
- package/lib/types/graph/index.d.mts +52 -0
- package/lib/types/graph/loops/ForeachGraphNodeExecutor.d.cts +27 -0
- package/lib/types/graph/loops/ForeachGraphNodeExecutor.d.mts +27 -0
- package/lib/types/graph/loops/GraphConditionEvaluator.d.cts +23 -0
- package/lib/types/graph/loops/GraphConditionEvaluator.d.mts +23 -0
- package/lib/types/graph/loops/GraphLoopExecutionContext.d.cts +15 -0
- package/lib/types/graph/loops/GraphLoopExecutionContext.d.mts +15 -0
- package/lib/types/graph/loops/UntilGraphNodeExecutor.d.cts +22 -0
- package/lib/types/graph/loops/UntilGraphNodeExecutor.d.mts +22 -0
- package/lib/types/graph/loops/WhileGraphNodeExecutor.d.cts +26 -0
- package/lib/types/graph/loops/WhileGraphNodeExecutor.d.mts +26 -0
- package/lib/types/graph/loops/index.d.cts +10 -0
- package/lib/types/graph/loops/index.d.mts +10 -0
- package/lib/types/graph/pinning/GraphPinningDependencyResolver.d.cts +21 -0
- package/lib/types/graph/pinning/GraphPinningDependencyResolver.d.mts +21 -0
- package/lib/types/graph/pinning/GraphPinningMetadata.d.cts +14 -0
- package/lib/types/graph/pinning/GraphPinningMetadata.d.mts +14 -0
- package/lib/types/graph/pinning/GraphPinningPolicy.d.cts +20 -0
- package/lib/types/graph/pinning/GraphPinningPolicy.d.mts +20 -0
- package/lib/types/graph/pinning/GraphPinningService.d.cts +59 -0
- package/lib/types/graph/pinning/GraphPinningService.d.mts +59 -0
- package/lib/types/graph/pinning/index.d.cts +9 -0
- package/lib/types/graph/pinning/index.d.mts +9 -0
- package/lib/types/graph/planning/GraphExecutionPlan.d.cts +21 -0
- package/lib/types/graph/planning/GraphExecutionPlan.d.mts +21 -0
- package/lib/types/graph/planning/GraphExecutionPlanEdge.d.cts +21 -0
- package/lib/types/graph/planning/GraphExecutionPlanEdge.d.mts +21 -0
- package/lib/types/graph/planning/GraphExecutionPlanLayer.d.cts +13 -0
- package/lib/types/graph/planning/GraphExecutionPlanLayer.d.mts +13 -0
- package/lib/types/graph/planning/GraphExecutionPlanNode.d.cts +20 -0
- package/lib/types/graph/planning/GraphExecutionPlanNode.d.mts +20 -0
- package/lib/types/graph/planning/GraphExecutionPlanner.d.cts +60 -0
- package/lib/types/graph/planning/GraphExecutionPlanner.d.mts +60 -0
- package/lib/types/graph/planning/GraphRelationResolver.d.cts +62 -0
- package/lib/types/graph/planning/GraphRelationResolver.d.mts +62 -0
- package/lib/types/graph/planning/GraphTopology.d.cts +23 -0
- package/lib/types/graph/planning/GraphTopology.d.mts +23 -0
- package/lib/types/graph/planning/index.d.cts +12 -0
- package/lib/types/graph/planning/index.d.mts +12 -0
- package/lib/types/graph/registry/GraphNodeExecutorRegistry.d.cts +25 -0
- package/lib/types/graph/registry/GraphNodeExecutorRegistry.d.mts +25 -0
- package/lib/types/graph/registry/GraphNodeExecutorResolver.d.cts +21 -0
- package/lib/types/graph/registry/GraphNodeExecutorResolver.d.mts +21 -0
- package/lib/types/graph/registry/index.d.cts +7 -0
- package/lib/types/graph/registry/index.d.mts +7 -0
- package/lib/types/graph/snapshots/GraphExecutionSnapshotMapper.d.cts +10 -0
- package/lib/types/graph/snapshots/GraphExecutionSnapshotMapper.d.mts +10 -0
- package/lib/types/graph/snapshots/index.d.cts +6 -0
- package/lib/types/graph/snapshots/index.d.mts +6 -0
- package/lib/types/graph/store/GraphCachedValue.d.cts +20 -0
- package/lib/types/graph/store/GraphCachedValue.d.mts +20 -0
- package/lib/types/graph/store/GraphValueKey.d.cts +18 -0
- package/lib/types/graph/store/GraphValueKey.d.mts +18 -0
- package/lib/types/graph/store/GraphValueStore.d.cts +41 -0
- package/lib/types/graph/store/GraphValueStore.d.mts +41 -0
- package/lib/types/graph/store/GraphValueStoreAdapter.d.cts +32 -0
- package/lib/types/graph/store/GraphValueStoreAdapter.d.mts +32 -0
- package/lib/types/graph/store/InMemoryGraphValueStoreAdapter.d.cts +33 -0
- package/lib/types/graph/store/InMemoryGraphValueStoreAdapter.d.mts +33 -0
- package/lib/types/graph/store/index.d.cts +10 -0
- package/lib/types/graph/store/index.d.mts +10 -0
- package/lib/types/graph/types.d.cts +197 -0
- package/lib/types/graph/types.d.mts +197 -0
- package/lib/types/graph/validation/GraphDefinitionValidator.d.cts +21 -0
- package/lib/types/graph/validation/GraphDefinitionValidator.d.mts +21 -0
- package/lib/types/graph/validation/GraphPortSchemaResolver.d.cts +39 -0
- package/lib/types/graph/validation/GraphPortSchemaResolver.d.mts +39 -0
- package/lib/types/graph/validation/GraphValueValidator.d.cts +27 -0
- package/lib/types/graph/validation/GraphValueValidator.d.mts +27 -0
- package/lib/types/graph/validation/index.d.cts +8 -0
- package/lib/types/graph/validation/index.d.mts +8 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/keycloak/services/KeycloakAuthService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakAuthService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakClientService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakClientService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakIdentityProviderService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakRealmService.d.cts +0 -2
- package/lib/types/keycloak/services/KeycloakRealmService.d.mts +0 -2
- package/lib/types/keycloak/services/KeycloakRoleService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakRoleService.d.mts +0 -1
- package/lib/types/keycloak/services/KeycloakUserService.d.cts +0 -1
- package/lib/types/keycloak/services/KeycloakUserService.d.mts +0 -1
- package/lib/types/keycloak/types.d.cts +4 -1
- package/lib/types/keycloak/types.d.mts +4 -1
- package/lib/types/kibana/services/KibanaAuthService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaAuthService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaDashboardService.d.cts +0 -2
- package/lib/types/kibana/services/KibanaDashboardService.d.mts +0 -2
- package/lib/types/kibana/services/KibanaDataViewService.d.cts +0 -2
- package/lib/types/kibana/services/KibanaDataViewService.d.mts +0 -2
- package/lib/types/kibana/services/KibanaRoleService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaRoleService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaSpaceService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaSpaceService.d.mts +0 -1
- package/lib/types/kibana/services/KibanaUserService.d.cts +0 -1
- package/lib/types/kibana/services/KibanaUserService.d.mts +0 -1
- package/lib/types/kibana/types.d.cts +4 -1
- package/lib/types/kibana/types.d.mts +4 -1
- package/lib/types/shared/runtime.d.cts +2 -0
- package/lib/types/shared/runtime.d.mts +2 -0
- package/package.json +21 -7
package/dist/integrations.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,o;e=this,o=(e,o,i,n)=>{"use strict";e.COMMIT="
|
|
1
|
+
var e,o;e=this,o=(e,o,i,n)=>{"use strict";e.COMMIT="538f19e",e.FULL_VERSION="0.3.1-538f19e",e.PACKAGE_NAME="@decaf-ts/integrations",e.VERSION="0.3.1",e.execWithLogging=async(e,t,r,d=i.LogLevel.info)=>(r.debug("Executing: "+e),new Promise((i,s)=>{const c=o.exec(e,t),a=[],l=[];c.stdout?.on("data",e=>{a.push(e),r[d](e.trim())}),c.stderr?.on("data",e=>{l.push(e),r.debug(e.trim())}),c.on("close",e=>{0===e?(r.silly("Command completed successfully"),i({stdout:a.join("\n"),stderr:l.join("\n")})):(r.critical(`Command failed with code ${e}:\n ${l.join("\n")}`),s(new n.InternalError(`Command failed with code ${e}: ${l.join("\n")}`)))}),c.on("error",e=>{r.critical("Command execution error",e),s(e)})}))},"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("child_process"),require("@decaf-ts/logging"),require("@decaf-ts/db-decorators")):"function"==typeof define&&define.amd?define(["exports","child_process","@decaf-ts/logging","@decaf-ts/db-decorators"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).integrations={},e.childProcess,e.decafTsLogging,e.decafTsDbDecorators);
|
|
2
2
|
//# sourceMappingURL=integrations.cjs.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GRAPH_LOOP_KIND = exports.GraphConditionType = exports.GraphPinningStrategy = exports.GraphExecutionEventType = exports.GraphExecutionStatus = exports.GRAPH_PINNING_METADATA_KEY = exports.GRAPH_DEFAULT_MAX_FOREACH_ITERATIONS = exports.GRAPH_DEFAULT_MAX_LOOP_ITERATIONS = exports.GRAPH_DEFAULT_CONCURRENCY = exports.GRAPH_WORKFLOW_BOUNDARY = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/constants
|
|
6
|
+
* @summary Graph execution engine constants and enums.
|
|
7
|
+
* @description Shared constants, default limits, and enumerations used across the graph execution engine.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Boundary identifier used as the node id for workflow-level input/output ports.
|
|
11
|
+
*/
|
|
12
|
+
exports.GRAPH_WORKFLOW_BOUNDARY = "$workflow";
|
|
13
|
+
/**
|
|
14
|
+
* Default concurrency for parallel node execution within a layer.
|
|
15
|
+
*/
|
|
16
|
+
exports.GRAPH_DEFAULT_CONCURRENCY = 4;
|
|
17
|
+
/**
|
|
18
|
+
* Default maximum iterations for `while` and `until` loop nodes.
|
|
19
|
+
*/
|
|
20
|
+
exports.GRAPH_DEFAULT_MAX_LOOP_ITERATIONS = 100;
|
|
21
|
+
/**
|
|
22
|
+
* Default maximum iterations for `foreach` loop nodes.
|
|
23
|
+
*/
|
|
24
|
+
exports.GRAPH_DEFAULT_MAX_FOREACH_ITERATIONS = 1000;
|
|
25
|
+
/**
|
|
26
|
+
* Metadata key under which pinning information is stored on a graph node.
|
|
27
|
+
*/
|
|
28
|
+
exports.GRAPH_PINNING_METADATA_KEY = "graph.pinnable";
|
|
29
|
+
(function (GraphExecutionStatus) {
|
|
30
|
+
GraphExecutionStatus["PENDING"] = "pending";
|
|
31
|
+
GraphExecutionStatus["PLANNING"] = "planning";
|
|
32
|
+
GraphExecutionStatus["RUNNING"] = "running";
|
|
33
|
+
GraphExecutionStatus["SUCCEEDED"] = "succeeded";
|
|
34
|
+
GraphExecutionStatus["FAILED"] = "failed";
|
|
35
|
+
GraphExecutionStatus["SKIPPED"] = "skipped";
|
|
36
|
+
GraphExecutionStatus["CANCELLED"] = "cancelled";
|
|
37
|
+
GraphExecutionStatus["CACHED"] = "cached";
|
|
38
|
+
})(exports.GraphExecutionStatus || (exports.GraphExecutionStatus = {}));
|
|
39
|
+
(function (GraphExecutionEventType) {
|
|
40
|
+
GraphExecutionEventType["WORKFLOW_STARTED"] = "workflow.started";
|
|
41
|
+
GraphExecutionEventType["WORKFLOW_PLANNED"] = "workflow.planned";
|
|
42
|
+
GraphExecutionEventType["WORKFLOW_COMPLETED"] = "workflow.completed";
|
|
43
|
+
GraphExecutionEventType["WORKFLOW_FAILED"] = "workflow.failed";
|
|
44
|
+
GraphExecutionEventType["WORKFLOW_CANCELLED"] = "workflow.cancelled";
|
|
45
|
+
GraphExecutionEventType["NODE_QUEUED"] = "node.queued";
|
|
46
|
+
GraphExecutionEventType["NODE_STARTED"] = "node.started";
|
|
47
|
+
GraphExecutionEventType["NODE_OUTPUT"] = "node.output";
|
|
48
|
+
GraphExecutionEventType["NODE_COMPLETED"] = "node.completed";
|
|
49
|
+
GraphExecutionEventType["NODE_FAILED"] = "node.failed";
|
|
50
|
+
GraphExecutionEventType["NODE_SKIPPED"] = "node.skipped";
|
|
51
|
+
GraphExecutionEventType["NODE_CACHE_HIT"] = "node.cacheHit";
|
|
52
|
+
GraphExecutionEventType["NODE_PINNED"] = "node.pinned";
|
|
53
|
+
GraphExecutionEventType["NODE_UNPINNED"] = "node.unpinned";
|
|
54
|
+
GraphExecutionEventType["EDGE_VALUE_ROUTED"] = "edge.valueRouted";
|
|
55
|
+
GraphExecutionEventType["LOOP_STARTED"] = "loop.started";
|
|
56
|
+
GraphExecutionEventType["LOOP_ITERATION_STARTED"] = "loop.iteration.started";
|
|
57
|
+
GraphExecutionEventType["LOOP_ITERATION_COMPLETED"] = "loop.iteration.completed";
|
|
58
|
+
GraphExecutionEventType["LOOP_CONDITION_EVALUATED"] = "loop.condition.evaluated";
|
|
59
|
+
GraphExecutionEventType["LOOP_COMPLETED"] = "loop.completed";
|
|
60
|
+
GraphExecutionEventType["LOOP_LIMIT_REACHED"] = "loop.limitReached";
|
|
61
|
+
GraphExecutionEventType["VALIDATION_STARTED"] = "validation.started";
|
|
62
|
+
GraphExecutionEventType["VALIDATION_FAILED"] = "validation.failed";
|
|
63
|
+
GraphExecutionEventType["VALIDATION_COMPLETED"] = "validation.completed";
|
|
64
|
+
GraphExecutionEventType["STORE_READ"] = "store.read";
|
|
65
|
+
GraphExecutionEventType["STORE_WRITE"] = "store.write";
|
|
66
|
+
GraphExecutionEventType["STORE_DELETE"] = "store.delete";
|
|
67
|
+
})(exports.GraphExecutionEventType || (exports.GraphExecutionEventType = {}));
|
|
68
|
+
(function (GraphPinningStrategy) {
|
|
69
|
+
GraphPinningStrategy["MANUAL"] = "manual";
|
|
70
|
+
GraphPinningStrategy["AUTOMATIC"] = "automatic";
|
|
71
|
+
GraphPinningStrategy["DISABLED"] = "disabled";
|
|
72
|
+
})(exports.GraphPinningStrategy || (exports.GraphPinningStrategy = {}));
|
|
73
|
+
(function (GraphConditionType) {
|
|
74
|
+
GraphConditionType["TRUTHY"] = "truthy";
|
|
75
|
+
GraphConditionType["FALSY"] = "falsy";
|
|
76
|
+
GraphConditionType["EQUALS"] = "equals";
|
|
77
|
+
GraphConditionType["NOT_EQUALS"] = "notEquals";
|
|
78
|
+
GraphConditionType["GREATER_THAN"] = "greaterThan";
|
|
79
|
+
GraphConditionType["GREATER_THAN_OR_EQUAL"] = "greaterThanOrEqual";
|
|
80
|
+
GraphConditionType["LESS_THAN"] = "lessThan";
|
|
81
|
+
GraphConditionType["LESS_THAN_OR_EQUAL"] = "lessThanOrEqual";
|
|
82
|
+
GraphConditionType["EXISTS"] = "exists";
|
|
83
|
+
GraphConditionType["CUSTOM"] = "custom";
|
|
84
|
+
})(exports.GraphConditionType || (exports.GraphConditionType = {}));
|
|
85
|
+
/**
|
|
86
|
+
* Loop node kinds recognised by the engine.
|
|
87
|
+
*/
|
|
88
|
+
exports.GRAPH_LOOP_KIND = {
|
|
89
|
+
FOREACH: "core.loop.foreach",
|
|
90
|
+
WHILE: "core.loop.while",
|
|
91
|
+
UNTIL: "core.loop.until",
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=constants.js.map
|
|
94
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/constants.cjs","sourceRoot":"","sources":["graph/constants.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/decorators.cjs","sourceRoot":"","sources":["graph/decorators.js"],"names":[],"mappings":";;AACA,sCAAsC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphCycleError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphCycleError
|
|
6
|
+
* @summary Error thrown when a workflow contains an unsupported cycle.
|
|
7
|
+
* @description Ordinary (non-loop) workflow graphs must be acyclic. This error is raised when the planner detects a cycle.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when a graph workflow contains an unsupported cycle.
|
|
12
|
+
*/
|
|
13
|
+
class GraphCycleError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(details) {
|
|
15
|
+
super("Graph workflow contains an unsupported cycle", "GRAPH_CYCLE_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphCycleError = GraphCycleError;
|
|
19
|
+
//# sourceMappingURL=GraphCycleError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphCycleError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphCycleError.cjs","sourceRoot":"","sources":["graph/errors/GraphCycleError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,eAAgB,SAAQ,4CAAmB;IACpD,YAAY,OAAO;QACf,KAAK,CAAC,8CAA8C,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;CACJ;AAJD,0CAIC;AACD,2CAA2C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphExecutionError
|
|
6
|
+
* @summary Base error for all graph execution failures.
|
|
7
|
+
* @description Extends Decaf's {@link InternalError} so graph errors follow the standard Decaf error hierarchy while carrying a graph-specific string code.
|
|
8
|
+
*/
|
|
9
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
10
|
+
/**
|
|
11
|
+
* Base error for the graph execution engine.
|
|
12
|
+
*
|
|
13
|
+
* Extends `InternalError` (HTTP 500) to comply with the Decaf constitution which
|
|
14
|
+
* requires runtime errors to be `BaseError` subclasses. The additional
|
|
15
|
+
* `graphCode` property carries a machine-readable string code such as
|
|
16
|
+
* `"GRAPH_CYCLE_ERROR"`.
|
|
17
|
+
*/
|
|
18
|
+
class GraphExecutionError extends db_decorators_1.InternalError {
|
|
19
|
+
constructor(message, graphCode = "GRAPH_EXECUTION_ERROR", details) {
|
|
20
|
+
super(message, GraphExecutionError.name, 500);
|
|
21
|
+
this.graphCode = graphCode;
|
|
22
|
+
this.details = details;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.GraphExecutionError = GraphExecutionError;
|
|
26
|
+
//# sourceMappingURL=GraphExecutionError.js.map
|
|
27
|
+
//# sourceMappingURL=GraphExecutionError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphExecutionError.cjs","sourceRoot":"","sources":["graph/errors/GraphExecutionError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,2DAAwD;AACxD;;;;;;;GAOG;AACH,MAAa,mBAAoB,SAAQ,6BAAa;IAClD,YAAY,OAAO,EAAE,SAAS,GAAG,uBAAuB,EAAE,OAAO;QAC7D,KAAK,CAAC,OAAO,EAAE,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;CACJ;AAND,kDAMC;AACD,+CAA+C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphInputError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphInputError
|
|
6
|
+
* @summary Error thrown when workflow or node inputs are invalid.
|
|
7
|
+
* @description Raised by the value validator when required inputs are missing or fail schema validation.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when workflow or node inputs are invalid.
|
|
12
|
+
*/
|
|
13
|
+
class GraphInputError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_INPUT_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphInputError = GraphInputError;
|
|
19
|
+
//# sourceMappingURL=GraphInputError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphInputError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphInputError.cjs","sourceRoot":"","sources":["graph/errors/GraphInputError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,eAAgB,SAAQ,4CAAmB;IACpD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACJ;AAJD,0CAIC;AACD,2CAA2C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphLoopLimitError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphLoopLimitError
|
|
6
|
+
* @summary Error thrown when a loop exceeds its maximum iterations.
|
|
7
|
+
* @description Raised by loop executors when the iteration count reaches the configured safety limit.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when a loop exceeds its maximum iterations.
|
|
12
|
+
*/
|
|
13
|
+
class GraphLoopLimitError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_LOOP_LIMIT_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphLoopLimitError = GraphLoopLimitError;
|
|
19
|
+
//# sourceMappingURL=GraphLoopLimitError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphLoopLimitError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphLoopLimitError.cjs","sourceRoot":"","sources":["graph/errors/GraphLoopLimitError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,mBAAoB,SAAQ,4CAAmB;IACxD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CACJ;AAJD,kDAIC;AACD,+CAA+C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphPinningError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphPinningError
|
|
6
|
+
* @summary Error thrown when a pinning operation fails.
|
|
7
|
+
* @description Raised when a node cannot be pinned, e.g. because an upstream dependency is not pinnable.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when a pinning operation fails.
|
|
12
|
+
*/
|
|
13
|
+
class GraphPinningError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_PINNING_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphPinningError = GraphPinningError;
|
|
19
|
+
//# sourceMappingURL=GraphPinningError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphPinningError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphPinningError.cjs","sourceRoot":"","sources":["graph/errors/GraphPinningError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,iBAAkB,SAAQ,4CAAmB;IACtD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACJ;AAJD,8CAIC;AACD,6CAA6C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphPortError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphPortError
|
|
6
|
+
* @summary Error thrown when a port reference is invalid.
|
|
7
|
+
* @description Raised by the relation resolver or validator when a referenced port is missing or unknown.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when a port reference is invalid.
|
|
12
|
+
*/
|
|
13
|
+
class GraphPortError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_PORT_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphPortError = GraphPortError;
|
|
19
|
+
//# sourceMappingURL=GraphPortError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphPortError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphPortError.cjs","sourceRoot":"","sources":["graph/errors/GraphPortError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,cAAe,SAAQ,4CAAmB;IACnD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACJ;AAJD,wCAIC;AACD,0CAA0C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphStoreError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphStoreError
|
|
6
|
+
* @summary Error thrown when a value store operation fails.
|
|
7
|
+
* @description Raised by the value store or adapter when reading, writing, or deleting cached values fails.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when a value store operation fails.
|
|
12
|
+
*/
|
|
13
|
+
class GraphStoreError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_STORE_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphStoreError = GraphStoreError;
|
|
19
|
+
//# sourceMappingURL=GraphStoreError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphStoreError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphStoreError.cjs","sourceRoot":"","sources":["graph/errors/GraphStoreError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,eAAgB,SAAQ,4CAAmB;IACpD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;CACJ;AAJD,0CAIC;AACD,2CAA2C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphTopologyError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/errors/GraphTopologyError
|
|
6
|
+
* @summary Error thrown when workflow topology is invalid.
|
|
7
|
+
* @description Raised by the relation resolver or planner when an endpoint is unknown or ambiguous.
|
|
8
|
+
*/
|
|
9
|
+
const GraphExecutionError_js_1 = require("./GraphExecutionError.cjs");
|
|
10
|
+
/**
|
|
11
|
+
* Thrown when workflow topology is invalid.
|
|
12
|
+
*/
|
|
13
|
+
class GraphTopologyError extends GraphExecutionError_js_1.GraphExecutionError {
|
|
14
|
+
constructor(message, details) {
|
|
15
|
+
super(message, "GRAPH_TOPOLOGY_ERROR", details);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GraphTopologyError = GraphTopologyError;
|
|
19
|
+
//# sourceMappingURL=GraphTopologyError.js.map
|
|
20
|
+
//# sourceMappingURL=GraphTopologyError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/GraphTopologyError.cjs","sourceRoot":"","sources":["graph/errors/GraphTopologyError.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,qEAA+D;AAC/D;;GAEG;AACH,MAAa,kBAAmB,SAAQ,4CAAmB;IACvD,YAAY,OAAO,EAAE,OAAO;QACxB,KAAK,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACJ;AAJD,gDAIC;AACD,8CAA8C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/graph/errors
|
|
19
|
+
* @summary Graph execution error classes.
|
|
20
|
+
* @description Re-exports all structured error types used by the graph execution engine.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GraphExecutionError.cjs"), exports);
|
|
23
|
+
__exportStar(require("./GraphCycleError.cjs"), exports);
|
|
24
|
+
__exportStar(require("./GraphInputError.cjs"), exports);
|
|
25
|
+
__exportStar(require("./GraphLoopLimitError.cjs"), exports);
|
|
26
|
+
__exportStar(require("./GraphPinningError.cjs"), exports);
|
|
27
|
+
__exportStar(require("./GraphPortError.cjs"), exports);
|
|
28
|
+
__exportStar(require("./GraphStoreError.cjs"), exports);
|
|
29
|
+
__exportStar(require("./GraphTopologyError.cjs"), exports);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
31
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/errors/index.cjs","sourceRoot":"","sources":["graph/errors/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,2DAAyC;AACzC,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,iCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/events/GraphExecutionEvent.cjs","sourceRoot":"","sources":["graph/events/GraphExecutionEvent.js"],"names":[],"mappings":";;AACA,+CAA+C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionEventEmitter = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Manages observer registration and event dispatch for the graph execution
|
|
6
|
+
* engine.
|
|
7
|
+
*/
|
|
8
|
+
class GraphExecutionEventEmitter {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.observers = new Set();
|
|
11
|
+
}
|
|
12
|
+
/** Registers an observer and returns an unsubscribe function. */
|
|
13
|
+
observe(observer) {
|
|
14
|
+
this.observers.add(observer);
|
|
15
|
+
return () => this.unObserve(observer);
|
|
16
|
+
}
|
|
17
|
+
/** Removes a previously-registered observer. */
|
|
18
|
+
unObserve(observer) {
|
|
19
|
+
this.observers.delete(observer);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Notifies all registered observers of a new event.
|
|
23
|
+
*
|
|
24
|
+
* Observer failures are caught and swallowed so that a misbehaving observer
|
|
25
|
+
* cannot crash the workflow execution.
|
|
26
|
+
*/
|
|
27
|
+
async updateObservers(event) {
|
|
28
|
+
await Promise.all(Array.from(this.observers).map(async (observer) => {
|
|
29
|
+
try {
|
|
30
|
+
await Promise.resolve(observer.refresh(event));
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// Observer failures must not crash execution.
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.GraphExecutionEventEmitter = GraphExecutionEventEmitter;
|
|
39
|
+
//# sourceMappingURL=GraphExecutionEventEmitter.js.map
|
|
40
|
+
//# sourceMappingURL=GraphExecutionEventEmitter.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/events/GraphExecutionEventEmitter.cjs","sourceRoot":"","sources":["graph/events/GraphExecutionEventEmitter.js"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,0BAA0B;IACnC;QACI,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;IAC/B,CAAC;IACD,iEAAiE;IACjE,OAAO,CAAC,QAAQ;QACZ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IACD,gDAAgD;IAChD,SAAS,CAAC,QAAQ;QACd,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACD;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CAAC,KAAK;QACvB,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;YAChE,IAAI,CAAC;gBACD,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;YACnD,CAAC;YACD,MAAM,CAAC;gBACH,8CAA8C;YAClD,CAAC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;CACJ;AA7BD,gEA6BC;AACD,sDAAsD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionEventFactory = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Factory that enriches partial events with a unique id, an incrementing
|
|
6
|
+
* sequence number, and a timestamp.
|
|
7
|
+
*/
|
|
8
|
+
class GraphExecutionEventFactory {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.sequence = 0;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a fully-populated event from the given base fields.
|
|
14
|
+
*
|
|
15
|
+
* @param base - All event fields except `id`, `sequence`, and `timestamp`.
|
|
16
|
+
* @returns A complete {@link GraphExecutionEvent}.
|
|
17
|
+
*/
|
|
18
|
+
create(base) {
|
|
19
|
+
return {
|
|
20
|
+
...base,
|
|
21
|
+
id: this.createEventId(),
|
|
22
|
+
sequence: ++this.sequence,
|
|
23
|
+
timestamp: new Date(),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Generates a unique event id using `crypto.randomUUID` when available,
|
|
28
|
+
* falling back to a timestamp + random string.
|
|
29
|
+
*/
|
|
30
|
+
createEventId() {
|
|
31
|
+
return (globalThis.crypto?.randomUUID?.() ??
|
|
32
|
+
`${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.GraphExecutionEventFactory = GraphExecutionEventFactory;
|
|
36
|
+
//# sourceMappingURL=GraphExecutionEventFactory.js.map
|
|
37
|
+
//# sourceMappingURL=GraphExecutionEventFactory.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/events/GraphExecutionEventFactory.cjs","sourceRoot":"","sources":["graph/events/GraphExecutionEventFactory.js"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,0BAA0B;IACnC;QACI,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACtB,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,IAAI;QACP,OAAO;YACH,GAAG,IAAI;YACP,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE;YACxB,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ;YACzB,SAAS,EAAE,IAAI,IAAI,EAAE;SACxB,CAAC;IACN,CAAC;IACD;;;OAGG;IACH,aAAa;QACT,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YACrC,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;CACJ;AA1BD,gEA0BC;AACD,sDAAsD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/events/GraphExecutionObserver.cjs","sourceRoot":"","sources":["graph/events/GraphExecutionObserver.js"],"names":[],"mappings":";;AACA,kDAAkD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module integrations/graph/events
|
|
19
|
+
* @summary Graph execution event pipeline.
|
|
20
|
+
* @description Re-exports the observer interface, event emitter, and event factory.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GraphExecutionEvent.cjs"), exports);
|
|
23
|
+
__exportStar(require("./GraphExecutionObserver.cjs"), exports);
|
|
24
|
+
__exportStar(require("./GraphExecutionEventEmitter.cjs"), exports);
|
|
25
|
+
__exportStar(require("./GraphExecutionEventFactory.cjs"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
27
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/events/index.cjs","sourceRoot":"","sources":["graph/events/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,iCAAiC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionContext = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/execution/GraphExecutionContext
|
|
6
|
+
* @summary Decaf Context for graph node execution.
|
|
7
|
+
* @description Extends Decaf's {@link Context} so node executors receive the same contextual plumbing as task handlers. Executors use the context to emit progress, log messages, and report state through the engine's observer pipeline.
|
|
8
|
+
*/
|
|
9
|
+
const core_1 = require("@decaf-ts/core");
|
|
10
|
+
const constants_js_1 = require("./../constants.cjs");
|
|
11
|
+
/**
|
|
12
|
+
* Context passed to every graph node executor.
|
|
13
|
+
*
|
|
14
|
+
* Mirrors the `TaskEngine` / `TaskContext` pattern: the engine creates a
|
|
15
|
+
* `GraphExecutionContext` per node execution and passes it to
|
|
16
|
+
* `executor.execute(inputs, context)`. The executor uses `context.progress(...)`
|
|
17
|
+
* and `context.log(...)` to report intermediate state.
|
|
18
|
+
*/
|
|
19
|
+
class GraphExecutionContext extends core_1.Context {
|
|
20
|
+
/**
|
|
21
|
+
* @param runId - Unique identifier for the current execution run.
|
|
22
|
+
* @param parentRunId - Run id of the parent execution (for nested loop bodies).
|
|
23
|
+
* @param workflow - The workflow definition being executed.
|
|
24
|
+
* @param node - The node definition being executed.
|
|
25
|
+
* @param path - Dotted path from the workflow root to this node.
|
|
26
|
+
* @param emitFn - Callback invoked when an event is emitted from this context.
|
|
27
|
+
* @param metadata - Free-form metadata attached to this context.
|
|
28
|
+
*/
|
|
29
|
+
constructor(runId, parentRunId, workflow, node, path, emitFn, metadata = {}) {
|
|
30
|
+
super();
|
|
31
|
+
this.runId = runId;
|
|
32
|
+
this.parentRunId = parentRunId;
|
|
33
|
+
this.workflow = workflow;
|
|
34
|
+
this.node = node;
|
|
35
|
+
this.path = path;
|
|
36
|
+
this.emitFn = emitFn;
|
|
37
|
+
this.metadata = metadata;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Emits a partial graph execution event. The engine fills in runId,
|
|
41
|
+
* parentRunId, workflowId, nodeId, and path automatically.
|
|
42
|
+
*/
|
|
43
|
+
async emit(event) {
|
|
44
|
+
await this.emitFn({
|
|
45
|
+
...event,
|
|
46
|
+
runId: this.runId,
|
|
47
|
+
parentRunId: this.parentRunId,
|
|
48
|
+
workflowId: this.workflow.name,
|
|
49
|
+
nodeId: this.node.name,
|
|
50
|
+
path: event.path ?? this.path,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Emits a `NODE_OUTPUT` event with the given payload, useful for reporting
|
|
55
|
+
* intermediate progress from within a node executor.
|
|
56
|
+
*/
|
|
57
|
+
async progress(payload) {
|
|
58
|
+
await this.emit({
|
|
59
|
+
type: constants_js_1.GraphExecutionEventType.NODE_OUTPUT,
|
|
60
|
+
payload,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Emits a `NODE_OUTPUT` event with a structured `{ message, payload }` shape
|
|
65
|
+
* so executors can log human-readable messages.
|
|
66
|
+
*/
|
|
67
|
+
async log(message, payload) {
|
|
68
|
+
await this.emit({
|
|
69
|
+
type: constants_js_1.GraphExecutionEventType.NODE_OUTPUT,
|
|
70
|
+
payload: {
|
|
71
|
+
message,
|
|
72
|
+
payload,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.GraphExecutionContext = GraphExecutionContext;
|
|
78
|
+
//# sourceMappingURL=GraphExecutionContext.js.map
|
|
79
|
+
//# sourceMappingURL=GraphExecutionContext.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/GraphExecutionContext.cjs","sourceRoot":"","sources":["graph/execution/GraphExecutionContext.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,yCAAyC;AACzC,oDAA4D;AAC5D;;;;;;;GAOG;AACH,MAAa,qBAAsB,SAAQ,cAAO;IAC9C;;;;;;;;OAQG;IACH,YAAY,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAG,EAAE;QACvE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,KAAK;QACZ,MAAM,IAAI,CAAC,MAAM,CAAC;YACd,GAAG,KAAK;YACR,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI;YAC9B,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAO;QAClB,MAAM,IAAI,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,sCAAuB,CAAC,WAAW;YACzC,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO;QACtB,MAAM,IAAI,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,sCAAuB,CAAC,WAAW;YACzC,OAAO,EAAE;gBACL,OAAO;gBACP,OAAO;aACV;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAzDD,sDAyDC;AACD,iDAAiD"}
|