@workflow/web 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52741,10 +52741,10 @@ class $ZodRegistry {
52741
52741
  return this._map.has(schema);
52742
52742
  }
52743
52743
  }
52744
- function registry() {
52744
+ function registry$1() {
52745
52745
  return new $ZodRegistry();
52746
52746
  }
52747
- (_a$2 = globalThis).__zod_globalRegistry ?? (_a$2.__zod_globalRegistry = registry());
52747
+ (_a$2 = globalThis).__zod_globalRegistry ?? (_a$2.__zod_globalRegistry = registry$1());
52748
52748
  const globalRegistry = globalThis.__zod_globalRegistry;
52749
52749
  const INVALID = Symbol.for("zod.compile.invalid");
52750
52750
  const FALLBACK_FLAG = Symbol.for("zod.compile.fallback");
@@ -60568,6 +60568,26 @@ class WorkflowStartError extends WorkflowError {
60568
60568
  return isError(value) && value.name === "WorkflowStartError";
60569
60569
  }
60570
60570
  }
60571
+ const DYNAMIC_WORKFLOWS_ENV_VAR = "WORKFLOW_EXPERIMENTAL_DYNAMIC_WORKFLOWS";
60572
+ const DYNAMIC_WORKFLOWS_DOCS_URL = "https://workflow-sdk.dev/docs/advanced/dynamic-workflows#enabling-dynamic-workflows";
60573
+ const DYNAMIC_WORKFLOWS_NOT_ENABLED_HINT = `Set the ${DYNAMIC_WORKFLOWS_ENV_VAR}=1 environment variable on your project, then redeploy (or restart your dev server) so the new value takes effect.`;
60574
+ class DynamicWorkflowsNotEnabledError extends WorkflowError {
60575
+ /**
60576
+ * @param message - What was refused, e.g. that `start()` created no run.
60577
+ * The fix-it hint and a docs link are appended to it.
60578
+ */
60579
+ constructor(message2, options) {
60580
+ super(appendFramedDetails(message2, [
60581
+ { label: "hint", value: DYNAMIC_WORKFLOWS_NOT_ENABLED_HINT },
60582
+ { label: "docs", value: DYNAMIC_WORKFLOWS_DOCS_URL }
60583
+ ]), { cause: options == null ? void 0 : options.cause });
60584
+ __publicField(this, "fatal", true);
60585
+ this.name = "DynamicWorkflowsNotEnabledError";
60586
+ }
60587
+ static is(value) {
60588
+ return isError(value) && value.name === "DynamicWorkflowsNotEnabledError";
60589
+ }
60590
+ }
60571
60591
  class WorkflowRunFailedError extends WorkflowError {
60572
60592
  constructor(runId, error2, options = {}) {
60573
60593
  const message2 = error2 instanceof Error ? error2.message : typeof error2 === "string" ? error2 : error2 && typeof error2 === "object" && "message" in error2 ? String(error2.message) : "Unknown error";
@@ -63364,7 +63384,7 @@ function replaceEncryptedAndExpiredWithMarkers(resource) {
63364
63384
  }
63365
63385
  async function hydrateResourceIOAsync(resource, key, extraRevivers) {
63366
63386
  const { hydrateDataWithKey: hydrateDataWithKey2, deriveRunPayloadKeys: deriveRunPayloadKeys2 } = await Promise.resolve().then(() => serializationFormat);
63367
- const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-B228nPFT.js");
63387
+ const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-y4X_FyMk.js");
63368
63388
  ensureZstdDecoderRegistered();
63369
63389
  const cryptoKey = key ? await deriveRunPayloadKeys2(key) : void 0;
63370
63390
  const revivers = extraRevivers ? { ...getRevivers(), ...extraRevivers } : getRevivers();
@@ -101112,7 +101132,7 @@ var Ts = (e) => {
101112
101132
  for (; t > 0 && e[t - 1] === `
101113
101133
  `; ) t--;
101114
101134
  return e.slice(0, t);
101115
- }, Ps = reactExports.lazy(() => import("./highlighted-body-JLMTFACH-j-e-XD1V.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r2 = false, startLine: s2, lineNumbers: a2, ...i }) => {
101135
+ }, Ps = reactExports.lazy(() => import("./highlighted-body-JLMTFACH-Bj8JsfUl.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r2 = false, startLine: s2, lineNumbers: a2, ...i }) => {
101116
101136
  let l = w(), { codeBlockMaxHeight: c2 } = reactExports.useContext(R), d2 = reactExports.useMemo(() => Ts(e), [e]), p2 = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
101117
101137
  `).map((b2) => [{ content: b2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
101118
101138
  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 }) })] }) });
@@ -101547,7 +101567,7 @@ var Co = ({ children: e, className: t, maxHeight: n, showControls: o, showCopy:
101547
101567
  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;
101548
101568
  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 }) })] });
101549
101569
  };
101550
- var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = reactExports.lazy(() => import("./mermaid-WFAXDIZX-B19UvP0H.js").then((e) => ({ default: e.Mermaid }))), La = /language-([^\s]+)/, Da = "node";
101570
+ var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = reactExports.lazy(() => import("./mermaid-WFAXDIZX-C_v93dNU.js").then((e) => ({ default: e.Mermaid }))), La = /language-([^\s]+)/, Da = "node";
101551
101571
  function H(e, t) {
101552
101572
  let n = Object.keys(e);
101553
101573
  if (n.length !== Object.keys(t).length) return false;
@@ -110957,6 +110977,63 @@ async function getWorldLazy() {
110957
110977
  }
110958
110978
  throw new Error("Workflow world runtime was not initialized. Import from the host workflow entrypoints (`workflow`, `workflow/api`, or `workflow/runtime`) so @workflow/core/runtime/world-init can register getWorld before getWorldLazy() is used.");
110959
110979
  }
110980
+ const REGISTRY_KEY = Symbol.for("@workflow/core//localAbortDelivery");
110981
+ const PUBLISHED_TTL_MS = 6e4;
110982
+ const MAX_PUBLISHED = 256;
110983
+ function registry() {
110984
+ const holder = globalThis;
110985
+ holder[REGISTRY_KEY] ?? (holder[REGISTRY_KEY] = { listeners: /* @__PURE__ */ new Map(), published: /* @__PURE__ */ new Map() });
110986
+ return holder[REGISTRY_KEY];
110987
+ }
110988
+ function keyOf(runId, streamName) {
110989
+ return `${runId}\0${streamName}`;
110990
+ }
110991
+ function prune(published, now2) {
110992
+ for (const [key, entry2] of published) {
110993
+ if (now2 - entry2.at < PUBLISHED_TTL_MS && published.size <= MAX_PUBLISHED)
110994
+ break;
110995
+ published.delete(key);
110996
+ }
110997
+ }
110998
+ function publishLocalAbort(runId, streamName, packet) {
110999
+ const { listeners, published } = registry();
111000
+ const key = keyOf(runId, streamName);
111001
+ const now2 = Date.now();
111002
+ published.delete(key);
111003
+ published.set(key, { packet, at: now2 });
111004
+ prune(published, now2);
111005
+ for (const listener of listeners.get(key) ?? []) {
111006
+ try {
111007
+ listener(packet);
111008
+ } catch {
111009
+ }
111010
+ }
111011
+ }
111012
+ function onLocalAbort(runId, streamName, listener) {
111013
+ const { listeners, published } = registry();
111014
+ const key = keyOf(runId, streamName);
111015
+ prune(published, Date.now());
111016
+ const recent = published.get(key);
111017
+ if (recent) {
111018
+ listener(recent.packet);
111019
+ return () => {
111020
+ };
111021
+ }
111022
+ let set2 = listeners.get(key);
111023
+ if (!set2) {
111024
+ set2 = /* @__PURE__ */ new Set();
111025
+ listeners.set(key, set2);
111026
+ }
111027
+ set2.add(listener);
111028
+ return () => {
111029
+ const current2 = listeners.get(key);
111030
+ if (!current2)
111031
+ return;
111032
+ current2.delete(listener);
111033
+ if (current2.size === 0)
111034
+ listeners.delete(key);
111035
+ };
111036
+ }
110960
111037
  const HEADER_SIZE = 4;
110961
111038
  const MAX_PACKET_SIZE = 1e8;
110962
111039
  function frameAbortStreamPayload(payload) {
@@ -113437,6 +113514,7 @@ function attachAbortListenerOnce(signal, streamName, runId, cryptoKey, ops, fram
113437
113514
  try {
113438
113515
  const key = await resolveEncryptionKey(cryptoKey);
113439
113516
  const payload = await dehydrateStepArguments({ aborted: true, reason: signal.reason }, runId, key);
113517
+ publishLocalAbort(runId, streamName, payload);
113440
113518
  const writable = new WorkflowServerWritableStream(runId, streamName);
113441
113519
  const writer = writable.getWriter();
113442
113520
  await writer.write(framedAbortStreams ? frameAbortStreamPayload(payload) : payload);
@@ -113690,40 +113768,78 @@ function getStepReducers(global2 = globalThis, ops, runId, cryptoKey, framedByte
113690
113768
  }
113691
113769
  };
113692
113770
  }
113693
- function setupAbortStreamReader(controller, runId, streamName, ops, cryptoKey) {
113771
+ const LOCAL_ABORT_LISTEN_AFTER_STREAM_END_MS = 60 * 60 * 1e3;
113772
+ function setupAbortStreamReader(controller, runId, streamName, ops, cryptoKey, untilCancelled) {
113694
113773
  const readerCancel = new AbortController();
113774
+ let resolveLocal;
113775
+ const localPacket = new Promise((resolve2) => {
113776
+ resolveLocal = resolve2;
113777
+ });
113778
+ const stopLocal = onLocalAbort(runId, streamName, (packet) => resolveLocal == null ? void 0 : resolveLocal(packet));
113695
113779
  ops.push((async () => {
113780
+ var _a3;
113696
113781
  let reader;
113782
+ let keepListening = false;
113697
113783
  try {
113698
- const readable2 = new WorkflowServerReadableStream(runId, streamName);
113699
- reader = readable2.getReader();
113700
113784
  let keyPromise;
113701
113785
  let decoded;
113702
113786
  const decodePacket = async (packet) => {
113703
113787
  keyPromise ?? (keyPromise = resolveEncryptionKey(cryptoKey));
113704
113788
  decoded = await hydrateStepArguments(packet, runId, await keyPromise);
113705
113789
  };
113706
- const result = await Promise.race([
113707
- readAbortStreamPacket(reader, decodePacket),
113708
- new Promise((resolve2) => {
113709
- if (readerCancel.signal.aborted) {
113710
- resolve2(void 0);
113711
- return;
113712
- }
113713
- readerCancel.signal.addEventListener("abort", () => resolve2(void 0), { once: true });
113714
- })
113715
- ]);
113716
- if (result) {
113790
+ const abortWith = async (packet, already) => {
113717
113791
  try {
113792
+ decoded = already;
113718
113793
  if (decoded === void 0)
113719
- await decodePacket(result);
113794
+ await decodePacket(packet);
113720
113795
  controller.abort(decoded == null ? void 0 : decoded.reason);
113721
113796
  } catch {
113722
113797
  controller.abort();
113723
113798
  }
113799
+ };
113800
+ const cancelled = new Promise((resolve2) => {
113801
+ if (readerCancel.signal.aborted) {
113802
+ resolve2(void 0);
113803
+ return;
113804
+ }
113805
+ readerCancel.signal.addEventListener("abort", () => resolve2(void 0), { once: true });
113806
+ });
113807
+ let streamPacket;
113808
+ try {
113809
+ const readable2 = new WorkflowServerReadableStream(runId, streamName);
113810
+ reader = readable2.getReader();
113811
+ streamPacket = readAbortStreamPacket(reader, decodePacket);
113812
+ } catch {
113813
+ streamPacket = new Promise(() => {
113814
+ });
113815
+ }
113816
+ const local = localPacket.then((packet) => ({ packet, local: true }));
113817
+ const winner = await Promise.race([
113818
+ local,
113819
+ untilCancelled ? (
113820
+ // An empty or failed stream is not the end of the abort.
113821
+ streamPacket.then((packet) => packet ? { packet, local: false } : void 0, () => void 0)
113822
+ ) : streamPacket.then((packet) => packet ? { packet, local: false } : void 0),
113823
+ cancelled
113824
+ ]);
113825
+ if (winner) {
113826
+ await abortWith(winner.packet, winner.local ? void 0 : decoded);
113827
+ } else if (untilCancelled && !readerCancel.signal.aborted) {
113828
+ keepListening = true;
113829
+ const expiry = setTimeout(stopLocal, LOCAL_ABORT_LISTEN_AFTER_STREAM_END_MS);
113830
+ (_a3 = expiry.unref) == null ? void 0 : _a3.call(expiry);
113831
+ void Promise.race([local, cancelled]).then(async (late) => {
113832
+ clearTimeout(expiry);
113833
+ stopLocal();
113834
+ if (late)
113835
+ await abortWith(late.packet, void 0);
113836
+ }).catch(() => {
113837
+ });
113724
113838
  }
113725
113839
  } catch {
113726
113840
  } finally {
113841
+ if (!keepListening)
113842
+ stopLocal();
113727
113843
  void (reader == null ? void 0 : reader.cancel().catch(() => {
113728
113844
  }));
113729
113845
  }
@@ -113755,13 +113871,13 @@ function copyAbortInternals(src2, dest) {
113755
113871
  d2[ABORT_READER_CANCEL] = s2[ABORT_READER_CANCEL];
113756
113872
  }
113757
113873
  }
113758
- function reviveAbortController(value, ops, runId, cryptoKey) {
113874
+ function reviveAbortController(value, ops, runId, cryptoKey, untilCancelled = false) {
113759
113875
  const controller = new AbortController();
113760
113876
  if (value.aborted) {
113761
113877
  tagAbortPair(controller, value);
113762
113878
  controller.abort(value.reason);
113763
113879
  } else if (value.streamName) {
113764
- const readerCancel = setupAbortStreamReader(controller, runId, value.streamName, ops, cryptoKey);
113880
+ const readerCancel = setupAbortStreamReader(controller, runId, value.streamName, ops, cryptoKey, untilCancelled);
113765
113881
  tagAbortPair(controller, value, readerCancel);
113766
113882
  } else {
113767
113883
  tagAbortPair(controller, value);
@@ -113776,6 +113892,7 @@ function reviveAbortController(value, ops, runId, cryptoKey) {
113776
113892
  ctx.ops.push((async () => {
113777
113893
  try {
113778
113894
  const payload = await dehydrateStepArguments({ aborted: true, reason }, ctx.workflowMetadata.workflowRunId, ctx.encryptionKey);
113895
+ publishLocalAbort(ctx.workflowMetadata.workflowRunId, value.streamName, payload);
113779
113896
  const writable = new WorkflowServerWritableStream(ctx.workflowMetadata.workflowRunId, value.streamName);
113780
113897
  const writer = writable.getWriter();
113781
113898
  await writer.write(frameAbortStreamPayload(payload));
@@ -113800,13 +113917,13 @@ function reviveAbortController(value, ops, runId, cryptoKey) {
113800
113917
  };
113801
113918
  return controller;
113802
113919
  }
113803
- function reviveAbortSignal(value, ops, runId, cryptoKey) {
113920
+ function reviveAbortSignal(value, ops, runId, cryptoKey, untilCancelled = false) {
113804
113921
  const controller = new AbortController();
113805
113922
  if (value.aborted) {
113806
113923
  tagAbortPair(controller, value);
113807
113924
  controller.abort(value.reason);
113808
113925
  } else if (value.streamName) {
113809
- const readerCancel = setupAbortStreamReader(controller, runId, value.streamName, ops, cryptoKey);
113926
+ const readerCancel = setupAbortStreamReader(controller, runId, value.streamName, ops, cryptoKey, untilCancelled);
113810
113927
  tagAbortPair(controller, value, readerCancel);
113811
113928
  } else {
113812
113929
  tagAbortPair(controller, value);
@@ -114303,8 +114420,10 @@ function getStepRevivers(global2 = globalThis, ops, runId, cryptoKey, deployment
114303
114420
  }
114304
114421
  return writable;
114305
114422
  },
114306
- AbortController: (value) => reviveAbortController(value, ops, runId, cryptoKey),
114307
- AbortSignal: (value) => reviveAbortSignal(value, ops, runId, cryptoKey)
114423
+ // A step's readers are cancelled when the step returns
114424
+ // (`cancelAbortReaders`), so they may outlive an empty stream.
114425
+ AbortController: (value) => reviveAbortController(value, ops, runId, cryptoKey, true),
114426
+ AbortSignal: (value) => reviveAbortSignal(value, ops, runId, cryptoKey, true)
114308
114427
  };
114309
114428
  }
114310
114429
  async function maybeEncrypt(data2, key) {
@@ -114670,7 +114789,7 @@ function getCompressionMode(capabilities) {
114670
114789
  }
114671
114790
  return capabilities.supportedFormats.has(SerializationFormat$1.ZSTD) ? true : "gzip";
114672
114791
  }
114673
- const version$2 = "5.7.0";
114792
+ const version$2 = "5.7.1";
114674
114793
  globalSingleton("@workflow/core//envWarnings", 1, () => ({
114675
114794
  replayTimeoutValues: /* @__PURE__ */ new Set(),
114676
114795
  maxInlineStepsValues: /* @__PURE__ */ new Set(),
@@ -146703,8 +146822,8 @@ function requireGetVercelOidcToken() {
146703
146822
  }
146704
146823
  try {
146705
146824
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
146706
- await import("./token-util-D91uzxKb.js").then((n) => n.t),
146707
- await import("./token-CPc7to8F.js").then((n) => n.t)
146825
+ await import("./token-util-spPPOelu.js").then((n) => n.t),
146826
+ await import("./token-b1ZjKN2Q.js").then((n) => n.t)
146708
146827
  ]);
146709
146828
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
146710
146829
  await refreshToken(options);
@@ -147268,7 +147387,7 @@ function requireDist() {
147268
147387
  }
147269
147388
  var distExports = requireDist();
147270
147389
  const QUEUE_REQUEST_DEADLINE_CODE = "WORKFLOW_QUEUE_REQUEST_DEADLINE";
147271
- const version$1 = "5.7.0";
147390
+ const version$1 = "5.7.1";
147272
147391
  const pools = globalSingleton("@workflow/world-vercel//httpPools", 1, () => ({
147273
147392
  dispatcher: void 0,
147274
147393
  queueDispatcher: void 0,
@@ -147636,7 +147755,7 @@ function getDefaultStreamCloseDispatcher() {
147636
147755
  return pools.streamCloseDispatcher;
147637
147756
  }
147638
147757
  async function getDeadline() {
147639
- const { getDeadline: getDeadline2 } = await import("./index-BZ4PHwlc.js").then((n) => n.i);
147758
+ const { getDeadline: getDeadline2 } = await import("./index-DGn_6xEN.js").then((n) => n.i);
147640
147759
  return getDeadline2();
147641
147760
  }
147642
147761
  class ReplayEventObserverError extends Error {
@@ -159005,7 +159124,7 @@ function beginNormalWsClose(ws, reason) {
159005
159124
  await observed;
159006
159125
  span == null ? void 0 : span.setAttribute("workflow.stream.ws.close_cleanup_timeout", timedOut);
159007
159126
  });
159008
- void import("./index-BZ4PHwlc.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
159127
+ void import("./index-DGn_6xEN.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
159009
159128
  });
159010
159129
  void cleanup.catch(() => {
159011
159130
  });
@@ -159390,7 +159509,7 @@ class VercelStreamWriteSession {
159390
159509
  return http3;
159391
159510
  });
159392
159511
  const [{ WebSocket: WebSocketImpl }, http2] = await Promise.all([
159393
- import("./wrapper-BKFP-Nku.js"),
159512
+ import("./wrapper-Cc-ChiPM.js"),
159394
159513
  httpPromise
159395
159514
  ]);
159396
159515
  if (this.mode !== "connecting")
@@ -164828,7 +164947,7 @@ const VERCEL_REQUEST_CONTEXT = Symbol.for("@vercel/request-context");
164828
164947
  function waitUntil(promise2) {
164829
164948
  if (!(VERCEL_REQUEST_CONTEXT in globalThis))
164830
164949
  return;
164831
- void import("./index-BZ4PHwlc.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
164950
+ void import("./index-DGn_6xEN.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
164832
164951
  waitUntil2(promise2);
164833
164952
  });
164834
164953
  }
@@ -171566,7 +171685,7 @@ function isPermanentWorldError(error2) {
171566
171685
  }
171567
171686
  function assertDynamicWorkflowsEnabled() {
171568
171687
  if (!isDynamicWorkflowsEnabled()) {
171569
- throw dynamicStartRefusal(`Dynamic workflows are disabled on this deployment, so no run was created. Set ${DYNAMIC_WORKFLOWS_ENV}=1 on the deployment to enable them.`);
171688
+ throw new DynamicWorkflowsNotEnabledError("Dynamic workflows are not enabled for this project, so start() did not create a run for the given workflow source.");
171570
171689
  }
171571
171690
  }
171572
171691
  async function start$1(workflow, argsOrOptions, 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 { r as reactExports, R, W as Wc, j as jsxRuntimeExports, I as In } from "./app-CR0ndNHl.js";
5
+ import { r as reactExports, R, W as Wc, j as jsxRuntimeExports, I as In } from "./app-CNGxG3wL.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-CR0ndNHl.js";
19
+ import { l as commonjsGlobal } from "./app-CNGxG3wL.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-BKFP-Nku.js");
1203
+ const ws = await import("./wrapper-Cc-ChiPM.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-CIYqGbhA.js").then((n) => n.t),
1598
- await import("./token-LLLE1g03.js").then((n) => n.t)
1597
+ await import("./token-util-BJhEZw83.js").then((n) => n.t),
1598
+ await import("./token-5fcfNNDG.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-CR0ndNHl.js";
5
+ import { c as co } from "./app-CNGxG3wL.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-CR0ndNHl.js";
6
- import { a as requireDist, b as requireTokenError, r as requireTokenUtil } from "./index-BZ4PHwlc.js";
5
+ import { h as getDefaultExportFromCjs } from "./app-CNGxG3wL.js";
6
+ import { a as requireDist, b as requireTokenError, r as requireTokenUtil } from "./index-DGn_6xEN.js";
7
7
  function _mergeNamespaces(n, m) {
8
8
  for (var i = 0; i < m.length; i++) {
9
9
  const e = m[i];
@@ -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 { k as requireTokenError, i as requireTokenUtil, h as getDefaultExportFromCjs } from "./app-CR0ndNHl.js";
5
+ import { k as requireTokenError, i as requireTokenUtil, h as getDefaultExportFromCjs } from "./app-CNGxG3wL.js";
6
6
  function _mergeNamespaces(n, m) {
7
7
  for (var i = 0; i < m.length; i++) {
8
8
  const e = m[i];
@@ -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-CR0ndNHl.js";
6
- import { r as requireTokenUtil } from "./index-BZ4PHwlc.js";
5
+ import { h as getDefaultExportFromCjs } from "./app-CNGxG3wL.js";
6
+ import { r as requireTokenUtil } from "./index-DGn_6xEN.js";
7
7
  function _mergeNamespaces(n, m) {
8
8
  for (var i = 0; i < m.length; i++) {
9
9
  const e = m[i];
@@ -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 { h as getDefaultExportFromCjs, i as requireTokenUtil } from "./app-CR0ndNHl.js";
5
+ import { h as getDefaultExportFromCjs, i as requireTokenUtil } from "./app-CNGxG3wL.js";
6
6
  function _mergeNamespaces(n, m) {
7
7
  for (var i = 0; i < m.length; i++) {
8
8
  const e = m[i];
@@ -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 { b as WebSocket } from "./app-CR0ndNHl.js";
6
- import { p, d, s, w, e, f, g } from "./app-CR0ndNHl.js";
5
+ import { b as WebSocket } from "./app-CNGxG3wL.js";
6
+ import { p, d, s, w, e, f, g } from "./app-CNGxG3wL.js";
7
7
  import "node:stream";
8
8
  import "stream";
9
9
  import "util";
@@ -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 { a as registerZstdDecoder } from "./app-CR0ndNHl.js";
5
+ import { a as registerZstdDecoder } from "./app-CNGxG3wL.js";
6
6
  import "node:stream";
7
7
  import "stream";
8
8
  import "util";
@@ -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 { m } from "./assets/app-CR0ndNHl.js";
5
+ import { m } from "./assets/app-CNGxG3wL.js";
6
6
  import "node:stream";
7
7
  import "stream";
8
8
  import "util";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workflow/web",
3
3
  "description": "Workflow Observability UI",
4
- "version": "5.3.0",
4
+ "version": "5.3.1",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "files": [
@@ -40,7 +40,7 @@
40
40
  "directory": "packages/web"
41
41
  },
42
42
  "dependencies": {
43
- "@workflow/world-local": "5.5.0",
43
+ "@workflow/world-local": "5.5.1",
44
44
  "srvx": "^0.12.4"
45
45
  },
46
46
  "devDependencies": {
@@ -63,12 +63,12 @@
63
63
  "@types/react": "19",
64
64
  "@types/react-dom": "19",
65
65
  "@vercel/react-router": "1.3.7",
66
- "@workflow/core": "5.7.0",
67
- "@workflow/errors": "5.1.4",
66
+ "@workflow/core": "5.7.1",
67
+ "@workflow/errors": "5.1.5",
68
68
  "@workflow/utils": "5.1.1",
69
- "@workflow/web-shared": "5.3.0",
69
+ "@workflow/web-shared": "5.3.1",
70
70
  "@workflow/world": "5.3.0",
71
- "@workflow/world-vercel": "5.7.0",
71
+ "@workflow/world-vercel": "5.7.1",
72
72
  "@xyflow/react": "12.12.1",
73
73
  "cbor-x": "^1",
74
74
  "class-variance-authority": "0.7.1",