@workflow/web 4.1.8 → 4.1.10

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.
Files changed (21) hide show
  1. package/build/client/assets/{encryption-5eom23r0.js → encryption-Bd25Keng.js} +21 -2
  2. package/build/client/assets/{entry.client-BWsSsWQm.js → entry.client-DtOpLtMQ.js} +1 -1
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-9Gx_xbQ8.js → highlighted-body-B3W2YXNL-qwkBshMM.js} +2 -2
  4. package/build/client/assets/{home-D6JmZfUp.js → home-BwM2ND3E.js} +4 -3
  5. package/build/client/assets/index-7hulCzI_.js +275 -0
  6. package/build/client/assets/{index-DQa-BExo.js → index-BsV8i_Jn.js} +20 -20
  7. package/build/client/assets/manifest-7155e3b4.js +1 -0
  8. package/build/client/assets/{mermaid-3ZIDBTTL-CjHrXABH.js → mermaid-3ZIDBTTL-ZIVWJOga.js} +266 -250
  9. package/build/client/assets/{root--_OYilvb.js → root-B9F5GRJi.js} +2 -2
  10. package/build/client/assets/{run-detail-BeA7fQfA.js → run-detail-2uFavmKZ.js} +18 -16
  11. package/build/client/assets/{workflow-graph-viewer-BNsGQIfR.js → workflow-graph-viewer-Dv4c6IRL.js} +3 -3
  12. package/build/server/assets/{app-Bw7CxKyr.js → app-B2JDIan2.js} +2 -2
  13. package/build/server/assets/{highlighted-body-B3W2YXNL-KnZkHlP2.js → highlighted-body-B3W2YXNL-B94lzYCW.js} +2 -2
  14. package/build/server/assets/{index-D1onv-Hr.js → index-U5RLwYV5.js} +3 -3
  15. package/build/server/assets/{mermaid-3ZIDBTTL-CvDmHqoa.js → mermaid-3ZIDBTTL-CbeG5Tzv.js} +2 -2
  16. package/build/server/assets/{server-build-BBm5-YMr.js → server-build-DUwThcMX.js} +2981 -1498
  17. package/build/server/assets/{token-DUzouuf-.js → token-CYpoZN9a.js} +2 -2
  18. package/build/server/assets/{token-util-DoCTpdh_.js → token-util-BvFOCYE8.js} +2 -2
  19. package/build/server/index.js +1 -1
  20. package/package.json +8 -8
  21. package/build/client/assets/manifest-3243993f.js +0 -1
@@ -1,5 +1,5 @@
1
- import { r as reactExports, j as jsxRuntimeExports, w as withComponentProps, v as withErrorBoundaryProps, M as Meta, L as Links, S as ScrollRestoration, x as Scripts, O as Outlet, y as useRouteError, i as isRouteErrorResponse, z as Link, A as useNavigate, B as useSearchParams } from "./index-DQa-BExo.js";
2
- import { c as createLucideIcon, u as useServerConfig, T as Tooltip, a as TooltipTrigger, b as TooltipContent, r as runHealthCheck, t as toast, B as Button, L as LoaderCircle, d as cn, e as Toaster$1, S as ServerConfigProvider, f as TooltipProvider } from "./mermaid-3ZIDBTTL-CjHrXABH.js";
1
+ import { r as reactExports, j as jsxRuntimeExports, w as withComponentProps, x as withErrorBoundaryProps, M as Meta, L as Links, S as ScrollRestoration, y as Scripts, O as Outlet, z as useRouteError, i as isRouteErrorResponse, A as Link, B as useNavigate, C as useSearchParams } from "./index-BsV8i_Jn.js";
2
+ import { c as createLucideIcon, u as useServerConfig, T as Tooltip, a as TooltipTrigger, b as TooltipContent, r as runHealthCheck, t as toast, B as Button, L as LoaderCircle, d as cn, e as Toaster$1, S as ServerConfigProvider, f as TooltipProvider } from "./mermaid-3ZIDBTTL-ZIVWJOga.js";
3
3
  var M = (e, i, s, u, m, a, l, h) => {
4
4
  let d = document.documentElement, w = ["light", "dark"];
5
5
  function p(n) {
@@ -1,7 +1,8 @@
1
- import { j as jsxRuntimeExports, r as reactExports, f as reactDomExports, C as ReactDOM, A as useNavigate, B as useSearchParams, z as Link, w as withComponentProps, G as useParams } from "./index-DQa-BExo.js";
2
- import { O as Copy, C as CircleAlert, Q as parseStepName, B as parseWorkflowName, j as ChevronRight, q as Check, U as ErrorCard, Z as Zap, S as Send, R as ResolveHookModal, p as ChevronUp, o as ChevronDown, X, N as ErrorBoundary, V as Clock, G as CircleX, I as unwrapServerActionResult, u as unwrapOrThrow, W as WorkflowWebAPIError, Y as useEscapeKeydown, t as composeEventHandlers, _ as useCallbackRef, $ as useLayoutEffect2, s as useControllableState, a0 as useId, a1 as createContext2, v as Presence, x as createContextScope, l as hideOthers, m as ReactRemoveScroll, a2 as useFocusGuards, a3 as LAYOUT, a4 as wakeUpRun, r as resumeHook, A as Alert, c as AlertTitle, d as AlertDescription, a as Skeleton$1, a5 as RunActionsButtons, F as StatusBadge, e as CopyableText, b as RelativeTime, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, y as cancelRun, a6 as recreateRun } from "./workflow-graph-viewer-BNsGQIfR.js";
3
- import { c as createLucideIcon, M as Spinner, h as useToast, N as Skeleton, O as DecryptClickContext, Y as Yr, U as isEncryptedMarker, W as formatDuration, X as DataInspector, _ as _r, Z as StreamClickContext, $ as isExpiredMarker, a0 as isDoStreamStep, a1 as extractConversation, a2 as Lock, a3 as EVENT_DATA_REF_FIELDS, a4 as clsx, a5 as useTraceViewer, a6 as styles, a7 as formatDurationForTimeline, a8 as formatWallClockTime, a9 as useImmediateStyle, aa as TIMELINE_PADDING, ab as formatTimeSelection, ac as MARKER_HEIGHT, ad as ROW_HEIGHT, ae as ROW_PADDING, af as SEARCH_HEIGHT, ag as getHighResInMs, ah as getMsInHighRes, ai as MARKER_NOTCH_HEIGHT, aj as MAP_HEIGHT, ak as SEARCH_GAP, al as MiniMap, am as SpanNodes, an as SpanDetailPanel, ao as TraceViewerContextProvider, ap as hydrateResourceIOWithKey, aq as hydrateResourceIO, ar as fetchHook, l as fetchEvents, F as fetchRun, as as fetchStep, at as hasEncryptedFields, au as fetchStreams, av as Slot, E as useComposedRefs, aw as Slottable, d as cn, ax as buttonVariants, ay as isEncryptedData, az as hydrateData, aA as getWebRevivers, aB as fetchEvent, aC as fetchEventsByCorrelationId, T as Tooltip, a as TooltipTrigger, b as TooltipContent, aD as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, aE as getEncryptionKeyForRun, t as toast, L as LoaderCircle, aF as StreamViewer } from "./mermaid-3ZIDBTTL-CjHrXABH.js";
4
- import { decrypt, importKey } from "./encryption-5eom23r0.js";
1
+ import { j as jsxRuntimeExports, r as reactExports, f as reactDomExports, D as ReactDOM, B as useNavigate, C as useSearchParams, A as Link, w as withComponentProps, H as useParams } from "./index-BsV8i_Jn.js";
2
+ import { O as Copy, C as CircleAlert, Q as parseStepName, B as parseWorkflowName, j as ChevronRight, q as Check, U as ErrorCard, Z as Zap, S as Send, R as ResolveHookModal, p as ChevronUp, o as ChevronDown, X, N as ErrorBoundary, V as Clock, G as CircleX, I as unwrapServerActionResult, u as unwrapOrThrow, W as WorkflowWebAPIError, Y as useEscapeKeydown, t as composeEventHandlers, _ as useCallbackRef, $ as useLayoutEffect2, s as useControllableState, a0 as useId, a1 as createContext2, v as Presence, x as createContextScope, l as hideOthers, m as ReactRemoveScroll, a2 as useFocusGuards, a3 as LAYOUT, a4 as wakeUpRun, r as resumeHook, A as Alert, c as AlertTitle, d as AlertDescription, a as Skeleton$1, a5 as RunActionsButtons, F as StatusBadge, e as CopyableText, b as RelativeTime, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, y as cancelRun, a6 as recreateRun } from "./workflow-graph-viewer-Dv4c6IRL.js";
3
+ import { c as createLucideIcon, M as Spinner, h as useToast, N as Skeleton, O as DecryptClickContext, Y as Yr, U as isEncryptedMarker, W as formatDuration, X as DataInspector, _ as _r, Z as StreamClickContext, $ as isExpiredMarker, a0 as isDoStreamStep, a1 as extractConversation, a2 as Lock, a3 as EVENT_DATA_REF_FIELDS, a4 as clsx, a5 as useTraceViewer, a6 as styles, a7 as formatDurationForTimeline, a8 as formatWallClockTime, a9 as useImmediateStyle, aa as TIMELINE_PADDING, ab as formatTimeSelection, ac as MARKER_HEIGHT, ad as ROW_HEIGHT, ae as ROW_PADDING, af as SEARCH_HEIGHT, ag as getHighResInMs, ah as getMsInHighRes, ai as MARKER_NOTCH_HEIGHT, aj as MAP_HEIGHT, ak as SEARCH_GAP, al as MiniMap, am as SpanNodes, an as SpanDetailPanel, ao as TraceViewerContextProvider, ap as hydrateResourceIOWithKey, aq as hydrateResourceIO, ar as fetchHook, l as fetchEvents, F as fetchRun, as as fetchStep, at as hasEncryptedFields, au as fetchStreams, av as Slot, E as useComposedRefs, aw as Slottable, d as cn, ax as buttonVariants, ay as isEncryptedData, az as hydrateData, aA as getWebRevivers, aB as fetchEvent, aC as fetchEventsByCorrelationId, T as Tooltip, a as TooltipTrigger, b as TooltipContent, aD as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, aE as getEncryptionKeyForRun, t as toast, L as LoaderCircle, aF as StreamViewer } from "./mermaid-3ZIDBTTL-ZIVWJOga.js";
4
+ import { decrypt, importKey } from "./encryption-Bd25Keng.js";
5
+ import "./index-7hulCzI_.js";
5
6
  /**
6
7
  * @license lucide-react v0.575.0 - ISC
7
8
  *
@@ -84,16 +85,17 @@ const STYLES$2 = `.wf-decrypt-btn{appearance:none;-webkit-appearance:none;border
84
85
  function DecryptButton({ decrypted = false, loading = false, onClick }) {
85
86
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: STYLES$2 } }), jsxRuntimeExports.jsxs("button", { type: "button", onClick: decrypted ? void 0 : onClick, disabled: decrypted || loading, className: `wf-decrypt-btn ${decrypted ? "wf-decrypt-done" : "wf-decrypt-idle"}`, children: [loading ? jsxRuntimeExports.jsx(Spinner, { size: 14 }) : decrypted ? jsxRuntimeExports.jsxs("svg", { width: 14, height: 14, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [jsxRuntimeExports.jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), jsxRuntimeExports.jsx("path", { d: "M7 11V7a5 5 0 0 1 9.9-1" })] }) : jsxRuntimeExports.jsxs("svg", { width: 14, height: 14, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [jsxRuntimeExports.jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), jsxRuntimeExports.jsx("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })] }), loading ? "Decrypting…" : decrypted ? "Decrypted" : "Decrypt"] })] });
86
87
  }
87
- function isStructuredErrorWithStack(value) {
88
- return value != null && typeof value === "object" && "stack" in value && typeof value.stack === "string";
88
+ function isStructuredError(value) {
89
+ return value != null && typeof value === "object" && (typeof value.message === "string" || typeof value.stack === "string");
89
90
  }
90
91
  function ErrorStackBlock({ value }) {
91
92
  const toast2 = useToast();
92
- const stack = value.stack;
93
+ const stack = typeof value.stack === "string" ? value.stack : void 0;
93
94
  const message = typeof value.message === "string" ? value.message : void 0;
94
- const copyText = message ? `${message}
95
+ const body = stack ?? message ?? "";
96
+ const copyText = message && stack && !stack.includes(message) ? `${message}
95
97
 
96
- ${stack}` : stack;
98
+ ${stack}` : body;
97
99
  return jsxRuntimeExports.jsxs("div", { className: "relative overflow-hidden rounded-md border", style: {
98
100
  borderColor: "var(--ds-red-400)",
99
101
  background: "var(--ds-red-100)"
@@ -110,10 +112,10 @@ ${stack}` : stack;
110
112
  }, children: jsxRuntimeExports.jsx(Copy, { size: 12 }) }), message && jsxRuntimeExports.jsxs("div", { className: "flex items-start gap-2 px-3 py-2.5 pr-10", style: {
111
113
  color: "var(--ds-red-900)",
112
114
  borderBottom: "1px solid var(--ds-red-400)"
113
- }, children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0", style: { marginTop: 1 } }), jsxRuntimeExports.jsx("p", { className: "text-xs font-semibold m-0 break-words", children: message })] }), jsxRuntimeExports.jsx("pre", { className: "px-3 py-2.5 text-xs font-mono whitespace-pre-wrap break-words overflow-auto m-0", style: {
115
+ }, children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0", style: { marginTop: 1 } }), jsxRuntimeExports.jsx("p", { className: "text-xs font-semibold m-0 break-words", children: message })] }), body && jsxRuntimeExports.jsx("pre", { className: "px-3 py-2.5 text-xs font-mono whitespace-pre-wrap break-words overflow-auto m-0", style: {
114
116
  color: "var(--ds-red-900)",
115
117
  background: "var(--ds-red-200)"
116
- }, children: stack })] });
118
+ }, children: body })] });
117
119
  }
118
120
  const STYLES$1 = `.wf-load-more{appearance:none;-webkit-appearance:none;border:none;display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:500;line-height:20px;color:var(--ds-gray-1000);background:var(--ds-background-100);box-shadow:0 0 0 1px var(--ds-gray-400);cursor:pointer;white-space:nowrap;gap:6px;transition:background 150ms}.wf-load-more:hover{background:var(--ds-gray-alpha-200)}.wf-load-more:disabled{opacity:.6;cursor:default}.wf-load-more:disabled:hover{background:var(--ds-background-100)}`;
119
121
  function LoadMoreButton({ loading = false, onClick, label = "Load more", loadingLabel = "Loading..." }) {
@@ -576,9 +578,9 @@ function extractStructuredError(data, eventType) {
576
578
  if (data == null || typeof data !== "object")
577
579
  return null;
578
580
  const record = data;
579
- if (isStructuredErrorWithStack(record.error))
581
+ if (isStructuredError(record.error))
580
582
  return record.error;
581
- if (isStructuredErrorWithStack(record))
583
+ if (isStructuredError(record))
582
584
  return record;
583
585
  return null;
584
586
  }
@@ -1476,7 +1478,7 @@ const attributeToDisplayFn = {
1476
1478
  return jsxRuntimeExports.jsx(ExpiredFieldBlock, {});
1477
1479
  if (!hasDisplayContent(value))
1478
1480
  return null;
1479
- if (isStructuredErrorWithStack(value)) {
1481
+ if (isStructuredError(value)) {
1480
1482
  return jsxRuntimeExports.jsx(DetailCard, { summary: "Error", summaryClassName: "text-base py-2", contentClassName: "mt-0", children: jsxRuntimeExports.jsx(ErrorStackBlock, { value }) });
1481
1483
  }
1482
1484
  return jsxRuntimeExports.jsx(DetailCard, { summary: "Error", summaryClassName: "text-base py-2", contentClassName: "mt-0", children: JsonBlock(value) });
@@ -1692,10 +1694,10 @@ function EventDataBlock({ eventType, data }) {
1692
1694
  }
1693
1695
  if (ERROR_EVENT_TYPES.has(eventType) && data != null && typeof data === "object") {
1694
1696
  const record = data;
1695
- if (isStructuredErrorWithStack(record.error)) {
1697
+ if (isStructuredError(record.error)) {
1696
1698
  return jsxRuntimeExports.jsx(ErrorStackBlock, { value: record.error });
1697
1699
  }
1698
- if (isStructuredErrorWithStack(record)) {
1700
+ if (isStructuredError(record)) {
1699
1701
  return jsxRuntimeExports.jsx(ErrorStackBlock, { value: record });
1700
1702
  }
1701
1703
  }
@@ -1,8 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { c as createLucideIcon, aG as cn, d as cn$1, G as cva, aH as composeRefs, E as useComposedRefs, aI as useFloating, aJ as offset, aK as shift, aL as limitShift, aM as flip, aN as size, aO as arrow, aP as hide, aQ as autoUpdate, T as Tooltip, a as TooltipTrigger, b as TooltipContent, aR as cancelRun$1, aS as reenqueueRun$1, aT as wakeUpRun$1, aU as resumeHook$1, aV as recreateRun$1, v as createContextScope$1, n as useComposedRefs$1, w as createSlot, W as formatDuration, B as Button, t as toast, p as useId$1, P as Primitive$1, o as composeEventHandlers$1, x as useControllableState$1, m as useCallbackRef$2, H as Presence$1 } from "./mermaid-3ZIDBTTL-CjHrXABH.js";
5
- import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, R as ReactExports, H as React, C as ReactDOM, a as requireReact, I as getDefaultExportFromCjs } from "./index-DQa-BExo.js";
4
+ import { c as createLucideIcon, aG as cn, d as cn$1, G as cva, aH as composeRefs, E as useComposedRefs, aI as useFloating, aJ as offset, aK as shift, aL as limitShift, aM as flip, aN as size, aO as arrow, aP as hide, aQ as autoUpdate, T as Tooltip, a as TooltipTrigger, b as TooltipContent, aR as cancelRun$1, aS as reenqueueRun$1, aT as wakeUpRun$1, aU as resumeHook$1, aV as recreateRun$1, v as createContextScope$1, n as useComposedRefs$1, w as createSlot, W as formatDuration, B as Button, t as toast, p as useId$1, P as Primitive$1, o as composeEventHandlers$1, x as useControllableState$1, m as useCallbackRef$2, H as Presence$1 } from "./mermaid-3ZIDBTTL-ZIVWJOga.js";
5
+ import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, R as ReactExports, I as React, D as ReactDOM, a as requireReact, g as getDefaultExportFromCjs } from "./index-BsV8i_Jn.js";
6
+ import { V as VERCEL_403_ERROR_MESSAGE } from "./index-7hulCzI_.js";
6
7
  function parseName(tag, name) {
7
8
  if (typeof name !== "string") {
8
9
  return null;
@@ -5620,7 +5621,6 @@ function Skeleton({
5620
5621
  }
5621
5622
  );
5622
5623
  }
5623
- const VERCEL_403_ERROR_MESSAGE = "Your current vercel account does not have access to this resource. Use `vercel login` or `vercel switch` to ensure you are linked to the right account.";
5624
5624
  class WorkflowWebAPIError extends Error {
5625
5625
  constructor(message2, options) {
5626
5626
  super(message2, { cause: options == null ? void 0 : options.cause });
@@ -9174,9 +9174,9 @@ async function sendRemixResponse(res, nodeResponse) {
9174
9174
  }
9175
9175
  const app = express();
9176
9176
  app.all(
9177
- "*",
9177
+ "/{*splat}",
9178
9178
  createRequestHandler({
9179
- build: () => import("./server-build-BBm5-YMr.js").then((n) => n.G)
9179
+ build: () => import("./server-build-DUwThcMX.js").then((n) => n.G)
9180
9180
  })
9181
9181
  );
9182
9182
  app.use(
@@ -1,5 +1,5 @@
1
- import { y as R, K as Ks, z as jsxRuntimeExports, A as Qe } from "./server-build-BBm5-YMr.js";
2
- import { r as reactExports } from "./app-Bw7CxKyr.js";
1
+ import { y as R, K as Ks, z as jsxRuntimeExports, A as Qe } from "./server-build-DUwThcMX.js";
2
+ import { r as reactExports } from "./app-B2JDIan2.js";
3
3
  import "node:stream";
4
4
  import "util";
5
5
  import "crypto";
@@ -1,6 +1,6 @@
1
- import { H as HookSchema } from "./server-build-BBm5-YMr.js";
2
- import { B, D, a, E, b, c, d, L, M, P, Q, e, R, S, f, g, h, i, j, k, l, m, V, W, n, o, p, q, r, s, t, u, v, w, x } from "./server-build-BBm5-YMr.js";
3
- import "./app-Bw7CxKyr.js";
1
+ import { H as HookSchema } from "./server-build-DUwThcMX.js";
2
+ import { B, D, a, E, b, c, d, L, M, P, Q, e, R, S, f, g, h, i, j, k, l, m, V, W, n, o, p, q, r, s, t, u, v, w, x } from "./server-build-DUwThcMX.js";
3
+ import "./app-B2JDIan2.js";
4
4
  import "stream";
5
5
  import "express";
6
6
  import "node:stream";
@@ -1,5 +1,5 @@
1
- import { N as Nt } from "./server-build-BBm5-YMr.js";
2
- import "./app-Bw7CxKyr.js";
1
+ import { N as Nt } from "./server-build-DUwThcMX.js";
2
+ import "./app-B2JDIan2.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";