@pipelex/mthds-ui 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/{chunk-TMZ2JR2J.js → chunk-4KLE62AN.js} +13 -1
- package/dist/chunk-4KLE62AN.js.map +1 -0
- package/dist/{chunk-ABUDTHWF.js → chunk-AGFLCOWW.js} +47 -5
- package/dist/chunk-AGFLCOWW.js.map +1 -0
- package/dist/{chunk-K2C5FU4W.js → chunk-ENRYQOCO.js} +2 -2
- package/dist/{chunk-F63A55IE.js → chunk-ILZJIORT.js} +2 -2
- package/dist/form/react/RunPanel.css +12 -0
- package/dist/form/react/index.d.ts +59 -7
- package/dist/form/react/index.js +66 -10
- package/dist/form/react/index.js.map +1 -1
- package/dist/graph/index.d.ts +3 -2
- package/dist/graph/index.js +7 -3
- package/dist/graph/react/detail/DetailPanel.css +37 -11
- package/dist/graph/react/graph-core.css +39 -0
- package/dist/graph/react/index.d.ts +5 -2
- package/dist/graph/react/index.js +482 -433
- package/dist/graph/react/index.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/dist/standalone/graph-standalone.html +226 -161
- package/dist/standalone/graph-viewer.css +77 -12
- package/dist/standalone/graph-viewer.js +148 -148
- package/dist/static-graph/index.d.ts +2 -1
- package/dist/static-graph/index.js +1 -1
- package/dist/timeline/react/index.d.ts +2 -1
- package/dist/timeline/react/index.js +3 -3
- package/dist/{types-CTrrBpQf.d.ts → types-DsrzH6gM.d.ts} +43 -7
- package/package.json +3 -2
- package/dist/chunk-ABUDTHWF.js.map +0 -1
- package/dist/chunk-TMZ2JR2J.js.map +0 -1
- /package/dist/{chunk-K2C5FU4W.js.map → chunk-ENRYQOCO.js.map} +0 -0
- /package/dist/{chunk-F63A55IE.js.map → chunk-ILZJIORT.js.map} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { C as ConceptInfo, P as PipeBlueprintUnion, b as PresenceMarker, c as GraphSpec, V as ValidationIssue } from '../types-
|
|
1
|
+
import { C as ConceptInfo, P as PipeBlueprintUnion, b as PresenceMarker, c as GraphSpec, V as ValidationIssue } from '../types-DsrzH6gM.js';
|
|
2
2
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
3
|
+
import 'mthds/errors';
|
|
3
4
|
|
|
4
5
|
type DiagnosticSeverity = "error" | "warning";
|
|
5
6
|
type DiagnosticCode = "toml-parse-error" | "missing-domain" | "invalid-bundle-shape" | "invalid-concept-entry" | "invalid-pipe-entry" | "unknown-pipe-type" | "retired-signature-tag" | "invalid-concept-ref" | "unknown-input-slot-key" | "invalid-input-name" | "missing-pipe-output" | "invalid-sub-pipe" | "invalid-binding-step" | "binding-path-unresolved" | "incomplete-batch-spec" | "duplicate-concept" | "duplicate-pipe" | "signature-type-mismatch" | "unresolved-pipe-ref" | "cyclic-pipe-ref" | "missing-main-pipe" | "no-entry-pipe" | "conflicting-input-concept";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { G as GraphThemeMode, a as GraphTheme } from '../../types-
|
|
2
|
+
import { G as GraphThemeMode, a as GraphTheme } from '../../types-DsrzH6gM.js';
|
|
3
3
|
import { P as ProgressSnapshot, a as ProgressTimestamp } from '../../progressSnapshot-VZ4PLul9.js';
|
|
4
|
+
import 'mthds/errors';
|
|
4
5
|
|
|
5
6
|
interface RunTimelineProps {
|
|
6
7
|
/**
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
} from "../../chunk-JJG2TO7P.js";
|
|
19
19
|
import {
|
|
20
20
|
useSystemTheme
|
|
21
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-ILZJIORT.js";
|
|
22
22
|
import {
|
|
23
23
|
getPaletteForTheme
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-ENRYQOCO.js";
|
|
25
25
|
import {
|
|
26
26
|
GRAPH_THEME_MODE
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-4KLE62AN.js";
|
|
28
28
|
import {
|
|
29
29
|
__spreadProps,
|
|
30
30
|
__spreadValues
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Problem } from 'mthds/errors';
|
|
2
|
+
|
|
1
3
|
type PipeOperatorType = "PipeLLM" | "PipeExtract" | "PipeCompose" | "PipeImgGen" | "PipeSearch" | "PipeFunc" | "PipeStructure" | "PipeJudge" | "PipeDocGen" | "PipeSignature";
|
|
2
4
|
type PipeControllerType = "PipeSequence" | "PipeParallel" | "PipeCondition" | "PipeBatch";
|
|
3
5
|
type PipeType = PipeOperatorType | PipeControllerType;
|
|
@@ -81,11 +83,6 @@ interface GraphSpecNodeTiming {
|
|
|
81
83
|
ended_at: string;
|
|
82
84
|
duration: number;
|
|
83
85
|
}
|
|
84
|
-
interface GraphSpecNodeError {
|
|
85
|
-
error_type: string;
|
|
86
|
-
message: string;
|
|
87
|
-
stack?: string;
|
|
88
|
-
}
|
|
89
86
|
/**
|
|
90
87
|
* Inference usage attributed to one graph node — the mirror of pipelex's
|
|
91
88
|
* `NodeUsageSpec`. Read the invariants before rendering any of these numbers;
|
|
@@ -188,7 +185,15 @@ interface GraphSpecNode {
|
|
|
188
185
|
status: PipeStatus;
|
|
189
186
|
timing?: GraphSpecNodeTiming;
|
|
190
187
|
io: GraphSpecNodeIo;
|
|
191
|
-
|
|
188
|
+
/**
|
|
189
|
+
* Why a failed node failed: the MTHDS Protocol's problem document, the one
|
|
190
|
+
* error shape every conforming runtime emits. The viewer reads its core
|
|
191
|
+
* members only — `title`, `detail`, `code`, `next_step` and `location` — so
|
|
192
|
+
* a problem from any runtime renders, and the members a runtime adds of its
|
|
193
|
+
* own are kept as received and never read. `validateGraphSpec` refuses a
|
|
194
|
+
* present one that lacks a required core member, and drops a `null` one.
|
|
195
|
+
*/
|
|
196
|
+
error?: Problem;
|
|
192
197
|
tags?: Record<string, string>;
|
|
193
198
|
metrics?: Record<string, number>;
|
|
194
199
|
usage?: GraphSpecNodeUsage;
|
|
@@ -222,6 +227,25 @@ type BindingNode = GraphSpecNode & {
|
|
|
222
227
|
type CardNode = PipeCallNode | BindingNode;
|
|
223
228
|
/** Whether a node is a binding step's node. */
|
|
224
229
|
declare function isBindingNode(node: Pick<GraphSpecNode, "kind">): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* The pipe a problem says failed: the code its `location` names, when it names
|
|
232
|
+
* one. A problem that locates no pipe leaves the failure unplaced, and nothing
|
|
233
|
+
* guesses where it happened.
|
|
234
|
+
*/
|
|
235
|
+
declare function problemFailingPipe(problem: Problem): string | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* Whether a node is the pipe its run failed in: it failed, and its own problem's
|
|
238
|
+
* `location` names its own pipe. A controller fails when a pipe beneath it does,
|
|
239
|
+
* and the problem it carries locates the failure beneath it, so of all the
|
|
240
|
+
* failed nodes of a run only the pipe at fault is marked. The test is per node,
|
|
241
|
+
* so of a batch's runs of one pipe, only the run that failed is.
|
|
242
|
+
*
|
|
243
|
+
* A binding node is never the failing pipe, because a binding step is no pipe:
|
|
244
|
+
* its problem locates the sequence holding it. Its `pipe_code` is its `from`
|
|
245
|
+
* path, which can spell that sequence's code, so the test refuses it by its
|
|
246
|
+
* kind rather than trusting the names to differ.
|
|
247
|
+
*/
|
|
248
|
+
declare function isFailingPipeNode(node: Pick<GraphSpecNode, "kind" | "status" | "pipe_code" | "error">): boolean;
|
|
225
249
|
type GraphSpecEdgeKind = "contains" | "data" | "control" | "selected_outcome" | "batch_item" | "batch_aggregate" | "parallel_combine";
|
|
226
250
|
interface GraphSpecEdge {
|
|
227
251
|
id: string;
|
|
@@ -808,6 +832,12 @@ interface PipeCardPayload {
|
|
|
808
832
|
* graph carries no registry to read it from.
|
|
809
833
|
*/
|
|
810
834
|
docGenFormat?: string;
|
|
835
|
+
/**
|
|
836
|
+
* Set when the card's node is the pipe its run failed in (`isFailingPipeNode`):
|
|
837
|
+
* the card wears the failing-pipe ring. Absent on every other card, a failed
|
|
838
|
+
* controller above the failing pipe included.
|
|
839
|
+
*/
|
|
840
|
+
failingPipe?: true;
|
|
811
841
|
/** Layout direction, injected by the layout engine: narrow and tall in LR, wide and short in TB. */
|
|
812
842
|
direction?: "LR" | "TB";
|
|
813
843
|
/** When set, the card renders an unfold button that invokes this callback. */
|
|
@@ -901,6 +931,12 @@ interface GraphNodeData extends Record<string, unknown> {
|
|
|
901
931
|
pipeType?: NodePipeType;
|
|
902
932
|
graphMode?: GraphSpecMode;
|
|
903
933
|
pipeCardData?: PipeCardPayload;
|
|
934
|
+
/**
|
|
935
|
+
* For a controller group: set when the controller is itself the pipe its run
|
|
936
|
+
* failed in (`isFailingPipeNode`), so the group wears the failing-pipe ring. A
|
|
937
|
+
* card carries the same fact on its `pipeCardData`.
|
|
938
|
+
*/
|
|
939
|
+
failingPipe?: true;
|
|
904
940
|
/** For stuff nodes: "input" (no producer), "output" (no consumer), or undefined (intermediate). */
|
|
905
941
|
stuffRole?: StuffRole;
|
|
906
942
|
/** For stuff nodes: the digest used to build the node ID. */
|
|
@@ -1018,4 +1054,4 @@ declare const ARROW_CLOSED_MARKER = "arrowclosed";
|
|
|
1018
1054
|
declare function nodeWidth(n: GraphNode): number;
|
|
1019
1055
|
declare function nodeHeight(n: GraphNode): number;
|
|
1020
1056
|
|
|
1021
|
-
export { GRAPH_THEME_MODE as $, ARROW_CLOSED_MARKER as A, BINDING_STEP_TYPE as B, type ConceptInfo as C, type DataflowAnalysis as D, type EdgeRoute as E, type FoldMode as F, type GraphThemeMode as G, type BindingStepSpec as H, type BindingStepType as I, CONTROLLER_PADDING_BOTTOM as J, CONTROLLER_PADDING_TOP as K, type LabelDescriptor as L, CONTROLLER_PADDING_X as M, type NodeValidationSummary as N, EDGE_TYPE as O, type PipeBlueprintUnion as P, EDGE_TYPE_ROUTED as Q, type EdgeType as R, type SimpleTitleFit as S, type ToolbarPosition as T, FOLD_MODE as U, type ValidationIssue as V, type FieldResolution as W, GRAPH_DIRECTION as X, GRAPH_SPEC_MODE as Y, GRAPH_STYLE as Z, GRAPH_THEME as _, type GraphTheme as a,
|
|
1057
|
+
export { GRAPH_THEME_MODE as $, ARROW_CLOSED_MARKER as A, BINDING_STEP_TYPE as B, type ConceptInfo as C, type DataflowAnalysis as D, type EdgeRoute as E, type FoldMode as F, type GraphThemeMode as G, type BindingStepSpec as H, type BindingStepType as I, CONTROLLER_PADDING_BOTTOM as J, CONTROLLER_PADDING_TOP as K, type LabelDescriptor as L, CONTROLLER_PADDING_X as M, type NodeValidationSummary as N, EDGE_TYPE as O, type PipeBlueprintUnion as P, EDGE_TYPE_ROUTED as Q, type EdgeType as R, type SimpleTitleFit as S, type ToolbarPosition as T, FOLD_MODE as U, type ValidationIssue as V, type FieldResolution as W, GRAPH_DIRECTION as X, GRAPH_SPEC_MODE as Y, GRAPH_STYLE as Z, GRAPH_THEME as _, type GraphTheme as a, stuffNodeId as a$, type GraphSpecEdge as a0, type GraphSpecEdgeKind as a1, type GraphSpecMeta as a2, type GraphSpecModelUsage as a3, type GraphSpecNodeIo as a4, type GraphSpecNodeTiming as a5, type GraphSpecNodeUsage as a6, type GraphSpecUsage as a7, type JudgmentQuestionSpec as a8, KNOWN_PIPE_TYPES as a9, STEP_CATEGORY as aA, STUFF_ID_PREFIX as aB, type SequenceStepSpec as aC, type SimpleNodePayload as aD, type StuffMultiplicity as aE, type StuffRegistryEntry as aF, type StuffRole as aG, type StuffSpecInfo as aH, type SubPipeSpec as aI, TOOLBAR_POSITION as aJ, type TemplateBlueprint as aK, type ToolbarOrientation as aL, type ToolbarSide as aM, VALIDATION_STATE as aN, graphSpecMode as aO, isBindingNode as aP, isBindingStepSpec as aQ, isDryGraphSpec as aR, isFailingPipeNode as aS, isPluralMultiplicity as aT, isStaticGraphSpec as aU, isStuffNodeId as aV, multiplicitySuffix as aW, nodeHeight as aX, nodeWidth as aY, problemFailingPipe as aZ, stuffDigestFromId as a_, NODE_TYPE_CONTROLLER as aa, NODE_TYPE_PIPE_CARD as ab, NODE_TYPE_SIMPLE_DECISION as ac, NODE_TYPE_SIMPLE_FRAME as ad, NODE_TYPE_SIMPLE_STEP as ae, NODE_TYPE_SIMPLE_TERMINAL as af, NODE_TYPE_STUFF as ag, type NodeKind as ah, type PipeBatchBlueprint as ai, type PipeBlueprintBase as aj, type PipeComposeBlueprint as ak, type PipeComposeConstructBlueprint as al, type PipeComposeConstructField as am, type PipeConditionBlueprint as an, type PipeDocGenBlueprint as ao, type PipeExtractBlueprint as ap, type PipeFuncBlueprint as aq, type PipeImgGenBlueprint as ar, type PipeJudgeBlueprint as as, type PipeLLMBlueprint as at, type PipeParallelBlueprint as au, type PipeSearchBlueprint as av, type PipeSequenceBlueprint as aw, type PipeSignatureBlueprint as ax, type PipeStructureBlueprint as ay, type PipeType as az, type PresenceMarker as b, toolbarOrientation as b0, toolbarSide as b1, type GraphSpec as c, type GraphNodeData as d, type GraphEdge as e, type GraphNode as f, type GraphConfig as g, type GraphDirection as h, type GraphStyleId as i, type PipeStatus as j, type GraphSpecNodeIoItem as k, type ValidationState as l, type PipeControllerType as m, type FoldToggleOptions as n, type PipeCardPayload as o, type GraphSpecNode as p, type PipeOperatorType as q, type CardNode as r, type PipeCallNode as s, type GraphData as t, type GraphSpecMode as u, type LayoutConfig as v, type GraphPoint as w, type NodePipeType as x, type StepCategory as y, type BindingNode as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipelex/mthds-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "Shared graph rendering logic for MTHDS method visualization",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -88,9 +88,10 @@
|
|
|
88
88
|
"build-storybook": "storybook build"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@pipelex/mthds-form": "^0.
|
|
91
|
+
"@pipelex/mthds-form": "^0.20.0",
|
|
92
92
|
"@xyflow/react": "^12",
|
|
93
93
|
"elkjs": "^0.11.1",
|
|
94
|
+
"mthds": "^0.32.1",
|
|
94
95
|
"smol-toml": "^1.7.0"
|
|
95
96
|
},
|
|
96
97
|
"peerDependencies": {
|