@workflow/web 5.0.0-beta.56 → 5.0.0-beta.57
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-Bl4MnK_A.js → app-CLgyAdH3.js} +326 -151
- package/build/server/assets/{highlighted-body-B3W2YXNL-DEO_Ibma.js → highlighted-body-B3W2YXNL-B8wbEqnx.js} +1 -1
- package/build/server/assets/{index-B_qUqg3k.js → index-CD3sqsfS.js} +1 -1
- package/build/server/assets/{index-bN9Oj_dl.js → index-qorbufop.js} +65 -63
- package/build/server/assets/{mermaid-3ZIDBTTL-Dr7Wk8Bh.js → mermaid-3ZIDBTTL-CDOlxgin.js} +1 -1
- package/build/server/assets/{token-CUWJi08Y.js → token-BfBe4cAY.js} +1 -1
- package/build/server/assets/{token-util-B4OMKRZB.js → token-util-CYhmjL6g.js} +1 -1
- package/build/server/assets/{websocket-server-FV9R_mnP.js → websocket-server-DB4GPS66.js} +1 -1
- package/build/server/assets/{wrapper-Cs9Wzu7M.js → wrapper-CUYQE5_Q.js} +3 -3
- package/build/server/assets/{ws-transport-B4h16CAX.js → ws-transport-xTHJJcp4.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-DSPBib47.js → zstd-browser-decoder-CIXVj9sh.js} +1 -1
- package/build/server/index.js +3 -3
- package/package.json +7 -7
|
@@ -48951,6 +48951,9 @@ const PaginatedResponseSchema = (dataSchema) => compile(object$1({
|
|
|
48951
48951
|
hasMore: boolean$2(),
|
|
48952
48952
|
pageInfo: PageInfoSchema.optional()
|
|
48953
48953
|
}));
|
|
48954
|
+
function entityResolveData(resolveData) {
|
|
48955
|
+
return resolveData === "skip-step-inputs" ? "all" : resolveData;
|
|
48956
|
+
}
|
|
48954
48957
|
const StructuredErrorSchema = compile(object$1({
|
|
48955
48958
|
message: string$2(),
|
|
48956
48959
|
stack: string$2().optional(),
|
|
@@ -48996,6 +48999,7 @@ function eventIdToSlot(eventId) {
|
|
|
48996
48999
|
return Number.isSafeInteger(slot) && slot >= FIRST_EVENT_SLOT ? slot : null;
|
|
48997
49000
|
}
|
|
48998
49001
|
const SPEC_VERSION_LEGACY = 1;
|
|
49002
|
+
const SPEC_VERSION_SUPPORTS_EVENT_SOURCING = 2;
|
|
48999
49003
|
const SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT = 3;
|
|
49000
49004
|
const SPEC_VERSION_SUPPORTS_ATTRIBUTES = 4;
|
|
49001
49005
|
const SPEC_VERSION_SUPPORTS_COMPRESSION = 5;
|
|
@@ -53490,6 +53494,17 @@ class WorkflowRunFailedError extends WorkflowError {
|
|
|
53490
53494
|
super(`Workflow run "${runId}" failed: ${message2}`, {
|
|
53491
53495
|
cause: error2
|
|
53492
53496
|
});
|
|
53497
|
+
/**
|
|
53498
|
+
* `failed` is terminal, and a run's terminal state is immutable. This error
|
|
53499
|
+
* is only ever thrown after a *successful* read of such a run, so re-running
|
|
53500
|
+
* the read returns the same record and throws the same error. Marking it
|
|
53501
|
+
* non-retryable is what stops the step executor from spending a retry budget
|
|
53502
|
+
* on that when the read happens inside a step — a parent awaiting a child's
|
|
53503
|
+
* `returnValue` — and then replacing this error with its retry-exhaustion
|
|
53504
|
+
* wrapper. A read that *fails* throws something else and stays retryable.
|
|
53505
|
+
* See `FatalError.is()`.
|
|
53506
|
+
*/
|
|
53507
|
+
__publicField(this, "fatal", true);
|
|
53493
53508
|
__publicField(this, "runId");
|
|
53494
53509
|
/**
|
|
53495
53510
|
* The high-level error category (e.g. USER_ERROR, RUNTIME_ERROR) for the
|
|
@@ -53725,6 +53740,8 @@ class PreconditionFailedError extends WorkflowWorldError {
|
|
|
53725
53740
|
class WorkflowRunCancelledError extends WorkflowError {
|
|
53726
53741
|
constructor(runId) {
|
|
53727
53742
|
super(`Workflow run "${runId}" cancelled`, {});
|
|
53743
|
+
/** Terminal and immutable, for the same reason as {@link WorkflowRunFailedError.fatal}. */
|
|
53744
|
+
__publicField(this, "fatal", true);
|
|
53728
53745
|
__publicField(this, "runId");
|
|
53729
53746
|
this.name = "WorkflowRunCancelledError";
|
|
53730
53747
|
this.runId = runId;
|
|
@@ -55091,7 +55108,7 @@ function replaceEncryptedAndExpiredWithMarkers(resource) {
|
|
|
55091
55108
|
}
|
|
55092
55109
|
async function hydrateResourceIOAsync(resource, key) {
|
|
55093
55110
|
const { hydrateDataWithKey: hydrateDataWithKey2, deriveRunPayloadKeys: deriveRunPayloadKeys2 } = await Promise.resolve().then(() => serializationFormat);
|
|
55094
|
-
const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-
|
|
55111
|
+
const { ensureZstdDecoderRegistered } = await import("./zstd-browser-decoder-CIXVj9sh.js");
|
|
55095
55112
|
ensureZstdDecoderRegistered();
|
|
55096
55113
|
const cryptoKey = key ? await deriveRunPayloadKeys2(key) : void 0;
|
|
55097
55114
|
const revivers = getRevivers();
|
|
@@ -86035,7 +86052,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
86035
86052
|
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 });
|
|
86036
86053
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
86037
86054
|
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 }) });
|
|
86038
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-
|
|
86055
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-B8wbEqnx.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
86039
86056
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
86040
86057
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
86041
86058
|
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 }) })] }) });
|
|
@@ -86357,7 +86374,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
|
|
|
86357
86374
|
}, []), 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] });
|
|
86358
86375
|
};
|
|
86359
86376
|
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 }) })] });
|
|
86360
|
-
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-
|
|
86377
|
+
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-CDOlxgin.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
|
|
86361
86378
|
function ke(e, t) {
|
|
86362
86379
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
86363
86380
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -95103,6 +95120,11 @@ const WorkflowRunId$2 = SemanticConvention$2("workflow.run.id");
|
|
|
95103
95120
|
const WorkflowRunStatus = SemanticConvention$2("workflow.run.status");
|
|
95104
95121
|
const WorkflowArgumentsCount = SemanticConvention$2("workflow.arguments.count");
|
|
95105
95122
|
const DeploymentId = SemanticConvention$2("deployment.id");
|
|
95123
|
+
const WorkflowRunSpecVersion = SemanticConvention$2("workflow.run.spec_version");
|
|
95124
|
+
const WorkflowRunSpecVersionSource = SemanticConvention$2("workflow.run.spec_version_source");
|
|
95125
|
+
const WorkflowCapabilityProbeLatencyMs = SemanticConvention$2("workflow.capability_probe.latency_ms");
|
|
95126
|
+
const WorkflowCapabilityProbeCached = SemanticConvention$2("workflow.capability_probe.cached");
|
|
95127
|
+
const WorkflowCapabilityProbeError = SemanticConvention$2("workflow.capability_probe.error");
|
|
95106
95128
|
const HookToken = SemanticConvention$2("workflow.hook.token");
|
|
95107
95129
|
const HookId = SemanticConvention$2("workflow.hook.id");
|
|
95108
95130
|
const HookFound = SemanticConvention$2("workflow.hook.found");
|
|
@@ -98869,13 +98891,13 @@ async function dehydrateStepReturnValue(value, runId, key, ops = [], global2 = g
|
|
|
98869
98891
|
throw new SerializationError(message2, { hint: hint2, cause });
|
|
98870
98892
|
}
|
|
98871
98893
|
}
|
|
98872
|
-
async function hydrateRunError(value, runId, key, ops = [], global2 = globalThis, extraRevivers = {}) {
|
|
98894
|
+
async function hydrateRunError(value, runId, key, ops = [], global2 = globalThis, extraRevivers = {}, options) {
|
|
98873
98895
|
const compressionStats = {};
|
|
98874
98896
|
const decrypted = await decompress$2(await decrypt(value, key), compressionStats);
|
|
98875
98897
|
await recordCompression(compressionStats, "deserialize");
|
|
98876
98898
|
if (!(decrypted instanceof Uint8Array)) {
|
|
98877
98899
|
return unflatten(decrypted, {
|
|
98878
|
-
...getExternalRevivers(global2, ops, runId, key),
|
|
98900
|
+
...getExternalRevivers(global2, ops, runId, key, options),
|
|
98879
98901
|
...extraRevivers
|
|
98880
98902
|
});
|
|
98881
98903
|
}
|
|
@@ -98883,7 +98905,7 @@ async function hydrateRunError(value, runId, key, ops = [], global2 = globalThis
|
|
|
98883
98905
|
if (format2 === SerializationFormat$1.DEVALUE_V1) {
|
|
98884
98906
|
const str = new TextDecoder().decode(payload);
|
|
98885
98907
|
return parse$5(str, {
|
|
98886
|
-
...getExternalRevivers(global2, ops, runId, key),
|
|
98908
|
+
...getExternalRevivers(global2, ops, runId, key, options),
|
|
98887
98909
|
...extraRevivers
|
|
98888
98910
|
});
|
|
98889
98911
|
}
|
|
@@ -98926,7 +98948,10 @@ globalSingleton("@workflow/core//envWarnings", 1, () => ({
|
|
|
98926
98948
|
maxInlineStepsValues: /* @__PURE__ */ new Set(),
|
|
98927
98949
|
maxEventsValues: /* @__PURE__ */ new Set()
|
|
98928
98950
|
}));
|
|
98929
|
-
|
|
98951
|
+
function specVersionForRunWrite(runSpecVersion, whenUnknown = SPEC_VERSION_CURRENT) {
|
|
98952
|
+
return Math.min(SPEC_VERSION_CURRENT, runSpecVersion ?? whenUnknown);
|
|
98953
|
+
}
|
|
98954
|
+
const version$1 = "5.0.0-beta.57";
|
|
98930
98955
|
const DEFAULT_HEALTH_CHECK_TIMEOUT = 3e4;
|
|
98931
98956
|
const SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@()[\]]+$/;
|
|
98932
98957
|
function getWorkflowQueueName(workflowName, namespace2) {
|
|
@@ -98987,7 +99012,7 @@ function parseHealthCheckResponse(chunks) {
|
|
|
98987
99012
|
response2 = JSON.parse(responseText);
|
|
98988
99013
|
} catch {
|
|
98989
99014
|
if (responseText.length > 0) {
|
|
98990
|
-
return { healthy: true };
|
|
99015
|
+
return { healthy: true, format: "text" };
|
|
98991
99016
|
}
|
|
98992
99017
|
return null;
|
|
98993
99018
|
}
|
|
@@ -98996,7 +99021,8 @@ function parseHealthCheckResponse(chunks) {
|
|
|
98996
99021
|
}
|
|
98997
99022
|
const r2 = response2;
|
|
98998
99023
|
const parsed = {
|
|
98999
|
-
healthy: r2.healthy
|
|
99024
|
+
healthy: r2.healthy,
|
|
99025
|
+
format: "json"
|
|
99000
99026
|
};
|
|
99001
99027
|
if (typeof r2.specVersion === "number") {
|
|
99002
99028
|
parsed.specVersion = r2.specVersion;
|
|
@@ -101096,7 +101122,7 @@ function getWorkflowVmFromEnv(env2 = process.env) {
|
|
|
101096
101122
|
throw new WorkflowRuntimeError(`Invalid WORKFLOW_VM value: "${raw2}". Expected one of: ${WORKFLOW_VMS.join(", ")}.`);
|
|
101097
101123
|
}
|
|
101098
101124
|
function waitUntil(promise2) {
|
|
101099
|
-
void import("./index-
|
|
101125
|
+
void import("./index-CD3sqsfS.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => {
|
|
101100
101126
|
waitUntil2(promise2);
|
|
101101
101127
|
});
|
|
101102
101128
|
}
|
|
@@ -101117,8 +101143,30 @@ async function waitedUntil(fn2) {
|
|
|
101117
101143
|
}));
|
|
101118
101144
|
return result;
|
|
101119
101145
|
}
|
|
101120
|
-
const CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS =
|
|
101146
|
+
const CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS = 1e4;
|
|
101147
|
+
const CROSS_DEPLOYMENT_PROBE_RETRY_TIMEOUT_MS = 2e3;
|
|
101148
|
+
const CROSS_DEPLOYMENT_PROBE_CACHE_TTL_MS = 10 * 6e4;
|
|
101149
|
+
const CROSS_DEPLOYMENT_PROBE_MISS_TTL_MS = 6e4;
|
|
101150
|
+
const CROSS_DEPLOYMENT_PROBE_CACHE_MAX_ENTRIES = 256;
|
|
101121
101151
|
const RETENTION_ZERO_ATTRIBUTE_VALUE = "0";
|
|
101152
|
+
function resolveCrossDeploymentSpecVersion(probe, callerSpecVersion) {
|
|
101153
|
+
let target2;
|
|
101154
|
+
let source;
|
|
101155
|
+
if (typeof (probe == null ? void 0 : probe.specVersion) === "number" && Number.isInteger(probe.specVersion) && probe.specVersion >= 1) {
|
|
101156
|
+
target2 = probe.specVersion;
|
|
101157
|
+
source = "probe";
|
|
101158
|
+
} else if ((probe == null ? void 0 : probe.format) === "json") {
|
|
101159
|
+
target2 = SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT;
|
|
101160
|
+
source = "probe-malformed";
|
|
101161
|
+
} else if (probe == null ? void 0 : probe.healthy) {
|
|
101162
|
+
target2 = SPEC_VERSION_SUPPORTS_EVENT_SOURCING;
|
|
101163
|
+
source = "probe-unversioned";
|
|
101164
|
+
} else {
|
|
101165
|
+
target2 = SPEC_VERSION_SUPPORTS_SLOT_IDENTITY;
|
|
101166
|
+
source = probe ? "probe-miss" : "no-probe-channel";
|
|
101167
|
+
}
|
|
101168
|
+
return { specVersion: Math.min(target2, callerSpecVersion), source };
|
|
101169
|
+
}
|
|
101122
101170
|
const ulid = monotonicFactory();
|
|
101123
101171
|
function resolveLineageAttributes() {
|
|
101124
101172
|
var _a3;
|
|
@@ -101132,6 +101180,43 @@ function resolveLineageAttributes() {
|
|
|
101132
101180
|
};
|
|
101133
101181
|
}
|
|
101134
101182
|
const latestNoOpWarning = globalSingleton("@workflow/core//latestNoOpWarning", 1, () => ({ warned: false }));
|
|
101183
|
+
const probeMissWarning = globalSingleton("@workflow/core//crossDeploymentProbeMissWarning", 1, () => ({ warned: false }));
|
|
101184
|
+
const crossDeploymentProbeCache = globalSingleton("@workflow/core//crossDeploymentProbeCache", 1, () => /* @__PURE__ */ new WeakMap());
|
|
101185
|
+
async function probeCrossDeployment(world, options) {
|
|
101186
|
+
let byDeployment = crossDeploymentProbeCache.get(world);
|
|
101187
|
+
if (!byDeployment) {
|
|
101188
|
+
byDeployment = /* @__PURE__ */ new Map();
|
|
101189
|
+
crossDeploymentProbeCache.set(world, byDeployment);
|
|
101190
|
+
}
|
|
101191
|
+
const key = `${options.namespace ?? ""}\0${options.deploymentId}`;
|
|
101192
|
+
const now2 = Date.now();
|
|
101193
|
+
const entry2 = byDeployment.get(key);
|
|
101194
|
+
if ((entry2 == null ? void 0 : entry2.probe) !== void 0 && now2 - entry2.at < CROSS_DEPLOYMENT_PROBE_CACHE_TTL_MS) {
|
|
101195
|
+
return { probe: entry2.probe, cached: true };
|
|
101196
|
+
}
|
|
101197
|
+
const recentMiss = entry2 !== void 0 && entry2.probe === void 0 && now2 - entry2.at < CROSS_DEPLOYMENT_PROBE_MISS_TTL_MS;
|
|
101198
|
+
const probe = await healthCheck(world, {
|
|
101199
|
+
deploymentId: options.deploymentId,
|
|
101200
|
+
runId: options.runId,
|
|
101201
|
+
timeout: recentMiss ? CROSS_DEPLOYMENT_PROBE_RETRY_TIMEOUT_MS : CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS,
|
|
101202
|
+
namespace: options.namespace
|
|
101203
|
+
}).catch(() => void 0);
|
|
101204
|
+
const answered = (probe == null ? void 0 : probe.format) !== void 0;
|
|
101205
|
+
byDeployment.delete(key);
|
|
101206
|
+
byDeployment.set(key, {
|
|
101207
|
+
// A repeated miss keeps the first miss's time, so the short budget ends
|
|
101208
|
+
// `CROSS_DEPLOYMENT_PROBE_MISS_TTL_MS` after it.
|
|
101209
|
+
at: !answered && recentMiss ? entry2.at : Date.now(),
|
|
101210
|
+
// The run public key is per run, so it is never reused.
|
|
101211
|
+
probe: answered ? { ...probe, encryptionPublicKey: void 0 } : void 0
|
|
101212
|
+
});
|
|
101213
|
+
if (byDeployment.size > CROSS_DEPLOYMENT_PROBE_CACHE_MAX_ENTRIES) {
|
|
101214
|
+
const oldest = byDeployment.keys().next().value;
|
|
101215
|
+
if (oldest !== void 0)
|
|
101216
|
+
byDeployment.delete(oldest);
|
|
101217
|
+
}
|
|
101218
|
+
return { probe, cached: false };
|
|
101219
|
+
}
|
|
101135
101220
|
async function start$1(workflow, argsOrOptions, options) {
|
|
101136
101221
|
"use step";
|
|
101137
101222
|
return await waitedUntil(() => {
|
|
@@ -101158,17 +101243,29 @@ async function start$1(workflow, argsOrOptions, options) {
|
|
|
101158
101243
|
});
|
|
101159
101244
|
const world = opts.world ?? await getWorldLazy();
|
|
101160
101245
|
assertWorldSupportsRuntimeProtocol(world);
|
|
101161
|
-
|
|
101162
|
-
let deploymentId
|
|
101163
|
-
if (deploymentId === "latest") {
|
|
101164
|
-
|
|
101165
|
-
|
|
101166
|
-
|
|
101167
|
-
|
|
101168
|
-
|
|
101169
|
-
|
|
101246
|
+
let currentDeploymentId;
|
|
101247
|
+
let deploymentId;
|
|
101248
|
+
if (opts.deploymentId === void 0 || opts.deploymentId === "latest") {
|
|
101249
|
+
const current = await world.getDeploymentId();
|
|
101250
|
+
currentDeploymentId = current;
|
|
101251
|
+
deploymentId = opts.deploymentId ?? current;
|
|
101252
|
+
if (deploymentId === "latest") {
|
|
101253
|
+
if (world.resolveLatestDeploymentId) {
|
|
101254
|
+
deploymentId = await world.resolveLatestDeploymentId();
|
|
101255
|
+
} else {
|
|
101256
|
+
if (!latestNoOpWarning.warned) {
|
|
101257
|
+
latestNoOpWarning.warned = true;
|
|
101258
|
+
runtimeLogger.warn("deploymentId: 'latest' has no effect in this world and was ignored. It is only supported by worlds with atomic deployments, such as Vercel. The run will target the current deployment.", { currentDeploymentId });
|
|
101259
|
+
}
|
|
101260
|
+
deploymentId = current;
|
|
101170
101261
|
}
|
|
101171
|
-
|
|
101262
|
+
}
|
|
101263
|
+
} else {
|
|
101264
|
+
deploymentId = opts.deploymentId;
|
|
101265
|
+
try {
|
|
101266
|
+
currentDeploymentId = await world.getDeploymentId();
|
|
101267
|
+
} catch (err) {
|
|
101268
|
+
runtimeLogger.debug("Current deployment is unavailable; starting as a cross-deployment run", { deploymentId, error: String(err) });
|
|
101172
101269
|
}
|
|
101173
101270
|
}
|
|
101174
101271
|
const runId = `wrun_${world.createRunId ? world.createRunId(opts) : ulid()}`;
|
|
@@ -101176,36 +101273,62 @@ async function start$1(workflow, argsOrOptions, options) {
|
|
|
101176
101273
|
let targetSupportsCompression;
|
|
101177
101274
|
let targetHookResumeInputVersion;
|
|
101178
101275
|
let probedRunPublicKey;
|
|
101179
|
-
|
|
101276
|
+
let targetSpecVersion;
|
|
101277
|
+
let specVersionSource;
|
|
101278
|
+
const crossDeployment = deploymentId !== currentDeploymentId;
|
|
101279
|
+
if (!crossDeployment) {
|
|
101180
101280
|
framedByteStreams = true;
|
|
101181
101281
|
targetSupportsCompression = true;
|
|
101182
101282
|
targetHookResumeInputVersion = HOOK_RESUME_INPUT_VERSION;
|
|
101283
|
+
targetSpecVersion = world.specVersion;
|
|
101284
|
+
specVersionSource = "same-deployment";
|
|
101183
101285
|
} else if (typeof ((_a3 = world.streams) == null ? void 0 : _a3.get) !== "function") {
|
|
101184
101286
|
framedByteStreams = false;
|
|
101185
101287
|
targetSupportsCompression = false;
|
|
101186
101288
|
targetHookResumeInputVersion = void 0;
|
|
101289
|
+
({ specVersion: targetSpecVersion, source: specVersionSource } = resolveCrossDeploymentSpecVersion(void 0, world.specVersion));
|
|
101187
101290
|
} else {
|
|
101188
|
-
const probe = await
|
|
101291
|
+
const { probe, cached: cached2 } = await probeCrossDeployment(world, {
|
|
101189
101292
|
deploymentId,
|
|
101190
101293
|
runId,
|
|
101191
|
-
timeout: CROSS_DEPLOYMENT_CAPABILITY_PROBE_TIMEOUT_MS,
|
|
101192
101294
|
namespace: opts.namespace
|
|
101193
|
-
})
|
|
101295
|
+
});
|
|
101194
101296
|
probedRunPublicKey = probe == null ? void 0 : probe.encryptionPublicKey;
|
|
101195
101297
|
const capabilities = getRunCapabilities(probe == null ? void 0 : probe.workflowCoreVersion);
|
|
101196
101298
|
framedByteStreams = capabilities.framedByteStreams;
|
|
101197
101299
|
targetSupportsCompression = capabilities.supportedFormats.has(SerializationFormat$1.GZIP);
|
|
101198
101300
|
targetHookResumeInputVersion = probe == null ? void 0 : probe.hookResumeInputVersion;
|
|
101301
|
+
({ specVersion: targetSpecVersion, source: specVersionSource } = resolveCrossDeploymentSpecVersion(probe, world.specVersion));
|
|
101302
|
+
span == null ? void 0 : span.setAttributes({
|
|
101303
|
+
...WorkflowCapabilityProbeCached(cached2),
|
|
101304
|
+
...!cached2 && (probe == null ? void 0 : probe.latencyMs) !== void 0 ? WorkflowCapabilityProbeLatencyMs(probe.latencyMs) : {},
|
|
101305
|
+
...!cached2 && (probe == null ? void 0 : probe.error) ? WorkflowCapabilityProbeError(probe.error) : {}
|
|
101306
|
+
});
|
|
101307
|
+
if (specVersionSource === "probe-miss" && opts.specVersion === void 0 && !probeMissWarning.warned) {
|
|
101308
|
+
probeMissWarning.warned = true;
|
|
101309
|
+
runtimeLogger.warn("The target deployment did not answer the capability probe, so the run was stamped with a fallback spec version instead of the target's own. A target on an older major version may not be able to execute it.", {
|
|
101310
|
+
deploymentId,
|
|
101311
|
+
specVersion: targetSpecVersion,
|
|
101312
|
+
error: probe == null ? void 0 : probe.error
|
|
101313
|
+
});
|
|
101314
|
+
}
|
|
101199
101315
|
}
|
|
101200
101316
|
const ops = [];
|
|
101201
101317
|
const traceCarrier = await serializeTraceCarrier();
|
|
101202
|
-
const specVersion = opts.specVersion ??
|
|
101318
|
+
const specVersion = opts.specVersion ?? targetSpecVersion;
|
|
101319
|
+
if (opts.specVersion !== void 0)
|
|
101320
|
+
specVersionSource = "explicit";
|
|
101321
|
+
span == null ? void 0 : span.setAttributes({
|
|
101322
|
+
...WorkflowRunSpecVersion(specVersion),
|
|
101323
|
+
...WorkflowRunSpecVersionSource(specVersionSource)
|
|
101324
|
+
});
|
|
101325
|
+
const specGateError = (featureRequires) => new WorkflowRuntimeError(crossDeployment && opts.specVersion === void 0 ? `${featureRequires} spec version ${SPEC_VERSION_SUPPORTS_ATTRIBUTES} or later, but the target deployment (${deploymentId}) runs spec version ${specVersion}.` : `${featureRequires} a World that supports spec version ${SPEC_VERSION_SUPPORTS_ATTRIBUTES} or later.`);
|
|
101203
101326
|
const v1Compat = isLegacySpecVersion(specVersion);
|
|
101204
101327
|
const allowReservedAttributes = opts.allowReservedAttributes === true;
|
|
101205
101328
|
let attributes;
|
|
101206
101329
|
if (opts.attributes && Object.keys(opts.attributes).length > 0) {
|
|
101207
101330
|
if (specVersion < SPEC_VERSION_SUPPORTS_ATTRIBUTES) {
|
|
101208
|
-
throw
|
|
101331
|
+
throw specGateError("Initial workflow attributes require");
|
|
101209
101332
|
}
|
|
101210
101333
|
for (const [key, value] of Object.entries(opts.attributes)) {
|
|
101211
101334
|
if (typeof value !== "string") {
|
|
@@ -101223,7 +101346,7 @@ async function start$1(workflow, argsOrOptions, options) {
|
|
|
101223
101346
|
throw new WorkflowRuntimeError(`start({ experimental_retention }) must be 0 or 'default'; received ${JSON.stringify(opts.experimental_retention)}.`);
|
|
101224
101347
|
}
|
|
101225
101348
|
if (specVersion < SPEC_VERSION_SUPPORTS_ATTRIBUTES) {
|
|
101226
|
-
throw
|
|
101349
|
+
throw specGateError("start({ experimental_retention }) requires");
|
|
101227
101350
|
}
|
|
101228
101351
|
retentionAttribute = {
|
|
101229
101352
|
[RETENTION_ATTRIBUTE]: RETENTION_ZERO_ATTRIBUTE_VALUE
|
|
@@ -101355,8 +101478,8 @@ async function recreateRunFromExisting(world, runId, options = {}) {
|
|
|
101355
101478
|
const rawKey = await ((_a3 = world.getEncryptionKeyForRun) == null ? void 0 : _a3.call(world, run2));
|
|
101356
101479
|
const encryptionKey = rawKey ? await deriveRunPayloadKeys(rawKey) : void 0;
|
|
101357
101480
|
const workflowArgs = normalizeWorkflowArgs(await hydrateWorkflowArguments(run2.input, runId, encryptionKey, globalThis));
|
|
101358
|
-
const specVersion = options.specVersion ?? run2.specVersion ?? SPEC_VERSION_LEGACY;
|
|
101359
101481
|
const deploymentId = options.deploymentId ?? run2.deploymentId;
|
|
101482
|
+
const specVersion = options.specVersion ?? (deploymentId === run2.deploymentId ? run2.specVersion ?? SPEC_VERSION_LEGACY : void 0);
|
|
101360
101483
|
const newRun = await start$1({ workflowId: run2.workflowName }, workflowArgs, {
|
|
101361
101484
|
deploymentId,
|
|
101362
101485
|
world,
|
|
@@ -101372,7 +101495,7 @@ async function recreateRunFromExisting(world, runId, options = {}) {
|
|
|
101372
101495
|
async function cancelRun$2(world, runId, options) {
|
|
101373
101496
|
try {
|
|
101374
101497
|
const run2 = await world.runs.get(runId, { resolveData: "none" });
|
|
101375
|
-
const specVersion = run2.specVersion
|
|
101498
|
+
const specVersion = specVersionForRunWrite(run2.specVersion, SPEC_VERSION_LEGACY);
|
|
101376
101499
|
const compatMode = isLegacySpecVersion(specVersion);
|
|
101377
101500
|
const eventRequest = {
|
|
101378
101501
|
eventType: "run_cancelled",
|
|
@@ -101460,7 +101583,7 @@ async function reenqueueRun$2(world, runId, options) {
|
|
|
101460
101583
|
runId
|
|
101461
101584
|
}, {
|
|
101462
101585
|
deploymentId: run2.deploymentId,
|
|
101463
|
-
specVersion: run2.specVersion
|
|
101586
|
+
specVersion: specVersionForRunWrite(run2.specVersion, SPEC_VERSION_LEGACY)
|
|
101464
101587
|
});
|
|
101465
101588
|
} catch (err) {
|
|
101466
101589
|
throw new Error(`Failed to re-enqueue run ${runId}: ${err instanceof Error ? err.message : String(err)}`, { cause: err });
|
|
@@ -101499,7 +101622,7 @@ async function wakeUpRun$2(world, runId, options) {
|
|
|
101499
101622
|
} : {
|
|
101500
101623
|
eventType: "wait_completed",
|
|
101501
101624
|
correlationId: waitEvent.correlationId,
|
|
101502
|
-
specVersion: run2.specVersion,
|
|
101625
|
+
specVersion: specVersionForRunWrite(run2.specVersion),
|
|
101503
101626
|
eventData: {
|
|
101504
101627
|
resumeAt: waitEvent.eventData.resumeAt
|
|
101505
101628
|
}
|
|
@@ -101520,7 +101643,7 @@ async function wakeUpRun$2(world, runId, options) {
|
|
|
101520
101643
|
runId
|
|
101521
101644
|
}, {
|
|
101522
101645
|
deploymentId: run2.deploymentId,
|
|
101523
|
-
specVersion: run2.specVersion
|
|
101646
|
+
specVersion: specVersionForRunWrite(run2.specVersion, SPEC_VERSION_LEGACY)
|
|
101524
101647
|
});
|
|
101525
101648
|
}
|
|
101526
101649
|
if (errors2.length > 0) {
|
|
@@ -101613,9 +101736,10 @@ const _Run = class _Run {
|
|
|
101613
101736
|
async cancel(options) {
|
|
101614
101737
|
"use step";
|
|
101615
101738
|
const world = await __privateGet(this, _Run_instances, lazyWorldPromise_get);
|
|
101739
|
+
const run2 = await world.runs.get(this.runId, { resolveData: "none" });
|
|
101616
101740
|
await world.events.create(this.runId, {
|
|
101617
101741
|
eventType: "run_cancelled",
|
|
101618
|
-
specVersion:
|
|
101742
|
+
specVersion: specVersionForRunWrite(run2.specVersion),
|
|
101619
101743
|
...(options == null ? void 0 : options.cancelReason) !== void 0 ? { eventData: { cancelReason: options.cancelReason } } : {}
|
|
101620
101744
|
});
|
|
101621
101745
|
}
|
|
@@ -129324,8 +129448,8 @@ const LOCAL_QUEUE_MAX_VISIBILITY = parseInt(process.env.WORKFLOW_LOCAL_QUEUE_MAX
|
|
|
129324
129448
|
const MAX_SAFE_TIMEOUT_MS = 2147483647;
|
|
129325
129449
|
const DEFAULT_CONCURRENCY_LIMIT = 1e3;
|
|
129326
129450
|
const WORKFLOW_LOCAL_QUEUE_CONCURRENCY = parseInt(process.env.WORKFLOW_LOCAL_QUEUE_CONCURRENCY ?? "0", 10) || DEFAULT_CONCURRENCY_LIMIT;
|
|
129327
|
-
const DEFAULT_HEADERS_TIMEOUT_MS =
|
|
129328
|
-
const DEFAULT_BODY_TIMEOUT_MS =
|
|
129451
|
+
const DEFAULT_HEADERS_TIMEOUT_MS = 0;
|
|
129452
|
+
const DEFAULT_BODY_TIMEOUT_MS = 0;
|
|
129329
129453
|
function envTimeoutMs(name2, fallback) {
|
|
129330
129454
|
const raw2 = process.env[name2];
|
|
129331
129455
|
if (raw2 === void 0 || raw2 === "")
|
|
@@ -133045,7 +133169,7 @@ function createEventsStorage(basedir, tag) {
|
|
|
133045
133169
|
throw new RunNotSupportedError(currentRun.specVersion, SPEC_VERSION_CURRENT);
|
|
133046
133170
|
}
|
|
133047
133171
|
if (isLegacySpecVersion(currentRun.specVersion)) {
|
|
133048
|
-
return handleLegacyEvent(basedir, effectiveRunId, data, currentRun, params);
|
|
133172
|
+
return handleLegacyEvent(basedir, effectiveRunId, data, currentRun, params && { resolveData: entityResolveData(params.resolveData) });
|
|
133049
133173
|
}
|
|
133050
133174
|
}
|
|
133051
133175
|
const createsChildEntity = isChildEntityCreationEvent(data);
|
|
@@ -134188,7 +134312,7 @@ function createWorld$2(args) {
|
|
|
134188
134312
|
const basedir = mergedConfig.dataDir;
|
|
134189
134313
|
const hooksDir = path$3.join(basedir, "hooks");
|
|
134190
134314
|
const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
|
|
134191
|
-
const { HookSchema: HookSchema2 } = await import("./index-
|
|
134315
|
+
const { HookSchema: HookSchema2 } = await import("./index-qorbufop.js");
|
|
134192
134316
|
await Promise.all(taggedHookFiles.map(async (hookFile) => {
|
|
134193
134317
|
const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
|
|
134194
134318
|
if (hook == null ? void 0 : hook.token) {
|
|
@@ -134371,8 +134495,8 @@ function requireGetVercelOidcToken() {
|
|
|
134371
134495
|
}
|
|
134372
134496
|
try {
|
|
134373
134497
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
134374
|
-
await import("./token-util-
|
|
134375
|
-
await import("./token-
|
|
134498
|
+
await import("./token-util-CYhmjL6g.js").then((n) => n.t),
|
|
134499
|
+
await import("./token-BfBe4cAY.js").then((n) => n.t)
|
|
134376
134500
|
]);
|
|
134377
134501
|
if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
|
|
134378
134502
|
await refreshToken(options);
|
|
@@ -134935,7 +135059,7 @@ function requireDist() {
|
|
|
134935
135059
|
return dist;
|
|
134936
135060
|
}
|
|
134937
135061
|
var distExports = requireDist();
|
|
134938
|
-
const version = "5.0.0-beta.
|
|
135062
|
+
const version = "5.0.0-beta.52";
|
|
134939
135063
|
const pools = globalSingleton("@workflow/world-vercel//httpPools", 1, () => ({
|
|
134940
135064
|
dispatcher: void 0,
|
|
134941
135065
|
queueDispatcher: void 0,
|
|
@@ -136592,7 +136716,7 @@ function createGetEncryptionKeyForRun(projectId, teamId, token, dispatcher2) {
|
|
|
136592
136716
|
};
|
|
136593
136717
|
}
|
|
136594
136718
|
async function getDeadline() {
|
|
136595
|
-
const { getDeadline: getDeadline2 } = await import("./index-
|
|
136719
|
+
const { getDeadline: getDeadline2 } = await import("./index-CD3sqsfS.js").then((n) => n.i);
|
|
136596
136720
|
return getDeadline2();
|
|
136597
136721
|
}
|
|
136598
136722
|
const WORKFLOW_SERVER_SERVICE = {
|
|
@@ -141739,7 +141863,7 @@ const wsEventsChannelForInvocation = (runId, config2) => {
|
|
|
141739
141863
|
open() {
|
|
141740
141864
|
if (!runId || !isWsEventsTransportEnabled())
|
|
141741
141865
|
return;
|
|
141742
|
-
claim2 = import("./ws-transport-
|
|
141866
|
+
claim2 = import("./ws-transport-xTHJJcp4.js").then(({ openWsChannel }) => openWsChannel(runId, config2)).catch(() => void 0);
|
|
141743
141867
|
},
|
|
141744
141868
|
/**
|
|
141745
141869
|
* Awaited, unlike the open: work scheduled after the handler returns is not
|
|
@@ -142723,6 +142847,9 @@ function buildPostFrameMeta(input) {
|
|
|
142723
142847
|
eventType: input.eventType,
|
|
142724
142848
|
specVersion: input.specVersion
|
|
142725
142849
|
};
|
|
142850
|
+
if (input.executorSpecVersion !== void 0) {
|
|
142851
|
+
meta.executorSpecVersion = input.executorSpecVersion;
|
|
142852
|
+
}
|
|
142726
142853
|
if (input.correlationId !== void 0)
|
|
142727
142854
|
meta.correlationId = input.correlationId;
|
|
142728
142855
|
if (input.vercelId !== void 0)
|
|
@@ -142734,6 +142861,9 @@ function buildPostFrameMeta(input) {
|
|
|
142734
142861
|
if (input.remoteRefBehavior !== void 0) {
|
|
142735
142862
|
meta.remoteRefBehavior = input.remoteRefBehavior;
|
|
142736
142863
|
}
|
|
142864
|
+
if (input.eventsRemoteRefBehavior !== void 0) {
|
|
142865
|
+
meta.eventsRemoteRefBehavior = input.eventsRemoteRefBehavior;
|
|
142866
|
+
}
|
|
142737
142867
|
if (input.deploymentId !== void 0)
|
|
142738
142868
|
meta.deploymentId = input.deploymentId;
|
|
142739
142869
|
if (input.workflowName !== void 0)
|
|
@@ -142981,7 +143111,7 @@ async function decodeCreateEventResponse(response2, eventType) {
|
|
|
142981
143111
|
}
|
|
142982
143112
|
async function createWorkflowRunStartedEventV4(input, config2, replayEventObserver) {
|
|
142983
143113
|
const response2 = await postWorkflowRunEventV4({ ...input, eventType: "run_started" }, "event-stream", config2);
|
|
142984
|
-
const page = await consumeReplayLogResponse(response2, input
|
|
143114
|
+
const page = await consumeReplayLogResponse(response2, input, config2, replayEventObserver);
|
|
142985
143115
|
if (!page.cursor) {
|
|
142986
143116
|
throw new WorkflowWorldError("v4 createEvent: event stream missing cursor", { code: "SCHEMA_VALIDATION" });
|
|
142987
143117
|
}
|
|
@@ -143066,7 +143196,7 @@ function wsReplyStatus(reply, endpoint) {
|
|
|
143066
143196
|
return status;
|
|
143067
143197
|
}
|
|
143068
143198
|
async function postEventFrameOverWs(input, config2) {
|
|
143069
|
-
const { resolveWsTransport } = await import("./ws-transport-
|
|
143199
|
+
const { resolveWsTransport } = await import("./ws-transport-xTHJJcp4.js");
|
|
143070
143200
|
const { runId } = input;
|
|
143071
143201
|
const resolved = resolveWsTransport(runId, config2);
|
|
143072
143202
|
if (!resolved)
|
|
@@ -143133,7 +143263,7 @@ async function createHookReceivedPreloadEventV4(input, config2, replayEventObser
|
|
|
143133
143263
|
result: await decodeCreateEventResponse(response2, "hook_received")
|
|
143134
143264
|
};
|
|
143135
143265
|
}
|
|
143136
|
-
const page = await consumeReplayLogResponse(response2, input
|
|
143266
|
+
const page = await consumeReplayLogResponse(response2, input, config2, replayEventObserver);
|
|
143137
143267
|
const maxEvents = MaxEventsHeaderSchema.safeParse(response2.headers.get(MAX_EVENTS_HEADER));
|
|
143138
143268
|
return {
|
|
143139
143269
|
kind: "stream",
|
|
@@ -143259,7 +143389,7 @@ async function consumeEventFrameStream(response2, opName, replayEventObserver) {
|
|
|
143259
143389
|
}
|
|
143260
143390
|
return partialEventFrameStream(events2, new WorkflowWorldError(`v4 ${opName}: frame stream ended without the end-of-stream sentinel (${events2.length} events read)`, { code: "TRANSPORT" }));
|
|
143261
143391
|
}
|
|
143262
|
-
async function consumeReplayLogResponse(response2, runId, config2, replayEventObserver) {
|
|
143392
|
+
async function consumeReplayLogResponse(response2, { runId, eventsRemoteRefBehavior }, config2, replayEventObserver) {
|
|
143263
143393
|
const page = await consumeEventFrameStream(response2, "createEvent", replayEventObserver);
|
|
143264
143394
|
if (!page.hasMore) {
|
|
143265
143395
|
return {
|
|
@@ -143271,7 +143401,11 @@ async function consumeReplayLogResponse(response2, runId, config2, replayEventOb
|
|
|
143271
143401
|
if (!page.cursor) {
|
|
143272
143402
|
throw new WorkflowWorldError("v4 createEvent: partial event stream missing cursor", { code: "SCHEMA_VALIDATION" });
|
|
143273
143403
|
}
|
|
143274
|
-
const suffix = await getWorkflowRunEventsV4(runId, {
|
|
143404
|
+
const suffix = await getWorkflowRunEventsV4(runId, {
|
|
143405
|
+
cursor: page.cursor,
|
|
143406
|
+
// The suffix of a replay log is the same replay log.
|
|
143407
|
+
remoteRefBehavior: eventsRemoteRefBehavior === "skip-step-inputs" ? "skip-step-inputs" : "resolve"
|
|
143408
|
+
}, config2, replayEventObserver);
|
|
143275
143409
|
return {
|
|
143276
143410
|
events: [...page.events, ...suffix.events],
|
|
143277
143411
|
cursor: suffix.cursor ?? page.cursor,
|
|
@@ -143282,6 +143416,34 @@ async function consumeListFrameStream(url, headers2, config2, opName, replayEven
|
|
|
143282
143416
|
const response2 = await fetchV4(url, { method: "GET", headers: headers2 }, config2, opName);
|
|
143283
143417
|
return consumeEventFrameStream(response2, opName, replayEventObserver);
|
|
143284
143418
|
}
|
|
143419
|
+
const skipStepInputsSupport = globalSingleton("@workflow/world-vercel//skipStepInputsSupport", 2, () => ({ unsupportedSince: /* @__PURE__ */ new Map() }));
|
|
143420
|
+
const SKIP_STEP_INPUTS_REPROBE_MS = 10 * 6e4;
|
|
143421
|
+
function skipStepInputsKnownUnsupported(baseUrl) {
|
|
143422
|
+
const since = skipStepInputsSupport.unsupportedSince.get(baseUrl);
|
|
143423
|
+
if (since === void 0)
|
|
143424
|
+
return false;
|
|
143425
|
+
if (Date.now() - since < SKIP_STEP_INPUTS_REPROBE_MS)
|
|
143426
|
+
return true;
|
|
143427
|
+
skipStepInputsSupport.unsupportedSince.delete(baseUrl);
|
|
143428
|
+
return false;
|
|
143429
|
+
}
|
|
143430
|
+
function mayRejectSkipStepInputs(error2) {
|
|
143431
|
+
return error2 instanceof WorkflowWorldError && error2.status === 400 && error2.code === "validation-error";
|
|
143432
|
+
}
|
|
143433
|
+
async function consumeListWithSkipFallback(baseUrl, requested, buildUrl, headers2, config2, opName, replayEventObserver) {
|
|
143434
|
+
if (requested === "skip-step-inputs" && !skipStepInputsKnownUnsupported(baseUrl)) {
|
|
143435
|
+
try {
|
|
143436
|
+
return await consumeListFrameStream(buildUrl(requested), headers2, config2, opName, replayEventObserver);
|
|
143437
|
+
} catch (error2) {
|
|
143438
|
+
if (!mayRejectSkipStepInputs(error2))
|
|
143439
|
+
throw error2;
|
|
143440
|
+
}
|
|
143441
|
+
const result = await consumeListFrameStream(buildUrl("resolve"), headers2, config2, opName, replayEventObserver);
|
|
143442
|
+
skipStepInputsSupport.unsupportedSince.set(baseUrl, Date.now());
|
|
143443
|
+
return result;
|
|
143444
|
+
}
|
|
143445
|
+
return consumeListFrameStream(buildUrl(requested === "skip-step-inputs" ? "resolve" : requested), headers2, config2, opName, replayEventObserver);
|
|
143446
|
+
}
|
|
143285
143447
|
function appendListParams(sp, params) {
|
|
143286
143448
|
if (params.cursor)
|
|
143287
143449
|
sp.set("cursor", params.cursor);
|
|
@@ -143307,8 +143469,8 @@ async function getWorkflowRunEventsV4(runId, params = {}, config2, replayEventOb
|
|
|
143307
143469
|
let partialStreamRetries = 0;
|
|
143308
143470
|
let consumed;
|
|
143309
143471
|
do {
|
|
143310
|
-
const
|
|
143311
|
-
consumed = await
|
|
143472
|
+
const pageCursor = cursor ?? void 0;
|
|
143473
|
+
consumed = await consumeListWithSkipFallback(baseUrl, params.remoteRefBehavior, (remoteRefBehavior) => `${baseUrl}/v4/runs/${encodeURIComponent(runId)}/events` + paginationToQuery({ ...params, remoteRefBehavior, cursor: pageCursor }), headers2, config2, "listEvents", replayEventObserver);
|
|
143312
143474
|
const cursorAdvanced = !!consumed.cursor && consumed.cursor !== cursor;
|
|
143313
143475
|
if (consumed.kind === "partial") {
|
|
143314
143476
|
if (params.limit !== void 0 || !cursorAdvanced || partialStreamRetries === MAX_PARTIAL_STREAM_RETRIES) {
|
|
@@ -143331,12 +143493,13 @@ async function getWorkflowRunEventsV4(runId, params = {}, config2, replayEventOb
|
|
|
143331
143493
|
}
|
|
143332
143494
|
async function getEventsByCorrelationIdV4(correlationId, runId, params = {}, config2) {
|
|
143333
143495
|
const { baseUrl, headers: headers2 } = await getHttpConfig(config2);
|
|
143334
|
-
const
|
|
143335
|
-
|
|
143336
|
-
|
|
143337
|
-
|
|
143338
|
-
|
|
143339
|
-
|
|
143496
|
+
const consumed = await consumeListWithSkipFallback(baseUrl, params.remoteRefBehavior, (remoteRefBehavior) => {
|
|
143497
|
+
const sp = new URLSearchParams();
|
|
143498
|
+
sp.set("correlationId", correlationId);
|
|
143499
|
+
sp.set("runId", runId);
|
|
143500
|
+
appendListParams(sp, { ...params, remoteRefBehavior });
|
|
143501
|
+
return `${baseUrl}/v4/events?${sp.toString()}`;
|
|
143502
|
+
}, headers2, config2, "listEventsByCorrelationId");
|
|
143340
143503
|
if (consumed.kind === "partial")
|
|
143341
143504
|
throw consumed.error;
|
|
143342
143505
|
return {
|
|
@@ -143700,7 +143863,7 @@ async function getWorkflowRunEvents(params, config2) {
|
|
|
143700
143863
|
const { pagination, resolveData = DEFAULT_RESOLVE_DATA_OPTION } = params;
|
|
143701
143864
|
const listParams = {
|
|
143702
143865
|
...pagination,
|
|
143703
|
-
remoteRefBehavior: resolveData === "none" ? "lazy" : "resolve"
|
|
143866
|
+
remoteRefBehavior: resolveData === "none" ? "lazy" : resolveData === "skip-step-inputs" ? "skip-step-inputs" : "resolve"
|
|
143704
143867
|
};
|
|
143705
143868
|
const result = await ("correlationId" in params ? getEventsByCorrelationIdV4(params.correlationId, params.runId, listParams, config2) : getWorkflowRunEventsV4(params.runId, listParams, config2));
|
|
143706
143869
|
return {
|
|
@@ -143799,7 +143962,7 @@ async function createWorkflowRunEvent(id2, data, params, config2) {
|
|
|
143799
143962
|
async function createWorkflowRunEventInner(id2, data, params, config2) {
|
|
143800
143963
|
if (params == null ? void 0 : params.v1Compat) {
|
|
143801
143964
|
if (data.eventType === "run_cancelled" && id2) {
|
|
143802
|
-
const run2 = await cancelWorkflowRunV1(id2, params, config2);
|
|
143965
|
+
const run2 = await cancelWorkflowRunV1(id2, { ...params, resolveData: entityResolveData(params.resolveData) }, config2);
|
|
143803
143966
|
return { run: run2 };
|
|
143804
143967
|
}
|
|
143805
143968
|
if (data.eventType === "run_created") {
|
|
@@ -143837,6 +144000,9 @@ async function createWorkflowRunEventInner(id2, data, params, config2) {
|
|
|
143837
144000
|
const input = {
|
|
143838
144001
|
runId: id2,
|
|
143839
144002
|
specVersion: data.specVersion ?? 2,
|
|
144003
|
+
...data.eventType === "run_started" ? {
|
|
144004
|
+
executorSpecVersion: (config2 == null ? void 0 : config2.mintedSpecVersion) ?? mintedSpecVersion()
|
|
144005
|
+
} : {},
|
|
143840
144006
|
...data.correlationId ? { correlationId: data.correlationId } : {},
|
|
143841
144007
|
...(params == null ? void 0 : params.requestId) ? { vercelId: params.requestId } : {},
|
|
143842
144008
|
...(params == null ? void 0 : params.computeInstanceId) ? { computeInstanceId: params.computeInstanceId } : {},
|
|
@@ -143861,6 +144027,10 @@ async function createWorkflowRunEventInner(id2, data, params, config2) {
|
|
|
143861
144027
|
// defense-in-depth when it recorded a 412 rejection for this correlation
|
|
143862
144028
|
// id and no step entity exists.
|
|
143863
144029
|
...(params == null ? void 0 : params.viaStepDispatch) ? { viaStepDispatch: true } : {},
|
|
144030
|
+
// The event-log page this POST returns (a preload or a `sinceCursor`
|
|
144031
|
+
// delta) may leave out step inputs; the created event and step entity
|
|
144032
|
+
// follow `remoteRefBehavior` and never do.
|
|
144033
|
+
...(params == null ? void 0 : params.resolveData) === "skip-step-inputs" ? { eventsRemoteRefBehavior: "skip-step-inputs" } : {},
|
|
143864
144034
|
remoteRefBehavior,
|
|
143865
144035
|
payload,
|
|
143866
144036
|
...meta
|
|
@@ -144161,7 +144331,7 @@ function beginNormalWsClose(ws, reason) {
|
|
|
144161
144331
|
await observed;
|
|
144162
144332
|
span == null ? void 0 : span.setAttribute("workflow.stream.ws.close_cleanup_timeout", timedOut);
|
|
144163
144333
|
});
|
|
144164
|
-
void import("./index-
|
|
144334
|
+
void import("./index-CD3sqsfS.js").then((n) => n.i).then(({ waitUntil: waitUntil2 }) => waitUntil2(cleanup)).catch(() => {
|
|
144165
144335
|
});
|
|
144166
144336
|
void cleanup.catch(() => {
|
|
144167
144337
|
});
|
|
@@ -144513,7 +144683,7 @@ class VercelStreamWriteSession {
|
|
|
144513
144683
|
return http3;
|
|
144514
144684
|
});
|
|
144515
144685
|
const [{ WebSocket: WebSocketImpl }, http2] = await Promise.all([
|
|
144516
|
-
import("./wrapper-
|
|
144686
|
+
import("./wrapper-CUYQE5_Q.js"),
|
|
144517
144687
|
httpPromise
|
|
144518
144688
|
]);
|
|
144519
144689
|
if (this.mode !== "connecting")
|
|
@@ -145096,6 +145266,8 @@ function createStreamer(config2) {
|
|
|
145096
145266
|
function createWorld$1(config2) {
|
|
145097
145267
|
var _a3, _b2;
|
|
145098
145268
|
const projectId = ((_a3 = config2 == null ? void 0 : config2.projectConfig) == null ? void 0 : _a3.projectId) || process.env.VERCEL_PROJECT_ID;
|
|
145269
|
+
const specVersion = mintedSpecVersion();
|
|
145270
|
+
config2 = { ...config2, mintedSpecVersion: specVersion };
|
|
145099
145271
|
return {
|
|
145100
145272
|
// The version is what tells the backend which id scheme a run uses: it is
|
|
145101
145273
|
// stamped on `run_created` and read back on every later write, so a run
|
|
@@ -145106,7 +145278,7 @@ function createWorld$1(config2) {
|
|
|
145106
145278
|
// version that introduced slots: a bump has to move this declaration with
|
|
145107
145279
|
// it, or the runtime's compatibility floor rises past the adapter shipped
|
|
145108
145280
|
// alongside it and rejects it (see `assertWorldSupportsRuntimeProtocol`).
|
|
145109
|
-
specVersion
|
|
145281
|
+
specVersion,
|
|
145110
145282
|
capabilities: {
|
|
145111
145283
|
hookRetention: { active: true },
|
|
145112
145284
|
// Vercel Queues supports maxConcurrency-limited consumers, which
|
|
@@ -146295,7 +146467,8 @@ async function resumeHookAttempt(world, span, tokenOrHook, payload, encryptionKe
|
|
|
146295
146467
|
try {
|
|
146296
146468
|
await world.events.create(hook.runId, {
|
|
146297
146469
|
eventType: "hook_received",
|
|
146298
|
-
|
|
146470
|
+
// The payload is already encoded for the run (see `compression`).
|
|
146471
|
+
specVersion: specVersionForRunWrite(resumeContext.runSpecVersion),
|
|
146299
146472
|
correlationId: hook.hookId,
|
|
146300
146473
|
eventData: {
|
|
146301
146474
|
...v1Compat ? {} : { token: hook.token },
|
|
@@ -169820,7 +169993,7 @@ export {
|
|
|
169820
169993
|
RETENTION_ATTRIBUTE as Z,
|
|
169821
169994
|
RETENTION_DEFAULT as _,
|
|
169822
169995
|
ANALYTICS_MAX_ATTRIBUTE_FILTERS as a,
|
|
169823
|
-
|
|
169996
|
+
reenqueueActiveRuns as a$,
|
|
169824
169997
|
ROOT_RUN_ID_ATTRIBUTE as a0,
|
|
169825
169998
|
RUN_ENTITY_KEY as a1,
|
|
169826
169999
|
RunInputSchema as a2,
|
|
@@ -169831,95 +170004,97 @@ export {
|
|
|
169831
170004
|
SPEC_VERSION_SUPPORTS_ATTRIBUTES as a7,
|
|
169832
170005
|
SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT as a8,
|
|
169833
170006
|
SPEC_VERSION_SUPPORTS_COMPRESSION as a9,
|
|
169834
|
-
|
|
169835
|
-
|
|
169836
|
-
|
|
169837
|
-
|
|
169838
|
-
|
|
169839
|
-
|
|
169840
|
-
|
|
169841
|
-
|
|
169842
|
-
|
|
169843
|
-
|
|
169844
|
-
|
|
169845
|
-
|
|
169846
|
-
|
|
169847
|
-
|
|
169848
|
-
|
|
169849
|
-
|
|
169850
|
-
|
|
169851
|
-
|
|
169852
|
-
|
|
169853
|
-
|
|
169854
|
-
|
|
169855
|
-
|
|
169856
|
-
|
|
169857
|
-
|
|
169858
|
-
|
|
169859
|
-
|
|
169860
|
-
|
|
169861
|
-
|
|
169862
|
-
|
|
169863
|
-
|
|
169864
|
-
|
|
169865
|
-
|
|
169866
|
-
|
|
169867
|
-
|
|
169868
|
-
|
|
169869
|
-
|
|
169870
|
-
|
|
169871
|
-
|
|
169872
|
-
|
|
169873
|
-
|
|
169874
|
-
|
|
169875
|
-
|
|
169876
|
-
|
|
169877
|
-
|
|
169878
|
-
|
|
169879
|
-
|
|
169880
|
-
|
|
169881
|
-
|
|
169882
|
-
|
|
169883
|
-
|
|
169884
|
-
|
|
169885
|
-
|
|
169886
|
-
|
|
170007
|
+
entityEventClass as aA,
|
|
170008
|
+
entityResolveData as aB,
|
|
170009
|
+
envFlag as aC,
|
|
170010
|
+
envNumber as aD,
|
|
170011
|
+
eventIdToSlot as aE,
|
|
170012
|
+
getEventDataPayloadField as aF,
|
|
170013
|
+
getEventDataRefFields as aG,
|
|
170014
|
+
getMaxEventsPerRun as aH,
|
|
170015
|
+
getQueueTopicPrefix as aI,
|
|
170016
|
+
isChildEntityCreationEvent as aJ,
|
|
170017
|
+
isChildEntityCreationEventType as aK,
|
|
170018
|
+
isHookEventRequiringExistence as aL,
|
|
170019
|
+
isHookLifecycleEventType as aM,
|
|
170020
|
+
isLegacySpecVersion as aN,
|
|
170021
|
+
isNodeHttpEnabled as aO,
|
|
170022
|
+
isSealedNoopEvent$1 as aP,
|
|
170023
|
+
isSlotBody as aQ,
|
|
170024
|
+
isSlotEventId as aR,
|
|
170025
|
+
isStepEventType as aS,
|
|
170026
|
+
isTerminalRunEventType as aT,
|
|
170027
|
+
isTerminalStepEventType as aU,
|
|
170028
|
+
isTerminalStepStatus as aV,
|
|
170029
|
+
isTerminalWorkflowRunStatus as aW,
|
|
170030
|
+
isWaitEventType as aX,
|
|
170031
|
+
mintedSpecVersion as aY,
|
|
170032
|
+
parseQueueName as aZ,
|
|
170033
|
+
readRunRetention as a_,
|
|
170034
|
+
SPEC_VERSION_SUPPORTS_EVENT_SOURCING as aa,
|
|
170035
|
+
SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM as ab,
|
|
170036
|
+
SPEC_VERSION_SUPPORTS_SLOT_IDENTITY as ac,
|
|
170037
|
+
STEP_EVENT_TYPES as ad,
|
|
170038
|
+
SerializedDataSchema as ae,
|
|
170039
|
+
StepSchema as af,
|
|
170040
|
+
StepStatusSchema as ag,
|
|
170041
|
+
StructuredErrorSchema as ah,
|
|
170042
|
+
TERMINAL_EVENT_CLASSES as ai,
|
|
170043
|
+
TERMINAL_RUN_EVENT_TYPES as aj,
|
|
170044
|
+
TERMINAL_STEP_EVENT_TYPES as ak,
|
|
170045
|
+
TERMINAL_STEP_STATUSES as al,
|
|
170046
|
+
TERMINAL_WORKFLOW_RUN_STATUSES as am,
|
|
170047
|
+
TerminalRunEventTypeSchema as an,
|
|
170048
|
+
TerminalStepStatusSchema as ao,
|
|
170049
|
+
TerminalWorkflowRunStatusSchema as ap,
|
|
170050
|
+
ValidQueueName as aq,
|
|
170051
|
+
WAIT_EVENT_TYPES as ar,
|
|
170052
|
+
WaitSchema as as,
|
|
170053
|
+
WaitStatusSchema as at,
|
|
170054
|
+
WorkflowInvokePayloadSchema as au,
|
|
170055
|
+
WorkflowRunBaseSchema as av,
|
|
170056
|
+
WorkflowRunSchema as aw,
|
|
170057
|
+
WorkflowRunStatusSchema as ax,
|
|
170058
|
+
applyAttributeChanges as ay,
|
|
170059
|
+
classifyEntityEvent as az,
|
|
169887
170060
|
ANALYTICS_PAGE_LIMIT as b,
|
|
169888
|
-
|
|
169889
|
-
|
|
169890
|
-
|
|
169891
|
-
|
|
169892
|
-
|
|
169893
|
-
|
|
169894
|
-
|
|
169895
|
-
|
|
169896
|
-
|
|
169897
|
-
|
|
169898
|
-
|
|
169899
|
-
|
|
169900
|
-
|
|
169901
|
-
|
|
169902
|
-
|
|
169903
|
-
|
|
169904
|
-
|
|
169905
|
-
|
|
169906
|
-
|
|
169907
|
-
|
|
169908
|
-
|
|
169909
|
-
|
|
169910
|
-
|
|
169911
|
-
|
|
169912
|
-
|
|
169913
|
-
|
|
169914
|
-
|
|
169915
|
-
|
|
169916
|
-
|
|
169917
|
-
|
|
169918
|
-
|
|
169919
|
-
|
|
169920
|
-
|
|
169921
|
-
|
|
169922
|
-
|
|
170061
|
+
requiresNewerWorld as b0,
|
|
170062
|
+
resolveQueueNamespace as b1,
|
|
170063
|
+
slotToEventId as b2,
|
|
170064
|
+
stripEventDataRefs as b3,
|
|
170065
|
+
ulidToDate as b4,
|
|
170066
|
+
validateAttributeChanges as b5,
|
|
170067
|
+
validateAttributeEventDataSize as b6,
|
|
170068
|
+
validateUlidTimestamp as b7,
|
|
170069
|
+
workflowRunIdSchema as b8,
|
|
170070
|
+
reactExports as b9,
|
|
170071
|
+
createFetchHandler as bA,
|
|
170072
|
+
R as ba,
|
|
170073
|
+
Ks as bb,
|
|
170074
|
+
jsxRuntimeExports as bc,
|
|
170075
|
+
Qe as bd,
|
|
170076
|
+
registerZstdDecoder as be,
|
|
170077
|
+
isWsEventsTransportEnabled as bf,
|
|
170078
|
+
debugLog as bg,
|
|
170079
|
+
getHttpUrl as bh,
|
|
170080
|
+
globalSingleton as bi,
|
|
170081
|
+
version as bj,
|
|
170082
|
+
getHttpConfig as bk,
|
|
170083
|
+
headersToRecord as bl,
|
|
170084
|
+
getRequestTimeoutMs as bm,
|
|
170085
|
+
injectTraceContextIntoHeaders as bn,
|
|
170086
|
+
withHttpClientSpan as bo,
|
|
170087
|
+
ErrorType as bp,
|
|
170088
|
+
WorkflowWsReconnectAttempt as bq,
|
|
170089
|
+
NetworkProtocolName as br,
|
|
170090
|
+
WorkflowEventsTransport as bs,
|
|
170091
|
+
distExports as bt,
|
|
170092
|
+
decodeFrames as bu,
|
|
170093
|
+
getDefaultExportFromCjs as bv,
|
|
170094
|
+
requireTokenUtil as bw,
|
|
170095
|
+
requireTokenError as bx,
|
|
170096
|
+
getAugmentedNamespace as by,
|
|
170097
|
+
app as bz,
|
|
169923
170098
|
ANALYTICS_RUN_SCOPED_PAGE_LIMIT as c,
|
|
169924
170099
|
ATTRIBUTE_EVENT_DATA_MAX_BYTES as d,
|
|
169925
170100
|
ATTRIBUTE_KEY_MAX_LENGTH as e,
|
|
@@ -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 {
|
|
5
|
+
import { b9 as reactExports, ba as R, bb as Ks, bc as jsxRuntimeExports, bd as Qe } from "./app-CLgyAdH3.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
|
@@ -1137,7 +1137,7 @@ function requireWebsocket() {
|
|
|
1137
1137
|
const DEFAULT_MAX_PAYLOAD = 256 * 1024;
|
|
1138
1138
|
async function loadWebSocketServer() {
|
|
1139
1139
|
try {
|
|
1140
|
-
const ws = await import("./wrapper-
|
|
1140
|
+
const ws = await import("./wrapper-CUYQE5_Q.js");
|
|
1141
1141
|
return ws.WebSocketServer;
|
|
1142
1142
|
} catch {
|
|
1143
1143
|
throw new Error(
|
|
@@ -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 HookSchema } from "./app-
|
|
6
|
-
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, B, s, t, u, v, C, D, w, E, x, y, z, F, G, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6 } from "./app-
|
|
5
|
+
import { H as HookSchema } from "./app-CLgyAdH3.js";
|
|
6
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, B, s, t, u, v, C, D, w, E, x, y, z, F, G, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8 } from "./app-CLgyAdH3.js";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "stream";
|
|
9
9
|
import "util";
|
|
@@ -113,65 +113,67 @@ export {
|
|
|
113
113
|
a7 as SPEC_VERSION_SUPPORTS_ATTRIBUTES,
|
|
114
114
|
a8 as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
|
|
115
115
|
a9 as SPEC_VERSION_SUPPORTS_COMPRESSION,
|
|
116
|
-
aa as
|
|
117
|
-
ab as
|
|
118
|
-
ac as
|
|
119
|
-
ad as
|
|
120
|
-
ae as
|
|
121
|
-
af as
|
|
122
|
-
ag as
|
|
123
|
-
ah as
|
|
124
|
-
ai as
|
|
125
|
-
aj as
|
|
126
|
-
ak as
|
|
127
|
-
al as
|
|
128
|
-
am as
|
|
129
|
-
an as
|
|
130
|
-
ao as
|
|
131
|
-
ap as
|
|
132
|
-
aq as
|
|
133
|
-
ar as
|
|
134
|
-
as as
|
|
135
|
-
at as
|
|
136
|
-
au as
|
|
137
|
-
av as
|
|
138
|
-
aw as
|
|
139
|
-
ax as
|
|
140
|
-
ay as
|
|
141
|
-
az as
|
|
142
|
-
aA as
|
|
143
|
-
aB as
|
|
144
|
-
aC as
|
|
145
|
-
aD as
|
|
146
|
-
aE as
|
|
147
|
-
aF as
|
|
148
|
-
aG as
|
|
149
|
-
aH as
|
|
150
|
-
aI as
|
|
151
|
-
aJ as
|
|
152
|
-
aK as
|
|
153
|
-
aL as
|
|
154
|
-
aM as
|
|
155
|
-
aN as
|
|
156
|
-
aO as
|
|
157
|
-
aP as
|
|
158
|
-
aQ as
|
|
159
|
-
aR as
|
|
160
|
-
aS as
|
|
161
|
-
aT as
|
|
162
|
-
aU as
|
|
163
|
-
aV as
|
|
164
|
-
aW as
|
|
165
|
-
aX as
|
|
166
|
-
aY as
|
|
167
|
-
aZ as
|
|
168
|
-
a_ as
|
|
169
|
-
a$ as
|
|
170
|
-
b0 as
|
|
171
|
-
b1 as
|
|
172
|
-
b2 as
|
|
173
|
-
b3 as
|
|
174
|
-
b4 as
|
|
175
|
-
b5 as
|
|
176
|
-
b6 as
|
|
116
|
+
aa as SPEC_VERSION_SUPPORTS_EVENT_SOURCING,
|
|
117
|
+
ab as SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM,
|
|
118
|
+
ac as SPEC_VERSION_SUPPORTS_SLOT_IDENTITY,
|
|
119
|
+
ad as STEP_EVENT_TYPES,
|
|
120
|
+
ae as SerializedDataSchema,
|
|
121
|
+
af as StepSchema,
|
|
122
|
+
ag as StepStatusSchema,
|
|
123
|
+
ah as StructuredErrorSchema,
|
|
124
|
+
ai as TERMINAL_EVENT_CLASSES,
|
|
125
|
+
aj as TERMINAL_RUN_EVENT_TYPES,
|
|
126
|
+
ak as TERMINAL_STEP_EVENT_TYPES,
|
|
127
|
+
al as TERMINAL_STEP_STATUSES,
|
|
128
|
+
am as TERMINAL_WORKFLOW_RUN_STATUSES,
|
|
129
|
+
an as TerminalRunEventTypeSchema,
|
|
130
|
+
ao as TerminalStepStatusSchema,
|
|
131
|
+
ap as TerminalWorkflowRunStatusSchema,
|
|
132
|
+
aq as ValidQueueName,
|
|
133
|
+
ar as WAIT_EVENT_TYPES,
|
|
134
|
+
as as WaitSchema,
|
|
135
|
+
at as WaitStatusSchema,
|
|
136
|
+
au as WorkflowInvokePayloadSchema,
|
|
137
|
+
av as WorkflowRunBaseSchema,
|
|
138
|
+
aw as WorkflowRunSchema,
|
|
139
|
+
ax as WorkflowRunStatusSchema,
|
|
140
|
+
ay as applyAttributeChanges,
|
|
141
|
+
az as classifyEntityEvent,
|
|
142
|
+
aA as entityEventClass,
|
|
143
|
+
aB as entityResolveData,
|
|
144
|
+
aC as envFlag,
|
|
145
|
+
aD as envNumber,
|
|
146
|
+
aE as eventIdToSlot,
|
|
147
|
+
aF as getEventDataPayloadField,
|
|
148
|
+
aG as getEventDataRefFields,
|
|
149
|
+
aH as getMaxEventsPerRun,
|
|
150
|
+
aI as getQueueTopicPrefix,
|
|
151
|
+
aJ as isChildEntityCreationEvent,
|
|
152
|
+
aK as isChildEntityCreationEventType,
|
|
153
|
+
aL as isHookEventRequiringExistence,
|
|
154
|
+
aM as isHookLifecycleEventType,
|
|
155
|
+
aN as isLegacySpecVersion,
|
|
156
|
+
aO as isNodeHttpEnabled,
|
|
157
|
+
aP as isSealedNoopEvent,
|
|
158
|
+
aQ as isSlotBody,
|
|
159
|
+
aR as isSlotEventId,
|
|
160
|
+
aS as isStepEventType,
|
|
161
|
+
aT as isTerminalRunEventType,
|
|
162
|
+
aU as isTerminalStepEventType,
|
|
163
|
+
aV as isTerminalStepStatus,
|
|
164
|
+
aW as isTerminalWorkflowRunStatus,
|
|
165
|
+
aX as isWaitEventType,
|
|
166
|
+
aY as mintedSpecVersion,
|
|
167
|
+
aZ as parseQueueName,
|
|
168
|
+
a_ as readRunRetention,
|
|
169
|
+
a$ as reenqueueActiveRuns,
|
|
170
|
+
b0 as requiresNewerWorld,
|
|
171
|
+
b1 as resolveQueueNamespace,
|
|
172
|
+
b2 as slotToEventId,
|
|
173
|
+
b3 as stripEventDataRefs,
|
|
174
|
+
b4 as ulidToDate,
|
|
175
|
+
b5 as validateAttributeChanges,
|
|
176
|
+
b6 as validateAttributeEventDataSize,
|
|
177
|
+
b7 as validateUlidTimestamp,
|
|
178
|
+
b8 as workflowRunIdSchema
|
|
177
179
|
};
|
|
@@ -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 { N as Nt } from "./app-
|
|
5
|
+
import { N as Nt } from "./app-CLgyAdH3.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 {
|
|
5
|
+
import { bx as requireTokenError, bw as requireTokenUtil, bv as getDefaultExportFromCjs } from "./app-CLgyAdH3.js";
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
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 {
|
|
5
|
+
import { bv as getDefaultExportFromCjs, bw as requireTokenUtil } from "./app-CLgyAdH3.js";
|
|
6
6
|
function _mergeNamespaces(n, m) {
|
|
7
7
|
for (var i = 0; i < m.length; i++) {
|
|
8
8
|
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 {
|
|
5
|
+
import { by as getAugmentedNamespace, bv as getDefaultExportFromCjs } from "./app-CLgyAdH3.js";
|
|
6
6
|
import require$$0$2 from "stream";
|
|
7
7
|
import require$$0$3 from "events";
|
|
8
8
|
import require$$2$1 from "http";
|
|
@@ -2,9 +2,9 @@ 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 { W as WebSocket } from "./websocket-server-
|
|
6
|
-
import { p, r, s, w, a, e, b } from "./websocket-server-
|
|
7
|
-
import "./app-
|
|
5
|
+
import { W as WebSocket } from "./websocket-server-DB4GPS66.js";
|
|
6
|
+
import { p, r, s, w, a, e, b } from "./websocket-server-DB4GPS66.js";
|
|
7
|
+
import "./app-CLgyAdH3.js";
|
|
8
8
|
import "node:stream";
|
|
9
9
|
import "stream";
|
|
10
10
|
import "util";
|
|
@@ -5,8 +5,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
5
5
|
if (typeof require === "undefined") {
|
|
6
6
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
7
7
|
}
|
|
8
|
-
import {
|
|
9
|
-
import { W as WebSocket } from "./websocket-server-
|
|
8
|
+
import { bf as isWsEventsTransportEnabled, bg as debugLog, bh as getHttpUrl, bi as globalSingleton, bj as version, bk as getHttpConfig, bl as headersToRecord, bm as getRequestTimeoutMs, bn as injectTraceContextIntoHeaders, bo as withHttpClientSpan, bp as ErrorType, bq as WorkflowWsReconnectAttempt, br as NetworkProtocolName, bs as WorkflowEventsTransport, bt as distExports, bu as decodeFrames } from "./app-CLgyAdH3.js";
|
|
9
|
+
import { W as WebSocket } from "./websocket-server-DB4GPS66.js";
|
|
10
10
|
import "node:stream";
|
|
11
11
|
import "stream";
|
|
12
12
|
import "util";
|
package/build/server/assets/{zstd-browser-decoder-DSPBib47.js → zstd-browser-decoder-CIXVj9sh.js}
RENAMED
|
@@ -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 {
|
|
5
|
+
import { be as registerZstdDecoder } from "./app-CLgyAdH3.js";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "util";
|
package/build/server/index.js
CHANGED
|
@@ -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 {
|
|
5
|
+
import { bz, bA } from "./assets/app-CLgyAdH3.js";
|
|
6
6
|
import "express";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import "stream";
|
|
@@ -49,6 +49,6 @@ import "assert/strict";
|
|
|
49
49
|
import "net";
|
|
50
50
|
import "node:assert/strict";
|
|
51
51
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
bz as app,
|
|
53
|
+
bA as createFetchHandler
|
|
54
54
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/web",
|
|
3
3
|
"description": "Workflow Observability UI",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.57",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"directory": "packages/web"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@workflow/world-local": "5.0.0-beta.
|
|
42
|
+
"@workflow/world-local": "5.0.0-beta.48",
|
|
43
43
|
"express": "^5.2.1",
|
|
44
44
|
"swr": "^2.3.6"
|
|
45
45
|
},
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"@types/react": "19",
|
|
66
66
|
"@types/react-dom": "19",
|
|
67
67
|
"@vercel/react-router": "1.2.6",
|
|
68
|
-
"@workflow/core": "5.0.0-beta.
|
|
69
|
-
"@workflow/errors": "5.0.0-beta.
|
|
68
|
+
"@workflow/core": "5.0.0-beta.57",
|
|
69
|
+
"@workflow/errors": "5.0.0-beta.24",
|
|
70
70
|
"@workflow/utils": "5.0.0-beta.10",
|
|
71
|
-
"@workflow/web-shared": "5.0.0-beta.
|
|
72
|
-
"@workflow/world": "5.0.0-beta.
|
|
73
|
-
"@workflow/world-vercel": "5.0.0-beta.
|
|
71
|
+
"@workflow/web-shared": "5.0.0-beta.57",
|
|
72
|
+
"@workflow/world": "5.0.0-beta.39",
|
|
73
|
+
"@workflow/world-vercel": "5.0.0-beta.52",
|
|
74
74
|
"@xyflow/react": "12.10.1",
|
|
75
75
|
"cbor-x": "^1",
|
|
76
76
|
"class-variance-authority": "0.7.1",
|