@workflow/web 5.1.1 → 5.2.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.
@@ -1,6 +1,6 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports, A as useNavigate, z as Link, w as withComponentProps, D as useParams, B as useSearchParams } from "./index-BS6T0Zjc.js";
2
2
  import { V as parseStepName, w as parseWorkflowName, Y as findStartHookCreation, q as ChevronUp, X, C as CircleAlert, _ as Circle, y as CircleX, $ as ErrorCard, a0 as format, R as ResolveHookModal, U as ErrorBoundary, u as unwrapOrThrow, W as WorkflowWebAPIError, L as unwrapServerActionResult, a1 as useInfiniteList, A as Alert, c as AlertTitle, d as AlertDescription, J as DialogPortal, K as DialogOverlay, a2 as createDialogScope, B as Dialog, a3 as DialogTrigger, F as DialogContent, H as DialogTitle, I as DialogDescription, G as DialogClose, a4 as LAYOUT, N as useOptimisticSearchParams, a5 as wakeUpRun, r as resumeHook, g as getErrorTitle, e as getErrorMessage, a as Skeleton$1, a6 as RunActionsButtons, x as StatusBadge, h as CopyableText, b as RelativeTime, T as Tabs, O as TabsList, P as TabsTrigger, Q as TabsContent, a7 as cancelRun, a8 as recreateRun } from "./url-state-DtiYSmtM.js";
3
- import { c as createLucideIcon, U as isSlotEventId, X as classifyEntityEvent, Y as TERMINAL_EVENT_CLASSES, Z as isSealedNoopEvent$1, $ as formatDurationPrecise, a0 as isStepEventType, a1 as isWaitEventType, a2 as isHookLifecycleEventType, a3 as isEncryptedMarker, a4 as isTerminalStepEventType, a5 as isRunCreationEvent, a6 as cn, a7 as CopyButton, a8 as CopyableDataBlock, a9 as CollapsibleRoot, aa as CollapsibleTrigger, ab as CollapsibleContent, O as cva, ac as RESERVED_ATTRIBUTE_KEY_PREFIX, T as Tooltip, a as TooltipTrigger, ad as IconButton, b as TooltipContent, K as ChevronDown, ae as Spinner, B as Button, af as getEventDataRefFields, ag as Collapsible, ah as Skeleton, ai as DecryptClickContext, aj as Lock, ak as DataInspector, al as serializeForClipboard, am as useRowWindow, an as isSpanDimmedBySearch, ao as ROW_HEIGHT_PX, ap as getSpanDurationMs, aq as isSpanErrored, ar as isSpanCancelled, as as TooltipProvider, at as TimestampTooltip, au as ContextCardProvider, av as es, aw as Ui, ax as RunClickContext, ay as StreamClickContext, az as isExpiredMarker, aA as isDoStreamStep, aB as extractConversation, aC as EncryptedDataBlock, aD as hasEncryptedFields, h as useToast, aE as useSidebarDataOptional, aF as isTerminalWorkflowRunStatus, aG as useActiveSpan, aH as useSidebarData, aI as ActiveSpanProvider, aJ as useReducedMotion, aK as searchSpans, aL as computeRootBounds, aM as computeTimeMarkers, aN as clampViewportToRoot, aO as getHighResInMs, aP as scrollRowIntoView, aQ as TIMELINE_PADDING_PX, aR as Minimap, aS as Timeline, aT as TimelineHeader, aU as wheelZoomScaleFactor, aV as wheelDeltaToPixels, aW as SidebarDataProvider, aX as hydrateResourceIOAsync, aY as createStateResolver, aZ as deriveRunPayloadKeys, a_ as decodePayloadWithKey, a$ as stateSourceId, b0 as getWebRevivers, b1 as fetchHook, m as fetchEvents, N as fetchRun, b2 as fetchStep, b3 as hydrateResourceIO, b4 as fetchStreams, b5 as apiBase, b6 as fetchEvent, b7 as fetchEventsByCorrelationId, w as createContextScope, n as useComposedRefs, y as composeEventHandlers, e as cn$1, b8 as buttonVariants, b9 as Slot, l as ChevronRight, ba as isEncryptedData, bb as hydrateData, bc as decrypt, bd as getStreamImageType, be as SerializationFormat, bf as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, bg as getEncryptionKeyForRun, t as toast, bh as StreamViewerSkeleton, bi as StreamViewer } from "./mermaid-WFAXDIZX-CWiYj6ob.js";
3
+ import { c as createLucideIcon, U as isSlotEventId, X as classifyEntityEvent, Y as TERMINAL_EVENT_CLASSES, Z as isSealedNoopEvent$1, $ as formatDurationPrecise, a0 as isStepEventType, a1 as isWaitEventType, a2 as isHookLifecycleEventType, a3 as isEncryptedMarker, a4 as isTerminalStepEventType, a5 as isRunCreationEvent, a6 as cn, a7 as CopyButton, a8 as CopyableDataBlock, a9 as CollapsibleRoot, aa as CollapsibleTrigger, ab as CollapsibleContent, O as cva, ac as RESERVED_ATTRIBUTE_KEY_PREFIX, T as Tooltip, a as TooltipTrigger, ad as IconButton, b as TooltipContent, K as ChevronDown, ae as Spinner, af as getEventDataRefFields, ag as Collapsible, ah as Skeleton, ai as DecryptClickContext, aj as Lock, ak as DataInspector, al as serializeForClipboard, am as useRowWindow, an as isSpanDimmedBySearch, ao as ROW_HEIGHT_PX, ap as getSpanDurationMs, aq as isSpanErrored, ar as isSpanCancelled, as as TooltipProvider, at as TimestampTooltip, au as ContextCardProvider, av as es, aw as Ui, ax as RunClickContext, ay as StreamClickContext, az as isExpiredMarker, aA as isDoStreamStep, aB as extractConversation, aC as EncryptedDataBlock, aD as hasEncryptedFields, h as useToast, aE as useSidebarDataOptional, aF as isTerminalWorkflowRunStatus, B as Button, aG as useActiveSpan, aH as useSidebarData, aI as ActiveSpanProvider, aJ as useReducedMotion, aK as searchSpans, aL as computeRootBounds, aM as computeTimeMarkers, aN as clampViewportToRoot, aO as getHighResInMs, aP as scrollRowIntoView, aQ as TIMELINE_PADDING_PX, aR as Minimap, aS as Timeline, aT as TimelineHeader, aU as wheelZoomScaleFactor, aV as wheelDeltaToPixels, aW as SidebarDataProvider, aX as hydrateResourceIOAsync, aY as createStateResolver, aZ as deriveRunPayloadKeys, a_ as decodePayloadWithKey, a$ as stateSourceId, b0 as getWebRevivers, b1 as fetchHook, m as fetchEvents, N as fetchRun, b2 as fetchStep, b3 as hydrateResourceIO, b4 as fetchStreams, b5 as apiBase, b6 as fetchEvent, b7 as fetchEventsByCorrelationId, w as createContextScope, n as useComposedRefs, y as composeEventHandlers, e as cn$1, b8 as buttonVariants, b9 as Slot, l as ChevronRight, ba as isEncryptedData, bb as hydrateData, bc as decrypt, bd as getStreamImageType, be as SerializationFormat, bf as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, bg as getEncryptionKeyForRun, t as toast, bh as StreamViewerSkeleton, bi as StreamViewer } from "./mermaid-WFAXDIZX-CWiYj6ob.js";
4
4
  import { A as ArrowUpRight } from "./arrow-up-right-Cpa3Pdwo.js";
5
5
  /**
6
6
  * @license lucide-react v0.575.0 - ISC
@@ -1657,7 +1657,7 @@ function useAltHeld() {
1657
1657
  }, []);
1658
1658
  return { altHeld };
1659
1659
  }
1660
- function DetailPanelShell({ id, width, title, itemLabel, onPrev, onNext, onClose, children }) {
1660
+ function DetailPanelShell({ id, width, title, itemLabel, actions, onPrev, onNext, onClose, children }) {
1661
1661
  const asideRef = reactExports.useRef(null);
1662
1662
  const handlersRef = reactExports.useRef({ onPrev, onNext, onClose });
1663
1663
  handlersRef.current = { onPrev, onNext, onClose };
@@ -1681,7 +1681,7 @@ function DetailPanelShell({ id, width, title, itemLabel, onPrev, onNext, onClose
1681
1681
  window.addEventListener("keydown", onKeyDown);
1682
1682
  return () => window.removeEventListener("keydown", onKeyDown);
1683
1683
  }, []);
1684
- return jsxRuntimeExports.jsxs("aside", { ref: asideRef, id, className: "relative flex flex-col h-full max-h-full shrink-0 bg-background-100 border-l border-gray-alpha-400", style: { width: width.width }, children: [jsxRuntimeExports.jsx(DraggableBorder, { element: asideRef, position: "left", onWidthChange: width.resize, onReset: () => width.resize(PANEL_DEFAULT_WIDTH), "aria-label": `Resize ${itemLabel} details panel`, "aria-controls": id, "aria-valuemin": PANEL_MIN_WIDTH, "aria-valuemax": width.maxWidth, "aria-valuenow": Math.min(Math.max(Math.round(width.width), PANEL_MIN_WIDTH), width.maxWidth) }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 shrink-0 px-4 py-[7.5px]", children: [jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center gap-2 text-label-14 font-medium text-gray-1000", children: title }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate up", "aria-keyshortcuts": "K", onClick: onPrev, disabled: !onPrev, children: jsxRuntimeExports.jsx(ChevronUp, { className: "w-4 h-4" }) }) }), onPrev ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate up", jsxRuntimeExports.jsx(Kbd, { children: "K" })] }) : null] }), jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate down", "aria-keyshortcuts": "J", onClick: onNext, disabled: !onNext, children: jsxRuntimeExports.jsx(ChevronDown, { className: "w-4 h-4" }) }) }), onNext ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate down", jsxRuntimeExports.jsx(Kbd, { children: "J" })] }) : null] }), jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "w-px h-4 bg-gray-alpha-400 mx-1" }), jsxRuntimeExports.jsx(IconButton, { "aria-label": `Close ${itemLabel} details`, "aria-keyshortcuts": "Escape", onClick: onClose, children: jsxRuntimeExports.jsx(X, { className: "w-4 h-4" }) })] })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children })] });
1684
+ return jsxRuntimeExports.jsxs("aside", { ref: asideRef, id, className: "relative flex flex-col h-full max-h-full shrink-0 bg-background-100 border-l border-gray-alpha-400", style: { width: width.width }, children: [jsxRuntimeExports.jsx(DraggableBorder, { element: asideRef, position: "left", onWidthChange: width.resize, onReset: () => width.resize(PANEL_DEFAULT_WIDTH), "aria-label": `Resize ${itemLabel} details panel`, "aria-controls": id, "aria-valuemin": PANEL_MIN_WIDTH, "aria-valuemax": width.maxWidth, "aria-valuenow": Math.min(Math.max(Math.round(width.width), PANEL_MIN_WIDTH), width.maxWidth) }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 shrink-0 px-4 py-[7.5px]", children: [jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center gap-2 text-label-14 font-medium text-gray-1000", children: title }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [actions, jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate up", "aria-keyshortcuts": "K", onClick: onPrev, disabled: !onPrev, children: jsxRuntimeExports.jsx(ChevronUp, { className: "w-4 h-4" }) }) }), onPrev ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate up", jsxRuntimeExports.jsx(Kbd, { children: "K" })] }) : null] }), jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate down", "aria-keyshortcuts": "J", onClick: onNext, disabled: !onNext, children: jsxRuntimeExports.jsx(ChevronDown, { className: "w-4 h-4" }) }) }), onNext ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate down", jsxRuntimeExports.jsx(Kbd, { children: "J" })] }) : null] }), jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "w-px h-4 bg-gray-alpha-400 mx-1" }), jsxRuntimeExports.jsx(IconButton, { "aria-label": `Close ${itemLabel} details`, "aria-keyshortcuts": "Escape", onClick: onClose, children: jsxRuntimeExports.jsx(X, { className: "w-4 h-4" }) })] })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children })] });
1685
1685
  }
1686
1686
  const STYLES$1 = `.wf-decrypt-btn{appearance:none;-webkit-appearance:none;border:none;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border-radius:6px;font-size:14px;font-weight:500;line-height:20px;cursor:pointer;white-space:nowrap;gap:6px;transition:background 150ms}.wf-decrypt-idle{color:var(--ds-gray-1000);background:var(--ds-background-100);box-shadow:0 0 0 1px var(--ds-gray-400)}.wf-decrypt-idle:hover{background:var(--ds-gray-alpha-200)}.wf-decrypt-btn:disabled{cursor:not-allowed;opacity:.5}.wf-decrypt-done{color:var(--ds-green-900);background:var(--ds-green-100);box-shadow:0 0 0 1px var(--ds-green-400);cursor:default}`;
1687
1687
  function DecryptButton({ decrypted = false, loading = false, disabled = false, disabledReason, onClick }) {
@@ -1818,13 +1818,13 @@ function EventDetailsBody({ row, onLoadEventData, cachedEventData, onCacheEventD
1818
1818
  const occurredAt = parseEventDate(event.occurredAt);
1819
1819
  const createdAt = new Date(event.createdAt);
1820
1820
  const structuredError = extractStructuredError(data, event.eventType);
1821
- return jsxRuntimeExports.jsxs("div", { className: "@container px-4", children: [timingTotal > 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", actions: jsxRuntimeExports.jsxs("span", { className: "text-label-13 tabular-nums text-gray-900", children: [formatDurationPrecise(timingTotal), " total"] }), children: jsxRuntimeExports.jsx(TimingBreakdown, { segments: row.segments }) }) : row.durationMs !== void 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", children: jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Duration", value: formatDurationPrecise(row.durationMs) }) }) : null, structuredError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Error", children: jsxRuntimeExports.jsx(ErrorStackBlock, { value: structuredError }) }) : null, data != null ? jsxRuntimeExports.jsx(PayloadView, { data, eventType: event.eventType, encrypted: !encryptionKey && hasEncryptedValues(data) }) : loading || loadError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Payload", children: loadError ? jsxRuntimeExports.jsx("div", { className: "rounded-md border border-red-400 bg-red-100 px-2 py-1.5 text-copy-13-mono text-red-1000", children: loadError }) : jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 py-1", children: [jsxRuntimeExports.jsx(Skeleton, { className: "h-3", style: { width: "70%" } }), jsxRuntimeExports.jsx(Skeleton, { className: "h-3", style: { width: "45%" } })] }) }) : null, jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Identifiers", children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Event ID", value: event.eventId, copyText: event.eventId }), event.correlationId ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Correlation ID", value: event.correlationId, copyText: event.correlationId }) : null, jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Created", value: createdAt.toLocaleString() }), occurredAt ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Occurred", value: occurredAt.toLocaleString() }) : null] }) })] });
1821
+ return jsxRuntimeExports.jsxs("div", { className: "@container px-4 pb-8", children: [timingTotal > 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", actions: jsxRuntimeExports.jsxs("span", { className: "text-label-13 tabular-nums text-gray-900", children: [formatDurationPrecise(timingTotal), " total"] }), children: jsxRuntimeExports.jsx(TimingBreakdown, { segments: row.segments }) }) : row.durationMs !== void 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", children: jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Duration", value: formatDurationPrecise(row.durationMs) }) }) : null, structuredError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Error", children: jsxRuntimeExports.jsx(ErrorStackBlock, { value: structuredError }) }) : null, data != null ? jsxRuntimeExports.jsx(PayloadView, { data, eventType: event.eventType, encrypted: !encryptionKey && hasEncryptedValues(data) }) : loading || loadError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Payload", children: loadError ? jsxRuntimeExports.jsx("div", { className: "rounded-md border border-red-400 bg-red-100 px-2 py-1.5 text-copy-13-mono text-red-1000", children: loadError }) : jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 py-1", children: [jsxRuntimeExports.jsx(Skeleton, { className: "h-3", style: { width: "70%" } }), jsxRuntimeExports.jsx(Skeleton, { className: "h-3", style: { width: "45%" } })] }) }) : null, jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Identifiers", children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Event ID", value: event.eventId, copyText: event.eventId }), event.correlationId ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Correlation ID", value: event.correlationId, copyText: event.correlationId }) : null, jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Created", value: createdAt.toLocaleString() }), occurredAt ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Occurred", value: occurredAt.toLocaleString() }) : null] }) })] });
1822
1822
  }
1823
1823
  const EVENT_DETAIL_PANEL_ID = "event-detail-panel";
1824
1824
  function EventDetailsPanel({ width, onPrev, onNext, onClose, onViewInTrace, ...body }) {
1825
1825
  const { row } = body;
1826
1826
  const { event } = row;
1827
- return jsxRuntimeExports.jsxs(DetailPanelShell, { id: EVENT_DETAIL_PANEL_ID, width, itemLabel: "event", title: jsxRuntimeExports.jsxs("span", { className: "flex min-w-0 flex-col", children: [jsxRuntimeExports.jsx("span", { className: "truncate font-mono text-label-12 font-normal text-gray-900", children: event.eventType }), jsxRuntimeExports.jsx("span", { className: "truncate text-label-16 font-semibold", children: row.name || event.eventType })] }), onPrev, onNext, onClose, children: [onViewInTrace ? jsxRuntimeExports.jsx("div", { className: "px-4 pb-2", children: jsxRuntimeExports.jsxs(Button, { variant: "secondary", size: "small", onClick: () => onViewInTrace(getEventSpanId(event)), children: [jsxRuntimeExports.jsx(ChartGantt, {}), "View in Trace"] }) }) : null, jsxRuntimeExports.jsx(EventDetailsBody, { ...body }, event.eventId)] });
1827
+ return jsxRuntimeExports.jsx(DetailPanelShell, { id: EVENT_DETAIL_PANEL_ID, width, itemLabel: "event", title: jsxRuntimeExports.jsx("span", { className: "truncate block", children: row.name || event.eventType }), actions: onViewInTrace ? jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "View in Trace", onClick: () => onViewInTrace(getEventSpanId(event)), children: jsxRuntimeExports.jsx(ChartGantt, { className: "w-4 h-4" }) }) }), jsxRuntimeExports.jsx(TooltipContent, { children: "View in Trace" })] }) : null, onPrev, onNext, onClose, children: jsxRuntimeExports.jsx(EventDetailsBody, { ...body }, event.eventId) });
1828
1828
  }
1829
1829
  function EventListToolbar({ query, onQueryChange }) {
1830
1830
  return jsxRuntimeExports.jsxs("div", { className: "flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-gray-alpha-400 bg-background-100 pl-[34px] pr-2", children: [jsxRuntimeExports.jsx(Search, { className: "h-3.5 w-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { type: "text", name: "event-list-search", "aria-label": "Search events", placeholder: "Search by step ID, wait ID, hook ID, or event ID…", value: query, onChange: (e) => onQueryChange(e.target.value), onKeyDown: (e) => {
@@ -1875,7 +1875,7 @@ const EventRow$1 = ({ span, isSelected, isDimmed, onSelectSpan }) => {
1875
1875
  const durationMs = getSpanDurationMs(span);
1876
1876
  const isErrored = isSpanErrored(span);
1877
1877
  const isCancelled = isSpanCancelled(span);
1878
- return jsxRuntimeExports.jsx("li", { className: cn("relative overflow-clip group transition-opacity", ROW_HEIGHT_CLASS, isDimmed && "opacity-35"), role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, onClick: () => onSelectSpan(span.spanId), children: jsxRuntimeExports.jsx("div", { className: "h-full hover:bg-gray-100 group-aria-selected:bg-gray-100 group-aria-selected:hover:bg-gray-200", children: jsxRuntimeExports.jsxs("div", { className: "flex h-full min-w-0 items-center pl-4 pr-2", children: [jsxRuntimeExports.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [jsxRuntimeExports.jsx(ResourceIcon, { resource: span.resource, isErrored, isCancelled }), jsxRuntimeExports.jsx("span", { className: "min-w-0 text-label-14", children: jsxRuntimeExports.jsx(MiddleTruncate, { value: span.name }) })] }), jsxRuntimeExports.jsx("div", { className: "ml-2 shrink-0", children: jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-900 tabular-nums", children: formatDurationPrecise(durationMs) }) })] }) }) });
1878
+ return jsxRuntimeExports.jsx("li", { className: cn("relative overflow-clip transition-opacity hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:hover:bg-gray-200", ROW_HEIGHT_CLASS, isDimmed && "opacity-35"), role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, onClick: () => onSelectSpan(span.spanId), children: jsxRuntimeExports.jsxs("div", { className: "flex h-full min-w-0 items-center pl-4 pr-2", children: [jsxRuntimeExports.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [jsxRuntimeExports.jsx(ResourceIcon, { resource: span.resource, isErrored, isCancelled }), jsxRuntimeExports.jsx("span", { className: "min-w-0 text-label-14", children: jsxRuntimeExports.jsx(MiddleTruncate, { value: span.name }) })] }), jsxRuntimeExports.jsx("div", { className: "ml-2 shrink-0", children: jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-900 tabular-nums", children: formatDurationPrecise(durationMs) }) })] }) });
1879
1879
  };
1880
1880
  const EventList = ({ spans, activeSpanId, searchResult, onSelectSpan }) => {
1881
1881
  const listRef = reactExports.useRef(null);
@@ -3509,6 +3509,11 @@ function TraceViewer$1({ trace, onLoadMore, hasMore, isLoadingMore, initialSelec
3509
3509
  function TraceViewerContent({ trace, onLoadMore, hasMore, isLoadingMore }) {
3510
3510
  const { activeSpanId, setActiveSpan, clearActiveSpan } = useActiveSpan();
3511
3511
  const reducedMotion = useReducedMotion();
3512
+ const [isLanding, setIsLanding] = reactExports.useState(activeSpanId !== null);
3513
+ reactExports.useEffect(() => {
3514
+ const timer = setTimeout(() => setIsLanding(false), 1e3);
3515
+ return () => clearTimeout(timer);
3516
+ }, []);
3512
3517
  const [searchQuery, setSearchQuery] = reactExports.useState("");
3513
3518
  const deferredSearchQuery = reactExports.useDeferredValue(searchQuery);
3514
3519
  const paneRootRef = reactExports.useRef(null);
@@ -3715,7 +3720,7 @@ function TraceViewerContent({ trace, onLoadMore, hasMore, isLoadingMore }) {
3715
3720
  el.addEventListener("wheel", onWheel, { passive: false });
3716
3721
  return () => el.removeEventListener("wheel", onWheel);
3717
3722
  }, [root.duration, setViewport, clampToRoot]);
3718
- return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent", className: "@container flex-1 min-w-0 grid grid-rows-[auto_1fr] h-full min-h-0 overflow-hidden relative bg-background-100", children: [jsxRuntimeExports.jsx(Minimap, { spans: trace.spans, root, viewport, minViewportMs: MIN_VIEWPORT_MS, onViewportChange: setViewport, onAnimateTo: animateTo }), jsxRuntimeExports.jsxs(SplitPane, { scrollContainerRef, startHeader: jsxRuntimeExports.jsxs("div", { className: "bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-center pl-4 pr-2 gap-1.5", children: [jsxRuntimeExports.jsx(Search, { className: "w-3.5 h-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { id: "trace-viewer-search", name: "trace-viewer-search", type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), onKeyDown: (e) => {
3723
+ return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent", "data-span-landing": isLanding || void 0, className: "@container flex-1 min-w-0 grid grid-rows-[auto_1fr] h-full min-h-0 overflow-hidden relative bg-background-100", children: [jsxRuntimeExports.jsx(Minimap, { spans: trace.spans, root, viewport, minViewportMs: MIN_VIEWPORT_MS, onViewportChange: setViewport, onAnimateTo: animateTo }), jsxRuntimeExports.jsxs(SplitPane, { scrollContainerRef, startHeader: jsxRuntimeExports.jsxs("div", { className: "bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-center pl-4 pr-2 gap-1.5", children: [jsxRuntimeExports.jsx(Search, { className: "w-3.5 h-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { id: "trace-viewer-search", name: "trace-viewer-search", type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), onKeyDown: (e) => {
3719
3724
  if (e.key === "Escape" && searchQuery) {
3720
3725
  e.preventDefault();
3721
3726
  e.stopPropagation();
@@ -63158,7 +63158,7 @@ function replaceEncryptedAndExpiredWithMarkers(resource) {
63158
63158
  }
63159
63159
  async function hydrateResourceIOAsync(resource, key, extraRevivers) {
63160
63160
  const { hydrateDataWithKey: hydrateDataWithKey2, deriveRunPayloadKeys: deriveRunPayloadKeys2 } = await Promise.resolve().then(() => serializationFormat);
63161
- const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-DPQduvCC.js");
63161
+ const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-XCzFkM-Z.js");
63162
63162
  ensureZstdDecoderRegistered();
63163
63163
  const cryptoKey = key ? await deriveRunPayloadKeys2(key) : void 0;
63164
63164
  const revivers = extraRevivers ? { ...getRevivers(), ...extraRevivers } : getRevivers();
@@ -65707,7 +65707,7 @@ function useAltHeld() {
65707
65707
  }, []);
65708
65708
  return { altHeld };
65709
65709
  }
65710
- function DetailPanelShell({ id: id2, width, title, itemLabel, onPrev, onNext, onClose, children: children2 }) {
65710
+ function DetailPanelShell({ id: id2, width, title, itemLabel, actions, onPrev, onNext, onClose, children: children2 }) {
65711
65711
  const asideRef = reactExports.useRef(null);
65712
65712
  const handlersRef = reactExports.useRef({ onPrev, onNext, onClose });
65713
65713
  handlersRef.current = { onPrev, onNext, onClose };
@@ -65731,7 +65731,7 @@ function DetailPanelShell({ id: id2, width, title, itemLabel, onPrev, onNext, on
65731
65731
  window.addEventListener("keydown", onKeyDown);
65732
65732
  return () => window.removeEventListener("keydown", onKeyDown);
65733
65733
  }, []);
65734
- return jsxRuntimeExports.jsxs("aside", { ref: asideRef, id: id2, className: "relative flex flex-col h-full max-h-full shrink-0 bg-background-100 border-l border-gray-alpha-400", style: { width: width.width }, children: [jsxRuntimeExports.jsx(DraggableBorder, { element: asideRef, position: "left", onWidthChange: width.resize, onReset: () => width.resize(PANEL_DEFAULT_WIDTH), "aria-label": `Resize ${itemLabel} details panel`, "aria-controls": id2, "aria-valuemin": PANEL_MIN_WIDTH, "aria-valuemax": width.maxWidth, "aria-valuenow": Math.min(Math.max(Math.round(width.width), PANEL_MIN_WIDTH), width.maxWidth) }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 shrink-0 px-4 py-[7.5px]", children: [jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center gap-2 text-label-14 font-medium text-gray-1000", children: title }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate up", "aria-keyshortcuts": "K", onClick: onPrev, disabled: !onPrev, children: jsxRuntimeExports.jsx(ChevronUp, { className: "w-4 h-4" }) }) }), onPrev ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate up", jsxRuntimeExports.jsx(Kbd, { children: "K" })] }) : null] }), jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate down", "aria-keyshortcuts": "J", onClick: onNext, disabled: !onNext, children: jsxRuntimeExports.jsx(ChevronDown, { className: "w-4 h-4" }) }) }), onNext ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate down", jsxRuntimeExports.jsx(Kbd, { children: "J" })] }) : null] }), jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "w-px h-4 bg-gray-alpha-400 mx-1" }), jsxRuntimeExports.jsx(IconButton, { "aria-label": `Close ${itemLabel} details`, "aria-keyshortcuts": "Escape", onClick: onClose, children: jsxRuntimeExports.jsx(X$4, { className: "w-4 h-4" }) })] })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children: children2 })] });
65734
+ return jsxRuntimeExports.jsxs("aside", { ref: asideRef, id: id2, className: "relative flex flex-col h-full max-h-full shrink-0 bg-background-100 border-l border-gray-alpha-400", style: { width: width.width }, children: [jsxRuntimeExports.jsx(DraggableBorder, { element: asideRef, position: "left", onWidthChange: width.resize, onReset: () => width.resize(PANEL_DEFAULT_WIDTH), "aria-label": `Resize ${itemLabel} details panel`, "aria-controls": id2, "aria-valuemin": PANEL_MIN_WIDTH, "aria-valuemax": width.maxWidth, "aria-valuenow": Math.min(Math.max(Math.round(width.width), PANEL_MIN_WIDTH), width.maxWidth) }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between gap-2 shrink-0 px-4 py-[7.5px]", children: [jsxRuntimeExports.jsx("div", { className: "flex min-w-0 items-center gap-2 text-label-14 font-medium text-gray-1000", children: title }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [actions, jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate up", "aria-keyshortcuts": "K", onClick: onPrev, disabled: !onPrev, children: jsxRuntimeExports.jsx(ChevronUp, { className: "w-4 h-4" }) }) }), onPrev ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate up", jsxRuntimeExports.jsx(Kbd, { children: "K" })] }) : null] }), jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "Navigate down", "aria-keyshortcuts": "J", onClick: onNext, disabled: !onNext, children: jsxRuntimeExports.jsx(ChevronDown, { className: "w-4 h-4" }) }) }), onNext ? jsxRuntimeExports.jsxs(TooltipContent, { children: ["Navigate down", jsxRuntimeExports.jsx(Kbd, { children: "J" })] }) : null] }), jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "w-px h-4 bg-gray-alpha-400 mx-1" }), jsxRuntimeExports.jsx(IconButton, { "aria-label": `Close ${itemLabel} details`, "aria-keyshortcuts": "Escape", onClick: onClose, children: jsxRuntimeExports.jsx(X$4, { className: "w-4 h-4" }) })] })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children: children2 })] });
65735
65735
  }
65736
65736
  const STYLES$1 = `.wf-decrypt-btn{appearance:none;-webkit-appearance:none;border:none;display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border-radius:6px;font-size:14px;font-weight:500;line-height:20px;cursor:pointer;white-space:nowrap;gap:6px;transition:background 150ms}.wf-decrypt-idle{color:var(--ds-gray-1000);background:var(--ds-background-100);box-shadow:0 0 0 1px var(--ds-gray-400)}.wf-decrypt-idle:hover{background:var(--ds-gray-alpha-200)}.wf-decrypt-btn:disabled{cursor:not-allowed;opacity:.5}.wf-decrypt-done{color:var(--ds-green-900);background:var(--ds-green-100);box-shadow:0 0 0 1px var(--ds-green-400);cursor:default}`;
65737
65737
  function DecryptButton({ decrypted = false, loading = false, disabled = false, disabledReason, onClick }) {
@@ -65871,13 +65871,13 @@ function EventDetailsBody({ row, onLoadEventData, cachedEventData, onCacheEventD
65871
65871
  const occurredAt = parseEventDate(event.occurredAt);
65872
65872
  const createdAt = new Date(event.createdAt);
65873
65873
  const structuredError = extractStructuredError(data2, event.eventType);
65874
- return jsxRuntimeExports.jsxs("div", { className: "@container px-4", children: [timingTotal > 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", actions: jsxRuntimeExports.jsxs("span", { className: "text-label-13 tabular-nums text-gray-900", children: [formatDurationPrecise(timingTotal), " total"] }), children: jsxRuntimeExports.jsx(TimingBreakdown, { segments: row.segments }) }) : row.durationMs !== void 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", children: jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Duration", value: formatDurationPrecise(row.durationMs) }) }) : null, structuredError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Error", children: jsxRuntimeExports.jsx(ErrorStackBlock, { value: structuredError }) }) : null, data2 != null ? jsxRuntimeExports.jsx(PayloadView, { data: data2, eventType: event.eventType, encrypted: !encryptionKey && hasEncryptedValues(data2) }) : loading || loadError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Payload", children: loadError ? jsxRuntimeExports.jsx("div", { className: "rounded-md border border-red-400 bg-red-100 px-2 py-1.5 text-copy-13-mono text-red-1000", children: loadError }) : jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 py-1", children: [jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3", style: { width: "70%" } }), jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3", style: { width: "45%" } })] }) }) : null, jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Identifiers", children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Event ID", value: event.eventId, copyText: event.eventId }), event.correlationId ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Correlation ID", value: event.correlationId, copyText: event.correlationId }) : null, jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Created", value: createdAt.toLocaleString() }), occurredAt ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Occurred", value: occurredAt.toLocaleString() }) : null] }) })] });
65874
+ return jsxRuntimeExports.jsxs("div", { className: "@container px-4 pb-8", children: [timingTotal > 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", actions: jsxRuntimeExports.jsxs("span", { className: "text-label-13 tabular-nums text-gray-900", children: [formatDurationPrecise(timingTotal), " total"] }), children: jsxRuntimeExports.jsx(TimingBreakdown, { segments: row.segments }) }) : row.durationMs !== void 0 ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Timing", children: jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Duration", value: formatDurationPrecise(row.durationMs) }) }) : null, structuredError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Error", children: jsxRuntimeExports.jsx(ErrorStackBlock, { value: structuredError }) }) : null, data2 != null ? jsxRuntimeExports.jsx(PayloadView, { data: data2, eventType: event.eventType, encrypted: !encryptionKey && hasEncryptedValues(data2) }) : loading || loadError ? jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Payload", children: loadError ? jsxRuntimeExports.jsx("div", { className: "rounded-md border border-red-400 bg-red-100 px-2 py-1.5 text-copy-13-mono text-red-1000", children: loadError }) : jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2 py-1", children: [jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3", style: { width: "70%" } }), jsxRuntimeExports.jsx(Skeleton$1, { className: "h-3", style: { width: "45%" } })] }) }) : null, jsxRuntimeExports.jsx(Collapsible, { defaultOpen: true, label: "Identifiers", children: jsxRuntimeExports.jsxs("div", { className: "flex flex-col", children: [jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Event ID", value: event.eventId, copyText: event.eventId }), event.correlationId ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Correlation ID", value: event.correlationId, copyText: event.correlationId }) : null, jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Created", value: createdAt.toLocaleString() }), occurredAt ? jsxRuntimeExports.jsx(DetailMonoKeyValueRow, { label: "Occurred", value: occurredAt.toLocaleString() }) : null] }) })] });
65875
65875
  }
65876
65876
  const EVENT_DETAIL_PANEL_ID = "event-detail-panel";
65877
65877
  function EventDetailsPanel({ width, onPrev, onNext, onClose, onViewInTrace, ...body2 }) {
65878
65878
  const { row } = body2;
65879
65879
  const { event } = row;
65880
- return jsxRuntimeExports.jsxs(DetailPanelShell, { id: EVENT_DETAIL_PANEL_ID, width, itemLabel: "event", title: jsxRuntimeExports.jsxs("span", { className: "flex min-w-0 flex-col", children: [jsxRuntimeExports.jsx("span", { className: "truncate font-mono text-label-12 font-normal text-gray-900", children: event.eventType }), jsxRuntimeExports.jsx("span", { className: "truncate text-label-16 font-semibold", children: row.name || event.eventType })] }), onPrev, onNext, onClose, children: [onViewInTrace ? jsxRuntimeExports.jsx("div", { className: "px-4 pb-2", children: jsxRuntimeExports.jsxs(Button, { variant: "secondary", size: "small", onClick: () => onViewInTrace(getEventSpanId(event)), children: [jsxRuntimeExports.jsx(ChartGantt, {}), "View in Trace"] }) }) : null, jsxRuntimeExports.jsx(EventDetailsBody, { ...body2 }, event.eventId)] });
65880
+ return jsxRuntimeExports.jsx(DetailPanelShell, { id: EVENT_DETAIL_PANEL_ID, width, itemLabel: "event", title: jsxRuntimeExports.jsx("span", { className: "truncate block", children: row.name || event.eventType }), actions: onViewInTrace ? jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx(IconButton, { "aria-label": "View in Trace", onClick: () => onViewInTrace(getEventSpanId(event)), children: jsxRuntimeExports.jsx(ChartGantt, { className: "w-4 h-4" }) }) }), jsxRuntimeExports.jsx(TooltipContent, { children: "View in Trace" })] }) : null, onPrev, onNext, onClose, children: jsxRuntimeExports.jsx(EventDetailsBody, { ...body2 }, event.eventId) });
65881
65881
  }
65882
65882
  function EventListToolbar({ query, onQueryChange }) {
65883
65883
  return jsxRuntimeExports.jsxs("div", { className: "flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-gray-alpha-400 bg-background-100 pl-[34px] pr-2", children: [jsxRuntimeExports.jsx(Search, { className: "h-3.5 w-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { type: "text", name: "event-list-search", "aria-label": "Search events", placeholder: "Search by step ID, wait ID, hook ID, or event ID…", value: query, onChange: (e) => onQueryChange(e.target.value), onKeyDown: (e) => {
@@ -66522,7 +66522,7 @@ const EventRow$1 = ({ span, isSelected, isDimmed, onSelectSpan }) => {
66522
66522
  const durationMs = getSpanDurationMs(span);
66523
66523
  const isErrored = isSpanErrored(span);
66524
66524
  const isCancelled = isSpanCancelled(span);
66525
- return jsxRuntimeExports.jsx("li", { className: cn$3("relative overflow-clip group transition-opacity", ROW_HEIGHT_CLASS, isDimmed && "opacity-35"), role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, onClick: () => onSelectSpan(span.spanId), children: jsxRuntimeExports.jsx("div", { className: "h-full hover:bg-gray-100 group-aria-selected:bg-gray-100 group-aria-selected:hover:bg-gray-200", children: jsxRuntimeExports.jsxs("div", { className: "flex h-full min-w-0 items-center pl-4 pr-2", children: [jsxRuntimeExports.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [jsxRuntimeExports.jsx(ResourceIcon, { resource: span.resource, isErrored, isCancelled }), jsxRuntimeExports.jsx("span", { className: "min-w-0 text-label-14", children: jsxRuntimeExports.jsx(MiddleTruncate, { value: span.name }) })] }), jsxRuntimeExports.jsx("div", { className: "ml-2 shrink-0", children: jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-900 tabular-nums", children: formatDurationPrecise(durationMs) }) })] }) }) });
66525
+ return jsxRuntimeExports.jsx("li", { className: cn$3("relative overflow-clip transition-opacity hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:hover:bg-gray-200", ROW_HEIGHT_CLASS, isDimmed && "opacity-35"), role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, onClick: () => onSelectSpan(span.spanId), children: jsxRuntimeExports.jsxs("div", { className: "flex h-full min-w-0 items-center pl-4 pr-2", children: [jsxRuntimeExports.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [jsxRuntimeExports.jsx(ResourceIcon, { resource: span.resource, isErrored, isCancelled }), jsxRuntimeExports.jsx("span", { className: "min-w-0 text-label-14", children: jsxRuntimeExports.jsx(MiddleTruncate, { value: span.name }) })] }), jsxRuntimeExports.jsx("div", { className: "ml-2 shrink-0", children: jsxRuntimeExports.jsx("span", { className: "text-label-14 text-gray-900 tabular-nums", children: formatDurationPrecise(durationMs) }) })] }) });
66526
66526
  };
66527
66527
  const EventList = ({ spans, activeSpanId, searchResult, onSelectSpan }) => {
66528
66528
  const listRef = reactExports.useRef(null);
@@ -98950,7 +98950,7 @@ var Ts = (e) => {
98950
98950
  for (; t > 0 && e[t - 1] === `
98951
98951
  `; ) t--;
98952
98952
  return e.slice(0, t);
98953
- }, Ps = reactExports.lazy(() => import("./highlighted-body-JLMTFACH-BPFwcPlr.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r2 = false, startLine: s2, lineNumbers: a2, ...i }) => {
98953
+ }, Ps = reactExports.lazy(() => import("./highlighted-body-JLMTFACH-DBscEG8Y.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r2 = false, startLine: s2, lineNumbers: a2, ...i }) => {
98954
98954
  let l = w(), { codeBlockMaxHeight: c2 } = reactExports.useContext(R), d2 = reactExports.useMemo(() => Ts(e), [e]), p2 = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
98955
98955
  `).map((b2) => [{ content: b2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
98956
98956
  return jsxRuntimeExports.jsx(Lt.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(It, { dir: "ltr", isIncomplete: r2, language: t, children: [jsxRuntimeExports.jsx(Dt, { language: t }), o ? jsxRuntimeExports.jsx("div", { className: l("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: jsxRuntimeExports.jsx("div", { className: l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: o }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(In, { className: n, language: t, lineNumbers: a2, maxHeight: c2, result: p2, startLine: s2, ...i }), children: jsxRuntimeExports.jsx(Ps, { className: n, code: d2, isIncomplete: r2, language: t, lineNumbers: a2, maxHeight: c2, raw: p2, startLine: s2, ...i }) })] }) });
@@ -99385,7 +99385,7 @@ var Co = ({ children: e, className: t, maxHeight: n, showControls: o, showCopy:
99385
99385
  let l = w(), { isAnimating: c2 } = reactExports.useContext(R), d2 = rt(n), p2 = st(c2, !!d2, e), b2 = o && r2, f2 = o && s2, u = o && a2, g2 = b2 || f2 || u;
99386
99386
  return jsxRuntimeExports.jsxs("div", { className: l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [g2 ? jsxRuntimeExports.jsxs("div", { className: l("flex items-center justify-end gap-1"), children: [b2 ? jsxRuntimeExports.jsx(Ze, {}) : null, f2 ? jsxRuntimeExports.jsx(Ge, {}) : null, u ? jsxRuntimeExports.jsx(ho, { showCopy: b2, showDownload: f2, children: e }) : null] }) : null, jsxRuntimeExports.jsx("div", { className: l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), ref: p2, style: d2 ? { maxHeight: d2 } : void 0, children: jsxRuntimeExports.jsx("table", { className: l("w-full divide-y divide-border", t), "data-streamdown": "table", ...i, children: e }) })] });
99387
99387
  };
99388
- var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = reactExports.lazy(() => import("./mermaid-WFAXDIZX-0o1EZyPF.js").then((e) => ({ default: e.Mermaid }))), La = /language-([^\s]+)/, Da = "node";
99388
+ var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = reactExports.lazy(() => import("./mermaid-WFAXDIZX-hv3921YS.js").then((e) => ({ default: e.Mermaid }))), La = /language-([^\s]+)/, Da = "node";
99389
99389
  function H(e, t) {
99390
99390
  let n = Object.keys(e);
99391
99391
  if (n.length !== Object.keys(t).length) return false;
@@ -103858,6 +103858,11 @@ function TraceViewer$1({ trace: trace2, onLoadMore, hasMore, isLoadingMore, init
103858
103858
  function TraceViewerContent({ trace: trace2, onLoadMore, hasMore, isLoadingMore }) {
103859
103859
  const { activeSpanId, setActiveSpan, clearActiveSpan } = useActiveSpan();
103860
103860
  const reducedMotion = useReducedMotion();
103861
+ const [isLanding, setIsLanding] = reactExports.useState(activeSpanId !== null);
103862
+ reactExports.useEffect(() => {
103863
+ const timer2 = setTimeout(() => setIsLanding(false), 1e3);
103864
+ return () => clearTimeout(timer2);
103865
+ }, []);
103861
103866
  const [searchQuery, setSearchQuery] = reactExports.useState("");
103862
103867
  const deferredSearchQuery = reactExports.useDeferredValue(searchQuery);
103863
103868
  const paneRootRef = reactExports.useRef(null);
@@ -104064,7 +104069,7 @@ function TraceViewerContent({ trace: trace2, onLoadMore, hasMore, isLoadingMore
104064
104069
  el2.addEventListener("wheel", onWheel, { passive: false });
104065
104070
  return () => el2.removeEventListener("wheel", onWheel);
104066
104071
  }, [root2.duration, setViewport, clampToRoot]);
104067
- return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent", className: "@container flex-1 min-w-0 grid grid-rows-[auto_1fr] h-full min-h-0 overflow-hidden relative bg-background-100", children: [jsxRuntimeExports.jsx(Minimap, { spans: trace2.spans, root: root2, viewport, minViewportMs: MIN_VIEWPORT_MS, onViewportChange: setViewport, onAnimateTo: animateTo }), jsxRuntimeExports.jsxs(SplitPane, { scrollContainerRef, startHeader: jsxRuntimeExports.jsxs("div", { className: "bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-center pl-4 pr-2 gap-1.5", children: [jsxRuntimeExports.jsx(Search, { className: "w-3.5 h-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { id: "trace-viewer-search", name: "trace-viewer-search", type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), onKeyDown: (e) => {
104072
+ return jsxRuntimeExports.jsxs("div", { ref: paneRootRef, "data-pane": "pane-root", className: "relative flex w-full h-full max-h-full", children: [jsxRuntimeExports.jsxs("div", { id: "trace-parent", "data-span-landing": isLanding || void 0, className: "@container flex-1 min-w-0 grid grid-rows-[auto_1fr] h-full min-h-0 overflow-hidden relative bg-background-100", children: [jsxRuntimeExports.jsx(Minimap, { spans: trace2.spans, root: root2, viewport, minViewportMs: MIN_VIEWPORT_MS, onViewportChange: setViewport, onAnimateTo: animateTo }), jsxRuntimeExports.jsxs(SplitPane, { scrollContainerRef, startHeader: jsxRuntimeExports.jsxs("div", { className: "bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-center pl-4 pr-2 gap-1.5", children: [jsxRuntimeExports.jsx(Search, { className: "w-3.5 h-3.5 shrink-0 text-gray-800" }), jsxRuntimeExports.jsx("input", { id: "trace-viewer-search", name: "trace-viewer-search", type: "text", value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), onKeyDown: (e) => {
104068
104073
  if (e.key === "Escape" && searchQuery) {
104069
104074
  e.preventDefault();
104070
104075
  e.stopPropagation();
@@ -112467,12 +112472,16 @@ const getFramedStreamMaxReconnects = () => envNumber("WORKFLOW_FRAMED_STREAM_MAX
112467
112472
  });
112468
112473
  const FRAMED_STREAM_MAX_TOTAL_RECONNECTS = 1e3;
112469
112474
  const getFramedStreamMaxTotalReconnects = () => envNumber("WORKFLOW_FRAMED_STREAM_MAX_TOTAL_RECONNECTS", FRAMED_STREAM_MAX_TOTAL_RECONNECTS, { integer: true, min: 1 });
112475
+ const FRAMED_STREAM_MAX_STALLS_BELOW_TAIL = 3;
112476
+ const FRAMED_STREAM_MIN_STALL_SESSION_MS = 1e4;
112470
112477
  function createReconnectingFramedStream(runId, name2, startIndex, prefetchEncryptionKey = async () => void 0) {
112471
112478
  const reconnectSupported = startIndex === void 0 || startIndex >= 0;
112472
112479
  let currentStartIndex = startIndex ?? 0;
112473
112480
  let consumedFrames = 0;
112474
112481
  let reconnectCount = 0;
112475
112482
  let totalReconnectCount = 0;
112483
+ let stallsBelowTail = 0;
112484
+ let sessionStartedAt = 0;
112476
112485
  let reader;
112477
112486
  let canceled = false;
112478
112487
  let cancelReason;
@@ -112509,16 +112518,41 @@ function createReconnectingFramedStream(runId, name2, startIndex, prefetchEncryp
112509
112518
  }
112510
112519
  if (connectMs === void 0)
112511
112520
  connectMs = Date.now() - connectStart;
112521
+ sessionStartedAt = Date.now();
112512
112522
  reader = stream2.getReader();
112513
112523
  return true;
112514
112524
  }
112515
- async function isVerifiedComplete() {
112525
+ async function getStreamInfo() {
112516
112526
  try {
112517
112527
  const world = await getWorldLazy();
112518
- const info = await world.streams.getInfo(runId, name2);
112519
- return info.done && currentStartIndex + consumedFrames > info.tailIndex;
112528
+ return await world.streams.getInfo(runId, name2);
112520
112529
  } catch {
112530
+ return void 0;
112531
+ }
112532
+ }
112533
+ function isVerifiedComplete(info) {
112534
+ if (!info)
112521
112535
  return true;
112536
+ return info.done && currentStartIndex + consumedFrames > info.tailIndex;
112537
+ }
112538
+ async function assertNotStalledAtHole(info) {
112539
+ if (consumedFrames > 0 || buffer2.length > 0) {
112540
+ stallsBelowTail = 0;
112541
+ return;
112542
+ }
112543
+ if (Date.now() - sessionStartedAt < FRAMED_STREAM_MIN_STALL_SESSION_MS) {
112544
+ return;
112545
+ }
112546
+ const resolved = info ?? await getStreamInfo();
112547
+ if (!resolved)
112548
+ return;
112549
+ if (resolved.tailIndex < currentStartIndex) {
112550
+ stallsBelowTail = 0;
112551
+ return;
112552
+ }
112553
+ stallsBelowTail++;
112554
+ if (stallsBelowTail >= FRAMED_STREAM_MAX_STALLS_BELOW_TAIL) {
112555
+ throw new StreamError(`Stream "${name2}" of run "${runId}" has no readable chunk at index ${currentStartIndex}, below its tail index ${resolved.tailIndex}: ${stallsBelowTail} consecutive reads from that index delivered nothing. The chunk is missing from storage; read from startIndex ${currentStartIndex + 1} or later to continue past it.`);
112522
112556
  }
112523
112557
  }
112524
112558
  async function reconnect() {
@@ -112587,6 +112621,9 @@ function createReconnectingFramedStream(runId, name2, startIndex, prefetchEncryp
112587
112621
  return;
112588
112622
  }
112589
112623
  try {
112624
+ await assertNotStalledAtHole();
112625
+ if (canceled)
112626
+ return;
112590
112627
  if (!await reconnect())
112591
112628
  return;
112592
112629
  } catch (reconnectErr) {
@@ -112599,11 +112636,12 @@ function createReconnectingFramedStream(runId, name2, startIndex, prefetchEncryp
112599
112636
  return;
112600
112637
  if (result.done || !result.value) {
112601
112638
  reader = void 0;
112602
- const verifiedComplete = !reconnectSupported || await isVerifiedComplete();
112639
+ const info = reconnectSupported ? await getStreamInfo() : void 0;
112603
112640
  if (canceled)
112604
112641
  return;
112605
- if (!verifiedComplete) {
112642
+ if (reconnectSupported && !isVerifiedComplete(info)) {
112606
112643
  try {
112644
+ await assertNotStalledAtHole(info);
112607
112645
  if (!await reconnect())
112608
112646
  return;
112609
112647
  } catch (reconnectErr) {
@@ -114127,7 +114165,9 @@ function getStreamAndRequestRevivers(allRevivers) {
114127
114165
  const serialization = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
114128
114166
  __proto__: null,
114129
114167
  FRAMED_STREAM_MAX_RECONNECTS,
114168
+ FRAMED_STREAM_MAX_STALLS_BELOW_TAIL,
114130
114169
  FRAMED_STREAM_MAX_TOTAL_RECONNECTS,
114170
+ FRAMED_STREAM_MIN_STALL_SESSION_MS,
114131
114171
  SerializationFormat: SerializationFormat$1,
114132
114172
  WorkflowServerReadableStream,
114133
114173
  WorkflowServerWritableStream,
@@ -114270,7 +114310,7 @@ function getCompressionMode(capabilities) {
114270
114310
  }
114271
114311
  return capabilities.supportedFormats.has(SerializationFormat$1.ZSTD) ? true : "gzip";
114272
114312
  }
114273
- const version$2 = "5.6.0";
114313
+ const version$2 = "5.6.1";
114274
114314
  globalSingleton("@workflow/core//envWarnings", 1, () => ({
114275
114315
  replayTimeoutValues: /* @__PURE__ */ new Set(),
114276
114316
  maxInlineStepsValues: /* @__PURE__ */ new Set(),
@@ -114766,6 +114806,7 @@ const MIGRATIONS = [
114766
114806
  doc TEXT NOT NULL,
114767
114807
  PRIMARY KEY (run_id, seq)
114768
114808
  ) WITHOUT ROWID;
114809
+ -- Named by INDEXED BY in storage/store.ts: dropping or renaming it breaks correlation lookups.
114769
114810
  CREATE INDEX events_by_correlation ON events (run_id, correlation_id, seq);
114770
114811
 
114771
114812
  CREATE TABLE steps (
@@ -144144,6 +144185,7 @@ function startHookRecord(run2) {
144144
144185
  };
144145
144186
  }
144146
144187
  const EVENT_READ_BATCH = 64;
144188
+ const EVENTS_BY_CORRELATION = "events INDEXED BY events_by_correlation";
144147
144189
  function tagClause(column, tag) {
144148
144190
  return tag === void 0 ? `${column} IS NULL` : `(${column} IS NULL OR ${column} = ?)`;
144149
144191
  }
@@ -144225,7 +144267,8 @@ class Store {
144225
144267
  return row ? decode$1(row.doc) : null;
144226
144268
  }
144227
144269
  findEvent(runId, correlationId, eventType) {
144228
- const row = this.db.get(`SELECT doc FROM events WHERE run_id = ? AND correlation_id = ? AND event_type = ?
144270
+ const row = this.db.get(`SELECT doc FROM ${EVENTS_BY_CORRELATION}
144271
+ WHERE run_id = ? AND correlation_id = ? AND event_type = ?
144229
144272
  ORDER BY seq LIMIT 1`, runId, correlationId, eventType);
144230
144273
  return row ? decode$1(row.doc) : null;
144231
144274
  }
@@ -144238,6 +144281,7 @@ class Store {
144238
144281
  const sortOrder = options.sortOrder ?? "asc";
144239
144282
  const limit = Math.max(1, options.limit ?? 20);
144240
144283
  const after = parseEventCursor(options.cursor);
144284
+ const source = options.correlationId === void 0 ? "events" : EVENTS_BY_CORRELATION;
144241
144285
  const query = (from, take) => {
144242
144286
  const clauses = ["run_id = ?"];
144243
144287
  const params = [runId];
@@ -144249,7 +144293,7 @@ class Store {
144249
144293
  clauses.push(sortOrder === "asc" ? "seq > ?" : "seq < ?");
144250
144294
  params.push(from);
144251
144295
  }
144252
- return this.db.all(`SELECT seq, doc FROM events WHERE ${clauses.join(" AND ")}
144296
+ return this.db.all(`SELECT seq, doc FROM ${source} WHERE ${clauses.join(" AND ")}
144253
144297
  ORDER BY seq ${sortOrder === "asc" ? "ASC" : "DESC"} LIMIT ?`, ...params, take);
144254
144298
  };
144255
144299
  const page = (data2, hasMore) => {
@@ -145203,10 +145247,10 @@ function createEventsStorage(db, tag) {
145203
145247
  var _a3, _b2, _c2;
145204
145248
  assertSafeEntityId("runId", params.runId);
145205
145249
  const resolveData = params.resolveData ?? DEFAULT_RESOLVE_DATA_OPTION$1;
145206
- const runRow = db.get("SELECT seq, seq_in_band FROM runs WHERE run_id = ?", params.runId);
145250
+ const runRow = store.getRunAnyTag(params.runId);
145207
145251
  const snapshot = {
145208
- seq: Number((runRow == null ? void 0 : runRow.seq) ?? 0),
145209
- seqInBand: Number((runRow == null ? void 0 : runRow.seq_in_band) ?? IN_BAND_SEQ_AT_RUN_CREATION)
145252
+ seq: (runRow == null ? void 0 : runRow.seq) ?? 0,
145253
+ seqInBand: (runRow == null ? void 0 : runRow.seqInBand) ?? IN_BAND_SEQ_AT_RUN_CREATION
145210
145254
  };
145211
145255
  const result = store.listEvents(params.runId, {
145212
145256
  cursor: (_a3 = params.pagination) == null ? void 0 : _a3.cursor,
@@ -145217,7 +145261,10 @@ function createEventsStorage(db, tag) {
145217
145261
  return {
145218
145262
  ...result,
145219
145263
  data: resolveData === "all" ? result.data : result.data.map((event) => stripEventDataRefs(event, resolveData)),
145220
- snapshot
145264
+ snapshot,
145265
+ // The ceiling `run_started` reports, so a delivery that did not
145266
+ // write it enforces the same one.
145267
+ ...runRow ? { maxEvents: getMaxEventsForRun(runRow.run) } : {}
145221
145268
  };
145222
145269
  },
145223
145270
  async listByCorrelationId(params) {
@@ -146075,8 +146122,8 @@ function requireGetVercelOidcToken() {
146075
146122
  }
146076
146123
  try {
146077
146124
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
146078
- await import("./token-util-zBukdJ_v.js").then((n) => n.t),
146079
- await import("./token-BFl7Te7R.js").then((n) => n.t)
146125
+ await import("./token-util-C_CN233b.js").then((n) => n.t),
146126
+ await import("./token-CXneDSmI.js").then((n) => n.t)
146080
146127
  ]);
146081
146128
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
146082
146129
  await refreshToken(options);
@@ -146640,7 +146687,7 @@ function requireDist() {
146640
146687
  }
146641
146688
  var distExports = requireDist();
146642
146689
  const QUEUE_REQUEST_DEADLINE_CODE = "WORKFLOW_QUEUE_REQUEST_DEADLINE";
146643
- const version$1 = "5.6.0";
146690
+ const version$1 = "5.6.1";
146644
146691
  const pools = globalSingleton("@workflow/world-vercel//httpPools", 1, () => ({
146645
146692
  dispatcher: void 0,
146646
146693
  queueDispatcher: void 0,
@@ -147008,7 +147055,7 @@ function getDefaultStreamCloseDispatcher() {
147008
147055
  return pools.streamCloseDispatcher;
147009
147056
  }
147010
147057
  async function getDeadline() {
147011
- const { getDeadline: getDeadline2 } = await import("./index-NRuURJ03.js").then((n) => n.i);
147058
+ const { getDeadline: getDeadline2 } = await import("./index-DFAOTIzy.js").then((n) => n.i);
147012
147059
  return getDeadline2();
147013
147060
  }
147014
147061
  class ReplayEventObserverError extends Error {
@@ -155799,6 +155846,13 @@ const CreateEventV4BodySchemas = {
155799
155846
  noop: CreateEventV4BodySchema
155800
155847
  };
155801
155848
  const MaxEventsHeaderSchema = number$2().int().positive();
155849
+ function maxEventsFromHeaders(headers2) {
155850
+ const raw2 = headers2.get(MAX_EVENTS_HEADER);
155851
+ if (raw2 === null || !DECIMAL_COUNTER.test(raw2))
155852
+ return void 0;
155853
+ const parsed = MaxEventsHeaderSchema.safeParse(raw2);
155854
+ return parsed.success ? parsed.data : void 0;
155855
+ }
155802
155856
  const EventLogSnapshotWireSchema = object$1({
155803
155857
  seq: number$3().int().nonnegative(),
155804
155858
  seqInBand: number$3().int().nonnegative()
@@ -156582,12 +156636,14 @@ async function consumeEventFrameStream(response2, opName, replayEventObserver) {
156582
156636
  if (frame2.meta._end === 1) {
156583
156637
  const end = EventStreamEndSchema.parse(frame2.meta);
156584
156638
  const snapshot = snapshotFromEnd(end.snapshot) ?? snapshotFromHeaders(response2.headers);
156639
+ const maxEvents = maxEventsFromHeaders(response2.headers);
156585
156640
  return {
156586
156641
  kind: "complete",
156587
156642
  events: events2,
156588
156643
  cursor: end.next ?? null,
156589
156644
  hasMore: end.hasMore,
156590
- ...snapshot ? { snapshot } : {}
156645
+ ...snapshot ? { snapshot } : {},
156646
+ ...maxEvents !== void 0 ? { maxEvents } : {}
156591
156647
  };
156592
156648
  }
156593
156649
  if (frame2.meta._error === 1) {
@@ -156757,7 +156813,8 @@ async function getWorkflowRunEventsV4(runId, params = {}, config2, replayEventOb
156757
156813
  hasMore: consumed.hasMore,
156758
156814
  // Only a complete response reaches its sentinel, and the loop ends on
156759
156815
  // the first one, so this is the first snapshot the read saw.
156760
- ...consumed.kind === "complete" && consumed.snapshot ? { snapshot: consumed.snapshot } : {}
156816
+ ...consumed.kind === "complete" && consumed.snapshot ? { snapshot: consumed.snapshot } : {},
156817
+ ...consumed.kind === "complete" && consumed.maxEvents !== void 0 ? { maxEvents: consumed.maxEvents } : {}
156761
156818
  };
156762
156819
  }
156763
156820
  async function getEventsByCorrelationIdV4(correlationId, runId, params = {}, config2) {
@@ -157175,7 +157232,9 @@ async function getWorkflowRunEvents(params, config2) {
157175
157232
  hasMore: result.hasMore,
157176
157233
  // The in-band fence's counters, read before the listing, when the
157177
157234
  // backend reports them (see `capabilities.inBandFence` in index.ts).
157178
- ...result.snapshot ? { snapshot: result.snapshot } : {}
157235
+ ...result.snapshot ? { snapshot: result.snapshot } : {},
157236
+ // The run's event ceiling, when the backend reports it on a list.
157237
+ ...result.maxEvents !== void 0 ? { maxEvents: result.maxEvents } : {}
157179
157238
  };
157180
157239
  }
157181
157240
  function stepCreatedAtMeta(event, stepCreatedAt) {
@@ -158286,7 +158345,7 @@ function beginNormalWsClose(ws, reason) {
158286
158345
  await observed;
158287
158346
  span == null ? void 0 : span.setAttribute("workflow.stream.ws.close_cleanup_timeout", timedOut);
158288
158347
  });
158289
- void import("./index-NRuURJ03.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
158348
+ void import("./index-DFAOTIzy.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
158290
158349
  });
158291
158350
  void cleanup.catch(() => {
158292
158351
  });
@@ -158671,7 +158730,7 @@ class VercelStreamWriteSession {
158671
158730
  return http3;
158672
158731
  });
158673
158732
  const [{ WebSocket: WebSocketImpl }, http2] = await Promise.all([
158674
- import("./wrapper-CF2baSJ3.js"),
158733
+ import("./wrapper-CaZIHABu.js"),
158675
158734
  httpPromise
158676
158735
  ]);
158677
158736
  if (this.mode !== "connecting")
@@ -163758,11 +163817,7 @@ function createWorld$1(config2) {
163758
163817
  getRuntimeDeadline: getDeadline,
163759
163818
  ...createQueue$1(config2),
163760
163819
  ...createStorage(config2),
163761
- // Analytics list reads are served from an eventually-ingested store.
163762
- // Tooling that needs read-your-writes listings immediately after a
163763
- // write (e.g. deterministic e2e assertions) can force the CLI/world
163764
- // list paths back onto primary storage by disabling the namespace.
163765
- analytics: process.env.WORKFLOW_DISABLE_ANALYTICS_READS === "1" ? void 0 : createAnalytics(config2),
163820
+ analytics: createAnalytics(config2),
163766
163821
  ...instrumentObject("world.streams", createStreamer(config2)),
163767
163822
  createRunId,
163768
163823
  regionForRunId,
@@ -164113,7 +164168,7 @@ const VERCEL_REQUEST_CONTEXT = Symbol.for("@vercel/request-context");
164113
164168
  function waitUntil(promise2) {
164114
164169
  if (!(VERCEL_REQUEST_CONTEXT in globalThis))
164115
164170
  return;
164116
- void import("./index-NRuURJ03.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
164171
+ void import("./index-DFAOTIzy.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
164117
164172
  waitUntil2(promise2);
164118
164173
  });
164119
164174
  }
@@ -194903,7 +194958,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
194903
194958
  __proto__: null,
194904
194959
  loader
194905
194960
  }, Symbol.toStringTag, { value: "Module" }));
194906
- const serverManifest = { "entry": { "module": "/assets/entry.client-DDsh88VE.js", "imports": ["/assets/index-BS6T0Zjc.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-B81NqPpI.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/loader-circle-JR85kUd5.js", "/assets/arrow-up-right-Cpa3Pdwo.js"], "css": ["/assets/root-pcQxN4uP.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-D79hgIWW.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/url-state-DtiYSmtM.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/loader-circle-JR85kUd5.js"], "css": ["/assets/url-state-C9ccOmbh.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-BW20gWS8.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/url-state-DtiYSmtM.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/arrow-up-right-Cpa3Pdwo.js"], "css": ["/assets/run-detail-CWoGxu_0.css", "/assets/url-state-C9ccOmbh.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-c7d249d4.js", "version": "c7d249d4", "sri": void 0 };
194961
+ const serverManifest = { "entry": { "module": "/assets/entry.client-DDsh88VE.js", "imports": ["/assets/index-BS6T0Zjc.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-DgYJfBXO.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/loader-circle-JR85kUd5.js", "/assets/arrow-up-right-Cpa3Pdwo.js"], "css": ["/assets/root-Cv68eh5c.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-D79hgIWW.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/url-state-DtiYSmtM.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/loader-circle-JR85kUd5.js"], "css": ["/assets/url-state-C9ccOmbh.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-Befe_Bls.js", "imports": ["/assets/index-BS6T0Zjc.js", "/assets/url-state-DtiYSmtM.js", "/assets/mermaid-WFAXDIZX-CWiYj6ob.js", "/assets/arrow-up-right-Cpa3Pdwo.js"], "css": ["/assets/run-detail-CWoGxu_0.css", "/assets/url-state-C9ccOmbh.css", "/assets/mermaid-WFAXDIZX-D8CjRQta.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-59ebdf79.js", "version": "59ebdf79", "sri": void 0 };
194907
194962
  const assetsBuildDirectory = "build/client";
194908
194963
  const basename = "/";
194909
194964
  const future = { "unstable_optimizeDeps": false, "v8_passThroughRequests": false, "v8_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
2
2
  if (typeof require === "undefined") {
3
3
  globalThis.require = __wkfCreateRequire(import.meta.url);
4
4
  }
5
- import { r as reactExports, R, W as Wc, j as jsxRuntimeExports, I as In } from "./app-BpZcSiwA.js";
5
+ import { r as reactExports, R, W as Wc, j as jsxRuntimeExports, I as In } from "./app-BXJVj0oU.js";
6
6
  import "node:stream";
7
7
  import "stream";
8
8
  import "util";
@@ -16,7 +16,7 @@ import path__default from "path";
16
16
  import require$$0__default from "fs";
17
17
  import path from "node:path";
18
18
  import require$$0$4 from "child_process";
19
- import { l as commonjsGlobal } from "./app-BpZcSiwA.js";
19
+ import { l as commonjsGlobal } from "./app-BXJVj0oU.js";
20
20
  import require$$0$5 from "os";
21
21
  import require$$0$7 from "assert";
22
22
  import require$$0$6 from "events";
@@ -1200,7 +1200,7 @@ function requireWebsocket() {
1200
1200
  const DEFAULT_MAX_PAYLOAD = 256 * 1024;
1201
1201
  async function loadWebSocketServer() {
1202
1202
  try {
1203
- const ws = await import("./wrapper-CF2baSJ3.js");
1203
+ const ws = await import("./wrapper-CaZIHABu.js");
1204
1204
  return ws.WebSocketServer;
1205
1205
  } catch {
1206
1206
  throw new Error(
@@ -1594,8 +1594,8 @@ function requireGetVercelOidcTokenWithRefresh() {
1594
1594
  }
1595
1595
  try {
1596
1596
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
1597
- await import("./token-util-BiS3WRmb.js").then((n) => n.t),
1598
- await import("./token-CWsOqW-M.js").then((n) => n.t)
1597
+ await import("./token-util-lTSClVuJ.js").then((n) => n.t),
1598
+ await import("./token-BPk8AzMN.js").then((n) => n.t)
1599
1599
  ]);
1600
1600
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
1601
1601
  await refreshToken(options);
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
2
2
  if (typeof require === "undefined") {
3
3
  globalThis.require = __wkfCreateRequire(import.meta.url);
4
4
  }
5
- import { c as co } from "./app-BpZcSiwA.js";
5
+ import { c as co } from "./app-BXJVj0oU.js";
6
6
  import "node:stream";
7
7
  import "stream";
8
8
  import "util";
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
2
2
  if (typeof require === "undefined") {
3
3
  globalThis.require = __wkfCreateRequire(import.meta.url);
4
4
  }
5
- import { h as getDefaultExportFromCjs } from "./app-BpZcSiwA.js";
6
- import { a as requireDist, b as requireTokenError, r as requireTokenUtil } from "./index-NRuURJ03.js";
5
+ import { h as getDefaultExportFromCjs } from "./app-BXJVj0oU.js";
6
+ import { a as requireDist, b as requireTokenError, r as requireTokenUtil } from "./index-DFAOTIzy.js";
7
7
  function _mergeNamespaces(n, m) {
8
8
  for (var i = 0; i < m.length; i++) {
9
9
  const e = m[i];