@workflow/web 4.1.0-beta.38 → 4.1.0-beta.39
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/client/assets/{highlighted-body-B3W2YXNL-Rt-vkvmE.js → highlighted-body-B3W2YXNL-BlI_3W94.js} +1 -1
- package/build/client/assets/{home-Cpz2_ZDM.js → home-B4MMr7LP.js} +1 -1
- package/build/client/assets/{manifest-069935e6.js → manifest-ef94afe1.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-DcdZu9sS.js → mermaid-3ZIDBTTL-BhkyG8Sq.js} +7 -7
- package/build/client/assets/{root-DZgYUaDo.js → root-B2fanH6r.js} +1 -1
- package/build/client/assets/{run-detail-xcvWVR2B.js → run-detail-D40YBNgh.js} +12 -12
- package/build/client/assets/{use-workflow-graph-CF7nLapT.js → use-workflow-graph-D6xsvBGu.js} +1 -1
- package/build/server/assets/{app-B9Eg2ZwJ.js → app-YwmyVuwT.js} +1 -1
- package/build/server/assets/{highlighted-body-B3W2YXNL-CppXFHRG.js → highlighted-body-B3W2YXNL-Dqsnck2u.js} +2 -2
- package/build/server/assets/{mermaid-3ZIDBTTL-DB0PiTjt.js → mermaid-3ZIDBTTL-mfJ74Epj.js} +2 -2
- package/build/server/assets/{server-build-HMYt9inG.js → server-build-B3ijdJBL.js} +66 -72
- package/build/server/assets/{token-COnBvzNW.js → token-CWWXwMh8.js} +3 -3
- package/build/server/assets/{token-CBxSSoxh.js → token-DJXheGCg.js} +2 -2
- package/build/server/assets/{token-util-CagM_XOH.js → token-util-CvLiUUQD.js} +2 -2
- package/build/server/assets/{token-util-QvbM3ECv.js → token-util-REQ15piK.js} +1 -1
- package/build/server/assets/{token-util-7Q4_oN66.js → token-util-l0RNhdPG.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +5 -5
package/build/client/assets/{use-workflow-graph-CF7nLapT.js → use-workflow-graph-D6xsvBGu.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Wd=Object.defineProperty;var Bd=(e,t,n)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Sr=(e,t,n)=>Bd(e,typeof t!="symbol"?t+"":t,n);import{c as ue,
|
|
1
|
+
var Wd=Object.defineProperty;var Bd=(e,t,n)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Sr=(e,t,n)=>Bd(e,typeof t!="symbol"?t+"":t,n);import{c as ue,az as is,d as ae,aA as zi,aB as yo,z as me,aC as Vd,aD as Yd,aE as Gd,aF as Xd,aG as Ud,aH as qd,aI as Kd,aJ as Zd,aK as Qd,T as Se,a as _e,b as Ce,aL as Jd,aM as ef,aN as tf,aO as nf,aP as rf,o as xo,m as Xr,s as as,I as of,B as On,t as Re,q as Hi,P as At,p as ze,w as Wi,l as sf,G as af,aQ as cf}from"./mermaid-3ZIDBTTL-BhkyG8Sq.js";import{r as x,j as p,f as Bi,R as de,D as uf,A as lf,a as Vi,G as df}from"./index-DklpUtP3.js";function Yi(e,t){if(typeof t!="string")return null;const[n,r,...o]=t.split("//");if(n!==e||!r||o.length===0)return null;const s=o.join("//");let i=s.split("/").at(-1)??"",a="";if(r.startsWith("./"))a=r.split("/").at(-1)??"";else{const c=r.split("@").slice(0,-1).join("@")||r.split("@")[0];a=(c==null?void 0:c.split("/").at(-1))??""}return["default","__default"].includes(i)&&a&&(i=a),{shortName:i,moduleSpecifier:r,functionName:s}}function iS(e){return Yi("workflow",e)}function aS(e){return Yi("step",e)}/**
|
|
2
2
|
* @license lucide-react v0.575.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -9162,7 +9162,7 @@ const app = express();
|
|
|
9162
9162
|
app.all(
|
|
9163
9163
|
"*",
|
|
9164
9164
|
createRequestHandler({
|
|
9165
|
-
build: () => import("./server-build-
|
|
9165
|
+
build: () => import("./server-build-B3ijdJBL.js").then((n) => n.s)
|
|
9166
9166
|
})
|
|
9167
9167
|
);
|
|
9168
9168
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R, K as Ks, j as jsxRuntimeExports, Q as Qe } from "./server-build-
|
|
2
|
-
import { r as reactExports } from "./app-
|
|
1
|
+
import { R, K as Ks, j as jsxRuntimeExports, Q as Qe } from "./server-build-B3ijdJBL.js";
|
|
2
|
+
import { r as reactExports } from "./app-YwmyVuwT.js";
|
|
3
3
|
import "node:stream";
|
|
4
4
|
import "util";
|
|
5
5
|
import "crypto";
|
|
@@ -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, _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, M as Meta, L as Links, d as ScrollRestoration, e as Scripts, O as Outlet, u as useNavigate, f as useSearchParams, h as Link$1, i as useLocation, j as useParams } from "./app-
|
|
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, M as Meta, L as Links, d as ScrollRestoration, e as Scripts, O as Outlet, u as useNavigate, f as useSearchParams, h as Link$1, i as useLocation, j as useParams } from "./app-YwmyVuwT.js";
|
|
18
18
|
import require$$0$4, { PassThrough } from "node:stream";
|
|
19
19
|
import require$$0 from "util";
|
|
20
20
|
import require$$1$1 from "crypto";
|
|
@@ -64424,7 +64424,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
64424
64424
|
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 });
|
|
64425
64425
|
var Se = reactExports.createContext({ code: "" }), de$1 = () => reactExports.useContext(Se);
|
|
64426
64426
|
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 }) });
|
|
64427
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-
|
|
64427
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-Dqsnck2u.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
64428
64428
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
64429
64429
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
64430
64430
|
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 }) })] }) });
|
|
@@ -64746,7 +64746,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
|
|
|
64746
64746
|
}, []), 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] });
|
|
64747
64747
|
};
|
|
64748
64748
|
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 }) })] });
|
|
64749
|
-
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-
|
|
64749
|
+
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-mfJ74Epj.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
|
|
64750
64750
|
function ke(e, t) {
|
|
64751
64751
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
64752
64752
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -72712,6 +72712,9 @@ async function fetchStep$1(worldEnv, runId, stepId, resolveData = "all") {
|
|
|
72712
72712
|
async function fetchEvents$1(worldEnv, runId, params) {
|
|
72713
72713
|
return rpc("fetchEvents", { worldEnv, runId, params });
|
|
72714
72714
|
}
|
|
72715
|
+
async function fetchEvent$1(worldEnv, runId, eventId, resolveData = "all") {
|
|
72716
|
+
return rpc("fetchEvent", { worldEnv, runId, eventId, resolveData });
|
|
72717
|
+
}
|
|
72715
72718
|
async function fetchEventsByCorrelationId$1(worldEnv, correlationId, params) {
|
|
72716
72719
|
return rpc("fetchEventsByCorrelationId", { worldEnv, correlationId, params });
|
|
72717
72720
|
}
|
|
@@ -89424,8 +89427,8 @@ function requireGetVercelOidcToken$1() {
|
|
|
89424
89427
|
}
|
|
89425
89428
|
try {
|
|
89426
89429
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
89427
|
-
await import("./token-util-
|
|
89428
|
-
await import("./token-
|
|
89430
|
+
await import("./token-util-CvLiUUQD.js").then((n) => n.t),
|
|
89431
|
+
await import("./token-CWWXwMh8.js").then((n) => n.t)
|
|
89429
89432
|
]);
|
|
89430
89433
|
if (!token || isExpired(getTokenPayload(token))) {
|
|
89431
89434
|
await refreshToken();
|
|
@@ -115674,7 +115677,7 @@ function createQueue$2(config2) {
|
|
|
115674
115677
|
if (typeof (result == null ? void 0 : result.timeoutSeconds) === "number") {
|
|
115675
115678
|
timeoutSeconds = Math.min(result.timeoutSeconds, LOCAL_QUEUE_MAX_VISIBILITY);
|
|
115676
115679
|
}
|
|
115677
|
-
if (timeoutSeconds) {
|
|
115680
|
+
if (timeoutSeconds != null) {
|
|
115678
115681
|
return Response.json({ timeoutSeconds }, { status: 503 });
|
|
115679
115682
|
}
|
|
115680
115683
|
return Response.json({ ok: true });
|
|
@@ -116619,6 +116622,16 @@ function createEventsStorage(basedir) {
|
|
|
116619
116622
|
wait
|
|
116620
116623
|
};
|
|
116621
116624
|
},
|
|
116625
|
+
async get(runId, eventId, params) {
|
|
116626
|
+
const compositeKey = `${runId}-${eventId}`;
|
|
116627
|
+
const eventPath = path$2.join(basedir, "events", `${compositeKey}.json`);
|
|
116628
|
+
const event = await readJSON(eventPath, EventSchema);
|
|
116629
|
+
if (!event) {
|
|
116630
|
+
throw new Error(`Event ${eventId} in run ${runId} not found`);
|
|
116631
|
+
}
|
|
116632
|
+
const resolveData = (params == null ? void 0 : params.resolveData) ?? DEFAULT_RESOLVE_DATA_OPTION$1;
|
|
116633
|
+
return filterEventData$1(event, resolveData);
|
|
116634
|
+
},
|
|
116622
116635
|
async list(params) {
|
|
116623
116636
|
var _a3, _b, _c;
|
|
116624
116637
|
const { runId } = params;
|
|
@@ -117116,8 +117129,8 @@ function requireGetVercelOidcToken() {
|
|
|
117116
117129
|
}
|
|
117117
117130
|
try {
|
|
117118
117131
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
117119
|
-
await import("./token-util-
|
|
117120
|
-
await import("./token-
|
|
117132
|
+
await import("./token-util-l0RNhdPG.js").then((n) => n.t),
|
|
117133
|
+
await import("./token-DJXheGCg.js").then((n) => n.t)
|
|
117121
117134
|
]);
|
|
117122
117135
|
if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
|
|
117123
117136
|
await refreshToken(options);
|
|
@@ -117836,7 +117849,7 @@ const PeerService = SemanticConvention("peer.service");
|
|
|
117836
117849
|
const RpcSystem = SemanticConvention("rpc.system");
|
|
117837
117850
|
const RpcService = SemanticConvention("rpc.service");
|
|
117838
117851
|
const RpcMethod = SemanticConvention("rpc.method");
|
|
117839
|
-
const version$1 = "4.1.0-beta.
|
|
117852
|
+
const version$1 = "4.1.0-beta.41";
|
|
117840
117853
|
const DEFAULT_RESOLVE_DATA_OPTION = "all";
|
|
117841
117854
|
function deserializeError(obj) {
|
|
117842
117855
|
const { error: error2, ...rest } = obj;
|
|
@@ -118135,7 +118148,7 @@ function createQueue$1(config2) {
|
|
|
118135
118148
|
attempt: metadata.deliveryCount
|
|
118136
118149
|
});
|
|
118137
118150
|
if (typeof (result == null ? void 0 : result.timeoutSeconds) === "number") {
|
|
118138
|
-
const delaySeconds = Math.min(result.timeoutSeconds, MAX_DELAY_SECONDS);
|
|
118151
|
+
const delaySeconds = result.timeoutSeconds > 0 ? Math.min(result.timeoutSeconds, MAX_DELAY_SECONDS) : void 0;
|
|
118139
118152
|
await queue(queueName, payload, { deploymentId, delaySeconds });
|
|
118140
118153
|
}
|
|
118141
118154
|
});
|
|
@@ -118576,6 +118589,21 @@ async function hydrateEventRefs(events2, config2, refResolveConcurrency) {
|
|
|
118576
118589
|
return result;
|
|
118577
118590
|
});
|
|
118578
118591
|
}
|
|
118592
|
+
async function getEvent(runId, eventId, params, config2) {
|
|
118593
|
+
const resolveData = (params == null ? void 0 : params.resolveData) ?? DEFAULT_RESOLVE_DATA_OPTION;
|
|
118594
|
+
const remoteRefBehavior = resolveData === "none" ? "lazy" : "resolve";
|
|
118595
|
+
const searchParams = new URLSearchParams();
|
|
118596
|
+
searchParams.set("remoteRefBehavior", remoteRefBehavior);
|
|
118597
|
+
const queryString = searchParams.toString();
|
|
118598
|
+
const endpoint = `/v2/runs/${runId}/events/${eventId}${queryString ? `?${queryString}` : ""}`;
|
|
118599
|
+
const event = await makeRequest({
|
|
118600
|
+
endpoint,
|
|
118601
|
+
options: { method: "GET" },
|
|
118602
|
+
config: config2,
|
|
118603
|
+
schema: resolveData === "none" ? EventWithRefsSchema : EventSchema
|
|
118604
|
+
});
|
|
118605
|
+
return filterEventData(event, resolveData);
|
|
118606
|
+
}
|
|
118579
118607
|
async function getWorkflowRunEvents(params, config2) {
|
|
118580
118608
|
const searchParams = new URLSearchParams();
|
|
118581
118609
|
const { pagination, resolveData = DEFAULT_RESOLVE_DATA_OPTION } = params;
|
|
@@ -118819,6 +118847,7 @@ function createStorage(config2) {
|
|
|
118819
118847
|
},
|
|
118820
118848
|
events: {
|
|
118821
118849
|
create: (runId, data, params) => createWorkflowRunEvent(runId, data, params, config2),
|
|
118850
|
+
get: (runId, eventId, params) => getEvent(runId, eventId, params, config2),
|
|
118822
118851
|
list: (params) => getWorkflowRunEvents(params, config2),
|
|
118823
118852
|
listByCorrelationId: (params) => getWorkflowRunEvents(params, config2)
|
|
118824
118853
|
},
|
|
@@ -122182,7 +122211,7 @@ async function resumeHook$2(tokenOrHook, payload, encryptionKeyOverride) {
|
|
|
122182
122211
|
});
|
|
122183
122212
|
});
|
|
122184
122213
|
}
|
|
122185
|
-
const version = "4.2.0-beta.
|
|
122214
|
+
const version = "4.2.0-beta.67";
|
|
122186
122215
|
const ulid = monotonicFactory();
|
|
122187
122216
|
async function start$1(workflow, argsOrOptions, options) {
|
|
122188
122217
|
return await waitedUntil(() => {
|
|
@@ -122523,8 +122552,9 @@ getWorldHandlers().createQueueHandler("__wkf_step_", async (message_, metadata)
|
|
|
122523
122552
|
return await withTraceContext(traceContext, async () => {
|
|
122524
122553
|
const stepName = metadata.queueName.slice("__wkf_step_".length);
|
|
122525
122554
|
const world = getWorld();
|
|
122555
|
+
const isVercel = process.env.VERCEL_URL !== void 0;
|
|
122526
122556
|
const [port, spanKind] = await Promise.all([
|
|
122527
|
-
getPort(),
|
|
122557
|
+
isVercel ? void 0 : getPort(),
|
|
122528
122558
|
getSpanKind$2("CONSUMER")
|
|
122529
122559
|
]);
|
|
122530
122560
|
return trace$2(`STEP ${stepName}`, { kind: spanKind, links: spanLinks }, async (span) => {
|
|
@@ -122701,16 +122731,18 @@ getWorldHandlers().createQueueHandler("__wkf_step_", async (message_, metadata)
|
|
|
122701
122731
|
result = await trace$2("step.execute", {}, async () => {
|
|
122702
122732
|
return await contextStorage.run({
|
|
122703
122733
|
stepMetadata: {
|
|
122734
|
+
stepName,
|
|
122704
122735
|
stepId,
|
|
122705
122736
|
stepStartedAt: /* @__PURE__ */ new Date(+stepStartedAt),
|
|
122706
122737
|
attempt
|
|
122707
122738
|
},
|
|
122708
122739
|
workflowMetadata: {
|
|
122740
|
+
workflowName,
|
|
122709
122741
|
workflowRunId,
|
|
122710
122742
|
workflowStartedAt: /* @__PURE__ */ new Date(+workflowStartedAt),
|
|
122711
122743
|
// TODO: there should be a getUrl method on the world interface itself. This
|
|
122712
122744
|
// solution only works for vercel + local worlds.
|
|
122713
|
-
url:
|
|
122745
|
+
url: isVercel ? `https://${process.env.VERCEL_URL}` : `http://localhost:${port ?? 3e3}`
|
|
122714
122746
|
},
|
|
122715
122747
|
ops,
|
|
122716
122748
|
closureVars: hydratedInput.closureVars,
|
|
@@ -123461,6 +123493,19 @@ async function fetchEvents(worldEnv, runId, params) {
|
|
|
123461
123493
|
);
|
|
123462
123494
|
}
|
|
123463
123495
|
}
|
|
123496
|
+
async function fetchEvent(worldEnv, runId, eventId, resolveData = "all") {
|
|
123497
|
+
try {
|
|
123498
|
+
const world = await getWorldFromEnv(worldEnv);
|
|
123499
|
+
const event = await world.events.get(runId, eventId, { resolveData });
|
|
123500
|
+
return createResponse(event);
|
|
123501
|
+
} catch (error2) {
|
|
123502
|
+
return createServerActionError(error2, "world.events.get", {
|
|
123503
|
+
runId,
|
|
123504
|
+
eventId,
|
|
123505
|
+
resolveData
|
|
123506
|
+
});
|
|
123507
|
+
}
|
|
123508
|
+
}
|
|
123464
123509
|
async function fetchEventsByCorrelationId(worldEnv, correlationId, params) {
|
|
123465
123510
|
const { cursor, sortOrder = "asc", limit = 1e3, withData = false } = params;
|
|
123466
123511
|
try {
|
|
@@ -146897,13 +146942,6 @@ function GraphTabContent({
|
|
|
146897
146942
|
}
|
|
146898
146943
|
);
|
|
146899
146944
|
}
|
|
146900
|
-
const RUN_LEVEL_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
146901
|
-
"run_created",
|
|
146902
|
-
"run_started",
|
|
146903
|
-
"run_completed",
|
|
146904
|
-
"run_failed",
|
|
146905
|
-
"run_cancelled"
|
|
146906
|
-
]);
|
|
146907
146945
|
function RunDetailView({
|
|
146908
146946
|
runId,
|
|
146909
146947
|
// TODO: This should open the right sidebar within the trace viewer
|
|
@@ -146971,52 +147009,13 @@ function RunDetailView({
|
|
|
146971
147009
|
);
|
|
146972
147010
|
const handleLoadEventData = reactExports.useCallback(
|
|
146973
147011
|
async (event) => {
|
|
146974
|
-
const isRunLevelEvent = RUN_LEVEL_EVENT_TYPES.has(event.eventType);
|
|
146975
|
-
if (!isRunLevelEvent && event.correlationId) {
|
|
146976
|
-
const { error: error3, result: result2 } = await unwrapServerActionResult(
|
|
146977
|
-
fetchEventsByCorrelationId$1(env2, event.correlationId, {
|
|
146978
|
-
sortOrder: "asc",
|
|
146979
|
-
limit: 100,
|
|
146980
|
-
withData: true
|
|
146981
|
-
})
|
|
146982
|
-
);
|
|
146983
|
-
if (error3) {
|
|
146984
|
-
throw error3;
|
|
146985
|
-
}
|
|
146986
|
-
const rawEvent2 = result2.data.find((e) => e.eventId === event.eventId);
|
|
146987
|
-
if (!rawEvent2) return null;
|
|
146988
|
-
const fullEvent2 = encryptionKeyRef.current ? await hydrateResourceIOWithKey(rawEvent2, encryptionKeyRef.current) : hydrateResourceIO(rawEvent2);
|
|
146989
|
-
if ("eventData" in fullEvent2) {
|
|
146990
|
-
return fullEvent2.eventData;
|
|
146991
|
-
}
|
|
146992
|
-
return null;
|
|
146993
|
-
}
|
|
146994
147012
|
const { error: error22, result } = await unwrapServerActionResult(
|
|
146995
|
-
|
|
146996
|
-
sortOrder: "desc",
|
|
146997
|
-
limit: 1e3,
|
|
146998
|
-
withData: true
|
|
146999
|
-
})
|
|
147013
|
+
fetchEvent$1(env2, event.runId, event.eventId, "all")
|
|
147000
147014
|
);
|
|
147001
147015
|
if (error22) {
|
|
147002
147016
|
throw error22;
|
|
147003
147017
|
}
|
|
147004
|
-
|
|
147005
|
-
if (!rawEvent) {
|
|
147006
|
-
const { error: ascError, result: ascResult } = await unwrapServerActionResult(
|
|
147007
|
-
fetchEvents$1(env2, event.runId, {
|
|
147008
|
-
sortOrder: "asc",
|
|
147009
|
-
limit: 1e3,
|
|
147010
|
-
withData: true
|
|
147011
|
-
})
|
|
147012
|
-
);
|
|
147013
|
-
if (ascError) {
|
|
147014
|
-
throw ascError;
|
|
147015
|
-
}
|
|
147016
|
-
rawEvent = ascResult.data.find((e) => e.eventId === event.eventId);
|
|
147017
|
-
}
|
|
147018
|
-
if (!rawEvent) return null;
|
|
147019
|
-
const fullEvent = encryptionKeyRef.current ? await hydrateResourceIOWithKey(rawEvent, encryptionKeyRef.current) : hydrateResourceIO(rawEvent);
|
|
147018
|
+
const fullEvent = encryptionKeyRef.current ? await hydrateResourceIOWithKey(result, encryptionKeyRef.current) : hydrateResourceIO(result);
|
|
147020
147019
|
if ("eventData" in fullEvent) {
|
|
147021
147020
|
return fullEvent.eventData;
|
|
147022
147021
|
}
|
|
@@ -147025,26 +147024,20 @@ function RunDetailView({
|
|
|
147025
147024
|
[env2]
|
|
147026
147025
|
);
|
|
147027
147026
|
const handleLoadSidebarEventData = reactExports.useCallback(
|
|
147028
|
-
async (
|
|
147027
|
+
async (_correlationId, eventId) => {
|
|
147029
147028
|
const { error: error22, result } = await unwrapServerActionResult(
|
|
147030
|
-
|
|
147031
|
-
sortOrder: "asc",
|
|
147032
|
-
limit: 100,
|
|
147033
|
-
withData: true
|
|
147034
|
-
})
|
|
147029
|
+
fetchEvent$1(env2, runId, eventId, "all")
|
|
147035
147030
|
);
|
|
147036
147031
|
if (error22) {
|
|
147037
147032
|
throw error22;
|
|
147038
147033
|
}
|
|
147039
|
-
const
|
|
147040
|
-
if (!rawEvent) return null;
|
|
147041
|
-
const fullEvent = encryptionKeyRef.current ? await hydrateResourceIOWithKey(rawEvent, encryptionKeyRef.current) : hydrateResourceIO(rawEvent);
|
|
147034
|
+
const fullEvent = encryptionKeyRef.current ? await hydrateResourceIOWithKey(result, encryptionKeyRef.current) : hydrateResourceIO(result);
|
|
147042
147035
|
if ("eventData" in fullEvent) {
|
|
147043
147036
|
return fullEvent.eventData;
|
|
147044
147037
|
}
|
|
147045
147038
|
return null;
|
|
147046
147039
|
},
|
|
147047
|
-
[env2]
|
|
147040
|
+
[env2, runId]
|
|
147048
147041
|
);
|
|
147049
147042
|
const isLocalBackend = serverConfig.backendId === "local" || serverConfig.backendId === "@workflow/world-local";
|
|
147050
147043
|
const {
|
|
@@ -147471,6 +147464,7 @@ const handlers = {
|
|
|
147471
147464
|
fetchSteps: (p2) => fetchSteps(p2.worldEnv ?? {}, p2.runId, p2.params ?? {}),
|
|
147472
147465
|
fetchStep: (p2) => fetchStep(p2.worldEnv ?? {}, p2.runId, p2.stepId, p2.resolveData),
|
|
147473
147466
|
fetchEvents: (p2) => fetchEvents(p2.worldEnv ?? {}, p2.runId, p2.params ?? {}),
|
|
147467
|
+
fetchEvent: (p2) => fetchEvent(p2.worldEnv ?? {}, p2.runId, p2.eventId, p2.resolveData),
|
|
147474
147468
|
fetchEventsByCorrelationId: (p2) => fetchEventsByCorrelationId(p2.worldEnv ?? {}, p2.correlationId, p2.params ?? {}),
|
|
147475
147469
|
fetchHooks: (p2) => fetchHooks(p2.worldEnv ?? {}, p2.params ?? {}),
|
|
147476
147470
|
fetchHook: (p2) => fetchHook(p2.worldEnv ?? {}, p2.hookId, p2.resolveData),
|
|
@@ -147614,7 +147608,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
147614
147608
|
__proto__: null,
|
|
147615
147609
|
loader
|
|
147616
147610
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
147617
|
-
const serverManifest = { "entry": { "module": "/assets/entry.client-BjpmGyLC.js", "imports": ["/assets/index-DklpUtP3.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": false, "module": "/assets/root-
|
|
147611
|
+
const serverManifest = { "entry": { "module": "/assets/entry.client-BjpmGyLC.js", "imports": ["/assets/index-DklpUtP3.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": false, "module": "/assets/root-B2fanH6r.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/mermaid-3ZIDBTTL-BhkyG8Sq.js"], "css": ["/assets/root-Dr_TuMgh.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-B4MMr7LP.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/use-workflow-graph-D6xsvBGu.js", "/assets/mermaid-3ZIDBTTL-BhkyG8Sq.js"], "css": ["/assets/use-workflow-graph-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-D40YBNgh.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/use-workflow-graph-D6xsvBGu.js", "/assets/mermaid-3ZIDBTTL-BhkyG8Sq.js", "/assets/encryption-8OvC6eoJ.js"], "css": ["/assets/use-workflow-graph-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-ef94afe1.js", "version": "ef94afe1", "sri": void 0 };
|
|
147618
147612
|
const assetsBuildDirectory = "build/client";
|
|
147619
147613
|
const basename = "/";
|
|
147620
147614
|
const future = { "unstable_optimizeDeps": false, "unstable_subResourceIntegrity": false, "unstable_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./app-
|
|
2
|
-
import { b as requireTokenError } from "./server-build-
|
|
3
|
-
import { r as requireTokenUtil } from "./token-util-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./app-YwmyVuwT.js";
|
|
2
|
+
import { b as requireTokenError } from "./server-build-B3ijdJBL.js";
|
|
3
|
+
import { r as requireTokenUtil } from "./token-util-REQ15piK.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
for (var i = 0; i < m.length; i++) {
|
|
6
6
|
const e = m[i];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./app-
|
|
2
|
-
import { a as requireTokenError, r as requireTokenUtil } from "./server-build-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./app-YwmyVuwT.js";
|
|
2
|
+
import { a as requireTokenError, r as requireTokenUtil } from "./server-build-B3ijdJBL.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-
|
|
2
|
-
import { r as requireTokenUtil } from "./token-util-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./app-YwmyVuwT.js";
|
|
2
|
+
import { r as requireTokenUtil } from "./token-util-REQ15piK.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path__default from "path";
|
|
2
2
|
import require$$1__default from "fs";
|
|
3
|
-
import { b as requireTokenError } from "./server-build-
|
|
3
|
+
import { b as requireTokenError } from "./server-build-B3ijdJBL.js";
|
|
4
4
|
import require$$0 from "os";
|
|
5
5
|
var tokenIo;
|
|
6
6
|
var hasRequiredTokenIo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./app-
|
|
2
|
-
import { r as requireTokenUtil } from "./server-build-
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./app-YwmyVuwT.js";
|
|
2
|
+
import { r as requireTokenUtil } from "./server-build-B3ijdJBL.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
5
5
|
const e = m[i];
|
package/build/server/index.js
CHANGED
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.0-beta.
|
|
4
|
+
"version": "4.1.0-beta.39",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"vite": "^6",
|
|
74
74
|
"vitest": "^3",
|
|
75
75
|
"jsdom": "^26",
|
|
76
|
-
"@workflow/core": "4.2.0-beta.
|
|
76
|
+
"@workflow/core": "4.2.0-beta.67",
|
|
77
77
|
"@workflow/errors": "4.1.0-beta.18",
|
|
78
78
|
"@workflow/utils": "4.1.0-beta.13",
|
|
79
|
-
"@workflow/web-shared": "4.1.0-beta.
|
|
80
|
-
"@workflow/world": "4.1.0-beta.
|
|
81
|
-
"@workflow/world-vercel": "4.1.0-beta.
|
|
79
|
+
"@workflow/web-shared": "4.1.0-beta.62",
|
|
80
|
+
"@workflow/world": "4.1.0-beta.11",
|
|
81
|
+
"@workflow/world-vercel": "4.1.0-beta.41"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"dev": "react-router dev",
|