@pipelex/mthds-ui 0.59.0 → 0.60.1
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/dist/{chunk-S4UMMHLE.js → chunk-43NAVRQK.js} +17 -2
- package/dist/chunk-43NAVRQK.js.map +1 -0
- package/dist/{chunk-6KWNAU4F.js → chunk-BQZ3BPJM.js} +13 -1
- package/dist/chunk-BQZ3BPJM.js.map +1 -0
- package/dist/{chunk-XMTXWXFO.js → chunk-KKT6OVO6.js} +3 -3
- package/dist/{chunk-5N3MP5TD.js → chunk-PWKNMKFA.js} +106 -35
- package/dist/chunk-PWKNMKFA.js.map +1 -0
- package/dist/{chunk-ZRSFFUHA.js → chunk-S36KN6CG.js} +3 -3
- package/dist/chunk-UVEGKTBU.js +600 -0
- package/dist/chunk-UVEGKTBU.js.map +1 -0
- package/dist/{chunk-7QUQJW6Q.js → chunk-YQJNKQWO.js} +91 -285
- package/dist/chunk-YQJNKQWO.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 +48 -21
- package/dist/graph/index.js +61 -21
- package/dist/graph/react/detail/DetailPanel.css +49 -0
- package/dist/graph/react/graph-core.css +20 -0
- package/dist/graph/react/index.d.ts +2 -2
- package/dist/graph/react/index.js +92 -29
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/styles/simple/SimpleDetailPanel.css +20 -0
- package/dist/graph/react/styles/simple/SimpleStyle.css +13 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +61 -21
- package/dist/methodWords-DIEg1PVT.d.ts +180 -0
- package/dist/{registryJoin-CMfBspIs.d.ts → registryJoin-Cj1mIkqe.d.ts} +18 -10
- package/dist/standalone/graph-standalone.html +232 -130
- package/dist/standalone/graph-viewer.css +102 -0
- package/dist/standalone/graph-viewer.js +130 -130
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/static-graph/index.js +57 -14
- package/dist/static-graph/index.js.map +1 -1
- package/dist/timeline/index.d.ts +42 -7
- package/dist/timeline/index.js +8 -3
- package/dist/timeline/react/RunTimeline.css +18 -0
- package/dist/timeline/react/index.d.ts +3 -2
- package/dist/timeline/react/index.js +20 -11
- package/dist/timeline/react/index.js.map +1 -1
- package/dist/timeline/react/styles/simple/SimpleProgress.css +25 -0
- package/dist/{types-CnDJyLYo.d.ts → types-BygAt1Si.d.ts} +51 -1
- package/package.json +2 -2
- package/dist/chunk-5N3MP5TD.js.map +0 -1
- package/dist/chunk-6KWNAU4F.js.map +0 -1
- package/dist/chunk-7QUQJW6Q.js.map +0 -1
- package/dist/chunk-P6IGZVWE.js +0 -155
- package/dist/chunk-P6IGZVWE.js.map +0 -1
- package/dist/chunk-S4UMMHLE.js.map +0 -1
- /package/dist/{chunk-XMTXWXFO.js.map → chunk-KKT6OVO6.js.map} +0 -0
- /package/dist/{chunk-ZRSFFUHA.js.map → chunk-S36KN6CG.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
styleMenuLabel,
|
|
7
7
|
usePopoverDismiss,
|
|
8
8
|
useSystemTheme
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-S36KN6CG.js";
|
|
10
10
|
import {
|
|
11
11
|
GRAPH_STYLE_PIPELINES,
|
|
12
12
|
GraphSpecValidationError,
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
STEP_CATEGORY_WORDS,
|
|
15
15
|
applyFolds,
|
|
16
16
|
applyValidationDecorations,
|
|
17
|
-
buildChildToControllerMap,
|
|
18
17
|
buildGraph,
|
|
19
18
|
buildSimpleNodeDetail,
|
|
20
19
|
buildValidationDecorations,
|
|
@@ -22,26 +21,33 @@ import {
|
|
|
22
21
|
findStuffByDigest,
|
|
23
22
|
fitRoute,
|
|
24
23
|
getLayoutedElements,
|
|
25
|
-
resolveConceptRef,
|
|
26
24
|
resolveIssueTargetNodeId,
|
|
27
|
-
resolveNodeBlueprint,
|
|
28
25
|
roundedPolylinePath,
|
|
29
26
|
routeLabelCenter,
|
|
30
27
|
validateGraphSpec
|
|
31
|
-
} from "../../chunk-
|
|
28
|
+
} from "../../chunk-YQJNKQWO.js";
|
|
32
29
|
import {
|
|
33
30
|
GRAPH_STYLES,
|
|
34
31
|
resolveGraphStyle,
|
|
35
32
|
resolveStyleMenu
|
|
36
|
-
} from "../../chunk-
|
|
33
|
+
} from "../../chunk-KKT6OVO6.js";
|
|
34
|
+
import {
|
|
35
|
+
activityTitle,
|
|
36
|
+
buildChildToControllerMap,
|
|
37
|
+
outcomeTone,
|
|
38
|
+
outcomeWordsOf,
|
|
39
|
+
resolveConceptRef,
|
|
40
|
+
resolveNodeBlueprint,
|
|
41
|
+
selectedOutcomeWords,
|
|
42
|
+
takenOutcomeKey
|
|
43
|
+
} from "../../chunk-UVEGKTBU.js";
|
|
37
44
|
import {
|
|
38
45
|
parsePipeRef
|
|
39
46
|
} from "../../chunk-2N65P32H.js";
|
|
40
|
-
import "../../chunk-P6IGZVWE.js";
|
|
41
47
|
import {
|
|
42
48
|
DEFAULT_GRAPH_CONFIG,
|
|
43
49
|
getPaletteForTheme
|
|
44
|
-
} from "../../chunk-
|
|
50
|
+
} from "../../chunk-43NAVRQK.js";
|
|
45
51
|
import {
|
|
46
52
|
BINDING_STEP_TYPE,
|
|
47
53
|
EDGE_TYPE,
|
|
@@ -69,7 +75,7 @@ import {
|
|
|
69
75
|
stuffDigestFromId,
|
|
70
76
|
toolbarOrientation,
|
|
71
77
|
toolbarSide
|
|
72
|
-
} from "../../chunk-
|
|
78
|
+
} from "../../chunk-BQZ3BPJM.js";
|
|
73
79
|
import {
|
|
74
80
|
__objRest,
|
|
75
81
|
__spreadProps,
|
|
@@ -1289,40 +1295,84 @@ function PipeDocGenSection({
|
|
|
1289
1295
|
|
|
1290
1296
|
// src/graph/react/detail/sections/PipeConditionDetail.tsx
|
|
1291
1297
|
import { Fragment as Fragment10, jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1298
|
+
function OutcomeName({ words, fallback }) {
|
|
1299
|
+
var _a;
|
|
1300
|
+
const tone = outcomeTone(words);
|
|
1301
|
+
return /* @__PURE__ */ jsx13("span", { className: `detail-outcome-label${tone ? ` detail-outcome-label--${tone}` : ""}`, children: (_a = words == null ? void 0 : words.label) != null ? _a : fallback });
|
|
1302
|
+
}
|
|
1303
|
+
function OutcomeKeyCell({
|
|
1304
|
+
outcomeKey,
|
|
1305
|
+
words
|
|
1306
|
+
}) {
|
|
1307
|
+
return /* @__PURE__ */ jsx13("span", { className: "detail-kv-key detail-kv-key--outcome", children: (words == null ? void 0 : words.label) ? /* @__PURE__ */ jsxs13(Fragment10, { children: [
|
|
1308
|
+
outcomeKey,
|
|
1309
|
+
" ",
|
|
1310
|
+
/* @__PURE__ */ jsx13(OutcomeName, { words, fallback: outcomeKey })
|
|
1311
|
+
] }) : outcomeTone(words) ? /* @__PURE__ */ jsx13(OutcomeName, { words, fallback: outcomeKey }) : outcomeKey });
|
|
1312
|
+
}
|
|
1313
|
+
var TAKEN_ROW_STYLE = {
|
|
1314
|
+
background: "var(--color-success-bg, rgba(80,250,123,0.08))"
|
|
1315
|
+
};
|
|
1316
|
+
var TAKEN_PIPE_STYLE = { color: PIPE_STATUS_COLOR.succeeded };
|
|
1292
1317
|
function PipeConditionSection({
|
|
1293
1318
|
blueprint,
|
|
1294
1319
|
executionData
|
|
1295
1320
|
}) {
|
|
1321
|
+
var _a;
|
|
1296
1322
|
const evaluatedExpression = executionData == null ? void 0 : executionData.evaluated_expression;
|
|
1297
1323
|
const selectedOutcome = executionData == null ? void 0 : executionData.selected_outcome;
|
|
1324
|
+
const takenKey = takenOutcomeKey(blueprint, executionData);
|
|
1325
|
+
const taken = selectedOutcomeWords(executionData);
|
|
1326
|
+
const defaultWords = outcomeWordsOf(blueprint, null);
|
|
1298
1327
|
return /* @__PURE__ */ jsxs13(Fragment10, { children: [
|
|
1299
1328
|
/* @__PURE__ */ jsx13(PromptBlock, { label: "Expression", text: blueprint.expression }),
|
|
1300
1329
|
evaluatedExpression && /* @__PURE__ */ jsx13(KV, { label: "Expression Result", value: evaluatedExpression }),
|
|
1330
|
+
taken && /* @__PURE__ */ jsxs13("div", { className: "detail-kv-row", children: [
|
|
1331
|
+
/* @__PURE__ */ jsx13("span", { className: "detail-kv-key", children: "Outcome Taken" }),
|
|
1332
|
+
/* @__PURE__ */ jsxs13("span", { className: "detail-kv-value", children: [
|
|
1333
|
+
/* @__PURE__ */ jsx13(OutcomeName, { words: taken, fallback: selectedOutcome != null ? selectedOutcome : "" }),
|
|
1334
|
+
taken.description && /* @__PURE__ */ jsx13("span", { className: "detail-outcome-description", children: taken.description })
|
|
1335
|
+
] })
|
|
1336
|
+
] }),
|
|
1301
1337
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
1302
1338
|
/* @__PURE__ */ jsx13("div", { className: "detail-section-label", children: "Outcomes" }),
|
|
1303
|
-
Object.entries(blueprint.outcome_map).map(([outcome, pipeCode]) =>
|
|
1339
|
+
Object.entries(blueprint.outcome_map).map(([outcome, pipeCode]) => {
|
|
1340
|
+
var _a2;
|
|
1341
|
+
const words = outcomeWordsOf(blueprint, outcome);
|
|
1342
|
+
const taken2 = takenKey === outcome;
|
|
1343
|
+
return /* @__PURE__ */ jsxs13(
|
|
1344
|
+
"div",
|
|
1345
|
+
{
|
|
1346
|
+
className: "detail-kv-row",
|
|
1347
|
+
style: taken2 ? TAKEN_ROW_STYLE : void 0,
|
|
1348
|
+
title: (_a2 = words == null ? void 0 : words.description) != null ? _a2 : void 0,
|
|
1349
|
+
children: [
|
|
1350
|
+
/* @__PURE__ */ jsx13(OutcomeKeyCell, { outcomeKey: outcome, words }),
|
|
1351
|
+
/* @__PURE__ */ jsx13("span", { className: "detail-kv-value", style: taken2 ? TAKEN_PIPE_STYLE : void 0, children: pipeCode })
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
outcome
|
|
1355
|
+
);
|
|
1356
|
+
}),
|
|
1357
|
+
/* @__PURE__ */ jsxs13(
|
|
1304
1358
|
"div",
|
|
1305
1359
|
{
|
|
1306
1360
|
className: "detail-kv-row",
|
|
1307
|
-
style:
|
|
1361
|
+
style: takenKey === null ? TAKEN_ROW_STYLE : void 0,
|
|
1362
|
+
title: (_a = defaultWords == null ? void 0 : defaultWords.description) != null ? _a : void 0,
|
|
1308
1363
|
children: [
|
|
1309
|
-
/* @__PURE__ */ jsx13(
|
|
1364
|
+
/* @__PURE__ */ jsx13(OutcomeKeyCell, { outcomeKey: "default", words: defaultWords }),
|
|
1310
1365
|
/* @__PURE__ */ jsx13(
|
|
1311
1366
|
"span",
|
|
1312
1367
|
{
|
|
1313
1368
|
className: "detail-kv-value",
|
|
1314
|
-
style:
|
|
1315
|
-
children:
|
|
1369
|
+
style: takenKey === null ? TAKEN_PIPE_STYLE : void 0,
|
|
1370
|
+
children: blueprint.default_outcome
|
|
1316
1371
|
}
|
|
1317
1372
|
)
|
|
1318
1373
|
]
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
)),
|
|
1322
|
-
/* @__PURE__ */ jsxs13("div", { className: "detail-kv-row", children: [
|
|
1323
|
-
/* @__PURE__ */ jsx13("span", { className: "detail-kv-key", children: "default" }),
|
|
1324
|
-
/* @__PURE__ */ jsx13("span", { className: "detail-kv-value", children: blueprint.default_outcome })
|
|
1325
|
-
] })
|
|
1374
|
+
}
|
|
1375
|
+
)
|
|
1326
1376
|
] }),
|
|
1327
1377
|
/* @__PURE__ */ jsx13(KV, { label: "Alias Expression To", value: blueprint.add_alias_from_expression_to })
|
|
1328
1378
|
] });
|
|
@@ -1489,7 +1539,7 @@ var CONTROLLER_TYPES = /* @__PURE__ */ new Set([
|
|
|
1489
1539
|
]);
|
|
1490
1540
|
var STATUS_COLORS = PIPE_STATUS_COLOR;
|
|
1491
1541
|
function PipeDetailPanel({ node, spec, onConceptClick }) {
|
|
1492
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1542
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
1493
1543
|
const pipeType = node.pipe_type;
|
|
1494
1544
|
const isController = CONTROLLER_TYPES.has(pipeType);
|
|
1495
1545
|
const isBinding = isBindingNode(node);
|
|
@@ -1503,6 +1553,7 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
|
|
|
1503
1553
|
const inputs = (_c = (_b = node.io) == null ? void 0 : _b.inputs) != null ? _c : [];
|
|
1504
1554
|
const outputs = (_e = (_d = node.io) == null ? void 0 : _d.outputs) != null ? _e : [];
|
|
1505
1555
|
const description = (_f = blueprint == null ? void 0 : blueprint.description) != null ? _f : node.description;
|
|
1556
|
+
const activity = (_g = activityTitle(node)) != null ? _g : activityTitle(blueprint);
|
|
1506
1557
|
return /* @__PURE__ */ jsxs19(Fragment13, { children: [
|
|
1507
1558
|
/* @__PURE__ */ jsxs19("div", { className: "detail-sticky-header", children: [
|
|
1508
1559
|
/* @__PURE__ */ jsxs19("div", { className: "detail-header", children: [
|
|
@@ -1524,7 +1575,7 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
|
|
|
1524
1575
|
!isStatic && /* @__PURE__ */ jsxs19("div", { className: "detail-status", children: [
|
|
1525
1576
|
/* @__PURE__ */ jsx19("span", { className: "detail-status-dot", style: { background: statusColor } }),
|
|
1526
1577
|
/* @__PURE__ */ jsx19("span", { className: "detail-status-label", style: { color: statusColor }, children: status }),
|
|
1527
|
-
((
|
|
1578
|
+
((_h = node.timing) == null ? void 0 : _h.duration) != null && /* @__PURE__ */ jsx19("span", { className: "detail-duration", children: formatDuration(node.timing.duration) }),
|
|
1528
1579
|
showsGeneratedData && node.usage && /* @__PURE__ */ jsx19(
|
|
1529
1580
|
UsageCostInline,
|
|
1530
1581
|
{
|
|
@@ -1537,6 +1588,11 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
|
|
|
1537
1588
|
] }),
|
|
1538
1589
|
showsGeneratedData && node.usage && usageExpanded && /* @__PURE__ */ jsx19(UsageDetails, { usage: node.usage, isController }),
|
|
1539
1590
|
description && /* @__PURE__ */ jsx19("div", { className: "detail-description", children: description }),
|
|
1591
|
+
activity && /* @__PURE__ */ jsxs19("div", { className: "detail-activity", children: [
|
|
1592
|
+
/* @__PURE__ */ jsx19("span", { className: "detail-activity-label", children: "During a run" }),
|
|
1593
|
+
" ",
|
|
1594
|
+
activity
|
|
1595
|
+
] }),
|
|
1540
1596
|
inputs.length > 0 && /* @__PURE__ */ jsxs19("div", { children: [
|
|
1541
1597
|
/* @__PURE__ */ jsx19("div", { className: "detail-section-label", children: "Inputs" }),
|
|
1542
1598
|
/* @__PURE__ */ jsx19("div", { className: "detail-io-list", children: inputs.map((input, idx) => /* @__PURE__ */ jsxs19(
|
|
@@ -1578,7 +1634,7 @@ function PipeDetailPanel({ node, spec, onConceptClick }) {
|
|
|
1578
1634
|
{
|
|
1579
1635
|
blueprint,
|
|
1580
1636
|
executionData: showsGeneratedData ? node.execution_data : void 0,
|
|
1581
|
-
modelsRan: showsGeneratedData ? (
|
|
1637
|
+
modelsRan: showsGeneratedData ? (_i = node.usage) == null ? void 0 : _i.by_model : void 0,
|
|
1582
1638
|
modelHandles: node.execution_data
|
|
1583
1639
|
}
|
|
1584
1640
|
),
|
|
@@ -2041,13 +2097,20 @@ function DecisionView({
|
|
|
2041
2097
|
{
|
|
2042
2098
|
className: `simple-detail-outcome${state ? ` simple-detail-outcome--${state}` : ""}`,
|
|
2043
2099
|
children: [
|
|
2044
|
-
/* @__PURE__ */ jsx21(
|
|
2100
|
+
/* @__PURE__ */ jsx21(
|
|
2101
|
+
"span",
|
|
2102
|
+
{
|
|
2103
|
+
className: `simple-detail-outcome-label${outcome.tone ? ` simple-detail-outcome-label--${outcome.tone}` : ""}`,
|
|
2104
|
+
children: outcome.label
|
|
2105
|
+
}
|
|
2106
|
+
),
|
|
2045
2107
|
/* @__PURE__ */ jsx21("span", { className: "simple-detail-outcome-arrow", "aria-hidden": "true", children: "\u2192" }),
|
|
2046
2108
|
/* @__PURE__ */ jsx21("span", { className: "simple-detail-outcome-target", children: outcome.ends ? SIMPLE_DETAIL_STRINGS.outcomeEnds[outcome.ends] : outcome.leadsTo ? /* @__PURE__ */ jsx21(NodeLink, { link: outcome.leadsTo, onOpenNode }) : outcome.leadsToTitle }),
|
|
2047
|
-
outcome.taken !== void 0 && /* @__PURE__ */ jsx21("span", { className: "simple-detail-outcome-taken", children: SIMPLE_DETAIL_STRINGS.taken(outcome.taken, detail.runs) })
|
|
2109
|
+
outcome.taken !== void 0 && /* @__PURE__ */ jsx21("span", { className: "simple-detail-outcome-taken", children: SIMPLE_DETAIL_STRINGS.taken(outcome.taken, detail.runs) }),
|
|
2110
|
+
outcome.description && /* @__PURE__ */ jsx21("span", { className: "simple-detail-outcome-description", children: outcome.description })
|
|
2048
2111
|
]
|
|
2049
2112
|
},
|
|
2050
|
-
outcome.
|
|
2113
|
+
outcome.target
|
|
2051
2114
|
);
|
|
2052
2115
|
}) }) }),
|
|
2053
2116
|
/* @__PURE__ */ jsx21(TechnicalFold, { render: renderTechnical })
|
|
@@ -3922,9 +3985,9 @@ function SimpleFrameNode({ data }) {
|
|
|
3922
3985
|
const frame = payloadOf(data, ["frame"]);
|
|
3923
3986
|
if (!frame) return null;
|
|
3924
3987
|
return /* @__PURE__ */ jsx31("div", { className: `simple-frame${validationRingClass(data.validation)}`, children: /* @__PURE__ */ jsxs29("div", { className: "simple-frame-header", children: [
|
|
3925
|
-
/* @__PURE__ */ jsxs29("span", { className: "simple-frame-title", children: [
|
|
3988
|
+
/* @__PURE__ */ jsxs29("span", { className: "simple-frame-title", title: frame.title, children: [
|
|
3926
3989
|
/* @__PURE__ */ jsx31(Icon, { size: 12, children: CATEGORY_ICONS.repeat }),
|
|
3927
|
-
frame.title
|
|
3990
|
+
/* @__PURE__ */ jsx31("span", { className: "simple-frame-title-text", children: frame.title })
|
|
3928
3991
|
] }),
|
|
3929
3992
|
/* @__PURE__ */ jsx31(StatusMark, { status: frame.status, graphMode: frame.graphMode }),
|
|
3930
3993
|
/* @__PURE__ */ jsx31(ValidationMark, { validation: data.validation, onClick: data.onValidationBadgeClick }),
|