@pipelex/mthds-ui 0.35.0 → 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.
@@ -5,7 +5,7 @@ import {
5
5
  GRAPH_THEME,
6
6
  GRAPH_THEME_MODE,
7
7
  TOOLBAR_POSITION
8
- } from "./chunk-TMZ2JR2J.js";
8
+ } from "./chunk-4KLE62AN.js";
9
9
  import {
10
10
  __spreadProps,
11
11
  __spreadValues
@@ -195,4 +195,4 @@ export {
195
195
  DEFAULT_GRAPH_CONFIG,
196
196
  getPaletteColors
197
197
  };
198
- //# sourceMappingURL=chunk-K2C5FU4W.js.map
198
+ //# sourceMappingURL=chunk-ENRYQOCO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GRAPH_THEME
3
- } from "./chunk-TMZ2JR2J.js";
3
+ } from "./chunk-4KLE62AN.js";
4
4
 
5
5
  // src/graph/react/viewer/useSystemTheme.ts
6
6
  import React from "react";
@@ -51,4 +51,4 @@ export {
51
51
  detectSystemTheme,
52
52
  useSystemTheme
53
53
  };
54
- //# sourceMappingURL=chunk-F63A55IE.js.map
54
+ //# sourceMappingURL=chunk-ILZJIORT.js.map
@@ -2,7 +2,8 @@ import { FieldEnv } from '@pipelex/mthds-form/react';
2
2
  export * from '@pipelex/mthds-form/react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ValidationMessageKey, PipeIOContract, RunField, RunInputError, PipeInputFormDescriptor } from '@pipelex/mthds-form';
5
- import { a as GraphTheme } from '../../types-CTrrBpQf.js';
5
+ import { a as GraphTheme } from '../../types-DsrzH6gM.js';
6
+ import 'mthds/errors';
6
7
 
7
8
  /**
8
9
  * The panel's submit path, kept React-free.
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  getPaletteForTheme
4
- } from "../../chunk-K2C5FU4W.js";
4
+ } from "../../chunk-ENRYQOCO.js";
5
5
  import {
6
6
  GRAPH_THEME
7
- } from "../../chunk-TMZ2JR2J.js";
7
+ } from "../../chunk-4KLE62AN.js";
8
8
  import {
9
9
  __spreadProps,
10
10
  __spreadValues
@@ -1,7 +1,8 @@
1
- import { p as GraphSpecNode, r as CardNode, s as PipeCallNode, c as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, t as GraphData, u as GraphSpecMode, o as PipeCardPayload, n as FoldToggleOptions, f as GraphNode, e as GraphEdge, d as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, k as GraphSpecNodeIoItem, h as GraphDirection, v as LayoutConfig, E as EdgeRoute, w as GraphPoint, g as GraphConfig, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, S as SimpleTitleFit, x as NodePipeType, y as StepCategory, j as PipeStatus } from '../types-CTrrBpQf.js';
2
- export { A as ARROW_CLOSED_MARKER, B as BINDING_STEP_TYPE, z as BindingNode, H as BindingStepSpec, I as BindingStepType, J as CONTROLLER_PADDING_BOTTOM, K as CONTROLLER_PADDING_TOP, M as CONTROLLER_PADDING_X, O as EDGE_TYPE, Q as EDGE_TYPE_ROUTED, R as EdgeType, U as FOLD_MODE, W as FieldResolution, F as FoldMode, X as GRAPH_DIRECTION, Y as GRAPH_SPEC_MODE, Z as GRAPH_STYLE, _ as GRAPH_THEME, $ as GRAPH_THEME_MODE, a0 as GraphSpecEdge, a1 as GraphSpecEdgeKind, a2 as GraphSpecMeta, a3 as GraphSpecModelUsage, a4 as GraphSpecNodeError, a5 as GraphSpecNodeIo, a6 as GraphSpecNodeTiming, a7 as GraphSpecNodeUsage, a8 as GraphSpecUsage, G as GraphThemeMode, a9 as JudgmentQuestionSpec, aa as KNOWN_PIPE_TYPES, L as LabelDescriptor, ab as NODE_TYPE_CONTROLLER, ac as NODE_TYPE_PIPE_CARD, ad as NODE_TYPE_SIMPLE_DECISION, ae as NODE_TYPE_SIMPLE_FRAME, af as NODE_TYPE_SIMPLE_STEP, ag as NODE_TYPE_SIMPLE_TERMINAL, ah as NODE_TYPE_STUFF, ai as NodeKind, aj as PipeBatchBlueprint, ak as PipeBlueprintBase, al as PipeComposeBlueprint, am as PipeComposeConstructBlueprint, an as PipeComposeConstructField, ao as PipeConditionBlueprint, m as PipeControllerType, ap as PipeDocGenBlueprint, aq as PipeExtractBlueprint, ar as PipeFuncBlueprint, as as PipeImgGenBlueprint, at as PipeJudgeBlueprint, au as PipeLLMBlueprint, q as PipeOperatorType, av as PipeParallelBlueprint, aw as PipeSearchBlueprint, ax as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, az as PipeStructureBlueprint, aA as PipeType, b as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, aJ as SubPipeSpec, aK as TOOLBAR_POSITION, aL as TemplateBlueprint, aM as ToolbarOrientation, aN as ToolbarSide, aO as VALIDATION_STATE, l as ValidationState, aP as graphSpecMode, aQ as isBindingNode, aR as isBindingStepSpec, aS as isDryGraphSpec, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as stuffDigestFromId, a_ as stuffNodeId, a$ as toolbarOrientation, b0 as toolbarSide } from '../types-CTrrBpQf.js';
1
+ import { p as GraphSpecNode, r as CardNode, s as PipeCallNode, c as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, t as GraphData, u as GraphSpecMode, o as PipeCardPayload, n as FoldToggleOptions, f as GraphNode, e as GraphEdge, d as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, k as GraphSpecNodeIoItem, h as GraphDirection, v as LayoutConfig, E as EdgeRoute, w as GraphPoint, g as GraphConfig, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, S as SimpleTitleFit, x as NodePipeType, y as StepCategory, j as PipeStatus } from '../types-DsrzH6gM.js';
2
+ export { A as ARROW_CLOSED_MARKER, B as BINDING_STEP_TYPE, z as BindingNode, H as BindingStepSpec, I as BindingStepType, J as CONTROLLER_PADDING_BOTTOM, K as CONTROLLER_PADDING_TOP, M as CONTROLLER_PADDING_X, O as EDGE_TYPE, Q as EDGE_TYPE_ROUTED, R as EdgeType, U as FOLD_MODE, W as FieldResolution, F as FoldMode, X as GRAPH_DIRECTION, Y as GRAPH_SPEC_MODE, Z as GRAPH_STYLE, _ as GRAPH_THEME, $ as GRAPH_THEME_MODE, a0 as GraphSpecEdge, a1 as GraphSpecEdgeKind, a2 as GraphSpecMeta, a3 as GraphSpecModelUsage, a4 as GraphSpecNodeIo, a5 as GraphSpecNodeTiming, a6 as GraphSpecNodeUsage, a7 as GraphSpecUsage, G as GraphThemeMode, a8 as JudgmentQuestionSpec, a9 as KNOWN_PIPE_TYPES, L as LabelDescriptor, aa as NODE_TYPE_CONTROLLER, ab as NODE_TYPE_PIPE_CARD, ac as NODE_TYPE_SIMPLE_DECISION, ad as NODE_TYPE_SIMPLE_FRAME, ae as NODE_TYPE_SIMPLE_STEP, af as NODE_TYPE_SIMPLE_TERMINAL, ag as NODE_TYPE_STUFF, ah as NodeKind, ai as PipeBatchBlueprint, aj as PipeBlueprintBase, ak as PipeComposeBlueprint, al as PipeComposeConstructBlueprint, am as PipeComposeConstructField, an as PipeConditionBlueprint, m as PipeControllerType, ao as PipeDocGenBlueprint, ap as PipeExtractBlueprint, aq as PipeFuncBlueprint, ar as PipeImgGenBlueprint, as as PipeJudgeBlueprint, at as PipeLLMBlueprint, q as PipeOperatorType, au as PipeParallelBlueprint, av as PipeSearchBlueprint, aw as PipeSequenceBlueprint, ax as PipeSignatureBlueprint, ay as PipeStructureBlueprint, az as PipeType, b as PresenceMarker, aA as STEP_CATEGORY, aB as STUFF_ID_PREFIX, aC as SequenceStepSpec, aD as SimpleNodePayload, aE as StuffMultiplicity, aF as StuffRegistryEntry, aG as StuffRole, aH as StuffSpecInfo, aI as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, aM as ToolbarSide, aN as VALIDATION_STATE, l as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from '../types-DsrzH6gM.js';
3
3
  export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
4
4
  import { ElkNode } from 'elkjs/lib/elk-api';
5
+ import 'mthds/errors';
5
6
 
6
7
  /**
7
8
  * Single boundary validator for GraphSpec JSON.
@@ -71,7 +71,7 @@ import {
71
71
  stripDomain,
72
72
  textWidthPx,
73
73
  validateGraphSpec
74
- } from "../chunk-ABUDTHWF.js";
74
+ } from "../chunk-AGFLCOWW.js";
75
75
  import {
76
76
  makePipeRef,
77
77
  parsePipeRef
@@ -82,7 +82,7 @@ import {
82
82
  LIGHT_PALETTE_COLORS,
83
83
  getPaletteColors,
84
84
  getPaletteForTheme
85
- } from "../chunk-K2C5FU4W.js";
85
+ } from "../chunk-ENRYQOCO.js";
86
86
  import {
87
87
  ARROW_CLOSED_MARKER,
88
88
  BINDING_STEP_TYPE,
@@ -113,17 +113,19 @@ import {
113
113
  isBindingNode,
114
114
  isBindingStepSpec,
115
115
  isDryGraphSpec,
116
+ isFailingPipeNode,
116
117
  isPluralMultiplicity,
117
118
  isStaticGraphSpec,
118
119
  isStuffNodeId,
119
120
  multiplicitySuffix,
120
121
  nodeHeight,
121
122
  nodeWidth,
123
+ problemFailingPipe,
122
124
  stuffDigestFromId,
123
125
  stuffNodeId,
124
126
  toolbarOrientation,
125
127
  toolbarSide
126
- } from "../chunk-TMZ2JR2J.js";
128
+ } from "../chunk-4KLE62AN.js";
127
129
  import "../chunk-2NMEKWO5.js";
128
130
  export {
129
131
  ARROW_CLOSED_MARKER,
@@ -204,6 +206,7 @@ export {
204
206
  isBindingNode,
205
207
  isBindingStepSpec,
206
208
  isDryGraphSpec,
209
+ isFailingPipeNode,
207
210
  isGenericConcept,
208
211
  isGraphStyleId,
209
212
  isPluralMultiplicity,
@@ -219,6 +222,7 @@ export {
219
222
  parsePipeRef,
220
223
  pipeRefOf,
221
224
  polylineMidpoint,
225
+ problemFailingPipe,
222
226
  projectSimpleGraph,
223
227
  resolveConceptRef,
224
228
  resolveGraphStyle,
@@ -438,37 +438,63 @@
438
438
  font-size: 9px;
439
439
  }
440
440
 
441
- /* ─── Error section ─────────────────────────────────────────────────────── */
441
+ /* ─── Problem section (a failed node's problem document) ────────────────── */
442
442
 
443
- .detail-error {
443
+ .detail-problem {
444
444
  background: var(--color-error-bg);
445
445
  border: 1px solid var(--color-error-border);
446
446
  border-radius: 6px;
447
447
  padding: 10px 12px;
448
+ display: flex;
449
+ flex-direction: column;
450
+ gap: 8px;
451
+ }
452
+
453
+ .detail-problem-header {
454
+ display: flex;
455
+ flex-wrap: wrap;
456
+ align-items: baseline;
457
+ gap: 4px 8px;
448
458
  }
449
459
 
450
- .detail-error-type {
460
+ .detail-problem-title {
451
461
  font-size: 12px;
452
462
  font-weight: 600;
453
463
  color: var(--color-error);
454
- margin-bottom: 4px;
455
464
  }
456
465
 
457
- .detail-error-message {
466
+ .detail-problem-code {
467
+ font-family: var(--font-mono);
468
+ font-size: 10px;
469
+ color: var(--text-muted);
470
+ border: 1px solid var(--color-error-border);
471
+ border-radius: 4px;
472
+ padding: 1px 5px;
473
+ overflow-wrap: anywhere;
474
+ }
475
+
476
+ .detail-problem-detail {
458
477
  font-size: 11px;
459
478
  color: var(--text-muted);
460
479
  line-height: 1.5;
461
480
  }
462
481
 
463
- .detail-error-stack {
482
+ .detail-problem-path {
464
483
  font-family: var(--font-mono);
465
484
  font-size: 10px;
466
485
  color: var(--text-dim);
467
- margin-top: 8px;
468
- max-height: 150px;
469
- overflow-y: auto;
470
- white-space: pre-wrap;
471
- word-break: break-word;
486
+ text-align: right;
487
+ overflow-wrap: anywhere;
488
+ }
489
+
490
+ .detail-problem-next-step .detail-section-label {
491
+ margin-bottom: 2px;
492
+ }
493
+
494
+ .detail-problem-next-step-detail {
495
+ font-size: 11px;
496
+ color: var(--text-default);
497
+ line-height: 1.5;
472
498
  }
473
499
 
474
500
  /* ─── Steps list (PipeSequence, PipeCondition outcomes) ─────────────────── */
@@ -651,6 +651,45 @@
651
651
  outline-offset: 1px;
652
652
  }
653
653
 
654
+ /* ─── The failing pipe ─────────────────────────────────────────────────────
655
+ The pipe a failed run failed in: the node whose own problem's `location`
656
+ names its pipe (`isFailingPipeNode`), as against the controllers above it,
657
+ which failed because of it. A ring in the error colour, drawn as a box-shadow
658
+ so it composes with the validation ring, an outline, and leaves the node's
659
+ geometry, and so the layout, unchanged. A box-shadow is one property, so
660
+ each state a card's own shadow changes in restates the ring beside it:
661
+ hovered, the card keeps it over the hover shadow (`.pipe-card:hover`, which
662
+ would otherwise win on specificity and drop it); selected, outside the
663
+ selection ring. A controller's group is drawn inside ReactFlow's wrapper,
664
+ whose selection ring sits in the same band as the group's ring and is
665
+ painted beneath it, so a selected failing group draws the selection ring
666
+ itself, with its own ring outside it, the way a selected failing card does. */
667
+
668
+ .pipe-card--failing-pipe {
669
+ box-shadow:
670
+ 0 0 0 2px var(--color-error),
671
+ var(--shadow-sm);
672
+ }
673
+ .pipe-card--failing-pipe:hover {
674
+ box-shadow:
675
+ 0 0 0 2px var(--color-error),
676
+ var(--shadow-md);
677
+ }
678
+ .react-flow__node-pipeCard.selected .pipe-card--failing-pipe {
679
+ box-shadow:
680
+ 0 0 0 2px var(--color-accent),
681
+ 0 0 0 4px var(--color-error),
682
+ var(--shadow-md);
683
+ }
684
+ .controller-group-node--failing-pipe {
685
+ box-shadow: 0 0 0 2px var(--color-error);
686
+ }
687
+ .react-flow__node-controllerGroup.selected .controller-group-node--failing-pipe {
688
+ box-shadow:
689
+ 0 0 0 2px var(--color-accent),
690
+ 0 0 0 4px var(--color-error);
691
+ }
692
+
654
693
  .node-validation-badge {
655
694
  flex-shrink: 0;
656
695
  min-width: 16px;
@@ -1,10 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React from 'react';
3
- import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-CTrrBpQf.js';
4
- export { q as PipeOperatorType } from '../../types-CTrrBpQf.js';
3
+ import { c as GraphSpec, d as GraphNodeData, e as GraphEdge, f as GraphNode, g as GraphConfig, h as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, i as GraphStyleId, a as GraphTheme, j as PipeStatus, k as GraphSpecNodeIoItem, l as ValidationState, V as ValidationIssue, L as LabelDescriptor, m as PipeControllerType, n as FoldToggleOptions, N as NodeValidationSummary, o as PipeCardPayload, C as ConceptInfo, p as GraphSpecNode } from '../../types-DsrzH6gM.js';
4
+ export { q as PipeOperatorType } from '../../types-DsrzH6gM.js';
5
5
  import { PipeIOContracts, OutputForm, InputForm, SaveFiles } from '@pipelex/mthds-form';
6
6
  import { ResolveUrl, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
7
7
  import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
8
+ import 'mthds/errors';
8
9
 
9
10
  /**
10
11
  * A graph and the artifacts that describe its pipes, taken from ONE source.
@@ -360,6 +361,8 @@ interface ControllerGroupData {
360
361
  onToggleFold?: (options?: FoldToggleOptions) => void;
361
362
  validation?: NodeValidationSummary;
362
363
  onValidationBadgeClick?: () => void;
364
+ /** Set when the controller is itself the pipe its run failed in (`isFailingPipeNode`). */
365
+ failingPipe?: true;
363
366
  }
364
367
  declare function ControllerGroupNode({ data }: {
365
368
  data: ControllerGroupData;