@pipelex/mthds-ui 0.31.0 → 0.33.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 +3 -0
- package/dist/{chunk-BXRVND2C.js → chunk-ABUDTHWF.js} +34 -7
- package/dist/chunk-ABUDTHWF.js.map +1 -0
- package/dist/{chunk-7H3RHOYA.js → chunk-K2C5FU4W.js} +2 -2
- package/dist/{chunk-QRO3TYZE.js → chunk-TMZ2JR2J.js} +1 -1
- package/dist/chunk-TMZ2JR2J.js.map +1 -0
- package/dist/form/react/index.d.ts +1 -1
- package/dist/form/react/index.js +2 -2
- package/dist/graph/index.d.ts +24 -4
- package/dist/graph/index.js +5 -3
- package/dist/graph/react/graph-core.css +29 -0
- package/dist/graph/react/index.d.ts +22 -29
- package/dist/graph/react/index.js +741 -546
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/styles/simple/SimpleStyle.css +9 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/standalone/graph-standalone.html +160 -122
- package/dist/standalone/graph-viewer.css +38 -0
- package/dist/standalone/graph-viewer.js +122 -122
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/static-graph/index.js +97 -17
- package/dist/static-graph/index.js.map +1 -1
- package/dist/{types-KYRgLdlh.d.ts → types-MvxsDLCo.d.ts} +21 -8
- package/package.json +2 -2
- package/dist/chunk-BXRVND2C.js.map +0 -1
- package/dist/chunk-QRO3TYZE.js.map +0 -1
- /package/dist/{chunk-7H3RHOYA.js.map → chunk-K2C5FU4W.js.map} +0 -0
|
@@ -126,12 +126,15 @@ interface GraphSpecModelUsage {
|
|
|
126
126
|
inference_model_name: string;
|
|
127
127
|
inference_model_id: string;
|
|
128
128
|
/**
|
|
129
|
-
* Kind of inference: `"llm"`, `"img_gen"`, `"extract"`, `"search"`.
|
|
129
|
+
* Kind of inference: `"llm"`, `"judgment"`, `"img_gen"`, `"extract"`, `"search"`.
|
|
130
|
+
* Open set. pipelex counts a model per model type and name, so one name can appear
|
|
131
|
+
* twice in a `by_model` list, once per type it ran as.
|
|
130
132
|
*
|
|
131
|
-
* The discriminator to check before displaying token counts:
|
|
132
|
-
* `"
|
|
133
|
-
*
|
|
134
|
-
* are a scaled request counter
|
|
133
|
+
* The discriminator to check before displaying token counts: `"llm"` and
|
|
134
|
+
* `"judgment"` report the tokens they were billed for, while the rest are billed
|
|
135
|
+
* PER REQUEST, and pipelex encodes that price by putting `1_000_000` in each token
|
|
136
|
+
* category (rates are per-million), so those "tokens" are a scaled request counter
|
|
137
|
+
* rather than a measurement. `hasRealTokenCounts` in `usageFormat.ts` holds the list.
|
|
135
138
|
*/
|
|
136
139
|
model_type: string;
|
|
137
140
|
inference_calls: number;
|
|
@@ -457,7 +460,10 @@ interface PipeJudgeBlueprint extends PipeBlueprintBase {
|
|
|
457
460
|
*/
|
|
458
461
|
interface PipeDocGenBlueprint extends PipeBlueprintBase {
|
|
459
462
|
type: "PipeDocGen";
|
|
460
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* `pdf`, `xlsx`, `docx` or `pptx`. Kept a string: the viewer displays the token
|
|
465
|
+
* and never branches on it, so one from a newer runtime shows as it is.
|
|
466
|
+
*/
|
|
461
467
|
doc_gen_format: string;
|
|
462
468
|
/** The engine the step names, or null for the deck's default. */
|
|
463
469
|
doc_gen_choice?: string | Record<string, unknown> | null;
|
|
@@ -780,6 +786,7 @@ interface FoldToggleOptions {
|
|
|
780
786
|
soloMode?: boolean;
|
|
781
787
|
}
|
|
782
788
|
interface PipeCardPayload {
|
|
789
|
+
/** The pipe code, or the `from` path of a binding step's card. */
|
|
783
790
|
pipeCode: string;
|
|
784
791
|
pipeType: NodePipeType;
|
|
785
792
|
description?: string;
|
|
@@ -795,7 +802,13 @@ interface PipeCardPayload {
|
|
|
795
802
|
}[];
|
|
796
803
|
/** Authored/static annotations and runtime tags carried by the GraphSpec node. */
|
|
797
804
|
tags?: Record<string, string>;
|
|
798
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* The document format a `PipeDocGen` step declares (`pdf`, `xlsx`, `docx`,
|
|
807
|
+
* `pptx`), read from its blueprint; absent for any other step, and when the
|
|
808
|
+
* graph carries no registry to read it from.
|
|
809
|
+
*/
|
|
810
|
+
docGenFormat?: string;
|
|
811
|
+
/** Layout direction, injected by the layout engine: narrow and tall in LR, wide and short in TB. */
|
|
799
812
|
direction?: "LR" | "TB";
|
|
800
813
|
/** When set, the card renders an unfold button that invokes this callback. */
|
|
801
814
|
onExpand?: (options?: FoldToggleOptions) => void;
|
|
@@ -1005,4 +1018,4 @@ declare const ARROW_CLOSED_MARKER = "arrowclosed";
|
|
|
1005
1018
|
declare function nodeWidth(n: GraphNode): number;
|
|
1006
1019
|
declare function nodeHeight(n: GraphNode): number;
|
|
1007
1020
|
|
|
1008
|
-
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 GraphTheme 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 PresenceMarker as a, toolbarOrientation as a$, type GraphSpecEdge as a0, type GraphSpecEdgeKind as a1, type GraphSpecMeta as a2, type GraphSpecModelUsage as a3, type GraphSpecNodeError as a4, type GraphSpecNodeIo as a5, type GraphSpecNodeTiming as a6, type GraphSpecNodeUsage as a7, type GraphSpecUsage as a8, type JudgmentQuestionSpec as a9, type PipeType as aA, STEP_CATEGORY as aB, STUFF_ID_PREFIX as aC, type SequenceStepSpec as aD, type SimpleNodePayload as aE, type StuffMultiplicity as aF, type StuffRegistryEntry as aG, type StuffRole as aH, type StuffSpecInfo as aI, type SubPipeSpec as aJ, TOOLBAR_POSITION as aK, type TemplateBlueprint as aL, type ToolbarOrientation as aM, type ToolbarSide as aN, VALIDATION_STATE as aO, graphSpecMode as aP, isBindingNode as aQ, isBindingStepSpec as aR, isDryGraphSpec as aS, isPluralMultiplicity as aT, isStaticGraphSpec as aU, isStuffNodeId as aV, multiplicitySuffix as aW, nodeHeight as aX, nodeWidth as aY, stuffDigestFromId as aZ, stuffNodeId as a_, KNOWN_PIPE_TYPES as aa, NODE_TYPE_CONTROLLER as ab, NODE_TYPE_PIPE_CARD as ac, NODE_TYPE_SIMPLE_DECISION as ad, NODE_TYPE_SIMPLE_FRAME as ae, NODE_TYPE_SIMPLE_STEP as af, NODE_TYPE_SIMPLE_TERMINAL as ag, NODE_TYPE_STUFF as ah, type NodeKind as ai, type PipeBatchBlueprint as aj, type PipeBlueprintBase as ak, type PipeComposeBlueprint as al, type PipeComposeConstructBlueprint as am, type PipeComposeConstructField as an, type PipeConditionBlueprint as ao, type PipeDocGenBlueprint as ap, type PipeExtractBlueprint as aq, type PipeFuncBlueprint as ar, type PipeImgGenBlueprint as as, type PipeJudgeBlueprint as at, type PipeLLMBlueprint as au, type PipeParallelBlueprint as av, type PipeSearchBlueprint as aw, type PipeSequenceBlueprint as ax, type PipeSignatureBlueprint as ay, type PipeStructureBlueprint as az, type GraphSpec as b, toolbarSide as b0, type GraphNodeData as c, type GraphEdge as d, type GraphNode as e, type GraphConfig as f, type GraphDirection as g, type GraphThemeMode 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
|
|
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 GraphTheme 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 PresenceMarker as a, toolbarOrientation as a$, type GraphSpecEdge as a0, type GraphSpecEdgeKind as a1, type GraphSpecMeta as a2, type GraphSpecModelUsage as a3, type GraphSpecNodeError as a4, type GraphSpecNodeIo as a5, type GraphSpecNodeTiming as a6, type GraphSpecNodeUsage as a7, type GraphSpecUsage as a8, type JudgmentQuestionSpec as a9, type PipeType as aA, STEP_CATEGORY as aB, STUFF_ID_PREFIX as aC, type SequenceStepSpec as aD, type SimpleNodePayload as aE, type StuffMultiplicity as aF, type StuffRegistryEntry as aG, type StuffRole as aH, type StuffSpecInfo as aI, type SubPipeSpec as aJ, TOOLBAR_POSITION as aK, type TemplateBlueprint as aL, type ToolbarOrientation as aM, type ToolbarSide as aN, VALIDATION_STATE as aO, graphSpecMode as aP, isBindingNode as aQ, isBindingStepSpec as aR, isDryGraphSpec as aS, isPluralMultiplicity as aT, isStaticGraphSpec as aU, isStuffNodeId as aV, multiplicitySuffix as aW, nodeHeight as aX, nodeWidth as aY, stuffDigestFromId as aZ, stuffNodeId as a_, KNOWN_PIPE_TYPES as aa, NODE_TYPE_CONTROLLER as ab, NODE_TYPE_PIPE_CARD as ac, NODE_TYPE_SIMPLE_DECISION as ad, NODE_TYPE_SIMPLE_FRAME as ae, NODE_TYPE_SIMPLE_STEP as af, NODE_TYPE_SIMPLE_TERMINAL as ag, NODE_TYPE_STUFF as ah, type NodeKind as ai, type PipeBatchBlueprint as aj, type PipeBlueprintBase as ak, type PipeComposeBlueprint as al, type PipeComposeConstructBlueprint as am, type PipeComposeConstructField as an, type PipeConditionBlueprint as ao, type PipeDocGenBlueprint as ap, type PipeExtractBlueprint as aq, type PipeFuncBlueprint as ar, type PipeImgGenBlueprint as as, type PipeJudgeBlueprint as at, type PipeLLMBlueprint as au, type PipeParallelBlueprint as av, type PipeSearchBlueprint as aw, type PipeSequenceBlueprint as ax, type PipeSignatureBlueprint as ay, type PipeStructureBlueprint as az, type GraphSpec as b, toolbarSide as b0, type GraphNodeData as c, type GraphEdge as d, type GraphNode as e, type GraphConfig as f, type GraphDirection as g, type GraphThemeMode 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.33.0",
|
|
4
4
|
"description": "Shared graph rendering logic for MTHDS method visualization",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"build-storybook": "storybook build"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@pipelex/mthds-form": "^0.
|
|
82
|
+
"@pipelex/mthds-form": "^0.16.0",
|
|
83
83
|
"@xyflow/react": "^12",
|
|
84
84
|
"elkjs": "^0.11.1",
|
|
85
85
|
"smol-toml": "^1.7.0"
|