@pipelex/mthds-ui 0.34.1 → 0.35.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.
@@ -0,0 +1,402 @@
1
+ "use client";
2
+ import {
3
+ INVOCATION_STATUS,
4
+ PROGRESS_MODE,
5
+ barFollowsClock,
6
+ buildTimelineRows,
7
+ formatClockTime,
8
+ formatDuration,
9
+ fresherSnapshot,
10
+ invocationBar,
11
+ invocationTimes,
12
+ isRunEnded,
13
+ progressStreamKey,
14
+ readingClockMs,
15
+ snapshotTimes,
16
+ timelineTicks,
17
+ timelineWindowAt
18
+ } from "../../chunk-JJG2TO7P.js";
19
+ import {
20
+ useSystemTheme
21
+ } from "../../chunk-F63A55IE.js";
22
+ import {
23
+ getPaletteForTheme
24
+ } from "../../chunk-K2C5FU4W.js";
25
+ import {
26
+ GRAPH_THEME_MODE
27
+ } from "../../chunk-TMZ2JR2J.js";
28
+ import {
29
+ __spreadProps,
30
+ __spreadValues
31
+ } from "../../chunk-2NMEKWO5.js";
32
+
33
+ // src/timeline/react/index.ts
34
+ import "./RunTimeline.css";
35
+
36
+ // src/timeline/react/RunTimeline.tsx
37
+ import * as React from "react";
38
+ import { jsx, jsxs } from "react/jsx-runtime";
39
+ var CLOCK_TICK_MS = 250;
40
+ var TICK_RIGHT_ALIGN_PERCENT = 92;
41
+ var TICK_SPACING_PX = 64;
42
+ var DEFAULT_MAX_TICKS = 6;
43
+ function useTickBudget() {
44
+ const [budget, setBudget] = React.useState(DEFAULT_MAX_TICKS);
45
+ const observer = React.useRef(null);
46
+ const ref = React.useCallback((element) => {
47
+ var _a;
48
+ (_a = observer.current) == null ? void 0 : _a.disconnect();
49
+ observer.current = null;
50
+ if (!element || typeof ResizeObserver === "undefined") return;
51
+ observer.current = new ResizeObserver((entries) => {
52
+ var _a2, _b;
53
+ const width = (_b = (_a2 = entries[0]) == null ? void 0 : _a2.contentRect.width) != null ? _b : 0;
54
+ if (width > 0) setBudget(Math.max(1, Math.floor(width / TICK_SPACING_PX)));
55
+ });
56
+ observer.current.observe(element);
57
+ }, []);
58
+ return [ref, budget];
59
+ }
60
+ var EMPTY_EXPANSION = Object.freeze({});
61
+ var RUN_STATUS_WORD = {
62
+ pending: "Pending",
63
+ running: "Running",
64
+ succeeded: "Succeeded",
65
+ failed: "Failed",
66
+ canceled: "Canceled"
67
+ };
68
+ function wordFor(table, value) {
69
+ return Object.prototype.hasOwnProperty.call(table, value) ? table[value] : value;
70
+ }
71
+ function useHeldSnapshot(snapshot) {
72
+ const [state, setState] = React.useState({ given: snapshot, held: snapshot });
73
+ if (state.given !== snapshot) {
74
+ const held = fresherSnapshot(state.held, snapshot);
75
+ setState({ given: snapshot, held });
76
+ return held;
77
+ }
78
+ return state.held;
79
+ }
80
+ function useReadingClock(held, stream, now, live, followsClock) {
81
+ const base = React.useMemo(() => readingClockMs(held, now), [held, now]);
82
+ const ticking = live && now === void 0 && base !== null && !isRunEnded(held.status) && followsClock;
83
+ const [clock, setClock] = React.useState({ stream, base, ticking, ms: base });
84
+ let shown = clock;
85
+ if (clock.stream !== stream || clock.base !== base || clock.ticking !== ticking) {
86
+ const floor = ticking && clock.ticking && clock.stream === stream ? clock.ms : null;
87
+ const ms = base !== null && floor !== null ? Math.max(base, floor) : base;
88
+ shown = { stream, base, ticking, ms };
89
+ setClock(shown);
90
+ }
91
+ React.useEffect(() => {
92
+ if (!ticking) return void 0;
93
+ let previous = performance.now();
94
+ const timer = window.setInterval(() => {
95
+ const current = performance.now();
96
+ const step = current - previous;
97
+ previous = current;
98
+ setClock(
99
+ (state) => state.stream === stream && state.base === base && state.ticking && state.ms !== null ? __spreadProps(__spreadValues({}, state), { ms: state.ms + step }) : state
100
+ );
101
+ }, CLOCK_TICK_MS);
102
+ return () => window.clearInterval(timer);
103
+ }, [ticking, stream, base]);
104
+ return { nowMs: ticking ? shown.ms : base, ticking };
105
+ }
106
+ function batchCountsText(batch) {
107
+ const counts = batch.counts;
108
+ if (!counts) return null;
109
+ let text = `${counts.done} of ${counts.total} done`;
110
+ if (counts.running > 0) text += ` \xB7 ${counts.running} running`;
111
+ if (counts.failed > 0) text += ` \xB7 ${counts.failed} failed`;
112
+ return text;
113
+ }
114
+ function rowDetailText(row, bar) {
115
+ const batchText = row.batch ? batchCountsText(row.batch) : null;
116
+ if (batchText) return batchText;
117
+ const status = row.invocation.status;
118
+ if (status === INVOCATION_STATUS.SCHEDULED) return "scheduled";
119
+ if (status === INVOCATION_STATUS.SKIPPED) return "skipped";
120
+ if (status === INVOCATION_STATUS.CANCELED) return "canceled";
121
+ return bar ? formatDuration(bar.endMs - bar.startMs) : "";
122
+ }
123
+ function isRetried(invocation) {
124
+ return invocation.attempts !== void 0 && invocation.attempts > 1;
125
+ }
126
+ function rowTitle(row, times, bar) {
127
+ var _a;
128
+ const invocation = row.invocation;
129
+ const lines = [`${invocation.pipe_ref} \xB7 ${invocation.pipe_type}`];
130
+ let state = invocation.status;
131
+ if (times.startedMs !== null) state += `, started ${formatClockTime(times.startedMs)}`;
132
+ if (times.endedMs !== null) state += `, ended ${formatClockTime(times.endedMs)}`;
133
+ if (bar) state += ` (${formatDuration(bar.endMs - bar.startMs)})`;
134
+ lines.push(state.charAt(0).toUpperCase() + state.slice(1));
135
+ if (row.outcome) {
136
+ const outcome = row.outcome.key === null ? "the default outcome" : `the outcome ${row.outcome.key}`;
137
+ lines.push(row.outcome.fromResolution ? `Took ${outcome}` : `The branch for ${outcome}`);
138
+ }
139
+ if (invocation.condition) {
140
+ const selected = invocation.condition.selected_outcome;
141
+ lines.push(selected === null ? "Chose its default outcome" : `Chose the outcome ${selected}`);
142
+ }
143
+ const counts = (_a = row.batch) == null ? void 0 : _a.counts;
144
+ if (counts) {
145
+ lines.push(
146
+ `${counts.total} items: ${counts.done} done, ${counts.running} running, ${counts.failed} failed`
147
+ );
148
+ }
149
+ if (invocation.skip_reason) lines.push(`Skipped: ${invocation.skip_reason}`);
150
+ if (isRetried(invocation)) lines.push(`Tried ${invocation.attempts} times`);
151
+ if (invocation.last_failure) {
152
+ const at = times.failedMs;
153
+ lines.push(
154
+ `Last failure${at === null ? "" : ` at ${formatClockTime(at)}`}: ${invocation.last_failure.message}`
155
+ );
156
+ }
157
+ if (invocation.degradation) lines.push(`Not progressing: ${invocation.degradation.message}`);
158
+ return lines.join("\n");
159
+ }
160
+ function BatchStrip({ batch }) {
161
+ if (batch.strip.length === 0) return null;
162
+ return /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-strip", "aria-hidden": "true", children: batch.strip.map((cell) => /* @__PURE__ */ jsx(
163
+ "span",
164
+ {
165
+ className: `mthds-run-timeline-strip-cell mthds-run-timeline-strip-cell--${cell.status}`,
166
+ style: { flexGrow: cell.count }
167
+ },
168
+ cell.firstItem
169
+ )) });
170
+ }
171
+ var AXIS_SPAN_VAR = "--mthds-run-timeline-axis-span";
172
+ function cssNumber(value) {
173
+ return String(Math.round(value * 1e3) / 1e3);
174
+ }
175
+ function axisShare(ms) {
176
+ return `calc(${cssNumber(ms)} * 100% / var(${AXIS_SPAN_VAR}))`;
177
+ }
178
+ function FailureTick({ atMs, startMs, endMs }) {
179
+ if (atMs === null || atMs < startMs || atMs > endMs) return null;
180
+ const span = endMs - startMs;
181
+ const percent = span > 0 ? (atMs - startMs) / span * 100 : 0;
182
+ return /* @__PURE__ */ jsx(
183
+ "span",
184
+ {
185
+ className: "mthds-run-timeline-failure-tick",
186
+ style: { left: `${percent}%` },
187
+ "aria-hidden": "true"
188
+ }
189
+ );
190
+ }
191
+ var TimelineRowView = React.memo(function TimelineRowView2({
192
+ row,
193
+ times,
194
+ axis,
195
+ nowMs,
196
+ onToggleBatch
197
+ }) {
198
+ const invocation = row.invocation;
199
+ const status = invocation.status;
200
+ const bar = axis ? invocationBar(invocation, axis, nowMs, times) : null;
201
+ const drawnStartMs = bar && axis ? Math.max(bar.startMs, axis.startMs) : 0;
202
+ const drawnEndMs = bar && axis ? Math.max(drawnStartMs, Math.min(bar.endMs, axis.endMs)) : drawnStartMs;
203
+ const retried = isRetried(invocation);
204
+ const retrying = retried && status === INVOCATION_STATUS.RUNNING;
205
+ const batch = row.batch;
206
+ const rowClasses = [
207
+ "mthds-run-timeline-row",
208
+ `mthds-run-timeline-row--${status}`,
209
+ retrying && "mthds-run-timeline-row--retrying",
210
+ retried && (status === INVOCATION_STATUS.SUCCEEDED || status === INVOCATION_STATUS.SKIPPED) && "mthds-run-timeline-row--recovered",
211
+ invocation.degradation && "mthds-run-timeline-row--degraded",
212
+ row.keptVisible && "mthds-run-timeline-row--kept"
213
+ ].filter(Boolean).join(" ");
214
+ const barClasses = [
215
+ "mthds-run-timeline-bar",
216
+ batch && "mthds-run-timeline-bar--batch",
217
+ (bar == null ? void 0 : bar.growing) && "mthds-run-timeline-bar--growing",
218
+ (bar == null ? void 0 : bar.openEnded) && "mthds-run-timeline-bar--open-ended"
219
+ ].filter(Boolean).join(" ");
220
+ let toggleLabel = "";
221
+ if (batch) {
222
+ toggleLabel = batch.expanded ? `Collapse the ${batch.total} items of ${invocation.pipe_code}` : `Expand the ${batch.total} items of ${invocation.pipe_code}`;
223
+ }
224
+ return /* @__PURE__ */ jsxs(
225
+ "li",
226
+ {
227
+ className: rowClasses,
228
+ "data-path": row.path,
229
+ "data-status": status,
230
+ title: rowTitle(row, times, bar),
231
+ children: [
232
+ /* @__PURE__ */ jsxs(
233
+ "div",
234
+ {
235
+ className: "mthds-run-timeline-name",
236
+ style: { paddingLeft: `calc(${row.depth} * var(--mthds-run-timeline-indent))` },
237
+ children: [
238
+ batch ? /* @__PURE__ */ jsx(
239
+ "button",
240
+ {
241
+ type: "button",
242
+ className: "mthds-run-timeline-toggle",
243
+ "aria-expanded": batch.expanded,
244
+ "aria-label": toggleLabel,
245
+ onClick: () => onToggleBatch(row.path, !batch.expanded),
246
+ children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: batch.expanded ? "\u25BE" : "\u25B8" })
247
+ }
248
+ ) : /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-toggle-spacer", "aria-hidden": "true" }),
249
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-dot", "aria-hidden": "true" }),
250
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-code", children: invocation.pipe_code }),
251
+ row.placeLabel && /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-place", children: row.placeLabel }),
252
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-sr", children: `, ${status}` })
253
+ ]
254
+ }
255
+ ),
256
+ /* @__PURE__ */ jsx("div", { className: "mthds-run-timeline-track", children: bar && axis && /* @__PURE__ */ jsxs(
257
+ "span",
258
+ {
259
+ className: barClasses,
260
+ style: {
261
+ left: axisShare(drawnStartMs - axis.startMs),
262
+ width: axisShare(drawnEndMs - drawnStartMs)
263
+ },
264
+ children: [
265
+ batch && /* @__PURE__ */ jsx(BatchStrip, { batch }),
266
+ /* @__PURE__ */ jsx(FailureTick, { atMs: times.failedMs, startMs: drawnStartMs, endMs: drawnEndMs })
267
+ ]
268
+ }
269
+ ) }),
270
+ /* @__PURE__ */ jsxs("div", { className: "mthds-run-timeline-meta", children: [
271
+ retried && /* @__PURE__ */ jsxs("span", { className: "mthds-run-timeline-badge mthds-run-timeline-badge--retry", children: [
272
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u21BB " }),
273
+ retrying ? `attempt ${invocation.attempts}` : `${invocation.attempts} attempts`
274
+ ] }),
275
+ invocation.degradation && /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-badge mthds-run-timeline-badge--stuck", children: "stuck" }),
276
+ batch && !batch.expanded && batch.hiddenItemCount > 0 && /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-sr", children: `, ${batch.hiddenItemCount} items hidden` }),
277
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-detail", children: rowDetailText(row, bar) })
278
+ ] })
279
+ ]
280
+ }
281
+ );
282
+ });
283
+ function RunTimeline({
284
+ snapshot,
285
+ theme = GRAPH_THEME_MODE.SYSTEM,
286
+ systemTheme,
287
+ paletteColors,
288
+ now,
289
+ live = true,
290
+ wideBatchThreshold,
291
+ className
292
+ }) {
293
+ const held = useHeldSnapshot(snapshot);
294
+ const streamKey = progressStreamKey(held);
295
+ const environmentTheme = useSystemTheme(theme === GRAPH_THEME_MODE.SYSTEM ? systemTheme : theme);
296
+ const resolvedTheme = theme === GRAPH_THEME_MODE.SYSTEM ? environmentTheme : theme;
297
+ const paletteStyle = React.useMemo(
298
+ () => __spreadValues(__spreadValues({}, getPaletteForTheme(resolvedTheme)), paletteColors),
299
+ [resolvedTheme, paletteColors]
300
+ );
301
+ const [expansion, setExpansion] = React.useState({ key: streamKey, batches: EMPTY_EXPANSION });
302
+ const expandedBatches = expansion.key === streamKey ? expansion.batches : EMPTY_EXPANSION;
303
+ const toggleBatch = React.useCallback(
304
+ (path, expanded) => {
305
+ setExpansion((previous) => ({
306
+ key: streamKey,
307
+ batches: __spreadProps(__spreadValues({}, previous.key === streamKey ? previous.batches : EMPTY_EXPANSION), {
308
+ [path]: expanded
309
+ })
310
+ }));
311
+ },
312
+ [streamKey]
313
+ );
314
+ const rows = React.useMemo(
315
+ () => buildTimelineRows(held, { expandedBatches, wideBatchThreshold }),
316
+ [held, expandedBatches, wideBatchThreshold]
317
+ );
318
+ const times = React.useMemo(() => snapshotTimes(held), [held]);
319
+ const drawnRows = React.useMemo(
320
+ () => rows.map((row) => {
321
+ var _a;
322
+ const rowTimes = (_a = times.invocations.get(row.path)) != null ? _a : invocationTimes(row.invocation);
323
+ return { row, times: rowTimes, followsClock: barFollowsClock(row.invocation, rowTimes) };
324
+ }),
325
+ [rows, times]
326
+ );
327
+ const clockFollowed = drawnRows.some((drawn) => drawn.followsClock);
328
+ const { nowMs, ticking } = useReadingClock(held, streamKey, now, live, clockFollowed);
329
+ const axis = timelineWindowAt(times, nowMs);
330
+ const [axisTrackRef, tickBudget] = useTickBudget();
331
+ const ticks = axis ? timelineTicks(axis, tickBudget) : [];
332
+ const bodyStyle = axis ? { [AXIS_SPAN_VAR]: cssNumber(axis.endMs - axis.startMs) } : void 0;
333
+ const containerClasses = [
334
+ "mthds-run-timeline",
335
+ `mthds-run-timeline--${resolvedTheme}`,
336
+ ticking && "mthds-run-timeline--self-clocked",
337
+ className
338
+ ].filter(Boolean).join(" ");
339
+ return /* @__PURE__ */ jsxs(
340
+ "section",
341
+ {
342
+ className: containerClasses,
343
+ style: paletteStyle,
344
+ "aria-label": "Run progress",
345
+ "data-run-status": held.status,
346
+ "data-version": held.version,
347
+ children: [
348
+ /* @__PURE__ */ jsxs("header", { className: "mthds-run-timeline-header", children: [
349
+ /* @__PURE__ */ jsx(
350
+ "span",
351
+ {
352
+ className: `mthds-run-timeline-status mthds-run-timeline-status--${held.status}`,
353
+ "data-testid": "run-timeline-status",
354
+ children: wordFor(RUN_STATUS_WORD, held.status)
355
+ }
356
+ ),
357
+ held.mode === PROGRESS_MODE.DRY && /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-mode", children: "Dry run" }),
358
+ /* @__PURE__ */ jsx("p", { className: "mthds-run-timeline-summary", "aria-live": "polite", children: held.summary })
359
+ ] }),
360
+ held.degradation && /* @__PURE__ */ jsx("p", { className: "mthds-run-timeline-degradation", role: "status", children: held.degradation.message }),
361
+ rows.length === 0 ? (
362
+ // A run that ended with nothing to draw, failed or canceled before its
363
+ // first invocation started, is waiting for nothing.
364
+ /* @__PURE__ */ jsx("p", { className: "mthds-run-timeline-empty", children: isRunEnded(held.status) ? "No progress was recorded." : "Nothing has started yet." })
365
+ ) : /* @__PURE__ */ jsxs("div", { className: "mthds-run-timeline-body", style: bodyStyle, children: [
366
+ axis && /* @__PURE__ */ jsxs("div", { className: "mthds-run-timeline-axis", "aria-hidden": "true", children: [
367
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-axis-spacer" }),
368
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-axis-track", ref: axisTrackRef, children: ticks.map((tick) => /* @__PURE__ */ jsx(
369
+ "span",
370
+ {
371
+ className: [
372
+ "mthds-run-timeline-tick",
373
+ tick.percent === 0 && "mthds-run-timeline-tick--first",
374
+ tick.percent > TICK_RIGHT_ALIGN_PERCENT && "mthds-run-timeline-tick--last"
375
+ ].filter(Boolean).join(" "),
376
+ style: { left: `${tick.percent}%` },
377
+ children: tick.label
378
+ },
379
+ tick.offsetMs
380
+ )) }),
381
+ /* @__PURE__ */ jsx("span", { className: "mthds-run-timeline-axis-spacer" })
382
+ ] }),
383
+ /* @__PURE__ */ jsx("ol", { className: "mthds-run-timeline-rows", children: drawnRows.map(({ row, times: rowTimes, followsClock }) => /* @__PURE__ */ jsx(
384
+ TimelineRowView,
385
+ {
386
+ row,
387
+ times: rowTimes,
388
+ axis: followsClock ? axis : times.recorded,
389
+ nowMs: followsClock ? nowMs : null,
390
+ onToggleBatch: toggleBatch
391
+ },
392
+ row.path
393
+ )) })
394
+ ] })
395
+ ]
396
+ }
397
+ );
398
+ }
399
+ export {
400
+ RunTimeline
401
+ };
402
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/timeline/react/index.ts","../../../src/timeline/react/RunTimeline.tsx"],"sourcesContent":["\"use client\";\n\n// The timeline's stylesheet is imported here and nowhere else: the entry's\n// specifier is the one tsup's `external` pattern matches and the one that\n// resolves from `dist/timeline/react/index.js` (see CLAUDE.md, \"CSS Packaging\").\nimport \"./RunTimeline.css\";\n\nexport { RunTimeline } from \"./RunTimeline\";\nexport type { RunTimelineProps } from \"./RunTimeline\";\n","\"use client\";\n\nimport * as React from \"react\";\nimport { getPaletteForTheme } from \"@graph/graphConfig\";\nimport { GRAPH_THEME_MODE, type GraphTheme, type GraphThemeMode } from \"@graph/types\";\nimport { useSystemTheme } from \"@graph/react/viewer/useSystemTheme\";\nimport {\n INVOCATION_STATUS,\n PROGRESS_MODE,\n isRunEnded,\n type ProgressInvocation,\n type ProgressSnapshot,\n type ProgressTimestamp,\n type RunProgressStatus,\n} from \"@timeline/progressSnapshot\";\nimport { fresherSnapshot, progressStreamKey } from \"@timeline/snapshotFreshness\";\nimport { buildTimelineRows, type TimelineBatch, type TimelineRow } from \"@timeline/timelineRows\";\nimport {\n barFollowsClock,\n formatClockTime,\n formatDuration,\n invocationBar,\n invocationTimes,\n readingClockMs,\n snapshotTimes,\n timelineTicks,\n timelineWindowAt,\n type InvocationTimes,\n type TimelineBar,\n type TimelineWindow,\n} from \"@timeline/timelineTime\";\n\nexport interface RunTimelineProps {\n /**\n * The run's progress snapshot, as the hosted progress contract defines it:\n * the component's only source of what ran. Hand it every snapshot you read;\n * the timeline keeps the fresher of the one it holds and the one it is given,\n * so an older read arriving late never rolls it back, and a snapshot showing\n * the run still going never replaces one showing it ended.\n */\n snapshot: ProgressSnapshot;\n /**\n * `dark`, `light`, or `system` to follow the environment, as `GraphViewer`'s\n * theme mode. Defaults to `system`.\n */\n theme?: GraphThemeMode;\n /** The environment's theme when the host detects it itself, as on `GraphViewer`. */\n systemTheme?: GraphTheme;\n /**\n * Sparse overrides of the palette, merged per key over the resolved theme's,\n * as `GraphViewer`'s `config.paletteColors`: `{ \"--color-success\": \"#16a34a\" }`.\n * The palette is set inline on the timeline's container, so this is how a host\n * changes a colour: a `--color-*` or `--surface-*` declared on the container's\n * class in a stylesheet loses to the inline value.\n */\n paletteColors?: Record<string, string>;\n /**\n * Pins the reading clock: the moment running bars grow to, as a timestamp or\n * epoch milliseconds. A host that keeps its own trusted clock, or a replay,\n * sets it; the timeline then never ticks on its own.\n */\n now?: ProgressTimestamp | number;\n /**\n * While the run goes on and `now` is unset, keep running bars growing between\n * snapshots: the timeline advances its reading clock from the snapshot's\n * `assembled_at` by the time elapsed on this page since the snapshot arrived,\n * so it never trusts the page's clock to agree with the server's. `false`\n * draws each snapshot as of its `assembled_at`. Defaults to `true`.\n */\n live?: boolean;\n /** A batch holding more items than this starts collapsed. Defaults to `DEFAULT_WIDE_BATCH_THRESHOLD`. */\n wideBatchThreshold?: number;\n /** Appended to the container's class list. */\n className?: string;\n}\n\nconst CLOCK_TICK_MS = 250;\n/** Past this point on the axis a tick's label ends at its tick rather than centring on it. */\nconst TICK_RIGHT_ALIGN_PERCENT = 92;\n/** The room one tick's label takes on the axis, which sets how many ticks fit. */\nconst TICK_SPACING_PX = 64;\nconst DEFAULT_MAX_TICKS = 6;\n\n/**\n * How many tick intervals the axis has room for, from its measured width. Until\n * it is measured, and where nothing measures it, the default holds.\n */\nfunction useTickBudget(): [React.RefCallback<HTMLElement>, number] {\n const [budget, setBudget] = React.useState(DEFAULT_MAX_TICKS);\n const observer = React.useRef<ResizeObserver | null>(null);\n const ref = React.useCallback((element: HTMLElement | null) => {\n observer.current?.disconnect();\n observer.current = null;\n if (!element || typeof ResizeObserver === \"undefined\") return;\n observer.current = new ResizeObserver((entries) => {\n const width = entries[0]?.contentRect.width ?? 0;\n if (width > 0) setBudget(Math.max(1, Math.floor(width / TICK_SPACING_PX)));\n });\n observer.current.observe(element);\n }, []);\n return [ref, budget];\n}\nconst EMPTY_EXPANSION: Readonly<Record<string, boolean>> = Object.freeze({});\n\nconst RUN_STATUS_WORD: Record<RunProgressStatus, string> = {\n pending: \"Pending\",\n running: \"Running\",\n succeeded: \"Succeeded\",\n failed: \"Failed\",\n canceled: \"Canceled\",\n};\n\n/**\n * A status word, or the raw value for a word this version does not know: a\n * reader keeps drawing what a later contract adds rather than failing on it.\n * An invocation's status needs no table: its words are drawn as they are.\n */\nfunction wordFor<K extends string>(table: Record<K, string>, value: string): string {\n return Object.prototype.hasOwnProperty.call(table, value) ? table[value as K] : value;\n}\n\n/**\n * The snapshot to draw: of the one held and the one just passed, the fresher by\n * the contract's rule. React's derived-state pattern rather than an effect, so\n * the render that receives a stale snapshot never paints it, not even once.\n */\nfunction useHeldSnapshot(snapshot: ProgressSnapshot): ProgressSnapshot {\n const [state, setState] = React.useState({ given: snapshot, held: snapshot });\n if (state.given !== snapshot) {\n const held = fresherSnapshot(state.held, snapshot);\n setState({ given: snapshot, held });\n return held;\n }\n return state.held;\n}\n\n/** What the clock last showed, for which stream and which reading, and whether it ticked on its own. */\ninterface SelfClock {\n stream: string;\n base: number | null;\n ticking: boolean;\n ms: number | null;\n}\n\n/**\n * The reading clock, in epoch milliseconds. Pinned by `now` when the host sets\n * it; otherwise the snapshot's `assembled_at`, advanced while the run goes on by\n * the time this page has measured since. It ticks only while a drawn bar\n * follows it (`followsClock`): with none, a tick would redraw nothing that moves.\n *\n * The self-ticking clock never goes back within one stream of progress. A\n * snapshot that took long to arrive can carry an `assembled_at` older than the\n * moment the clock already shows; the clock then carries on from what it\n * showed, the later of the two readings, rather than jumping back, so no running\n * bar and no axis shrinks and grows again. That floor comes only from a clock\n * that was itself ticking in the same stream: a moment the host pinned with\n * `now`, or a clock standing still, is not one this clock reached on its own,\n * so a clock that starts ticking starts from its snapshot's reading. A snapshot\n * of another stream starts the clock afresh from its own reading.\n */\nfunction useReadingClock(\n held: ProgressSnapshot,\n stream: string,\n now: ProgressTimestamp | number | undefined,\n live: boolean,\n followsClock: boolean,\n): { nowMs: number | null; ticking: boolean } {\n const base = React.useMemo(() => readingClockMs(held, now), [held, now]);\n const ticking =\n live && now === undefined && base !== null && !isRunEnded(held.status) && followsClock;\n const [clock, setClock] = React.useState<SelfClock>({ stream, base, ticking, ms: base });\n let shown = clock;\n if (clock.stream !== stream || clock.base !== base || clock.ticking !== ticking) {\n // React's derived-state pattern, as in `useHeldSnapshot`: the render that\n // receives the new reading already shows the clock it starts from.\n const floor = ticking && clock.ticking && clock.stream === stream ? clock.ms : null;\n const ms = base !== null && floor !== null ? Math.max(base, floor) : base;\n shown = { stream, base, ticking, ms };\n setClock(shown);\n }\n React.useEffect(() => {\n if (!ticking) return undefined;\n let previous = performance.now();\n const timer = window.setInterval(() => {\n const current = performance.now();\n const step = current - previous;\n previous = current;\n setClock((state) =>\n state.stream === stream && state.base === base && state.ticking && state.ms !== null\n ? { ...state, ms: state.ms + step }\n : state,\n );\n }, CLOCK_TICK_MS);\n return () => window.clearInterval(timer);\n }, [ticking, stream, base]);\n return { nowMs: ticking ? shown.ms : base, ticking };\n}\n\nfunction batchCountsText(batch: TimelineBatch): string | null {\n const counts = batch.counts;\n if (!counts) return null;\n let text = `${counts.done} of ${counts.total} done`;\n if (counts.running > 0) text += ` · ${counts.running} running`;\n if (counts.failed > 0) text += ` · ${counts.failed} failed`;\n return text;\n}\n\nfunction rowDetailText(row: TimelineRow, bar: TimelineBar | null): string {\n const batchText = row.batch ? batchCountsText(row.batch) : null;\n if (batchText) return batchText;\n const status = row.invocation.status;\n if (status === INVOCATION_STATUS.SCHEDULED) return \"scheduled\";\n if (status === INVOCATION_STATUS.SKIPPED) return \"skipped\";\n if (status === INVOCATION_STATUS.CANCELED) return \"canceled\";\n return bar ? formatDuration(bar.endMs - bar.startMs) : \"\";\n}\n\nfunction isRetried(invocation: ProgressInvocation): boolean {\n return invocation.attempts !== undefined && invocation.attempts > 1;\n}\n\n/** The row's tooltip: everything the snapshot says of the invocation, in words. */\nfunction rowTitle(row: TimelineRow, times: InvocationTimes, bar: TimelineBar | null): string {\n const invocation = row.invocation;\n const lines = [`${invocation.pipe_ref} · ${invocation.pipe_type}`];\n let state: string = invocation.status;\n if (times.startedMs !== null) state += `, started ${formatClockTime(times.startedMs)}`;\n if (times.endedMs !== null) state += `, ended ${formatClockTime(times.endedMs)}`;\n if (bar) state += ` (${formatDuration(bar.endMs - bar.startMs)})`;\n lines.push(state.charAt(0).toUpperCase() + state.slice(1));\n if (row.outcome) {\n // Only a condition that resolved took an outcome. A branch read off its path,\n // as every branch of a dry run is, is only the branch for that outcome.\n const outcome =\n row.outcome.key === null ? \"the default outcome\" : `the outcome ${row.outcome.key}`;\n lines.push(row.outcome.fromResolution ? `Took ${outcome}` : `The branch for ${outcome}`);\n }\n if (invocation.condition) {\n const selected = invocation.condition.selected_outcome;\n lines.push(selected === null ? \"Chose its default outcome\" : `Chose the outcome ${selected}`);\n }\n const counts = row.batch?.counts;\n if (counts) {\n lines.push(\n `${counts.total} items: ${counts.done} done, ${counts.running} running, ${counts.failed} failed`,\n );\n }\n if (invocation.skip_reason) lines.push(`Skipped: ${invocation.skip_reason}`);\n if (isRetried(invocation)) lines.push(`Tried ${invocation.attempts} times`);\n if (invocation.last_failure) {\n const at = times.failedMs;\n lines.push(\n `Last failure${at === null ? \"\" : ` at ${formatClockTime(at)}`}: ${invocation.last_failure.message}`,\n );\n }\n if (invocation.degradation) lines.push(`Not progressing: ${invocation.degradation.message}`);\n return lines.join(\"\\n\");\n}\n\ninterface BatchStripProps {\n batch: TimelineBatch;\n}\n\n/** The thin strip of a batch's item states, inside its bar, one cell per run of equal states. */\nfunction BatchStrip({ batch }: BatchStripProps) {\n if (batch.strip.length === 0) return null;\n return (\n <span className=\"mthds-run-timeline-strip\" aria-hidden=\"true\">\n {batch.strip.map((cell) => (\n <span\n key={cell.firstItem}\n className={`mthds-run-timeline-strip-cell mthds-run-timeline-strip-cell--${cell.status}`}\n style={{ flexGrow: cell.count }}\n />\n ))}\n </span>\n );\n}\n\n/**\n * The axis's span in milliseconds, which the timeline sets on its body: a bar's\n * place is an offset in milliseconds from the axis's start, and CSS turns it\n * into a share of the track against this span. Set by the component, not a\n * layout hook for a host.\n */\nconst AXIS_SPAN_VAR = \"--mthds-run-timeline-axis-span\";\n\n/** A number as CSS reads it: rounded to the microsecond, so never in exponent notation. */\nfunction cssNumber(value: number): string {\n return String(Math.round(value * 1000) / 1000);\n}\n\n/** A stretch of the axis, in milliseconds, as a share of the track's width. */\nfunction axisShare(ms: number): string {\n return `calc(${cssNumber(ms)} * 100% / var(${AXIS_SPAN_VAR}))`;\n}\n\ninterface FailureTickProps {\n /** When the last failure happened, when that is known. */\n atMs: number | null;\n /** The bar as drawn. */\n startMs: number;\n endMs: number;\n}\n\n/** Where the invocation's last failure happened, marked on its bar. */\nfunction FailureTick({ atMs, startMs, endMs }: FailureTickProps) {\n if (atMs === null || atMs < startMs || atMs > endMs) return null;\n const span = endMs - startMs;\n const percent = span > 0 ? ((atMs - startMs) / span) * 100 : 0;\n return (\n <span\n className=\"mthds-run-timeline-failure-tick\"\n style={{ left: `${percent}%` }}\n aria-hidden=\"true\"\n />\n );\n}\n\ninterface TimelineRowViewProps {\n row: TimelineRow;\n /** The invocation's moments, parsed once per snapshot. */\n times: InvocationTimes;\n /**\n * The axis the row's bar is measured against, `null` while nothing has\n * started. A row whose bar follows the clock (`barFollowsClock`) is handed the\n * live axis and the reading clock. Every other row is handed the snapshot's\n * recorded span, which starts where the live axis starts and holds still while\n * the clock ticks, and no clock, so its props, and with them its render, stay\n * as they are until the next snapshot. Either way the bar's place is an offset\n * from the axis's start, which CSS turns into a share of the track.\n */\n axis: TimelineWindow | null;\n nowMs: number | null;\n onToggleBatch: (path: string, expanded: boolean) => void;\n}\n\nconst TimelineRowView = React.memo(function TimelineRowView({\n row,\n times,\n axis,\n nowMs,\n onToggleBatch,\n}: TimelineRowViewProps) {\n const invocation = row.invocation;\n const status = invocation.status;\n const bar = axis ? invocationBar(invocation, axis, nowMs, times) : null;\n // The bar as drawn, kept inside the axis it is measured against.\n const drawnStartMs = bar && axis ? Math.max(bar.startMs, axis.startMs) : 0;\n const drawnEndMs =\n bar && axis ? Math.max(drawnStartMs, Math.min(bar.endMs, axis.endMs)) : drawnStartMs;\n const retried = isRetried(invocation);\n const retrying = retried && status === INVOCATION_STATUS.RUNNING;\n const batch = row.batch;\n\n const rowClasses = [\n \"mthds-run-timeline-row\",\n `mthds-run-timeline-row--${status}`,\n retrying && \"mthds-run-timeline-row--retrying\",\n retried &&\n (status === INVOCATION_STATUS.SUCCEEDED || status === INVOCATION_STATUS.SKIPPED) &&\n \"mthds-run-timeline-row--recovered\",\n invocation.degradation && \"mthds-run-timeline-row--degraded\",\n row.keptVisible && \"mthds-run-timeline-row--kept\",\n ]\n .filter(Boolean)\n .join(\" \");\n\n const barClasses = [\n \"mthds-run-timeline-bar\",\n batch && \"mthds-run-timeline-bar--batch\",\n bar?.growing && \"mthds-run-timeline-bar--growing\",\n bar?.openEnded && \"mthds-run-timeline-bar--open-ended\",\n ]\n .filter(Boolean)\n .join(\" \");\n\n let toggleLabel = \"\";\n if (batch) {\n toggleLabel = batch.expanded\n ? `Collapse the ${batch.total} items of ${invocation.pipe_code}`\n : `Expand the ${batch.total} items of ${invocation.pipe_code}`;\n }\n\n return (\n <li\n className={rowClasses}\n data-path={row.path}\n data-status={status}\n title={rowTitle(row, times, bar)}\n >\n <div\n className=\"mthds-run-timeline-name\"\n style={{ paddingLeft: `calc(${row.depth} * var(--mthds-run-timeline-indent))` }}\n >\n {batch ? (\n <button\n type=\"button\"\n className=\"mthds-run-timeline-toggle\"\n aria-expanded={batch.expanded}\n aria-label={toggleLabel}\n onClick={() => onToggleBatch(row.path, !batch.expanded)}\n >\n <span aria-hidden=\"true\">{batch.expanded ? \"▾\" : \"▸\"}</span>\n </button>\n ) : (\n <span className=\"mthds-run-timeline-toggle-spacer\" aria-hidden=\"true\" />\n )}\n <span className=\"mthds-run-timeline-dot\" aria-hidden=\"true\" />\n <span className=\"mthds-run-timeline-code\">{invocation.pipe_code}</span>\n {row.placeLabel && <span className=\"mthds-run-timeline-place\">{row.placeLabel}</span>}\n <span className=\"mthds-run-timeline-sr\">{`, ${status}`}</span>\n </div>\n <div className=\"mthds-run-timeline-track\">\n {bar && axis && (\n <span\n className={barClasses}\n style={{\n left: axisShare(drawnStartMs - axis.startMs),\n width: axisShare(drawnEndMs - drawnStartMs),\n }}\n >\n {batch && <BatchStrip batch={batch} />}\n <FailureTick atMs={times.failedMs} startMs={drawnStartMs} endMs={drawnEndMs} />\n </span>\n )}\n </div>\n <div className=\"mthds-run-timeline-meta\">\n {retried && (\n <span className=\"mthds-run-timeline-badge mthds-run-timeline-badge--retry\">\n <span aria-hidden=\"true\">↻ </span>\n {retrying ? `attempt ${invocation.attempts}` : `${invocation.attempts} attempts`}\n </span>\n )}\n {invocation.degradation && (\n <span className=\"mthds-run-timeline-badge mthds-run-timeline-badge--stuck\">stuck</span>\n )}\n {batch && !batch.expanded && batch.hiddenItemCount > 0 && (\n <span className=\"mthds-run-timeline-sr\">{`, ${batch.hiddenItemCount} items hidden`}</span>\n )}\n <span className=\"mthds-run-timeline-detail\">{rowDetailText(row, bar)}</span>\n </div>\n </li>\n );\n});\n\n/**\n * A run's progress as a timeline, drawn from its progress snapshot alone: one\n * row per invocation, nested under its controller by its path and labelled with\n * its pipe code, and a bar on a shared time axis from the invocation's start to\n * its end, which grows while it runs.\n *\n * Nothing is drawn in advance: a row appears when the run reaches its\n * invocation, so there is no method graph behind it and no batch width is ever\n * guessed. A batch is one collapsible row carrying its counts and a strip of its\n * items' states; a wide one starts collapsed and keeps its failed items in view.\n * A condition's branch carries the outcome it took. A retried invocation shows\n * its attempts and where its last failure happened, and the invocation where\n * the run is stuck says so.\n *\n * Rows are keyed by path, so repainting with a newer snapshot keeps each drawn\n * row in place and what the reader expanded expanded. While the clock ticks,\n * only the axis and the rows whose bars follow the clock are drawn again.\n */\nexport function RunTimeline({\n snapshot,\n theme = GRAPH_THEME_MODE.SYSTEM,\n systemTheme,\n paletteColors,\n now,\n live = true,\n wideBatchThreshold,\n className,\n}: RunTimelineProps) {\n const held = useHeldSnapshot(snapshot);\n const streamKey = progressStreamKey(held);\n\n // A fixed theme is handed to the hook as if injected, so it registers no\n // `prefers-color-scheme` listener whose answer would be thrown away.\n const environmentTheme = useSystemTheme(theme === GRAPH_THEME_MODE.SYSTEM ? systemTheme : theme);\n const resolvedTheme: GraphTheme = theme === GRAPH_THEME_MODE.SYSTEM ? environmentTheme : theme;\n // The theme's palette is the base; the host's `paletteColors` win per key, as on `GraphViewer`.\n const paletteStyle = React.useMemo(\n () => ({ ...getPaletteForTheme(resolvedTheme), ...paletteColors }) as React.CSSProperties,\n [resolvedTheme, paletteColors],\n );\n\n // What the reader expanded belongs to one stream of progress: another starts afresh.\n const [expansion, setExpansion] = React.useState<{\n key: string;\n batches: Readonly<Record<string, boolean>>;\n }>({ key: streamKey, batches: EMPTY_EXPANSION });\n const expandedBatches = expansion.key === streamKey ? expansion.batches : EMPTY_EXPANSION;\n const toggleBatch = React.useCallback(\n (path: string, expanded: boolean) => {\n setExpansion((previous) => ({\n key: streamKey,\n batches: {\n ...(previous.key === streamKey ? previous.batches : EMPTY_EXPANSION),\n [path]: expanded,\n },\n }));\n },\n [streamKey],\n );\n\n const rows = React.useMemo(\n () => buildTimelineRows(held, { expandedBatches, wideBatchThreshold }),\n [held, expandedBatches, wideBatchThreshold],\n );\n // Every timestamp of the snapshot, parsed once: the clock's ticks redraw from these.\n const times = React.useMemo(() => snapshotTimes(held), [held]);\n const drawnRows = React.useMemo(\n () =>\n rows.map((row) => {\n const rowTimes = times.invocations.get(row.path) ?? invocationTimes(row.invocation);\n return { row, times: rowTimes, followsClock: barFollowsClock(row.invocation, rowTimes) };\n }),\n [rows, times],\n );\n // A bar that follows the clock has started, so whenever one does there is an axis too.\n const clockFollowed = drawnRows.some((drawn) => drawn.followsClock);\n const { nowMs, ticking } = useReadingClock(held, streamKey, now, live, clockFollowed);\n const axis = timelineWindowAt(times, nowMs);\n const [axisTrackRef, tickBudget] = useTickBudget();\n const ticks = axis ? timelineTicks(axis, tickBudget) : [];\n const bodyStyle = axis\n ? ({ [AXIS_SPAN_VAR]: cssNumber(axis.endMs - axis.startMs) } as React.CSSProperties)\n : undefined;\n\n const containerClasses = [\n \"mthds-run-timeline\",\n `mthds-run-timeline--${resolvedTheme}`,\n ticking && \"mthds-run-timeline--self-clocked\",\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <section\n className={containerClasses}\n style={paletteStyle}\n aria-label=\"Run progress\"\n data-run-status={held.status}\n data-version={held.version}\n >\n <header className=\"mthds-run-timeline-header\">\n <span\n className={`mthds-run-timeline-status mthds-run-timeline-status--${held.status}`}\n data-testid=\"run-timeline-status\"\n >\n {wordFor(RUN_STATUS_WORD, held.status)}\n </span>\n {held.mode === PROGRESS_MODE.DRY && (\n <span className=\"mthds-run-timeline-mode\">Dry run</span>\n )}\n <p className=\"mthds-run-timeline-summary\" aria-live=\"polite\">\n {held.summary}\n </p>\n </header>\n {held.degradation && (\n <p className=\"mthds-run-timeline-degradation\" role=\"status\">\n {held.degradation.message}\n </p>\n )}\n {rows.length === 0 ? (\n // A run that ended with nothing to draw, failed or canceled before its\n // first invocation started, is waiting for nothing.\n <p className=\"mthds-run-timeline-empty\">\n {isRunEnded(held.status) ? \"No progress was recorded.\" : \"Nothing has started yet.\"}\n </p>\n ) : (\n <div className=\"mthds-run-timeline-body\" style={bodyStyle}>\n {axis && (\n <div className=\"mthds-run-timeline-axis\" aria-hidden=\"true\">\n <span className=\"mthds-run-timeline-axis-spacer\" />\n <span className=\"mthds-run-timeline-axis-track\" ref={axisTrackRef}>\n {ticks.map((tick) => (\n <span\n key={tick.offsetMs}\n className={[\n \"mthds-run-timeline-tick\",\n tick.percent === 0 && \"mthds-run-timeline-tick--first\",\n tick.percent > TICK_RIGHT_ALIGN_PERCENT && \"mthds-run-timeline-tick--last\",\n ]\n .filter(Boolean)\n .join(\" \")}\n style={{ left: `${tick.percent}%` }}\n >\n {tick.label}\n </span>\n ))}\n </span>\n <span className=\"mthds-run-timeline-axis-spacer\" />\n </div>\n )}\n <ol className=\"mthds-run-timeline-rows\">\n {drawnRows.map(({ row, times: rowTimes, followsClock }) => (\n <TimelineRowView\n key={row.path}\n row={row}\n times={rowTimes}\n axis={followsClock ? axis : times.recorded}\n nowMs={followsClock ? nowMs : null}\n onToggleBatch={toggleBatch}\n />\n ))}\n </ol>\n </div>\n )}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,OAAO;;;ACHP,YAAY,WAAW;AA2Qf,cA0HF,YA1HE;AAjMR,IAAM,gBAAgB;AAEtB,IAAM,2BAA2B;AAEjC,IAAM,kBAAkB;AACxB,IAAM,oBAAoB;AAM1B,SAAS,gBAA0D;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAU,eA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1018
1018
  declare function nodeWidth(n: GraphNode): number;
1019
1019
  declare function nodeHeight(n: GraphNode): number;
1020
1020
 
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 };
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, 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 PresenceMarker as b, toolbarSide as b0, 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.34.1",
3
+ "version": "0.35.0",
4
4
  "description": "Shared graph rendering logic for MTHDS method visualization",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -53,6 +53,15 @@
53
53
  "import": "./dist/static-graph/index.js",
54
54
  "types": "./dist/static-graph/index.d.ts"
55
55
  },
56
+ "./timeline": {
57
+ "import": "./dist/timeline/index.js",
58
+ "types": "./dist/timeline/index.d.ts"
59
+ },
60
+ "./timeline/react": {
61
+ "import": "./dist/timeline/react/index.js",
62
+ "types": "./dist/timeline/react/index.d.ts"
63
+ },
64
+ "./timeline/react/RunTimeline.css": "./dist/timeline/react/RunTimeline.css",
56
65
  "./tailwind.css": "./dist/styles/tailwind.css",
57
66
  "./form-kernel.css": "./dist/styles/form-kernel.css"
58
67
  },