@workflow/web 4.1.1 → 4.1.5

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 (30) hide show
  1. package/build/client/assets/encryption-80GMP4r0.js +26 -0
  2. package/build/client/assets/entry.client-BWsSsWQm.js +11899 -0
  3. package/build/client/assets/highlighted-body-B3W2YXNL-CdV7thm2.js +18 -0
  4. package/build/client/assets/home-BMWyCqWy.js +3984 -0
  5. package/build/client/assets/index-DQa-BExo.js +9432 -0
  6. package/build/client/assets/{manifest-8cfb1d31.js → manifest-c0697365.js} +1 -1
  7. package/build/client/assets/mermaid-3ZIDBTTL-B_qZU5zW.js +48064 -0
  8. package/build/client/assets/root-CLs7COa2.js +690 -0
  9. package/build/client/assets/run-detail-D7xkVxzE.js +6699 -0
  10. package/build/client/assets/worker-CqHKTA7D.js +115 -0
  11. package/build/client/assets/workflow-graph-viewer-D5yEggTb.js +16175 -0
  12. package/build/server/assets/{app-BjALV8M8.js → app-fdUHF124.js} +1 -1
  13. package/build/server/assets/{highlighted-body-B3W2YXNL-CPKrO4kT.js → highlighted-body-B3W2YXNL-2WxWqSYU.js} +2 -2
  14. package/build/server/assets/{index-DbMFm9t3.js → index-C64kz8oy.js} +8 -7
  15. package/build/server/assets/{mermaid-3ZIDBTTL-DGuUhvM4.js → mermaid-3ZIDBTTL-FF5ZIJp-.js} +2 -2
  16. package/build/server/assets/{server-build-DfI2avTQ.js → server-build-Mddyhj54.js} +109 -47
  17. package/build/server/assets/{token-BBou_ahS.js → token-D_Q6dhhy.js} +2 -2
  18. package/build/server/assets/{token-util-CdxtEAt7.js → token-util-BAhz4ocz.js} +2 -2
  19. package/build/server/index.js +1 -1
  20. package/package.json +7 -7
  21. package/build/client/assets/encryption-8OvC6eoJ.js +0 -1
  22. package/build/client/assets/entry.client-BiVEcoV8.js +0 -29
  23. package/build/client/assets/highlighted-body-B3W2YXNL-YMQAPcBs.js +0 -1
  24. package/build/client/assets/home-CBUniDnp.js +0 -40
  25. package/build/client/assets/index-BmZS3y7B.js +0 -59
  26. package/build/client/assets/mermaid-3ZIDBTTL-B00nsi3k.js +0 -210
  27. package/build/client/assets/root-CHWaz-_g.js +0 -26
  28. package/build/client/assets/run-detail-DHdCNGRJ.js +0 -37
  29. package/build/client/assets/worker-D-HfgUMl.js +0 -1
  30. package/build/client/assets/workflow-graph-viewer-Cb_2KEX3.js +0 -161
@@ -9176,7 +9176,7 @@ const app = express();
9176
9176
  app.all(
9177
9177
  "*",
9178
9178
  createRequestHandler({
9179
- build: () => import("./server-build-DfI2avTQ.js").then((n) => n.F)
9179
+ build: () => import("./server-build-Mddyhj54.js").then((n) => n.G)
9180
9180
  })
9181
9181
  );
9182
9182
  app.use(
@@ -1,5 +1,5 @@
1
- import { x as R, K as Ks, y as jsxRuntimeExports, z as Qe } from "./server-build-DfI2avTQ.js";
2
- import { r as reactExports } from "./app-BjALV8M8.js";
1
+ import { y as R, K as Ks, z as jsxRuntimeExports, A as Qe } from "./server-build-Mddyhj54.js";
2
+ import { r as reactExports } from "./app-fdUHF124.js";
3
3
  import "node:stream";
4
4
  import "util";
5
5
  import "crypto";
@@ -1,5 +1,5 @@
1
- import { B, D, q, E, a, b, c, H, L, M, P, Q, d, R, l, m, n, h, S, o, p, i, V, t, w, W, e, f, g, j, r, k, s, u, v } from "./server-build-DfI2avTQ.js";
2
- import "./app-BjALV8M8.js";
1
+ import { B, D, t, E, a, b, c, H, L, M, P, Q, d, R, l, m, n, o, h, S, p, q, i, V, w, x, W, e, f, g, j, r, k, s, u, v } from "./server-build-Mddyhj54.js";
2
+ import "./app-fdUHF124.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -44,7 +44,7 @@ import "node:os";
44
44
  export {
45
45
  B as BaseEventSchema,
46
46
  D as DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS,
47
- q as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
47
+ t as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
48
48
  E as EVENT_DATA_REF_FIELDS,
49
49
  a as EventSchema,
50
50
  b as EventTypeSchema,
@@ -59,14 +59,15 @@ export {
59
59
  l as SPEC_VERSION_CURRENT,
60
60
  m as SPEC_VERSION_LEGACY,
61
61
  n as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
62
+ o as SPEC_VERSION_SUPPORTS_EVENT_SOURCING,
62
63
  h as SerializedDataSchema,
63
64
  S as StepInvokePayloadSchema,
64
- o as StepSchema,
65
- p as StepStatusSchema,
65
+ p as StepSchema,
66
+ q as StepStatusSchema,
66
67
  i as StructuredErrorSchema,
67
68
  V as ValidQueueName,
68
- t as WaitSchema,
69
- w as WaitStatusSchema,
69
+ w as WaitSchema,
70
+ x as WaitStatusSchema,
70
71
  W as WorkflowInvokePayloadSchema,
71
72
  e as WorkflowRunBaseSchema,
72
73
  f as WorkflowRunSchema,
@@ -1,5 +1,5 @@
1
- import { N } from "./server-build-DfI2avTQ.js";
2
- import "./app-BjALV8M8.js";
1
+ import { N } from "./server-build-Mddyhj54.js";
2
+ import "./app-fdUHF124.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -14,7 +14,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
14
14
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
15
15
  var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
16
16
  var _a2, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn, _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn, _reader;
17
- import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-BjALV8M8.js";
17
+ import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-fdUHF124.js";
18
18
  import require$$0$4, { PassThrough } from "node:stream";
19
19
  import require$$0 from "util";
20
20
  import require$$1 from "crypto";
@@ -48843,6 +48843,7 @@ const WorkflowRunSchema = discriminatedUnion("status", [
48843
48843
  })
48844
48844
  ]);
48845
48845
  const SPEC_VERSION_LEGACY = 1;
48846
+ const SPEC_VERSION_SUPPORTS_EVENT_SOURCING = 2;
48846
48847
  const SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT = 3;
48847
48848
  const SPEC_VERSION_CURRENT = SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT;
48848
48849
  function isLegacySpecVersion(v2) {
@@ -50268,12 +50269,7 @@ function EncryptedInlineLabel() {
50268
50269
  }, disabled: ctx.isDecrypting, onClick: (e) => {
50269
50270
  e.stopPropagation();
50270
50271
  ctx.onDecrypt();
50271
- }, title: "Click to decrypt", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx("span", { className: "h-3 w-3 animate-spin rounded-full border-2", style: {
50272
- display: "inline-block",
50273
- flexShrink: 0,
50274
- borderColor: "var(--ds-gray-400)",
50275
- borderTopColor: "var(--ds-gray-700)"
50276
- } }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3", style: { display: "inline", flexShrink: 0 } }), jsxRuntimeExports.jsx("span", { children: ctx.isDecrypting ? "Decrypting…" : "Decrypt" })] });
50272
+ }, title: "Click to decrypt", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 12 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3", style: { display: "inline", flexShrink: 0 } }), jsxRuntimeExports.jsx("span", { children: ctx.isDecrypting ? "Decrypting…" : "Decrypt" })] });
50277
50273
  }
50278
50274
  return jsxRuntimeExports.jsxs("span", { style: { color: "var(--ds-gray-600)", fontStyle: "italic" }, children: [jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3", style: {
50279
50275
  display: "inline",
@@ -79288,7 +79284,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
79288
79284
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
79289
79285
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
79290
79286
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
79291
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-CPKrO4kT.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
79287
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-2WxWqSYU.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
79292
79288
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
79293
79289
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
79294
79290
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "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: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -79610,7 +79606,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
79610
79606
  }, []), jsxRuntimeExports.jsxs("div", { className: "relative", ref: i, children: [jsxRuntimeExports.jsx("button", { className: f("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: c, onClick: () => r2(!s2), title: "Download table", type: "button", children: e != null ? e : jsxRuntimeExports.jsx(Z, { size: 14 }) }), s2 ? jsxRuntimeExports.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
79611
79607
  };
79612
79608
  var Vt = ({ children: e, className: t, showControls: o, ...n }) => jsxRuntimeExports.jsxs("div", { className: "my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2", "data-streamdown": "table-wrapper", children: [o ? jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-1", children: [jsxRuntimeExports.jsx(Ht, {}), jsxRuntimeExports.jsx(Dt, {})] }) : null, jsxRuntimeExports.jsx("div", { className: "border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background", children: jsxRuntimeExports.jsx("table", { className: f("w-full divide-y divide-border", t), "data-streamdown": "table", ...n, children: e }) })] });
79613
- var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-DGuUhvM4.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
79609
+ var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-FF5ZIJp-.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
79614
79610
  function ke(e, t) {
79615
79611
  if (!(e != null && e.position || t != null && t.position)) return true;
79616
79612
  if (!(e != null && e.position && (t != null && t.position))) return false;
@@ -80246,10 +80242,7 @@ function EncryptedFieldBlock() {
80246
80242
  backgroundColor: "var(--ds-gray-100)",
80247
80243
  color: "var(--ds-gray-700)",
80248
80244
  opacity: ctx.isDecrypting ? 0.6 : 1
80249
- }, title: "Click to decrypt", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx("span", { className: "h-3 w-3 animate-spin rounded-full border-2", style: {
80250
- borderColor: "var(--ds-gray-400)",
80251
- borderTopColor: "var(--ds-gray-700)"
80252
- } }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { className: "font-medium", children: ctx.isDecrypting ? "Decrypting…" : "Decrypt" })] });
80245
+ }, title: "Click to decrypt", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 12 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { className: "font-medium", children: ctx.isDecrypting ? "Decrypting…" : "Decrypt" })] });
80253
80246
  }
80254
80247
  return jsxRuntimeExports.jsxs("div", { className: "flex w-full items-center justify-center gap-1.5 rounded-md border px-3 py-2 text-xs", style: {
80255
80248
  borderColor: "var(--ds-gray-300)",
@@ -80915,7 +80908,7 @@ function EntityDetailPanel({ run, onStreamClick, spanDetailData, spanDetailError
80915
80908
  backgroundColor: "var(--ds-background-100)"
80916
80909
  }, children: resourceLabel }), jsxRuntimeExports.jsx("span", { className: "text-[13px]", style: {
80917
80910
  color: run.completedAt ? "var(--ds-gray-700)" : "var(--ds-green-800)"
80918
- }, children: runStateLabel })] }), jsxRuntimeExports.jsx("p", { className: "mt-1 truncate font-mono text-[13px]", style: { color: "var(--ds-gray-700)" }, title: resourceId, children: resourceId })] }), (hasEncryptedFields2 || hasEncryptedData || encryptionKey) && onDecrypt && jsxRuntimeExports.jsx(DecryptButton, { decrypted: !!encryptionKey, loading: isDecrypting, onClick: onDecrypt })] }) }), jsxRuntimeExports.jsxs("div", { className: "flex-1 overflow-y-auto px-3 pt-3 pb-8", children: [hasPendingActions && jsxRuntimeExports.jsxs("div", { className: "mb-4 rounded-lg border p-2", style: {
80911
+ }, children: runStateLabel })] }), jsxRuntimeExports.jsx("p", { className: "mt-1 truncate font-mono text-[13px]", style: { color: "var(--ds-gray-700)" }, title: resourceId, children: resourceId })] }), (hasEncryptedFields2 || hasEncryptedData || encryptionKey) && onDecrypt && jsxRuntimeExports.jsx(DecryptButton, { decrypted: !!encryptionKey, loading: isDecrypting, onClick: onDecrypt })] }) }), jsxRuntimeExports.jsx(DecryptClickContext.Provider, { value: onDecrypt ? { onDecrypt, isDecrypting } : void 0, children: jsxRuntimeExports.jsxs("div", { className: "flex-1 overflow-y-auto px-3 pt-3 pb-8", children: [hasPendingActions && jsxRuntimeExports.jsxs("div", { className: "mb-4 rounded-lg border p-2", style: {
80919
80912
  borderColor: "var(--ds-gray-300)",
80920
80913
  backgroundColor: "var(--ds-gray-100)"
80921
80914
  }, children: [jsxRuntimeExports.jsx("p", { className: "mb-2 px-1 text-[13px] font-medium uppercase tracking-wide", style: { color: "var(--ds-gray-700)" }, children: "Actions" }), jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-2", children: [resource === "sleep" && canWakeUp && jsxRuntimeExports.jsxs("button", { type: "button", onClick: handleWakeUp, disabled: stoppingSleep, className: clsx("flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium", "disabled:opacity-50 disabled:cursor-not-allowed transition-colors", stoppingSleep ? "opacity-50 cursor-not-allowed" : "cursor-pointer"), style: {
@@ -80924,7 +80917,7 @@ function EntityDetailPanel({ run, onStreamClick, spanDetailData, spanDetailError
80924
80917
  }, children: [jsxRuntimeExports.jsx(Zap, { className: "h-4 w-4" }), stoppingSleep ? "Waking up..." : "Wake Up Sleep"] }), resource === "hook" && canResolveHook && jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => setShowResolveHookModal(true), disabled: resolvingHook, className: clsx("flex items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium", "disabled:opacity-50 disabled:cursor-not-allowed transition-colors", resolvingHook ? "opacity-50 cursor-not-allowed" : "cursor-pointer"), style: {
80925
80918
  background: "var(--ds-gray-1000)",
80926
80919
  color: "var(--ds-background-100)"
80927
- }, children: [jsxRuntimeExports.jsx(Send, { className: "h-4 w-4" }), "Resolve Hook"] })] })] }), jsxRuntimeExports.jsxs("div", { className: "space-y-4", children: [jsxRuntimeExports.jsxs("section", { children: [jsxRuntimeExports.jsx("h3", { className: "mb-2 text-[13px] font-medium uppercase tracking-wide", style: { color: "var(--ds-gray-700)" }, children: "Details" }), jsxRuntimeExports.jsx(AttributePanel, { data: displayData, moduleSpecifier, expiredAt: run.expiredAt, isLoading: loading, error: error2 ?? void 0, onStreamClick, onDecrypt, isDecrypting, resource })] }), resource !== "run" && rawEvents && jsxRuntimeExports.jsx("section", { children: jsxRuntimeExports.jsx(EventsList, { events: rawEvents, onLoadEventData, encryptionKey }) })] })] }), jsxRuntimeExports.jsx(ResolveHookModal, { isOpen: showResolveHookModal, onClose: () => setShowResolveHookModal(false), onSubmit: handleResolveHook, isSubmitting: resolvingHook })] });
80920
+ }, children: [jsxRuntimeExports.jsx(Send, { className: "h-4 w-4" }), "Resolve Hook"] })] })] }), jsxRuntimeExports.jsxs("div", { className: "space-y-4", children: [jsxRuntimeExports.jsxs("section", { children: [jsxRuntimeExports.jsx("h3", { className: "mb-2 text-[13px] font-medium uppercase tracking-wide", style: { color: "var(--ds-gray-700)" }, children: "Details" }), jsxRuntimeExports.jsx(AttributePanel, { data: displayData, moduleSpecifier, expiredAt: run.expiredAt, isLoading: loading, error: error2 ?? void 0, onStreamClick, onDecrypt, isDecrypting, resource })] }), resource !== "run" && rawEvents && jsxRuntimeExports.jsx("section", { children: jsxRuntimeExports.jsx(EventsList, { events: rawEvents, onLoadEventData, encryptionKey }) })] })] }) }), jsxRuntimeExports.jsx(ResolveHookModal, { isOpen: showResolveHookModal, onClose: () => setShowResolveHookModal(false), onSubmit: handleResolveHook, isSubmitting: resolvingHook })] });
80928
80921
  }
80929
80922
  const SEARCH_HEIGHT = 40;
80930
80923
  const SEARCH_GAP = 8;
@@ -88402,13 +88395,13 @@ class WorkflowRunCancelledError extends WorkflowError {
88402
88395
  }
88403
88396
  }
88404
88397
  class RunNotSupportedError extends WorkflowError {
88405
- constructor(runSpecVersion, worldSpecVersion) {
88406
- super(`Run requires spec version ${runSpecVersion}, but world supports version ${worldSpecVersion}. Please upgrade 'workflow' package.`);
88398
+ constructor(runSpecVersion, worldSpecVersion2) {
88399
+ super(`Run requires spec version ${runSpecVersion}, but world supports version ${worldSpecVersion2}. Please upgrade 'workflow' package.`);
88407
88400
  __publicField(this, "runSpecVersion");
88408
88401
  __publicField(this, "worldSpecVersion");
88409
88402
  this.name = "RunNotSupportedError";
88410
88403
  this.runSpecVersion = runSpecVersion;
88411
- this.worldSpecVersion = worldSpecVersion;
88404
+ this.worldSpecVersion = worldSpecVersion2;
88412
88405
  }
88413
88406
  static is(value) {
88414
88407
  return isError(value) && value.name === "RunNotSupportedError";
@@ -89403,7 +89396,7 @@ createLogger("webhook");
89403
89396
  createLogger("events");
89404
89397
  createLogger("adapter");
89405
89398
  const MAX_QUEUE_DELIVERIES = 48;
89406
- const version$1 = "4.2.2";
89399
+ const version$1 = "4.2.4";
89407
89400
  const execFileAsync = promisify(execFile);
89408
89401
  function parsePort$1(value, radix = 10) {
89409
89402
  const port = parseInt(value, radix);
@@ -114509,7 +114502,7 @@ function createQueue$2(config2) {
114509
114502
  "x-vqs-message-id": MessageId,
114510
114503
  "x-vqs-message-attempt": number$2()
114511
114504
  });
114512
- const createQueueHandler = (prefix, handler) => {
114505
+ const createQueueHandler2 = (prefix, handler) => {
114513
114506
  return async (req) => {
114514
114507
  const headers2 = HeaderParser.safeParse(Object.fromEntries(req.headers));
114515
114508
  if (!headers2.success || !req.body) {
@@ -114545,7 +114538,7 @@ function createQueue$2(config2) {
114545
114538
  };
114546
114539
  return {
114547
114540
  queue,
114548
- createQueueHandler,
114541
+ createQueueHandler: createQueueHandler2,
114549
114542
  getDeploymentId,
114550
114543
  registerHandler(prefix, handler) {
114551
114544
  directHandlers.set(prefix, handler);
@@ -115609,23 +115602,27 @@ function createStreamer$1(basedir, tag) {
115609
115602
  const chunksDir = path$3.join(basedir, "streams", "chunks");
115610
115603
  let removeListeners = () => {
115611
115604
  };
115605
+ let pollInterval = null;
115612
115606
  return new ReadableStream({
115613
115607
  async start(controller) {
115614
115608
  const deliveredChunkIds = /* @__PURE__ */ new Set();
115615
115609
  const bufferedEventChunks = [];
115616
115610
  let isReadingFromDisk = true;
115617
115611
  let pendingClose = false;
115612
+ let streamClosed = false;
115618
115613
  const chunkListener = (event) => {
115619
- deliveredChunkIds.add(event.chunkId);
115620
115614
  if (event.chunkData.byteLength === 0) {
115615
+ deliveredChunkIds.add(event.chunkId);
115621
115616
  return;
115622
115617
  }
115623
115618
  if (isReadingFromDisk) {
115619
+ deliveredChunkIds.add(event.chunkId);
115624
115620
  bufferedEventChunks.push({
115625
115621
  chunkId: event.chunkId,
115626
115622
  chunkData: Uint8Array.from(event.chunkData)
115627
115623
  });
115628
- } else {
115624
+ } else if (!deliveredChunkIds.has(event.chunkId)) {
115625
+ deliveredChunkIds.add(event.chunkId);
115629
115626
  controller.enqueue(Uint8Array.from(event.chunkData));
115630
115627
  }
115631
115628
  };
@@ -115634,8 +115631,13 @@ function createStreamer$1(basedir, tag) {
115634
115631
  pendingClose = true;
115635
115632
  return;
115636
115633
  }
115634
+ streamClosed = true;
115637
115635
  streamEmitter.off(`chunk:${name2}`, chunkListener);
115638
115636
  streamEmitter.off(`close:${name2}`, closeListener);
115637
+ if (pollInterval) {
115638
+ clearInterval(pollInterval);
115639
+ pollInterval = null;
115640
+ }
115639
115641
  try {
115640
115642
  controller.close();
115641
115643
  } catch {
@@ -115669,6 +115671,7 @@ function createStreamer$1(basedir, tag) {
115669
115671
  isComplete = true;
115670
115672
  break;
115671
115673
  }
115674
+ deliveredChunkIds.add(chunkId);
115672
115675
  if (chunk.chunk.byteLength) {
115673
115676
  controller.enqueue(Uint8Array.from(chunk.chunk));
115674
115677
  }
@@ -115693,10 +115696,64 @@ function createStreamer$1(basedir, tag) {
115693
115696
  controller.close();
115694
115697
  } catch {
115695
115698
  }
115699
+ return;
115700
+ }
115701
+ for (let i = 0; i < resolvedStartIndex && i < chunkFiles.length; i++) {
115702
+ const file2 = chunkFiles[i];
115703
+ const rawChunkId = file2.substring(name2.length + 1);
115704
+ const chunkId = tag ? rawChunkId.replace(`.${tag}`, "") : rawChunkId;
115705
+ deliveredChunkIds.add(chunkId);
115696
115706
  }
115707
+ let isPolling = false;
115708
+ pollInterval = setInterval(async () => {
115709
+ if (isPolling)
115710
+ return;
115711
+ isPolling = true;
115712
+ try {
115713
+ const { files: currentFiles, extMap: currentExtMap } = await listChunkFilesForStream(chunksDir, name2, tag);
115714
+ for (const file2 of currentFiles) {
115715
+ const rawChunkId = file2.substring(name2.length + 1);
115716
+ const chunkId = tag ? rawChunkId.replace(`.${tag}`, "") : rawChunkId;
115717
+ if (deliveredChunkIds.has(chunkId))
115718
+ continue;
115719
+ deliveredChunkIds.add(chunkId);
115720
+ const ext2 = currentExtMap.get(file2) ?? ".bin";
115721
+ const chunk = deserializeChunk(await readBuffer(path$3.join(chunksDir, `${file2}${ext2}`)));
115722
+ if ((chunk == null ? void 0 : chunk.eof) === true) {
115723
+ streamClosed = true;
115724
+ if (pollInterval) {
115725
+ clearInterval(pollInterval);
115726
+ pollInterval = null;
115727
+ }
115728
+ streamEmitter.off(`chunk:${name2}`, chunkListener);
115729
+ streamEmitter.off(`close:${name2}`, closeListener);
115730
+ try {
115731
+ controller.close();
115732
+ } catch {
115733
+ }
115734
+ return;
115735
+ }
115736
+ if (streamClosed)
115737
+ return;
115738
+ if (chunk.chunk.byteLength) {
115739
+ controller.enqueue(Uint8Array.from(chunk.chunk));
115740
+ }
115741
+ }
115742
+ } catch (err) {
115743
+ if (!(err instanceof Error && "code" in err)) {
115744
+ console.error("[world-local] Unexpected polling error:", err);
115745
+ }
115746
+ } finally {
115747
+ isPolling = false;
115748
+ }
115749
+ }, 100);
115697
115750
  },
115698
115751
  cancel() {
115699
115752
  removeListeners();
115753
+ if (pollInterval) {
115754
+ clearInterval(pollInterval);
115755
+ pollInterval = null;
115756
+ }
115700
115757
  }
115701
115758
  });
115702
115759
  }
@@ -115709,6 +115766,7 @@ function createLocalWorld(args) {
115709
115766
  const queue = createQueue$2(mergedConfig);
115710
115767
  const storage = createStorage$1(mergedConfig.dataDir, tag);
115711
115768
  return {
115769
+ specVersion: SPEC_VERSION_CURRENT,
115712
115770
  ...queue,
115713
115771
  ...createStorage$1(mergedConfig.dataDir, tag),
115714
115772
  ...instrumentObject$1("world.streams", {
@@ -115729,7 +115787,7 @@ function createLocalWorld(args) {
115729
115787
  const basedir = mergedConfig.dataDir;
115730
115788
  const hooksDir = path$3.join(basedir, "hooks");
115731
115789
  const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
115732
- const { HookSchema: HookSchema2 } = await import("./index-DbMFm9t3.js");
115790
+ const { HookSchema: HookSchema2 } = await import("./index-C64kz8oy.js");
115733
115791
  await Promise.all(taggedHookFiles.map(async (hookFile) => {
115734
115792
  const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
115735
115793
  if (hook == null ? void 0 : hook.token) {
@@ -115881,8 +115939,8 @@ function requireGetVercelOidcToken() {
115881
115939
  }
115882
115940
  try {
115883
115941
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
115884
- await import("./token-util-CdxtEAt7.js").then((n) => n.t),
115885
- await import("./token-BBou_ahS.js").then((n) => n.t)
115942
+ await import("./token-util-BAhz4ocz.js").then((n) => n.t),
115943
+ await import("./token-D_Q6dhhy.js").then((n) => n.t)
115886
115944
  ]);
115887
115945
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
115888
115946
  await refreshToken(options);
@@ -121047,7 +121105,7 @@ var QueueClient = class {
121047
121105
  setApi(this, new ApiClient({ ...options, region }));
121048
121106
  }
121049
121107
  };
121050
- const version = "4.1.0";
121108
+ const version = "4.1.2";
121051
121109
  const HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
121052
121110
  function httpLog(method, endpoint, status, ms2) {
121053
121111
  if (HTTP_DEBUG_ENABLED) {
@@ -121431,7 +121489,7 @@ function createQueue$1(config2) {
121431
121489
  throw error2;
121432
121490
  }
121433
121491
  };
121434
- const createQueueHandler = (_prefix, handler) => {
121492
+ const createQueueHandler2 = (_prefix, handler) => {
121435
121493
  const client2 = new QueueClient(clientOptions);
121436
121494
  const vqsHandler = client2.handleCallback(async (message2, metadata) => {
121437
121495
  if (!message2 || !metadata) {
@@ -121463,7 +121521,7 @@ function createQueue$1(config2) {
121463
121521
  }
121464
121522
  return deploymentId;
121465
121523
  };
121466
- return { queue, createQueueHandler, getDeploymentId };
121524
+ return { queue, createQueueHandler: createQueueHandler2, getDeploymentId };
121467
121525
  }
121468
121526
  const ResolveLatestDeploymentResponseSchema = object$1({
121469
121527
  id: string$3()
@@ -122337,6 +122395,7 @@ function createVercelWorld(config2) {
122337
122395
  var _a3, _b;
122338
122396
  const projectId = ((_a3 = config2 == null ? void 0 : config2.projectConfig) == null ? void 0 : _a3.projectId) || process.env.VERCEL_PROJECT_ID;
122339
122397
  return {
122398
+ specVersion: SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
122340
122399
  ...createQueue$1(config2),
122341
122400
  ...createStorage(config2),
122342
122401
  ...instrumentObject("world.streams", createStreamer(config2)),
@@ -122384,7 +122443,8 @@ const getWorldHandlers = () => {
122384
122443
  const _world = createWorld();
122385
122444
  globalSymbols$1[StubbedWorldCache] = _world;
122386
122445
  return {
122387
- createQueueHandler: _world.createQueueHandler
122446
+ createQueueHandler: _world.createQueueHandler,
122447
+ specVersion: _world.specVersion
122388
122448
  };
122389
122449
  };
122390
122450
  const getWorld = () => {
@@ -122416,14 +122476,14 @@ function parseHealthCheckPayload(message2) {
122416
122476
  function generateHealthCheckRunId() {
122417
122477
  return `wrun_${generateId()}`;
122418
122478
  }
122419
- async function handleHealthCheckMessage(healthCheck2, endpoint) {
122479
+ async function handleHealthCheckMessage(healthCheck2, endpoint, worldSpecVersion2) {
122420
122480
  const world = getWorld();
122421
122481
  const streamName = getHealthCheckStreamName(healthCheck2.correlationId);
122422
122482
  const response2 = JSON.stringify({
122423
122483
  healthy: true,
122424
122484
  endpoint,
122425
122485
  correlationId: healthCheck2.correlationId,
122426
- specVersion: SPEC_VERSION_CURRENT,
122486
+ specVersion: worldSpecVersion2 ?? SPEC_VERSION_CURRENT,
122427
122487
  workflowCoreVersion: version$1,
122428
122488
  timestamp: Date.now()
122429
122489
  });
@@ -127657,7 +127717,7 @@ async function start$1(workflow, argsOrOptions, options) {
127657
127717
  const ops = [];
127658
127718
  const runId = `wrun_${ulid()}`;
127659
127719
  const traceCarrier = await serializeTraceCarrier();
127660
- const specVersion = opts.specVersion ?? SPEC_VERSION_CURRENT;
127720
+ const specVersion = opts.specVersion ?? world.specVersion ?? SPEC_VERSION_SUPPORTS_EVENT_SOURCING;
127661
127721
  const v1Compat = isLegacySpecVersion(specVersion);
127662
127722
  const rawKey = await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, runId, {
127663
127723
  ...opts,
@@ -128045,10 +128105,11 @@ class Run {
128045
128105
  }
128046
128106
  }
128047
128107
  const DEFAULT_STEP_MAX_RETRIES = 3;
128048
- getWorldHandlers().createQueueHandler("__wkf_step_", async (message_, metadata) => {
128108
+ const { createQueueHandler, specVersion: worldSpecVersion } = getWorldHandlers();
128109
+ createQueueHandler("__wkf_step_", async (message_, metadata) => {
128049
128110
  const healthCheck2 = parseHealthCheckPayload(message_);
128050
128111
  if (healthCheck2) {
128051
- await handleHealthCheckMessage(healthCheck2, "step");
128112
+ await handleHealthCheckMessage(healthCheck2, "step", worldSpecVersion);
128052
128113
  return;
128053
128114
  }
128054
128115
  const { workflowName, workflowRunId, workflowStartedAt, stepId, traceCarrier: traceContext, requestedAt } = StepInvokePayloadSchema.parse(message_);
@@ -151855,7 +151916,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
151855
151916
  __proto__: null,
151856
151917
  loader
151857
151918
  }, Symbol.toStringTag, { value: "Module" }));
151858
- const serverManifest = { "entry": { "module": "/assets/entry.client-BiVEcoV8.js", "imports": ["/assets/index-BmZS3y7B.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-CHWaz-_g.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/mermaid-3ZIDBTTL-B00nsi3k.js"], "css": ["/assets/root-aMfmV5uh.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-CBUniDnp.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/workflow-graph-viewer-Cb_2KEX3.js", "/assets/mermaid-3ZIDBTTL-B00nsi3k.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-DHdCNGRJ.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/workflow-graph-viewer-Cb_2KEX3.js", "/assets/mermaid-3ZIDBTTL-B00nsi3k.js", "/assets/encryption-8OvC6eoJ.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-8cfb1d31.js", "version": "8cfb1d31", "sri": void 0 };
151919
+ const serverManifest = { "entry": { "module": "/assets/entry.client-BWsSsWQm.js", "imports": ["/assets/index-DQa-BExo.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-CLs7COa2.js", "imports": ["/assets/index-DQa-BExo.js", "/assets/mermaid-3ZIDBTTL-B_qZU5zW.js"], "css": ["/assets/root-aMfmV5uh.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-BMWyCqWy.js", "imports": ["/assets/index-DQa-BExo.js", "/assets/workflow-graph-viewer-D5yEggTb.js", "/assets/mermaid-3ZIDBTTL-B_qZU5zW.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-D7xkVxzE.js", "imports": ["/assets/index-DQa-BExo.js", "/assets/workflow-graph-viewer-D5yEggTb.js", "/assets/mermaid-3ZIDBTTL-B_qZU5zW.js", "/assets/encryption-80GMP4r0.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.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-c0697365.js", "version": "c0697365", "sri": void 0 };
151859
151920
  const assetsBuildDirectory = "build/client";
151860
151921
  const basename = "/";
151861
151922
  const future = { "unstable_optimizeDeps": false, "unstable_subResourceIntegrity": false, "unstable_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
@@ -151924,12 +151985,13 @@ const serverBuild = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
151924
151985
  ssr
151925
151986
  }, Symbol.toStringTag, { value: "Module" }));
151926
151987
  export {
151927
- requireTokenUtil as A,
151988
+ Qe as A,
151928
151989
  BaseEventSchema as B,
151929
- requireTokenError as C,
151990
+ requireTokenUtil as C,
151930
151991
  DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS as D,
151931
151992
  EVENT_DATA_REF_FIELDS as E,
151932
- serverBuild as F,
151993
+ requireTokenError as F,
151994
+ serverBuild as G,
151933
151995
  HookSchema as H,
151934
151996
  Ks as K,
151935
151997
  LegacySerializedDataSchemaV1 as L,
@@ -151955,16 +152017,16 @@ export {
151955
152017
  SPEC_VERSION_CURRENT as l,
151956
152018
  SPEC_VERSION_LEGACY as m,
151957
152019
  SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT as n,
151958
- StepSchema as o,
151959
- StepStatusSchema as p,
151960
- DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS as q,
152020
+ SPEC_VERSION_SUPPORTS_EVENT_SOURCING as o,
152021
+ StepSchema as p,
152022
+ StepStatusSchema as q,
151961
152023
  reenqueueActiveRuns as r,
151962
152024
  stripEventDataRefs as s,
151963
- WaitSchema as t,
152025
+ DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS as t,
151964
152026
  ulidToDate as u,
151965
152027
  validateUlidTimestamp as v,
151966
- WaitStatusSchema as w,
151967
- R as x,
151968
- jsxRuntimeExports as y,
151969
- Qe as z
152028
+ WaitSchema as w,
152029
+ WaitStatusSchema as x,
152030
+ R as y,
152031
+ jsxRuntimeExports as z
151970
152032
  };
@@ -1,5 +1,5 @@
1
- import { g as getDefaultExportFromCjs } from "./app-BjALV8M8.js";
2
- import { C as requireTokenError, A as requireTokenUtil } from "./server-build-DfI2avTQ.js";
1
+ import { g as getDefaultExportFromCjs } from "./app-fdUHF124.js";
2
+ import { F as requireTokenError, C as requireTokenUtil } from "./server-build-Mddyhj54.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,5 +1,5 @@
1
- import { g as getDefaultExportFromCjs } from "./app-BjALV8M8.js";
2
- import { A as requireTokenUtil } from "./server-build-DfI2avTQ.js";
1
+ import { g as getDefaultExportFromCjs } from "./app-fdUHF124.js";
2
+ import { C as requireTokenUtil } from "./server-build-Mddyhj54.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,4 +1,4 @@
1
- import { n } from "./assets/app-BjALV8M8.js";
1
+ import { n } from "./assets/app-fdUHF124.js";
2
2
  import "express";
3
3
  import "stream";
4
4
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workflow/web",
3
3
  "description": "Workflow Observability UI",
4
- "version": "4.1.1",
4
+ "version": "4.1.5",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "files": [
@@ -71,12 +71,12 @@
71
71
  "vite": "^6",
72
72
  "vitest": "^3",
73
73
  "jsdom": "^26",
74
- "@workflow/core": "4.2.2",
75
- "@workflow/errors": "4.1.0",
76
- "@workflow/utils": "4.1.0",
77
- "@workflow/web-shared": "4.1.2",
78
- "@workflow/world": "4.1.0",
79
- "@workflow/world-vercel": "4.1.0"
74
+ "@workflow/core": "4.2.4",
75
+ "@workflow/errors": "4.1.1",
76
+ "@workflow/utils": "4.1.1",
77
+ "@workflow/web-shared": "4.1.5",
78
+ "@workflow/world": "4.1.1",
79
+ "@workflow/world-vercel": "4.1.2"
80
80
  },
81
81
  "scripts": {
82
82
  "dev": "react-router dev",
@@ -1 +0,0 @@
1
- async function y(t){if(t.byteLength!==32)throw new Error(`Encryption key must be exactly 32 bytes, got ${t.byteLength}`);return globalThis.crypto.subtle.importKey("raw",t,"AES-GCM",!1,["encrypt","decrypt"])}async function E(t,e){if(e.byteLength<28)throw new Error(`Encrypted data too short: expected at least 28 bytes, got ${e.byteLength}`);const n=e.subarray(0,12),r=e.subarray(12),o=await globalThis.crypto.subtle.decrypt({name:"AES-GCM",iv:n,tagLength:128},t,r);return new Uint8Array(o)}export{E as decrypt,y as importKey};