@pipelex/mthds-ui 0.34.1 → 0.36.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.
Files changed (39) hide show
  1. package/README.md +26 -4
  2. package/dist/{chunk-TMZ2JR2J.js → chunk-4KLE62AN.js} +13 -1
  3. package/dist/chunk-4KLE62AN.js.map +1 -0
  4. package/dist/{chunk-ABUDTHWF.js → chunk-AGFLCOWW.js} +47 -5
  5. package/dist/chunk-AGFLCOWW.js.map +1 -0
  6. package/dist/{chunk-K2C5FU4W.js → chunk-ENRYQOCO.js} +2 -2
  7. package/dist/chunk-ILZJIORT.js +54 -0
  8. package/dist/chunk-ILZJIORT.js.map +1 -0
  9. package/dist/chunk-JJG2TO7P.js +473 -0
  10. package/dist/chunk-JJG2TO7P.js.map +1 -0
  11. package/dist/form/react/index.d.ts +2 -1
  12. package/dist/form/react/index.js +2 -2
  13. package/dist/graph/index.d.ts +3 -2
  14. package/dist/graph/index.js +7 -3
  15. package/dist/graph/react/detail/DetailPanel.css +37 -11
  16. package/dist/graph/react/graph-core.css +39 -0
  17. package/dist/graph/react/index.d.ts +5 -2
  18. package/dist/graph/react/index.js +596 -589
  19. package/dist/graph/react/index.js.map +1 -1
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +7 -3
  22. package/dist/progressSnapshot-VZ4PLul9.d.ts +191 -0
  23. package/dist/standalone/graph-standalone.html +191 -126
  24. package/dist/standalone/graph-viewer.css +77 -12
  25. package/dist/standalone/graph-viewer.js +114 -114
  26. package/dist/static-graph/index.d.ts +2 -1
  27. package/dist/static-graph/index.js +1 -1
  28. package/dist/timeline/index.d.ts +339 -0
  29. package/dist/timeline/index.js +70 -0
  30. package/dist/timeline/index.js.map +1 -0
  31. package/dist/timeline/react/RunTimeline.css +503 -0
  32. package/dist/timeline/react/index.d.ts +69 -0
  33. package/dist/timeline/react/index.js +402 -0
  34. package/dist/timeline/react/index.js.map +1 -0
  35. package/dist/{types-MvxsDLCo.d.ts → types-DsrzH6gM.d.ts} +43 -7
  36. package/package.json +12 -2
  37. package/dist/chunk-ABUDTHWF.js.map +0 -1
  38. package/dist/chunk-TMZ2JR2J.js.map +0 -1
  39. /package/dist/{chunk-K2C5FU4W.js.map → chunk-ENRYQOCO.js.map} +0 -0
@@ -1,4 +1,8 @@
1
1
  "use client";
2
+ import {
3
+ detectSystemTheme,
4
+ useSystemTheme
5
+ } from "../../chunk-ILZJIORT.js";
2
6
  import {
3
7
  GRAPH_STYLES,
4
8
  GRAPH_STYLE_PIPELINES,
@@ -21,14 +25,14 @@ import {
21
25
  roundedPolylinePath,
22
26
  routeLabelCenter,
23
27
  validateGraphSpec
24
- } from "../../chunk-ABUDTHWF.js";
28
+ } from "../../chunk-AGFLCOWW.js";
25
29
  import {
26
30
  parsePipeRef
27
31
  } from "../../chunk-2N65P32H.js";
28
32
  import {
29
33
  DEFAULT_GRAPH_CONFIG,
30
34
  getPaletteForTheme
31
- } from "../../chunk-K2C5FU4W.js";
35
+ } from "../../chunk-ENRYQOCO.js";
32
36
  import {
33
37
  BINDING_STEP_TYPE,
34
38
  EDGE_TYPE,
@@ -37,7 +41,6 @@ import {
37
41
  GRAPH_DIRECTION,
38
42
  GRAPH_SPEC_MODE,
39
43
  GRAPH_STYLE,
40
- GRAPH_THEME,
41
44
  GRAPH_THEME_MODE,
42
45
  NODE_TYPE_SIMPLE_DECISION,
43
46
  NODE_TYPE_SIMPLE_FRAME,
@@ -49,14 +52,17 @@ import {
49
52
  isBindingNode,
50
53
  isBindingStepSpec,
51
54
  isDryGraphSpec,
55
+ isFailingPipeNode,
52
56
  isPluralMultiplicity,
53
57
  isStaticGraphSpec,
54
58
  multiplicitySuffix,
59
+ problemFailingPipe,
55
60
  stuffDigestFromId,
56
61
  toolbarOrientation,
57
62
  toolbarSide
58
- } from "../../chunk-TMZ2JR2J.js";
63
+ } from "../../chunk-4KLE62AN.js";
59
64
  import {
65
+ __objRest,
60
66
  __spreadProps,
61
67
  __spreadValues
62
68
  } from "../../chunk-2NMEKWO5.js";
@@ -68,7 +74,7 @@ import "./viewer/GraphToolbar.css";
68
74
  import "./styles/simple/SimpleStyle.css";
69
75
 
70
76
  // src/graph/react/viewer/GraphViewer.tsx
71
- import React13 from "react";
77
+ import React12 from "react";
72
78
  import {
73
79
  ReactFlow,
74
80
  useNodesState,
@@ -77,53 +83,8 @@ import {
77
83
  BackgroundVariant
78
84
  } from "@xyflow/react";
79
85
 
80
- // src/graph/react/viewer/useSystemTheme.ts
81
- import React from "react";
82
- var PREFERS_DARK_QUERY = "(prefers-color-scheme: dark)";
83
- function prefersDarkToTheme(prefersDark) {
84
- return prefersDark ? GRAPH_THEME.DARK : GRAPH_THEME.LIGHT;
85
- }
86
- function detectSystemTheme() {
87
- if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
88
- return GRAPH_THEME.DARK;
89
- }
90
- return prefersDarkToTheme(window.matchMedia(PREFERS_DARK_QUERY).matches);
91
- }
92
- function subscribeToSystemTheme(onChange) {
93
- if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
94
- return () => {
95
- };
96
- }
97
- const mql = window.matchMedia(PREFERS_DARK_QUERY);
98
- if (typeof mql.addEventListener === "function") {
99
- mql.addEventListener("change", onChange);
100
- return () => mql.removeEventListener("change", onChange);
101
- }
102
- mql.addListener(onChange);
103
- return () => mql.removeListener(onChange);
104
- }
105
- function systemThemeStore(injected) {
106
- if (injected !== void 0) {
107
- return {
108
- subscribe: () => () => {
109
- },
110
- getSnapshot: () => injected,
111
- getServerSnapshot: () => injected
112
- };
113
- }
114
- return {
115
- subscribe: subscribeToSystemTheme,
116
- getSnapshot: detectSystemTheme,
117
- getServerSnapshot: () => GRAPH_THEME.DARK
118
- };
119
- }
120
- function useSystemTheme(injected) {
121
- const store = React.useMemo(() => systemThemeStore(injected), [injected]);
122
- return React.useSyncExternalStore(store.subscribe, store.getSnapshot, store.getServerSnapshot);
123
- }
124
-
125
86
  // src/graph/react/detail/StuffResultPanel.tsx
126
- import * as React2 from "react";
87
+ import * as React from "react";
127
88
  import {
128
89
  buildResultField,
129
90
  getPipeInputForm,
@@ -149,7 +110,7 @@ function StuffResultPanel({
149
110
  saveFiles,
150
111
  downloads
151
112
  }) {
152
- const field = React2.useMemo(
113
+ const field = React.useMemo(
153
114
  () => {
154
115
  var _a;
155
116
  return (_a = fromProducer(pipeIoContracts, outputForm, producerPipeRef)) != null ? _a : fromConsumer(pipeIoContracts, inputForm, consumer);
@@ -223,7 +184,7 @@ function resultDescriptors(graph) {
223
184
  }
224
185
 
225
186
  // src/graph/react/detail/DetailPanel.tsx
226
- import React3 from "react";
187
+ import React2 from "react";
227
188
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
228
189
  function DetailPanel({
229
190
  isOpen,
@@ -234,7 +195,7 @@ function DetailPanel({
234
195
  onResizeHandleMouseDown,
235
196
  closeOnEscape = true
236
197
  }) {
237
- React3.useEffect(() => {
198
+ React2.useEffect(() => {
238
199
  if (!isOpen || !closeOnEscape) return;
239
200
  const onKeyDown = (e) => {
240
201
  if (e.key === "Escape") onClose();
@@ -266,7 +227,7 @@ function DetailPanel({
266
227
  }
267
228
 
268
229
  // src/graph/react/detail/useResizable.ts
269
- import React4 from "react";
230
+ import React3 from "react";
270
231
  var MAX_WIDTH_RATIO = 0.6;
271
232
  function useResizable({
272
233
  defaultWidth,
@@ -274,11 +235,11 @@ function useResizable({
274
235
  maxWidth,
275
236
  containerRef
276
237
  }) {
277
- const [width, setWidth] = React4.useState(defaultWidth);
278
- const [isDragging, setIsDragging] = React4.useState(false);
279
- const dragRef = React4.useRef({ startX: 0, startWidth: 0, maxAllowed: maxWidth });
280
- const rafRef = React4.useRef(null);
281
- const handleMouseDown = React4.useCallback(
238
+ const [width, setWidth] = React3.useState(defaultWidth);
239
+ const [isDragging, setIsDragging] = React3.useState(false);
240
+ const dragRef = React3.useRef({ startX: 0, startWidth: 0, maxAllowed: maxWidth });
241
+ const rafRef = React3.useRef(null);
242
+ const handleMouseDown = React3.useCallback(
282
243
  (e) => {
283
244
  var _a;
284
245
  e.preventDefault();
@@ -292,7 +253,7 @@ function useResizable({
292
253
  },
293
254
  [width, maxWidth, containerRef]
294
255
  );
295
- React4.useEffect(() => {
256
+ React3.useEffect(() => {
296
257
  if (!isDragging) return;
297
258
  const onMouseMove = (e) => {
298
259
  if (rafRef.current !== null) cancelAnimationFrame(rafRef.current);
@@ -330,7 +291,7 @@ function useResizable({
330
291
  }
331
292
 
332
293
  // src/graph/react/detail/PipeDetailPanel.tsx
333
- import React6 from "react";
294
+ import React5 from "react";
334
295
 
335
296
  // src/graph/react/detail/sections/shared.tsx
336
297
  import { useState } from "react";
@@ -1174,6 +1135,39 @@ function BindingStepSection({ node }) {
1174
1135
  ] });
1175
1136
  }
1176
1137
 
1138
+ // src/graph/react/detail/sections/ProblemSection.tsx
1139
+ import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
1140
+ function ProblemSection({
1141
+ problem,
1142
+ failedHere
1143
+ }) {
1144
+ var _a, _b;
1145
+ const failingPipe = problemFailingPipe(problem);
1146
+ const pipePath = (_b = (_a = problem.location) == null ? void 0 : _a.path) != null ? _b : [];
1147
+ return /* @__PURE__ */ jsxs17("div", { className: "detail-problem", children: [
1148
+ /* @__PURE__ */ jsxs17("div", { className: "detail-problem-header", children: [
1149
+ problem.title && /* @__PURE__ */ jsx17("span", { className: "detail-problem-title", children: problem.title }),
1150
+ /* @__PURE__ */ jsx17("code", { className: "detail-problem-code", title: "Problem code", children: problem.code })
1151
+ ] }),
1152
+ problem.detail && /* @__PURE__ */ jsx17("div", { className: "detail-problem-detail", children: problem.detail }),
1153
+ failingPipe !== void 0 && /* @__PURE__ */ jsxs17("div", { className: "detail-problem-location", children: [
1154
+ /* @__PURE__ */ jsx17(KV, { label: "Failed in", value: failedHere ? `${failingPipe} (this pipe)` : failingPipe }),
1155
+ pipePath.length > 1 && /* @__PURE__ */ jsx17(
1156
+ "div",
1157
+ {
1158
+ className: "detail-problem-path",
1159
+ title: "From the run's main pipe to the failing one",
1160
+ children: pipePath.join(" \u203A ")
1161
+ }
1162
+ )
1163
+ ] }),
1164
+ problem.next_step.detail && /* @__PURE__ */ jsxs17("div", { className: "detail-problem-next-step", children: [
1165
+ /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Next step" }),
1166
+ /* @__PURE__ */ jsx17("div", { className: "detail-problem-next-step-detail", children: problem.next_step.detail })
1167
+ ] })
1168
+ ] });
1169
+ }
1170
+
1177
1171
  // src/graph/react/detail/sections/executionData.ts
1178
1172
  var MERGED_EXECUTION_DATA_TYPES = /* @__PURE__ */ new Set([
1179
1173
  "PipeLLM",
@@ -1202,7 +1196,7 @@ function dumpableExecutionData(pipeType, executionData) {
1202
1196
  }
1203
1197
 
1204
1198
  // src/graph/react/detail/PipeDetailPanel.tsx
1205
- import { Fragment as Fragment11, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
1199
+ import { Fragment as Fragment11, jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
1206
1200
  var PIPE_TYPE_BADGES = {
1207
1201
  PipeLLM: "LLM",
1208
1202
  PipeExtract: "Extract",
@@ -1244,22 +1238,22 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1244
1238
  const badge = PIPE_TYPE_BADGES[pipeType];
1245
1239
  const status = node.status;
1246
1240
  const statusColor = (_a = STATUS_COLORS[status]) != null ? _a : "#6272a4";
1247
- const blueprint = React6.useMemo(() => resolveNodeBlueprint(spec, node), [spec, node]);
1248
- const [usageExpanded, setUsageExpanded] = React6.useState(false);
1241
+ const blueprint = React5.useMemo(() => resolveNodeBlueprint(spec, node), [spec, node]);
1242
+ const [usageExpanded, setUsageExpanded] = React5.useState(false);
1249
1243
  const inputs = (_c = (_b = node.io) == null ? void 0 : _b.inputs) != null ? _c : [];
1250
1244
  const outputs = (_e = (_d = node.io) == null ? void 0 : _d.outputs) != null ? _e : [];
1251
1245
  const description = (_f = blueprint == null ? void 0 : blueprint.description) != null ? _f : node.description;
1252
- return /* @__PURE__ */ jsxs17(Fragment11, { children: [
1253
- /* @__PURE__ */ jsxs17("div", { className: "detail-sticky-header", children: [
1254
- /* @__PURE__ */ jsxs17("div", { className: "detail-header", children: [
1255
- /* @__PURE__ */ jsx17(
1246
+ return /* @__PURE__ */ jsxs18(Fragment11, { children: [
1247
+ /* @__PURE__ */ jsxs18("div", { className: "detail-sticky-header", children: [
1248
+ /* @__PURE__ */ jsxs18("div", { className: "detail-header", children: [
1249
+ /* @__PURE__ */ jsx18(
1256
1250
  "span",
1257
1251
  {
1258
1252
  className: `detail-badge ${isController ? "detail-badge--controller" : "detail-badge--operator"}`,
1259
1253
  children: badge
1260
1254
  }
1261
1255
  ),
1262
- /* @__PURE__ */ jsx17(
1256
+ /* @__PURE__ */ jsx18(
1263
1257
  "span",
1264
1258
  {
1265
1259
  className: `detail-pipe-code ${isController ? "detail-pipe-code--controller" : ""}`,
@@ -1267,11 +1261,11 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1267
1261
  }
1268
1262
  )
1269
1263
  ] }),
1270
- !isStatic && /* @__PURE__ */ jsxs17("div", { className: "detail-status", children: [
1271
- /* @__PURE__ */ jsx17("span", { className: "detail-status-dot", style: { background: statusColor } }),
1272
- /* @__PURE__ */ jsx17("span", { className: "detail-status-label", style: { color: statusColor }, children: status }),
1273
- ((_g = node.timing) == null ? void 0 : _g.duration) != null && /* @__PURE__ */ jsx17("span", { className: "detail-duration", children: formatDuration(node.timing.duration) }),
1274
- showsGeneratedData && node.usage && /* @__PURE__ */ jsx17(
1264
+ !isStatic && /* @__PURE__ */ jsxs18("div", { className: "detail-status", children: [
1265
+ /* @__PURE__ */ jsx18("span", { className: "detail-status-dot", style: { background: statusColor } }),
1266
+ /* @__PURE__ */ jsx18("span", { className: "detail-status-label", style: { color: statusColor }, children: status }),
1267
+ ((_g = node.timing) == null ? void 0 : _g.duration) != null && /* @__PURE__ */ jsx18("span", { className: "detail-duration", children: formatDuration(node.timing.duration) }),
1268
+ showsGeneratedData && node.usage && /* @__PURE__ */ jsx18(
1275
1269
  UsageCostInline,
1276
1270
  {
1277
1271
  usage: node.usage,
@@ -1281,44 +1275,45 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1281
1275
  }
1282
1276
  )
1283
1277
  ] }),
1284
- showsGeneratedData && node.usage && usageExpanded && /* @__PURE__ */ jsx17(UsageDetails, { usage: node.usage, isController }),
1285
- description && /* @__PURE__ */ jsx17("div", { className: "detail-description", children: description }),
1286
- inputs.length > 0 && /* @__PURE__ */ jsxs17("div", { children: [
1287
- /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Inputs" }),
1288
- /* @__PURE__ */ jsx17("div", { className: "detail-io-list", children: inputs.map((input, idx) => /* @__PURE__ */ jsxs17(
1278
+ showsGeneratedData && node.usage && usageExpanded && /* @__PURE__ */ jsx18(UsageDetails, { usage: node.usage, isController }),
1279
+ description && /* @__PURE__ */ jsx18("div", { className: "detail-description", children: description }),
1280
+ inputs.length > 0 && /* @__PURE__ */ jsxs18("div", { children: [
1281
+ /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Inputs" }),
1282
+ /* @__PURE__ */ jsx18("div", { className: "detail-io-list", children: inputs.map((input, idx) => /* @__PURE__ */ jsxs18(
1289
1283
  "div",
1290
1284
  {
1291
1285
  className: "detail-io-pill",
1292
1286
  style: { cursor: input.concept && onConceptClick ? "pointer" : void 0 },
1293
1287
  onClick: () => input.concept && (onConceptClick == null ? void 0 : onConceptClick(input.concept)),
1294
1288
  children: [
1295
- /* @__PURE__ */ jsx17("span", { className: "detail-io-name", children: input.name }),
1296
- input.concept && /* @__PURE__ */ jsx17("span", { className: "detail-io-concept", children: input.concept + multiplicitySuffix(input.multiplicity) })
1289
+ /* @__PURE__ */ jsx18("span", { className: "detail-io-name", children: input.name }),
1290
+ input.concept && /* @__PURE__ */ jsx18("span", { className: "detail-io-concept", children: input.concept + multiplicitySuffix(input.multiplicity) })
1297
1291
  ]
1298
1292
  },
1299
1293
  idx
1300
1294
  )) })
1301
1295
  ] }),
1302
- outputs.length > 0 && /* @__PURE__ */ jsxs17("div", { children: [
1303
- /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Output" }),
1304
- /* @__PURE__ */ jsx17("div", { className: "detail-io-list", children: outputs.map((output, idx) => /* @__PURE__ */ jsxs17(
1296
+ outputs.length > 0 && /* @__PURE__ */ jsxs18("div", { children: [
1297
+ /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Output" }),
1298
+ /* @__PURE__ */ jsx18("div", { className: "detail-io-list", children: outputs.map((output, idx) => /* @__PURE__ */ jsxs18(
1305
1299
  "div",
1306
1300
  {
1307
1301
  className: "detail-io-pill",
1308
1302
  style: { cursor: output.concept && onConceptClick ? "pointer" : void 0 },
1309
1303
  onClick: () => output.concept && (onConceptClick == null ? void 0 : onConceptClick(output.concept)),
1310
1304
  children: [
1311
- /* @__PURE__ */ jsx17("span", { className: "detail-io-name", children: output.name }),
1312
- output.concept && /* @__PURE__ */ jsx17("span", { className: "detail-io-concept", children: output.concept + multiplicitySuffix(output.multiplicity) })
1305
+ /* @__PURE__ */ jsx18("span", { className: "detail-io-name", children: output.name }),
1306
+ output.concept && /* @__PURE__ */ jsx18("span", { className: "detail-io-concept", children: output.concept + multiplicitySuffix(output.multiplicity) })
1313
1307
  ]
1314
1308
  },
1315
1309
  idx
1316
1310
  )) })
1317
1311
  ] }),
1318
- (inputs.length > 0 || outputs.length > 0) && /* @__PURE__ */ jsx17("div", { style: { borderTop: "1px solid rgba(255,255,255,0.06)", margin: "4px 0" } })
1312
+ (inputs.length > 0 || outputs.length > 0) && /* @__PURE__ */ jsx18("div", { style: { borderTop: "1px solid rgba(255,255,255,0.06)", margin: "4px 0" } })
1319
1313
  ] }),
1320
- isBinding && /* @__PURE__ */ jsx17(BindingStepSection, { node }),
1321
- blueprint && /* @__PURE__ */ jsx17(
1314
+ node.error && /* @__PURE__ */ jsx18(ProblemSection, { problem: node.error, failedHere: isFailingPipeNode(node) }),
1315
+ isBinding && /* @__PURE__ */ jsx18(BindingStepSection, { node }),
1316
+ blueprint && /* @__PURE__ */ jsx18(
1322
1317
  BlueprintSection,
1323
1318
  {
1324
1319
  blueprint,
@@ -1327,7 +1322,7 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1327
1322
  modelHandles: node.execution_data
1328
1323
  }
1329
1324
  ),
1330
- showsGeneratedData && !isBinding && node.execution_data && Object.keys(node.execution_data).length > 0 && /* @__PURE__ */ jsx17(
1325
+ showsGeneratedData && !isBinding && node.execution_data && Object.keys(node.execution_data).length > 0 && /* @__PURE__ */ jsx18(
1331
1326
  ExecutionDataSection,
1332
1327
  {
1333
1328
  executionData: node.execution_data,
@@ -1335,14 +1330,9 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1335
1330
  hasBlueprint: !!blueprint
1336
1331
  }
1337
1332
  ),
1338
- node.error && /* @__PURE__ */ jsxs17("div", { className: "detail-error", children: [
1339
- /* @__PURE__ */ jsx17("div", { className: "detail-error-type", children: node.error.error_type }),
1340
- /* @__PURE__ */ jsx17("div", { className: "detail-error-message", children: node.error.message }),
1341
- node.error.stack && /* @__PURE__ */ jsx17("div", { className: "detail-error-stack", children: node.error.stack })
1342
- ] }),
1343
- showsGeneratedData && node.metrics && Object.keys(node.metrics).length > 0 && /* @__PURE__ */ jsxs17("div", { children: [
1344
- /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Metrics" }),
1345
- Object.entries(node.metrics).map(([key, value]) => /* @__PURE__ */ jsx17(
1333
+ showsGeneratedData && node.metrics && Object.keys(node.metrics).length > 0 && /* @__PURE__ */ jsxs18("div", { children: [
1334
+ /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Metrics" }),
1335
+ Object.entries(node.metrics).map(([key, value]) => /* @__PURE__ */ jsx18(
1346
1336
  KV,
1347
1337
  {
1348
1338
  label: key,
@@ -1351,17 +1341,17 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
1351
1341
  key
1352
1342
  ))
1353
1343
  ] }),
1354
- node.tags && Object.keys(node.tags).length > 0 && /* @__PURE__ */ jsxs17("div", { children: [
1355
- /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Tags" }),
1356
- /* @__PURE__ */ jsx17("div", { className: "detail-tags", children: Object.entries(node.tags).map(([key, value]) => /* @__PURE__ */ jsxs17("span", { className: "detail-tag", children: [
1357
- /* @__PURE__ */ jsxs17("span", { className: "detail-tag-key", children: [
1344
+ node.tags && Object.keys(node.tags).length > 0 && /* @__PURE__ */ jsxs18("div", { children: [
1345
+ /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Tags" }),
1346
+ /* @__PURE__ */ jsx18("div", { className: "detail-tags", children: Object.entries(node.tags).map(([key, value]) => /* @__PURE__ */ jsxs18("span", { className: "detail-tag", children: [
1347
+ /* @__PURE__ */ jsxs18("span", { className: "detail-tag-key", children: [
1358
1348
  key,
1359
1349
  ": "
1360
1350
  ] }),
1361
- /* @__PURE__ */ jsx17("span", { className: "detail-tag-value", children: value })
1351
+ /* @__PURE__ */ jsx18("span", { className: "detail-tag-value", children: value })
1362
1352
  ] }, key)) })
1363
1353
  ] }),
1364
- !blueprint && !isBinding && /* @__PURE__ */ jsx17("div", { className: "detail-not-available", children: "Blueprint not available" })
1354
+ !blueprint && !isBinding && /* @__PURE__ */ jsx18("div", { className: "detail-not-available", children: "Blueprint not available" })
1365
1355
  ] });
1366
1356
  }
1367
1357
  function BlueprintSection({
@@ -1372,7 +1362,7 @@ function BlueprintSection({
1372
1362
  }) {
1373
1363
  switch (blueprint.type) {
1374
1364
  case "PipeLLM":
1375
- return /* @__PURE__ */ jsx17(
1365
+ return /* @__PURE__ */ jsx18(
1376
1366
  PipeLLMSection,
1377
1367
  {
1378
1368
  blueprint,
@@ -1382,7 +1372,7 @@ function BlueprintSection({
1382
1372
  }
1383
1373
  );
1384
1374
  case "PipeImgGen":
1385
- return /* @__PURE__ */ jsx17(
1375
+ return /* @__PURE__ */ jsx18(
1386
1376
  PipeImgGenSection,
1387
1377
  {
1388
1378
  blueprint,
@@ -1392,9 +1382,9 @@ function BlueprintSection({
1392
1382
  }
1393
1383
  );
1394
1384
  case "PipeCompose":
1395
- return /* @__PURE__ */ jsx17(PipeComposeSection, { blueprint, executionData });
1385
+ return /* @__PURE__ */ jsx18(PipeComposeSection, { blueprint, executionData });
1396
1386
  case "PipeDocGen":
1397
- return /* @__PURE__ */ jsx17(
1387
+ return /* @__PURE__ */ jsx18(
1398
1388
  PipeDocGenSection,
1399
1389
  {
1400
1390
  blueprint,
@@ -1404,7 +1394,7 @@ function BlueprintSection({
1404
1394
  }
1405
1395
  );
1406
1396
  case "PipeExtract":
1407
- return /* @__PURE__ */ jsx17(
1397
+ return /* @__PURE__ */ jsx18(
1408
1398
  PipeExtractSection,
1409
1399
  {
1410
1400
  blueprint,
@@ -1413,7 +1403,7 @@ function BlueprintSection({
1413
1403
  }
1414
1404
  );
1415
1405
  case "PipeSearch":
1416
- return /* @__PURE__ */ jsx17(
1406
+ return /* @__PURE__ */ jsx18(
1417
1407
  PipeSearchSection,
1418
1408
  {
1419
1409
  blueprint,
@@ -1423,7 +1413,7 @@ function BlueprintSection({
1423
1413
  }
1424
1414
  );
1425
1415
  case "PipeStructure":
1426
- return /* @__PURE__ */ jsx17(
1416
+ return /* @__PURE__ */ jsx18(
1427
1417
  PipeStructureSection,
1428
1418
  {
1429
1419
  blueprint,
@@ -1433,19 +1423,19 @@ function BlueprintSection({
1433
1423
  }
1434
1424
  );
1435
1425
  case "PipeSequence":
1436
- return /* @__PURE__ */ jsx17(PipeSequenceSection, { blueprint, executionData });
1426
+ return /* @__PURE__ */ jsx18(PipeSequenceSection, { blueprint, executionData });
1437
1427
  case "PipeParallel":
1438
- return /* @__PURE__ */ jsx17(PipeParallelSection, { blueprint, executionData });
1428
+ return /* @__PURE__ */ jsx18(PipeParallelSection, { blueprint, executionData });
1439
1429
  case "PipeCondition":
1440
- return /* @__PURE__ */ jsx17(PipeConditionSection, { blueprint, executionData });
1430
+ return /* @__PURE__ */ jsx18(PipeConditionSection, { blueprint, executionData });
1441
1431
  case "PipeBatch":
1442
- return /* @__PURE__ */ jsx17(PipeBatchSection, { blueprint, executionData });
1432
+ return /* @__PURE__ */ jsx18(PipeBatchSection, { blueprint, executionData });
1443
1433
  case "PipeFunc":
1444
1434
  return null;
1445
1435
  case "PipeJudge":
1446
1436
  return null;
1447
1437
  case "PipeSignature":
1448
- return /* @__PURE__ */ jsx17("div", { className: "detail-not-available", children: "Signature stub \u2014 declared but not yet implemented." });
1438
+ return /* @__PURE__ */ jsx18("div", { className: "detail-not-available", children: "Signature stub \u2014 declared but not yet implemented." });
1449
1439
  default: {
1450
1440
  const _unhandled = blueprint;
1451
1441
  void _unhandled;
@@ -1459,19 +1449,19 @@ function ExecutionDataSection({
1459
1449
  hasBlueprint
1460
1450
  }) {
1461
1451
  if (!shouldDumpExecutionData(pipeType, hasBlueprint)) return null;
1462
- return /* @__PURE__ */ jsx17(GenericExecutionData, { entries: dumpableExecutionData(pipeType, executionData) });
1452
+ return /* @__PURE__ */ jsx18(GenericExecutionData, { entries: dumpableExecutionData(pipeType, executionData) });
1463
1453
  }
1464
1454
  function GenericExecutionData({ entries }) {
1465
1455
  if (entries.length === 0) return null;
1466
- return /* @__PURE__ */ jsxs17(Fragment11, { children: [
1467
- /* @__PURE__ */ jsx17("div", { className: "detail-section-label", children: "Execution" }),
1468
- entries.map(([key, value]) => /* @__PURE__ */ jsx17(KV, { label: key, value: String(value) }, key))
1456
+ return /* @__PURE__ */ jsxs18(Fragment11, { children: [
1457
+ /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Execution" }),
1458
+ entries.map(([key, value]) => /* @__PURE__ */ jsx18(KV, { label: key, value: String(value) }, key))
1469
1459
  ] });
1470
1460
  }
1471
1461
 
1472
1462
  // src/graph/react/detail/ConceptDetailPanel.tsx
1473
- import React7 from "react";
1474
- import { Fragment as Fragment12, jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
1463
+ import React6 from "react";
1464
+ import { Fragment as Fragment12, jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
1475
1465
  function ConceptDetailPanel({
1476
1466
  concept,
1477
1467
  ioData,
@@ -1481,18 +1471,18 @@ function ConceptDetailPanel({
1481
1471
  }) {
1482
1472
  var _a;
1483
1473
  const multiplicity = ioData == null ? void 0 : ioData.multiplicity;
1484
- return /* @__PURE__ */ jsxs18(Fragment12, { children: [
1485
- /* @__PURE__ */ jsxs18("div", { className: "detail-header", children: [
1486
- /* @__PURE__ */ jsx18("span", { className: "detail-concept-code", children: concept.code + multiplicitySuffix(multiplicity) }),
1487
- /* @__PURE__ */ jsx18("span", { className: "detail-concept-domain", children: concept.domain_code })
1474
+ return /* @__PURE__ */ jsxs19(Fragment12, { children: [
1475
+ /* @__PURE__ */ jsxs19("div", { className: "detail-header", children: [
1476
+ /* @__PURE__ */ jsx19("span", { className: "detail-concept-code", children: concept.code + multiplicitySuffix(multiplicity) }),
1477
+ /* @__PURE__ */ jsx19("span", { className: "detail-concept-domain", children: concept.domain_code })
1488
1478
  ] }),
1489
- isPluralMultiplicity(multiplicity) && /* @__PURE__ */ jsx18("div", { className: "detail-multiplicity", children: multiplicity === true ? `A variable-length list of ${concept.code} items` : `A fixed-length list of exactly ${multiplicity} ${concept.code} items` }),
1490
- concept.description && /* @__PURE__ */ jsx18("div", { className: "detail-description", children: concept.description }),
1491
- concept.refines && /* @__PURE__ */ jsxs18("div", { className: "detail-refines", children: [
1479
+ isPluralMultiplicity(multiplicity) && /* @__PURE__ */ jsx19("div", { className: "detail-multiplicity", children: multiplicity === true ? `A variable-length list of ${concept.code} items` : `A fixed-length list of exactly ${multiplicity} ${concept.code} items` }),
1480
+ concept.description && /* @__PURE__ */ jsx19("div", { className: "detail-description", children: concept.description }),
1481
+ concept.refines && /* @__PURE__ */ jsxs19("div", { className: "detail-refines", children: [
1492
1482
  "refines ",
1493
- /* @__PURE__ */ jsx18("span", { className: "detail-refines-code", children: concept.refines })
1483
+ /* @__PURE__ */ jsx19("span", { className: "detail-refines-code", children: concept.refines })
1494
1484
  ] }),
1495
- /* @__PURE__ */ jsx18(
1485
+ /* @__PURE__ */ jsx19(
1496
1486
  ConceptBody,
1497
1487
  {
1498
1488
  concept,
@@ -1507,14 +1497,14 @@ function ConceptDetailPanel({
1507
1497
  function ConceptBody({ concept, ioData, isDryRun, renderData }) {
1508
1498
  const dataView = ioData && !isDryRun ? renderData == null ? void 0 : renderData() : void 0;
1509
1499
  const hasData = Boolean(dataView);
1510
- const [activeTab, setActiveTab] = React7.useState(hasData ? "data" : "structure");
1511
- const baseId = React7.useId();
1500
+ const [activeTab, setActiveTab] = React6.useState(hasData ? "data" : "structure");
1501
+ const baseId = React6.useId();
1512
1502
  const tabId = (tab) => `${baseId}-tab-${tab}`;
1513
1503
  const panelId = (tab) => `${baseId}-tabpanel-${tab}`;
1514
- const structure = concept.json_schema ? /* @__PURE__ */ jsxs18("div", { children: [
1515
- /* @__PURE__ */ jsx18("div", { className: "detail-section-label", children: "Structure" }),
1516
- /* @__PURE__ */ jsx18(SchemaTable, { schema: concept.json_schema })
1517
- ] }) : /* @__PURE__ */ jsx18("div", { className: "detail-not-available", children: "Schema not available" });
1504
+ const structure = concept.json_schema ? /* @__PURE__ */ jsxs19("div", { children: [
1505
+ /* @__PURE__ */ jsx19("div", { className: "detail-section-label", children: "Structure" }),
1506
+ /* @__PURE__ */ jsx19(SchemaTable, { schema: concept.json_schema })
1507
+ ] }) : /* @__PURE__ */ jsx19("div", { className: "detail-not-available", children: "Schema not available" });
1518
1508
  if (!hasData) return structure;
1519
1509
  const onTabKeyDown = (event) => {
1520
1510
  var _a;
@@ -1537,7 +1527,7 @@ function ConceptBody({ concept, ioData, isDryRun, renderData }) {
1537
1527
  setActiveTab(next);
1538
1528
  (_a = document.getElementById(tabId(next))) == null ? void 0 : _a.focus();
1539
1529
  };
1540
- const renderTab = (tab, label) => /* @__PURE__ */ jsx18(
1530
+ const renderTab = (tab, label) => /* @__PURE__ */ jsx19(
1541
1531
  "button",
1542
1532
  {
1543
1533
  type: "button",
@@ -1552,12 +1542,12 @@ function ConceptBody({ concept, ioData, isDryRun, renderData }) {
1552
1542
  children: label
1553
1543
  }
1554
1544
  );
1555
- return /* @__PURE__ */ jsxs18(Fragment12, { children: [
1556
- /* @__PURE__ */ jsxs18("div", { className: "detail-tabs", role: "tablist", "aria-label": "Concept views", children: [
1545
+ return /* @__PURE__ */ jsxs19(Fragment12, { children: [
1546
+ /* @__PURE__ */ jsxs19("div", { className: "detail-tabs", role: "tablist", "aria-label": "Concept views", children: [
1557
1547
  renderTab("data", "Data"),
1558
1548
  renderTab("structure", "Structure")
1559
1549
  ] }),
1560
- /* @__PURE__ */ jsx18("div", { role: "tabpanel", id: panelId(activeTab), "aria-labelledby": tabId(activeTab), children: activeTab === "data" ? dataView : structure })
1550
+ /* @__PURE__ */ jsx19("div", { role: "tabpanel", id: panelId(activeTab), "aria-labelledby": tabId(activeTab), children: activeTab === "data" ? dataView : structure })
1561
1551
  ] });
1562
1552
  }
1563
1553
  function SchemaTable({ schema }) {
@@ -1565,23 +1555,23 @@ function SchemaTable({ schema }) {
1565
1555
  const properties = schema.properties;
1566
1556
  const required = new Set((_a = schema.required) != null ? _a : []);
1567
1557
  if (!properties || Object.keys(properties).length === 0) {
1568
- return /* @__PURE__ */ jsx18("div", { className: "detail-not-available", children: "No fields defined" });
1558
+ return /* @__PURE__ */ jsx19("div", { className: "detail-not-available", children: "No fields defined" });
1569
1559
  }
1570
1560
  const fields = Object.entries(properties);
1571
- return /* @__PURE__ */ jsxs18("table", { className: "detail-schema-table", children: [
1572
- /* @__PURE__ */ jsx18("thead", { children: /* @__PURE__ */ jsxs18("tr", { children: [
1573
- /* @__PURE__ */ jsx18("th", { children: "Field" }),
1574
- /* @__PURE__ */ jsx18("th", { children: "Type" }),
1575
- /* @__PURE__ */ jsx18("th", {}),
1576
- /* @__PURE__ */ jsx18("th", { children: "Description" })
1561
+ return /* @__PURE__ */ jsxs19("table", { className: "detail-schema-table", children: [
1562
+ /* @__PURE__ */ jsx19("thead", { children: /* @__PURE__ */ jsxs19("tr", { children: [
1563
+ /* @__PURE__ */ jsx19("th", { children: "Field" }),
1564
+ /* @__PURE__ */ jsx19("th", { children: "Type" }),
1565
+ /* @__PURE__ */ jsx19("th", {}),
1566
+ /* @__PURE__ */ jsx19("th", { children: "Description" })
1577
1567
  ] }) }),
1578
- /* @__PURE__ */ jsx18("tbody", { children: fields.map(([fieldName, fieldSchema]) => {
1568
+ /* @__PURE__ */ jsx19("tbody", { children: fields.map(([fieldName, fieldSchema]) => {
1579
1569
  var _a2;
1580
- return /* @__PURE__ */ jsxs18("tr", { children: [
1581
- /* @__PURE__ */ jsx18("td", { className: "detail-schema-field", children: fieldName }),
1582
- /* @__PURE__ */ jsx18("td", { className: "detail-schema-type", children: extractType(fieldSchema) }),
1583
- /* @__PURE__ */ jsx18("td", { children: required.has(fieldName) && /* @__PURE__ */ jsx18("span", { className: "detail-schema-required", children: "req" }) }),
1584
- /* @__PURE__ */ jsx18("td", { children: (_a2 = fieldSchema.description) != null ? _a2 : "" })
1570
+ return /* @__PURE__ */ jsxs19("tr", { children: [
1571
+ /* @__PURE__ */ jsx19("td", { className: "detail-schema-field", children: fieldName }),
1572
+ /* @__PURE__ */ jsx19("td", { className: "detail-schema-type", children: extractType(fieldSchema) }),
1573
+ /* @__PURE__ */ jsx19("td", { children: required.has(fieldName) && /* @__PURE__ */ jsx19("span", { className: "detail-schema-required", children: "req" }) }),
1574
+ /* @__PURE__ */ jsx19("td", { children: (_a2 = fieldSchema.description) != null ? _a2 : "" })
1585
1575
  ] }, fieldName);
1586
1576
  }) })
1587
1577
  ] });
@@ -1632,10 +1622,10 @@ function toAppEdges(edges) {
1632
1622
  }
1633
1623
 
1634
1624
  // src/graph/react/viewer/renderLabel.tsx
1635
- import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
1625
+ import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
1636
1626
  function renderLabel(desc) {
1637
1627
  if (desc.kind === "pipe") {
1638
- return /* @__PURE__ */ jsx19(
1628
+ return /* @__PURE__ */ jsx20(
1639
1629
  "div",
1640
1630
  {
1641
1631
  style: {
@@ -1649,7 +1639,7 @@ function renderLabel(desc) {
1649
1639
  minWidth: 0
1650
1640
  },
1651
1641
  title: desc.label,
1652
- children: /* @__PURE__ */ jsx19(
1642
+ children: /* @__PURE__ */ jsx20(
1653
1643
  "span",
1654
1644
  {
1655
1645
  style: {
@@ -1668,7 +1658,7 @@ function renderLabel(desc) {
1668
1658
  }
1669
1659
  );
1670
1660
  }
1671
- return /* @__PURE__ */ jsxs19(
1661
+ return /* @__PURE__ */ jsxs20(
1672
1662
  "div",
1673
1663
  {
1674
1664
  style: {
@@ -1684,7 +1674,7 @@ function renderLabel(desc) {
1684
1674
  },
1685
1675
  title: desc.concept ? `${desc.label}: ${desc.concept}` : desc.label,
1686
1676
  children: [
1687
- /* @__PURE__ */ jsx19(
1677
+ /* @__PURE__ */ jsx20(
1688
1678
  "span",
1689
1679
  {
1690
1680
  style: {
@@ -1700,7 +1690,7 @@ function renderLabel(desc) {
1700
1690
  children: desc.label
1701
1691
  }
1702
1692
  ),
1703
- desc.concept && /* @__PURE__ */ jsx19(
1693
+ desc.concept && /* @__PURE__ */ jsx20(
1704
1694
  "span",
1705
1695
  {
1706
1696
  style: {
@@ -1730,11 +1720,11 @@ function hydrateLabels(nodes) {
1730
1720
  }
1731
1721
 
1732
1722
  // src/graph/react/viewer/GraphToolbar.tsx
1733
- import React10 from "react";
1723
+ import React9 from "react";
1734
1724
  import { Panel } from "@xyflow/react";
1735
1725
 
1736
1726
  // src/graph/react/viewer/ValidationPanel.tsx
1737
- import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
1727
+ import { jsx as jsx21, jsxs as jsxs21 } from "react/jsx-runtime";
1738
1728
  function validationLabel(state, issueCount) {
1739
1729
  const issues = issueCount === 1 ? "1 issue" : `${issueCount} issues`;
1740
1730
  switch (state) {
@@ -1801,7 +1791,7 @@ function ValidationPanel({
1801
1791
  placement,
1802
1792
  id
1803
1793
  }) {
1804
- return /* @__PURE__ */ jsxs20(
1794
+ return /* @__PURE__ */ jsxs21(
1805
1795
  "div",
1806
1796
  {
1807
1797
  id,
@@ -1809,18 +1799,18 @@ function ValidationPanel({
1809
1799
  role: "region",
1810
1800
  "aria-label": "Validation issues",
1811
1801
  children: [
1812
- /* @__PURE__ */ jsx20("div", { className: "graph-validation-panel-header", children: validationLabel(state, issues.length) }),
1813
- issues.length === 0 ? /* @__PURE__ */ jsx20("div", { className: "graph-validation-empty", children: validationEmptyText(state) }) : /* @__PURE__ */ jsx20("ul", { className: "graph-validation-issues", role: "list", children: issues.map((issue, index) => {
1802
+ /* @__PURE__ */ jsx21("div", { className: "graph-validation-panel-header", children: validationLabel(state, issues.length) }),
1803
+ issues.length === 0 ? /* @__PURE__ */ jsx21("div", { className: "graph-validation-empty", children: validationEmptyText(state) }) : /* @__PURE__ */ jsx21("ul", { className: "graph-validation-issues", role: "list", children: issues.map((issue, index) => {
1814
1804
  const clickable = onIssueClick !== void 0;
1815
- const meta = (issue.context || issue.file) && /* @__PURE__ */ jsxs20("div", { className: "graph-validation-issue-meta", children: [
1816
- issue.context && /* @__PURE__ */ jsx20("span", { className: "graph-validation-issue-context", children: issue.context }),
1817
- issue.file && /* @__PURE__ */ jsx20("span", { className: "graph-validation-issue-file", children: issue.file })
1805
+ const meta = (issue.context || issue.file) && /* @__PURE__ */ jsxs21("div", { className: "graph-validation-issue-meta", children: [
1806
+ issue.context && /* @__PURE__ */ jsx21("span", { className: "graph-validation-issue-context", children: issue.context }),
1807
+ issue.file && /* @__PURE__ */ jsx21("span", { className: "graph-validation-issue-file", children: issue.file })
1818
1808
  ] });
1819
- return /* @__PURE__ */ jsx20(
1809
+ return /* @__PURE__ */ jsx21(
1820
1810
  "li",
1821
1811
  {
1822
1812
  className: `graph-validation-issue graph-validation-issue--${issue.severity}` + (clickable ? " graph-validation-issue--clickable" : ""),
1823
- children: /* @__PURE__ */ jsxs20(
1813
+ children: /* @__PURE__ */ jsxs21(
1824
1814
  "div",
1825
1815
  {
1826
1816
  className: "graph-validation-issue-body",
@@ -1835,8 +1825,8 @@ function ValidationPanel({
1835
1825
  } : void 0,
1836
1826
  children: [
1837
1827
  meta,
1838
- /* @__PURE__ */ jsx20("div", { className: "graph-validation-issue-message", children: issue.message }),
1839
- issue.suggestedFix && /* @__PURE__ */ jsx20("div", { className: "graph-validation-issue-fix", children: issue.suggestedFix })
1828
+ /* @__PURE__ */ jsx21("div", { className: "graph-validation-issue-message", children: issue.message }),
1829
+ issue.suggestedFix && /* @__PURE__ */ jsx21("div", { className: "graph-validation-issue-fix", children: issue.suggestedFix })
1840
1830
  ]
1841
1831
  }
1842
1832
  )
@@ -1850,14 +1840,14 @@ function ValidationPanel({
1850
1840
  }
1851
1841
 
1852
1842
  // src/graph/react/viewer/StyleMenu.tsx
1853
- import React9 from "react";
1843
+ import React8 from "react";
1854
1844
 
1855
1845
  // src/graph/react/viewer/usePopoverDismiss.ts
1856
- import React8 from "react";
1846
+ import React7 from "react";
1857
1847
  function usePopoverDismiss(open, wrapperRef, onDismiss) {
1858
- const onDismissRef = React8.useRef(onDismiss);
1848
+ const onDismissRef = React7.useRef(onDismiss);
1859
1849
  onDismissRef.current = onDismiss;
1860
- React8.useEffect(() => {
1850
+ React7.useEffect(() => {
1861
1851
  if (!open) return;
1862
1852
  const onPointerDown = (event) => {
1863
1853
  const wrapper = wrapperRef.current;
@@ -1878,7 +1868,7 @@ function usePopoverDismiss(open, wrapperRef, onDismiss) {
1878
1868
  }
1879
1869
 
1880
1870
  // src/graph/react/viewer/StyleMenu.tsx
1881
- import { jsx as jsx21, jsxs as jsxs21 } from "react/jsx-runtime";
1871
+ import { jsx as jsx22, jsxs as jsxs22 } from "react/jsx-runtime";
1882
1872
  var ICON_PROPS = {
1883
1873
  viewBox: "0 0 24 24",
1884
1874
  width: 14,
@@ -1891,22 +1881,22 @@ var ICON_PROPS = {
1891
1881
  };
1892
1882
  var STYLE_ICONS = {
1893
1883
  // Cards with their rows: every pipe with its slots.
1894
- [GRAPH_STYLE.DETAILED]: /* @__PURE__ */ jsxs21("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: [
1895
- /* @__PURE__ */ jsx21("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
1896
- /* @__PURE__ */ jsx21("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
1897
- /* @__PURE__ */ jsx21("line", { x1: "14", y1: "4", x2: "21", y2: "4" }),
1898
- /* @__PURE__ */ jsx21("line", { x1: "14", y1: "9", x2: "21", y2: "9" }),
1899
- /* @__PURE__ */ jsx21("line", { x1: "14", y1: "15", x2: "21", y2: "15" }),
1900
- /* @__PURE__ */ jsx21("line", { x1: "14", y1: "20", x2: "21", y2: "20" })
1884
+ [GRAPH_STYLE.DETAILED]: /* @__PURE__ */ jsxs22("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: [
1885
+ /* @__PURE__ */ jsx22("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
1886
+ /* @__PURE__ */ jsx22("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
1887
+ /* @__PURE__ */ jsx22("line", { x1: "14", y1: "4", x2: "21", y2: "4" }),
1888
+ /* @__PURE__ */ jsx22("line", { x1: "14", y1: "9", x2: "21", y2: "9" }),
1889
+ /* @__PURE__ */ jsx22("line", { x1: "14", y1: "15", x2: "21", y2: "15" }),
1890
+ /* @__PURE__ */ jsx22("line", { x1: "14", y1: "20", x2: "21", y2: "20" })
1901
1891
  ] })),
1902
1892
  // Two steps and the arrow between them: a flowchart.
1903
- [GRAPH_STYLE.SIMPLE]: /* @__PURE__ */ jsxs21("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: [
1904
- /* @__PURE__ */ jsx21("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2" }),
1905
- /* @__PURE__ */ jsx21("path", { d: "M7 11v4a2 2 0 0 0 2 2h4" }),
1906
- /* @__PURE__ */ jsx21("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2" })
1893
+ [GRAPH_STYLE.SIMPLE]: /* @__PURE__ */ jsxs22("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: [
1894
+ /* @__PURE__ */ jsx22("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2" }),
1895
+ /* @__PURE__ */ jsx22("path", { d: "M7 11v4a2 2 0 0 0 2 2h4" }),
1896
+ /* @__PURE__ */ jsx22("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2" })
1907
1897
  ] }))
1908
1898
  };
1909
- var CHECK_ICON2 = /* @__PURE__ */ jsx21("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: /* @__PURE__ */ jsx21("polyline", { points: "20 6 9 17 4 12" }) }));
1899
+ var CHECK_ICON2 = /* @__PURE__ */ jsx22("svg", __spreadProps(__spreadValues({}, ICON_PROPS), { children: /* @__PURE__ */ jsx22("polyline", { points: "20 6 9 17 4 12" }) }));
1910
1900
  function graphStyleIcon(style) {
1911
1901
  return STYLE_ICONS[style];
1912
1902
  }
@@ -1914,18 +1904,18 @@ function styleMenuLabel(style) {
1914
1904
  return `Graph style: ${GRAPH_STYLES[style].name} \u2014 choose how the graph is drawn`;
1915
1905
  }
1916
1906
  function StyleMenu({ value, options, onChange, placement }) {
1917
- const [open, setOpen] = React9.useState(false);
1918
- const [activeIndex, setActiveIndex] = React9.useState(0);
1919
- const wrapperRef = React9.useRef(null);
1920
- const buttonRef = React9.useRef(null);
1921
- const itemRefs = React9.useRef([]);
1922
- const menuId = React9.useId();
1907
+ const [open, setOpen] = React8.useState(false);
1908
+ const [activeIndex, setActiveIndex] = React8.useState(0);
1909
+ const wrapperRef = React8.useRef(null);
1910
+ const buttonRef = React8.useRef(null);
1911
+ const itemRefs = React8.useRef([]);
1912
+ const menuId = React8.useId();
1923
1913
  usePopoverDismiss(open, wrapperRef, (reason) => {
1924
1914
  var _a;
1925
1915
  setOpen(false);
1926
1916
  if (reason === "escape") (_a = buttonRef.current) == null ? void 0 : _a.focus();
1927
1917
  });
1928
- React9.useEffect(() => {
1918
+ React8.useEffect(() => {
1929
1919
  var _a;
1930
1920
  if (!open) return;
1931
1921
  const index = Math.max(0, options.indexOf(value));
@@ -1971,8 +1961,8 @@ function StyleMenu({ value, options, onChange, placement }) {
1971
1961
  if (style !== value) onChange(style);
1972
1962
  };
1973
1963
  const label = styleMenuLabel(value);
1974
- return /* @__PURE__ */ jsxs21("div", { className: "graph-toolbar-style", ref: wrapperRef, children: [
1975
- /* @__PURE__ */ jsx21(
1964
+ return /* @__PURE__ */ jsxs22("div", { className: "graph-toolbar-style", ref: wrapperRef, children: [
1965
+ /* @__PURE__ */ jsx22(
1976
1966
  "button",
1977
1967
  {
1978
1968
  ref: buttonRef,
@@ -1993,7 +1983,7 @@ function StyleMenu({ value, options, onChange, placement }) {
1993
1983
  children: graphStyleIcon(value)
1994
1984
  }
1995
1985
  ),
1996
- open && /* @__PURE__ */ jsx21(
1986
+ open && /* @__PURE__ */ jsx22(
1997
1987
  "div",
1998
1988
  {
1999
1989
  id: menuId,
@@ -2004,7 +1994,7 @@ function StyleMenu({ value, options, onChange, placement }) {
2004
1994
  children: options.map((style, index) => {
2005
1995
  const descriptor = GRAPH_STYLES[style];
2006
1996
  const checked = style === value;
2007
- return /* @__PURE__ */ jsxs21(
1997
+ return /* @__PURE__ */ jsxs22(
2008
1998
  "button",
2009
1999
  {
2010
2000
  ref: (el) => {
@@ -2017,12 +2007,12 @@ function StyleMenu({ value, options, onChange, placement }) {
2017
2007
  className: `graph-style-menu-item${checked ? " graph-style-menu-item--checked" : ""}`,
2018
2008
  onClick: () => choose(style),
2019
2009
  children: [
2020
- /* @__PURE__ */ jsx21("span", { className: "graph-style-menu-icon", "aria-hidden": "true", children: graphStyleIcon(style) }),
2021
- /* @__PURE__ */ jsxs21("span", { className: "graph-style-menu-text", children: [
2022
- /* @__PURE__ */ jsx21("span", { className: "graph-style-menu-name", children: descriptor.name }),
2023
- /* @__PURE__ */ jsx21("span", { className: "graph-style-menu-description", children: descriptor.description })
2010
+ /* @__PURE__ */ jsx22("span", { className: "graph-style-menu-icon", "aria-hidden": "true", children: graphStyleIcon(style) }),
2011
+ /* @__PURE__ */ jsxs22("span", { className: "graph-style-menu-text", children: [
2012
+ /* @__PURE__ */ jsx22("span", { className: "graph-style-menu-name", children: descriptor.name }),
2013
+ /* @__PURE__ */ jsx22("span", { className: "graph-style-menu-description", children: descriptor.description })
2024
2014
  ] }),
2025
- /* @__PURE__ */ jsx21("span", { className: "graph-style-menu-check", "aria-hidden": "true", children: checked ? CHECK_ICON2 : null })
2015
+ /* @__PURE__ */ jsx22("span", { className: "graph-style-menu-check", "aria-hidden": "true", children: checked ? CHECK_ICON2 : null })
2026
2016
  ]
2027
2017
  },
2028
2018
  style
@@ -2034,9 +2024,9 @@ function StyleMenu({ value, options, onChange, placement }) {
2034
2024
  }
2035
2025
 
2036
2026
  // src/graph/react/viewer/GraphToolbar.tsx
2037
- import { Fragment as Fragment13, jsx as jsx22, jsxs as jsxs22 } from "react/jsx-runtime";
2027
+ import { Fragment as Fragment13, jsx as jsx23, jsxs as jsxs23 } from "react/jsx-runtime";
2038
2028
  var REACTFLOW_PANEL_MARGIN = 15;
2039
- var ARROW_RIGHT_ICON = /* @__PURE__ */ jsxs22(
2029
+ var ARROW_RIGHT_ICON = /* @__PURE__ */ jsxs23(
2040
2030
  "svg",
2041
2031
  {
2042
2032
  viewBox: "0 0 24 24",
@@ -2048,12 +2038,12 @@ var ARROW_RIGHT_ICON = /* @__PURE__ */ jsxs22(
2048
2038
  strokeLinecap: "round",
2049
2039
  strokeLinejoin: "round",
2050
2040
  children: [
2051
- /* @__PURE__ */ jsx22("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
2052
- /* @__PURE__ */ jsx22("polyline", { points: "12 5 19 12 12 19" })
2041
+ /* @__PURE__ */ jsx23("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
2042
+ /* @__PURE__ */ jsx23("polyline", { points: "12 5 19 12 12 19" })
2053
2043
  ]
2054
2044
  }
2055
2045
  );
2056
- var ARROW_DOWN_ICON = /* @__PURE__ */ jsxs22(
2046
+ var ARROW_DOWN_ICON = /* @__PURE__ */ jsxs23(
2057
2047
  "svg",
2058
2048
  {
2059
2049
  viewBox: "0 0 24 24",
@@ -2065,12 +2055,12 @@ var ARROW_DOWN_ICON = /* @__PURE__ */ jsxs22(
2065
2055
  strokeLinecap: "round",
2066
2056
  strokeLinejoin: "round",
2067
2057
  children: [
2068
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
2069
- /* @__PURE__ */ jsx22("polyline", { points: "19 12 12 19 5 12" })
2058
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
2059
+ /* @__PURE__ */ jsx23("polyline", { points: "19 12 12 19 5 12" })
2070
2060
  ]
2071
2061
  }
2072
2062
  );
2073
- var MINUS_ICON = /* @__PURE__ */ jsx22(
2063
+ var MINUS_ICON = /* @__PURE__ */ jsx23(
2074
2064
  "svg",
2075
2065
  {
2076
2066
  viewBox: "0 0 24 24",
@@ -2081,10 +2071,10 @@ var MINUS_ICON = /* @__PURE__ */ jsx22(
2081
2071
  strokeWidth: "2",
2082
2072
  strokeLinecap: "round",
2083
2073
  strokeLinejoin: "round",
2084
- children: /* @__PURE__ */ jsx22("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
2074
+ children: /* @__PURE__ */ jsx23("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
2085
2075
  }
2086
2076
  );
2087
- var PLUS_ICON = /* @__PURE__ */ jsxs22(
2077
+ var PLUS_ICON = /* @__PURE__ */ jsxs23(
2088
2078
  "svg",
2089
2079
  {
2090
2080
  viewBox: "0 0 24 24",
@@ -2096,12 +2086,12 @@ var PLUS_ICON = /* @__PURE__ */ jsxs22(
2096
2086
  strokeLinecap: "round",
2097
2087
  strokeLinejoin: "round",
2098
2088
  children: [
2099
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
2100
- /* @__PURE__ */ jsx22("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
2089
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
2090
+ /* @__PURE__ */ jsx23("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
2101
2091
  ]
2102
2092
  }
2103
2093
  );
2104
- var FIT_VIEW_ICON = /* @__PURE__ */ jsxs22(
2094
+ var FIT_VIEW_ICON = /* @__PURE__ */ jsxs23(
2105
2095
  "svg",
2106
2096
  {
2107
2097
  viewBox: "0 0 24 24",
@@ -2113,14 +2103,14 @@ var FIT_VIEW_ICON = /* @__PURE__ */ jsxs22(
2113
2103
  strokeLinecap: "round",
2114
2104
  strokeLinejoin: "round",
2115
2105
  children: [
2116
- /* @__PURE__ */ jsx22("polyline", { points: "15 3 21 3 21 9" }),
2117
- /* @__PURE__ */ jsx22("polyline", { points: "9 21 3 21 3 15" }),
2118
- /* @__PURE__ */ jsx22("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
2119
- /* @__PURE__ */ jsx22("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
2106
+ /* @__PURE__ */ jsx23("polyline", { points: "15 3 21 3 21 9" }),
2107
+ /* @__PURE__ */ jsx23("polyline", { points: "9 21 3 21 3 15" }),
2108
+ /* @__PURE__ */ jsx23("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
2109
+ /* @__PURE__ */ jsx23("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
2120
2110
  ]
2121
2111
  }
2122
2112
  );
2123
- var BOXES_ICON = /* @__PURE__ */ jsxs22(
2113
+ var BOXES_ICON = /* @__PURE__ */ jsxs23(
2124
2114
  "svg",
2125
2115
  {
2126
2116
  viewBox: "0 0 24 24",
@@ -2132,22 +2122,22 @@ var BOXES_ICON = /* @__PURE__ */ jsxs22(
2132
2122
  strokeLinecap: "round",
2133
2123
  strokeLinejoin: "round",
2134
2124
  children: [
2135
- /* @__PURE__ */ jsx22("path", { d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z" }),
2136
- /* @__PURE__ */ jsx22("path", { d: "m7 16.5-4.74-2.85" }),
2137
- /* @__PURE__ */ jsx22("path", { d: "m7 16.5 5-3" }),
2138
- /* @__PURE__ */ jsx22("path", { d: "M7 16.5v5.17" }),
2139
- /* @__PURE__ */ jsx22("path", { d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z" }),
2140
- /* @__PURE__ */ jsx22("path", { d: "m17 16.5-5-3" }),
2141
- /* @__PURE__ */ jsx22("path", { d: "m17 16.5 4.74-2.85" }),
2142
- /* @__PURE__ */ jsx22("path", { d: "M17 16.5v5.17" }),
2143
- /* @__PURE__ */ jsx22("path", { d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z" }),
2144
- /* @__PURE__ */ jsx22("path", { d: "M12 8 7.26 5.15" }),
2145
- /* @__PURE__ */ jsx22("path", { d: "m12 8 4.74-2.85" }),
2146
- /* @__PURE__ */ jsx22("path", { d: "M12 13.5V8" })
2125
+ /* @__PURE__ */ jsx23("path", { d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z" }),
2126
+ /* @__PURE__ */ jsx23("path", { d: "m7 16.5-4.74-2.85" }),
2127
+ /* @__PURE__ */ jsx23("path", { d: "m7 16.5 5-3" }),
2128
+ /* @__PURE__ */ jsx23("path", { d: "M7 16.5v5.17" }),
2129
+ /* @__PURE__ */ jsx23("path", { d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z" }),
2130
+ /* @__PURE__ */ jsx23("path", { d: "m17 16.5-5-3" }),
2131
+ /* @__PURE__ */ jsx23("path", { d: "m17 16.5 4.74-2.85" }),
2132
+ /* @__PURE__ */ jsx23("path", { d: "M17 16.5v5.17" }),
2133
+ /* @__PURE__ */ jsx23("path", { d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z" }),
2134
+ /* @__PURE__ */ jsx23("path", { d: "M12 8 7.26 5.15" }),
2135
+ /* @__PURE__ */ jsx23("path", { d: "m12 8 4.74-2.85" }),
2136
+ /* @__PURE__ */ jsx23("path", { d: "M12 13.5V8" })
2147
2137
  ]
2148
2138
  }
2149
2139
  );
2150
- var FOLD_ALL_ICON = /* @__PURE__ */ jsxs22(
2140
+ var FOLD_ALL_ICON = /* @__PURE__ */ jsxs23(
2151
2141
  "svg",
2152
2142
  {
2153
2143
  viewBox: "0 0 24 24",
@@ -2159,15 +2149,15 @@ var FOLD_ALL_ICON = /* @__PURE__ */ jsxs22(
2159
2149
  strokeLinecap: "round",
2160
2150
  strokeLinejoin: "round",
2161
2151
  children: [
2162
- /* @__PURE__ */ jsx22("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }),
2163
- /* @__PURE__ */ jsx22("polyline", { points: "2 2 6 6 2 6" }),
2164
- /* @__PURE__ */ jsx22("polyline", { points: "22 2 18 6 22 6" }),
2165
- /* @__PURE__ */ jsx22("polyline", { points: "2 22 6 18 2 18" }),
2166
- /* @__PURE__ */ jsx22("polyline", { points: "22 22 18 18 22 18" })
2152
+ /* @__PURE__ */ jsx23("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }),
2153
+ /* @__PURE__ */ jsx23("polyline", { points: "2 2 6 6 2 6" }),
2154
+ /* @__PURE__ */ jsx23("polyline", { points: "22 2 18 6 22 6" }),
2155
+ /* @__PURE__ */ jsx23("polyline", { points: "2 22 6 18 2 18" }),
2156
+ /* @__PURE__ */ jsx23("polyline", { points: "22 22 18 18 22 18" })
2167
2157
  ]
2168
2158
  }
2169
2159
  );
2170
- var EXPAND_ALL_ICON = /* @__PURE__ */ jsxs22(
2160
+ var EXPAND_ALL_ICON = /* @__PURE__ */ jsxs23(
2171
2161
  "svg",
2172
2162
  {
2173
2163
  viewBox: "0 0 24 24",
@@ -2179,15 +2169,15 @@ var EXPAND_ALL_ICON = /* @__PURE__ */ jsxs22(
2179
2169
  strokeLinecap: "round",
2180
2170
  strokeLinejoin: "round",
2181
2171
  children: [
2182
- /* @__PURE__ */ jsx22("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" }),
2183
- /* @__PURE__ */ jsx22("polyline", { points: "3 3 7 7 3 7" }),
2184
- /* @__PURE__ */ jsx22("polyline", { points: "21 3 17 7 21 7" }),
2185
- /* @__PURE__ */ jsx22("polyline", { points: "3 21 7 17 3 17" }),
2186
- /* @__PURE__ */ jsx22("polyline", { points: "21 21 17 17 21 17" })
2172
+ /* @__PURE__ */ jsx23("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" }),
2173
+ /* @__PURE__ */ jsx23("polyline", { points: "3 3 7 7 3 7" }),
2174
+ /* @__PURE__ */ jsx23("polyline", { points: "21 3 17 7 21 7" }),
2175
+ /* @__PURE__ */ jsx23("polyline", { points: "3 21 7 17 3 17" }),
2176
+ /* @__PURE__ */ jsx23("polyline", { points: "21 21 17 17 21 17" })
2187
2177
  ]
2188
2178
  }
2189
2179
  );
2190
- var SUN_ICON = /* @__PURE__ */ jsxs22(
2180
+ var SUN_ICON = /* @__PURE__ */ jsxs23(
2191
2181
  "svg",
2192
2182
  {
2193
2183
  viewBox: "0 0 24 24",
@@ -2199,19 +2189,19 @@ var SUN_ICON = /* @__PURE__ */ jsxs22(
2199
2189
  strokeLinecap: "round",
2200
2190
  strokeLinejoin: "round",
2201
2191
  children: [
2202
- /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "4" }),
2203
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "2", x2: "12", y2: "4" }),
2204
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "20", x2: "12", y2: "22" }),
2205
- /* @__PURE__ */ jsx22("line", { x1: "4.93", y1: "4.93", x2: "6.34", y2: "6.34" }),
2206
- /* @__PURE__ */ jsx22("line", { x1: "17.66", y1: "17.66", x2: "19.07", y2: "19.07" }),
2207
- /* @__PURE__ */ jsx22("line", { x1: "2", y1: "12", x2: "4", y2: "12" }),
2208
- /* @__PURE__ */ jsx22("line", { x1: "20", y1: "12", x2: "22", y2: "12" }),
2209
- /* @__PURE__ */ jsx22("line", { x1: "4.93", y1: "19.07", x2: "6.34", y2: "17.66" }),
2210
- /* @__PURE__ */ jsx22("line", { x1: "17.66", y1: "6.34", x2: "19.07", y2: "4.93" })
2192
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "4" }),
2193
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "2", x2: "12", y2: "4" }),
2194
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "20", x2: "12", y2: "22" }),
2195
+ /* @__PURE__ */ jsx23("line", { x1: "4.93", y1: "4.93", x2: "6.34", y2: "6.34" }),
2196
+ /* @__PURE__ */ jsx23("line", { x1: "17.66", y1: "17.66", x2: "19.07", y2: "19.07" }),
2197
+ /* @__PURE__ */ jsx23("line", { x1: "2", y1: "12", x2: "4", y2: "12" }),
2198
+ /* @__PURE__ */ jsx23("line", { x1: "20", y1: "12", x2: "22", y2: "12" }),
2199
+ /* @__PURE__ */ jsx23("line", { x1: "4.93", y1: "19.07", x2: "6.34", y2: "17.66" }),
2200
+ /* @__PURE__ */ jsx23("line", { x1: "17.66", y1: "6.34", x2: "19.07", y2: "4.93" })
2211
2201
  ]
2212
2202
  }
2213
2203
  );
2214
- var MOON_ICON = /* @__PURE__ */ jsx22(
2204
+ var MOON_ICON = /* @__PURE__ */ jsx23(
2215
2205
  "svg",
2216
2206
  {
2217
2207
  viewBox: "0 0 24 24",
@@ -2222,10 +2212,10 @@ var MOON_ICON = /* @__PURE__ */ jsx22(
2222
2212
  strokeWidth: "2",
2223
2213
  strokeLinecap: "round",
2224
2214
  strokeLinejoin: "round",
2225
- children: /* @__PURE__ */ jsx22("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" })
2215
+ children: /* @__PURE__ */ jsx23("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" })
2226
2216
  }
2227
2217
  );
2228
- var MONITOR_ICON = /* @__PURE__ */ jsxs22(
2218
+ var MONITOR_ICON = /* @__PURE__ */ jsxs23(
2229
2219
  "svg",
2230
2220
  {
2231
2221
  viewBox: "0 0 24 24",
@@ -2237,13 +2227,13 @@ var MONITOR_ICON = /* @__PURE__ */ jsxs22(
2237
2227
  strokeLinecap: "round",
2238
2228
  strokeLinejoin: "round",
2239
2229
  children: [
2240
- /* @__PURE__ */ jsx22("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
2241
- /* @__PURE__ */ jsx22("line", { x1: "8", y1: "21", x2: "16", y2: "21" }),
2242
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "17", x2: "12", y2: "21" })
2230
+ /* @__PURE__ */ jsx23("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
2231
+ /* @__PURE__ */ jsx23("line", { x1: "8", y1: "21", x2: "16", y2: "21" }),
2232
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "17", x2: "12", y2: "21" })
2243
2233
  ]
2244
2234
  }
2245
2235
  );
2246
- var SPINNER_ICON = /* @__PURE__ */ jsx22(
2236
+ var SPINNER_ICON = /* @__PURE__ */ jsx23(
2247
2237
  "svg",
2248
2238
  {
2249
2239
  className: "graph-toolbar-validation-spin",
@@ -2255,10 +2245,10 @@ var SPINNER_ICON = /* @__PURE__ */ jsx22(
2255
2245
  strokeWidth: "2",
2256
2246
  strokeLinecap: "round",
2257
2247
  strokeLinejoin: "round",
2258
- children: /* @__PURE__ */ jsx22("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2248
+ children: /* @__PURE__ */ jsx23("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
2259
2249
  }
2260
2250
  );
2261
- var CHECK_ICON3 = /* @__PURE__ */ jsx22(
2251
+ var CHECK_ICON3 = /* @__PURE__ */ jsx23(
2262
2252
  "svg",
2263
2253
  {
2264
2254
  viewBox: "0 0 24 24",
@@ -2269,10 +2259,10 @@ var CHECK_ICON3 = /* @__PURE__ */ jsx22(
2269
2259
  strokeWidth: "2",
2270
2260
  strokeLinecap: "round",
2271
2261
  strokeLinejoin: "round",
2272
- children: /* @__PURE__ */ jsx22("polyline", { points: "20 6 9 17 4 12" })
2262
+ children: /* @__PURE__ */ jsx23("polyline", { points: "20 6 9 17 4 12" })
2273
2263
  }
2274
2264
  );
2275
- var X_CIRCLE_ICON = /* @__PURE__ */ jsxs22(
2265
+ var X_CIRCLE_ICON = /* @__PURE__ */ jsxs23(
2276
2266
  "svg",
2277
2267
  {
2278
2268
  viewBox: "0 0 24 24",
@@ -2284,13 +2274,13 @@ var X_CIRCLE_ICON = /* @__PURE__ */ jsxs22(
2284
2274
  strokeLinecap: "round",
2285
2275
  strokeLinejoin: "round",
2286
2276
  children: [
2287
- /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "10" }),
2288
- /* @__PURE__ */ jsx22("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
2289
- /* @__PURE__ */ jsx22("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
2277
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "10" }),
2278
+ /* @__PURE__ */ jsx23("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
2279
+ /* @__PURE__ */ jsx23("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
2290
2280
  ]
2291
2281
  }
2292
2282
  );
2293
- var ALERT_TRIANGLE_ICON = /* @__PURE__ */ jsxs22(
2283
+ var ALERT_TRIANGLE_ICON = /* @__PURE__ */ jsxs23(
2294
2284
  "svg",
2295
2285
  {
2296
2286
  viewBox: "0 0 24 24",
@@ -2302,13 +2292,13 @@ var ALERT_TRIANGLE_ICON = /* @__PURE__ */ jsxs22(
2302
2292
  strokeLinecap: "round",
2303
2293
  strokeLinejoin: "round",
2304
2294
  children: [
2305
- /* @__PURE__ */ jsx22("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
2306
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
2307
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
2295
+ /* @__PURE__ */ jsx23("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
2296
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
2297
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
2308
2298
  ]
2309
2299
  }
2310
2300
  );
2311
- var INFO_CIRCLE_ICON = /* @__PURE__ */ jsxs22(
2301
+ var INFO_CIRCLE_ICON = /* @__PURE__ */ jsxs23(
2312
2302
  "svg",
2313
2303
  {
2314
2304
  viewBox: "0 0 24 24",
@@ -2320,9 +2310,9 @@ var INFO_CIRCLE_ICON = /* @__PURE__ */ jsxs22(
2320
2310
  strokeLinecap: "round",
2321
2311
  strokeLinejoin: "round",
2322
2312
  children: [
2323
- /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "10" }),
2324
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
2325
- /* @__PURE__ */ jsx22("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
2313
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "10" }),
2314
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
2315
+ /* @__PURE__ */ jsx23("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
2326
2316
  ]
2327
2317
  }
2328
2318
  );
@@ -2396,11 +2386,11 @@ function GraphToolbar({
2396
2386
  const orientation = toolbarOrientation(position);
2397
2387
  const setValidationOpen = onValidationOpenChange != null ? onValidationOpenChange : (() => {
2398
2388
  });
2399
- const setValidationOpenRef = React10.useRef(setValidationOpen);
2389
+ const setValidationOpenRef = React9.useRef(setValidationOpen);
2400
2390
  setValidationOpenRef.current = setValidationOpen;
2401
- const validationRef = React10.useRef(null);
2402
- const validationPanelId = React10.useId();
2403
- React10.useEffect(() => {
2391
+ const validationRef = React9.useRef(null);
2392
+ const validationPanelId = React9.useId();
2393
+ React9.useEffect(() => {
2404
2394
  if (validationState === void 0) setValidationOpenRef.current(false);
2405
2395
  }, [validationState]);
2406
2396
  usePopoverDismiss(validationOpen, validationRef, () => setValidationOpenRef.current(false));
@@ -2413,16 +2403,16 @@ function GraphToolbar({
2413
2403
  const foldAllSection = onFoldAll || onExpandAll;
2414
2404
  const foldAllTitle = foldAllDisabled ? "Fold all controllers (nothing to fold)" : "Fold all controllers";
2415
2405
  const expandAllTitle = expandAllDisabled ? "Expand all controllers (nothing to expand)" : "Expand all controllers";
2416
- return /* @__PURE__ */ jsx22(
2406
+ return /* @__PURE__ */ jsx23(
2417
2407
  Panel,
2418
2408
  {
2419
2409
  position,
2420
2410
  className: `graph-toolbar-panel graph-toolbar-panel--${orientation}`,
2421
2411
  style: panelStyle,
2422
- children: /* @__PURE__ */ jsxs22("div", { className: `graph-toolbar graph-toolbar--${orientation}`, children: [
2423
- validationState !== void 0 && /* @__PURE__ */ jsxs22(Fragment13, { children: [
2424
- /* @__PURE__ */ jsxs22("div", { className: "graph-toolbar-validation", ref: validationRef, children: [
2425
- /* @__PURE__ */ jsxs22(
2412
+ children: /* @__PURE__ */ jsxs23("div", { className: `graph-toolbar graph-toolbar--${orientation}`, children: [
2413
+ validationState !== void 0 && /* @__PURE__ */ jsxs23(Fragment13, { children: [
2414
+ /* @__PURE__ */ jsxs23("div", { className: "graph-toolbar-validation", ref: validationRef, children: [
2415
+ /* @__PURE__ */ jsxs23(
2426
2416
  "button",
2427
2417
  {
2428
2418
  type: "button",
@@ -2435,11 +2425,11 @@ function GraphToolbar({
2435
2425
  "aria-controls": validationPanelId,
2436
2426
  children: [
2437
2427
  validationIcon(validationState),
2438
- validationIssues.length > 0 && /* @__PURE__ */ jsx22("span", { className: "graph-toolbar-validation-badge", children: validationIssues.length > 99 ? "99+" : validationIssues.length })
2428
+ validationIssues.length > 0 && /* @__PURE__ */ jsx23("span", { className: "graph-toolbar-validation-badge", children: validationIssues.length > 99 ? "99+" : validationIssues.length })
2439
2429
  ]
2440
2430
  }
2441
2431
  ),
2442
- validationOpen && /* @__PURE__ */ jsx22(
2432
+ validationOpen && /* @__PURE__ */ jsx23(
2443
2433
  ValidationPanel,
2444
2434
  {
2445
2435
  id: validationPanelId,
@@ -2450,10 +2440,10 @@ function GraphToolbar({
2450
2440
  }
2451
2441
  )
2452
2442
  ] }),
2453
- /* @__PURE__ */ jsx22("div", { className: "graph-toolbar-separator" })
2443
+ /* @__PURE__ */ jsx23("div", { className: "graph-toolbar-separator" })
2454
2444
  ] }),
2455
- styleMenuEnabled && /* @__PURE__ */ jsxs22(Fragment13, { children: [
2456
- /* @__PURE__ */ jsx22(
2445
+ styleMenuEnabled && /* @__PURE__ */ jsxs23(Fragment13, { children: [
2446
+ /* @__PURE__ */ jsx23(
2457
2447
  StyleMenu,
2458
2448
  {
2459
2449
  value: graphStyle,
@@ -2462,9 +2452,9 @@ function GraphToolbar({
2462
2452
  placement: validationPanelPlacement(position)
2463
2453
  }
2464
2454
  ),
2465
- /* @__PURE__ */ jsx22("div", { className: "graph-toolbar-separator" })
2455
+ /* @__PURE__ */ jsx23("div", { className: "graph-toolbar-separator" })
2466
2456
  ] }),
2467
- onFoldAll && /* @__PURE__ */ jsx22(
2457
+ onFoldAll && /* @__PURE__ */ jsx23(
2468
2458
  "button",
2469
2459
  {
2470
2460
  type: "button",
@@ -2476,7 +2466,7 @@ function GraphToolbar({
2476
2466
  children: FOLD_ALL_ICON
2477
2467
  }
2478
2468
  ),
2479
- onExpandAll && /* @__PURE__ */ jsx22(
2469
+ onExpandAll && /* @__PURE__ */ jsx23(
2480
2470
  "button",
2481
2471
  {
2482
2472
  type: "button",
@@ -2488,8 +2478,8 @@ function GraphToolbar({
2488
2478
  children: EXPAND_ALL_ICON
2489
2479
  }
2490
2480
  ),
2491
- foldAllSection && /* @__PURE__ */ jsx22("div", { className: "graph-toolbar-separator" }),
2492
- onShowControllersChange && /* @__PURE__ */ jsx22(
2481
+ foldAllSection && /* @__PURE__ */ jsx23("div", { className: "graph-toolbar-separator" }),
2482
+ onShowControllersChange && /* @__PURE__ */ jsx23(
2493
2483
  "button",
2494
2484
  {
2495
2485
  type: "button",
@@ -2500,7 +2490,7 @@ function GraphToolbar({
2500
2490
  children: BOXES_ICON
2501
2491
  }
2502
2492
  ),
2503
- /* @__PURE__ */ jsx22(
2493
+ /* @__PURE__ */ jsx23(
2504
2494
  "button",
2505
2495
  {
2506
2496
  type: "button",
@@ -2511,8 +2501,8 @@ function GraphToolbar({
2511
2501
  children: isVertical ? ARROW_RIGHT_ICON : ARROW_DOWN_ICON
2512
2502
  }
2513
2503
  ),
2514
- (onZoomOut || onZoomIn || onFitView) && /* @__PURE__ */ jsx22("div", { className: "graph-toolbar-separator" }),
2515
- onZoomOut && /* @__PURE__ */ jsx22(
2504
+ (onZoomOut || onZoomIn || onFitView) && /* @__PURE__ */ jsx23("div", { className: "graph-toolbar-separator" }),
2505
+ onZoomOut && /* @__PURE__ */ jsx23(
2516
2506
  "button",
2517
2507
  {
2518
2508
  type: "button",
@@ -2523,7 +2513,7 @@ function GraphToolbar({
2523
2513
  children: MINUS_ICON
2524
2514
  }
2525
2515
  ),
2526
- onZoomIn && /* @__PURE__ */ jsx22(
2516
+ onZoomIn && /* @__PURE__ */ jsx23(
2527
2517
  "button",
2528
2518
  {
2529
2519
  type: "button",
@@ -2534,7 +2524,7 @@ function GraphToolbar({
2534
2524
  children: PLUS_ICON
2535
2525
  }
2536
2526
  ),
2537
- onFitView && /* @__PURE__ */ jsx22(
2527
+ onFitView && /* @__PURE__ */ jsx23(
2538
2528
  "button",
2539
2529
  {
2540
2530
  type: "button",
@@ -2545,9 +2535,9 @@ function GraphToolbar({
2545
2535
  children: FIT_VIEW_ICON
2546
2536
  }
2547
2537
  ),
2548
- themeToggleEnabled && /* @__PURE__ */ jsxs22(Fragment13, { children: [
2549
- /* @__PURE__ */ jsx22("div", { className: "graph-toolbar-separator" }),
2550
- /* @__PURE__ */ jsx22(
2538
+ themeToggleEnabled && /* @__PURE__ */ jsxs23(Fragment13, { children: [
2539
+ /* @__PURE__ */ jsx23("div", { className: "graph-toolbar-separator" }),
2540
+ /* @__PURE__ */ jsx23(
2551
2541
  "button",
2552
2542
  {
2553
2543
  type: "button",
@@ -2565,7 +2555,7 @@ function GraphToolbar({
2565
2555
  }
2566
2556
 
2567
2557
  // src/graph/react/viewer/StillFit.tsx
2568
- import React11 from "react";
2558
+ import React10 from "react";
2569
2559
  import { useEdges, useNodes, useNodesInitialized, useReactFlow, useStore } from "@xyflow/react";
2570
2560
 
2571
2561
  // src/graph/react/viewer/stillViewport.ts
@@ -2612,7 +2602,7 @@ function StillFit({ onHeight }) {
2612
2602
  const nodes = useNodes();
2613
2603
  const edges = useEdges();
2614
2604
  const { getNodesBounds, setViewport } = useReactFlow();
2615
- React11.useLayoutEffect(() => {
2605
+ React10.useLayoutEffect(() => {
2616
2606
  if (!nodesInitialized || nodes.length === 0) return;
2617
2607
  const bounds = stillContentBounds(
2618
2608
  getNodesBounds(nodes),
@@ -2630,7 +2620,7 @@ function StillFit({ onHeight }) {
2630
2620
  }
2631
2621
 
2632
2622
  // src/graph/react/nodes/NodeValidationBadge.tsx
2633
- import { jsx as jsx23 } from "react/jsx-runtime";
2623
+ import { jsx as jsx24 } from "react/jsx-runtime";
2634
2624
  function NodeValidationBadge({
2635
2625
  validation,
2636
2626
  onClick
@@ -2640,9 +2630,9 @@ function NodeValidationBadge({
2640
2630
  const className = `node-validation-badge node-validation-badge--${validation.severity}`;
2641
2631
  const text = validation.count > 99 ? "99+" : String(validation.count);
2642
2632
  if (!onClick) {
2643
- return /* @__PURE__ */ jsx23("span", { className, title: tooltip, "aria-label": label, children: text });
2633
+ return /* @__PURE__ */ jsx24("span", { className, title: tooltip, "aria-label": label, children: text });
2644
2634
  }
2645
- return /* @__PURE__ */ jsx23(
2635
+ return /* @__PURE__ */ jsx24(
2646
2636
  "button",
2647
2637
  {
2648
2638
  type: "button",
@@ -2662,7 +2652,7 @@ function validationRingClass(validation) {
2662
2652
  }
2663
2653
 
2664
2654
  // src/graph/react/nodes/controller/ControllerGroupNode.tsx
2665
- import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
2655
+ import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
2666
2656
  var CONTROLLER_CONFIG = {
2667
2657
  PipeSequence: { badge: "Sequence", icon: "\u2192" },
2668
2658
  PipeParallel: { badge: "Parallel", icon: "//" },
@@ -2684,41 +2674,48 @@ function ControllerGroupNode({ data }) {
2684
2674
  const modifier = getControllerModifier(data.pipeType);
2685
2675
  const isCollapsible = (data.pipeType === "PipeParallel" || data.pipeType === "PipeBatch") && ((_a = data.childCount) != null ? _a : 0) > MAX_VISIBLE_CONTROLLER_CHILDREN;
2686
2676
  const hiddenCount = isCollapsible ? ((_b = data.childCount) != null ? _b : 0) - MAX_VISIBLE_CONTROLLER_CHILDREN : 0;
2687
- return /* @__PURE__ */ jsxs23("div", { className: `controller-group-node ${modifier}${validationRingClass(data.validation)}`, children: [
2688
- /* @__PURE__ */ jsxs23("div", { className: "controller-group-header", children: [
2689
- /* @__PURE__ */ jsx24("span", { className: "controller-group-icon", children: config.icon }),
2690
- /* @__PURE__ */ jsx24("span", { className: "controller-group-badge", children: config.badge }),
2691
- data.label && /* @__PURE__ */ jsx24("span", { className: "controller-group-label", children: data.label }),
2692
- data.onToggleFold && /* @__PURE__ */ jsx24(
2693
- "button",
2694
- {
2695
- type: "button",
2696
- className: "controller-group-fold",
2697
- title: "Fold controller (alt/option: only this one)",
2698
- "aria-label": "Fold controller",
2699
- onClick: (e) => {
2700
- var _a2;
2701
- e.stopPropagation();
2702
- (_a2 = data.onToggleFold) == null ? void 0 : _a2.call(data, { soloMode: e.altKey });
2703
- },
2704
- children: "\u2921"
2705
- }
2706
- ),
2707
- data.validation && /* @__PURE__ */ jsx24(NodeValidationBadge, { validation: data.validation, onClick: data.onValidationBadgeClick })
2708
- ] }),
2709
- isCollapsible && /* @__PURE__ */ jsx24(
2710
- "button",
2711
- {
2712
- className: "controller-group-collapse",
2713
- onClick: (e) => {
2714
- var _a2;
2715
- e.stopPropagation();
2716
- (_a2 = data.onToggleCollapse) == null ? void 0 : _a2.call(data);
2717
- },
2718
- children: data.isCollapsed ? `+${hiddenCount} hidden` : "collapse"
2719
- }
2720
- )
2721
- ] });
2677
+ const failingClass = data.failingPipe ? " controller-group-node--failing-pipe" : "";
2678
+ return /* @__PURE__ */ jsxs24(
2679
+ "div",
2680
+ {
2681
+ className: `controller-group-node ${modifier}${failingClass}${validationRingClass(data.validation)}`,
2682
+ children: [
2683
+ /* @__PURE__ */ jsxs24("div", { className: "controller-group-header", children: [
2684
+ /* @__PURE__ */ jsx25("span", { className: "controller-group-icon", children: config.icon }),
2685
+ /* @__PURE__ */ jsx25("span", { className: "controller-group-badge", children: config.badge }),
2686
+ data.label && /* @__PURE__ */ jsx25("span", { className: "controller-group-label", children: data.label }),
2687
+ data.onToggleFold && /* @__PURE__ */ jsx25(
2688
+ "button",
2689
+ {
2690
+ type: "button",
2691
+ className: "controller-group-fold",
2692
+ title: "Fold controller (alt/option: only this one)",
2693
+ "aria-label": "Fold controller",
2694
+ onClick: (e) => {
2695
+ var _a2;
2696
+ e.stopPropagation();
2697
+ (_a2 = data.onToggleFold) == null ? void 0 : _a2.call(data, { soloMode: e.altKey });
2698
+ },
2699
+ children: "\u2921"
2700
+ }
2701
+ ),
2702
+ data.validation && /* @__PURE__ */ jsx25(NodeValidationBadge, { validation: data.validation, onClick: data.onValidationBadgeClick })
2703
+ ] }),
2704
+ isCollapsible && /* @__PURE__ */ jsx25(
2705
+ "button",
2706
+ {
2707
+ className: "controller-group-collapse",
2708
+ onClick: (e) => {
2709
+ var _a2;
2710
+ e.stopPropagation();
2711
+ (_a2 = data.onToggleCollapse) == null ? void 0 : _a2.call(data);
2712
+ },
2713
+ children: data.isCollapsed ? `+${hiddenCount} hidden` : "collapse"
2714
+ }
2715
+ )
2716
+ ]
2717
+ }
2718
+ );
2722
2719
  }
2723
2720
  var controllerNodeTypes = { controllerGroup: ControllerGroupNode };
2724
2721
 
@@ -2727,7 +2724,7 @@ import { Handle, Position } from "@xyflow/react";
2727
2724
 
2728
2725
  // src/graph/react/nodes/pipe/PipeCardBase.tsx
2729
2726
  import { useState as useState2 } from "react";
2730
- import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
2727
+ import { jsx as jsx26, jsxs as jsxs25 } from "react/jsx-runtime";
2731
2728
  var PIPE_TYPE_BADGES2 = {
2732
2729
  PipeLLM: "LLM",
2733
2730
  PipeExtract: "Extract",
@@ -2786,24 +2783,25 @@ function PipeCardBase({ data, children }) {
2786
2783
  const signatureClass = isSignature ? " pipe-card--signature" : "";
2787
2784
  const bindingClass = isBinding ? " pipe-card--binding" : "";
2788
2785
  const staticClass = isStatic ? " pipe-card--static" : "";
2786
+ const failingClass = data.failingPipe ? " pipe-card--failing-pipe" : "";
2789
2787
  const badgeClass = isController ? "pipe-card-badge pipe-card-badge--controller" : isSignature ? "pipe-card-badge pipe-card-badge--signature" : isBinding ? "pipe-card-badge pipe-card-badge--binding" : "pipe-card-badge";
2790
2788
  const ringClass = validationRingClass(data.validation);
2791
- return /* @__PURE__ */ jsxs24(
2789
+ return /* @__PURE__ */ jsxs25(
2792
2790
  "div",
2793
2791
  {
2794
- className: `pipe-card ${dirClass}${controllerClass}${signatureClass}${bindingClass}${staticClass}${ringClass}`,
2792
+ className: `pipe-card ${dirClass}${controllerClass}${signatureClass}${bindingClass}${staticClass}${failingClass}${ringClass}`,
2795
2793
  children: [
2796
- /* @__PURE__ */ jsxs24("div", { className: "pipe-card-header", children: [
2797
- /* @__PURE__ */ jsx25("span", { className: badgeClass, children: badge }),
2798
- data.docGenFormat && /* @__PURE__ */ jsx25("span", { className: "pipe-card-format", title: `Document format: ${data.docGenFormat}`, children: data.docGenFormat.toUpperCase() }),
2799
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-code", title: data.pipeCode, children: data.pipeCode }),
2800
- !isStatic && /* @__PURE__ */ jsx25(
2794
+ /* @__PURE__ */ jsxs25("div", { className: "pipe-card-header", children: [
2795
+ /* @__PURE__ */ jsx26("span", { className: badgeClass, children: badge }),
2796
+ data.docGenFormat && /* @__PURE__ */ jsx26("span", { className: "pipe-card-format", title: `Document format: ${data.docGenFormat}`, children: data.docGenFormat.toUpperCase() }),
2797
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-code", title: data.pipeCode, children: data.pipeCode }),
2798
+ !isStatic && /* @__PURE__ */ jsx26(
2801
2799
  "span",
2802
2800
  {
2803
2801
  className: "pipe-card-status",
2804
2802
  style: { color: statusConfig.color },
2805
- title: statusConfig.label,
2806
- children: /* @__PURE__ */ jsx25(
2803
+ title: data.failingPipe ? "Failed here: the run failed in this pipe" : statusConfig.label,
2804
+ children: /* @__PURE__ */ jsx26(
2807
2805
  "span",
2808
2806
  {
2809
2807
  className: `pipe-card-status-dot ${isRunning ? "pipe-card-status-dot--pulse" : ""}`,
@@ -2812,7 +2810,7 @@ function PipeCardBase({ data, children }) {
2812
2810
  )
2813
2811
  }
2814
2812
  ),
2815
- data.onExpand && /* @__PURE__ */ jsx25(
2813
+ data.onExpand && /* @__PURE__ */ jsx26(
2816
2814
  "button",
2817
2815
  {
2818
2816
  type: "button",
@@ -2827,32 +2825,32 @@ function PipeCardBase({ data, children }) {
2827
2825
  children: "\u2922"
2828
2826
  }
2829
2827
  ),
2830
- data.validation && /* @__PURE__ */ jsx25(NodeValidationBadge, { validation: data.validation, onClick: data.onValidationBadgeClick })
2828
+ data.validation && /* @__PURE__ */ jsx26(NodeValidationBadge, { validation: data.validation, onClick: data.onValidationBadgeClick })
2831
2829
  ] }),
2832
- (outcome || batchMultiplicity) && /* @__PURE__ */ jsxs24("div", { className: "pipe-card-annotations", children: [
2833
- outcome && /* @__PURE__ */ jsxs24("span", { className: "pipe-card-annotation pipe-card-annotation--outcome", children: [
2830
+ (outcome || batchMultiplicity) && /* @__PURE__ */ jsxs25("div", { className: "pipe-card-annotations", children: [
2831
+ outcome && /* @__PURE__ */ jsxs25("span", { className: "pipe-card-annotation pipe-card-annotation--outcome", children: [
2834
2832
  "outcome: ",
2835
2833
  outcome
2836
2834
  ] }),
2837
- batchMultiplicity && /* @__PURE__ */ jsx25("span", { className: "pipe-card-annotation pipe-card-annotation--batch", children: batchMultiplicity })
2835
+ batchMultiplicity && /* @__PURE__ */ jsx26("span", { className: "pipe-card-annotation pipe-card-annotation--batch", children: batchMultiplicity })
2838
2836
  ] }),
2839
- data.description && /* @__PURE__ */ jsx25("span", { className: "pipe-card-description", title: data.description, children: data.description }),
2840
- data.inputs.length > 0 && /* @__PURE__ */ jsxs24("div", { className: "pipe-card-io", children: [
2841
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-label", children: "INPUTS" }),
2842
- /* @__PURE__ */ jsxs24("div", { className: "pipe-card-io-pills", children: [
2843
- visibleInputs.map((input) => /* @__PURE__ */ jsxs24(
2837
+ data.description && /* @__PURE__ */ jsx26("span", { className: "pipe-card-description", title: data.description, children: data.description }),
2838
+ data.inputs.length > 0 && /* @__PURE__ */ jsxs25("div", { className: "pipe-card-io", children: [
2839
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-label", children: "INPUTS" }),
2840
+ /* @__PURE__ */ jsxs25("div", { className: "pipe-card-io-pills", children: [
2841
+ visibleInputs.map((input) => /* @__PURE__ */ jsxs25(
2844
2842
  "span",
2845
2843
  {
2846
2844
  className: "pipe-card-io-pill",
2847
2845
  title: `${input.name}: ${input.concept}`,
2848
2846
  children: [
2849
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-pill-name", children: input.name }),
2850
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-pill-concept", children: input.concept })
2847
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-pill-name", children: input.name }),
2848
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-pill-concept", children: input.concept })
2851
2849
  ]
2852
2850
  },
2853
2851
  input.name
2854
2852
  )),
2855
- hasMany && /* @__PURE__ */ jsx25(
2853
+ hasMany && /* @__PURE__ */ jsx26(
2856
2854
  "button",
2857
2855
  {
2858
2856
  className: "pipe-card-io-more",
@@ -2865,16 +2863,16 @@ function PipeCardBase({ data, children }) {
2865
2863
  )
2866
2864
  ] })
2867
2865
  ] }),
2868
- data.outputs.length > 0 && /* @__PURE__ */ jsxs24("div", { className: "pipe-card-io", children: [
2869
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-label", children: "OUTPUT" }),
2870
- /* @__PURE__ */ jsx25("div", { className: "pipe-card-io-pills", children: data.outputs.map((output) => /* @__PURE__ */ jsxs24(
2866
+ data.outputs.length > 0 && /* @__PURE__ */ jsxs25("div", { className: "pipe-card-io", children: [
2867
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-label", children: "OUTPUT" }),
2868
+ /* @__PURE__ */ jsx26("div", { className: "pipe-card-io-pills", children: data.outputs.map((output) => /* @__PURE__ */ jsxs25(
2871
2869
  "span",
2872
2870
  {
2873
2871
  className: "pipe-card-io-pill",
2874
2872
  title: `${output.name}: ${output.concept}`,
2875
2873
  children: [
2876
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-pill-name", children: output.name }),
2877
- /* @__PURE__ */ jsx25("span", { className: "pipe-card-io-pill-concept", children: output.concept })
2874
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-pill-name", children: output.name }),
2875
+ /* @__PURE__ */ jsx26("span", { className: "pipe-card-io-pill-concept", children: output.concept })
2878
2876
  ]
2879
2877
  },
2880
2878
  output.name
@@ -2909,11 +2907,11 @@ function getPipeCardComponent(pipeType) {
2909
2907
  }
2910
2908
 
2911
2909
  // src/graph/react/nodes/pipe/PipeCardNode.tsx
2912
- import { Fragment as Fragment14, jsx as jsx26, jsxs as jsxs25 } from "react/jsx-runtime";
2910
+ import { Fragment as Fragment14, jsx as jsx27, jsxs as jsxs26 } from "react/jsx-runtime";
2913
2911
  function PipeCardNode({ data }) {
2914
2912
  var _a;
2915
2913
  const Card = (_a = getPipeCardComponent(data.pipeType)) != null ? _a : PipeCardBase;
2916
- return /* @__PURE__ */ jsx26(Card, { data });
2914
+ return /* @__PURE__ */ jsx27(Card, { data });
2917
2915
  }
2918
2916
  function PipeCardRFNode({
2919
2917
  data,
@@ -2922,16 +2920,16 @@ function PipeCardRFNode({
2922
2920
  }) {
2923
2921
  const payload = data.pipeCardData;
2924
2922
  if (!payload) return null;
2925
- return /* @__PURE__ */ jsxs25(Fragment14, { children: [
2926
- /* @__PURE__ */ jsx26(Handle, { type: "target", position: targetPosition }),
2927
- /* @__PURE__ */ jsx26(PipeCardNode, { data: payload }),
2928
- /* @__PURE__ */ jsx26(Handle, { type: "source", position: sourcePosition })
2923
+ return /* @__PURE__ */ jsxs26(Fragment14, { children: [
2924
+ /* @__PURE__ */ jsx27(Handle, { type: "target", position: targetPosition }),
2925
+ /* @__PURE__ */ jsx27(PipeCardNode, { data: payload }),
2926
+ /* @__PURE__ */ jsx27(Handle, { type: "source", position: sourcePosition })
2929
2927
  ] });
2930
2928
  }
2931
2929
 
2932
2930
  // src/graph/react/styles/simple/SimpleNodes.tsx
2933
2931
  import { Handle as Handle2, Position as Position2 } from "@xyflow/react";
2934
- import { Fragment as Fragment15, jsx as jsx27, jsxs as jsxs26 } from "react/jsx-runtime";
2932
+ import { Fragment as Fragment15, jsx as jsx28, jsxs as jsxs27 } from "react/jsx-runtime";
2935
2933
  var ICON_PROPS2 = {
2936
2934
  viewBox: "0 0 24 24",
2937
2935
  fill: "none",
@@ -2942,90 +2940,90 @@ var ICON_PROPS2 = {
2942
2940
  "aria-hidden": true
2943
2941
  };
2944
2942
  function Icon({ size = 13, children }) {
2945
- return /* @__PURE__ */ jsx27("svg", __spreadProps(__spreadValues({}, ICON_PROPS2), { width: size, height: size, children }));
2943
+ return /* @__PURE__ */ jsx28("svg", __spreadProps(__spreadValues({}, ICON_PROPS2), { width: size, height: size, children }));
2946
2944
  }
2947
2945
  var CATEGORY_ICONS = {
2948
- ai: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2949
- /* @__PURE__ */ jsx27("path", { d: "M9.94 15.5a2 2 0 0 0-1.44-1.44l-6.13-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0l1.58 6.14a2 2 0 0 0 1.44 1.44l6.14 1.58a.5.5 0 0 1 0 .96l-6.14 1.58a2 2 0 0 0-1.44 1.44l-1.58 6.13a.5.5 0 0 1-.96 0z" }),
2950
- /* @__PURE__ */ jsx27("path", { d: "M20 3v4" }),
2951
- /* @__PURE__ */ jsx27("path", { d: "M22 5h-4" })
2946
+ ai: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2947
+ /* @__PURE__ */ jsx28("path", { d: "M9.94 15.5a2 2 0 0 0-1.44-1.44l-6.13-1.58a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.14a.5.5 0 0 1 .96 0l1.58 6.14a2 2 0 0 0 1.44 1.44l6.14 1.58a.5.5 0 0 1 0 .96l-6.14 1.58a2 2 0 0 0-1.44 1.44l-1.58 6.13a.5.5 0 0 1-.96 0z" }),
2948
+ /* @__PURE__ */ jsx28("path", { d: "M20 3v4" }),
2949
+ /* @__PURE__ */ jsx28("path", { d: "M22 5h-4" })
2952
2950
  ] }),
2953
- extract: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2954
- /* @__PURE__ */ jsx27("path", { d: "M3 7V5a2 2 0 0 1 2-2h2" }),
2955
- /* @__PURE__ */ jsx27("path", { d: "M17 3h2a2 2 0 0 1 2 2v2" }),
2956
- /* @__PURE__ */ jsx27("path", { d: "M21 17v2a2 2 0 0 1-2 2h-2" }),
2957
- /* @__PURE__ */ jsx27("path", { d: "M7 21H5a2 2 0 0 1-2-2v-2" }),
2958
- /* @__PURE__ */ jsx27("path", { d: "M7 8h8" }),
2959
- /* @__PURE__ */ jsx27("path", { d: "M7 12h10" }),
2960
- /* @__PURE__ */ jsx27("path", { d: "M7 16h6" })
2951
+ extract: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2952
+ /* @__PURE__ */ jsx28("path", { d: "M3 7V5a2 2 0 0 1 2-2h2" }),
2953
+ /* @__PURE__ */ jsx28("path", { d: "M17 3h2a2 2 0 0 1 2 2v2" }),
2954
+ /* @__PURE__ */ jsx28("path", { d: "M21 17v2a2 2 0 0 1-2 2h-2" }),
2955
+ /* @__PURE__ */ jsx28("path", { d: "M7 21H5a2 2 0 0 1-2-2v-2" }),
2956
+ /* @__PURE__ */ jsx28("path", { d: "M7 8h8" }),
2957
+ /* @__PURE__ */ jsx28("path", { d: "M7 12h10" }),
2958
+ /* @__PURE__ */ jsx28("path", { d: "M7 16h6" })
2961
2959
  ] }),
2962
- image: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2963
- /* @__PURE__ */ jsx27("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2964
- /* @__PURE__ */ jsx27("circle", { cx: "9", cy: "9", r: "2" }),
2965
- /* @__PURE__ */ jsx27("path", { d: "m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21" })
2960
+ image: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2961
+ /* @__PURE__ */ jsx28("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2962
+ /* @__PURE__ */ jsx28("circle", { cx: "9", cy: "9", r: "2" }),
2963
+ /* @__PURE__ */ jsx28("path", { d: "m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21" })
2966
2964
  ] }),
2967
- search: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2968
- /* @__PURE__ */ jsx27("circle", { cx: "11", cy: "11", r: "8" }),
2969
- /* @__PURE__ */ jsx27("path", { d: "m21 21-4.3-4.3" })
2965
+ search: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2966
+ /* @__PURE__ */ jsx28("circle", { cx: "11", cy: "11", r: "8" }),
2967
+ /* @__PURE__ */ jsx28("path", { d: "m21 21-4.3-4.3" })
2970
2968
  ] }),
2971
- code: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2972
- /* @__PURE__ */ jsx27("polyline", { points: "16 18 22 12 16 6" }),
2973
- /* @__PURE__ */ jsx27("polyline", { points: "8 6 2 12 8 18" })
2969
+ code: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2970
+ /* @__PURE__ */ jsx28("polyline", { points: "16 18 22 12 16 6" }),
2971
+ /* @__PURE__ */ jsx28("polyline", { points: "8 6 2 12 8 18" })
2974
2972
  ] }),
2975
- template: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2976
- /* @__PURE__ */ jsx27("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
2977
- /* @__PURE__ */ jsx27("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
2978
- /* @__PURE__ */ jsx27("path", { d: "M16 13H8" }),
2979
- /* @__PURE__ */ jsx27("path", { d: "M16 17H8" })
2973
+ template: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2974
+ /* @__PURE__ */ jsx28("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
2975
+ /* @__PURE__ */ jsx28("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
2976
+ /* @__PURE__ */ jsx28("path", { d: "M16 13H8" }),
2977
+ /* @__PURE__ */ jsx28("path", { d: "M16 17H8" })
2980
2978
  ] }),
2981
- document: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2982
- /* @__PURE__ */ jsx27("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
2983
- /* @__PURE__ */ jsx27("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
2984
- /* @__PURE__ */ jsx27("path", { d: "M12 18v-6" }),
2985
- /* @__PURE__ */ jsx27("path", { d: "m9 15 3 3 3-3" })
2979
+ document: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2980
+ /* @__PURE__ */ jsx28("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
2981
+ /* @__PURE__ */ jsx28("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
2982
+ /* @__PURE__ */ jsx28("path", { d: "M12 18v-6" }),
2983
+ /* @__PURE__ */ jsx28("path", { d: "m9 15 3 3 3-3" })
2986
2984
  ] }),
2987
- judge: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2988
- /* @__PURE__ */ jsx27("path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }),
2989
- /* @__PURE__ */ jsx27("path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }),
2990
- /* @__PURE__ */ jsx27("path", { d: "M7 21h10" }),
2991
- /* @__PURE__ */ jsx27("path", { d: "M12 3v18" }),
2992
- /* @__PURE__ */ jsx27("path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2" })
2985
+ judge: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2986
+ /* @__PURE__ */ jsx28("path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }),
2987
+ /* @__PURE__ */ jsx28("path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }),
2988
+ /* @__PURE__ */ jsx28("path", { d: "M7 21h10" }),
2989
+ /* @__PURE__ */ jsx28("path", { d: "M12 3v18" }),
2990
+ /* @__PURE__ */ jsx28("path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2" })
2993
2991
  ] }),
2994
- planned: /* @__PURE__ */ jsx27("circle", { cx: "12", cy: "12", r: "9", strokeDasharray: "3 3" }),
2995
- steps: /* @__PURE__ */ jsxs26(Fragment15, { children: [
2996
- /* @__PURE__ */ jsx27("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }),
2997
- /* @__PURE__ */ jsx27("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
2998
- /* @__PURE__ */ jsx27("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
2992
+ planned: /* @__PURE__ */ jsx28("circle", { cx: "12", cy: "12", r: "9", strokeDasharray: "3 3" }),
2993
+ steps: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2994
+ /* @__PURE__ */ jsx28("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }),
2995
+ /* @__PURE__ */ jsx28("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
2996
+ /* @__PURE__ */ jsx28("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
2999
2997
  ] }),
3000
- parallel: /* @__PURE__ */ jsxs26(Fragment15, { children: [
3001
- /* @__PURE__ */ jsx27("path", { d: "M16 3h5v5" }),
3002
- /* @__PURE__ */ jsx27("path", { d: "M8 3H3v5" }),
3003
- /* @__PURE__ */ jsx27("path", { d: "M12 22v-8.3a4 4 0 0 0-1.17-2.87L3 3" }),
3004
- /* @__PURE__ */ jsx27("path", { d: "m15 9 6-6" })
2998
+ parallel: /* @__PURE__ */ jsxs27(Fragment15, { children: [
2999
+ /* @__PURE__ */ jsx28("path", { d: "M16 3h5v5" }),
3000
+ /* @__PURE__ */ jsx28("path", { d: "M8 3H3v5" }),
3001
+ /* @__PURE__ */ jsx28("path", { d: "M12 22v-8.3a4 4 0 0 0-1.17-2.87L3 3" }),
3002
+ /* @__PURE__ */ jsx28("path", { d: "m15 9 6-6" })
3005
3003
  ] }),
3006
- decision: /* @__PURE__ */ jsx27("path", { d: "M12 2 22 12 12 22 2 12Z" }),
3007
- repeat: /* @__PURE__ */ jsxs26(Fragment15, { children: [
3008
- /* @__PURE__ */ jsx27("path", { d: "m17 2 4 4-4 4" }),
3009
- /* @__PURE__ */ jsx27("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
3010
- /* @__PURE__ */ jsx27("path", { d: "m7 22-4-4 4-4" }),
3011
- /* @__PURE__ */ jsx27("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
3004
+ decision: /* @__PURE__ */ jsx28("path", { d: "M12 2 22 12 12 22 2 12Z" }),
3005
+ repeat: /* @__PURE__ */ jsxs27(Fragment15, { children: [
3006
+ /* @__PURE__ */ jsx28("path", { d: "m17 2 4 4-4 4" }),
3007
+ /* @__PURE__ */ jsx28("path", { d: "M3 11v-1a4 4 0 0 1 4-4h14" }),
3008
+ /* @__PURE__ */ jsx28("path", { d: "m7 22-4-4 4-4" }),
3009
+ /* @__PURE__ */ jsx28("path", { d: "M21 13v1a4 4 0 0 1-4 4H3" })
3012
3010
  ] }),
3013
- pick: /* @__PURE__ */ jsxs26(Fragment15, { children: [
3014
- /* @__PURE__ */ jsx27("polyline", { points: "15 10 20 15 15 20" }),
3015
- /* @__PURE__ */ jsx27("path", { d: "M4 4v7a4 4 0 0 0 4 4h12" })
3011
+ pick: /* @__PURE__ */ jsxs27(Fragment15, { children: [
3012
+ /* @__PURE__ */ jsx28("polyline", { points: "15 10 20 15 15 20" }),
3013
+ /* @__PURE__ */ jsx28("path", { d: "M4 4v7a4 4 0 0 0 4 4h12" })
3016
3014
  ] })
3017
3015
  };
3018
- var EXPAND_ICON2 = /* @__PURE__ */ jsxs26(Icon, { size: 12, children: [
3019
- /* @__PURE__ */ jsx27("polyline", { points: "15 3 21 3 21 9" }),
3020
- /* @__PURE__ */ jsx27("polyline", { points: "9 21 3 21 3 15" }),
3021
- /* @__PURE__ */ jsx27("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
3022
- /* @__PURE__ */ jsx27("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3016
+ var EXPAND_ICON2 = /* @__PURE__ */ jsxs27(Icon, { size: 12, children: [
3017
+ /* @__PURE__ */ jsx28("polyline", { points: "15 3 21 3 21 9" }),
3018
+ /* @__PURE__ */ jsx28("polyline", { points: "9 21 3 21 3 15" }),
3019
+ /* @__PURE__ */ jsx28("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
3020
+ /* @__PURE__ */ jsx28("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3023
3021
  ] });
3024
- var COLLAPSE_ICON2 = /* @__PURE__ */ jsxs26(Icon, { size: 12, children: [
3025
- /* @__PURE__ */ jsx27("polyline", { points: "4 14 10 14 10 20" }),
3026
- /* @__PURE__ */ jsx27("polyline", { points: "20 10 14 10 14 4" }),
3027
- /* @__PURE__ */ jsx27("line", { x1: "14", y1: "10", x2: "21", y2: "3" }),
3028
- /* @__PURE__ */ jsx27("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3022
+ var COLLAPSE_ICON2 = /* @__PURE__ */ jsxs27(Icon, { size: 12, children: [
3023
+ /* @__PURE__ */ jsx28("polyline", { points: "4 14 10 14 10 20" }),
3024
+ /* @__PURE__ */ jsx28("polyline", { points: "20 10 14 10 14 4" }),
3025
+ /* @__PURE__ */ jsx28("line", { x1: "14", y1: "10", x2: "21", y2: "3" }),
3026
+ /* @__PURE__ */ jsx28("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3029
3027
  ] });
3030
3028
  var STATUS_LABELS = {
3031
3029
  succeeded: "Done",
@@ -3036,25 +3034,25 @@ var STATUS_LABELS = {
3036
3034
  canceled: "Canceled"
3037
3035
  };
3038
3036
  var STATUS_ICONS = {
3039
- succeeded: /* @__PURE__ */ jsx27("polyline", { points: "20 6 9 17 4 12" }),
3040
- failed: /* @__PURE__ */ jsxs26(Fragment15, { children: [
3041
- /* @__PURE__ */ jsx27("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3042
- /* @__PURE__ */ jsx27("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3037
+ succeeded: /* @__PURE__ */ jsx28("polyline", { points: "20 6 9 17 4 12" }),
3038
+ failed: /* @__PURE__ */ jsxs27(Fragment15, { children: [
3039
+ /* @__PURE__ */ jsx28("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3040
+ /* @__PURE__ */ jsx28("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3043
3041
  ] }),
3044
- running: /* @__PURE__ */ jsx27("path", { d: "M21 12a9 9 0 1 1-6.22-8.56" }),
3045
- scheduled: /* @__PURE__ */ jsx27("circle", { cx: "12", cy: "12", r: "8" }),
3046
- skipped: /* @__PURE__ */ jsx27("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
3047
- canceled: /* @__PURE__ */ jsx27("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
3042
+ running: /* @__PURE__ */ jsx28("path", { d: "M21 12a9 9 0 1 1-6.22-8.56" }),
3043
+ scheduled: /* @__PURE__ */ jsx28("circle", { cx: "12", cy: "12", r: "8" }),
3044
+ skipped: /* @__PURE__ */ jsx28("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
3045
+ canceled: /* @__PURE__ */ jsx28("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
3048
3046
  };
3049
3047
  function StatusMark({ status, graphMode }) {
3050
3048
  if (graphMode === "static") return null;
3051
- return /* @__PURE__ */ jsx27(
3049
+ return /* @__PURE__ */ jsx28(
3052
3050
  "span",
3053
3051
  {
3054
3052
  className: `simple-status simple-status--${status}`,
3055
3053
  title: STATUS_LABELS[status],
3056
3054
  "aria-label": STATUS_LABELS[status],
3057
- children: /* @__PURE__ */ jsx27(Icon, { size: 11, children: STATUS_ICONS[status] })
3055
+ children: /* @__PURE__ */ jsx28(Icon, { size: 11, children: STATUS_ICONS[status] })
3058
3056
  }
3059
3057
  );
3060
3058
  }
@@ -3063,17 +3061,17 @@ function Handles({
3063
3061
  targetPosition = Position2.Left,
3064
3062
  children
3065
3063
  }) {
3066
- return /* @__PURE__ */ jsxs26(Fragment15, { children: [
3067
- /* @__PURE__ */ jsx27(Handle2, { type: "target", position: targetPosition, className: "simple-handle" }),
3064
+ return /* @__PURE__ */ jsxs27(Fragment15, { children: [
3065
+ /* @__PURE__ */ jsx28(Handle2, { type: "target", position: targetPosition, className: "simple-handle" }),
3068
3066
  children,
3069
- /* @__PURE__ */ jsx27(Handle2, { type: "source", position: sourcePosition, className: "simple-handle" })
3067
+ /* @__PURE__ */ jsx28(Handle2, { type: "source", position: sourcePosition, className: "simple-handle" })
3070
3068
  ] });
3071
3069
  }
3072
3070
  function ValidationMark({
3073
3071
  validation,
3074
3072
  onClick
3075
3073
  }) {
3076
- return validation ? /* @__PURE__ */ jsx27(NodeValidationBadge, { validation, onClick }) : null;
3074
+ return validation ? /* @__PURE__ */ jsx28(NodeValidationBadge, { validation, onClick }) : null;
3077
3075
  }
3078
3076
  function payloadOf(data, kinds) {
3079
3077
  const simple = data.simple;
@@ -3084,20 +3082,20 @@ function SimpleStepNode({ data, sourcePosition, targetPosition }) {
3084
3082
  const step = payloadOf(data, ["step"]);
3085
3083
  if (!step) return null;
3086
3084
  const statusClass = step.graphMode !== "static" ? ` simple-step--${step.status}` : "";
3087
- return /* @__PURE__ */ jsx27(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs26(
3085
+ return /* @__PURE__ */ jsx28(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs27(
3088
3086
  "div",
3089
3087
  {
3090
3088
  className: `simple-step simple-step--${step.category}${statusClass}${validationRingClass(data.validation)}`,
3091
3089
  children: [
3092
- /* @__PURE__ */ jsxs26("div", { className: "simple-step-header", children: [
3093
- /* @__PURE__ */ jsxs26("span", { className: "simple-step-category", children: [
3094
- /* @__PURE__ */ jsx27(Icon, { children: CATEGORY_ICONS[step.category] }),
3090
+ /* @__PURE__ */ jsxs27("div", { className: "simple-step-header", children: [
3091
+ /* @__PURE__ */ jsxs27("span", { className: "simple-step-category", children: [
3092
+ /* @__PURE__ */ jsx28(Icon, { children: CATEGORY_ICONS[step.category] }),
3095
3093
  STEP_CATEGORY_WORDS[step.category]
3096
3094
  ] }),
3097
- /* @__PURE__ */ jsx27(StatusMark, { status: step.status, graphMode: step.graphMode }),
3098
- /* @__PURE__ */ jsx27(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick })
3095
+ /* @__PURE__ */ jsx28(StatusMark, { status: step.status, graphMode: step.graphMode }),
3096
+ /* @__PURE__ */ jsx28(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick })
3099
3097
  ] }),
3100
- /* @__PURE__ */ jsx27(
3098
+ /* @__PURE__ */ jsx28(
3101
3099
  "div",
3102
3100
  {
3103
3101
  className: "simple-step-title",
@@ -3110,11 +3108,11 @@ function SimpleStepNode({ data, sourcePosition, targetPosition }) {
3110
3108
  children: step.title
3111
3109
  }
3112
3110
  ),
3113
- step.forEach && /* @__PURE__ */ jsxs26("span", { className: "simple-step-foreach", children: [
3114
- /* @__PURE__ */ jsx27(Icon, { size: 11, children: CATEGORY_ICONS.repeat }),
3111
+ step.forEach && /* @__PURE__ */ jsxs27("span", { className: "simple-step-foreach", children: [
3112
+ /* @__PURE__ */ jsx28(Icon, { size: 11, children: CATEGORY_ICONS.repeat }),
3115
3113
  step.forEach
3116
3114
  ] }),
3117
- step.innerStepCount !== void 0 && /* @__PURE__ */ jsxs26(
3115
+ step.innerStepCount !== void 0 && /* @__PURE__ */ jsxs27(
3118
3116
  "button",
3119
3117
  {
3120
3118
  type: "button",
@@ -3138,24 +3136,24 @@ function SimpleStepNode({ data, sourcePosition, targetPosition }) {
3138
3136
  }
3139
3137
  var DOCUMENT_PATH = "M1 1 H99 V84 C80 98 62 74 44 86 C28 96 14 96 1 88 Z";
3140
3138
  function DocumentShape({ className }) {
3141
- return /* @__PURE__ */ jsx27("svg", { className, viewBox: "0 0 100 100", preserveAspectRatio: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx27("path", { d: DOCUMENT_PATH, vectorEffect: "non-scaling-stroke" }) });
3139
+ return /* @__PURE__ */ jsx28("svg", { className, viewBox: "0 0 100 100", preserveAspectRatio: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx28("path", { d: DOCUMENT_PATH, vectorEffect: "non-scaling-stroke" }) });
3142
3140
  }
3143
3141
  function SimpleTerminalNode({ data, sourcePosition, targetPosition }) {
3144
3142
  const terminal = payloadOf(data, ["input", "output"]);
3145
3143
  if (!terminal) return null;
3146
- return /* @__PURE__ */ jsx27(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs26(
3144
+ return /* @__PURE__ */ jsx28(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs27(
3147
3145
  "div",
3148
3146
  {
3149
3147
  className: `simple-terminal simple-terminal--${terminal.kind}${terminal.isList ? " simple-terminal--list" : ""}`,
3150
3148
  children: [
3151
- terminal.isList && /* @__PURE__ */ jsxs26(Fragment15, { children: [
3152
- /* @__PURE__ */ jsx27(DocumentShape, { className: "simple-terminal-shape simple-terminal-shape--back2" }),
3153
- /* @__PURE__ */ jsx27(DocumentShape, { className: "simple-terminal-shape simple-terminal-shape--back1" })
3149
+ terminal.isList && /* @__PURE__ */ jsxs27(Fragment15, { children: [
3150
+ /* @__PURE__ */ jsx28(DocumentShape, { className: "simple-terminal-shape simple-terminal-shape--back2" }),
3151
+ /* @__PURE__ */ jsx28(DocumentShape, { className: "simple-terminal-shape simple-terminal-shape--back1" })
3154
3152
  ] }),
3155
- /* @__PURE__ */ jsx27(DocumentShape, { className: "simple-terminal-shape" }),
3156
- /* @__PURE__ */ jsxs26("div", { className: "simple-terminal-text", children: [
3157
- /* @__PURE__ */ jsx27("span", { className: "simple-terminal-title", title: terminal.title, children: terminal.title }),
3158
- terminal.subtitle && /* @__PURE__ */ jsx27("span", { className: "simple-terminal-subtitle", children: terminal.subtitle })
3153
+ /* @__PURE__ */ jsx28(DocumentShape, { className: "simple-terminal-shape" }),
3154
+ /* @__PURE__ */ jsxs27("div", { className: "simple-terminal-text", children: [
3155
+ /* @__PURE__ */ jsx28("span", { className: "simple-terminal-title", title: terminal.title, children: terminal.title }),
3156
+ terminal.subtitle && /* @__PURE__ */ jsx28("span", { className: "simple-terminal-subtitle", children: terminal.subtitle })
3159
3157
  ] })
3160
3158
  ]
3161
3159
  }
@@ -3165,35 +3163,35 @@ function SimpleDecisionNode({ data, sourcePosition, targetPosition }) {
3165
3163
  const decision = payloadOf(data, ["decision"]);
3166
3164
  if (!decision) return null;
3167
3165
  const statusClass = decision.graphMode !== "static" ? ` simple-decision--${decision.status}` : "";
3168
- return /* @__PURE__ */ jsx27(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs26("div", { className: `simple-decision${statusClass}${validationRingClass(data.validation)}`, children: [
3169
- /* @__PURE__ */ jsx27(
3166
+ return /* @__PURE__ */ jsx28(Handles, { sourcePosition, targetPosition, children: /* @__PURE__ */ jsxs27("div", { className: `simple-decision${statusClass}${validationRingClass(data.validation)}`, children: [
3167
+ /* @__PURE__ */ jsx28(
3170
3168
  "svg",
3171
3169
  {
3172
3170
  className: "simple-decision-shape",
3173
3171
  viewBox: "0 0 100 100",
3174
3172
  preserveAspectRatio: "none",
3175
3173
  "aria-hidden": "true",
3176
- children: /* @__PURE__ */ jsx27("path", { d: "M50 1 L99 50 L50 99 L1 50 Z", vectorEffect: "non-scaling-stroke" })
3174
+ children: /* @__PURE__ */ jsx28("path", { d: "M50 1 L99 50 L50 99 L1 50 Z", vectorEffect: "non-scaling-stroke" })
3177
3175
  }
3178
3176
  ),
3179
- /* @__PURE__ */ jsx27("div", { className: "simple-decision-text", title: decision.title, children: decision.title }),
3180
- /* @__PURE__ */ jsxs26("div", { className: "simple-decision-marks", children: [
3181
- /* @__PURE__ */ jsx27(StatusMark, { status: decision.status, graphMode: decision.graphMode }),
3182
- /* @__PURE__ */ jsx27(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick })
3177
+ /* @__PURE__ */ jsx28("div", { className: "simple-decision-text", title: decision.title, children: decision.title }),
3178
+ /* @__PURE__ */ jsxs27("div", { className: "simple-decision-marks", children: [
3179
+ /* @__PURE__ */ jsx28(StatusMark, { status: decision.status, graphMode: decision.graphMode }),
3180
+ /* @__PURE__ */ jsx28(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick })
3183
3181
  ] })
3184
3182
  ] }) });
3185
3183
  }
3186
3184
  function SimpleFrameNode({ data }) {
3187
3185
  const frame = payloadOf(data, ["frame"]);
3188
3186
  if (!frame) return null;
3189
- return /* @__PURE__ */ jsx27("div", { className: `simple-frame${validationRingClass(data.validation)}`, children: /* @__PURE__ */ jsxs26("div", { className: "simple-frame-header", children: [
3190
- /* @__PURE__ */ jsxs26("span", { className: "simple-frame-title", children: [
3191
- /* @__PURE__ */ jsx27(Icon, { size: 12, children: CATEGORY_ICONS.repeat }),
3187
+ return /* @__PURE__ */ jsx28("div", { className: `simple-frame${validationRingClass(data.validation)}`, children: /* @__PURE__ */ jsxs27("div", { className: "simple-frame-header", children: [
3188
+ /* @__PURE__ */ jsxs27("span", { className: "simple-frame-title", children: [
3189
+ /* @__PURE__ */ jsx28(Icon, { size: 12, children: CATEGORY_ICONS.repeat }),
3192
3190
  frame.title
3193
3191
  ] }),
3194
- /* @__PURE__ */ jsx27(StatusMark, { status: frame.status, graphMode: frame.graphMode }),
3195
- /* @__PURE__ */ jsx27(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick }),
3196
- frame.onFold && /* @__PURE__ */ jsx27(
3192
+ /* @__PURE__ */ jsx28(StatusMark, { status: frame.status, graphMode: frame.graphMode }),
3193
+ /* @__PURE__ */ jsx28(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick }),
3194
+ frame.onFold && /* @__PURE__ */ jsx28(
3197
3195
  "button",
3198
3196
  {
3199
3197
  type: "button",
@@ -3219,7 +3217,7 @@ var simpleNodeTypes = {
3219
3217
 
3220
3218
  // src/graph/react/edges/RoutedEdge.tsx
3221
3219
  import { BaseEdge, getSmoothStepPath } from "@xyflow/react";
3222
- import { jsx as jsx28 } from "react/jsx-runtime";
3220
+ import { jsx as jsx29 } from "react/jsx-runtime";
3223
3221
  function RoutedEdge({
3224
3222
  id,
3225
3223
  sourceX,
@@ -3259,7 +3257,7 @@ function RoutedEdge({
3259
3257
  borderRadius: 8
3260
3258
  });
3261
3259
  }
3262
- return /* @__PURE__ */ jsx28(
3260
+ return /* @__PURE__ */ jsx29(
3263
3261
  BaseEdge,
3264
3262
  {
3265
3263
  id,
@@ -3281,7 +3279,7 @@ function RoutedEdge({
3281
3279
  }
3282
3280
 
3283
3281
  // src/graph/react/viewer/GraphViewer.tsx
3284
- import { Fragment as Fragment16, jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3282
+ import { Fragment as Fragment16, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3285
3283
  var nodeTypes = __spreadValues(__spreadProps(__spreadValues({}, controllerNodeTypes), {
3286
3284
  pipeCard: PipeCardRFNode
3287
3285
  }), simpleNodeTypes);
@@ -3316,7 +3314,7 @@ function StuffNodeDetail({
3316
3314
  const conceptInfo = stuffData.concept && graphspec ? resolveConceptRef(graphspec, stuffData.concept) : void 0;
3317
3315
  const isDryRun = graphSpecMode(graphspec) === GRAPH_SPEC_MODE.DRY;
3318
3316
  const descriptors = resultDescriptors(artifacts);
3319
- const renderData = descriptors ? () => /* @__PURE__ */ jsx29(
3317
+ const renderData = descriptors ? () => /* @__PURE__ */ jsx30(
3320
3318
  StuffResultPanel,
3321
3319
  __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, descriptors), {
3322
3320
  stuff: stuffData
@@ -3325,7 +3323,7 @@ function StuffNodeDetail({
3325
3323
  })
3326
3324
  ) : void 0;
3327
3325
  if (conceptInfo) {
3328
- return /* @__PURE__ */ jsx29(
3326
+ return /* @__PURE__ */ jsx30(
3329
3327
  ConceptDetailPanel,
3330
3328
  {
3331
3329
  concept: conceptInfo,
@@ -3336,8 +3334,8 @@ function StuffNodeDetail({
3336
3334
  }
3337
3335
  );
3338
3336
  }
3339
- if (isDryRun) return /* @__PURE__ */ jsx29("div", { className: "detail-not-available", children: "Dry run data hidden" });
3340
- return /* @__PURE__ */ jsx29(Fragment16, { children: (_a = renderData == null ? void 0 : renderData()) != null ? _a : /* @__PURE__ */ jsx29("div", { className: "detail-not-available", children: "No data" }) });
3337
+ if (isDryRun) return /* @__PURE__ */ jsx30("div", { className: "detail-not-available", children: "Dry run data hidden" });
3338
+ return /* @__PURE__ */ jsx30(Fragment16, { children: (_a = renderData == null ? void 0 : renderData()) != null ? _a : /* @__PURE__ */ jsx30("div", { className: "detail-not-available", children: "No data" }) });
3341
3339
  }
3342
3340
  function seedFoldedControllers(mode, controllerIds) {
3343
3341
  if (mode === FOLD_MODE.FOLDED) return new Set(controllerIds);
@@ -3384,10 +3382,19 @@ function applyStatusOverrides(nodes, statusMap) {
3384
3382
  const simple = node.data.simple;
3385
3383
  const simpleWithStatus = simple && "status" in simple ? simple : void 0;
3386
3384
  if (nodeRunStatus(node.data) === newStatus) return node;
3385
+ const keepsMark = newStatus === "failed";
3386
+ const _b = node.data, { failingPipe } = _b, data = __objRest(_b, ["failingPipe"]);
3387
+ let pipeCardData = data.pipeCardData;
3388
+ if (pipeCardData) {
3389
+ const _c = pipeCardData, { failingPipe: cardMark } = _c, card = __objRest(_c, ["failingPipe"]);
3390
+ pipeCardData = __spreadValues(__spreadProps(__spreadValues({}, card), {
3391
+ status: newStatus
3392
+ }), keepsMark && cardMark ? { failingPipe: cardMark } : {});
3393
+ }
3387
3394
  return __spreadProps(__spreadValues({}, node), {
3388
- data: __spreadProps(__spreadValues({}, node.data), {
3395
+ data: __spreadProps(__spreadValues(__spreadValues({}, data), keepsMark && failingPipe ? { failingPipe } : {}), {
3389
3396
  nodeData: node.data.nodeData ? __spreadProps(__spreadValues({}, node.data.nodeData), { status: newStatus }) : node.data.nodeData,
3390
- pipeCardData: node.data.pipeCardData ? __spreadProps(__spreadValues({}, node.data.pipeCardData), { status: newStatus }) : node.data.pipeCardData,
3397
+ pipeCardData,
3391
3398
  simple: simpleWithStatus ? __spreadProps(__spreadValues({}, simpleWithStatus), { status: newStatus }) : simple
3392
3399
  })
3393
3400
  });
@@ -3427,20 +3434,20 @@ function GraphViewer(props) {
3427
3434
  onValidationIssueClick
3428
3435
  } = props;
3429
3436
  const graphspecProp = (_a = graph == null ? void 0 : graph.graphSpec) != null ? _a : null;
3430
- const graphspec = React13.useMemo(
3437
+ const graphspec = React12.useMemo(
3431
3438
  () => graphspecProp === null ? null : validateGraphSpec(graphspecProp),
3432
3439
  [graphspecProp]
3433
3440
  );
3434
- const [direction, setDirection] = React13.useState(
3441
+ const [direction, setDirection] = React12.useState(
3435
3442
  () => {
3436
3443
  var _a2, _b2;
3437
3444
  return (_b2 = (_a2 = initialDirection != null ? initialDirection : config.direction) != null ? _a2 : DEFAULT_GRAPH_CONFIG.direction) != null ? _b2 : GRAPH_DIRECTION.TB;
3438
3445
  }
3439
3446
  );
3440
3447
  const externalMode = resolveExternalThemeMode(themeProp, config.theme);
3441
- const [mode, setMode] = React13.useState(externalMode);
3442
- const prevExternalModeRef = React13.useRef(externalMode);
3443
- React13.useEffect(() => {
3448
+ const [mode, setMode] = React12.useState(externalMode);
3449
+ const prevExternalModeRef = React12.useRef(externalMode);
3450
+ React12.useEffect(() => {
3444
3451
  if (externalMode !== prevExternalModeRef.current) {
3445
3452
  prevExternalModeRef.current = externalMode;
3446
3453
  setMode(externalMode);
@@ -3448,13 +3455,13 @@ function GraphViewer(props) {
3448
3455
  }, [externalMode]);
3449
3456
  const systemTheme = useSystemTheme(systemThemeProp);
3450
3457
  const resolvedTheme = resolveActiveTheme(mode, systemTheme);
3451
- const onThemeChangeRef = React13.useRef(onThemeChange);
3458
+ const onThemeChangeRef = React12.useRef(onThemeChange);
3452
3459
  onThemeChangeRef.current = onThemeChange;
3453
- const prevReportedRef = React13.useRef({
3460
+ const prevReportedRef = React12.useRef({
3454
3461
  mode,
3455
3462
  resolvedTheme
3456
3463
  });
3457
- React13.useEffect(() => {
3464
+ React12.useEffect(() => {
3458
3465
  var _a2;
3459
3466
  const prev = prevReportedRef.current;
3460
3467
  if (prev.mode !== mode || prev.resolvedTheme !== resolvedTheme) {
@@ -3463,48 +3470,48 @@ function GraphViewer(props) {
3463
3470
  }
3464
3471
  }, [mode, resolvedTheme]);
3465
3472
  const externalStyle = resolveGraphStyle(graphStyleProp, config.graphStyle);
3466
- const [graphStyle, setGraphStyle] = React13.useState(externalStyle);
3467
- const prevExternalStyleRef = React13.useRef(externalStyle);
3468
- React13.useEffect(() => {
3473
+ const [graphStyle, setGraphStyle] = React12.useState(externalStyle);
3474
+ const prevExternalStyleRef = React12.useRef(externalStyle);
3475
+ React12.useEffect(() => {
3469
3476
  if (externalStyle !== prevExternalStyleRef.current) {
3470
3477
  prevExternalStyleRef.current = externalStyle;
3471
3478
  setGraphStyle(externalStyle);
3472
3479
  }
3473
3480
  }, [externalStyle]);
3474
- const onGraphStyleChangeRef = React13.useRef(onGraphStyleChange);
3481
+ const onGraphStyleChangeRef = React12.useRef(onGraphStyleChange);
3475
3482
  onGraphStyleChangeRef.current = onGraphStyleChange;
3476
- const prevReportedStyleRef = React13.useRef(graphStyle);
3477
- React13.useEffect(() => {
3483
+ const prevReportedStyleRef = React12.useRef(graphStyle);
3484
+ React12.useEffect(() => {
3478
3485
  var _a2;
3479
3486
  if (prevReportedStyleRef.current !== graphStyle) {
3480
3487
  prevReportedStyleRef.current = graphStyle;
3481
3488
  (_a2 = onGraphStyleChangeRef.current) == null ? void 0 : _a2.call(onGraphStyleChangeRef, graphStyle);
3482
3489
  }
3483
3490
  }, [graphStyle]);
3484
- const graphStyleRef = React13.useRef(graphStyle);
3491
+ const graphStyleRef = React12.useRef(graphStyle);
3485
3492
  graphStyleRef.current = graphStyle;
3486
3493
  const styleCapabilities = GRAPH_STYLES[graphStyle].capabilities;
3487
3494
  const effectiveFoldMode = (_c = (_b = initialFoldMode != null ? initialFoldMode : config.foldMode) != null ? _b : DEFAULT_GRAPH_CONFIG.foldMode) != null ? _c : FOLD_MODE.EXPANDED;
3488
- const [showControllers, setShowControllers] = React13.useState(() => {
3495
+ const [showControllers, setShowControllers] = React12.useState(() => {
3489
3496
  var _a2, _b2;
3490
3497
  if (effectiveFoldMode === FOLD_MODE.FOLDED) return true;
3491
3498
  return (_b2 = (_a2 = initialShowControllers != null ? initialShowControllers : config.showControllers) != null ? _a2 : DEFAULT_GRAPH_CONFIG.showControllers) != null ? _b2 : false;
3492
3499
  });
3493
- const foldModeRef = React13.useRef(effectiveFoldMode);
3500
+ const foldModeRef = React12.useRef(effectiveFoldMode);
3494
3501
  foldModeRef.current = effectiveFoldMode;
3495
- const containerRef = React13.useRef(null);
3496
- const [detailSelection, setDetailSelection] = React13.useState(null);
3497
- const [conceptOverride, setConceptOverride] = React13.useState(null);
3502
+ const containerRef = React12.useRef(null);
3503
+ const [detailSelection, setDetailSelection] = React12.useState(null);
3504
+ const [conceptOverride, setConceptOverride] = React12.useState(null);
3498
3505
  const {
3499
3506
  width: panelWidth,
3500
3507
  isDragging: isPanelDragging,
3501
3508
  handleMouseDown: onResizeMouseDown
3502
3509
  } = useResizable({ defaultWidth: 380, minWidth: 280, maxWidth: 800, containerRef });
3503
- React13.useEffect(() => {
3510
+ React12.useEffect(() => {
3504
3511
  setDetailSelection(null);
3505
3512
  setConceptOverride(null);
3506
3513
  }, [graphspec]);
3507
- React13.useEffect(() => {
3514
+ React12.useEffect(() => {
3508
3515
  const el = containerRef.current;
3509
3516
  if (!el) return;
3510
3517
  const themePalette = getPaletteForTheme(resolvedTheme);
@@ -3519,15 +3526,15 @@ function GraphViewer(props) {
3519
3526
  }
3520
3527
  };
3521
3528
  }, [config.paletteColors, resolvedTheme]);
3522
- const [stillHeight, setStillHeight] = React13.useState(STILL_PLACEHOLDER_HEIGHT_PX);
3529
+ const [stillHeight, setStillHeight] = React12.useState(STILL_PLACEHOLDER_HEIGHT_PX);
3523
3530
  const [nodes, setNodes, onNodesChange] = useNodesState([]);
3524
3531
  const [edges, setEdges, onEdgesChange] = useEdgesState([]);
3525
- const reactFlowRef = React13.useRef(null);
3526
- const initialDataRef = React13.useRef(null);
3527
- const rawGraphDataRef = React13.useRef(null);
3528
- const layoutCacheRef = React13.useRef(null);
3529
- const [expandedControllers, setExpandedControllers] = React13.useState(/* @__PURE__ */ new Set());
3530
- const toggleCollapse = React13.useCallback((controllerId) => {
3532
+ const reactFlowRef = React12.useRef(null);
3533
+ const initialDataRef = React12.useRef(null);
3534
+ const rawGraphDataRef = React12.useRef(null);
3535
+ const layoutCacheRef = React12.useRef(null);
3536
+ const [expandedControllers, setExpandedControllers] = React12.useState(/* @__PURE__ */ new Set());
3537
+ const toggleCollapse = React12.useCallback((controllerId) => {
3531
3538
  setExpandedControllers((prev) => {
3532
3539
  const next = new Set(prev);
3533
3540
  if (next.has(controllerId)) next.delete(controllerId);
@@ -3535,17 +3542,17 @@ function GraphViewer(props) {
3535
3542
  return next;
3536
3543
  });
3537
3544
  }, []);
3538
- const [foldedControllers, setFoldedControllers] = React13.useState(/* @__PURE__ */ new Set());
3539
- const styleDefaultFoldsRef = React13.useRef(/* @__PURE__ */ new Set());
3540
- const readerOpenedRef = React13.useRef(/* @__PURE__ */ new Set());
3541
- const markReaderFolds = React13.useCallback((ids, folded) => {
3545
+ const [foldedControllers, setFoldedControllers] = React12.useState(/* @__PURE__ */ new Set());
3546
+ const styleDefaultFoldsRef = React12.useRef(/* @__PURE__ */ new Set());
3547
+ const readerOpenedRef = React12.useRef(/* @__PURE__ */ new Set());
3548
+ const markReaderFolds = React12.useCallback((ids, folded) => {
3542
3549
  for (const id of ids) {
3543
3550
  styleDefaultFoldsRef.current.delete(id);
3544
3551
  if (folded) readerOpenedRef.current.delete(id);
3545
3552
  else readerOpenedRef.current.add(id);
3546
3553
  }
3547
3554
  }, []);
3548
- const toggleFold = React13.useCallback(
3555
+ const toggleFold = React12.useCallback(
3549
3556
  (controllerId, options) => {
3550
3557
  setFoldedControllers((prev) => {
3551
3558
  const next = new Set(prev);
@@ -3563,45 +3570,45 @@ function GraphViewer(props) {
3563
3570
  [markReaderFolds]
3564
3571
  );
3565
3572
  const edgeType = config.edgeType || EDGE_TYPE.DEFAULT;
3566
- const layoutConfig = React13.useMemo(
3573
+ const layoutConfig = React12.useMemo(
3567
3574
  () => ({ nodesep: config.nodesep, ranksep: config.ranksep }),
3568
3575
  [config.nodesep, config.ranksep]
3569
3576
  );
3570
- const showControllersRef = React13.useRef(showControllers);
3577
+ const showControllersRef = React12.useRef(showControllers);
3571
3578
  showControllersRef.current = showControllers;
3572
- const directionRef = React13.useRef(direction);
3579
+ const directionRef = React12.useRef(direction);
3573
3580
  directionRef.current = direction;
3574
- const layoutConfigRef = React13.useRef(layoutConfig);
3581
+ const layoutConfigRef = React12.useRef(layoutConfig);
3575
3582
  layoutConfigRef.current = layoutConfig;
3576
- const initialZoomRef = React13.useRef(config.initialZoom);
3583
+ const initialZoomRef = React12.useRef(config.initialZoom);
3577
3584
  initialZoomRef.current = config.initialZoom;
3578
- const panToTopRef = React13.useRef(config.panToTop);
3585
+ const panToTopRef = React12.useRef(config.panToTop);
3579
3586
  panToTopRef.current = config.panToTop;
3580
- const interactiveRef = React13.useRef(interactive);
3587
+ const interactiveRef = React12.useRef(interactive);
3581
3588
  interactiveRef.current = interactive;
3582
- const expandedRef = React13.useRef(expandedControllers);
3589
+ const expandedRef = React12.useRef(expandedControllers);
3583
3590
  expandedRef.current = expandedControllers;
3584
- const toggleCollapseRef = React13.useRef(toggleCollapse);
3591
+ const toggleCollapseRef = React12.useRef(toggleCollapse);
3585
3592
  toggleCollapseRef.current = toggleCollapse;
3586
- const foldedRef = React13.useRef(foldedControllers);
3593
+ const foldedRef = React12.useRef(foldedControllers);
3587
3594
  foldedRef.current = foldedControllers;
3588
- const toggleFoldRef = React13.useRef(toggleFold);
3595
+ const toggleFoldRef = React12.useRef(toggleFold);
3589
3596
  toggleFoldRef.current = toggleFold;
3590
- const isFirstFoldEffect = React13.useRef(true);
3591
- const prevFoldSizeRef = React13.useRef(0);
3592
- const skipNextFoldEffectRef = React13.useRef(false);
3593
- const statusMapRef = React13.useRef(statusMap);
3597
+ const isFirstFoldEffect = React12.useRef(true);
3598
+ const prevFoldSizeRef = React12.useRef(0);
3599
+ const skipNextFoldEffectRef = React12.useRef(false);
3600
+ const statusMapRef = React12.useRef(statusMap);
3594
3601
  statusMapRef.current = statusMap;
3595
- const validationIssuesRef = React13.useRef(validationIssues);
3602
+ const validationIssuesRef = React12.useRef(validationIssues);
3596
3603
  validationIssuesRef.current = validationIssues;
3597
- const selectedNodeIdRef = React13.useRef(null);
3604
+ const selectedNodeIdRef = React12.useRef(null);
3598
3605
  selectedNodeIdRef.current = (_d = detailSelection == null ? void 0 : detailSelection.nodeId) != null ? _d : null;
3599
- const [validationOpen, setValidationOpen] = React13.useState(false);
3600
- const openValidationPanel = React13.useCallback(() => setValidationOpen(true), []);
3606
+ const [validationOpen, setValidationOpen] = React12.useState(false);
3607
+ const openValidationPanel = React12.useCallback(() => setValidationOpen(true), []);
3601
3608
  const validationWidgetAvailable = validationState !== void 0 && !hideToolbar && interactive;
3602
- const validationWidgetAvailableRef = React13.useRef(validationWidgetAvailable);
3609
+ const validationWidgetAvailableRef = React12.useRef(validationWidgetAvailable);
3603
3610
  validationWidgetAvailableRef.current = validationWidgetAvailable;
3604
- const decorateNodes = React13.useCallback(
3611
+ const decorateNodes = React12.useCallback(
3605
3612
  (nodes2) => {
3606
3613
  var _a2, _b2, _c2;
3607
3614
  const raw = rawGraphDataRef.current;
@@ -3622,7 +3629,7 @@ function GraphViewer(props) {
3622
3629
  },
3623
3630
  [openValidationPanel]
3624
3631
  );
3625
- const frameLayout = React13.useCallback(
3632
+ const frameLayout = React12.useCallback(
3626
3633
  (style, layout, graphspec2, analysis) => GRAPH_STYLE_PIPELINES[style].frame({
3627
3634
  nodes: cloneCachedNodes(layout.nodes),
3628
3635
  edges: layout.edges,
@@ -3641,18 +3648,18 @@ function GraphViewer(props) {
3641
3648
  const data = initialDataRef.current;
3642
3649
  return cache !== null && data !== null && cache.graphspec === data._graphspec && cache.graphStyle === data._graphStyle;
3643
3650
  };
3644
- const nodesRef = React13.useRef([]);
3651
+ const nodesRef = React12.useRef([]);
3645
3652
  nodesRef.current = nodes;
3646
- const onValidationIssueClickRef = React13.useRef(onValidationIssueClick);
3653
+ const onValidationIssueClickRef = React12.useRef(onValidationIssueClick);
3647
3654
  onValidationIssueClickRef.current = onValidationIssueClick;
3648
- const flashTimeoutRef = React13.useRef(null);
3649
- React13.useEffect(
3655
+ const flashTimeoutRef = React12.useRef(null);
3656
+ React12.useEffect(
3650
3657
  () => () => {
3651
3658
  if (flashTimeoutRef.current) clearTimeout(flashTimeoutRef.current);
3652
3659
  },
3653
3660
  []
3654
3661
  );
3655
- const handleValidationIssueClick = React13.useCallback(
3662
+ const handleValidationIssueClick = React12.useCallback(
3656
3663
  (index, issue) => {
3657
3664
  var _a2, _b2, _c2;
3658
3665
  (_a2 = onValidationIssueClickRef.current) == null ? void 0 : _a2.call(onValidationIssueClickRef, index, issue);
@@ -3695,7 +3702,7 @@ function GraphViewer(props) {
3695
3702
  },
3696
3703
  [setNodes]
3697
3704
  );
3698
- React13.useEffect(() => {
3705
+ React12.useEffect(() => {
3699
3706
  if (!initialDataRef.current) return;
3700
3707
  let cancelled = false;
3701
3708
  void (async () => {
@@ -3740,7 +3747,7 @@ function GraphViewer(props) {
3740
3747
  cancelled = true;
3741
3748
  };
3742
3749
  }, [direction, layoutConfig]);
3743
- React13.useEffect(() => {
3750
+ React12.useEffect(() => {
3744
3751
  const cache = layoutCacheRef.current;
3745
3752
  const data = initialDataRef.current;
3746
3753
  if (!cache || !data || !cacheMatchesData()) return;
@@ -3748,7 +3755,7 @@ function GraphViewer(props) {
3748
3755
  setNodes(decorateNodes(withControllers.nodes));
3749
3756
  setEdges(toAppEdges(withControllers.edges));
3750
3757
  }, [showControllers, expandedControllers, toggleCollapse, toggleFold, decorateNodes]);
3751
- React13.useEffect(() => {
3758
+ React12.useEffect(() => {
3752
3759
  var _a2;
3753
3760
  if (!graphspec) {
3754
3761
  initialDataRef.current = null;
@@ -3867,7 +3874,7 @@ function GraphViewer(props) {
3867
3874
  cancelled = true;
3868
3875
  };
3869
3876
  }, [graphspec, edgeType, graphStyle]);
3870
- React13.useEffect(() => {
3877
+ React12.useEffect(() => {
3871
3878
  if (isFirstFoldEffect.current) {
3872
3879
  isFirstFoldEffect.current = false;
3873
3880
  prevFoldSizeRef.current = foldedControllers.size;
@@ -3944,7 +3951,7 @@ function GraphViewer(props) {
3944
3951
  cancelled = true;
3945
3952
  };
3946
3953
  }, [foldedControllers, toggleFold]);
3947
- React13.useEffect(() => {
3954
+ React12.useEffect(() => {
3948
3955
  const cache = layoutCacheRef.current;
3949
3956
  const data = initialDataRef.current;
3950
3957
  if (!cache || !data || !cacheMatchesData()) return;
@@ -3952,14 +3959,14 @@ function GraphViewer(props) {
3952
3959
  setNodes(decorateNodes(withControllers.nodes));
3953
3960
  setEdges(toAppEdges(withControllers.edges));
3954
3961
  }, [statusMap, decorateNodes]);
3955
- React13.useEffect(() => {
3962
+ React12.useEffect(() => {
3956
3963
  const cache = layoutCacheRef.current;
3957
3964
  const data = initialDataRef.current;
3958
3965
  if (!cache || !data || !cacheMatchesData()) return;
3959
3966
  const withControllers = frameLayout(cache.graphStyle, cache, data._graphspec, data._analysis);
3960
3967
  setNodes(decorateNodes(withControllers.nodes));
3961
3968
  }, [validationIssues, validationWidgetAvailable, decorateNodes]);
3962
- const onNodeClick = React13.useCallback(
3969
+ const onNodeClick = React12.useCallback(
3963
3970
  (event, node) => {
3964
3971
  const nodeData = node.data;
3965
3972
  onNodeSelect == null ? void 0 : onNodeSelect(node.id, nodeData, event);
@@ -4000,7 +4007,7 @@ function GraphViewer(props) {
4000
4007
  conceptOverride
4001
4008
  ]
4002
4009
  );
4003
- const onInit = React13.useCallback(
4010
+ const onInit = React12.useCallback(
4004
4011
  (reactFlowInstance) => {
4005
4012
  reactFlowRef.current = reactFlowInstance;
4006
4013
  if (onReactFlowInit) {
@@ -4009,8 +4016,8 @@ function GraphViewer(props) {
4009
4016
  },
4010
4017
  [onReactFlowInit]
4011
4018
  );
4012
- const prevInteractiveRef = React13.useRef(interactive);
4013
- React13.useEffect(() => {
4019
+ const prevInteractiveRef = React12.useRef(interactive);
4020
+ React12.useEffect(() => {
4014
4021
  if (prevInteractiveRef.current === interactive) return;
4015
4022
  prevInteractiveRef.current = interactive;
4016
4023
  if (!interactive) {
@@ -4025,12 +4032,12 @@ function GraphViewer(props) {
4025
4032
  }, 50);
4026
4033
  return () => clearTimeout(timer);
4027
4034
  }, [interactive]);
4028
- const handlePaneClick = React13.useCallback(() => {
4035
+ const handlePaneClick = React12.useCallback(() => {
4029
4036
  setDetailSelection(null);
4030
4037
  setConceptOverride(null);
4031
4038
  onPaneClick == null ? void 0 : onPaneClick();
4032
4039
  }, [onPaneClick]);
4033
- const handleConceptClick = React13.useCallback(
4040
+ const handleConceptClick = React12.useCallback(
4034
4041
  (conceptCode) => {
4035
4042
  if (!graphspec) return;
4036
4043
  const info = resolveConceptRef(graphspec, conceptCode);
@@ -4047,7 +4054,7 @@ function GraphViewer(props) {
4047
4054
  const rawAnalysis = (_e = rawGraphDataRef.current) == null ? void 0 : _e.analysis;
4048
4055
  const allControllerIds = rawAnalysis == null ? void 0 : rawAnalysis.controllerNodeIds;
4049
4056
  const foldControlsAvailable = styleCapabilities.foldAll && (!styleCapabilities.controllerFrameToggle || showControllers);
4050
- const foldAllProps = React13.useMemo(() => {
4057
+ const foldAllProps = React12.useMemo(() => {
4051
4058
  if (!foldControlsAvailable || !allControllerIds || allControllerIds.size === 0) {
4052
4059
  return {
4053
4060
  onFoldAll: void 0,
@@ -4069,8 +4076,8 @@ function GraphViewer(props) {
4069
4076
  expandAllDisabled: foldedControllers.size === 0
4070
4077
  };
4071
4078
  }, [foldControlsAvailable, allControllerIds, foldedControllers, markReaderFolds]);
4072
- const styleMenuOptions = React13.useMemo(() => resolveStyleMenu(styleMenu), [styleMenu]);
4073
- return /* @__PURE__ */ jsxs27(
4079
+ const styleMenuOptions = React12.useMemo(() => resolveStyleMenu(styleMenu), [styleMenu]);
4080
+ return /* @__PURE__ */ jsxs28(
4074
4081
  "div",
4075
4082
  {
4076
4083
  ref: containerRef,
@@ -4078,7 +4085,7 @@ function GraphViewer(props) {
4078
4085
  style: interactive ? void 0 : { height: stillHeight },
4079
4086
  inert: !interactive,
4080
4087
  children: [
4081
- /* @__PURE__ */ jsxs27(
4088
+ /* @__PURE__ */ jsxs28(
4082
4089
  ReactFlow,
4083
4090
  __spreadProps(__spreadValues({
4084
4091
  nodes,
@@ -4099,7 +4106,7 @@ function GraphViewer(props) {
4099
4106
  panActivationKeyCode: null
4100
4107
  }, interactive ? {} : STILL_FLOW_PROPS), {
4101
4108
  children: [
4102
- interactive ? /* @__PURE__ */ jsx29(
4109
+ interactive ? /* @__PURE__ */ jsx30(
4103
4110
  Background,
4104
4111
  {
4105
4112
  variant: BackgroundVariant.Dots,
@@ -4107,8 +4114,8 @@ function GraphViewer(props) {
4107
4114
  size: 1,
4108
4115
  color: "var(--color-bg-dots)"
4109
4116
  }
4110
- ) : /* @__PURE__ */ jsx29(StillFit, { onHeight: setStillHeight }),
4111
- interactive && !hideToolbar && /* @__PURE__ */ jsx29(
4117
+ ) : /* @__PURE__ */ jsx30(StillFit, { onHeight: setStillHeight }),
4118
+ interactive && !hideToolbar && /* @__PURE__ */ jsx30(
4112
4119
  GraphToolbar,
4113
4120
  {
4114
4121
  direction,
@@ -4148,7 +4155,7 @@ function GraphViewer(props) {
4148
4155
  ]
4149
4156
  })
4150
4157
  ),
4151
- interactive && /* @__PURE__ */ jsxs27(
4158
+ interactive && /* @__PURE__ */ jsxs28(
4152
4159
  DetailPanel,
4153
4160
  {
4154
4161
  isOpen: detailOpen,
@@ -4157,14 +4164,14 @@ function GraphViewer(props) {
4157
4164
  isDragging: isPanelDragging,
4158
4165
  onResizeHandleMouseDown: onResizeMouseDown,
4159
4166
  children: [
4160
- conceptOverride ? /* @__PURE__ */ jsx29(ConceptDetailPanel, { concept: conceptOverride }) : selectedSpecNode && graphspec ? /* @__PURE__ */ jsx29(
4167
+ conceptOverride ? /* @__PURE__ */ jsx30(ConceptDetailPanel, { concept: conceptOverride }) : selectedSpecNode && graphspec ? /* @__PURE__ */ jsx30(
4161
4168
  PipeDetailPanel,
4162
4169
  {
4163
4170
  node: selectedSpecNode,
4164
4171
  spec: graphspec,
4165
4172
  onConceptClick: handleConceptClick
4166
4173
  }
4167
- ) : (detailSelection == null ? void 0 : detailSelection.stuffData) ? /* @__PURE__ */ jsx29(
4174
+ ) : (detailSelection == null ? void 0 : detailSelection.stuffData) ? /* @__PURE__ */ jsx30(
4168
4175
  StuffNodeDetail,
4169
4176
  {
4170
4177
  nodeId: detailSelection.nodeId,