@workflow/web 4.1.26 → 4.1.27
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.
- package/build/server/assets/{app-B1cjUJ8B.js → app-uVbY_-qI.js} +1 -1
- package/build/server/assets/{highlighted-body-B3W2YXNL-D7styBk6.js → highlighted-body-B3W2YXNL-BAlPxI2y.js} +2 -2
- package/build/server/assets/{index-D_AI8hkf.js → index-ClImPOu-.js} +3 -3
- package/build/server/assets/{mermaid-3ZIDBTTL-b9Kqgreu.js → mermaid-3ZIDBTTL-Ccs470KM.js} +2 -2
- package/build/server/assets/{server-build-CRL4YkrL.js → server-build-tMGygzbW.js} +27 -13
- package/build/server/assets/{token-CiFjsKMS.js → token-NxX4H9ze.js} +2 -2
- package/build/server/assets/{token-util-BcXLU8tX.js → token-util-CXI_HnNu.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +4 -4
|
@@ -9180,7 +9180,7 @@ const app = express();
|
|
|
9180
9180
|
app.all(
|
|
9181
9181
|
"/{*splat}",
|
|
9182
9182
|
createRequestHandler({
|
|
9183
|
-
build: () => import("./server-build-
|
|
9183
|
+
build: () => import("./server-build-tMGygzbW.js").then((n) => n.a7)
|
|
9184
9184
|
})
|
|
9185
9185
|
);
|
|
9186
9186
|
app.use(
|
|
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { a1 as R, a2 as Ks, a3 as jsxRuntimeExports, a4 as Qe } from "./server-build-
|
|
6
|
-
import { r as reactExports } from "./app-
|
|
5
|
+
import { a1 as R, a2 as Ks, a3 as jsxRuntimeExports, a4 as Qe } from "./server-build-tMGygzbW.js";
|
|
6
|
+
import { r as reactExports } from "./app-uVbY_-qI.js";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "util";
|
|
9
9
|
import "crypto";
|
|
@@ -2,9 +2,9 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { H as HookSchema } from "./server-build-
|
|
6
|
-
import { B, D, a, E, b, c, d, e, L, M, f, g, P, Q, h, R, S, i, j, k, l, m, n, o, p, T, q, r, s, t, u, V, W, v, w, x, y, z, A, C, F, G, I, J, K, O, U, X, Y, Z, _, $, a0 } from "./server-build-
|
|
7
|
-
import "./app-
|
|
5
|
+
import { H as HookSchema } from "./server-build-tMGygzbW.js";
|
|
6
|
+
import { B, D, a, E, b, c, d, e, L, M, f, g, P, Q, h, R, S, i, j, k, l, m, n, o, p, T, q, r, s, t, u, V, W, v, w, x, y, z, A, C, F, G, I, J, K, O, U, X, Y, Z, _, $, a0 } from "./server-build-tMGygzbW.js";
|
|
7
|
+
import "./app-uVbY_-qI.js";
|
|
8
8
|
import "stream";
|
|
9
9
|
import "express";
|
|
10
10
|
import "node:stream";
|
|
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { N as Nt } from "./server-build-
|
|
6
|
-
import "./app-
|
|
5
|
+
import { N as Nt } from "./server-build-tMGygzbW.js";
|
|
6
|
+
import "./app-uVbY_-qI.js";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "express";
|
|
9
9
|
import "node:stream";
|
|
@@ -18,7 +18,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
18
18
|
if (typeof globalThis.require === "undefined") {
|
|
19
19
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
20
20
|
}
|
|
21
|
-
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-
|
|
21
|
+
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-uVbY_-qI.js";
|
|
22
22
|
import require$$0$5, { PassThrough, Transform as Transform$1 } from "node:stream";
|
|
23
23
|
import require$$0 from "util";
|
|
24
24
|
import require$$1 from "crypto";
|
|
@@ -81973,7 +81973,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
81973
81973
|
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 });
|
|
81974
81974
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
81975
81975
|
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 }) });
|
|
81976
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-
|
|
81976
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-BAlPxI2y.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
81977
81977
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
81978
81978
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
81979
81979
|
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 }) })] }) });
|
|
@@ -82295,7 +82295,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
|
|
|
82295
82295
|
}, []), 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] });
|
|
82296
82296
|
};
|
|
82297
82297
|
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 }) })] });
|
|
82298
|
-
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-
|
|
82298
|
+
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-Ccs470KM.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
|
|
82299
82299
|
function ke(e, t) {
|
|
82300
82300
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
82301
82301
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -92204,7 +92204,7 @@ createLogger("build", {
|
|
|
92204
92204
|
debugNamespace: "workflow:build"
|
|
92205
92205
|
});
|
|
92206
92206
|
const MAX_QUEUE_DELIVERIES = 48;
|
|
92207
|
-
const version$1 = "4.8.
|
|
92207
|
+
const version$1 = "4.8.11";
|
|
92208
92208
|
const execFileAsync = promisify(execFile);
|
|
92209
92209
|
function parsePort$1(value, radix = 10) {
|
|
92210
92210
|
const port = parseInt(value, radix);
|
|
@@ -121961,7 +121961,7 @@ function createLocalWorld(args) {
|
|
|
121961
121961
|
const basedir = mergedConfig.dataDir;
|
|
121962
121962
|
const hooksDir = path$3.join(basedir, "hooks");
|
|
121963
121963
|
const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
|
|
121964
|
-
const { HookSchema: HookSchema2 } = await import("./index-
|
|
121964
|
+
const { HookSchema: HookSchema2 } = await import("./index-ClImPOu-.js");
|
|
121965
121965
|
await Promise.all(taggedHookFiles.map(async (hookFile) => {
|
|
121966
121966
|
const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
|
|
121967
121967
|
if (hook == null ? void 0 : hook.token) {
|
|
@@ -122321,12 +122321,15 @@ function createEventsDispatcher(agentOverrides) {
|
|
|
122321
122321
|
...h2 ? getEventsAgentOptions() : getEventsAgentOptionsNoH2(),
|
|
122322
122322
|
...agentOverrides
|
|
122323
122323
|
}), getEventsRetryAgentOptions());
|
|
122324
|
-
if (!h2) {
|
|
122324
|
+
if (!h2 || !supportsCompose(agent2)) {
|
|
122325
122325
|
return agent2;
|
|
122326
122326
|
}
|
|
122327
122327
|
const streamedBodyAgent = new undiciExports.RetryAgent(new undiciExports.Agent({ ...getEventsAgentOptionsNoH2(), ...agentOverrides }), getEventsRetryAgentOptions());
|
|
122328
122328
|
return withBoundLifecycle(agent2, agent2.compose(createH2MultiplexInterceptor(streamedBodyAgent)), streamedBodyAgent);
|
|
122329
122329
|
}
|
|
122330
|
+
function supportsCompose(dispatcher2) {
|
|
122331
|
+
return typeof dispatcher2.compose === "function";
|
|
122332
|
+
}
|
|
122330
122333
|
function withBoundLifecycle(agent2, composed, companion) {
|
|
122331
122334
|
return new Proxy(composed, {
|
|
122332
122335
|
get: (target2, key) => {
|
|
@@ -122347,7 +122350,8 @@ function createStreamDispatcher(retryOptions, agentOverrides) {
|
|
|
122347
122350
|
return new undiciExports.RetryAgent(new undiciExports.Agent({ ...getStreamAgentOptions(), ...agentOverrides }), retryOptions);
|
|
122348
122351
|
}
|
|
122349
122352
|
function createQueueDispatcher() {
|
|
122350
|
-
|
|
122353
|
+
const agent2 = new undiciExports.Agent(getQueueAgentOptions());
|
|
122354
|
+
return new undiciExports.RetryAgent(supportsCompose(agent2) ? agent2.compose(deadlineInterceptor(getQueueRequestTimeoutMs())) : agent2, getRetryAgentOptions());
|
|
122351
122355
|
}
|
|
122352
122356
|
function getDefaultQueueDispatcher() {
|
|
122353
122357
|
_queueDispatcher ?? (_queueDispatcher = createQueueDispatcher());
|
|
@@ -122483,8 +122487,8 @@ function requireGetVercelOidcToken() {
|
|
|
122483
122487
|
}
|
|
122484
122488
|
try {
|
|
122485
122489
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
122486
|
-
await import("./token-util-
|
|
122487
|
-
await import("./token-
|
|
122490
|
+
await import("./token-util-CXI_HnNu.js").then((n) => n.t),
|
|
122491
|
+
await import("./token-NxX4H9ze.js").then((n) => n.t)
|
|
122488
122492
|
]);
|
|
122489
122493
|
if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
|
|
122490
122494
|
await refreshToken(options);
|
|
@@ -128076,7 +128080,7 @@ var QueueClient = class {
|
|
|
128076
128080
|
setApi(this, new ApiClient({ ...options, region }));
|
|
128077
128081
|
}
|
|
128078
128082
|
};
|
|
128079
|
-
const version = "4.7.
|
|
128083
|
+
const version = "4.7.6";
|
|
128080
128084
|
const IDEMPOTENT_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD"]);
|
|
128081
128085
|
const MAX_BODY_PARSE_RETRIES = 2;
|
|
128082
128086
|
const BODY_PARSE_RETRY_BASE_MS = 100;
|
|
@@ -128425,10 +128429,20 @@ const MAX_DELAY_SECONDS = Number(
|
|
|
128425
128429
|
const HANDLER_ERROR_RETRY_AFTER_SECONDS = 1;
|
|
128426
128430
|
const HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS = 900;
|
|
128427
128431
|
const HANDLER_ERROR_RETRY_JITTER_RATIO = 0.25;
|
|
128428
|
-
function
|
|
128432
|
+
function getErrorRetryAfterSeconds(error2) {
|
|
128433
|
+
if (typeof error2 !== "object" || error2 === null)
|
|
128434
|
+
return void 0;
|
|
128435
|
+
const retryAfter = error2.retryAfter;
|
|
128436
|
+
if (typeof retryAfter !== "number" || !Number.isFinite(retryAfter) || retryAfter <= 0) {
|
|
128437
|
+
return void 0;
|
|
128438
|
+
}
|
|
128439
|
+
return Math.min(Math.ceil(retryAfter), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
128440
|
+
}
|
|
128441
|
+
function getHandlerErrorRetryAfterSeconds(error2, deliveryCount) {
|
|
128429
128442
|
const backoffSeconds = Math.min(Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, 2 ** (deliveryCount - 1)), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
128430
128443
|
const jitterSeconds = Math.floor(Math.random() * (Math.ceil(backoffSeconds * HANDLER_ERROR_RETRY_JITTER_RATIO) + 1));
|
|
128431
|
-
|
|
128444
|
+
const jitteredBackoffSeconds = Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, backoffSeconds - jitterSeconds);
|
|
128445
|
+
return Math.max(jitteredBackoffSeconds, getErrorRetryAfterSeconds(error2) ?? HANDLER_ERROR_RETRY_AFTER_SECONDS);
|
|
128432
128446
|
}
|
|
128433
128447
|
function getHeadersFromPayload(payload) {
|
|
128434
128448
|
const headers2 = {};
|
|
@@ -128530,7 +128544,7 @@ function createQueue$1(config2) {
|
|
|
128530
128544
|
// redrive in lockstep. Workflow handlers are event-sourced and must
|
|
128531
128545
|
// remain idempotent because queue retries can happen close together.
|
|
128532
128546
|
retry: (error2, { messageId, deliveryCount }) => {
|
|
128533
|
-
const afterSeconds = getHandlerErrorRetryAfterSeconds(deliveryCount);
|
|
128547
|
+
const afterSeconds = getHandlerErrorRetryAfterSeconds(error2, deliveryCount);
|
|
128534
128548
|
console.error(`[workflow] Queue handler failed for message "${messageId}" on delivery attempt ${deliveryCount}; retrying in ${afterSeconds}s:`, error2);
|
|
128535
128549
|
return { afterSeconds };
|
|
128536
128550
|
}
|
|
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { g as getDefaultExportFromCjs } from "./app-
|
|
6
|
-
import { a6 as requireTokenError, a5 as requireTokenUtil } from "./server-build-
|
|
5
|
+
import { g as getDefaultExportFromCjs } from "./app-uVbY_-qI.js";
|
|
6
|
+
import { a6 as requireTokenError, a5 as requireTokenUtil } from "./server-build-tMGygzbW.js";
|
|
7
7
|
function _mergeNamespaces(n, m) {
|
|
8
8
|
for (var i = 0; i < m.length; i++) {
|
|
9
9
|
const e = m[i];
|
|
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { g as getDefaultExportFromCjs } from "./app-
|
|
6
|
-
import { a5 as requireTokenUtil } from "./server-build-
|
|
5
|
+
import { g as getDefaultExportFromCjs } from "./app-uVbY_-qI.js";
|
|
6
|
+
import { a5 as requireTokenUtil } from "./server-build-tMGygzbW.js";
|
|
7
7
|
function _mergeNamespaces(n, m) {
|
|
8
8
|
for (var i = 0; i < m.length; i++) {
|
|
9
9
|
const e = m[i];
|
package/build/server/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { n } from "./assets/app-
|
|
5
|
+
import { n } from "./assets/app-uVbY_-qI.js";
|
|
6
6
|
import "express";
|
|
7
7
|
import "stream";
|
|
8
8
|
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.
|
|
4
|
+
"version": "4.1.27",
|
|
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.8.
|
|
74
|
+
"@workflow/core": "4.8.11",
|
|
75
75
|
"@workflow/errors": "4.2.2",
|
|
76
76
|
"@workflow/utils": "4.1.4",
|
|
77
|
-
"@workflow/web-shared": "4.1.
|
|
77
|
+
"@workflow/web-shared": "4.1.27",
|
|
78
78
|
"@workflow/world": "4.5.0",
|
|
79
|
-
"@workflow/world-vercel": "4.7.
|
|
79
|
+
"@workflow/world-vercel": "4.7.6"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"dev": "react-router dev",
|