@workflow/web 4.1.12 → 4.1.14
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/{entry.client-DtOpLtMQ.js → entry.client-C_C46bD6.js} +24 -24
- package/build/client/assets/{highlighted-body-B3W2YXNL-BAYKR78e.js → highlighted-body-B3W2YXNL-Bt3a5JLE.js} +1 -1
- package/build/client/assets/{home-Dfsfdnb8.js → home-Blj6TeEE.js} +2 -2
- package/build/client/assets/{manifest-512e97b8.js → manifest-0285e96f.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-B6kYjVMX.js → mermaid-3ZIDBTTL-Bp6ZST9_.js} +7 -8
- package/build/client/assets/{root-wB6lxnL8.js → root-BxnaECGo.js} +1 -1
- package/build/client/assets/{run-detail-hWiDiLfl.js → run-detail-Cbuf5qtv.js} +2 -2
- package/build/client/assets/{workflow-graph-viewer-D_Ulka_4.js → workflow-graph-viewer-C6PWoIIU.js} +1 -1
- package/build/server/assets/{app-nwg8-luA.js → app-B2hObQJu.js} +43 -43
- package/build/server/assets/{highlighted-body-B3W2YXNL-DVC2INnQ.js → highlighted-body-B3W2YXNL-c3Vtq09H.js} +2 -2
- package/build/server/assets/{index-B6jlFuhu.js → index-ulh-Ko1q.js} +3 -3
- package/build/server/assets/{mermaid-3ZIDBTTL-CQrdOUbt.js → mermaid-3ZIDBTTL-D9FphmOZ.js} +2 -2
- package/build/server/assets/{server-build-X-sv9tml.js → server-build-CAufQfpc.js} +377 -308
- package/build/server/assets/{token-ivPwH5nT.js → token-COKbCOS0.js} +2 -2
- package/build/server/assets/{token-util-DQ4uPgvu.js → token-util-TwMjSZSF.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +6 -6
|
@@ -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, _b, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn, _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn, _reader;
|
|
17
|
-
import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-
|
|
17
|
+
import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-B2hObQJu.js";
|
|
18
18
|
import require$$0$5, { PassThrough } from "node:stream";
|
|
19
19
|
import require$$0 from "util";
|
|
20
20
|
import require$$1 from "crypto";
|
|
@@ -34929,11 +34929,11 @@ class $ZodEncodeError extends Error {
|
|
|
34929
34929
|
this.name = "ZodEncodeError";
|
|
34930
34930
|
}
|
|
34931
34931
|
}
|
|
34932
|
-
const globalConfig = {};
|
|
34932
|
+
const globalConfig$1 = {};
|
|
34933
34933
|
function config$1(newConfig) {
|
|
34934
34934
|
if (newConfig)
|
|
34935
|
-
Object.assign(globalConfig, newConfig);
|
|
34936
|
-
return globalConfig;
|
|
34935
|
+
Object.assign(globalConfig$1, newConfig);
|
|
34936
|
+
return globalConfig$1;
|
|
34937
34937
|
}
|
|
34938
34938
|
function assertEqual(val) {
|
|
34939
34939
|
return val;
|
|
@@ -37423,7 +37423,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
37423
37423
|
};
|
|
37424
37424
|
let fastpass;
|
|
37425
37425
|
const isObject$1 = isObject;
|
|
37426
|
-
const jit = !globalConfig.jitless;
|
|
37426
|
+
const jit = !globalConfig$1.jitless;
|
|
37427
37427
|
const allowsEval$1 = allowsEval;
|
|
37428
37428
|
const fastEnabled = jit && allowsEval$1.value;
|
|
37429
37429
|
const catchall = def.catchall;
|
|
@@ -46362,7 +46362,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
46362
46362
|
finalize,
|
|
46363
46363
|
flattenError,
|
|
46364
46364
|
formatError,
|
|
46365
|
-
globalConfig,
|
|
46365
|
+
globalConfig: globalConfig$1,
|
|
46366
46366
|
globalRegistry,
|
|
46367
46367
|
initializeContext,
|
|
46368
46368
|
isValidBase64,
|
|
@@ -51426,14 +51426,14 @@ var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__
|
|
|
51426
51426
|
mod
|
|
51427
51427
|
));
|
|
51428
51428
|
var require_is_object = __commonJS({
|
|
51429
|
-
"node_modules/is-object/index.js"(exports
|
|
51429
|
+
"node_modules/is-object/index.js"(exports, module) {
|
|
51430
51430
|
module.exports = function isObject2(x2) {
|
|
51431
51431
|
return typeof x2 === "object" && x2 !== null;
|
|
51432
51432
|
};
|
|
51433
51433
|
}
|
|
51434
51434
|
});
|
|
51435
51435
|
var require_is_window = __commonJS({
|
|
51436
|
-
"node_modules/is-window/index.js"(exports
|
|
51436
|
+
"node_modules/is-window/index.js"(exports, module) {
|
|
51437
51437
|
module.exports = function(obj) {
|
|
51438
51438
|
if (obj == null) {
|
|
51439
51439
|
return false;
|
|
@@ -51444,7 +51444,7 @@ var require_is_window = __commonJS({
|
|
|
51444
51444
|
}
|
|
51445
51445
|
});
|
|
51446
51446
|
var require_is_dom = __commonJS({
|
|
51447
|
-
"node_modules/is-dom/index.js"(exports
|
|
51447
|
+
"node_modules/is-dom/index.js"(exports, module) {
|
|
51448
51448
|
var isObject2 = require_is_object();
|
|
51449
51449
|
var isWindow = require_is_window();
|
|
51450
51450
|
function isNode2(val) {
|
|
@@ -78545,9 +78545,8 @@ function hardBreak(state, node2) {
|
|
|
78545
78545
|
function code(state, node2) {
|
|
78546
78546
|
const value = node2.value ? node2.value + "\n" : "";
|
|
78547
78547
|
const properties2 = {};
|
|
78548
|
-
|
|
78549
|
-
|
|
78550
|
-
properties2.className = ["language-" + language[0]];
|
|
78548
|
+
if (node2.lang) {
|
|
78549
|
+
properties2.className = ["language-" + node2.lang];
|
|
78551
78550
|
}
|
|
78552
78551
|
let result = {
|
|
78553
78552
|
type: "element",
|
|
@@ -81829,7 +81828,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
81829
81828
|
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 });
|
|
81830
81829
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
81831
81830
|
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 }) });
|
|
81832
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-
|
|
81831
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-c3Vtq09H.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
81833
81832
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
81834
81833
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
81835
81834
|
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 }) })] }) });
|
|
@@ -82151,7 +82150,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
|
|
|
82151
82150
|
}, []), 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] });
|
|
82152
82151
|
};
|
|
82153
82152
|
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 }) })] });
|
|
82154
|
-
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-
|
|
82153
|
+
var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-D9FphmOZ.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
|
|
82155
82154
|
function ke(e, t) {
|
|
82156
82155
|
if (!(e != null && e.position || t != null && t.position)) return true;
|
|
82157
82156
|
if (!(e != null && e.position && (t != null && t.position))) return false;
|
|
@@ -90671,6 +90670,41 @@ function parseDurationToDate(param) {
|
|
|
90671
90670
|
throw new Error(`Invalid duration parameter. Expected a duration string, number (milliseconds), or Date object.`);
|
|
90672
90671
|
}
|
|
90673
90672
|
}
|
|
90673
|
+
const WORKFLOW_ROUTE_BASE = "/.well-known/workflow/v1";
|
|
90674
|
+
const BASE_PATH_SYMBOL = Symbol.for("@workflow/core/basePath");
|
|
90675
|
+
const globalConfig = globalThis;
|
|
90676
|
+
function getWorkflowBasePath() {
|
|
90677
|
+
return globalConfig[BASE_PATH_SYMBOL] ?? "";
|
|
90678
|
+
}
|
|
90679
|
+
function createWorkflowBaseUrl(origin) {
|
|
90680
|
+
new URL(origin);
|
|
90681
|
+
return `${origin.replace(/[?#].*$/, "").replace(/\/+$/, "")}${getWorkflowBasePath()}`;
|
|
90682
|
+
}
|
|
90683
|
+
function createWorkflowUrl(baseUrl, route) {
|
|
90684
|
+
const url2 = new URL(baseUrl);
|
|
90685
|
+
url2.pathname = `${url2.pathname.replace(/\/+$/, "")}${WORKFLOW_ROUTE_BASE}/${getWorkflowRouteEndpoint(route)}`;
|
|
90686
|
+
url2.search = route.type === "health" ? "__health" : "";
|
|
90687
|
+
url2.hash = "";
|
|
90688
|
+
return url2.toString();
|
|
90689
|
+
}
|
|
90690
|
+
function getWorkflowRouteEndpoint(route) {
|
|
90691
|
+
switch (route.type) {
|
|
90692
|
+
case "flow":
|
|
90693
|
+
case "health":
|
|
90694
|
+
return "flow";
|
|
90695
|
+
case "step":
|
|
90696
|
+
return "step";
|
|
90697
|
+
case "manifest":
|
|
90698
|
+
return "manifest.json";
|
|
90699
|
+
case "webhook":
|
|
90700
|
+
return `webhook/${encodeURIComponent(route.token)}`;
|
|
90701
|
+
}
|
|
90702
|
+
const exhaustive = route;
|
|
90703
|
+
return exhaustive;
|
|
90704
|
+
}
|
|
90705
|
+
function createWorkflowHealthEndpoint() {
|
|
90706
|
+
return `${getWorkflowBasePath()}${WORKFLOW_ROUTE_BASE}/flow?__health`;
|
|
90707
|
+
}
|
|
90674
90708
|
function resolveWorkflowTargetWorld(env2 = process.env) {
|
|
90675
90709
|
const configuredWorld = env2.WORKFLOW_TARGET_WORLD;
|
|
90676
90710
|
if (configuredWorld) {
|
|
@@ -91293,13 +91327,13 @@ var hasRequiredBrowser;
|
|
|
91293
91327
|
function requireBrowser() {
|
|
91294
91328
|
if (hasRequiredBrowser) return browser.exports;
|
|
91295
91329
|
hasRequiredBrowser = 1;
|
|
91296
|
-
(function(module, exports
|
|
91297
|
-
exports
|
|
91298
|
-
exports
|
|
91299
|
-
exports
|
|
91300
|
-
exports
|
|
91301
|
-
exports
|
|
91302
|
-
exports
|
|
91330
|
+
(function(module, exports) {
|
|
91331
|
+
exports.formatArgs = formatArgs;
|
|
91332
|
+
exports.save = save;
|
|
91333
|
+
exports.load = load;
|
|
91334
|
+
exports.useColors = useColors;
|
|
91335
|
+
exports.storage = localstorage();
|
|
91336
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
91303
91337
|
let warned = false;
|
|
91304
91338
|
return () => {
|
|
91305
91339
|
if (!warned) {
|
|
@@ -91308,7 +91342,7 @@ function requireBrowser() {
|
|
|
91308
91342
|
}
|
|
91309
91343
|
};
|
|
91310
91344
|
})();
|
|
91311
|
-
exports
|
|
91345
|
+
exports.colors = [
|
|
91312
91346
|
"#0000CC",
|
|
91313
91347
|
"#0000FF",
|
|
91314
91348
|
"#0033CC",
|
|
@@ -91420,14 +91454,14 @@ function requireBrowser() {
|
|
|
91420
91454
|
});
|
|
91421
91455
|
args.splice(lastC, 0, c);
|
|
91422
91456
|
}
|
|
91423
|
-
exports
|
|
91457
|
+
exports.log = console.debug || console.log || (() => {
|
|
91424
91458
|
});
|
|
91425
91459
|
function save(namespaces2) {
|
|
91426
91460
|
try {
|
|
91427
91461
|
if (namespaces2) {
|
|
91428
|
-
exports
|
|
91462
|
+
exports.storage.setItem("debug", namespaces2);
|
|
91429
91463
|
} else {
|
|
91430
|
-
exports
|
|
91464
|
+
exports.storage.removeItem("debug");
|
|
91431
91465
|
}
|
|
91432
91466
|
} catch (error2) {
|
|
91433
91467
|
}
|
|
@@ -91435,7 +91469,7 @@ function requireBrowser() {
|
|
|
91435
91469
|
function load() {
|
|
91436
91470
|
let r2;
|
|
91437
91471
|
try {
|
|
91438
|
-
r2 = exports
|
|
91472
|
+
r2 = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
91439
91473
|
} catch (error2) {
|
|
91440
91474
|
}
|
|
91441
91475
|
if (!r2 && typeof process !== "undefined" && "env" in process) {
|
|
@@ -91449,7 +91483,7 @@ function requireBrowser() {
|
|
|
91449
91483
|
} catch (error2) {
|
|
91450
91484
|
}
|
|
91451
91485
|
}
|
|
91452
|
-
module.exports = requireCommon()(exports
|
|
91486
|
+
module.exports = requireCommon()(exports);
|
|
91453
91487
|
const { formatters: formatters2 } = module.exports;
|
|
91454
91488
|
formatters2.j = function(v2) {
|
|
91455
91489
|
try {
|
|
@@ -91593,25 +91627,25 @@ var hasRequiredNode;
|
|
|
91593
91627
|
function requireNode() {
|
|
91594
91628
|
if (hasRequiredNode) return node.exports;
|
|
91595
91629
|
hasRequiredNode = 1;
|
|
91596
|
-
(function(module, exports
|
|
91630
|
+
(function(module, exports) {
|
|
91597
91631
|
const tty = require$$1$1;
|
|
91598
91632
|
const util2 = require$$0;
|
|
91599
|
-
exports
|
|
91600
|
-
exports
|
|
91601
|
-
exports
|
|
91602
|
-
exports
|
|
91603
|
-
exports
|
|
91604
|
-
exports
|
|
91605
|
-
exports
|
|
91633
|
+
exports.init = init2;
|
|
91634
|
+
exports.log = log;
|
|
91635
|
+
exports.formatArgs = formatArgs;
|
|
91636
|
+
exports.save = save;
|
|
91637
|
+
exports.load = load;
|
|
91638
|
+
exports.useColors = useColors;
|
|
91639
|
+
exports.destroy = util2.deprecate(
|
|
91606
91640
|
() => {
|
|
91607
91641
|
},
|
|
91608
91642
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
91609
91643
|
);
|
|
91610
|
-
exports
|
|
91644
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
91611
91645
|
try {
|
|
91612
91646
|
const supportsColor = requireSupportsColor();
|
|
91613
91647
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
91614
|
-
exports
|
|
91648
|
+
exports.colors = [
|
|
91615
91649
|
20,
|
|
91616
91650
|
21,
|
|
91617
91651
|
26,
|
|
@@ -91692,7 +91726,7 @@ function requireNode() {
|
|
|
91692
91726
|
}
|
|
91693
91727
|
} catch (error2) {
|
|
91694
91728
|
}
|
|
91695
|
-
exports
|
|
91729
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
91696
91730
|
return /^debug_/i.test(key);
|
|
91697
91731
|
}).reduce((obj, key) => {
|
|
91698
91732
|
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k2) => {
|
|
@@ -91712,7 +91746,7 @@ function requireNode() {
|
|
|
91712
91746
|
return obj;
|
|
91713
91747
|
}, {});
|
|
91714
91748
|
function useColors() {
|
|
91715
|
-
return "colors" in exports
|
|
91749
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
91716
91750
|
}
|
|
91717
91751
|
function formatArgs(args) {
|
|
91718
91752
|
const { namespace: name2, useColors: useColors2 } = this;
|
|
@@ -91727,13 +91761,13 @@ function requireNode() {
|
|
|
91727
91761
|
}
|
|
91728
91762
|
}
|
|
91729
91763
|
function getDate() {
|
|
91730
|
-
if (exports
|
|
91764
|
+
if (exports.inspectOpts.hideDate) {
|
|
91731
91765
|
return "";
|
|
91732
91766
|
}
|
|
91733
91767
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
91734
91768
|
}
|
|
91735
91769
|
function log(...args) {
|
|
91736
|
-
return process.stderr.write(util2.formatWithOptions(exports
|
|
91770
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
91737
91771
|
}
|
|
91738
91772
|
function save(namespaces2) {
|
|
91739
91773
|
if (namespaces2) {
|
|
@@ -91747,12 +91781,12 @@ function requireNode() {
|
|
|
91747
91781
|
}
|
|
91748
91782
|
function init2(debug2) {
|
|
91749
91783
|
debug2.inspectOpts = {};
|
|
91750
|
-
const keys2 = Object.keys(exports
|
|
91784
|
+
const keys2 = Object.keys(exports.inspectOpts);
|
|
91751
91785
|
for (let i = 0; i < keys2.length; i++) {
|
|
91752
|
-
debug2.inspectOpts[keys2[i]] = exports
|
|
91786
|
+
debug2.inspectOpts[keys2[i]] = exports.inspectOpts[keys2[i]];
|
|
91753
91787
|
}
|
|
91754
91788
|
}
|
|
91755
|
-
module.exports = requireCommon()(exports
|
|
91789
|
+
module.exports = requireCommon()(exports);
|
|
91756
91790
|
const { formatters: formatters2 } = module.exports;
|
|
91757
91791
|
formatters2.o = function(v2) {
|
|
91758
91792
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -91999,7 +92033,7 @@ createLogger("build", {
|
|
|
91999
92033
|
debugNamespace: "workflow:build"
|
|
92000
92034
|
});
|
|
92001
92035
|
const MAX_QUEUE_DELIVERIES = 48;
|
|
92002
|
-
const version$1 = "4.6.
|
|
92036
|
+
const version$1 = "4.6.2";
|
|
92003
92037
|
const execFileAsync = promisify(execFile);
|
|
92004
92038
|
function parsePort$1(value, radix = 10) {
|
|
92005
92039
|
const port = parseInt(value, radix);
|
|
@@ -92188,7 +92222,7 @@ async function getPort() {
|
|
|
92188
92222
|
return ports[0];
|
|
92189
92223
|
}
|
|
92190
92224
|
const PROBE_TIMEOUT_MS = 500;
|
|
92191
|
-
const PROBE_ENDPOINT =
|
|
92225
|
+
const PROBE_ENDPOINT = `${WORKFLOW_ROUTE_BASE}/flow?__health`;
|
|
92192
92226
|
async function probePort(port, options = {}) {
|
|
92193
92227
|
const { endpoint = PROBE_ENDPOINT, timeout: timeout2 = PROBE_TIMEOUT_MS } = options;
|
|
92194
92228
|
const controller = new AbortController();
|
|
@@ -92248,6 +92282,9 @@ const config = once(() => {
|
|
|
92248
92282
|
const baseUrl = getBaseUrlFromEnv();
|
|
92249
92283
|
return { dataDir, baseUrl };
|
|
92250
92284
|
});
|
|
92285
|
+
function resolveDirectBaseUrl(config2) {
|
|
92286
|
+
return config2.baseUrl ?? process.env.WORKFLOW_LOCAL_BASE_URL ?? createWorkflowBaseUrl("http://localhost");
|
|
92287
|
+
}
|
|
92251
92288
|
async function resolveBaseUrl$1(config2) {
|
|
92252
92289
|
if (config2.baseUrl) {
|
|
92253
92290
|
return config2.baseUrl;
|
|
@@ -92256,14 +92293,16 @@ async function resolveBaseUrl$1(config2) {
|
|
|
92256
92293
|
return process.env.WORKFLOW_LOCAL_BASE_URL;
|
|
92257
92294
|
}
|
|
92258
92295
|
if (typeof config2.port === "number") {
|
|
92259
|
-
return `http://localhost:${config2.port}
|
|
92296
|
+
return createWorkflowBaseUrl(`http://localhost:${config2.port}`);
|
|
92260
92297
|
}
|
|
92261
92298
|
if (process.env.PORT) {
|
|
92262
|
-
return `http://localhost:${process.env.PORT}
|
|
92299
|
+
return createWorkflowBaseUrl(`http://localhost:${process.env.PORT}`);
|
|
92263
92300
|
}
|
|
92264
|
-
const detectedPort = await getWorkflowPort(
|
|
92301
|
+
const detectedPort = await getWorkflowPort({
|
|
92302
|
+
endpoint: createWorkflowHealthEndpoint()
|
|
92303
|
+
});
|
|
92265
92304
|
if (detectedPort) {
|
|
92266
|
-
return `http://localhost:${detectedPort}
|
|
92305
|
+
return createWorkflowBaseUrl(`http://localhost:${detectedPort}`);
|
|
92267
92306
|
}
|
|
92268
92307
|
throw new Error("Unable to resolve base URL for workflow queue.");
|
|
92269
92308
|
}
|
|
@@ -96059,11 +96098,11 @@ var hasRequiredConstants$4;
|
|
|
96059
96098
|
function requireConstants$4() {
|
|
96060
96099
|
if (hasRequiredConstants$4) return constants$4;
|
|
96061
96100
|
hasRequiredConstants$4 = 1;
|
|
96062
|
-
(function(exports
|
|
96063
|
-
Object.defineProperty(exports
|
|
96064
|
-
exports
|
|
96101
|
+
(function(exports) {
|
|
96102
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96103
|
+
exports.SPECIAL_HEADERS = exports.MINOR = exports.MAJOR = exports.HTAB_SP_VCHAR_OBS_TEXT = exports.QUOTED_STRING = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.HEX = exports.URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.STATUSES_HTTP = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.HEADER_STATE = exports.FINISH = exports.STATUSES = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
|
|
96065
96104
|
const utils_1 = requireUtils();
|
|
96066
|
-
exports
|
|
96105
|
+
exports.ERROR = {
|
|
96067
96106
|
OK: 0,
|
|
96068
96107
|
INTERNAL: 1,
|
|
96069
96108
|
STRICT: 2,
|
|
@@ -96102,13 +96141,13 @@ function requireConstants$4() {
|
|
|
96102
96141
|
CB_RESET: 31,
|
|
96103
96142
|
CB_PROTOCOL_COMPLETE: 38
|
|
96104
96143
|
};
|
|
96105
|
-
exports
|
|
96144
|
+
exports.TYPE = {
|
|
96106
96145
|
BOTH: 0,
|
|
96107
96146
|
// default
|
|
96108
96147
|
REQUEST: 1,
|
|
96109
96148
|
RESPONSE: 2
|
|
96110
96149
|
};
|
|
96111
|
-
exports
|
|
96150
|
+
exports.FLAGS = {
|
|
96112
96151
|
CONNECTION_KEEP_ALIVE: 1 << 0,
|
|
96113
96152
|
CONNECTION_CLOSE: 1 << 1,
|
|
96114
96153
|
CONNECTION_UPGRADE: 1 << 2,
|
|
@@ -96120,7 +96159,7 @@ function requireConstants$4() {
|
|
|
96120
96159
|
// 1 << 8 is unused
|
|
96121
96160
|
TRANSFER_ENCODING: 1 << 9
|
|
96122
96161
|
};
|
|
96123
|
-
exports
|
|
96162
|
+
exports.LENIENT_FLAGS = {
|
|
96124
96163
|
HEADERS: 1 << 0,
|
|
96125
96164
|
CHUNKED_LENGTH: 1 << 1,
|
|
96126
96165
|
KEEP_ALIVE: 1 << 2,
|
|
@@ -96132,7 +96171,7 @@ function requireConstants$4() {
|
|
|
96132
96171
|
OPTIONAL_CR_BEFORE_LF: 1 << 8,
|
|
96133
96172
|
SPACES_AFTER_CHUNK_SIZE: 1 << 9
|
|
96134
96173
|
};
|
|
96135
|
-
exports
|
|
96174
|
+
exports.METHODS = {
|
|
96136
96175
|
"DELETE": 0,
|
|
96137
96176
|
"GET": 1,
|
|
96138
96177
|
"HEAD": 2,
|
|
@@ -96193,7 +96232,7 @@ function requireConstants$4() {
|
|
|
96193
96232
|
/* DRAFT https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html */
|
|
96194
96233
|
"QUERY": 46
|
|
96195
96234
|
};
|
|
96196
|
-
exports
|
|
96235
|
+
exports.STATUSES = {
|
|
96197
96236
|
CONTINUE: 100,
|
|
96198
96237
|
SWITCHING_PROTOCOLS: 101,
|
|
96199
96238
|
PROCESSING: 102,
|
|
@@ -96330,12 +96369,12 @@ function requireConstants$4() {
|
|
|
96330
96369
|
NETWORK_CONNECT_TIMEOUT: 599
|
|
96331
96370
|
// Unofficial
|
|
96332
96371
|
};
|
|
96333
|
-
exports
|
|
96372
|
+
exports.FINISH = {
|
|
96334
96373
|
SAFE: 0,
|
|
96335
96374
|
SAFE_WITH_CB: 1,
|
|
96336
96375
|
UNSAFE: 2
|
|
96337
96376
|
};
|
|
96338
|
-
exports
|
|
96377
|
+
exports.HEADER_STATE = {
|
|
96339
96378
|
GENERAL: 0,
|
|
96340
96379
|
CONNECTION: 1,
|
|
96341
96380
|
CONTENT_LENGTH: 2,
|
|
@@ -96346,174 +96385,174 @@ function requireConstants$4() {
|
|
|
96346
96385
|
CONNECTION_UPGRADE: 7,
|
|
96347
96386
|
TRANSFER_ENCODING_CHUNKED: 8
|
|
96348
96387
|
};
|
|
96349
|
-
exports
|
|
96350
|
-
exports
|
|
96351
|
-
exports
|
|
96352
|
-
exports
|
|
96353
|
-
exports
|
|
96354
|
-
exports
|
|
96355
|
-
exports
|
|
96356
|
-
exports
|
|
96357
|
-
exports
|
|
96358
|
-
exports
|
|
96359
|
-
exports
|
|
96360
|
-
exports
|
|
96361
|
-
exports
|
|
96362
|
-
exports
|
|
96363
|
-
exports
|
|
96364
|
-
exports
|
|
96365
|
-
exports
|
|
96366
|
-
exports
|
|
96367
|
-
exports
|
|
96368
|
-
exports
|
|
96369
|
-
exports
|
|
96370
|
-
exports
|
|
96371
|
-
exports
|
|
96372
|
-
exports
|
|
96373
|
-
exports
|
|
96374
|
-
exports
|
|
96375
|
-
exports
|
|
96376
|
-
exports
|
|
96377
|
-
exports
|
|
96378
|
-
exports
|
|
96379
|
-
exports
|
|
96380
|
-
exports
|
|
96381
|
-
exports
|
|
96382
|
-
exports
|
|
96383
|
-
exports
|
|
96388
|
+
exports.METHODS_HTTP = [
|
|
96389
|
+
exports.METHODS.DELETE,
|
|
96390
|
+
exports.METHODS.GET,
|
|
96391
|
+
exports.METHODS.HEAD,
|
|
96392
|
+
exports.METHODS.POST,
|
|
96393
|
+
exports.METHODS.PUT,
|
|
96394
|
+
exports.METHODS.CONNECT,
|
|
96395
|
+
exports.METHODS.OPTIONS,
|
|
96396
|
+
exports.METHODS.TRACE,
|
|
96397
|
+
exports.METHODS.COPY,
|
|
96398
|
+
exports.METHODS.LOCK,
|
|
96399
|
+
exports.METHODS.MKCOL,
|
|
96400
|
+
exports.METHODS.MOVE,
|
|
96401
|
+
exports.METHODS.PROPFIND,
|
|
96402
|
+
exports.METHODS.PROPPATCH,
|
|
96403
|
+
exports.METHODS.SEARCH,
|
|
96404
|
+
exports.METHODS.UNLOCK,
|
|
96405
|
+
exports.METHODS.BIND,
|
|
96406
|
+
exports.METHODS.REBIND,
|
|
96407
|
+
exports.METHODS.UNBIND,
|
|
96408
|
+
exports.METHODS.ACL,
|
|
96409
|
+
exports.METHODS.REPORT,
|
|
96410
|
+
exports.METHODS.MKACTIVITY,
|
|
96411
|
+
exports.METHODS.CHECKOUT,
|
|
96412
|
+
exports.METHODS.MERGE,
|
|
96413
|
+
exports.METHODS["M-SEARCH"],
|
|
96414
|
+
exports.METHODS.NOTIFY,
|
|
96415
|
+
exports.METHODS.SUBSCRIBE,
|
|
96416
|
+
exports.METHODS.UNSUBSCRIBE,
|
|
96417
|
+
exports.METHODS.PATCH,
|
|
96418
|
+
exports.METHODS.PURGE,
|
|
96419
|
+
exports.METHODS.MKCALENDAR,
|
|
96420
|
+
exports.METHODS.LINK,
|
|
96421
|
+
exports.METHODS.UNLINK,
|
|
96422
|
+
exports.METHODS.PRI,
|
|
96384
96423
|
// TODO(indutny): should we allow it with HTTP?
|
|
96385
|
-
exports
|
|
96386
|
-
exports
|
|
96424
|
+
exports.METHODS.SOURCE,
|
|
96425
|
+
exports.METHODS.QUERY
|
|
96387
96426
|
];
|
|
96388
|
-
exports
|
|
96389
|
-
exports
|
|
96427
|
+
exports.METHODS_ICE = [
|
|
96428
|
+
exports.METHODS.SOURCE
|
|
96390
96429
|
];
|
|
96391
|
-
exports
|
|
96392
|
-
exports
|
|
96393
|
-
exports
|
|
96394
|
-
exports
|
|
96395
|
-
exports
|
|
96396
|
-
exports
|
|
96397
|
-
exports
|
|
96398
|
-
exports
|
|
96399
|
-
exports
|
|
96400
|
-
exports
|
|
96401
|
-
exports
|
|
96402
|
-
exports
|
|
96403
|
-
exports
|
|
96430
|
+
exports.METHODS_RTSP = [
|
|
96431
|
+
exports.METHODS.OPTIONS,
|
|
96432
|
+
exports.METHODS.DESCRIBE,
|
|
96433
|
+
exports.METHODS.ANNOUNCE,
|
|
96434
|
+
exports.METHODS.SETUP,
|
|
96435
|
+
exports.METHODS.PLAY,
|
|
96436
|
+
exports.METHODS.PAUSE,
|
|
96437
|
+
exports.METHODS.TEARDOWN,
|
|
96438
|
+
exports.METHODS.GET_PARAMETER,
|
|
96439
|
+
exports.METHODS.SET_PARAMETER,
|
|
96440
|
+
exports.METHODS.REDIRECT,
|
|
96441
|
+
exports.METHODS.RECORD,
|
|
96442
|
+
exports.METHODS.FLUSH,
|
|
96404
96443
|
// For AirPlay
|
|
96405
|
-
exports
|
|
96406
|
-
exports
|
|
96444
|
+
exports.METHODS.GET,
|
|
96445
|
+
exports.METHODS.POST
|
|
96407
96446
|
];
|
|
96408
|
-
exports
|
|
96409
|
-
exports
|
|
96410
|
-
exports
|
|
96411
|
-
exports
|
|
96412
|
-
exports
|
|
96413
|
-
exports
|
|
96414
|
-
exports
|
|
96415
|
-
exports
|
|
96416
|
-
exports
|
|
96417
|
-
exports
|
|
96418
|
-
exports
|
|
96419
|
-
exports
|
|
96420
|
-
exports
|
|
96421
|
-
exports
|
|
96422
|
-
exports
|
|
96423
|
-
exports
|
|
96424
|
-
exports
|
|
96425
|
-
exports
|
|
96426
|
-
exports
|
|
96427
|
-
exports
|
|
96428
|
-
exports
|
|
96429
|
-
exports
|
|
96430
|
-
exports
|
|
96431
|
-
exports
|
|
96432
|
-
exports
|
|
96433
|
-
exports
|
|
96434
|
-
exports
|
|
96435
|
-
exports
|
|
96436
|
-
exports
|
|
96437
|
-
exports
|
|
96438
|
-
exports
|
|
96439
|
-
exports
|
|
96440
|
-
exports
|
|
96441
|
-
exports
|
|
96442
|
-
exports
|
|
96443
|
-
exports
|
|
96444
|
-
exports
|
|
96445
|
-
exports
|
|
96446
|
-
exports
|
|
96447
|
-
exports
|
|
96448
|
-
exports
|
|
96449
|
-
exports
|
|
96450
|
-
exports
|
|
96451
|
-
exports
|
|
96452
|
-
exports
|
|
96453
|
-
exports
|
|
96454
|
-
exports
|
|
96455
|
-
exports
|
|
96456
|
-
exports
|
|
96457
|
-
exports
|
|
96458
|
-
exports
|
|
96459
|
-
exports
|
|
96460
|
-
exports
|
|
96461
|
-
exports
|
|
96462
|
-
exports
|
|
96463
|
-
exports
|
|
96464
|
-
exports
|
|
96465
|
-
exports
|
|
96466
|
-
exports
|
|
96467
|
-
exports
|
|
96468
|
-
exports
|
|
96469
|
-
exports
|
|
96470
|
-
exports
|
|
96471
|
-
exports
|
|
96472
|
-
exports
|
|
96473
|
-
exports
|
|
96474
|
-
exports
|
|
96475
|
-
exports
|
|
96476
|
-
exports
|
|
96477
|
-
exports
|
|
96478
|
-
exports
|
|
96479
|
-
exports
|
|
96480
|
-
exports
|
|
96481
|
-
exports
|
|
96482
|
-
exports
|
|
96483
|
-
exports
|
|
96484
|
-
exports
|
|
96485
|
-
exports
|
|
96486
|
-
exports
|
|
96487
|
-
exports
|
|
96488
|
-
exports
|
|
96489
|
-
exports
|
|
96490
|
-
exports
|
|
96491
|
-
exports
|
|
96492
|
-
exports
|
|
96493
|
-
exports
|
|
96494
|
-
exports
|
|
96495
|
-
exports
|
|
96496
|
-
exports
|
|
96497
|
-
exports
|
|
96498
|
-
exports
|
|
96499
|
-
exports
|
|
96500
|
-
exports
|
|
96501
|
-
exports
|
|
96502
|
-
exports
|
|
96503
|
-
exports
|
|
96504
|
-
exports
|
|
96505
|
-
exports
|
|
96506
|
-
exports
|
|
96507
|
-
exports
|
|
96508
|
-
exports
|
|
96509
|
-
exports
|
|
96447
|
+
exports.METHOD_MAP = (0, utils_1.enumToMap)(exports.METHODS);
|
|
96448
|
+
exports.H_METHOD_MAP = Object.fromEntries(Object.entries(exports.METHODS).filter(([k2]) => k2.startsWith("H")));
|
|
96449
|
+
exports.STATUSES_HTTP = [
|
|
96450
|
+
exports.STATUSES.CONTINUE,
|
|
96451
|
+
exports.STATUSES.SWITCHING_PROTOCOLS,
|
|
96452
|
+
exports.STATUSES.PROCESSING,
|
|
96453
|
+
exports.STATUSES.EARLY_HINTS,
|
|
96454
|
+
exports.STATUSES.RESPONSE_IS_STALE,
|
|
96455
|
+
exports.STATUSES.REVALIDATION_FAILED,
|
|
96456
|
+
exports.STATUSES.DISCONNECTED_OPERATION,
|
|
96457
|
+
exports.STATUSES.HEURISTIC_EXPIRATION,
|
|
96458
|
+
exports.STATUSES.MISCELLANEOUS_WARNING,
|
|
96459
|
+
exports.STATUSES.OK,
|
|
96460
|
+
exports.STATUSES.CREATED,
|
|
96461
|
+
exports.STATUSES.ACCEPTED,
|
|
96462
|
+
exports.STATUSES.NON_AUTHORITATIVE_INFORMATION,
|
|
96463
|
+
exports.STATUSES.NO_CONTENT,
|
|
96464
|
+
exports.STATUSES.RESET_CONTENT,
|
|
96465
|
+
exports.STATUSES.PARTIAL_CONTENT,
|
|
96466
|
+
exports.STATUSES.MULTI_STATUS,
|
|
96467
|
+
exports.STATUSES.ALREADY_REPORTED,
|
|
96468
|
+
exports.STATUSES.TRANSFORMATION_APPLIED,
|
|
96469
|
+
exports.STATUSES.IM_USED,
|
|
96470
|
+
exports.STATUSES.MISCELLANEOUS_PERSISTENT_WARNING,
|
|
96471
|
+
exports.STATUSES.MULTIPLE_CHOICES,
|
|
96472
|
+
exports.STATUSES.MOVED_PERMANENTLY,
|
|
96473
|
+
exports.STATUSES.FOUND,
|
|
96474
|
+
exports.STATUSES.SEE_OTHER,
|
|
96475
|
+
exports.STATUSES.NOT_MODIFIED,
|
|
96476
|
+
exports.STATUSES.USE_PROXY,
|
|
96477
|
+
exports.STATUSES.SWITCH_PROXY,
|
|
96478
|
+
exports.STATUSES.TEMPORARY_REDIRECT,
|
|
96479
|
+
exports.STATUSES.PERMANENT_REDIRECT,
|
|
96480
|
+
exports.STATUSES.BAD_REQUEST,
|
|
96481
|
+
exports.STATUSES.UNAUTHORIZED,
|
|
96482
|
+
exports.STATUSES.PAYMENT_REQUIRED,
|
|
96483
|
+
exports.STATUSES.FORBIDDEN,
|
|
96484
|
+
exports.STATUSES.NOT_FOUND,
|
|
96485
|
+
exports.STATUSES.METHOD_NOT_ALLOWED,
|
|
96486
|
+
exports.STATUSES.NOT_ACCEPTABLE,
|
|
96487
|
+
exports.STATUSES.PROXY_AUTHENTICATION_REQUIRED,
|
|
96488
|
+
exports.STATUSES.REQUEST_TIMEOUT,
|
|
96489
|
+
exports.STATUSES.CONFLICT,
|
|
96490
|
+
exports.STATUSES.GONE,
|
|
96491
|
+
exports.STATUSES.LENGTH_REQUIRED,
|
|
96492
|
+
exports.STATUSES.PRECONDITION_FAILED,
|
|
96493
|
+
exports.STATUSES.PAYLOAD_TOO_LARGE,
|
|
96494
|
+
exports.STATUSES.URI_TOO_LONG,
|
|
96495
|
+
exports.STATUSES.UNSUPPORTED_MEDIA_TYPE,
|
|
96496
|
+
exports.STATUSES.RANGE_NOT_SATISFIABLE,
|
|
96497
|
+
exports.STATUSES.EXPECTATION_FAILED,
|
|
96498
|
+
exports.STATUSES.IM_A_TEAPOT,
|
|
96499
|
+
exports.STATUSES.PAGE_EXPIRED,
|
|
96500
|
+
exports.STATUSES.ENHANCE_YOUR_CALM,
|
|
96501
|
+
exports.STATUSES.MISDIRECTED_REQUEST,
|
|
96502
|
+
exports.STATUSES.UNPROCESSABLE_ENTITY,
|
|
96503
|
+
exports.STATUSES.LOCKED,
|
|
96504
|
+
exports.STATUSES.FAILED_DEPENDENCY,
|
|
96505
|
+
exports.STATUSES.TOO_EARLY,
|
|
96506
|
+
exports.STATUSES.UPGRADE_REQUIRED,
|
|
96507
|
+
exports.STATUSES.PRECONDITION_REQUIRED,
|
|
96508
|
+
exports.STATUSES.TOO_MANY_REQUESTS,
|
|
96509
|
+
exports.STATUSES.REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL,
|
|
96510
|
+
exports.STATUSES.REQUEST_HEADER_FIELDS_TOO_LARGE,
|
|
96511
|
+
exports.STATUSES.LOGIN_TIMEOUT,
|
|
96512
|
+
exports.STATUSES.NO_RESPONSE,
|
|
96513
|
+
exports.STATUSES.RETRY_WITH,
|
|
96514
|
+
exports.STATUSES.BLOCKED_BY_PARENTAL_CONTROL,
|
|
96515
|
+
exports.STATUSES.UNAVAILABLE_FOR_LEGAL_REASONS,
|
|
96516
|
+
exports.STATUSES.CLIENT_CLOSED_LOAD_BALANCED_REQUEST,
|
|
96517
|
+
exports.STATUSES.INVALID_X_FORWARDED_FOR,
|
|
96518
|
+
exports.STATUSES.REQUEST_HEADER_TOO_LARGE,
|
|
96519
|
+
exports.STATUSES.SSL_CERTIFICATE_ERROR,
|
|
96520
|
+
exports.STATUSES.SSL_CERTIFICATE_REQUIRED,
|
|
96521
|
+
exports.STATUSES.HTTP_REQUEST_SENT_TO_HTTPS_PORT,
|
|
96522
|
+
exports.STATUSES.INVALID_TOKEN,
|
|
96523
|
+
exports.STATUSES.CLIENT_CLOSED_REQUEST,
|
|
96524
|
+
exports.STATUSES.INTERNAL_SERVER_ERROR,
|
|
96525
|
+
exports.STATUSES.NOT_IMPLEMENTED,
|
|
96526
|
+
exports.STATUSES.BAD_GATEWAY,
|
|
96527
|
+
exports.STATUSES.SERVICE_UNAVAILABLE,
|
|
96528
|
+
exports.STATUSES.GATEWAY_TIMEOUT,
|
|
96529
|
+
exports.STATUSES.HTTP_VERSION_NOT_SUPPORTED,
|
|
96530
|
+
exports.STATUSES.VARIANT_ALSO_NEGOTIATES,
|
|
96531
|
+
exports.STATUSES.INSUFFICIENT_STORAGE,
|
|
96532
|
+
exports.STATUSES.LOOP_DETECTED,
|
|
96533
|
+
exports.STATUSES.BANDWIDTH_LIMIT_EXCEEDED,
|
|
96534
|
+
exports.STATUSES.NOT_EXTENDED,
|
|
96535
|
+
exports.STATUSES.NETWORK_AUTHENTICATION_REQUIRED,
|
|
96536
|
+
exports.STATUSES.WEB_SERVER_UNKNOWN_ERROR,
|
|
96537
|
+
exports.STATUSES.WEB_SERVER_IS_DOWN,
|
|
96538
|
+
exports.STATUSES.CONNECTION_TIMEOUT,
|
|
96539
|
+
exports.STATUSES.ORIGIN_IS_UNREACHABLE,
|
|
96540
|
+
exports.STATUSES.TIMEOUT_OCCURED,
|
|
96541
|
+
exports.STATUSES.SSL_HANDSHAKE_FAILED,
|
|
96542
|
+
exports.STATUSES.INVALID_SSL_CERTIFICATE,
|
|
96543
|
+
exports.STATUSES.RAILGUN_ERROR,
|
|
96544
|
+
exports.STATUSES.SITE_IS_OVERLOADED,
|
|
96545
|
+
exports.STATUSES.SITE_IS_FROZEN,
|
|
96546
|
+
exports.STATUSES.IDENTITY_PROVIDER_AUTHENTICATION_ERROR,
|
|
96547
|
+
exports.STATUSES.NETWORK_READ_TIMEOUT,
|
|
96548
|
+
exports.STATUSES.NETWORK_CONNECT_TIMEOUT
|
|
96510
96549
|
];
|
|
96511
|
-
exports
|
|
96550
|
+
exports.ALPHA = [];
|
|
96512
96551
|
for (let i = "A".charCodeAt(0); i <= "Z".charCodeAt(0); i++) {
|
|
96513
|
-
exports
|
|
96514
|
-
exports
|
|
96552
|
+
exports.ALPHA.push(String.fromCharCode(i));
|
|
96553
|
+
exports.ALPHA.push(String.fromCharCode(i + 32));
|
|
96515
96554
|
}
|
|
96516
|
-
exports
|
|
96555
|
+
exports.NUM_MAP = {
|
|
96517
96556
|
0: 0,
|
|
96518
96557
|
1: 1,
|
|
96519
96558
|
2: 2,
|
|
@@ -96525,7 +96564,7 @@ function requireConstants$4() {
|
|
|
96525
96564
|
8: 8,
|
|
96526
96565
|
9: 9
|
|
96527
96566
|
};
|
|
96528
|
-
exports
|
|
96567
|
+
exports.HEX_MAP = {
|
|
96529
96568
|
0: 0,
|
|
96530
96569
|
1: 1,
|
|
96531
96570
|
2: 2,
|
|
@@ -96549,7 +96588,7 @@ function requireConstants$4() {
|
|
|
96549
96588
|
e: 14,
|
|
96550
96589
|
f: 15
|
|
96551
96590
|
};
|
|
96552
|
-
exports
|
|
96591
|
+
exports.NUM = [
|
|
96553
96592
|
"0",
|
|
96554
96593
|
"1",
|
|
96555
96594
|
"2",
|
|
@@ -96561,10 +96600,10 @@ function requireConstants$4() {
|
|
|
96561
96600
|
"8",
|
|
96562
96601
|
"9"
|
|
96563
96602
|
];
|
|
96564
|
-
exports
|
|
96565
|
-
exports
|
|
96566
|
-
exports
|
|
96567
|
-
exports
|
|
96603
|
+
exports.ALPHANUM = exports.ALPHA.concat(exports.NUM);
|
|
96604
|
+
exports.MARK = ["-", "_", ".", "!", "~", "*", "'", "(", ")"];
|
|
96605
|
+
exports.USERINFO_CHARS = exports.ALPHANUM.concat(exports.MARK).concat(["%", ";", ":", "&", "=", "+", "$", ","]);
|
|
96606
|
+
exports.URL_CHAR = [
|
|
96568
96607
|
"!",
|
|
96569
96608
|
'"',
|
|
96570
96609
|
"$",
|
|
@@ -96595,9 +96634,9 @@ function requireConstants$4() {
|
|
|
96595
96634
|
"|",
|
|
96596
96635
|
"}",
|
|
96597
96636
|
"~"
|
|
96598
|
-
].concat(exports
|
|
96599
|
-
exports
|
|
96600
|
-
exports
|
|
96637
|
+
].concat(exports.ALPHANUM);
|
|
96638
|
+
exports.HEX = exports.NUM.concat(["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"]);
|
|
96639
|
+
exports.TOKEN = [
|
|
96601
96640
|
"!",
|
|
96602
96641
|
"#",
|
|
96603
96642
|
"$",
|
|
@@ -96613,68 +96652,68 @@ function requireConstants$4() {
|
|
|
96613
96652
|
"`",
|
|
96614
96653
|
"|",
|
|
96615
96654
|
"~"
|
|
96616
|
-
].concat(exports
|
|
96617
|
-
exports
|
|
96655
|
+
].concat(exports.ALPHANUM);
|
|
96656
|
+
exports.HEADER_CHARS = [" "];
|
|
96618
96657
|
for (let i = 32; i <= 255; i++) {
|
|
96619
96658
|
if (i !== 127) {
|
|
96620
|
-
exports
|
|
96659
|
+
exports.HEADER_CHARS.push(i);
|
|
96621
96660
|
}
|
|
96622
96661
|
}
|
|
96623
|
-
exports
|
|
96624
|
-
exports
|
|
96662
|
+
exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c) => c !== 44);
|
|
96663
|
+
exports.QUOTED_STRING = [" ", " "];
|
|
96625
96664
|
for (let i = 33; i <= 255; i++) {
|
|
96626
96665
|
if (i !== 34 && i !== 92) {
|
|
96627
|
-
exports
|
|
96666
|
+
exports.QUOTED_STRING.push(i);
|
|
96628
96667
|
}
|
|
96629
96668
|
}
|
|
96630
|
-
exports
|
|
96669
|
+
exports.HTAB_SP_VCHAR_OBS_TEXT = [" ", " "];
|
|
96631
96670
|
for (let i = 33; i <= 126; i++) {
|
|
96632
|
-
exports
|
|
96671
|
+
exports.HTAB_SP_VCHAR_OBS_TEXT.push(i);
|
|
96633
96672
|
}
|
|
96634
96673
|
for (let i = 128; i <= 255; i++) {
|
|
96635
|
-
exports
|
|
96636
|
-
}
|
|
96637
|
-
exports
|
|
96638
|
-
exports
|
|
96639
|
-
exports
|
|
96640
|
-
"connection": exports
|
|
96641
|
-
"content-length": exports
|
|
96642
|
-
"proxy-connection": exports
|
|
96643
|
-
"transfer-encoding": exports
|
|
96644
|
-
"upgrade": exports
|
|
96674
|
+
exports.HTAB_SP_VCHAR_OBS_TEXT.push(i);
|
|
96675
|
+
}
|
|
96676
|
+
exports.MAJOR = exports.NUM_MAP;
|
|
96677
|
+
exports.MINOR = exports.MAJOR;
|
|
96678
|
+
exports.SPECIAL_HEADERS = {
|
|
96679
|
+
"connection": exports.HEADER_STATE.CONNECTION,
|
|
96680
|
+
"content-length": exports.HEADER_STATE.CONTENT_LENGTH,
|
|
96681
|
+
"proxy-connection": exports.HEADER_STATE.CONNECTION,
|
|
96682
|
+
"transfer-encoding": exports.HEADER_STATE.TRANSFER_ENCODING,
|
|
96683
|
+
"upgrade": exports.HEADER_STATE.UPGRADE
|
|
96645
96684
|
};
|
|
96646
|
-
exports
|
|
96647
|
-
ERROR: exports
|
|
96648
|
-
TYPE: exports
|
|
96649
|
-
FLAGS: exports
|
|
96650
|
-
LENIENT_FLAGS: exports
|
|
96651
|
-
METHODS: exports
|
|
96652
|
-
STATUSES: exports
|
|
96653
|
-
FINISH: exports
|
|
96654
|
-
HEADER_STATE: exports
|
|
96655
|
-
ALPHA: exports
|
|
96656
|
-
NUM_MAP: exports
|
|
96657
|
-
HEX_MAP: exports
|
|
96658
|
-
NUM: exports
|
|
96659
|
-
ALPHANUM: exports
|
|
96660
|
-
MARK: exports
|
|
96661
|
-
USERINFO_CHARS: exports
|
|
96662
|
-
URL_CHAR: exports
|
|
96663
|
-
HEX: exports
|
|
96664
|
-
TOKEN: exports
|
|
96665
|
-
HEADER_CHARS: exports
|
|
96666
|
-
CONNECTION_TOKEN_CHARS: exports
|
|
96667
|
-
QUOTED_STRING: exports
|
|
96668
|
-
HTAB_SP_VCHAR_OBS_TEXT: exports
|
|
96669
|
-
MAJOR: exports
|
|
96670
|
-
MINOR: exports
|
|
96671
|
-
SPECIAL_HEADERS: exports
|
|
96672
|
-
METHODS_HTTP: exports
|
|
96673
|
-
METHODS_ICE: exports
|
|
96674
|
-
METHODS_RTSP: exports
|
|
96675
|
-
METHOD_MAP: exports
|
|
96676
|
-
H_METHOD_MAP: exports
|
|
96677
|
-
STATUSES_HTTP: exports
|
|
96685
|
+
exports.default = {
|
|
96686
|
+
ERROR: exports.ERROR,
|
|
96687
|
+
TYPE: exports.TYPE,
|
|
96688
|
+
FLAGS: exports.FLAGS,
|
|
96689
|
+
LENIENT_FLAGS: exports.LENIENT_FLAGS,
|
|
96690
|
+
METHODS: exports.METHODS,
|
|
96691
|
+
STATUSES: exports.STATUSES,
|
|
96692
|
+
FINISH: exports.FINISH,
|
|
96693
|
+
HEADER_STATE: exports.HEADER_STATE,
|
|
96694
|
+
ALPHA: exports.ALPHA,
|
|
96695
|
+
NUM_MAP: exports.NUM_MAP,
|
|
96696
|
+
HEX_MAP: exports.HEX_MAP,
|
|
96697
|
+
NUM: exports.NUM,
|
|
96698
|
+
ALPHANUM: exports.ALPHANUM,
|
|
96699
|
+
MARK: exports.MARK,
|
|
96700
|
+
USERINFO_CHARS: exports.USERINFO_CHARS,
|
|
96701
|
+
URL_CHAR: exports.URL_CHAR,
|
|
96702
|
+
HEX: exports.HEX,
|
|
96703
|
+
TOKEN: exports.TOKEN,
|
|
96704
|
+
HEADER_CHARS: exports.HEADER_CHARS,
|
|
96705
|
+
CONNECTION_TOKEN_CHARS: exports.CONNECTION_TOKEN_CHARS,
|
|
96706
|
+
QUOTED_STRING: exports.QUOTED_STRING,
|
|
96707
|
+
HTAB_SP_VCHAR_OBS_TEXT: exports.HTAB_SP_VCHAR_OBS_TEXT,
|
|
96708
|
+
MAJOR: exports.MAJOR,
|
|
96709
|
+
MINOR: exports.MINOR,
|
|
96710
|
+
SPECIAL_HEADERS: exports.SPECIAL_HEADERS,
|
|
96711
|
+
METHODS_HTTP: exports.METHODS_HTTP,
|
|
96712
|
+
METHODS_ICE: exports.METHODS_ICE,
|
|
96713
|
+
METHODS_RTSP: exports.METHODS_RTSP,
|
|
96714
|
+
METHOD_MAP: exports.METHOD_MAP,
|
|
96715
|
+
H_METHOD_MAP: exports.H_METHOD_MAP,
|
|
96716
|
+
STATUSES_HTTP: exports.STATUSES_HTTP
|
|
96678
96717
|
};
|
|
96679
96718
|
})(constants$4);
|
|
96680
96719
|
return constants$4;
|
|
@@ -99858,8 +99897,8 @@ function requireClientH1() {
|
|
|
99858
99897
|
* @param {import('net').Socket} socket
|
|
99859
99898
|
* @param {*} llhttp
|
|
99860
99899
|
*/
|
|
99861
|
-
constructor(client2, socket, { exports
|
|
99862
|
-
this.llhttp = exports
|
|
99900
|
+
constructor(client2, socket, { exports }) {
|
|
99901
|
+
this.llhttp = exports;
|
|
99863
99902
|
this.ptr = this.llhttp.llhttp_alloc(constants2.TYPE.RESPONSE);
|
|
99864
99903
|
this.client = client2;
|
|
99865
99904
|
this.socket = socket;
|
|
@@ -118572,7 +118611,9 @@ function createQueue$2(config2) {
|
|
|
118572
118611
|
const directHandler = directHandlers.get(prefix);
|
|
118573
118612
|
let response2;
|
|
118574
118613
|
if (directHandler) {
|
|
118575
|
-
const req = new Request(
|
|
118614
|
+
const req = new Request(createWorkflowUrl(resolveDirectBaseUrl(config2), {
|
|
118615
|
+
type: pathname
|
|
118616
|
+
}), {
|
|
118576
118617
|
method: "POST",
|
|
118577
118618
|
headers: headers2,
|
|
118578
118619
|
body: body2
|
|
@@ -118580,7 +118621,7 @@ function createQueue$2(config2) {
|
|
|
118580
118621
|
response2 = await directHandler(req);
|
|
118581
118622
|
} else {
|
|
118582
118623
|
const baseUrl = await resolveBaseUrl$1(config2);
|
|
118583
|
-
response2 = await fetch(
|
|
118624
|
+
response2 = await fetch(createWorkflowUrl(baseUrl, { type: pathname }), {
|
|
118584
118625
|
method: "POST",
|
|
118585
118626
|
duplex: "half",
|
|
118586
118627
|
dispatcher: httpAgent,
|
|
@@ -120253,7 +120294,7 @@ function createLocalWorld(args) {
|
|
|
120253
120294
|
const basedir = mergedConfig.dataDir;
|
|
120254
120295
|
const hooksDir = path$3.join(basedir, "hooks");
|
|
120255
120296
|
const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
|
|
120256
|
-
const { HookSchema: HookSchema2 } = await import("./index-
|
|
120297
|
+
const { HookSchema: HookSchema2 } = await import("./index-ulh-Ko1q.js");
|
|
120257
120298
|
await Promise.all(taggedHookFiles.map(async (hookFile) => {
|
|
120258
120299
|
const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
|
|
120259
120300
|
if (hook == null ? void 0 : hook.token) {
|
|
@@ -120406,8 +120447,8 @@ function requireGetVercelOidcToken() {
|
|
|
120406
120447
|
}
|
|
120407
120448
|
try {
|
|
120408
120449
|
const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
|
|
120409
|
-
await import("./token-util-
|
|
120410
|
-
await import("./token-
|
|
120450
|
+
await import("./token-util-TwMjSZSF.js").then((n) => n.t),
|
|
120451
|
+
await import("./token-COKbCOS0.js").then((n) => n.t)
|
|
120411
120452
|
]);
|
|
120412
120453
|
if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
|
|
120413
120454
|
await refreshToken(options);
|
|
@@ -125752,7 +125793,7 @@ var QueueClient = class {
|
|
|
125752
125793
|
setApi(this, new ApiClient({ ...options, region }));
|
|
125753
125794
|
}
|
|
125754
125795
|
};
|
|
125755
|
-
const version = "4.5.
|
|
125796
|
+
const version = "4.5.1";
|
|
125756
125797
|
const HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
|
|
125757
125798
|
function httpLog(method, endpoint, response2, ms2) {
|
|
125758
125799
|
if (HTTP_DEBUG_ENABLED) {
|
|
@@ -125845,6 +125886,7 @@ function deserializeError(obj) {
|
|
|
125845
125886
|
}
|
|
125846
125887
|
return obj;
|
|
125847
125888
|
}
|
|
125889
|
+
const joinUserAgentProducts = (...products) => products.filter(Boolean).join(" ");
|
|
125848
125890
|
const getUserAgent = () => {
|
|
125849
125891
|
const deploymentId = process.env.VERCEL_DEPLOYMENT_ID;
|
|
125850
125892
|
if (deploymentId) {
|
|
@@ -125864,7 +125906,7 @@ const getHttpUrl = (config2) => {
|
|
|
125864
125906
|
const getHeaders = (config2, options) => {
|
|
125865
125907
|
const projectConfig = config2 == null ? void 0 : config2.projectConfig;
|
|
125866
125908
|
const headers2 = new Headers(config2 == null ? void 0 : config2.headers);
|
|
125867
|
-
headers2.set("User-Agent", getUserAgent());
|
|
125909
|
+
headers2.set("User-Agent", joinUserAgentProducts(getUserAgent(), headers2.get("User-Agent")));
|
|
125868
125910
|
if (projectConfig) {
|
|
125869
125911
|
headers2.set("x-vercel-environment", projectConfig.environment || "production");
|
|
125870
125912
|
if (projectConfig.projectId) {
|
|
@@ -125904,7 +125946,7 @@ async function getHttpConfig(config2) {
|
|
|
125904
125946
|
}
|
|
125905
125947
|
return { baseUrl, headers: headers2, usingProxy };
|
|
125906
125948
|
}
|
|
125907
|
-
async function makeRequest({ endpoint, options = {}, config: config2 = {}, schema, data, onResponse }) {
|
|
125949
|
+
async function makeRequest({ endpoint, options = {}, config: config2 = {}, schema, data, onResponse, retryConnectTimeout = false }) {
|
|
125908
125950
|
const method = options.method || "GET";
|
|
125909
125951
|
const { baseUrl, headers: headers2 } = await getHttpConfig(config2);
|
|
125910
125952
|
const url2 = `${baseUrl}${endpoint}`;
|
|
@@ -125934,7 +125976,7 @@ async function makeRequest({ endpoint, options = {}, config: config2 = {}, schem
|
|
|
125934
125976
|
headers2.set("Content-Type", "application/cbor");
|
|
125935
125977
|
body2 = encode(data);
|
|
125936
125978
|
}
|
|
125937
|
-
const
|
|
125979
|
+
const canRetryRead = IDEMPOTENT_METHODS.has(method.toUpperCase());
|
|
125938
125980
|
let parseResult;
|
|
125939
125981
|
let responseDiagnostics = "";
|
|
125940
125982
|
for (let attempt = 0; ; attempt++) {
|
|
@@ -125963,6 +126005,10 @@ async function makeRequest({ endpoint, options = {}, config: config2 = {}, schem
|
|
|
125963
126005
|
}
|
|
125964
126006
|
const transportCode = getTransientTransportCode(error2);
|
|
125965
126007
|
if (transportCode) {
|
|
126008
|
+
if (retryConnectTimeout && canRetryRead && transportCode === "UND_ERR_CONNECT_TIMEOUT" && attempt === 0) {
|
|
126009
|
+
await new Promise((resolve2) => setTimeout(resolve2, BODY_PARSE_RETRY_BASE_MS));
|
|
126010
|
+
continue;
|
|
126011
|
+
}
|
|
125966
126012
|
const transportError = new WorkflowWorldError(`${method} ${endpoint} transport failure after ${elapsed}ms (${transportCode})`, { url: url2, code: "TRANSPORT", cause: error2 });
|
|
125967
126013
|
span == null ? void 0 : span.setAttributes({ ...ErrorType("TRANSPORT") });
|
|
125968
126014
|
(_b2 = span == null ? void 0 : span.recordException) == null ? void 0 : _b2.call(span, transportError);
|
|
@@ -126040,7 +126086,7 @@ curl -X ${request2.method} ${stringifiedHeaders} "${url2}"`);
|
|
|
126040
126086
|
});
|
|
126041
126087
|
break;
|
|
126042
126088
|
} catch (error2) {
|
|
126043
|
-
if (
|
|
126089
|
+
if (canRetryRead && attempt < MAX_BODY_PARSE_RETRIES) {
|
|
126044
126090
|
const backoffMs = BODY_PARSE_RETRY_BASE_MS * 2 ** attempt;
|
|
126045
126091
|
span == null ? void 0 : span.setAttributes({
|
|
126046
126092
|
...ErrorType("PARSE_ERROR_RETRYING")
|
|
@@ -126280,9 +126326,11 @@ function createQueue$1(config2) {
|
|
|
126280
126326
|
// with jitter so an outage or poison message cannot hot-loop or
|
|
126281
126327
|
// redrive in lockstep. Workflow handlers are event-sourced and must
|
|
126282
126328
|
// remain idempotent because queue retries can happen close together.
|
|
126283
|
-
retry: (
|
|
126284
|
-
afterSeconds
|
|
126285
|
-
|
|
126329
|
+
retry: (error2, { messageId, deliveryCount }) => {
|
|
126330
|
+
const afterSeconds = getHandlerErrorRetryAfterSeconds(deliveryCount);
|
|
126331
|
+
console.error(`[workflow] Queue handler failed for message "${messageId}" on delivery attempt ${deliveryCount}; retrying in ${afterSeconds}s:`, error2);
|
|
126332
|
+
return { afterSeconds };
|
|
126333
|
+
}
|
|
126286
126334
|
});
|
|
126287
126335
|
return async (req) => {
|
|
126288
126336
|
const rawId = req.headers.get("x-vercel-id");
|
|
@@ -126714,6 +126762,7 @@ async function getWorkflowRun(id2, params, config2) {
|
|
|
126714
126762
|
endpoint,
|
|
126715
126763
|
options: { method: "GET" },
|
|
126716
126764
|
config: config2,
|
|
126765
|
+
retryConnectTimeout: true,
|
|
126717
126766
|
schema: remoteRefBehavior === "lazy" ? WorkflowRunWireWithRefsSchema : WorkflowRunWireSchema
|
|
126718
126767
|
});
|
|
126719
126768
|
return filterRunData(run2, resolveData);
|
|
@@ -129231,6 +129280,26 @@ var EventConsumerResult;
|
|
|
129231
129280
|
EventConsumerResult2[EventConsumerResult2["NotConsumed"] = 1] = "NotConsumed";
|
|
129232
129281
|
EventConsumerResult2[EventConsumerResult2["Finished"] = 2] = "Finished";
|
|
129233
129282
|
})(EventConsumerResult || (EventConsumerResult = {}));
|
|
129283
|
+
let _getPort = getPort;
|
|
129284
|
+
let _cachedPort;
|
|
129285
|
+
let _inFlight;
|
|
129286
|
+
async function getPortLazy() {
|
|
129287
|
+
if (_cachedPort !== void 0) {
|
|
129288
|
+
return _cachedPort;
|
|
129289
|
+
}
|
|
129290
|
+
if (_inFlight) {
|
|
129291
|
+
return _inFlight;
|
|
129292
|
+
}
|
|
129293
|
+
_inFlight = _getPort().then((port) => {
|
|
129294
|
+
if (typeof port === "number") {
|
|
129295
|
+
_cachedPort = port;
|
|
129296
|
+
}
|
|
129297
|
+
return port;
|
|
129298
|
+
}).finally(() => {
|
|
129299
|
+
_inFlight = void 0;
|
|
129300
|
+
});
|
|
129301
|
+
return _inFlight;
|
|
129302
|
+
}
|
|
129234
129303
|
var alea$1 = { exports: {} };
|
|
129235
129304
|
var alea = alea$1.exports;
|
|
129236
129305
|
var hasRequiredAlea;
|
|
@@ -129955,19 +130024,19 @@ var hasRequiredRe;
|
|
|
129955
130024
|
function requireRe() {
|
|
129956
130025
|
if (hasRequiredRe) return re.exports;
|
|
129957
130026
|
hasRequiredRe = 1;
|
|
129958
|
-
(function(module, exports
|
|
130027
|
+
(function(module, exports) {
|
|
129959
130028
|
const {
|
|
129960
130029
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
129961
130030
|
MAX_SAFE_BUILD_LENGTH,
|
|
129962
130031
|
MAX_LENGTH
|
|
129963
130032
|
} = requireConstants();
|
|
129964
130033
|
const debug2 = requireDebug();
|
|
129965
|
-
exports
|
|
129966
|
-
const re2 = exports
|
|
129967
|
-
const safeRe = exports
|
|
129968
|
-
const src2 = exports
|
|
129969
|
-
const safeSrc = exports
|
|
129970
|
-
const t = exports
|
|
130034
|
+
exports = module.exports = {};
|
|
130035
|
+
const re2 = exports.re = [];
|
|
130036
|
+
const safeRe = exports.safeRe = [];
|
|
130037
|
+
const src2 = exports.src = [];
|
|
130038
|
+
const safeSrc = exports.safeSrc = [];
|
|
130039
|
+
const t = exports.t = {};
|
|
129971
130040
|
let R2 = 0;
|
|
129972
130041
|
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
129973
130042
|
const safeRegexReplacements = [
|
|
@@ -130020,18 +130089,18 @@ function requireRe() {
|
|
|
130020
130089
|
createToken("COERCERTLFULL", src2[t.COERCEFULL], true);
|
|
130021
130090
|
createToken("LONETILDE", "(?:~>?)");
|
|
130022
130091
|
createToken("TILDETRIM", `(\\s*)${src2[t.LONETILDE]}\\s+`, true);
|
|
130023
|
-
exports
|
|
130092
|
+
exports.tildeTrimReplace = "$1~";
|
|
130024
130093
|
createToken("TILDE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAIN]}$`);
|
|
130025
130094
|
createToken("TILDELOOSE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAINLOOSE]}$`);
|
|
130026
130095
|
createToken("LONECARET", "(?:\\^)");
|
|
130027
130096
|
createToken("CARETTRIM", `(\\s*)${src2[t.LONECARET]}\\s+`, true);
|
|
130028
|
-
exports
|
|
130097
|
+
exports.caretTrimReplace = "$1^";
|
|
130029
130098
|
createToken("CARET", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAIN]}$`);
|
|
130030
130099
|
createToken("CARETLOOSE", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAINLOOSE]}$`);
|
|
130031
130100
|
createToken("COMPARATORLOOSE", `^${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]})$|^$`);
|
|
130032
130101
|
createToken("COMPARATOR", `^${src2[t.GTLT]}\\s*(${src2[t.FULLPLAIN]})$|^$`);
|
|
130033
130102
|
createToken("COMPARATORTRIM", `(\\s*)${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]}|${src2[t.XRANGEPLAIN]})`, true);
|
|
130034
|
-
exports
|
|
130103
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
130035
130104
|
createToken("HYPHENRANGE", `^\\s*(${src2[t.XRANGEPLAIN]})\\s+-\\s+(${src2[t.XRANGEPLAIN]})\\s*$`);
|
|
130036
130105
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src2[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src2[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
130037
130106
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
@@ -132502,7 +132571,7 @@ createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
132502
132571
|
const world = getWorld();
|
|
132503
132572
|
const isVercel = process.env.VERCEL_URL !== void 0;
|
|
132504
132573
|
const [port, spanKind] = await Promise.all([
|
|
132505
|
-
isVercel ? void 0 :
|
|
132574
|
+
isVercel ? void 0 : getPortLazy(),
|
|
132506
132575
|
getSpanKind$2("CONSUMER")
|
|
132507
132576
|
]);
|
|
132508
132577
|
return trace$2(`STEP ${stepName}`, { kind: spanKind, links: spanLinks }, async (span) => {
|
|
@@ -132754,7 +132823,7 @@ createQueueHandler(stepPrefix, async (message_, metadata) => {
|
|
|
132754
132823
|
workflowStartedAt: /* @__PURE__ */ new Date(+workflowStartedAt),
|
|
132755
132824
|
// TODO: there should be a getUrl method on the world interface itself. This
|
|
132756
132825
|
// solution only works for vercel + local worlds.
|
|
132757
|
-
url: isVercel ? `https://${process.env.VERCEL_URL}` : `http://localhost:${port ?? 3e3}`
|
|
132826
|
+
url: createWorkflowBaseUrl(isVercel ? `https://${process.env.VERCEL_URL}` : `http://localhost:${port ?? 3e3}`)
|
|
132758
132827
|
},
|
|
132759
132828
|
workflowDeploymentId: process.env.VERCEL_DEPLOYMENT_ID,
|
|
132760
132829
|
ops,
|
|
@@ -154745,7 +154814,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
154745
154814
|
__proto__: null,
|
|
154746
154815
|
loader
|
|
154747
154816
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
154748
|
-
const serverManifest = { "entry": { "module": "/assets/entry.client-
|
|
154817
|
+
const serverManifest = { "entry": { "module": "/assets/entry.client-C_C46bD6.js", "imports": ["/assets/index-BsV8i_Jn.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-BxnaECGo.js", "imports": ["/assets/index-BsV8i_Jn.js", "/assets/mermaid-3ZIDBTTL-Bp6ZST9_.js"], "css": ["/assets/root-BOS11TzD.css", "/assets/mermaid-3ZIDBTTL-yyHEMZs4.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-Blj6TeEE.js", "imports": ["/assets/index-BsV8i_Jn.js", "/assets/workflow-graph-viewer-C6PWoIIU.js", "/assets/mermaid-3ZIDBTTL-Bp6ZST9_.js", "/assets/index-DZSXezpI.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-yyHEMZs4.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-Cbuf5qtv.js", "imports": ["/assets/index-BsV8i_Jn.js", "/assets/workflow-graph-viewer-C6PWoIIU.js", "/assets/mermaid-3ZIDBTTL-Bp6ZST9_.js", "/assets/encryption-BRhjWsZh.js", "/assets/index-DZSXezpI.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-yyHEMZs4.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-0285e96f.js", "version": "0285e96f", "sri": void 0 };
|
|
154749
154818
|
const assetsBuildDirectory = "build/client";
|
|
154750
154819
|
const basename = "/";
|
|
154751
154820
|
const future = { "unstable_optimizeDeps": false, "unstable_subResourceIntegrity": false, "unstable_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
|