@decaf-ts/integrations 0.3.1 → 0.3.3
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 -2
- package/lib/cjs/keycloak/services/KeycloakAuthService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakClientService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakIdentityProviderService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakRealmService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakRoleService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakService.cjs +16 -9
- package/lib/cjs/keycloak/services/KeycloakService.cjs.map +1 -1
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs +2 -2
- package/lib/cjs/keycloak/services/KeycloakUserService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaAuthService.cjs +3 -3
- package/lib/cjs/kibana/services/KibanaAuthService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs +3 -3
- package/lib/cjs/kibana/services/KibanaDashboardService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaDataViewService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaRoleService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaRoleService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaService.cjs +16 -9
- package/lib/cjs/kibana/services/KibanaService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaSpaceService.cjs.map +1 -1
- package/lib/cjs/kibana/services/KibanaUserService.cjs +2 -2
- package/lib/cjs/kibana/services/KibanaUserService.cjs.map +1 -1
- 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 -2
- package/lib/esm/keycloak/services/KeycloakAuthService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakClientService.js +2 -2
- package/lib/esm/keycloak/services/KeycloakClientService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js +2 -2
- package/lib/esm/keycloak/services/KeycloakIdentityProviderService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRealmService.js +2 -2
- package/lib/esm/keycloak/services/KeycloakRealmService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakRoleService.js +2 -2
- package/lib/esm/keycloak/services/KeycloakRoleService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakService.js +16 -9
- package/lib/esm/keycloak/services/KeycloakService.js.map +1 -1
- package/lib/esm/keycloak/services/KeycloakUserService.js +2 -2
- package/lib/esm/keycloak/services/KeycloakUserService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaAuthService.js +3 -3
- package/lib/esm/kibana/services/KibanaAuthService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDashboardService.js +3 -3
- package/lib/esm/kibana/services/KibanaDashboardService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaDataViewService.js +2 -2
- package/lib/esm/kibana/services/KibanaDataViewService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaRoleService.js +2 -2
- package/lib/esm/kibana/services/KibanaRoleService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaService.js +16 -9
- package/lib/esm/kibana/services/KibanaService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaSpaceService.js +2 -2
- package/lib/esm/kibana/services/KibanaSpaceService.js.map +1 -1
- package/lib/esm/kibana/services/KibanaUserService.js +2 -2
- package/lib/esm/kibana/services/KibanaUserService.js.map +1 -1
- 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/KeycloakService.d.cts +1 -0
- package/lib/types/keycloak/services/KeycloakService.d.mts +1 -0
- package/lib/types/keycloak/types.d.cts +1 -4
- package/lib/types/keycloak/types.d.mts +1 -4
- package/lib/types/kibana/services/KibanaService.d.cts +1 -0
- package/lib/types/kibana/services/KibanaService.d.mts +1 -0
- package/lib/types/kibana/types.d.cts +1 -4
- package/lib/types/kibana/types.d.mts +1 -4
- package/package.json +17 -3
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionEngine = void 0;
|
|
4
|
+
const constants_js_1 = require("./../constants.cjs");
|
|
5
|
+
const GraphExecutionEventEmitter_js_1 = require("./../events/GraphExecutionEventEmitter.cjs");
|
|
6
|
+
const GraphExecutionEventFactory_js_1 = require("./../events/GraphExecutionEventFactory.cjs");
|
|
7
|
+
const GraphExecutionPlanner_js_1 = require("./../planning/GraphExecutionPlanner.cjs");
|
|
8
|
+
const InMemoryGraphValueStoreAdapter_js_1 = require("./../store/InMemoryGraphValueStoreAdapter.cjs");
|
|
9
|
+
const GraphValueStore_js_1 = require("./../store/GraphValueStore.cjs");
|
|
10
|
+
const GraphPinningService_js_1 = require("./../pinning/GraphPinningService.cjs");
|
|
11
|
+
const GraphPinningPolicy_js_1 = require("./../pinning/GraphPinningPolicy.cjs");
|
|
12
|
+
const GraphPinningDependencyResolver_js_1 = require("./../pinning/GraphPinningDependencyResolver.cjs");
|
|
13
|
+
const GraphExecutionContext_js_1 = require("./GraphExecutionContext.cjs");
|
|
14
|
+
const GraphExecutionFrame_js_1 = require("./GraphExecutionFrame.cjs");
|
|
15
|
+
const GraphExecutionResult_js_1 = require("./GraphExecutionResult.cjs");
|
|
16
|
+
/**
|
|
17
|
+
* Reference graph execution engine.
|
|
18
|
+
*
|
|
19
|
+
* Executes a {@link GraphWorkflowDefinition} by:
|
|
20
|
+
* 1. Planning the workflow into topological layers.
|
|
21
|
+
* 2. Seeding workflow inputs into the value store.
|
|
22
|
+
* 3. Executing nodes layer-by-layer with configurable concurrency.
|
|
23
|
+
* 4. Routing values along edges.
|
|
24
|
+
* 5. Emitting structured events through Decaf's Observable pipeline.
|
|
25
|
+
* 6. Returning a complete {@link GraphExecutionResult}.
|
|
26
|
+
*/
|
|
27
|
+
class GraphExecutionEngine {
|
|
28
|
+
constructor(config) {
|
|
29
|
+
this.emitter = config.eventEmitter ?? new GraphExecutionEventEmitter_js_1.GraphExecutionEventEmitter();
|
|
30
|
+
this.planner = config.planner ?? new GraphExecutionPlanner_js_1.GraphExecutionPlanner();
|
|
31
|
+
this.valueStoreAdapter =
|
|
32
|
+
config.valueStoreAdapter ?? new InMemoryGraphValueStoreAdapter_js_1.InMemoryGraphValueStoreAdapter();
|
|
33
|
+
this.defaultOptions = config.defaultOptions ?? {};
|
|
34
|
+
this.config = config;
|
|
35
|
+
}
|
|
36
|
+
observe(observer) {
|
|
37
|
+
return this.emitter.observe(observer);
|
|
38
|
+
}
|
|
39
|
+
unObserve(observer) {
|
|
40
|
+
this.emitter.unObserve(observer);
|
|
41
|
+
}
|
|
42
|
+
async updateObservers(event) {
|
|
43
|
+
await this.emitter.updateObservers(event);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Executes a workflow with the given inputs and options.
|
|
47
|
+
*/
|
|
48
|
+
async execute(workflow, inputs = {}, options = {}) {
|
|
49
|
+
const opts = this.mergeOptions(options);
|
|
50
|
+
const runId = opts.runId ?? this.generateRunId();
|
|
51
|
+
const path = opts.path ?? [];
|
|
52
|
+
const eventFactory = new GraphExecutionEventFactory_js_1.GraphExecutionEventFactory();
|
|
53
|
+
const valueStore = new GraphValueStore_js_1.GraphValueStore(this.valueStoreAdapter);
|
|
54
|
+
valueStore.seedWorkflowInputs(inputs);
|
|
55
|
+
const plan = this.planner.plan(workflow);
|
|
56
|
+
const frame = new GraphExecutionFrame_js_1.GraphExecutionFrame(runId, plan, valueStore, eventFactory);
|
|
57
|
+
const emitFn = async (partial) => {
|
|
58
|
+
await this.emitEvent(frame, {
|
|
59
|
+
type: partial.type ?? constants_js_1.GraphExecutionEventType.NODE_OUTPUT,
|
|
60
|
+
runId,
|
|
61
|
+
parentRunId: opts.parentRunId,
|
|
62
|
+
workflowId: workflow.name,
|
|
63
|
+
nodeId: partial.nodeId,
|
|
64
|
+
path: partial.path ?? path,
|
|
65
|
+
...partial,
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
await this.emitEvent(frame, {
|
|
69
|
+
type: constants_js_1.GraphExecutionEventType.WORKFLOW_STARTED,
|
|
70
|
+
runId,
|
|
71
|
+
parentRunId: opts.parentRunId,
|
|
72
|
+
workflowId: workflow.name,
|
|
73
|
+
path,
|
|
74
|
+
status: constants_js_1.GraphExecutionStatus.RUNNING,
|
|
75
|
+
payload: { inputs },
|
|
76
|
+
});
|
|
77
|
+
await this.emitEvent(frame, {
|
|
78
|
+
type: constants_js_1.GraphExecutionEventType.WORKFLOW_PLANNED,
|
|
79
|
+
runId,
|
|
80
|
+
parentRunId: opts.parentRunId,
|
|
81
|
+
workflowId: workflow.name,
|
|
82
|
+
path,
|
|
83
|
+
status: constants_js_1.GraphExecutionStatus.PLANNING,
|
|
84
|
+
payload: { layers: plan.layers.length, nodes: plan.nodes.length },
|
|
85
|
+
});
|
|
86
|
+
try {
|
|
87
|
+
for (const layer of plan.layers) {
|
|
88
|
+
await this.executeLayer(frame, plan, layer.nodes, opts, emitFn);
|
|
89
|
+
}
|
|
90
|
+
frame.finish();
|
|
91
|
+
await this.emitEvent(frame, {
|
|
92
|
+
type: constants_js_1.GraphExecutionEventType.WORKFLOW_COMPLETED,
|
|
93
|
+
runId,
|
|
94
|
+
parentRunId: opts.parentRunId,
|
|
95
|
+
workflowId: workflow.name,
|
|
96
|
+
path,
|
|
97
|
+
status: constants_js_1.GraphExecutionStatus.SUCCEEDED,
|
|
98
|
+
payload: { outputs: valueStore.getWorkflowValues() },
|
|
99
|
+
});
|
|
100
|
+
return (0, GraphExecutionResult_js_1.buildGraphExecutionResult)(frame, workflow, inputs, constants_js_1.GraphExecutionStatus.SUCCEEDED, opts.metadata);
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
frame.finish();
|
|
104
|
+
const errorPayload = this.toErrorPayload(error);
|
|
105
|
+
await this.emitEvent(frame, {
|
|
106
|
+
type: constants_js_1.GraphExecutionEventType.WORKFLOW_FAILED,
|
|
107
|
+
runId,
|
|
108
|
+
parentRunId: opts.parentRunId,
|
|
109
|
+
workflowId: workflow.name,
|
|
110
|
+
path,
|
|
111
|
+
status: constants_js_1.GraphExecutionStatus.FAILED,
|
|
112
|
+
error: errorPayload,
|
|
113
|
+
});
|
|
114
|
+
return (0, GraphExecutionResult_js_1.buildGraphExecutionResult)(frame, workflow, inputs, constants_js_1.GraphExecutionStatus.FAILED, opts.metadata);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Pins a node and its upstream dependencies after a completed run.
|
|
119
|
+
*
|
|
120
|
+
* Delegates to {@link GraphPinningService}. The plan and result must come
|
|
121
|
+
* from a prior successful execution of the same workflow.
|
|
122
|
+
*/
|
|
123
|
+
async pinNode(options) {
|
|
124
|
+
const service = this.createPinningService();
|
|
125
|
+
await service.pinNode(options);
|
|
126
|
+
await this.emitPinningEvent(options.nodeId, constants_js_1.GraphExecutionEventType.NODE_PINNED);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Unpins a node by its fingerprint.
|
|
130
|
+
*/
|
|
131
|
+
async unpinNode(options) {
|
|
132
|
+
const service = this.createPinningService();
|
|
133
|
+
await service.unpinNode(options);
|
|
134
|
+
await this.emitPinningEvent(options.nodeId, constants_js_1.GraphExecutionEventType.NODE_UNPINNED);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Creates a {@link GraphPinningService} backed by this engine's value store
|
|
138
|
+
* adapter.
|
|
139
|
+
*/
|
|
140
|
+
createPinningService() {
|
|
141
|
+
const store = new GraphValueStore_js_1.GraphValueStore(this.valueStoreAdapter);
|
|
142
|
+
return new GraphPinningService_js_1.GraphPinningService(store, new GraphPinningPolicy_js_1.GraphPinningPolicy(), new GraphPinningDependencyResolver_js_1.GraphPinningDependencyResolver());
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Emits a pinning-related event to all observers.
|
|
146
|
+
*/
|
|
147
|
+
async emitPinningEvent(nodeId, type) {
|
|
148
|
+
const factory = new GraphExecutionEventFactory_js_1.GraphExecutionEventFactory();
|
|
149
|
+
const event = factory.create({
|
|
150
|
+
id: "",
|
|
151
|
+
sequence: 0,
|
|
152
|
+
timestamp: new Date(),
|
|
153
|
+
runId: "pinning",
|
|
154
|
+
workflowId: "",
|
|
155
|
+
type,
|
|
156
|
+
nodeId,
|
|
157
|
+
path: [],
|
|
158
|
+
});
|
|
159
|
+
await this.emitter.updateObservers(event);
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Executes a layer of nodes with the configured concurrency.
|
|
163
|
+
*/
|
|
164
|
+
async executeLayer(frame, plan, nodes, opts, emitFn) {
|
|
165
|
+
const concurrency = Math.max(1, opts.concurrency ?? constants_js_1.GRAPH_DEFAULT_CONCURRENCY);
|
|
166
|
+
const queue = [...nodes];
|
|
167
|
+
while (queue.length > 0) {
|
|
168
|
+
const batch = queue.splice(0, concurrency);
|
|
169
|
+
await Promise.all(batch.map((node) => this.executeNode(frame, plan, node, opts, emitFn)));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Executes a single node.
|
|
174
|
+
*/
|
|
175
|
+
async executeNode(frame, plan, planNode, opts, emitFn) {
|
|
176
|
+
const startedAt = new Date();
|
|
177
|
+
const nodePath = [...(opts.path ?? []), planNode.id];
|
|
178
|
+
await this.emitEvent(frame, {
|
|
179
|
+
type: constants_js_1.GraphExecutionEventType.NODE_STARTED,
|
|
180
|
+
runId: frame.runId,
|
|
181
|
+
workflowId: plan.workflowId,
|
|
182
|
+
nodeId: planNode.id,
|
|
183
|
+
path: nodePath,
|
|
184
|
+
status: constants_js_1.GraphExecutionStatus.RUNNING,
|
|
185
|
+
});
|
|
186
|
+
const inputs = this.resolveNodeInputs(frame, plan, planNode);
|
|
187
|
+
// Cache-hit: check for a pinned value before executing the node
|
|
188
|
+
if (opts.usePinnedValues) {
|
|
189
|
+
const cached = await this.tryPinnedValue(frame, plan, planNode, inputs);
|
|
190
|
+
if (cached) {
|
|
191
|
+
frame.valueStore.setNodeOutputs(planNode.id, cached.outputs);
|
|
192
|
+
this.routeOutgoingEdges(frame, plan, planNode, cached.outputs);
|
|
193
|
+
const finishedAt = new Date();
|
|
194
|
+
const result = {
|
|
195
|
+
nodeId: planNode.id,
|
|
196
|
+
status: constants_js_1.GraphExecutionStatus.CACHED,
|
|
197
|
+
inputs,
|
|
198
|
+
outputs: cached.outputs,
|
|
199
|
+
startedAt,
|
|
200
|
+
finishedAt,
|
|
201
|
+
fromCache: true,
|
|
202
|
+
pinned: true,
|
|
203
|
+
events: [],
|
|
204
|
+
};
|
|
205
|
+
frame.recordNodeResult(result);
|
|
206
|
+
await this.emitEvent(frame, {
|
|
207
|
+
type: constants_js_1.GraphExecutionEventType.NODE_CACHE_HIT,
|
|
208
|
+
runId: frame.runId,
|
|
209
|
+
workflowId: plan.workflowId,
|
|
210
|
+
nodeId: planNode.id,
|
|
211
|
+
path: nodePath,
|
|
212
|
+
status: constants_js_1.GraphExecutionStatus.CACHED,
|
|
213
|
+
payload: { outputs: cached.outputs },
|
|
214
|
+
});
|
|
215
|
+
await this.emitEvent(frame, {
|
|
216
|
+
type: constants_js_1.GraphExecutionEventType.NODE_COMPLETED,
|
|
217
|
+
runId: frame.runId,
|
|
218
|
+
workflowId: plan.workflowId,
|
|
219
|
+
nodeId: planNode.id,
|
|
220
|
+
path: nodePath,
|
|
221
|
+
status: constants_js_1.GraphExecutionStatus.SUCCEEDED,
|
|
222
|
+
payload: { outputs: cached.outputs, fromCache: true },
|
|
223
|
+
});
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
const executor = this.config.registry.resolve(planNode.kind);
|
|
229
|
+
const context = new GraphExecutionContext_js_1.GraphExecutionContext(frame.runId, opts.parentRunId, plan.workflow, planNode.definition, nodePath, emitFn, opts.metadata);
|
|
230
|
+
const outputs = await executor.execute(inputs, context);
|
|
231
|
+
const resolvedOutputs = outputs ?? {};
|
|
232
|
+
frame.valueStore.setNodeOutputs(planNode.id, resolvedOutputs);
|
|
233
|
+
this.routeOutgoingEdges(frame, plan, planNode, resolvedOutputs);
|
|
234
|
+
const finishedAt = new Date();
|
|
235
|
+
const result = {
|
|
236
|
+
nodeId: planNode.id,
|
|
237
|
+
status: constants_js_1.GraphExecutionStatus.SUCCEEDED,
|
|
238
|
+
inputs,
|
|
239
|
+
outputs: resolvedOutputs,
|
|
240
|
+
startedAt,
|
|
241
|
+
finishedAt,
|
|
242
|
+
events: [],
|
|
243
|
+
};
|
|
244
|
+
frame.recordNodeResult(result);
|
|
245
|
+
await this.emitEvent(frame, {
|
|
246
|
+
type: constants_js_1.GraphExecutionEventType.NODE_COMPLETED,
|
|
247
|
+
runId: frame.runId,
|
|
248
|
+
workflowId: plan.workflowId,
|
|
249
|
+
nodeId: planNode.id,
|
|
250
|
+
path: nodePath,
|
|
251
|
+
status: constants_js_1.GraphExecutionStatus.SUCCEEDED,
|
|
252
|
+
payload: { outputs: resolvedOutputs },
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
const finishedAt = new Date();
|
|
257
|
+
const errorPayload = this.toErrorPayload(error);
|
|
258
|
+
const result = {
|
|
259
|
+
nodeId: planNode.id,
|
|
260
|
+
status: constants_js_1.GraphExecutionStatus.FAILED,
|
|
261
|
+
inputs,
|
|
262
|
+
error: errorPayload,
|
|
263
|
+
startedAt,
|
|
264
|
+
finishedAt,
|
|
265
|
+
events: [],
|
|
266
|
+
};
|
|
267
|
+
frame.recordNodeResult(result);
|
|
268
|
+
await this.emitEvent(frame, {
|
|
269
|
+
type: constants_js_1.GraphExecutionEventType.NODE_FAILED,
|
|
270
|
+
runId: frame.runId,
|
|
271
|
+
workflowId: plan.workflowId,
|
|
272
|
+
nodeId: planNode.id,
|
|
273
|
+
path: nodePath,
|
|
274
|
+
status: constants_js_1.GraphExecutionStatus.FAILED,
|
|
275
|
+
error: errorPayload,
|
|
276
|
+
});
|
|
277
|
+
if (opts.failFast ?? true)
|
|
278
|
+
throw error;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Resolves a node's input values from incoming edges.
|
|
283
|
+
*/
|
|
284
|
+
resolveNodeInputs(frame, plan, planNode) {
|
|
285
|
+
const inputs = {};
|
|
286
|
+
const incoming = plan.incomingByNode.get(planNode.id) ?? [];
|
|
287
|
+
for (const edge of incoming) {
|
|
288
|
+
inputs[edge.targetPort] = frame.valueStore.getPort(edge.sourceNodeId, edge.sourcePort);
|
|
289
|
+
}
|
|
290
|
+
return inputs;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Attempts to read a pinned value for the node. Returns the cached outputs
|
|
294
|
+
* when a valid pinned value exists, or `undefined` to proceed with normal
|
|
295
|
+
* execution.
|
|
296
|
+
*/
|
|
297
|
+
async tryPinnedValue(frame, plan, planNode, inputs) {
|
|
298
|
+
const policy = new GraphPinningPolicy_js_1.GraphPinningPolicy();
|
|
299
|
+
if (!policy.shouldUsePinnedValue(planNode))
|
|
300
|
+
return undefined;
|
|
301
|
+
const service = this.createPinningService();
|
|
302
|
+
const depFingerprints = this.computeDependencyFingerprints(frame, plan, planNode.id);
|
|
303
|
+
return service.readPinnedValue(plan.workflow, planNode, inputs, depFingerprints);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Recursively computes fingerprints for all upstream dependencies of a node
|
|
307
|
+
* using the results already accumulated in the frame.
|
|
308
|
+
*/
|
|
309
|
+
computeDependencyFingerprints(frame, plan, nodeId) {
|
|
310
|
+
const service = this.createPinningService();
|
|
311
|
+
const depResolver = new GraphPinningDependencyResolver_js_1.GraphPinningDependencyResolver();
|
|
312
|
+
const deps = depResolver.getDependencies(plan, nodeId);
|
|
313
|
+
const fingerprints = {};
|
|
314
|
+
for (const dep of deps) {
|
|
315
|
+
const node = plan.nodes.find((n) => n.id === dep);
|
|
316
|
+
if (node) {
|
|
317
|
+
const depResult = frame.nodeResults.get(dep);
|
|
318
|
+
const inputs = depResult?.inputs ?? {};
|
|
319
|
+
const nestedDeps = this.computeDependencyFingerprints(frame, plan, dep);
|
|
320
|
+
fingerprints[dep] = service.computeFingerprint(plan.workflow, node, inputs, nestedDeps);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return fingerprints;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Routes a node's outputs to downstream inputs and workflow outputs.
|
|
327
|
+
*/
|
|
328
|
+
routeOutgoingEdges(frame, plan, planNode, outputs) {
|
|
329
|
+
const outgoing = plan.outgoingByNode.get(planNode.id) ?? [];
|
|
330
|
+
for (const edge of outgoing) {
|
|
331
|
+
const value = outputs[edge.sourcePort];
|
|
332
|
+
if (edge.targetNodeId === constants_js_1.GRAPH_WORKFLOW_BOUNDARY) {
|
|
333
|
+
frame.valueStore.setWorkflowOutput(edge.targetPort, value);
|
|
334
|
+
}
|
|
335
|
+
this.emitEvent(frame, {
|
|
336
|
+
type: constants_js_1.GraphExecutionEventType.EDGE_VALUE_ROUTED,
|
|
337
|
+
runId: frame.runId,
|
|
338
|
+
workflowId: plan.workflowId,
|
|
339
|
+
edgeId: edge.id,
|
|
340
|
+
nodeId: planNode.id,
|
|
341
|
+
path: [],
|
|
342
|
+
payload: { edge, value },
|
|
343
|
+
}).catch(() => {
|
|
344
|
+
// observer failures must not crash
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Emits an event, records it in the frame, and dispatches to observers.
|
|
350
|
+
*/
|
|
351
|
+
async emitEvent(frame, partial) {
|
|
352
|
+
const event = frame.eventFactory.create({
|
|
353
|
+
id: "",
|
|
354
|
+
sequence: 0,
|
|
355
|
+
timestamp: new Date(),
|
|
356
|
+
...partial,
|
|
357
|
+
});
|
|
358
|
+
frame.appendEvent(event);
|
|
359
|
+
await this.emitter.updateObservers(event);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Merges default options with the given options.
|
|
363
|
+
*/
|
|
364
|
+
mergeOptions(options) {
|
|
365
|
+
return {
|
|
366
|
+
concurrency: constants_js_1.GRAPH_DEFAULT_CONCURRENCY,
|
|
367
|
+
failFast: true,
|
|
368
|
+
validateInputs: true,
|
|
369
|
+
validateOutputs: true,
|
|
370
|
+
usePinnedValues: true,
|
|
371
|
+
writeThroughCache: false,
|
|
372
|
+
path: [],
|
|
373
|
+
metadata: {},
|
|
374
|
+
...this.defaultOptions,
|
|
375
|
+
...options,
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Generates a unique run id.
|
|
380
|
+
*/
|
|
381
|
+
generateRunId() {
|
|
382
|
+
return (globalThis.crypto?.randomUUID?.() ??
|
|
383
|
+
`graph-run-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Converts an error into a serialized payload.
|
|
387
|
+
*/
|
|
388
|
+
toErrorPayload(error) {
|
|
389
|
+
if (error instanceof Error) {
|
|
390
|
+
return {
|
|
391
|
+
name: error.name,
|
|
392
|
+
message: error.message,
|
|
393
|
+
stack: error.stack,
|
|
394
|
+
code: error.graphCode ??
|
|
395
|
+
(typeof error.code === "number"
|
|
396
|
+
? String(error.code)
|
|
397
|
+
: error.code),
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
return { name: "UnknownError", message: String(error) };
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
exports.GraphExecutionEngine = GraphExecutionEngine;
|
|
404
|
+
//# sourceMappingURL=GraphExecutionEngine.js.map
|
|
405
|
+
//# sourceMappingURL=GraphExecutionEngine.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/GraphExecutionEngine.cjs","sourceRoot":"","sources":["graph/execution/GraphExecutionEngine.js"],"names":[],"mappings":";;;AAAA,oDAAuI;AACvI,6FAAuF;AACvF,6FAAuF;AACvF,qFAA+E;AAC/E,oGAA8F;AAC9F,sEAAgE;AAChE,gFAA0E;AAC1E,8EAAwE;AACxE,sGAAgG;AAChG,yEAAmE;AACnE,qEAA+D;AAC/D,uEAAsE;AACtE;;;;;;;;;;GAUG;AACH,MAAa,oBAAoB;IAC7B,YAAY,MAAM;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,YAAY,IAAI,IAAI,0DAA0B,EAAE,CAAC;QACvE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,IAAI,gDAAqB,EAAE,CAAC;QAC7D,IAAI,CAAC,iBAAiB;YAClB,MAAM,CAAC,iBAAiB,IAAI,IAAI,kEAA8B,EAAE,CAAC;QACrE,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,EAA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
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphExecutionFrame = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Mutable state for a single graph execution run.
|
|
6
|
+
*/
|
|
7
|
+
class GraphExecutionFrame {
|
|
8
|
+
constructor(runId, plan, valueStore, eventFactory) {
|
|
9
|
+
this.nodeResults = new Map();
|
|
10
|
+
this.events = [];
|
|
11
|
+
this.runId = runId;
|
|
12
|
+
this.plan = plan;
|
|
13
|
+
this.valueStore = valueStore;
|
|
14
|
+
this.eventFactory = eventFactory;
|
|
15
|
+
this.startedAt = new Date();
|
|
16
|
+
}
|
|
17
|
+
/** Records a node execution result. */
|
|
18
|
+
recordNodeResult(result) {
|
|
19
|
+
this.nodeResults.set(result.nodeId, result);
|
|
20
|
+
}
|
|
21
|
+
/** Appends an event to the run's event log. */
|
|
22
|
+
appendEvent(event) {
|
|
23
|
+
this.events.push(event);
|
|
24
|
+
}
|
|
25
|
+
/** Marks the run as finished. */
|
|
26
|
+
finish() {
|
|
27
|
+
this.finishedAt = new Date();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.GraphExecutionFrame = GraphExecutionFrame;
|
|
31
|
+
//# sourceMappingURL=GraphExecutionFrame.js.map
|
|
32
|
+
//# sourceMappingURL=GraphExecutionFrame.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/GraphExecutionFrame.cjs","sourceRoot":"","sources":["graph/execution/GraphExecutionFrame.js"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,mBAAmB;IAC5B,YAAY,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAChC,CAAC;IACD,uCAAuC;IACvC,gBAAgB,CAAC,MAAM;QACnB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IACD,+CAA+C;IAC/C,WAAW,CAAC,KAAK;QACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IACD,iCAAiC;IACjC,MAAM;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;IACjC,CAAC;CACJ;AAtBD,kDAsBC;AACD,+CAA+C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildGraphExecutionResult = buildGraphExecutionResult;
|
|
4
|
+
/**
|
|
5
|
+
* Builds a {@link GraphExecutionResult} from a completed frame.
|
|
6
|
+
*/
|
|
7
|
+
function buildGraphExecutionResult(frame, workflow, inputs, status, metadata) {
|
|
8
|
+
const outputs = frame.valueStore.getWorkflowValues();
|
|
9
|
+
const nodeResults = {};
|
|
10
|
+
for (const [id, result] of frame.nodeResults) {
|
|
11
|
+
nodeResults[id] = result;
|
|
12
|
+
}
|
|
13
|
+
const events = [...frame.events];
|
|
14
|
+
const runId = frame.runId;
|
|
15
|
+
return {
|
|
16
|
+
runId,
|
|
17
|
+
workflowId: workflow.name,
|
|
18
|
+
status,
|
|
19
|
+
workflow,
|
|
20
|
+
inputs: { ...inputs },
|
|
21
|
+
outputs,
|
|
22
|
+
nodeResults,
|
|
23
|
+
events,
|
|
24
|
+
startedAt: frame.startedAt,
|
|
25
|
+
finishedAt: frame.finishedAt,
|
|
26
|
+
metadata,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=GraphExecutionResult.js.map
|
|
30
|
+
//# sourceMappingURL=GraphExecutionResult.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/GraphExecutionResult.cjs","sourceRoot":"","sources":["graph/execution/GraphExecutionResult.js"],"names":[],"mappings":";;AAGA,8DAqBC;AAxBD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ;IAC/E,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC;IACrD,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,KAAK,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;QAC3C,WAAW,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC;IAC7B,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1B,OAAO;QACH,KAAK;QACL,UAAU,EAAE,QAAQ,CAAC,IAAI;QACzB,MAAM;QACN,QAAQ;QACR,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE;QACrB,OAAO;QACP,WAAW;QACX,MAAM;QACN,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ;KACX,CAAC;AACN,CAAC;AACD,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/GraphNodeExecutor.cjs","sourceRoot":"","sources":["graph/execution/GraphNodeExecutor.js"],"names":[],"mappings":";;AACA,6CAA6C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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/execution
|
|
19
|
+
* @summary Graph execution context and executor interface.
|
|
20
|
+
* @description Re-exports the graph execution context and node executor interface.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./GraphExecutionContext.cjs"), exports);
|
|
23
|
+
__exportStar(require("./GraphNodeExecutor.cjs"), exports);
|
|
24
|
+
__exportStar(require("./GraphExecutionResult.cjs"), exports);
|
|
25
|
+
__exportStar(require("./GraphExecutionFrame.cjs"), exports);
|
|
26
|
+
__exportStar(require("./GraphExecutionEngine.cjs"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
28
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/execution/index.cjs","sourceRoot":"","sources":["graph/execution/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,6DAA2C;AAC3C,yDAAuC;AACvC,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C;AAC1C,iCAAiC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
|
19
|
+
* @summary Decaf Graph Execution Engine.
|
|
20
|
+
* @description Reference interpreter for Decaf graph workflows. Executes workflows declared with `@decaf-ts/ui-decorators/graph`, emits events through Decaf's Observable pipeline, supports structured loops, configurable value stores, and pinnable/cacheable nodes.
|
|
21
|
+
*/
|
|
22
|
+
__exportStar(require("./constants.cjs"), exports);
|
|
23
|
+
__exportStar(require("./types.cjs"), exports);
|
|
24
|
+
__exportStar(require("./decorators.cjs"), exports);
|
|
25
|
+
__exportStar(require("./errors/GraphExecutionError.cjs"), exports);
|
|
26
|
+
__exportStar(require("./errors/GraphCycleError.cjs"), exports);
|
|
27
|
+
__exportStar(require("./errors/GraphInputError.cjs"), exports);
|
|
28
|
+
__exportStar(require("./errors/GraphLoopLimitError.cjs"), exports);
|
|
29
|
+
__exportStar(require("./errors/GraphPinningError.cjs"), exports);
|
|
30
|
+
__exportStar(require("./errors/GraphPortError.cjs"), exports);
|
|
31
|
+
__exportStar(require("./errors/GraphStoreError.cjs"), exports);
|
|
32
|
+
__exportStar(require("./errors/GraphTopologyError.cjs"), exports);
|
|
33
|
+
__exportStar(require("./events/GraphExecutionEvent.cjs"), exports);
|
|
34
|
+
__exportStar(require("./events/GraphExecutionObserver.cjs"), exports);
|
|
35
|
+
__exportStar(require("./events/GraphExecutionEventEmitter.cjs"), exports);
|
|
36
|
+
__exportStar(require("./events/GraphExecutionEventFactory.cjs"), exports);
|
|
37
|
+
__exportStar(require("./execution/GraphExecutionContext.cjs"), exports);
|
|
38
|
+
__exportStar(require("./execution/GraphNodeExecutor.cjs"), exports);
|
|
39
|
+
__exportStar(require("./execution/GraphExecutionFrame.cjs"), exports);
|
|
40
|
+
__exportStar(require("./execution/GraphExecutionResult.cjs"), exports);
|
|
41
|
+
__exportStar(require("./execution/GraphExecutionEngine.cjs"), exports);
|
|
42
|
+
__exportStar(require("./registry/GraphNodeExecutorRegistry.cjs"), exports);
|
|
43
|
+
__exportStar(require("./registry/GraphNodeExecutorResolver.cjs"), exports);
|
|
44
|
+
__exportStar(require("./store/GraphValueKey.cjs"), exports);
|
|
45
|
+
__exportStar(require("./store/GraphCachedValue.cjs"), exports);
|
|
46
|
+
__exportStar(require("./store/GraphValueStoreAdapter.cjs"), exports);
|
|
47
|
+
__exportStar(require("./store/InMemoryGraphValueStoreAdapter.cjs"), exports);
|
|
48
|
+
__exportStar(require("./store/GraphValueStore.cjs"), exports);
|
|
49
|
+
__exportStar(require("./planning/GraphExecutionPlanNode.cjs"), exports);
|
|
50
|
+
__exportStar(require("./planning/GraphExecutionPlanEdge.cjs"), exports);
|
|
51
|
+
__exportStar(require("./planning/GraphExecutionPlanLayer.cjs"), exports);
|
|
52
|
+
__exportStar(require("./planning/GraphExecutionPlan.cjs"), exports);
|
|
53
|
+
__exportStar(require("./planning/GraphRelationResolver.cjs"), exports);
|
|
54
|
+
__exportStar(require("./planning/GraphExecutionPlanner.cjs"), exports);
|
|
55
|
+
__exportStar(require("./planning/GraphTopology.cjs"), exports);
|
|
56
|
+
// Validation (TASK-215)
|
|
57
|
+
__exportStar(require("./validation/GraphDefinitionValidator.cjs"), exports);
|
|
58
|
+
__exportStar(require("./validation/GraphPortSchemaResolver.cjs"), exports);
|
|
59
|
+
__exportStar(require("./validation/GraphValueValidator.cjs"), exports);
|
|
60
|
+
// Loops (TASK-216)
|
|
61
|
+
__exportStar(require("./loops/GraphConditionEvaluator.cjs"), exports);
|
|
62
|
+
__exportStar(require("./loops/GraphLoopExecutionContext.cjs"), exports);
|
|
63
|
+
__exportStar(require("./loops/ForeachGraphNodeExecutor.cjs"), exports);
|
|
64
|
+
__exportStar(require("./loops/WhileGraphNodeExecutor.cjs"), exports);
|
|
65
|
+
__exportStar(require("./loops/UntilGraphNodeExecutor.cjs"), exports);
|
|
66
|
+
// Pinning (TASK-217/218)
|
|
67
|
+
__exportStar(require("./pinning/GraphPinningMetadata.cjs"), exports);
|
|
68
|
+
__exportStar(require("./pinning/GraphPinningPolicy.cjs"), exports);
|
|
69
|
+
__exportStar(require("./pinning/GraphPinningDependencyResolver.cjs"), exports);
|
|
70
|
+
__exportStar(require("./pinning/GraphPinningService.cjs"), exports);
|
|
71
|
+
// Snapshots (TASK-219)
|
|
72
|
+
__exportStar(require("./snapshots/GraphExecutionSnapshotMapper.cjs"), exports);
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
74
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/index.cjs","sourceRoot":"","sources":["graph/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;GAIG;AACH,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kEAAgD;AAChD,8DAA4C;AAC5C,8DAA4C;AAC5C,kEAAgD;AAChD,gEAA8C;AAC9C,6DAA2C;AAC3C,8DAA4C;AAC5C,iEAA+C;AAC/C,kEAAgD;AAChD,qEAAmD;AACnD,yEAAuD;AACvD,yEAAuD;AACvD,uEAAqD;AACrD,mEAAiD;AACjD,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,0EAAwD;AACxD,0EAAwD;AACxD,2DAAyC;AACzC,8DAA4C;AAC5C,oEAAkD;AAClD,4EAA0D;AAC1D,6DAA2C;AAC3C,uEAAqD;AACrD,uEAAqD;AACrD,wEAAsD;AACtD,mEAAiD;AACjD,sEAAoD;AACpD,sEAAoD;AACpD,8DAA4C;AAC5C,wBAAwB;AACxB,2EAAyD;AACzD,0EAAwD;AACxD,sEAAoD;AACpD,mBAAmB;AACnB,qEAAmD;AACnD,uEAAqD;AACrD,sEAAoD;AACpD,oEAAkD;AAClD,oEAAkD;AAClD,yBAAyB;AACzB,oEAAkD;AAClD,kEAAgD;AAChD,8EAA4D;AAC5D,mEAAiD;AACjD,uBAAuB;AACvB,8EAA4D;AAC5D,iCAAiC"}
|