@decaf-ts/as-graph 0.2.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +274 -2
- package/dist/as-graph.cjs +1 -1
- package/dist/as-graph.cjs.map +1 -1
- package/dist/as-graph.js +1 -1
- package/dist/as-graph.js.map +1 -1
- package/lib/cjs/dagster/DagsterGraphEventBridge.cjs +344 -0
- package/lib/cjs/dagster/DagsterGraphEventBridge.cjs.map +1 -0
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +789 -0
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -0
- package/lib/cjs/dagster/DagsterGraphQLClient.cjs +738 -0
- package/lib/cjs/dagster/DagsterGraphQLClient.cjs.map +1 -0
- package/lib/cjs/dagster/DagsterResultMapper.cjs +56 -0
- package/lib/cjs/dagster/DagsterResultMapper.cjs.map +1 -0
- package/lib/cjs/dagster/DagsterTypes.cjs +4 -0
- package/lib/cjs/dagster/DagsterTypes.cjs.map +1 -0
- package/lib/cjs/dagster/capabilities.cjs +102 -0
- package/lib/cjs/dagster/capabilities.cjs.map +1 -0
- package/lib/cjs/dagster/constants.cjs +92 -0
- package/lib/cjs/dagster/constants.cjs.map +1 -0
- package/lib/cjs/dagster/index.cjs +33 -0
- package/lib/cjs/dagster/index.cjs.map +1 -0
- package/lib/cjs/engine/constants.cjs +6 -1
- package/lib/cjs/engine/constants.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphCodeMode.cjs +137 -0
- package/lib/cjs/engine/execution/GraphCodeMode.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionBackend.cjs +89 -0
- package/lib/cjs/engine/execution/GraphExecutionBackend.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionBackendRegistry.cjs +107 -0
- package/lib/cjs/engine/execution/GraphExecutionBackendRegistry.cjs.map +1 -0
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +250 -733
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/engine/execution/LocalGraphExecutionBackend.cjs +804 -0
- package/lib/cjs/engine/execution/LocalGraphExecutionBackend.cjs.map +1 -0
- package/lib/cjs/engine/execution/index.cjs +4 -0
- package/lib/cjs/engine/execution/index.cjs.map +1 -1
- package/lib/cjs/engine/index.cjs +4 -0
- package/lib/cjs/engine/index.cjs.map +1 -1
- package/lib/cjs/engine/runs/GraphRunService.cjs +61 -0
- package/lib/cjs/engine/runs/GraphRunService.cjs.map +1 -1
- package/lib/cjs/engine/services/GraphWorkflowService.cjs +33 -14
- package/lib/cjs/engine/services/GraphWorkflowService.cjs.map +1 -1
- package/lib/cjs/mastra/MastraCapabilities.cjs +171 -0
- package/lib/cjs/mastra/MastraCapabilities.cjs.map +1 -0
- package/lib/cjs/mastra/MastraConditionBridge.cjs +39 -0
- package/lib/cjs/mastra/MastraConditionBridge.cjs.map +1 -0
- package/lib/cjs/mastra/MastraEventBridge.cjs +486 -0
- package/lib/cjs/mastra/MastraEventBridge.cjs.map +1 -0
- package/lib/cjs/mastra/MastraGraphExecutionBackend.cjs +351 -0
- package/lib/cjs/mastra/MastraGraphExecutionBackend.cjs.map +1 -0
- package/lib/cjs/mastra/MastraResumeGuard.cjs +127 -0
- package/lib/cjs/mastra/MastraResumeGuard.cjs.map +1 -0
- package/lib/cjs/mastra/MastraSchemaConverter.cjs +124 -0
- package/lib/cjs/mastra/MastraSchemaConverter.cjs.map +1 -0
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +461 -0
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -0
- package/lib/cjs/mastra/MastraWorkflowManager.cjs +401 -0
- package/lib/cjs/mastra/MastraWorkflowManager.cjs.map +1 -0
- package/lib/cjs/mastra/index.cjs +35 -0
- package/lib/cjs/mastra/index.cjs.map +1 -0
- package/lib/cjs/mastra/types.cjs +34 -0
- package/lib/cjs/mastra/types.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphBackendHost.cjs +146 -0
- package/lib/cjs/nest/graph/GraphBackendHost.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphEngineCapabilityManifest.cjs +136 -0
- package/lib/cjs/nest/graph/GraphEngineCapabilityManifest.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphEngineCapabilityService.cjs +140 -0
- package/lib/cjs/nest/graph/GraphEngineCapabilityService.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphEngineController.cjs +227 -0
- package/lib/cjs/nest/graph/GraphEngineController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +31 -2
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -1
- package/lib/cjs/nest/graph/index.cjs +4 -0
- package/lib/cjs/nest/graph/index.cjs.map +1 -1
- package/lib/cjs/nest/graph/main.cjs +139 -0
- package/lib/cjs/nest/graph/main.cjs.map +1 -0
- package/lib/cjs/nest/graph/servingErrors.cjs +3 -0
- package/lib/cjs/nest/graph/servingErrors.cjs.map +1 -1
- package/lib/cjs/node/utility/code/node.cjs +11 -3
- package/lib/cjs/node/utility/code/node.cjs.map +1 -1
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs +2 -3
- package/lib/cjs/shared/graph/catalog/GraphManifestCompiler.cjs.map +1 -1
- package/lib/cjs/shared/graph/constants.cjs +8 -0
- package/lib/cjs/shared/graph/constants.cjs.map +1 -1
- package/lib/cjs/shared/graph/index.cjs +2 -1
- package/lib/cjs/shared/graph/index.cjs.map +1 -1
- package/lib/cjs/shared/graph/layout/GraphWorkflowLayout.cjs +146 -0
- package/lib/cjs/shared/graph/layout/GraphWorkflowLayout.cjs.map +1 -0
- package/lib/cjs/shared/graph/layout/index.cjs +23 -0
- package/lib/cjs/shared/graph/layout/index.cjs.map +1 -0
- package/lib/cjs/shared/graph/layout/layout-options.cjs +93 -0
- package/lib/cjs/shared/graph/layout/layout-options.cjs.map +1 -0
- package/lib/cjs/shared/ui/index.cjs +8 -10
- package/lib/cjs/shared/ui/index.cjs.map +1 -1
- package/lib/esm/dagster/DagsterGraphEventBridge.js +339 -0
- package/lib/esm/dagster/DagsterGraphEventBridge.js.map +1 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js +781 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -0
- package/lib/esm/dagster/DagsterGraphQLClient.js +733 -0
- package/lib/esm/dagster/DagsterGraphQLClient.js.map +1 -0
- package/lib/esm/dagster/DagsterResultMapper.js +51 -0
- package/lib/esm/dagster/DagsterResultMapper.js.map +1 -0
- package/lib/esm/dagster/DagsterTypes.js +2 -0
- package/lib/esm/dagster/DagsterTypes.js.map +1 -0
- package/lib/esm/dagster/capabilities.js +97 -0
- package/lib/esm/dagster/capabilities.js.map +1 -0
- package/lib/esm/dagster/constants.js +88 -0
- package/lib/esm/dagster/constants.js.map +1 -0
- package/lib/esm/dagster/index.js +16 -0
- package/lib/esm/dagster/index.js.map +1 -0
- package/lib/esm/engine/constants.js +5 -0
- package/lib/esm/engine/constants.js.map +1 -1
- package/lib/esm/engine/execution/GraphCodeMode.js +132 -0
- package/lib/esm/engine/execution/GraphCodeMode.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionBackend.js +83 -0
- package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionBackendRegistry.js +102 -0
- package/lib/esm/engine/execution/GraphExecutionBackendRegistry.js.map +1 -0
- package/lib/esm/engine/execution/GraphExecutionEngine.js +232 -716
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/engine/execution/LocalGraphExecutionBackend.js +799 -0
- package/lib/esm/engine/execution/LocalGraphExecutionBackend.js.map +1 -0
- package/lib/esm/engine/execution/index.js +4 -0
- package/lib/esm/engine/execution/index.js.map +1 -1
- package/lib/esm/engine/index.js +4 -0
- package/lib/esm/engine/index.js.map +1 -1
- package/lib/esm/engine/runs/GraphRunService.js +62 -1
- package/lib/esm/engine/runs/GraphRunService.js.map +1 -1
- package/lib/esm/engine/services/GraphWorkflowService.js +33 -14
- package/lib/esm/engine/services/GraphWorkflowService.js.map +1 -1
- package/lib/esm/mastra/MastraCapabilities.js +164 -0
- package/lib/esm/mastra/MastraCapabilities.js.map +1 -0
- package/lib/esm/mastra/MastraConditionBridge.js +34 -0
- package/lib/esm/mastra/MastraConditionBridge.js.map +1 -0
- package/lib/esm/mastra/MastraEventBridge.js +481 -0
- package/lib/esm/mastra/MastraEventBridge.js.map +1 -0
- package/lib/esm/mastra/MastraGraphExecutionBackend.js +346 -0
- package/lib/esm/mastra/MastraGraphExecutionBackend.js.map +1 -0
- package/lib/esm/mastra/MastraResumeGuard.js +123 -0
- package/lib/esm/mastra/MastraResumeGuard.js.map +1 -0
- package/lib/esm/mastra/MastraSchemaConverter.js +119 -0
- package/lib/esm/mastra/MastraSchemaConverter.js.map +1 -0
- package/lib/esm/mastra/MastraWorkflowCompiler.js +456 -0
- package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -0
- package/lib/esm/mastra/MastraWorkflowManager.js +396 -0
- package/lib/esm/mastra/MastraWorkflowManager.js.map +1 -0
- package/lib/esm/mastra/index.js +18 -0
- package/lib/esm/mastra/index.js.map +1 -0
- package/lib/esm/mastra/types.js +30 -0
- package/lib/esm/mastra/types.js.map +1 -0
- package/lib/esm/nest/graph/GraphBackendHost.js +138 -0
- package/lib/esm/nest/graph/GraphBackendHost.js.map +1 -0
- package/lib/esm/nest/graph/GraphEngineCapabilityManifest.js +129 -0
- package/lib/esm/nest/graph/GraphEngineCapabilityManifest.js.map +1 -0
- package/lib/esm/nest/graph/GraphEngineCapabilityService.js +131 -0
- package/lib/esm/nest/graph/GraphEngineCapabilityService.js.map +1 -0
- package/lib/esm/nest/graph/GraphEngineController.js +218 -0
- package/lib/esm/nest/graph/GraphEngineController.js.map +1 -0
- package/lib/esm/nest/graph/GraphExecutionModule.js +31 -2
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -1
- package/lib/esm/nest/graph/index.js +4 -0
- package/lib/esm/nest/graph/index.js.map +1 -1
- package/lib/esm/nest/graph/main.js +103 -0
- package/lib/esm/nest/graph/main.js.map +1 -0
- package/lib/esm/nest/graph/servingErrors.js +3 -0
- package/lib/esm/nest/graph/servingErrors.js.map +1 -1
- package/lib/esm/node/utility/code/node.js +11 -3
- package/lib/esm/node/utility/code/node.js.map +1 -1
- package/lib/esm/shared/graph/GraphExecutionStateMapper.js.map +1 -1
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js +2 -3
- package/lib/esm/shared/graph/catalog/GraphManifestCompiler.js.map +1 -1
- package/lib/esm/shared/graph/constants.js +8 -0
- package/lib/esm/shared/graph/constants.js.map +1 -1
- package/lib/esm/shared/graph/index.js +2 -1
- package/lib/esm/shared/graph/index.js.map +1 -1
- package/lib/esm/shared/graph/layout/GraphWorkflowLayout.js +107 -0
- package/lib/esm/shared/graph/layout/GraphWorkflowLayout.js.map +1 -0
- package/lib/esm/shared/graph/layout/index.js +6 -0
- package/lib/esm/shared/graph/layout/index.js.map +1 -0
- package/lib/esm/shared/graph/layout/layout-options.js +96 -0
- package/lib/esm/shared/graph/layout/layout-options.js.map +1 -0
- package/lib/esm/shared/ui/index.js +8 -10
- package/lib/esm/shared/ui/index.js.map +1 -1
- package/lib/types/dagster/DagsterGraphEventBridge.d.cts +142 -0
- package/lib/types/dagster/DagsterGraphEventBridge.d.mts +142 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +323 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +323 -0
- package/lib/types/dagster/DagsterGraphQLClient.d.cts +231 -0
- package/lib/types/dagster/DagsterGraphQLClient.d.mts +231 -0
- package/lib/types/dagster/DagsterResultMapper.d.cts +50 -0
- package/lib/types/dagster/DagsterResultMapper.d.mts +50 -0
- package/lib/types/dagster/DagsterTypes.d.cts +355 -0
- package/lib/types/dagster/DagsterTypes.d.mts +355 -0
- package/lib/types/dagster/capabilities.d.cts +34 -0
- package/lib/types/dagster/capabilities.d.mts +34 -0
- package/lib/types/dagster/constants.d.cts +87 -0
- package/lib/types/dagster/constants.d.mts +87 -0
- package/lib/types/dagster/index.d.cts +15 -0
- package/lib/types/dagster/index.d.mts +15 -0
- package/lib/types/engine/constants.d.cts +5 -0
- package/lib/types/engine/constants.d.mts +5 -0
- package/lib/types/engine/execution/GraphCodeMode.d.cts +52 -0
- package/lib/types/engine/execution/GraphCodeMode.d.mts +52 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.cts +306 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.mts +306 -0
- package/lib/types/engine/execution/GraphExecutionBackendRegistry.d.cts +59 -0
- package/lib/types/engine/execution/GraphExecutionBackendRegistry.d.mts +59 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +116 -135
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +116 -135
- package/lib/types/engine/execution/LocalGraphExecutionBackend.d.cts +232 -0
- package/lib/types/engine/execution/LocalGraphExecutionBackend.d.mts +232 -0
- package/lib/types/engine/execution/index.d.cts +4 -0
- package/lib/types/engine/execution/index.d.mts +4 -0
- package/lib/types/engine/index.d.cts +4 -0
- package/lib/types/engine/index.d.mts +4 -0
- package/lib/types/engine/runs/GraphRunService.d.cts +19 -0
- package/lib/types/engine/runs/GraphRunService.d.mts +19 -0
- package/lib/types/engine/services/GraphWorkflowService.d.cts +22 -0
- package/lib/types/engine/services/GraphWorkflowService.d.mts +22 -0
- package/lib/types/mastra/MastraCapabilities.d.cts +86 -0
- package/lib/types/mastra/MastraCapabilities.d.mts +86 -0
- package/lib/types/mastra/MastraConditionBridge.d.cts +38 -0
- package/lib/types/mastra/MastraConditionBridge.d.mts +38 -0
- package/lib/types/mastra/MastraEventBridge.d.cts +189 -0
- package/lib/types/mastra/MastraEventBridge.d.mts +189 -0
- package/lib/types/mastra/MastraGraphExecutionBackend.d.cts +119 -0
- package/lib/types/mastra/MastraGraphExecutionBackend.d.mts +119 -0
- package/lib/types/mastra/MastraResumeGuard.d.cts +58 -0
- package/lib/types/mastra/MastraResumeGuard.d.mts +58 -0
- package/lib/types/mastra/MastraSchemaConverter.d.cts +39 -0
- package/lib/types/mastra/MastraSchemaConverter.d.mts +39 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.cts +218 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.mts +218 -0
- package/lib/types/mastra/MastraWorkflowManager.d.cts +220 -0
- package/lib/types/mastra/MastraWorkflowManager.d.mts +220 -0
- package/lib/types/mastra/index.d.cts +17 -0
- package/lib/types/mastra/index.d.mts +17 -0
- package/lib/types/mastra/types.d.cts +222 -0
- package/lib/types/mastra/types.d.mts +222 -0
- package/lib/types/nest/graph/GraphBackendHost.d.cts +100 -0
- package/lib/types/nest/graph/GraphBackendHost.d.mts +100 -0
- package/lib/types/nest/graph/GraphEngineCapabilityManifest.d.cts +87 -0
- package/lib/types/nest/graph/GraphEngineCapabilityManifest.d.mts +87 -0
- package/lib/types/nest/graph/GraphEngineCapabilityService.d.cts +98 -0
- package/lib/types/nest/graph/GraphEngineCapabilityService.d.mts +98 -0
- package/lib/types/nest/graph/GraphEngineController.d.cts +74 -0
- package/lib/types/nest/graph/GraphEngineController.d.mts +74 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +20 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +20 -0
- package/lib/types/nest/graph/index.d.cts +4 -0
- package/lib/types/nest/graph/index.d.mts +4 -0
- package/lib/types/nest/graph/main.d.cts +1 -0
- package/lib/types/nest/graph/main.d.mts +1 -0
- package/lib/types/nest/graph/servingErrors.d.cts +3 -1
- package/lib/types/nest/graph/servingErrors.d.mts +3 -1
- package/lib/types/node/utility/code/node.d.cts +1 -1
- package/lib/types/node/utility/code/node.d.mts +1 -1
- package/lib/types/shared/graph/GraphExecutionStateMapper.d.cts +5 -5
- package/lib/types/shared/graph/GraphExecutionStateMapper.d.mts +5 -5
- package/lib/types/shared/graph/constants.d.cts +8 -0
- package/lib/types/shared/graph/constants.d.mts +8 -0
- package/lib/types/shared/graph/index.d.cts +2 -1
- package/lib/types/shared/graph/index.d.mts +2 -1
- package/lib/types/shared/graph/layout/GraphWorkflowLayout.d.cts +49 -0
- package/lib/types/shared/graph/layout/GraphWorkflowLayout.d.mts +49 -0
- package/lib/types/shared/graph/layout/index.d.cts +5 -0
- package/lib/types/shared/graph/layout/index.d.mts +5 -0
- package/lib/types/shared/graph/layout/layout-options.d.cts +46 -0
- package/lib/types/shared/graph/layout/layout-options.d.mts +46 -0
- package/lib/types/shared/graph/types.d.cts +4 -3
- package/lib/types/shared/graph/types.d.mts +4 -3
- package/lib/types/shared/ui/index.d.cts +8 -10
- package/lib/types/shared/ui/index.d.mts +8 -10
- package/package.json +55 -6
- package/lib/cjs/shared/ui/GraphNodeView.cjs +0 -114
- package/lib/cjs/shared/ui/GraphNodeView.cjs.map +0 -1
- package/lib/cjs/shared/ui/GraphRunView.cjs +0 -96
- package/lib/cjs/shared/ui/GraphRunView.cjs.map +0 -1
- package/lib/cjs/shared/ui/GraphWorkflowView.cjs +0 -78
- package/lib/cjs/shared/ui/GraphWorkflowView.cjs.map +0 -1
- package/lib/cjs/shared/ui/types.cjs +0 -4
- package/lib/cjs/shared/ui/types.cjs.map +0 -1
- package/lib/esm/shared/ui/GraphNodeView.js +0 -107
- package/lib/esm/shared/ui/GraphNodeView.js.map +0 -1
- package/lib/esm/shared/ui/GraphRunView.js +0 -90
- package/lib/esm/shared/ui/GraphRunView.js.map +0 -1
- package/lib/esm/shared/ui/GraphWorkflowView.js +0 -72
- package/lib/esm/shared/ui/GraphWorkflowView.js.map +0 -1
- package/lib/esm/shared/ui/types.js +0 -2
- package/lib/esm/shared/ui/types.js.map +0 -1
- package/lib/types/shared/ui/GraphNodeView.d.cts +0 -48
- package/lib/types/shared/ui/GraphNodeView.d.mts +0 -48
- package/lib/types/shared/ui/GraphRunView.d.cts +0 -88
- package/lib/types/shared/ui/GraphRunView.d.mts +0 -88
- package/lib/types/shared/ui/GraphWorkflowView.d.cts +0 -18
- package/lib/types/shared/ui/GraphWorkflowView.d.mts +0 -18
- package/lib/types/shared/ui/types.d.cts +0 -200
- package/lib/types/shared/ui/types.d.mts +0 -200
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphLayoutSpacing = exports.GraphLayoutMode = void 0;
|
|
4
|
+
exports.resolveLayoutMode = resolveLayoutMode;
|
|
5
|
+
exports.resolveLayoutSpacing = resolveLayoutSpacing;
|
|
6
|
+
exports.buildLayoutOptions = buildLayoutOptions;
|
|
7
|
+
(function (GraphLayoutMode) {
|
|
8
|
+
/** Crossing-minimisation priority: LAYER_SWEEP + BRANDES_KOEPF + ORTHOGONAL. */
|
|
9
|
+
GraphLayoutMode["READABILITY"] = "readability";
|
|
10
|
+
/** Tight packing: NETWORK_SIMPLEX + POLYLINE routing. */
|
|
11
|
+
GraphLayoutMode["COMPACTNESS"] = "compactness";
|
|
12
|
+
/** Default: GREEDY crossing minimisation + ORTHOGONAL routing. */
|
|
13
|
+
GraphLayoutMode["BALANCED"] = "balanced";
|
|
14
|
+
})(exports.GraphLayoutMode || (exports.GraphLayoutMode = {}));
|
|
15
|
+
(function (GraphLayoutSpacing) {
|
|
16
|
+
/** Reduced spacing (0.5x). */
|
|
17
|
+
GraphLayoutSpacing["TIGHT"] = "tight";
|
|
18
|
+
/** Baseline spacing (1x). */
|
|
19
|
+
GraphLayoutSpacing["NORMAL"] = "normal";
|
|
20
|
+
/** Generous spacing (1.5x). */
|
|
21
|
+
GraphLayoutSpacing["COMFORTABLE"] = "comfortable";
|
|
22
|
+
})(exports.GraphLayoutSpacing || (exports.GraphLayoutSpacing = {}));
|
|
23
|
+
// ELK layered base spacing in pixels, before the profile multiplier is applied.
|
|
24
|
+
const BASE_SPACING = {
|
|
25
|
+
"elk.spacing.nodeNode": 20,
|
|
26
|
+
"elk.spacing.edgeNode": 10,
|
|
27
|
+
"elk.spacing.edgeEdge": 10,
|
|
28
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": 20,
|
|
29
|
+
"elk.layered.spacing.edgeNodeBetweenLayers": 10,
|
|
30
|
+
"elk.layered.spacing.edgeEdgeBetweenLayers": 10,
|
|
31
|
+
};
|
|
32
|
+
const SPACING_MULTIPLIER = {
|
|
33
|
+
[exports.GraphLayoutSpacing.TIGHT]: 0.5,
|
|
34
|
+
[exports.GraphLayoutSpacing.NORMAL]: 1,
|
|
35
|
+
[exports.GraphLayoutSpacing.COMFORTABLE]: 1.5,
|
|
36
|
+
};
|
|
37
|
+
// Mode preset mapping onto ELK layered options. The manifest algorithms map 1:1:
|
|
38
|
+
// crossingMinimization.strategy -> LAYER_SWEEP/GREEDY, nodePlacement.strategy ->
|
|
39
|
+
// BRANDES_KOEPF/NETWORK_SIMPLEX, edgeRouting -> ORTHOGONAL/POLYLINE. The
|
|
40
|
+
// preset's `spacing` is the profile used when the caller does not override it.
|
|
41
|
+
const MODE_PRESET = {
|
|
42
|
+
[exports.GraphLayoutMode.READABILITY]: {
|
|
43
|
+
spacing: exports.GraphLayoutSpacing.COMFORTABLE,
|
|
44
|
+
options: {
|
|
45
|
+
"elk.layered.crossingMinimization.strategy": "LAYER_SWEEP",
|
|
46
|
+
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
47
|
+
"elk.edgeRouting": "ORTHOGONAL",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
[exports.GraphLayoutMode.COMPACTNESS]: {
|
|
51
|
+
spacing: exports.GraphLayoutSpacing.TIGHT,
|
|
52
|
+
options: {
|
|
53
|
+
"elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX",
|
|
54
|
+
"elk.edgeRouting": "POLYLINE",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
[exports.GraphLayoutMode.BALANCED]: {
|
|
58
|
+
spacing: exports.GraphLayoutSpacing.NORMAL,
|
|
59
|
+
options: {
|
|
60
|
+
"elk.layered.crossingMinimization.strategy": "GREEDY",
|
|
61
|
+
"elk.edgeRouting": "ORTHOGONAL",
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
/** Resolves the requested mode, defaulting to {@link GraphLayoutMode.BALANCED}. */
|
|
66
|
+
function resolveLayoutMode(options) {
|
|
67
|
+
return options?.mode ?? exports.GraphLayoutMode.BALANCED;
|
|
68
|
+
}
|
|
69
|
+
/** Resolves the requested spacing, defaulting to the mode's own profile. */
|
|
70
|
+
function resolveLayoutSpacing(options) {
|
|
71
|
+
return options?.spacing ?? MODE_PRESET[resolveLayoutMode(options)].spacing;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Builds the ELK `layoutOptions` map for the requested mode and spacing. The
|
|
75
|
+
* `elk.direction` key is hard-coded to `"RIGHT"` here — this is the only place
|
|
76
|
+
* direction is set and it is not reachable from {@link GraphLayoutOptions}.
|
|
77
|
+
*/
|
|
78
|
+
function buildLayoutOptions(options) {
|
|
79
|
+
const mode = resolveLayoutMode(options);
|
|
80
|
+
const spacing = resolveLayoutSpacing(options);
|
|
81
|
+
const multiplier = SPACING_MULTIPLIER[spacing];
|
|
82
|
+
const result = {
|
|
83
|
+
"elk.algorithm": "layered",
|
|
84
|
+
"elk.direction": "RIGHT",
|
|
85
|
+
...MODE_PRESET[mode].options,
|
|
86
|
+
};
|
|
87
|
+
for (const key of Object.keys(BASE_SPACING)) {
|
|
88
|
+
result[key] = String(Math.round(BASE_SPACING[key] * multiplier));
|
|
89
|
+
}
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=layout-options.js.map
|
|
93
|
+
//# sourceMappingURL=layout-options.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared/graph/layout/layout-options.cjs","sourceRoot":"","sources":["shared/graph/layout/layout-options.js"],"names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CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AACD,0CAA0C"}
|
|
@@ -16,17 +16,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/**
|
|
18
18
|
* @module as-graph/shared/ui
|
|
19
|
-
* @summary
|
|
20
|
-
* @description The
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
19
|
+
* @summary UI metadata keys shared with the rendering layer.
|
|
20
|
+
* @description The graph reader inspects the UI decoration metadata that the
|
|
21
|
+
* `@uielement`/`@uiprop` decorators attach to a model's properties. Only the
|
|
22
|
+
* `UIKeys.PROP` key is consumed by the shared graph reader; the rest of the key
|
|
23
|
+
* object is reproduced so the shared package stays self-contained. The former
|
|
24
|
+
* framework-neutral view-model projections and the duplicate execution-state mapper
|
|
25
|
+
* were retired (no consumers; the canonical mapper lives in
|
|
26
|
+
* `@decaf-ts/ui-decorators/graph`).
|
|
25
27
|
*/
|
|
26
28
|
__exportStar(require("./constants.cjs"), exports);
|
|
27
|
-
__exportStar(require("./types.cjs"), exports);
|
|
28
|
-
__exportStar(require("./GraphNodeView.cjs"), exports);
|
|
29
|
-
__exportStar(require("./GraphRunView.cjs"), exports);
|
|
30
|
-
__exportStar(require("./GraphWorkflowView.cjs"), exports);
|
|
31
29
|
//# sourceMappingURL=index.js.map
|
|
32
30
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared/ui/index.cjs","sourceRoot":"","sources":["shared/ui/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"shared/ui/index.cjs","sourceRoot":"","sources":["shared/ui/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,iDAA+B;AAC/B,iCAAiC"}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { GraphExecutionEventType, GraphExecutionStatus, } from "./../shared/graph/index.js";
|
|
2
|
+
import { GraphExecutionError } from "./../engine/errors/index.js";
|
|
3
|
+
import { DAGSTER_ERROR } from "./constants.js";
|
|
4
|
+
/**
|
|
5
|
+
* The documented Dagster → engine-agnostic event mapping table (§4.3).
|
|
6
|
+
*/
|
|
7
|
+
const DAGSTER_EVENT_MAP = {
|
|
8
|
+
STEP_START: GraphExecutionEventType.NODE_STARTED,
|
|
9
|
+
STEP_SUCCESS: GraphExecutionEventType.NODE_COMPLETED,
|
|
10
|
+
STEP_FAILURE: GraphExecutionEventType.NODE_FAILED,
|
|
11
|
+
STEP_SKIPPED: GraphExecutionEventType.NODE_SKIPPED,
|
|
12
|
+
STEP_OUTPUT: GraphExecutionEventType.NODE_OUTPUT,
|
|
13
|
+
RUN_START: GraphExecutionEventType.WORKFLOW_STARTED,
|
|
14
|
+
RUN_SUCCESS: GraphExecutionEventType.WORKFLOW_COMPLETED,
|
|
15
|
+
RUN_FAILURE: GraphExecutionEventType.WORKFLOW_FAILED,
|
|
16
|
+
RUN_CANCELED: GraphExecutionEventType.WORKFLOW_CANCELLED,
|
|
17
|
+
};
|
|
18
|
+
/** Dagster event types that terminate a run. */
|
|
19
|
+
const DAGSTER_TERMINAL_EVENTS = new Set([
|
|
20
|
+
"RUN_SUCCESS",
|
|
21
|
+
"RUN_FAILURE",
|
|
22
|
+
"RUN_CANCELED",
|
|
23
|
+
]);
|
|
24
|
+
/**
|
|
25
|
+
* Default hard cap on the number of events the bridge processes before failing
|
|
26
|
+
* the observation closed. Bounds a gateway that never emits a terminal event.
|
|
27
|
+
*/
|
|
28
|
+
const DEFAULT_MAX_EVENTS = 10000;
|
|
29
|
+
/**
|
|
30
|
+
* Default hard cap on the transport pagination depth. Bounds a gateway whose
|
|
31
|
+
* `eventConnection` never reports `hasMore: false`.
|
|
32
|
+
*/
|
|
33
|
+
const DEFAULT_MAX_PAGES = 100;
|
|
34
|
+
/**
|
|
35
|
+
* Default maximum time (ms) to await the terminal record before failing the
|
|
36
|
+
* observation closed. Callers observing a genuinely long-lived run raise this.
|
|
37
|
+
*/
|
|
38
|
+
const DEFAULT_TERMINAL_TIMEOUT_MS = 5 * 60 * 1000;
|
|
39
|
+
/**
|
|
40
|
+
* Bridges a Dagster run's raw event stream onto the engine-agnostic event sink.
|
|
41
|
+
*/
|
|
42
|
+
export class DagsterGraphEventBridge {
|
|
43
|
+
/**
|
|
44
|
+
* @param options - The run identity, op-name map, sink, client port, and bounds.
|
|
45
|
+
*/
|
|
46
|
+
constructor(options) {
|
|
47
|
+
this.options = options;
|
|
48
|
+
this.nodeResults = new Map();
|
|
49
|
+
this.workflowOutputs = {};
|
|
50
|
+
this.eventCount = 0;
|
|
51
|
+
this.processing = [];
|
|
52
|
+
this.terminalPromise = new Promise((resolve, reject) => {
|
|
53
|
+
this.resolveTerminal = resolve;
|
|
54
|
+
this.rejectTerminal = reject;
|
|
55
|
+
});
|
|
56
|
+
// A scripted client can overflow the event cap during the synchronous replay
|
|
57
|
+
// inside `subscribeRun`, before `waitForTerminal` attaches its handler. Keep a
|
|
58
|
+
// no-op rejection handler so that early failure is never "unhandled".
|
|
59
|
+
this.terminalPromise.catch(() => { });
|
|
60
|
+
}
|
|
61
|
+
/** Subscribes to the run's event stream. */
|
|
62
|
+
async start() {
|
|
63
|
+
if (this.failure)
|
|
64
|
+
throw this.failure;
|
|
65
|
+
if (this.options.signal?.aborted) {
|
|
66
|
+
throw this.failClosed(this.abortError());
|
|
67
|
+
}
|
|
68
|
+
this.subscription = await this.options.client.subscribeRun(this.options.dagsterRunId, (event) => {
|
|
69
|
+
this.processing.push(this.handleEvent(event));
|
|
70
|
+
}, {
|
|
71
|
+
...(this.options.signal ? { signal: this.options.signal } : {}),
|
|
72
|
+
maxEvents: this.options.maxEvents ?? DEFAULT_MAX_EVENTS,
|
|
73
|
+
maxPages: this.options.maxPages ?? DEFAULT_MAX_PAGES,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/** Stops the subscription and waits for in-flight event processing. */
|
|
77
|
+
async stop() {
|
|
78
|
+
await this.subscription?.unsubscribe();
|
|
79
|
+
await Promise.all(this.processing);
|
|
80
|
+
if (this.failure)
|
|
81
|
+
throw this.failure;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Waits for the run's terminal record, bounded by the observation's
|
|
85
|
+
* `terminalTimeoutMs` and `signal`. Exceeding the timeout, or an abort, fails
|
|
86
|
+
* the wait closed instead of hanging on a stalled or hostile gateway.
|
|
87
|
+
*
|
|
88
|
+
* @returns The terminal Dagster run record.
|
|
89
|
+
* @throws {GraphExecutionError} `GRAPH_DAGSTER_OBSERVE_TIMEOUT` when the run
|
|
90
|
+
* does not terminate in time, or `GRAPH_DAGSTER_OBSERVE_ABORTED` on abort.
|
|
91
|
+
*/
|
|
92
|
+
async waitForTerminal() {
|
|
93
|
+
if (this.terminal)
|
|
94
|
+
return this.terminal;
|
|
95
|
+
if (this.failure)
|
|
96
|
+
throw this.failure;
|
|
97
|
+
const signal = this.options.signal;
|
|
98
|
+
if (signal?.aborted) {
|
|
99
|
+
throw this.failClosed(this.abortError());
|
|
100
|
+
}
|
|
101
|
+
const timeoutMs = this.options.terminalTimeoutMs ?? DEFAULT_TERMINAL_TIMEOUT_MS;
|
|
102
|
+
return await new Promise((resolve, reject) => {
|
|
103
|
+
let timer;
|
|
104
|
+
const onAbort = () => {
|
|
105
|
+
cleanup();
|
|
106
|
+
this.failClosed(this.abortError());
|
|
107
|
+
};
|
|
108
|
+
const cleanup = () => {
|
|
109
|
+
if (timer)
|
|
110
|
+
clearTimeout(timer);
|
|
111
|
+
signal?.removeEventListener("abort", onAbort);
|
|
112
|
+
};
|
|
113
|
+
if (signal)
|
|
114
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
115
|
+
if (timeoutMs > 0) {
|
|
116
|
+
timer = setTimeout(() => {
|
|
117
|
+
this.failClosed(this.timeoutError(timeoutMs));
|
|
118
|
+
}, timeoutMs);
|
|
119
|
+
}
|
|
120
|
+
this.terminalPromise.then((record) => {
|
|
121
|
+
cleanup();
|
|
122
|
+
resolve(record);
|
|
123
|
+
}, (error) => {
|
|
124
|
+
cleanup();
|
|
125
|
+
reject(error);
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/** The node results collected from step events. */
|
|
130
|
+
collectedNodeResults() {
|
|
131
|
+
return Object.fromEntries(this.nodeResults);
|
|
132
|
+
}
|
|
133
|
+
/** The workflow output values collected from the terminal record. */
|
|
134
|
+
collectedWorkflowOutputs() {
|
|
135
|
+
return this.workflowOutputs;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Resolves a Dagster step key to a canonical node id through the inspected
|
|
139
|
+
* job's op-name map.
|
|
140
|
+
*
|
|
141
|
+
* @param stepKey - The Dagster step key.
|
|
142
|
+
* @returns The canonical node id, or `undefined` for non-graph steps.
|
|
143
|
+
*/
|
|
144
|
+
resolveNodeId(stepKey) {
|
|
145
|
+
if (!stepKey)
|
|
146
|
+
return undefined;
|
|
147
|
+
const direct = this.options.nodeIdsByOpName[stepKey];
|
|
148
|
+
if (direct)
|
|
149
|
+
return direct;
|
|
150
|
+
const tail = stepKey.split(".").pop();
|
|
151
|
+
return tail ? this.options.nodeIdsByOpName[tail] : undefined;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Handles a single raw Dagster event.
|
|
155
|
+
*
|
|
156
|
+
* @param event - The raw event.
|
|
157
|
+
*/
|
|
158
|
+
async handleEvent(event) {
|
|
159
|
+
if (this.failure)
|
|
160
|
+
return;
|
|
161
|
+
this.eventCount += 1;
|
|
162
|
+
const maxEvents = this.options.maxEvents ?? DEFAULT_MAX_EVENTS;
|
|
163
|
+
if (this.eventCount > maxEvents) {
|
|
164
|
+
this.failClosed(this.limitError(maxEvents));
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
const type = DAGSTER_EVENT_MAP[event.type];
|
|
168
|
+
if (!type) {
|
|
169
|
+
if (event.stepKey !== undefined || event.type.startsWith("STEP_")) {
|
|
170
|
+
throw new GraphExecutionError(`Dagster step event '${event.type}' has no engine-agnostic mapping`, DAGSTER_ERROR.EVENT_UNSUPPORTED, { eventType: event.type, stepKey: event.stepKey });
|
|
171
|
+
}
|
|
172
|
+
// Unknown run/engine-level telemetry is ignored: it is not a graph
|
|
173
|
+
// transition and must not break the run.
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (DAGSTER_TERMINAL_EVENTS.has(event.type)) {
|
|
177
|
+
const record = await this.options.client.getRun(this.options.dagsterRunId);
|
|
178
|
+
this.terminal = record;
|
|
179
|
+
if (record.outputs) {
|
|
180
|
+
for (const [key, value] of Object.entries(record.outputs)) {
|
|
181
|
+
this.workflowOutputs[key] = value;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
await this.options.sink.emit({
|
|
185
|
+
type,
|
|
186
|
+
runId: this.options.graphRunId,
|
|
187
|
+
workflowId: this.options.workflowId,
|
|
188
|
+
path: [],
|
|
189
|
+
status: this.terminalStatus(record),
|
|
190
|
+
...(record.error
|
|
191
|
+
? { error: this.toErrorPayload(record.error) }
|
|
192
|
+
: {}),
|
|
193
|
+
payload: { outputs: this.workflowOutputs },
|
|
194
|
+
});
|
|
195
|
+
this.resolveTerminal?.(record);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
const nodeId = this.resolveNodeId(event.stepKey);
|
|
199
|
+
if (!nodeId) {
|
|
200
|
+
// Run-level, non-terminal transitions (e.g. `RUN_START`) carry no step
|
|
201
|
+
// key and map onto the workflow without a node id. A step event whose key
|
|
202
|
+
// the inspected job does not know is still ignored.
|
|
203
|
+
if (event.stepKey !== undefined)
|
|
204
|
+
return;
|
|
205
|
+
await this.options.sink.emit({
|
|
206
|
+
type,
|
|
207
|
+
runId: this.options.graphRunId,
|
|
208
|
+
workflowId: this.options.workflowId,
|
|
209
|
+
path: [],
|
|
210
|
+
});
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const status = this.nodeStatus(event.type);
|
|
214
|
+
const outputs = this.extractOutputs(event);
|
|
215
|
+
if (outputs) {
|
|
216
|
+
this.workflowOutputs[nodeId] = outputs;
|
|
217
|
+
}
|
|
218
|
+
this.nodeResults.set(nodeId, {
|
|
219
|
+
nodeId,
|
|
220
|
+
status,
|
|
221
|
+
inputs: {},
|
|
222
|
+
...(outputs ? { outputs } : {}),
|
|
223
|
+
startedAt: new Date(),
|
|
224
|
+
finishedAt: new Date(),
|
|
225
|
+
events: [],
|
|
226
|
+
...(status === GraphExecutionStatus.FAILED && event.message
|
|
227
|
+
? { error: this.toErrorPayload({ message: event.message }) }
|
|
228
|
+
: {}),
|
|
229
|
+
});
|
|
230
|
+
await this.options.sink.emit({
|
|
231
|
+
type,
|
|
232
|
+
runId: this.options.graphRunId,
|
|
233
|
+
workflowId: this.options.workflowId,
|
|
234
|
+
nodeId,
|
|
235
|
+
path: [nodeId],
|
|
236
|
+
status,
|
|
237
|
+
...(outputs ? { payload: { outputs } } : {}),
|
|
238
|
+
...(status === GraphExecutionStatus.FAILED && event.message
|
|
239
|
+
? { error: this.toErrorPayload({ message: event.message }) }
|
|
240
|
+
: {}),
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Maps a Dagster event type to an engine-agnostic execution status.
|
|
245
|
+
*
|
|
246
|
+
* @param eventType - The Dagster event type.
|
|
247
|
+
* @returns The engine-agnostic status.
|
|
248
|
+
*/
|
|
249
|
+
nodeStatus(eventType) {
|
|
250
|
+
switch (eventType) {
|
|
251
|
+
case "STEP_SUCCESS":
|
|
252
|
+
return GraphExecutionStatus.SUCCEEDED;
|
|
253
|
+
case "STEP_FAILURE":
|
|
254
|
+
return GraphExecutionStatus.FAILED;
|
|
255
|
+
case "STEP_SKIPPED":
|
|
256
|
+
return GraphExecutionStatus.SKIPPED;
|
|
257
|
+
default:
|
|
258
|
+
return GraphExecutionStatus.RUNNING;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Maps a terminal Dagster run record to an engine-agnostic status.
|
|
263
|
+
*
|
|
264
|
+
* @param record - The terminal run record.
|
|
265
|
+
* @returns The engine-agnostic status.
|
|
266
|
+
*/
|
|
267
|
+
terminalStatus(record) {
|
|
268
|
+
switch (record.status) {
|
|
269
|
+
case "success":
|
|
270
|
+
return GraphExecutionStatus.SUCCEEDED;
|
|
271
|
+
case "canceled":
|
|
272
|
+
return GraphExecutionStatus.CANCELLED;
|
|
273
|
+
default:
|
|
274
|
+
return GraphExecutionStatus.FAILED;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Extracts output values from a Dagster step event payload.
|
|
279
|
+
*
|
|
280
|
+
* @param event - The raw event.
|
|
281
|
+
* @returns The extracted outputs, or `undefined`.
|
|
282
|
+
*/
|
|
283
|
+
extractOutputs(event) {
|
|
284
|
+
if (event.type !== "STEP_OUTPUT")
|
|
285
|
+
return undefined;
|
|
286
|
+
const payload = event.payload ?? {};
|
|
287
|
+
const raw = payload["outputs"];
|
|
288
|
+
if (raw && typeof raw === "object" && !Array.isArray(raw)) {
|
|
289
|
+
return raw;
|
|
290
|
+
}
|
|
291
|
+
return payload;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Fails the observation closed exactly once: records the failure, rejects the
|
|
295
|
+
* terminal wait, and cancels the underlying subscription so a stalled transport
|
|
296
|
+
* stops working.
|
|
297
|
+
*
|
|
298
|
+
* @param error - The graph error the observation failed with.
|
|
299
|
+
* @returns The same error, for convenient `throw`/`return` use.
|
|
300
|
+
*/
|
|
301
|
+
failClosed(error) {
|
|
302
|
+
if (!this.failure) {
|
|
303
|
+
this.failure = error;
|
|
304
|
+
this.rejectTerminal?.(error);
|
|
305
|
+
const subscription = this.subscription;
|
|
306
|
+
if (subscription) {
|
|
307
|
+
void Promise.resolve(subscription.unsubscribe()).catch(() => { });
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return this.failure;
|
|
311
|
+
}
|
|
312
|
+
/** The error raised when the caller aborts the observation. */
|
|
313
|
+
abortError() {
|
|
314
|
+
return new GraphExecutionError(`Dagster run '${this.options.dagsterRunId}' observation was aborted by the caller`, DAGSTER_ERROR.OBSERVE_ABORTED, { runId: this.options.dagsterRunId });
|
|
315
|
+
}
|
|
316
|
+
/** The error raised when the run misses the terminal-wait timeout. */
|
|
317
|
+
timeoutError(timeoutMs) {
|
|
318
|
+
return new GraphExecutionError(`Dagster run '${this.options.dagsterRunId}' did not reach a terminal state within ${timeoutMs}ms`, DAGSTER_ERROR.OBSERVE_TIMEOUT, { runId: this.options.dagsterRunId, timeoutMs });
|
|
319
|
+
}
|
|
320
|
+
/** The error raised when the run exceeds the event cap. */
|
|
321
|
+
limitError(maxEvents) {
|
|
322
|
+
return new GraphExecutionError(`Dagster run '${this.options.dagsterRunId}' emitted more than ${maxEvents} events without reaching a terminal state`, DAGSTER_ERROR.EVENT_LIMIT_EXCEEDED, { runId: this.options.dagsterRunId, maxEvents });
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Builds a frontend-safe error payload. Raw Dagster details are never
|
|
326
|
+
* forwarded to clients (standing hardening rule).
|
|
327
|
+
*
|
|
328
|
+
* @param error - The raw error.
|
|
329
|
+
* @returns The frontend-safe error payload.
|
|
330
|
+
*/
|
|
331
|
+
toErrorPayload(error) {
|
|
332
|
+
return {
|
|
333
|
+
name: "DagsterRunError",
|
|
334
|
+
message: error.message ?? "Dagster run failed",
|
|
335
|
+
...(error.code ? { code: error.code } : {}),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
//# sourceMappingURL=DagsterGraphEventBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DagsterGraphEvent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