@workflow/web 5.0.0-beta.29 → 5.0.0-beta.30
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/{arrow-up-right-nUJMbeWN.js → arrow-up-right-qJMh7AD6.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-_4bJAUnT.js → highlighted-body-B3W2YXNL-TNY6Phfb.js} +1 -1
- package/build/client/assets/{home-W4Ja_rr1.js → home-VRVjXSQY.js} +2 -2
- package/build/client/assets/{manifest-56b6d9e0.js → manifest-479fb7d3.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-BfwKRFTU.js → mermaid-3ZIDBTTL-CnDvMd8R.js} +1058 -942
- package/build/client/assets/{root-DOkL1_-J.js → root-C7ElgjAN.js} +2 -2
- package/build/client/assets/root-CQggqXow.css +1 -0
- package/build/client/assets/{run-detail-CRleiBxx.js → run-detail-CmptzMYo.js} +28 -67
- package/build/client/assets/server-build-C5ehvmav.css +1 -0
- package/build/client/assets/{workflow-graph-viewer-CvsdACR5.js → workflow-graph-viewer-DQf8ZZM2.js} +1 -1
- package/build/client/assets/{zstd-browser-decoder-bX851D8O.js → zstd-browser-decoder-VtbaLP8T.js} +1 -1
- package/build/server/assets/{app-jsOjV9W7.js → app-CVZBwwJu.js} +1 -1
- package/build/server/assets/{highlighted-body-B3W2YXNL-DpTmbI4L.js → highlighted-body-B3W2YXNL-DU9e_6JW.js} +2 -2
- package/build/server/assets/index-CtG82ntm.js +132 -0
- package/build/server/assets/{mermaid-3ZIDBTTL-Dl6hRpcE.js → mermaid-3ZIDBTTL-DgV-PzsY.js} +2 -2
- package/build/server/assets/{server-build-BRxoSdNU.js → server-build-CRXCLKDJ.js} +1651 -1334
- package/build/server/assets/{token-BqP-cpRD.js → token-bLcjz8Va.js} +2 -2
- package/build/server/assets/{token-util-DaPlIe_a.js → token-util-C0zuFOay.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-Cyb8--z9.js → zstd-browser-decoder-BgFuN9zt.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +6 -6
- package/build/client/assets/root-okIQN2A_.css +0 -1
- package/build/client/assets/server-build-H39y96IB.css +0 -1
- package/build/server/assets/index-CJPCT6Jd.js +0 -115
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-CLVP4klT.js","assets/index-STTN0-2V.js","assets/index-Q81MFBxC.js","assets/zstd-browser-decoder-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-CLVP4klT.js","assets/index-STTN0-2V.js","assets/index-Q81MFBxC.js","assets/zstd-browser-decoder-VtbaLP8T.js","assets/highlighted-body-B3W2YXNL-TNY6Phfb.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -10173,872 +10173,229 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
10173
10173
|
return baseModule().catch(handlePreloadError);
|
|
10174
10174
|
});
|
|
10175
10175
|
};
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10176
|
+
function $constructor(name2, initializer2, params) {
|
|
10177
|
+
function init(inst, def) {
|
|
10178
|
+
if (!inst._zod) {
|
|
10179
|
+
Object.defineProperty(inst, "_zod", {
|
|
10180
|
+
value: {
|
|
10181
|
+
def,
|
|
10182
|
+
constr: _2,
|
|
10183
|
+
traits: /* @__PURE__ */ new Set()
|
|
10184
|
+
},
|
|
10185
|
+
enumerable: false
|
|
10186
|
+
});
|
|
10187
|
+
}
|
|
10188
|
+
if (inst._zod.traits.has(name2)) {
|
|
10189
|
+
return;
|
|
10190
|
+
}
|
|
10191
|
+
inst._zod.traits.add(name2);
|
|
10192
|
+
initializer2(inst, def);
|
|
10193
|
+
const proto2 = _2.prototype;
|
|
10194
|
+
const keys2 = Object.keys(proto2);
|
|
10195
|
+
for (let i = 0; i < keys2.length; i++) {
|
|
10196
|
+
const k2 = keys2[i];
|
|
10197
|
+
if (!(k2 in inst)) {
|
|
10198
|
+
inst[k2] = proto2[k2].bind(inst);
|
|
10199
|
+
}
|
|
10200
|
+
}
|
|
10201
|
+
}
|
|
10202
|
+
const Parent = (params == null ? void 0 : params.Parent) ?? Object;
|
|
10203
|
+
class Definition extends Parent {
|
|
10204
|
+
}
|
|
10205
|
+
Object.defineProperty(Definition, "name", { value: name2 });
|
|
10206
|
+
function _2(def) {
|
|
10207
|
+
var _a3;
|
|
10208
|
+
const inst = (params == null ? void 0 : params.Parent) ? new Definition() : this;
|
|
10209
|
+
init(inst, def);
|
|
10210
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
10211
|
+
for (const fn2 of inst._zod.deferred) {
|
|
10212
|
+
fn2();
|
|
10213
|
+
}
|
|
10214
|
+
return inst;
|
|
10215
|
+
}
|
|
10216
|
+
Object.defineProperty(_2, "init", { value: init });
|
|
10217
|
+
Object.defineProperty(_2, Symbol.hasInstance, {
|
|
10218
|
+
value: (inst) => {
|
|
10219
|
+
var _a3, _b2;
|
|
10220
|
+
if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
|
|
10221
|
+
return true;
|
|
10222
|
+
return (_b2 = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b2.has(name2);
|
|
10223
|
+
}
|
|
10224
|
+
});
|
|
10225
|
+
Object.defineProperty(_2, "name", { value: name2 });
|
|
10226
|
+
return _2;
|
|
10190
10227
|
}
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
return true;
|
|
10228
|
+
class $ZodAsyncError extends Error {
|
|
10229
|
+
constructor() {
|
|
10230
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
10231
|
+
}
|
|
10196
10232
|
}
|
|
10197
|
-
|
|
10198
|
-
|
|
10233
|
+
class $ZodEncodeError extends Error {
|
|
10234
|
+
constructor(name2) {
|
|
10235
|
+
super(`Encountered unidirectional transform during encode: ${name2}`);
|
|
10236
|
+
this.name = "ZodEncodeError";
|
|
10237
|
+
}
|
|
10199
10238
|
}
|
|
10200
|
-
|
|
10201
|
-
|
|
10239
|
+
const globalConfig = {};
|
|
10240
|
+
function config(newConfig) {
|
|
10241
|
+
return globalConfig;
|
|
10202
10242
|
}
|
|
10203
|
-
function
|
|
10204
|
-
const
|
|
10205
|
-
const
|
|
10206
|
-
|
|
10207
|
-
for (let i = 0; i < len; i++) {
|
|
10208
|
-
array2[i] = binary_string.charCodeAt(i);
|
|
10209
|
-
}
|
|
10210
|
-
return array2.buffer;
|
|
10243
|
+
function getEnumValues(entries) {
|
|
10244
|
+
const numericValues = Object.values(entries).filter((v2) => typeof v2 === "number");
|
|
10245
|
+
const values = Object.entries(entries).filter(([k2, _2]) => numericValues.indexOf(+k2) === -1).map(([_2, v2]) => v2);
|
|
10246
|
+
return values;
|
|
10211
10247
|
}
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
return unflatten(JSON.parse(serialized), revivers);
|
|
10248
|
+
function jsonStringifyReplacer(_2, value) {
|
|
10249
|
+
if (typeof value === "bigint")
|
|
10250
|
+
return value.toString();
|
|
10251
|
+
return value;
|
|
10217
10252
|
}
|
|
10218
|
-
function
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
);
|
|
10227
|
-
const hydrated = Array(values.length);
|
|
10228
|
-
let hydrating = null;
|
|
10229
|
-
function hydrate(index2, standalone = false) {
|
|
10230
|
-
if (index2 === UNDEFINED) return void 0;
|
|
10231
|
-
if (index2 === NAN) return NaN;
|
|
10232
|
-
if (index2 === POSITIVE_INFINITY) return Infinity;
|
|
10233
|
-
if (index2 === NEGATIVE_INFINITY) return -Infinity;
|
|
10234
|
-
if (index2 === NEGATIVE_ZERO) return -0;
|
|
10235
|
-
if (standalone || typeof index2 !== "number") {
|
|
10236
|
-
throw new Error(`Invalid input`);
|
|
10253
|
+
function cached(getter) {
|
|
10254
|
+
return {
|
|
10255
|
+
get value() {
|
|
10256
|
+
{
|
|
10257
|
+
const value = getter();
|
|
10258
|
+
Object.defineProperty(this, "value", { value });
|
|
10259
|
+
return value;
|
|
10260
|
+
}
|
|
10237
10261
|
}
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
break;
|
|
10271
|
-
case "Map":
|
|
10272
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
10273
|
-
hydrated[index2] = map2;
|
|
10274
|
-
for (let i = 1; i < value.length; i += 2) {
|
|
10275
|
-
map2.set(hydrate(value[i]), hydrate(value[i + 1]));
|
|
10276
|
-
}
|
|
10277
|
-
break;
|
|
10278
|
-
case "RegExp":
|
|
10279
|
-
hydrated[index2] = new RegExp(value[1], value[2]);
|
|
10280
|
-
break;
|
|
10281
|
-
case "Object": {
|
|
10282
|
-
const wrapped_index = value[1];
|
|
10283
|
-
if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
|
|
10284
|
-
throw new Error("Invalid input");
|
|
10285
|
-
}
|
|
10286
|
-
hydrated[index2] = Object(hydrate(wrapped_index));
|
|
10287
|
-
break;
|
|
10288
|
-
}
|
|
10289
|
-
case "BigInt":
|
|
10290
|
-
hydrated[index2] = BigInt(value[1]);
|
|
10291
|
-
break;
|
|
10292
|
-
case "null":
|
|
10293
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
10294
|
-
hydrated[index2] = obj;
|
|
10295
|
-
for (let i = 1; i < value.length; i += 2) {
|
|
10296
|
-
if (value[i] === "__proto__") {
|
|
10297
|
-
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
10298
|
-
}
|
|
10299
|
-
obj[value[i]] = hydrate(value[i + 1]);
|
|
10300
|
-
}
|
|
10301
|
-
break;
|
|
10302
|
-
case "Int8Array":
|
|
10303
|
-
case "Uint8Array":
|
|
10304
|
-
case "Uint8ClampedArray":
|
|
10305
|
-
case "Int16Array":
|
|
10306
|
-
case "Uint16Array":
|
|
10307
|
-
case "Float16Array":
|
|
10308
|
-
case "Int32Array":
|
|
10309
|
-
case "Uint32Array":
|
|
10310
|
-
case "Float32Array":
|
|
10311
|
-
case "Float64Array":
|
|
10312
|
-
case "BigInt64Array":
|
|
10313
|
-
case "BigUint64Array":
|
|
10314
|
-
case "DataView": {
|
|
10315
|
-
if (values[value[1]][0] !== "ArrayBuffer") {
|
|
10316
|
-
throw new Error("Invalid data");
|
|
10317
|
-
}
|
|
10318
|
-
const TypedArrayConstructor = globalThis[type];
|
|
10319
|
-
const buffer2 = hydrate(value[1]);
|
|
10320
|
-
hydrated[index2] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
|
|
10321
|
-
break;
|
|
10322
|
-
}
|
|
10323
|
-
case "ArrayBuffer": {
|
|
10324
|
-
const base642 = value[1];
|
|
10325
|
-
if (typeof base642 !== "string") {
|
|
10326
|
-
throw new Error("Invalid ArrayBuffer encoding");
|
|
10327
|
-
}
|
|
10328
|
-
const arraybuffer = decode64(base642);
|
|
10329
|
-
hydrated[index2] = arraybuffer;
|
|
10330
|
-
break;
|
|
10331
|
-
}
|
|
10332
|
-
case "Temporal.Duration":
|
|
10333
|
-
case "Temporal.Instant":
|
|
10334
|
-
case "Temporal.PlainDate":
|
|
10335
|
-
case "Temporal.PlainTime":
|
|
10336
|
-
case "Temporal.PlainDateTime":
|
|
10337
|
-
case "Temporal.PlainMonthDay":
|
|
10338
|
-
case "Temporal.PlainYearMonth":
|
|
10339
|
-
case "Temporal.ZonedDateTime": {
|
|
10340
|
-
const temporalName = type.slice(9);
|
|
10341
|
-
hydrated[index2] = Temporal[temporalName].from(value[1]);
|
|
10342
|
-
break;
|
|
10343
|
-
}
|
|
10344
|
-
case "URL": {
|
|
10345
|
-
const url = new URL(value[1]);
|
|
10346
|
-
hydrated[index2] = url;
|
|
10347
|
-
break;
|
|
10348
|
-
}
|
|
10349
|
-
case "URLSearchParams": {
|
|
10350
|
-
const url = new URLSearchParams(value[1]);
|
|
10351
|
-
hydrated[index2] = url;
|
|
10352
|
-
break;
|
|
10353
|
-
}
|
|
10354
|
-
default:
|
|
10355
|
-
throw new Error(`Unknown type ${type}`);
|
|
10356
|
-
}
|
|
10357
|
-
} else if (value[0] === SPARSE) {
|
|
10358
|
-
const len = value[1];
|
|
10359
|
-
if (!is_valid_array_len(len)) {
|
|
10360
|
-
throw new Error("Invalid input");
|
|
10361
|
-
}
|
|
10362
|
-
const array2 = [];
|
|
10363
|
-
hydrated[index2] = array2;
|
|
10364
|
-
array2[MAX_ARRAY_INDEX] = void 0;
|
|
10365
|
-
delete array2[MAX_ARRAY_INDEX];
|
|
10366
|
-
for (let i = 2; i < value.length; i += 2) {
|
|
10367
|
-
const idx = value[i];
|
|
10368
|
-
if (!is_valid_array_index(idx) || idx >= len) {
|
|
10369
|
-
throw new Error("Invalid input");
|
|
10370
|
-
}
|
|
10371
|
-
array2[idx] = hydrate(value[i + 1]);
|
|
10372
|
-
}
|
|
10373
|
-
array2.length = len;
|
|
10374
|
-
} else {
|
|
10375
|
-
const array2 = new Array(value.length);
|
|
10376
|
-
hydrated[index2] = array2;
|
|
10377
|
-
for (let i = 0; i < value.length; i += 1) {
|
|
10378
|
-
const n = value[i];
|
|
10379
|
-
if (n === HOLE) continue;
|
|
10380
|
-
array2[i] = hydrate(n);
|
|
10381
|
-
}
|
|
10262
|
+
};
|
|
10263
|
+
}
|
|
10264
|
+
function nullish(input) {
|
|
10265
|
+
return input === null || input === void 0;
|
|
10266
|
+
}
|
|
10267
|
+
function cleanRegex(source) {
|
|
10268
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
10269
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
10270
|
+
return source.slice(start, end);
|
|
10271
|
+
}
|
|
10272
|
+
function floatSafeRemainder(val, step) {
|
|
10273
|
+
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
10274
|
+
const stepString = step.toString();
|
|
10275
|
+
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
10276
|
+
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
10277
|
+
const match = stepString.match(/\d?e-(\d?)/);
|
|
10278
|
+
if (match == null ? void 0 : match[1]) {
|
|
10279
|
+
stepDecCount = Number.parseInt(match[1]);
|
|
10280
|
+
}
|
|
10281
|
+
}
|
|
10282
|
+
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
10283
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
10284
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
10285
|
+
return valInt % stepInt / 10 ** decCount;
|
|
10286
|
+
}
|
|
10287
|
+
const EVALUATING = Symbol("evaluating");
|
|
10288
|
+
function defineLazy(object2, key, getter) {
|
|
10289
|
+
let value = void 0;
|
|
10290
|
+
Object.defineProperty(object2, key, {
|
|
10291
|
+
get() {
|
|
10292
|
+
if (value === EVALUATING) {
|
|
10293
|
+
return void 0;
|
|
10382
10294
|
}
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
for (const key of Object.keys(value)) {
|
|
10387
|
-
if (key === "__proto__") {
|
|
10388
|
-
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
10389
|
-
}
|
|
10390
|
-
const n = value[key];
|
|
10391
|
-
object2[key] = hydrate(n);
|
|
10295
|
+
if (value === void 0) {
|
|
10296
|
+
value = EVALUATING;
|
|
10297
|
+
value = getter();
|
|
10392
10298
|
}
|
|
10393
|
-
|
|
10394
|
-
|
|
10299
|
+
return value;
|
|
10300
|
+
},
|
|
10301
|
+
set(v2) {
|
|
10302
|
+
Object.defineProperty(object2, key, {
|
|
10303
|
+
value: v2
|
|
10304
|
+
// configurable: true,
|
|
10305
|
+
});
|
|
10306
|
+
},
|
|
10307
|
+
configurable: true
|
|
10308
|
+
});
|
|
10309
|
+
}
|
|
10310
|
+
function assignProp(target2, prop, value) {
|
|
10311
|
+
Object.defineProperty(target2, prop, {
|
|
10312
|
+
value,
|
|
10313
|
+
writable: true,
|
|
10314
|
+
enumerable: true,
|
|
10315
|
+
configurable: true
|
|
10316
|
+
});
|
|
10317
|
+
}
|
|
10318
|
+
function mergeDefs(...defs) {
|
|
10319
|
+
const mergedDescriptors = {};
|
|
10320
|
+
for (const def of defs) {
|
|
10321
|
+
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
10322
|
+
Object.assign(mergedDescriptors, descriptors);
|
|
10395
10323
|
}
|
|
10396
|
-
return
|
|
10324
|
+
return Object.defineProperties({}, mergedDescriptors);
|
|
10397
10325
|
}
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
/** Zstandard-compressed payload (inner payload has its own format prefix after decompression) */
|
|
10406
|
-
ZSTD: "zstd"
|
|
10326
|
+
function esc(str) {
|
|
10327
|
+
return JSON.stringify(str);
|
|
10328
|
+
}
|
|
10329
|
+
function slugify(input) {
|
|
10330
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
10331
|
+
}
|
|
10332
|
+
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
10407
10333
|
};
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
const formatDecoder = new TextDecoder();
|
|
10411
|
-
function decodeFormatPrefix(data) {
|
|
10412
|
-
if (!(data instanceof Uint8Array)) {
|
|
10413
|
-
return {
|
|
10414
|
-
format: SerializationFormat.DEVALUE_V1,
|
|
10415
|
-
payload: new TextEncoder().encode(JSON.stringify(data))
|
|
10416
|
-
};
|
|
10417
|
-
}
|
|
10418
|
-
if (data.length < FORMAT_PREFIX_LENGTH) {
|
|
10419
|
-
throw new Error(`Data too short to contain format prefix: expected at least ${FORMAT_PREFIX_LENGTH} bytes, got ${data.length}`);
|
|
10420
|
-
}
|
|
10421
|
-
const prefixBytes = data.subarray(0, FORMAT_PREFIX_LENGTH);
|
|
10422
|
-
const format = formatDecoder.decode(prefixBytes);
|
|
10423
|
-
const knownFormats = Object.values(SerializationFormat);
|
|
10424
|
-
if (!knownFormats.includes(format)) {
|
|
10425
|
-
throw new Error(`Unknown serialization format: "${format}". Known formats: ${knownFormats.join(", ")}`);
|
|
10426
|
-
}
|
|
10427
|
-
const payload = data.subarray(FORMAT_PREFIX_LENGTH);
|
|
10428
|
-
return { format, payload };
|
|
10334
|
+
function isObject(data) {
|
|
10335
|
+
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
10429
10336
|
}
|
|
10430
|
-
|
|
10431
|
-
|
|
10337
|
+
const allowsEval = cached(() => {
|
|
10338
|
+
var _a3;
|
|
10339
|
+
if (typeof navigator !== "undefined" && ((_a3 = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a3.includes("Cloudflare"))) {
|
|
10432
10340
|
return false;
|
|
10433
10341
|
}
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
function isExpiredStub(data) {
|
|
10438
|
-
if (isExpiredObject(data))
|
|
10439
|
-
return true;
|
|
10440
|
-
if (Array.isArray(data) && data.length === 1 && isExpiredObject(data[0])) {
|
|
10342
|
+
try {
|
|
10343
|
+
const F2 = Function;
|
|
10344
|
+
new F2("");
|
|
10441
10345
|
return true;
|
|
10442
|
-
}
|
|
10443
|
-
return false;
|
|
10444
|
-
}
|
|
10445
|
-
function isEncryptedData(data) {
|
|
10446
|
-
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) {
|
|
10346
|
+
} catch (_2) {
|
|
10447
10347
|
return false;
|
|
10448
10348
|
}
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10349
|
+
});
|
|
10350
|
+
function isPlainObject$1(o) {
|
|
10351
|
+
if (isObject(o) === false)
|
|
10352
|
+
return false;
|
|
10353
|
+
const ctor = o.constructor;
|
|
10354
|
+
if (ctor === void 0)
|
|
10355
|
+
return true;
|
|
10356
|
+
if (typeof ctor !== "function")
|
|
10357
|
+
return true;
|
|
10358
|
+
const prot = ctor.prototype;
|
|
10359
|
+
if (isObject(prot) === false)
|
|
10360
|
+
return false;
|
|
10361
|
+
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
|
|
10454
10362
|
return false;
|
|
10455
10363
|
}
|
|
10456
|
-
|
|
10457
|
-
return prefix === SerializationFormat.GZIP || prefix === SerializationFormat.ZSTD;
|
|
10364
|
+
return true;
|
|
10458
10365
|
}
|
|
10459
|
-
function
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
}
|
|
10366
|
+
function shallowClone(o) {
|
|
10367
|
+
if (isPlainObject$1(o))
|
|
10368
|
+
return { ...o };
|
|
10369
|
+
if (Array.isArray(o))
|
|
10370
|
+
return [...o];
|
|
10371
|
+
return o;
|
|
10466
10372
|
}
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
return new Uint8Array(zlib.gunzipSync(payload));
|
|
10472
|
-
}
|
|
10473
|
-
if (format === SerializationFormat.ZSTD && (zlib == null ? void 0 : zlib.zstdDecompressSync)) {
|
|
10474
|
-
return new Uint8Array(zlib.zstdDecompressSync(payload));
|
|
10475
|
-
}
|
|
10476
|
-
} catch {
|
|
10477
|
-
}
|
|
10478
|
-
return void 0;
|
|
10373
|
+
const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
10374
|
+
const primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
10375
|
+
function escapeRegex(str) {
|
|
10376
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
10479
10377
|
}
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10378
|
+
function clone(inst, def, params) {
|
|
10379
|
+
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
10380
|
+
if (!def || (params == null ? void 0 : params.parent))
|
|
10381
|
+
cl._zod.parent = inst;
|
|
10382
|
+
return cl;
|
|
10483
10383
|
}
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
const writer = transform2.writable.getWriter();
|
|
10495
|
-
const writePromise = writer.write(payload).then(() => writer.close());
|
|
10496
|
-
writePromise.catch(() => {
|
|
10497
|
-
});
|
|
10498
|
-
const chunks = [];
|
|
10499
|
-
let total = 0;
|
|
10500
|
-
const reader = transform2.readable.getReader();
|
|
10501
|
-
for (; ; ) {
|
|
10502
|
-
const { done, value } = await reader.read();
|
|
10503
|
-
if (done)
|
|
10504
|
-
break;
|
|
10505
|
-
chunks.push(value);
|
|
10506
|
-
total += value.length;
|
|
10507
|
-
}
|
|
10508
|
-
await writePromise;
|
|
10509
|
-
const out = new Uint8Array(total);
|
|
10510
|
-
let offset2 = 0;
|
|
10511
|
-
for (const chunk of chunks) {
|
|
10512
|
-
out.set(chunk, offset2);
|
|
10513
|
-
offset2 += chunk.length;
|
|
10384
|
+
function normalizeParams(_params) {
|
|
10385
|
+
const params = _params;
|
|
10386
|
+
if (!params)
|
|
10387
|
+
return {};
|
|
10388
|
+
if (typeof params === "string")
|
|
10389
|
+
return { error: () => params };
|
|
10390
|
+
if ((params == null ? void 0 : params.message) !== void 0) {
|
|
10391
|
+
if ((params == null ? void 0 : params.error) !== void 0)
|
|
10392
|
+
throw new Error("Cannot specify both `message` and `error` params");
|
|
10393
|
+
params.error = params.message;
|
|
10514
10394
|
}
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
if (isEncryptedData(value)) {
|
|
10520
|
-
return value;
|
|
10521
|
-
}
|
|
10522
|
-
const { format, payload } = decodeFormatPrefix(value);
|
|
10523
|
-
if (format === SerializationFormat.DEVALUE_V1) {
|
|
10524
|
-
const str = new TextDecoder().decode(payload);
|
|
10525
|
-
return parse$4(str, revivers);
|
|
10526
|
-
}
|
|
10527
|
-
if (format === SerializationFormat.GZIP || format === SerializationFormat.ZSTD) {
|
|
10528
|
-
const inflated = decompressSyncIfAvailable(format, payload);
|
|
10529
|
-
if (inflated === void 0) {
|
|
10530
|
-
return value;
|
|
10531
|
-
}
|
|
10532
|
-
return hydrateData(inflated, revivers);
|
|
10533
|
-
}
|
|
10534
|
-
throw new Error(`Unsupported serialization format: ${format}`);
|
|
10535
|
-
}
|
|
10536
|
-
if (Array.isArray(value)) {
|
|
10537
|
-
return unflatten(value, revivers);
|
|
10538
|
-
}
|
|
10539
|
-
return value;
|
|
10540
|
-
}
|
|
10541
|
-
async function hydrateDataWithKey(value, revivers, key) {
|
|
10542
|
-
let data = value;
|
|
10543
|
-
if (data instanceof Uint8Array && isEncryptedData(data) && key) {
|
|
10544
|
-
const { decrypt } = await __vitePreload(async () => {
|
|
10545
|
-
const { decrypt: decrypt2 } = await import("./encryption-CLVP4klT.js");
|
|
10546
|
-
return { decrypt: decrypt2 };
|
|
10547
|
-
}, true ? __vite__mapDeps([0,1,2]) : void 0);
|
|
10548
|
-
const { payload } = decodeFormatPrefix(data);
|
|
10549
|
-
data = await decrypt(key, payload);
|
|
10550
|
-
}
|
|
10551
|
-
if (data instanceof Uint8Array && isCompressedData(data)) {
|
|
10552
|
-
const { format, payload } = decodeFormatPrefix(data);
|
|
10553
|
-
data = await decompressAsync(format, payload);
|
|
10554
|
-
}
|
|
10555
|
-
return hydrateData(data, revivers);
|
|
10556
|
-
}
|
|
10557
|
-
const STREAM_ID_PREFIX = "strm_";
|
|
10558
|
-
const STREAM_REF_TYPE$1 = "__workflow_stream_ref__";
|
|
10559
|
-
const RUN_REF_TYPE$1 = "__workflow_run_ref__";
|
|
10560
|
-
const isRunRef$1 = (value) => {
|
|
10561
|
-
return value !== null && typeof value === "object" && "__type" in value && value.__type === RUN_REF_TYPE$1 && "runId" in value && typeof value.runId === "string";
|
|
10562
|
-
};
|
|
10563
|
-
const serializedRunToRunRef = (value) => {
|
|
10564
|
-
return { __type: RUN_REF_TYPE$1, runId: value.runId };
|
|
10565
|
-
};
|
|
10566
|
-
const CLASS_INSTANCE_REF_TYPE$1 = "__workflow_class_instance_ref__";
|
|
10567
|
-
class ClassInstanceRef {
|
|
10568
|
-
constructor(className, classId, data) {
|
|
10569
|
-
__publicField(this, "className");
|
|
10570
|
-
__publicField(this, "classId");
|
|
10571
|
-
__publicField(this, "data");
|
|
10572
|
-
__publicField(this, "__type", CLASS_INSTANCE_REF_TYPE$1);
|
|
10573
|
-
this.className = className;
|
|
10574
|
-
this.classId = classId;
|
|
10575
|
-
this.data = data;
|
|
10576
|
-
}
|
|
10577
|
-
toJSON() {
|
|
10578
|
-
return {
|
|
10579
|
-
__type: this.__type,
|
|
10580
|
-
className: this.className,
|
|
10581
|
-
classId: this.classId,
|
|
10582
|
-
data: this.data
|
|
10583
|
-
};
|
|
10584
|
-
}
|
|
10585
|
-
}
|
|
10586
|
-
const streamToStreamRef = (value) => {
|
|
10587
|
-
let streamId;
|
|
10588
|
-
if ("name" in value) {
|
|
10589
|
-
const name2 = String(value.name);
|
|
10590
|
-
if (!name2.startsWith(STREAM_ID_PREFIX)) {
|
|
10591
|
-
streamId = `${STREAM_ID_PREFIX}${name2}`;
|
|
10592
|
-
} else {
|
|
10593
|
-
streamId = name2;
|
|
10594
|
-
}
|
|
10595
|
-
} else {
|
|
10596
|
-
streamId = `${STREAM_ID_PREFIX}null`;
|
|
10597
|
-
}
|
|
10598
|
-
return { __type: STREAM_REF_TYPE$1, streamId };
|
|
10599
|
-
};
|
|
10600
|
-
const serializedStepFunctionToString = (value) => {
|
|
10601
|
-
if (!value)
|
|
10602
|
-
return "null";
|
|
10603
|
-
if (typeof value !== "object")
|
|
10604
|
-
return "null";
|
|
10605
|
-
if ("stepId" in value) {
|
|
10606
|
-
return `<step:${value.stepId}>`;
|
|
10607
|
-
}
|
|
10608
|
-
return "<function>";
|
|
10609
|
-
};
|
|
10610
|
-
const extractClassName = (classId) => {
|
|
10611
|
-
if (!classId)
|
|
10612
|
-
return "Unknown";
|
|
10613
|
-
const parts = classId.split("/");
|
|
10614
|
-
return parts[parts.length - 1] || classId;
|
|
10615
|
-
};
|
|
10616
|
-
const serializedInstanceToRef = (value) => {
|
|
10617
|
-
const className = extractClassName(value.classId);
|
|
10618
|
-
if (className === "Run" && value.data !== null && typeof value.data === "object" && "runId" in value.data && typeof value.data.runId === "string") {
|
|
10619
|
-
return serializedRunToRunRef(value.data);
|
|
10620
|
-
}
|
|
10621
|
-
return new ClassInstanceRef(className, value.classId, value.data);
|
|
10622
|
-
};
|
|
10623
|
-
const serializedClassToString = (value) => {
|
|
10624
|
-
return `<class:${extractClassName(value.classId)}>`;
|
|
10625
|
-
};
|
|
10626
|
-
const observabilityRevivers = {
|
|
10627
|
-
ReadableStream: streamToStreamRef,
|
|
10628
|
-
WritableStream: streamToStreamRef,
|
|
10629
|
-
TransformStream: streamToStreamRef,
|
|
10630
|
-
AbortController: (value) => `<AbortController(aborted: ${value.aborted})>`,
|
|
10631
|
-
AbortSignal: (value) => `<AbortSignal(aborted: ${value.aborted})>`,
|
|
10632
|
-
// DOMException needs an explicit reviver: without one, devalue.parse
|
|
10633
|
-
// throws on the `["DOMException", ...]` tag and `hydrateStepIO`'s
|
|
10634
|
-
// try/catch leaves the raw flat-encoded string in the UI. AbortController
|
|
10635
|
-
// synthesizes a DOMException as the default `signal.reason` when abort()
|
|
10636
|
-
// is called with no arg — so any abort that round-trips through a step
|
|
10637
|
-
// boundary surfaces here. Reconstruct as a real DOMException when the
|
|
10638
|
-
// global is available (modern browsers + Node 18+), else fall back to
|
|
10639
|
-
// an Error preserving name/message/stack/cause for display.
|
|
10640
|
-
DOMException: (value) => {
|
|
10641
|
-
const G2 = globalThis;
|
|
10642
|
-
if (typeof G2.DOMException === "function") {
|
|
10643
|
-
const e2 = new G2.DOMException(value.message, value.name);
|
|
10644
|
-
if (value.stack !== void 0)
|
|
10645
|
-
e2.stack = value.stack;
|
|
10646
|
-
if ("cause" in value)
|
|
10647
|
-
e2.cause = value.cause;
|
|
10648
|
-
return e2;
|
|
10649
|
-
}
|
|
10650
|
-
const e = new Error(value.message);
|
|
10651
|
-
e.name = value.name;
|
|
10652
|
-
if (value.stack !== void 0)
|
|
10653
|
-
e.stack = value.stack;
|
|
10654
|
-
if ("cause" in value)
|
|
10655
|
-
e.cause = value.cause;
|
|
10656
|
-
return e;
|
|
10657
|
-
},
|
|
10658
|
-
StepFunction: serializedStepFunctionToString,
|
|
10659
|
-
WorkflowFunction: (value) => `<workflow:${value.workflowId}>`,
|
|
10660
|
-
Instance: serializedInstanceToRef,
|
|
10661
|
-
Class: serializedClassToString
|
|
10662
|
-
};
|
|
10663
|
-
function hydrateStepIO(resource, revivers) {
|
|
10664
|
-
let hydratedInput = resource.input;
|
|
10665
|
-
let hydratedOutput = resource.output;
|
|
10666
|
-
let hydratedError = resource.error;
|
|
10667
|
-
if (resource.input != null) {
|
|
10668
|
-
try {
|
|
10669
|
-
hydratedInput = hydrateData(resource.input, revivers);
|
|
10670
|
-
} catch {
|
|
10671
|
-
}
|
|
10672
|
-
}
|
|
10673
|
-
if (resource.output != null) {
|
|
10674
|
-
try {
|
|
10675
|
-
hydratedOutput = hydrateData(resource.output, revivers);
|
|
10676
|
-
} catch {
|
|
10677
|
-
}
|
|
10678
|
-
}
|
|
10679
|
-
if (resource.error != null) {
|
|
10680
|
-
try {
|
|
10681
|
-
hydratedError = hydrateData(resource.error, revivers);
|
|
10682
|
-
} catch {
|
|
10683
|
-
}
|
|
10684
|
-
}
|
|
10685
|
-
return {
|
|
10686
|
-
...resource,
|
|
10687
|
-
input: hydratedInput,
|
|
10688
|
-
output: hydratedOutput,
|
|
10689
|
-
error: hydratedError
|
|
10690
|
-
};
|
|
10691
|
-
}
|
|
10692
|
-
function hydrateWorkflowIO(resource, revivers) {
|
|
10693
|
-
let hydratedInput = resource.input;
|
|
10694
|
-
let hydratedOutput = resource.output;
|
|
10695
|
-
let hydratedError = resource.error;
|
|
10696
|
-
if (resource.input != null) {
|
|
10697
|
-
try {
|
|
10698
|
-
hydratedInput = hydrateData(resource.input, revivers);
|
|
10699
|
-
} catch {
|
|
10700
|
-
}
|
|
10701
|
-
}
|
|
10702
|
-
if (resource.output != null) {
|
|
10703
|
-
try {
|
|
10704
|
-
hydratedOutput = hydrateData(resource.output, revivers);
|
|
10705
|
-
} catch {
|
|
10706
|
-
}
|
|
10707
|
-
}
|
|
10708
|
-
if (resource.error != null) {
|
|
10709
|
-
try {
|
|
10710
|
-
hydratedError = hydrateData(resource.error, revivers);
|
|
10711
|
-
} catch {
|
|
10712
|
-
}
|
|
10713
|
-
}
|
|
10714
|
-
return {
|
|
10715
|
-
...resource,
|
|
10716
|
-
input: hydratedInput,
|
|
10717
|
-
output: hydratedOutput,
|
|
10718
|
-
error: hydratedError
|
|
10719
|
-
};
|
|
10720
|
-
}
|
|
10721
|
-
function hydrateEventData(resource, revivers) {
|
|
10722
|
-
if (!resource.eventData)
|
|
10723
|
-
return resource;
|
|
10724
|
-
const eventData = { ...resource.eventData };
|
|
10725
|
-
if ("result" in eventData && eventData.result != null) {
|
|
10726
|
-
try {
|
|
10727
|
-
eventData.result = hydrateData(eventData.result, revivers);
|
|
10728
|
-
} catch {
|
|
10729
|
-
}
|
|
10730
|
-
}
|
|
10731
|
-
if ("input" in eventData && eventData.input != null) {
|
|
10732
|
-
try {
|
|
10733
|
-
eventData.input = hydrateData(eventData.input, revivers);
|
|
10734
|
-
} catch {
|
|
10735
|
-
}
|
|
10736
|
-
}
|
|
10737
|
-
if ("output" in eventData && eventData.output != null) {
|
|
10738
|
-
try {
|
|
10739
|
-
eventData.output = hydrateData(eventData.output, revivers);
|
|
10740
|
-
} catch {
|
|
10741
|
-
}
|
|
10742
|
-
}
|
|
10743
|
-
if ("metadata" in eventData && eventData.metadata != null) {
|
|
10744
|
-
try {
|
|
10745
|
-
eventData.metadata = hydrateData(eventData.metadata, revivers);
|
|
10746
|
-
} catch {
|
|
10747
|
-
}
|
|
10748
|
-
}
|
|
10749
|
-
if ("payload" in eventData && eventData.payload != null) {
|
|
10750
|
-
try {
|
|
10751
|
-
eventData.payload = hydrateData(eventData.payload, revivers);
|
|
10752
|
-
} catch {
|
|
10753
|
-
}
|
|
10754
|
-
}
|
|
10755
|
-
if ("error" in eventData && eventData.error != null) {
|
|
10756
|
-
try {
|
|
10757
|
-
eventData.error = hydrateData(eventData.error, revivers);
|
|
10758
|
-
} catch {
|
|
10759
|
-
}
|
|
10760
|
-
}
|
|
10761
|
-
return { ...resource, eventData };
|
|
10762
|
-
}
|
|
10763
|
-
function hydrateHookMetadata(resource, revivers) {
|
|
10764
|
-
if (resource.metadata == null)
|
|
10765
|
-
return resource;
|
|
10766
|
-
let hydratedMetadata = resource.metadata;
|
|
10767
|
-
try {
|
|
10768
|
-
hydratedMetadata = hydrateData(resource.metadata, revivers);
|
|
10769
|
-
} catch {
|
|
10770
|
-
}
|
|
10771
|
-
return { ...resource, metadata: hydratedMetadata };
|
|
10772
|
-
}
|
|
10773
|
-
function hydrateResourceIO$1(resource, revivers) {
|
|
10774
|
-
if (!resource)
|
|
10775
|
-
return resource;
|
|
10776
|
-
let hydrated;
|
|
10777
|
-
if ("stepId" in resource) {
|
|
10778
|
-
hydrated = hydrateStepIO(resource, revivers);
|
|
10779
|
-
} else if ("hookId" in resource) {
|
|
10780
|
-
hydrated = hydrateHookMetadata(resource, revivers);
|
|
10781
|
-
} else if ("eventId" in resource) {
|
|
10782
|
-
hydrated = hydrateEventData(resource, revivers);
|
|
10783
|
-
} else {
|
|
10784
|
-
hydrated = hydrateWorkflowIO(resource, revivers);
|
|
10785
|
-
}
|
|
10786
|
-
if ("executionContext" in hydrated) {
|
|
10787
|
-
const { executionContext, ...rest } = hydrated;
|
|
10788
|
-
const workflowCoreVersion = executionContext && typeof executionContext === "object" && "workflowCoreVersion" in executionContext ? executionContext.workflowCoreVersion : void 0;
|
|
10789
|
-
if (workflowCoreVersion) {
|
|
10790
|
-
return { ...rest, workflowCoreVersion };
|
|
10791
|
-
}
|
|
10792
|
-
return rest;
|
|
10793
|
-
}
|
|
10794
|
-
return hydrated;
|
|
10795
|
-
}
|
|
10796
|
-
const serializationFormat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10797
|
-
__proto__: null,
|
|
10798
|
-
CLASS_INSTANCE_REF_TYPE: CLASS_INSTANCE_REF_TYPE$1,
|
|
10799
|
-
ClassInstanceRef,
|
|
10800
|
-
RUN_REF_TYPE: RUN_REF_TYPE$1,
|
|
10801
|
-
STREAM_REF_TYPE: STREAM_REF_TYPE$1,
|
|
10802
|
-
SerializationFormat,
|
|
10803
|
-
decodeFormatPrefix,
|
|
10804
|
-
extractClassName,
|
|
10805
|
-
hydrateData,
|
|
10806
|
-
hydrateDataWithKey,
|
|
10807
|
-
hydrateResourceIO: hydrateResourceIO$1,
|
|
10808
|
-
isCompressedData,
|
|
10809
|
-
isEncryptedData,
|
|
10810
|
-
isExpiredStub,
|
|
10811
|
-
isRunRef: isRunRef$1,
|
|
10812
|
-
observabilityRevivers,
|
|
10813
|
-
registerZstdDecoder,
|
|
10814
|
-
serializedClassToString,
|
|
10815
|
-
serializedInstanceToRef,
|
|
10816
|
-
serializedRunToRunRef,
|
|
10817
|
-
serializedStepFunctionToString,
|
|
10818
|
-
streamToStreamRef
|
|
10819
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
10820
|
-
function $constructor(name2, initializer2, params) {
|
|
10821
|
-
function init(inst, def) {
|
|
10822
|
-
if (!inst._zod) {
|
|
10823
|
-
Object.defineProperty(inst, "_zod", {
|
|
10824
|
-
value: {
|
|
10825
|
-
def,
|
|
10826
|
-
constr: _2,
|
|
10827
|
-
traits: /* @__PURE__ */ new Set()
|
|
10828
|
-
},
|
|
10829
|
-
enumerable: false
|
|
10830
|
-
});
|
|
10831
|
-
}
|
|
10832
|
-
if (inst._zod.traits.has(name2)) {
|
|
10833
|
-
return;
|
|
10834
|
-
}
|
|
10835
|
-
inst._zod.traits.add(name2);
|
|
10836
|
-
initializer2(inst, def);
|
|
10837
|
-
const proto2 = _2.prototype;
|
|
10838
|
-
const keys2 = Object.keys(proto2);
|
|
10839
|
-
for (let i = 0; i < keys2.length; i++) {
|
|
10840
|
-
const k2 = keys2[i];
|
|
10841
|
-
if (!(k2 in inst)) {
|
|
10842
|
-
inst[k2] = proto2[k2].bind(inst);
|
|
10843
|
-
}
|
|
10844
|
-
}
|
|
10845
|
-
}
|
|
10846
|
-
const Parent = (params == null ? void 0 : params.Parent) ?? Object;
|
|
10847
|
-
class Definition extends Parent {
|
|
10848
|
-
}
|
|
10849
|
-
Object.defineProperty(Definition, "name", { value: name2 });
|
|
10850
|
-
function _2(def) {
|
|
10851
|
-
var _a3;
|
|
10852
|
-
const inst = (params == null ? void 0 : params.Parent) ? new Definition() : this;
|
|
10853
|
-
init(inst, def);
|
|
10854
|
-
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
10855
|
-
for (const fn2 of inst._zod.deferred) {
|
|
10856
|
-
fn2();
|
|
10857
|
-
}
|
|
10858
|
-
return inst;
|
|
10859
|
-
}
|
|
10860
|
-
Object.defineProperty(_2, "init", { value: init });
|
|
10861
|
-
Object.defineProperty(_2, Symbol.hasInstance, {
|
|
10862
|
-
value: (inst) => {
|
|
10863
|
-
var _a3, _b2;
|
|
10864
|
-
if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
|
|
10865
|
-
return true;
|
|
10866
|
-
return (_b2 = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b2.has(name2);
|
|
10867
|
-
}
|
|
10868
|
-
});
|
|
10869
|
-
Object.defineProperty(_2, "name", { value: name2 });
|
|
10870
|
-
return _2;
|
|
10871
|
-
}
|
|
10872
|
-
class $ZodAsyncError extends Error {
|
|
10873
|
-
constructor() {
|
|
10874
|
-
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
10875
|
-
}
|
|
10876
|
-
}
|
|
10877
|
-
class $ZodEncodeError extends Error {
|
|
10878
|
-
constructor(name2) {
|
|
10879
|
-
super(`Encountered unidirectional transform during encode: ${name2}`);
|
|
10880
|
-
this.name = "ZodEncodeError";
|
|
10881
|
-
}
|
|
10882
|
-
}
|
|
10883
|
-
const globalConfig = {};
|
|
10884
|
-
function config(newConfig) {
|
|
10885
|
-
return globalConfig;
|
|
10886
|
-
}
|
|
10887
|
-
function getEnumValues(entries) {
|
|
10888
|
-
const numericValues = Object.values(entries).filter((v2) => typeof v2 === "number");
|
|
10889
|
-
const values = Object.entries(entries).filter(([k2, _2]) => numericValues.indexOf(+k2) === -1).map(([_2, v2]) => v2);
|
|
10890
|
-
return values;
|
|
10891
|
-
}
|
|
10892
|
-
function jsonStringifyReplacer(_2, value) {
|
|
10893
|
-
if (typeof value === "bigint")
|
|
10894
|
-
return value.toString();
|
|
10895
|
-
return value;
|
|
10896
|
-
}
|
|
10897
|
-
function cached(getter) {
|
|
10898
|
-
return {
|
|
10899
|
-
get value() {
|
|
10900
|
-
{
|
|
10901
|
-
const value = getter();
|
|
10902
|
-
Object.defineProperty(this, "value", { value });
|
|
10903
|
-
return value;
|
|
10904
|
-
}
|
|
10905
|
-
}
|
|
10906
|
-
};
|
|
10907
|
-
}
|
|
10908
|
-
function nullish(input) {
|
|
10909
|
-
return input === null || input === void 0;
|
|
10910
|
-
}
|
|
10911
|
-
function cleanRegex(source) {
|
|
10912
|
-
const start = source.startsWith("^") ? 1 : 0;
|
|
10913
|
-
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
10914
|
-
return source.slice(start, end);
|
|
10915
|
-
}
|
|
10916
|
-
function floatSafeRemainder(val, step) {
|
|
10917
|
-
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
10918
|
-
const stepString = step.toString();
|
|
10919
|
-
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
10920
|
-
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
10921
|
-
const match = stepString.match(/\d?e-(\d?)/);
|
|
10922
|
-
if (match == null ? void 0 : match[1]) {
|
|
10923
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
10924
|
-
}
|
|
10925
|
-
}
|
|
10926
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
10927
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
10928
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
10929
|
-
return valInt % stepInt / 10 ** decCount;
|
|
10930
|
-
}
|
|
10931
|
-
const EVALUATING = Symbol("evaluating");
|
|
10932
|
-
function defineLazy(object2, key, getter) {
|
|
10933
|
-
let value = void 0;
|
|
10934
|
-
Object.defineProperty(object2, key, {
|
|
10935
|
-
get() {
|
|
10936
|
-
if (value === EVALUATING) {
|
|
10937
|
-
return void 0;
|
|
10938
|
-
}
|
|
10939
|
-
if (value === void 0) {
|
|
10940
|
-
value = EVALUATING;
|
|
10941
|
-
value = getter();
|
|
10942
|
-
}
|
|
10943
|
-
return value;
|
|
10944
|
-
},
|
|
10945
|
-
set(v2) {
|
|
10946
|
-
Object.defineProperty(object2, key, {
|
|
10947
|
-
value: v2
|
|
10948
|
-
// configurable: true,
|
|
10949
|
-
});
|
|
10950
|
-
},
|
|
10951
|
-
configurable: true
|
|
10952
|
-
});
|
|
10953
|
-
}
|
|
10954
|
-
function assignProp(target2, prop, value) {
|
|
10955
|
-
Object.defineProperty(target2, prop, {
|
|
10956
|
-
value,
|
|
10957
|
-
writable: true,
|
|
10958
|
-
enumerable: true,
|
|
10959
|
-
configurable: true
|
|
10960
|
-
});
|
|
10961
|
-
}
|
|
10962
|
-
function mergeDefs(...defs) {
|
|
10963
|
-
const mergedDescriptors = {};
|
|
10964
|
-
for (const def of defs) {
|
|
10965
|
-
const descriptors = Object.getOwnPropertyDescriptors(def);
|
|
10966
|
-
Object.assign(mergedDescriptors, descriptors);
|
|
10967
|
-
}
|
|
10968
|
-
return Object.defineProperties({}, mergedDescriptors);
|
|
10969
|
-
}
|
|
10970
|
-
function esc(str) {
|
|
10971
|
-
return JSON.stringify(str);
|
|
10972
|
-
}
|
|
10973
|
-
function slugify(input) {
|
|
10974
|
-
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
10975
|
-
}
|
|
10976
|
-
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
10977
|
-
};
|
|
10978
|
-
function isObject(data) {
|
|
10979
|
-
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
10980
|
-
}
|
|
10981
|
-
const allowsEval = cached(() => {
|
|
10982
|
-
var _a3;
|
|
10983
|
-
if (typeof navigator !== "undefined" && ((_a3 = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a3.includes("Cloudflare"))) {
|
|
10984
|
-
return false;
|
|
10985
|
-
}
|
|
10986
|
-
try {
|
|
10987
|
-
const F2 = Function;
|
|
10988
|
-
new F2("");
|
|
10989
|
-
return true;
|
|
10990
|
-
} catch (_2) {
|
|
10991
|
-
return false;
|
|
10992
|
-
}
|
|
10993
|
-
});
|
|
10994
|
-
function isPlainObject$1(o) {
|
|
10995
|
-
if (isObject(o) === false)
|
|
10996
|
-
return false;
|
|
10997
|
-
const ctor = o.constructor;
|
|
10998
|
-
if (ctor === void 0)
|
|
10999
|
-
return true;
|
|
11000
|
-
if (typeof ctor !== "function")
|
|
11001
|
-
return true;
|
|
11002
|
-
const prot = ctor.prototype;
|
|
11003
|
-
if (isObject(prot) === false)
|
|
11004
|
-
return false;
|
|
11005
|
-
if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
|
|
11006
|
-
return false;
|
|
11007
|
-
}
|
|
11008
|
-
return true;
|
|
11009
|
-
}
|
|
11010
|
-
function shallowClone(o) {
|
|
11011
|
-
if (isPlainObject$1(o))
|
|
11012
|
-
return { ...o };
|
|
11013
|
-
if (Array.isArray(o))
|
|
11014
|
-
return [...o];
|
|
11015
|
-
return o;
|
|
11016
|
-
}
|
|
11017
|
-
const propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
11018
|
-
function escapeRegex(str) {
|
|
11019
|
-
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11020
|
-
}
|
|
11021
|
-
function clone(inst, def, params) {
|
|
11022
|
-
const cl = new inst._zod.constr(def ?? inst._zod.def);
|
|
11023
|
-
if (!def || (params == null ? void 0 : params.parent))
|
|
11024
|
-
cl._zod.parent = inst;
|
|
11025
|
-
return cl;
|
|
11026
|
-
}
|
|
11027
|
-
function normalizeParams(_params) {
|
|
11028
|
-
const params = _params;
|
|
11029
|
-
if (!params)
|
|
11030
|
-
return {};
|
|
11031
|
-
if (typeof params === "string")
|
|
11032
|
-
return { error: () => params };
|
|
11033
|
-
if ((params == null ? void 0 : params.message) !== void 0) {
|
|
11034
|
-
if ((params == null ? void 0 : params.error) !== void 0)
|
|
11035
|
-
throw new Error("Cannot specify both `message` and `error` params");
|
|
11036
|
-
params.error = params.message;
|
|
11037
|
-
}
|
|
11038
|
-
delete params.message;
|
|
11039
|
-
if (typeof params.error === "string")
|
|
11040
|
-
return { ...params, error: () => params.error };
|
|
11041
|
-
return params;
|
|
10395
|
+
delete params.message;
|
|
10396
|
+
if (typeof params.error === "string")
|
|
10397
|
+
return { ...params, error: () => params.error };
|
|
10398
|
+
return params;
|
|
11042
10399
|
}
|
|
11043
10400
|
function optionalKeys(shape) {
|
|
11044
10401
|
return Object.keys(shape).filter((k2) => {
|
|
@@ -11419,7 +10776,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
11419
10776
|
};
|
|
11420
10777
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
11421
10778
|
const cuid2 = /^[0-9a-z]+$/;
|
|
11422
|
-
const ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
10779
|
+
const ulid$1 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
11423
10780
|
const xid = /^[0-9a-vA-V]{20}$/;
|
|
11424
10781
|
const ksuid = /^[A-Za-z0-9]{27}$/;
|
|
11425
10782
|
const nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
@@ -12136,7 +11493,7 @@ const $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
|
|
|
12136
11493
|
$ZodStringFormat.init(inst, def);
|
|
12137
11494
|
});
|
|
12138
11495
|
const $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
|
|
12139
|
-
def.pattern ?? (def.pattern = ulid);
|
|
11496
|
+
def.pattern ?? (def.pattern = ulid$1);
|
|
12140
11497
|
$ZodStringFormat.init(inst, def);
|
|
12141
11498
|
});
|
|
12142
11499
|
const $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
|
|
@@ -13320,6 +12677,51 @@ function handleReadonlyResult(payload) {
|
|
|
13320
12677
|
payload.value = Object.freeze(payload.value);
|
|
13321
12678
|
return payload;
|
|
13322
12679
|
}
|
|
12680
|
+
const $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => {
|
|
12681
|
+
$ZodType.init(inst, def);
|
|
12682
|
+
const regexParts = [];
|
|
12683
|
+
for (const part of def.parts) {
|
|
12684
|
+
if (typeof part === "object" && part !== null) {
|
|
12685
|
+
if (!part._zod.pattern) {
|
|
12686
|
+
throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
|
|
12687
|
+
}
|
|
12688
|
+
const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
|
|
12689
|
+
if (!source)
|
|
12690
|
+
throw new Error(`Invalid template literal part: ${part._zod.traits}`);
|
|
12691
|
+
const start = source.startsWith("^") ? 1 : 0;
|
|
12692
|
+
const end = source.endsWith("$") ? source.length - 1 : source.length;
|
|
12693
|
+
regexParts.push(source.slice(start, end));
|
|
12694
|
+
} else if (part === null || primitiveTypes.has(typeof part)) {
|
|
12695
|
+
regexParts.push(escapeRegex(`${part}`));
|
|
12696
|
+
} else {
|
|
12697
|
+
throw new Error(`Invalid template literal part: ${part}`);
|
|
12698
|
+
}
|
|
12699
|
+
}
|
|
12700
|
+
inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
|
|
12701
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
12702
|
+
if (typeof payload.value !== "string") {
|
|
12703
|
+
payload.issues.push({
|
|
12704
|
+
input: payload.value,
|
|
12705
|
+
inst,
|
|
12706
|
+
expected: "string",
|
|
12707
|
+
code: "invalid_type"
|
|
12708
|
+
});
|
|
12709
|
+
return payload;
|
|
12710
|
+
}
|
|
12711
|
+
inst._zod.pattern.lastIndex = 0;
|
|
12712
|
+
if (!inst._zod.pattern.test(payload.value)) {
|
|
12713
|
+
payload.issues.push({
|
|
12714
|
+
input: payload.value,
|
|
12715
|
+
inst,
|
|
12716
|
+
code: "invalid_format",
|
|
12717
|
+
format: def.format ?? "template_literal",
|
|
12718
|
+
pattern: inst._zod.pattern.source
|
|
12719
|
+
});
|
|
12720
|
+
return payload;
|
|
12721
|
+
}
|
|
12722
|
+
return payload;
|
|
12723
|
+
};
|
|
12724
|
+
});
|
|
13323
12725
|
const $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
13324
12726
|
$ZodType.init(inst, def);
|
|
13325
12727
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
@@ -14481,6 +13883,14 @@ const literalProcessor = (schema, ctx, json, _params) => {
|
|
|
14481
13883
|
json.enum = vals;
|
|
14482
13884
|
}
|
|
14483
13885
|
};
|
|
13886
|
+
const templateLiteralProcessor = (schema, _ctx, json, _params) => {
|
|
13887
|
+
const _json = json;
|
|
13888
|
+
const pattern = schema._zod.pattern;
|
|
13889
|
+
if (!pattern)
|
|
13890
|
+
throw new Error("Pattern not found in template literal");
|
|
13891
|
+
_json.type = "string";
|
|
13892
|
+
_json.pattern = pattern.source;
|
|
13893
|
+
};
|
|
14484
13894
|
const customProcessor = (_schema, ctx, _json, _params) => {
|
|
14485
13895
|
if (ctx.unrepresentable === "throw") {
|
|
14486
13896
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
@@ -14741,7 +14151,7 @@ const initializer = (inst, issues) => {
|
|
|
14741
14151
|
const ZodRealError = $constructor("ZodError", initializer, {
|
|
14742
14152
|
Parent: Error
|
|
14743
14153
|
});
|
|
14744
|
-
const parse$
|
|
14154
|
+
const parse$4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
14745
14155
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
14746
14156
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
14747
14157
|
const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
@@ -14782,7 +14192,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
14782
14192
|
reg.add(inst, meta);
|
|
14783
14193
|
return inst;
|
|
14784
14194
|
});
|
|
14785
|
-
inst.parse = (data, params) => parse$
|
|
14195
|
+
inst.parse = (data, params) => parse$4(inst, data, params, { callee: inst.parse });
|
|
14786
14196
|
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
14787
14197
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
14788
14198
|
inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
|
|
@@ -14935,6 +14345,9 @@ const ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
|
|
|
14935
14345
|
$ZodULID.init(inst, def);
|
|
14936
14346
|
ZodStringFormat.init(inst, def);
|
|
14937
14347
|
});
|
|
14348
|
+
function ulid(params) {
|
|
14349
|
+
return /* @__PURE__ */ _ulid(ZodULID, params);
|
|
14350
|
+
}
|
|
14938
14351
|
const ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
|
|
14939
14352
|
$ZodXID.init(inst, def);
|
|
14940
14353
|
ZodStringFormat.init(inst, def);
|
|
@@ -15394,6 +14807,18 @@ function readonly(innerType) {
|
|
|
15394
14807
|
innerType
|
|
15395
14808
|
});
|
|
15396
14809
|
}
|
|
14810
|
+
const ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => {
|
|
14811
|
+
$ZodTemplateLiteral.init(inst, def);
|
|
14812
|
+
ZodType.init(inst, def);
|
|
14813
|
+
inst._zod.processJSONSchema = (ctx, json, params) => templateLiteralProcessor(inst, ctx, json);
|
|
14814
|
+
});
|
|
14815
|
+
function templateLiteral(parts, params) {
|
|
14816
|
+
return new ZodTemplateLiteral({
|
|
14817
|
+
type: "template_literal",
|
|
14818
|
+
parts,
|
|
14819
|
+
...normalizeParams(params)
|
|
14820
|
+
});
|
|
14821
|
+
}
|
|
15397
14822
|
const ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
|
|
15398
14823
|
$ZodLazy.init(inst, def);
|
|
15399
14824
|
ZodType.init(inst, def);
|
|
@@ -15457,17 +14882,6 @@ const SerializedDataSchema = union([
|
|
|
15457
14882
|
BinarySerializedDataSchema,
|
|
15458
14883
|
LegacySerializedDataSchemaV1
|
|
15459
14884
|
]);
|
|
15460
|
-
const EVENT_DATA_REF_FIELDS = {
|
|
15461
|
-
run_created: ["input"],
|
|
15462
|
-
run_completed: ["output"],
|
|
15463
|
-
run_failed: ["error"],
|
|
15464
|
-
step_created: ["input"],
|
|
15465
|
-
step_completed: ["result"],
|
|
15466
|
-
step_failed: ["error"],
|
|
15467
|
-
step_retrying: ["error"],
|
|
15468
|
-
hook_created: ["metadata"],
|
|
15469
|
-
hook_received: ["payload"]
|
|
15470
|
-
};
|
|
15471
14885
|
const EventTypeSchema = _enum([
|
|
15472
14886
|
// Run lifecycle events
|
|
15473
14887
|
"run_created",
|
|
@@ -15493,12 +14907,84 @@ const EventTypeSchema = _enum([
|
|
|
15493
14907
|
"wait_created",
|
|
15494
14908
|
"wait_completed"
|
|
15495
14909
|
]);
|
|
14910
|
+
const RunEventTypeSchema = EventTypeSchema.extract([
|
|
14911
|
+
"run_created",
|
|
14912
|
+
"run_started",
|
|
14913
|
+
"run_completed",
|
|
14914
|
+
"run_failed",
|
|
14915
|
+
"run_cancelled"
|
|
14916
|
+
]);
|
|
14917
|
+
RunEventTypeSchema.options;
|
|
15496
14918
|
const TerminalRunEventTypeSchema = EventTypeSchema.extract([
|
|
15497
14919
|
"run_completed",
|
|
15498
14920
|
"run_failed",
|
|
15499
14921
|
"run_cancelled"
|
|
15500
14922
|
]);
|
|
15501
14923
|
TerminalRunEventTypeSchema.options;
|
|
14924
|
+
const StepEventTypeSchema = EventTypeSchema.extract([
|
|
14925
|
+
"step_created",
|
|
14926
|
+
"step_completed",
|
|
14927
|
+
"step_failed",
|
|
14928
|
+
"step_retrying",
|
|
14929
|
+
"step_started"
|
|
14930
|
+
]);
|
|
14931
|
+
const STEP_EVENT_TYPES = StepEventTypeSchema.options;
|
|
14932
|
+
function isStepEventType(eventType) {
|
|
14933
|
+
return STEP_EVENT_TYPES.includes(eventType);
|
|
14934
|
+
}
|
|
14935
|
+
const TerminalStepEventTypeSchema = EventTypeSchema.extract([
|
|
14936
|
+
"step_completed",
|
|
14937
|
+
"step_failed"
|
|
14938
|
+
]);
|
|
14939
|
+
const TERMINAL_STEP_EVENT_TYPES = TerminalStepEventTypeSchema.options;
|
|
14940
|
+
function isTerminalStepEventType(eventType) {
|
|
14941
|
+
return TERMINAL_STEP_EVENT_TYPES.includes(eventType);
|
|
14942
|
+
}
|
|
14943
|
+
const HookLifecycleEventTypeSchema = EventTypeSchema.extract([
|
|
14944
|
+
"hook_created",
|
|
14945
|
+
"hook_received",
|
|
14946
|
+
"hook_disposed"
|
|
14947
|
+
]);
|
|
14948
|
+
const HOOK_LIFECYCLE_EVENT_TYPES = HookLifecycleEventTypeSchema.options;
|
|
14949
|
+
function isHookLifecycleEventType(eventType) {
|
|
14950
|
+
return HOOK_LIFECYCLE_EVENT_TYPES.includes(eventType);
|
|
14951
|
+
}
|
|
14952
|
+
const HookEventRequiringExistenceTypeSchema = EventTypeSchema.extract([
|
|
14953
|
+
"hook_disposed",
|
|
14954
|
+
"hook_received"
|
|
14955
|
+
]);
|
|
14956
|
+
HookEventRequiringExistenceTypeSchema.options;
|
|
14957
|
+
const WaitEventTypeSchema = EventTypeSchema.extract([
|
|
14958
|
+
"wait_created",
|
|
14959
|
+
"wait_completed"
|
|
14960
|
+
]);
|
|
14961
|
+
const WAIT_EVENT_TYPES = WaitEventTypeSchema.options;
|
|
14962
|
+
function isWaitEventType(eventType) {
|
|
14963
|
+
return WAIT_EVENT_TYPES.includes(eventType);
|
|
14964
|
+
}
|
|
14965
|
+
const ChildEntityCreationEventTypeSchema = EventTypeSchema.extract([
|
|
14966
|
+
"step_created",
|
|
14967
|
+
"hook_created",
|
|
14968
|
+
"wait_created"
|
|
14969
|
+
]);
|
|
14970
|
+
ChildEntityCreationEventTypeSchema.options;
|
|
14971
|
+
const EVENT_DATA_PAYLOAD_FIELD_BY_EVENT_TYPE = {
|
|
14972
|
+
run_created: "input",
|
|
14973
|
+
run_started: "input",
|
|
14974
|
+
run_completed: "output",
|
|
14975
|
+
run_failed: "error",
|
|
14976
|
+
step_created: "input",
|
|
14977
|
+
step_started: "input",
|
|
14978
|
+
step_completed: "result",
|
|
14979
|
+
step_failed: "error",
|
|
14980
|
+
step_retrying: "error",
|
|
14981
|
+
hook_created: "metadata",
|
|
14982
|
+
hook_received: "payload"
|
|
14983
|
+
};
|
|
14984
|
+
const EVENT_DATA_REF_FIELDS = Object.fromEntries(Object.entries(EVENT_DATA_PAYLOAD_FIELD_BY_EVENT_TYPE).map(([eventType, field]) => [eventType, [field]]));
|
|
14985
|
+
function getEventDataRefFields(eventType) {
|
|
14986
|
+
return EVENT_DATA_REF_FIELDS[eventType] ?? [];
|
|
14987
|
+
}
|
|
15502
14988
|
const BaseEventSchema = object({
|
|
15503
14989
|
eventType: EventTypeSchema,
|
|
15504
14990
|
correlationId: string$2().optional(),
|
|
@@ -15515,6 +15001,10 @@ const stepLatencyTelemetryFields = {
|
|
|
15515
15001
|
// two steps ran back-to-back (the previous event-log entry is a
|
|
15516
15002
|
// step_completed/step_failed).
|
|
15517
15003
|
stso: number$3().optional(),
|
|
15004
|
+
// Progress counters taken when the STSO gap began. Only present alongside
|
|
15005
|
+
// stso.
|
|
15006
|
+
stepCount: number$3().int().positive().optional(),
|
|
15007
|
+
eventCount: number$3().int().positive().optional(),
|
|
15518
15008
|
// Names of the runtime's optional startup-latency optimizations that were
|
|
15519
15009
|
// active for this measurement (e.g. 'turbo', 'lazyStepStart',
|
|
15520
15010
|
// 'optimisticStart'), so latency metrics can be segmented by them.
|
|
@@ -15566,7 +15056,20 @@ const StepStartedEventSchema = BaseEventSchema.extend({
|
|
|
15566
15056
|
workflowName: string$2().optional(),
|
|
15567
15057
|
// Lazy-start: the dehydrated step input, present only when this
|
|
15568
15058
|
// step_started is also responsible for creating the step.
|
|
15569
|
-
input: SerializedDataSchema.optional()
|
|
15059
|
+
input: SerializedDataSchema.optional(),
|
|
15060
|
+
// Inline step ownership: the queue message ID of the invocation whose
|
|
15061
|
+
// handler is executing this step's body inline. Stamped on the lazy
|
|
15062
|
+
// step_started (and re-stamped on an owner-recovery bare start) so
|
|
15063
|
+
// that a wake replay can tell "this attempt is in flight in a live
|
|
15064
|
+
// invocation" apart from "this attempt died with its process" — the
|
|
15065
|
+
// owner's queue message doubles as the liveness lease (a crash means
|
|
15066
|
+
// the queue redelivers that same messageId, which is allowed to
|
|
15067
|
+
// re-execute). Ownership derives from the step's LATEST step_started:
|
|
15068
|
+
// an unstamped bare start (a retry attempt driven by a queued step
|
|
15069
|
+
// message) clears it. Absent on eager steps and from older runtimes.
|
|
15070
|
+
// Requires the queue's messageId to be stable across redeliveries of
|
|
15071
|
+
// one message (see the Queue.createQueueHandler meta contract).
|
|
15072
|
+
ownerMessageId: string$2().optional()
|
|
15570
15073
|
}).optional()
|
|
15571
15074
|
});
|
|
15572
15075
|
const StepCreatedEventSchema = BaseEventSchema.extend({
|
|
@@ -15761,7 +15264,10 @@ const TerminalWorkflowRunStatusSchema = WorkflowRunStatusSchema.extract([
|
|
|
15761
15264
|
"failed",
|
|
15762
15265
|
"cancelled"
|
|
15763
15266
|
]);
|
|
15764
|
-
TerminalWorkflowRunStatusSchema.options;
|
|
15267
|
+
const TERMINAL_WORKFLOW_RUN_STATUSES = TerminalWorkflowRunStatusSchema.options;
|
|
15268
|
+
function isTerminalWorkflowRunStatus(status) {
|
|
15269
|
+
return TERMINAL_WORKFLOW_RUN_STATUSES.includes(status);
|
|
15270
|
+
}
|
|
15765
15271
|
const WorkflowRunBaseSchema = object({
|
|
15766
15272
|
runId: string$2(),
|
|
15767
15273
|
status: WorkflowRunStatusSchema,
|
|
@@ -16109,18 +15615,623 @@ object({
|
|
|
16109
15615
|
// Populated with RunErrorCode values (USER_ERROR, RUNTIME_ERROR, etc.) for run_failed events
|
|
16110
15616
|
});
|
|
16111
15617
|
string$2().ulid();
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
15618
|
+
templateLiteral(["wrun_", ulid()]);
|
|
15619
|
+
const UNDEFINED = -1;
|
|
15620
|
+
const HOLE = -2;
|
|
15621
|
+
const NAN = -3;
|
|
15622
|
+
const POSITIVE_INFINITY = -4;
|
|
15623
|
+
const NEGATIVE_INFINITY = -5;
|
|
15624
|
+
const NEGATIVE_ZERO = -6;
|
|
15625
|
+
const SPARSE = -7;
|
|
15626
|
+
const MAX_ARRAY_LEN = 2 ** 32 - 1;
|
|
15627
|
+
const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
|
|
15628
|
+
function is_valid_array_index(n) {
|
|
15629
|
+
if (!Number.isInteger(n)) return false;
|
|
15630
|
+
if (n < 0) return false;
|
|
15631
|
+
if (n > MAX_ARRAY_INDEX) return false;
|
|
15632
|
+
return true;
|
|
15633
|
+
}
|
|
15634
|
+
function is_valid_array_len(n) {
|
|
15635
|
+
if (!Number.isInteger(n)) return false;
|
|
15636
|
+
if (n < 0) return false;
|
|
15637
|
+
if (n > MAX_ARRAY_LEN) return false;
|
|
15638
|
+
return true;
|
|
15639
|
+
}
|
|
15640
|
+
function decode_native(base642) {
|
|
15641
|
+
return Uint8Array.fromBase64(base642).buffer;
|
|
15642
|
+
}
|
|
15643
|
+
function decode_buffer(base642) {
|
|
15644
|
+
return Uint8Array.from(Buffer.from(base642, "base64")).buffer;
|
|
15645
|
+
}
|
|
15646
|
+
function decode_legacy(base642) {
|
|
15647
|
+
const binary_string = atob(base642);
|
|
15648
|
+
const len = binary_string.length;
|
|
15649
|
+
const array2 = new Uint8Array(len);
|
|
15650
|
+
for (let i = 0; i < len; i++) {
|
|
15651
|
+
array2[i] = binary_string.charCodeAt(i);
|
|
15652
|
+
}
|
|
15653
|
+
return array2.buffer;
|
|
15654
|
+
}
|
|
15655
|
+
const native = typeof Uint8Array.fromBase64 === "function";
|
|
15656
|
+
const buffer = typeof process === "object" && ((_a2 = process.versions) == null ? void 0 : _a2.node) !== void 0;
|
|
15657
|
+
const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
|
|
15658
|
+
function parse$3(serialized, revivers) {
|
|
15659
|
+
return unflatten(JSON.parse(serialized), revivers);
|
|
15660
|
+
}
|
|
15661
|
+
function unflatten(parsed, revivers) {
|
|
15662
|
+
if (typeof parsed === "number") return hydrate(parsed, true);
|
|
15663
|
+
if (!Array.isArray(parsed) || parsed.length === 0) {
|
|
15664
|
+
throw new Error("Invalid input");
|
|
15665
|
+
}
|
|
15666
|
+
const values = (
|
|
15667
|
+
/** @type {any[]} */
|
|
15668
|
+
parsed
|
|
15669
|
+
);
|
|
15670
|
+
const hydrated = Array(values.length);
|
|
15671
|
+
let hydrating = null;
|
|
15672
|
+
function hydrate(index2, standalone = false) {
|
|
15673
|
+
if (index2 === UNDEFINED) return void 0;
|
|
15674
|
+
if (index2 === NAN) return NaN;
|
|
15675
|
+
if (index2 === POSITIVE_INFINITY) return Infinity;
|
|
15676
|
+
if (index2 === NEGATIVE_INFINITY) return -Infinity;
|
|
15677
|
+
if (index2 === NEGATIVE_ZERO) return -0;
|
|
15678
|
+
if (standalone || typeof index2 !== "number") {
|
|
15679
|
+
throw new Error(`Invalid input`);
|
|
15680
|
+
}
|
|
15681
|
+
if (index2 in hydrated) return hydrated[index2];
|
|
15682
|
+
const value = values[index2];
|
|
15683
|
+
if (!value || typeof value !== "object") {
|
|
15684
|
+
hydrated[index2] = value;
|
|
15685
|
+
} else if (Array.isArray(value)) {
|
|
15686
|
+
if (typeof value[0] === "string") {
|
|
15687
|
+
const type = value[0];
|
|
15688
|
+
const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : void 0;
|
|
15689
|
+
if (reviver) {
|
|
15690
|
+
let i = value[1];
|
|
15691
|
+
if (typeof i !== "number") {
|
|
15692
|
+
i = values.push(value[1]) - 1;
|
|
15693
|
+
}
|
|
15694
|
+
hydrating ?? (hydrating = /* @__PURE__ */ new Set());
|
|
15695
|
+
if (hydrating.has(i)) {
|
|
15696
|
+
throw new Error("Invalid circular reference");
|
|
15697
|
+
}
|
|
15698
|
+
hydrating.add(i);
|
|
15699
|
+
hydrated[index2] = reviver(hydrate(i));
|
|
15700
|
+
hydrating.delete(i);
|
|
15701
|
+
return hydrated[index2];
|
|
15702
|
+
}
|
|
15703
|
+
switch (type) {
|
|
15704
|
+
case "Date":
|
|
15705
|
+
hydrated[index2] = new Date(value[1]);
|
|
15706
|
+
break;
|
|
15707
|
+
case "Set":
|
|
15708
|
+
const set = /* @__PURE__ */ new Set();
|
|
15709
|
+
hydrated[index2] = set;
|
|
15710
|
+
for (let i = 1; i < value.length; i += 1) {
|
|
15711
|
+
set.add(hydrate(value[i]));
|
|
15712
|
+
}
|
|
15713
|
+
break;
|
|
15714
|
+
case "Map":
|
|
15715
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
15716
|
+
hydrated[index2] = map2;
|
|
15717
|
+
for (let i = 1; i < value.length; i += 2) {
|
|
15718
|
+
map2.set(hydrate(value[i]), hydrate(value[i + 1]));
|
|
15719
|
+
}
|
|
15720
|
+
break;
|
|
15721
|
+
case "RegExp":
|
|
15722
|
+
hydrated[index2] = new RegExp(value[1], value[2]);
|
|
15723
|
+
break;
|
|
15724
|
+
case "Object": {
|
|
15725
|
+
const wrapped_index = value[1];
|
|
15726
|
+
if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
|
|
15727
|
+
throw new Error("Invalid input");
|
|
15728
|
+
}
|
|
15729
|
+
hydrated[index2] = Object(hydrate(wrapped_index));
|
|
15730
|
+
break;
|
|
15731
|
+
}
|
|
15732
|
+
case "BigInt":
|
|
15733
|
+
hydrated[index2] = BigInt(value[1]);
|
|
15734
|
+
break;
|
|
15735
|
+
case "null":
|
|
15736
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
15737
|
+
hydrated[index2] = obj;
|
|
15738
|
+
for (let i = 1; i < value.length; i += 2) {
|
|
15739
|
+
if (value[i] === "__proto__") {
|
|
15740
|
+
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
15741
|
+
}
|
|
15742
|
+
obj[value[i]] = hydrate(value[i + 1]);
|
|
15743
|
+
}
|
|
15744
|
+
break;
|
|
15745
|
+
case "Int8Array":
|
|
15746
|
+
case "Uint8Array":
|
|
15747
|
+
case "Uint8ClampedArray":
|
|
15748
|
+
case "Int16Array":
|
|
15749
|
+
case "Uint16Array":
|
|
15750
|
+
case "Float16Array":
|
|
15751
|
+
case "Int32Array":
|
|
15752
|
+
case "Uint32Array":
|
|
15753
|
+
case "Float32Array":
|
|
15754
|
+
case "Float64Array":
|
|
15755
|
+
case "BigInt64Array":
|
|
15756
|
+
case "BigUint64Array":
|
|
15757
|
+
case "DataView": {
|
|
15758
|
+
if (values[value[1]][0] !== "ArrayBuffer") {
|
|
15759
|
+
throw new Error("Invalid data");
|
|
15760
|
+
}
|
|
15761
|
+
const TypedArrayConstructor = globalThis[type];
|
|
15762
|
+
const buffer2 = hydrate(value[1]);
|
|
15763
|
+
hydrated[index2] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
|
|
15764
|
+
break;
|
|
15765
|
+
}
|
|
15766
|
+
case "ArrayBuffer": {
|
|
15767
|
+
const base642 = value[1];
|
|
15768
|
+
if (typeof base642 !== "string") {
|
|
15769
|
+
throw new Error("Invalid ArrayBuffer encoding");
|
|
15770
|
+
}
|
|
15771
|
+
const arraybuffer = decode64(base642);
|
|
15772
|
+
hydrated[index2] = arraybuffer;
|
|
15773
|
+
break;
|
|
15774
|
+
}
|
|
15775
|
+
case "Temporal.Duration":
|
|
15776
|
+
case "Temporal.Instant":
|
|
15777
|
+
case "Temporal.PlainDate":
|
|
15778
|
+
case "Temporal.PlainTime":
|
|
15779
|
+
case "Temporal.PlainDateTime":
|
|
15780
|
+
case "Temporal.PlainMonthDay":
|
|
15781
|
+
case "Temporal.PlainYearMonth":
|
|
15782
|
+
case "Temporal.ZonedDateTime": {
|
|
15783
|
+
const temporalName = type.slice(9);
|
|
15784
|
+
hydrated[index2] = Temporal[temporalName].from(value[1]);
|
|
15785
|
+
break;
|
|
15786
|
+
}
|
|
15787
|
+
case "URL": {
|
|
15788
|
+
const url = new URL(value[1]);
|
|
15789
|
+
hydrated[index2] = url;
|
|
15790
|
+
break;
|
|
15791
|
+
}
|
|
15792
|
+
case "URLSearchParams": {
|
|
15793
|
+
const url = new URLSearchParams(value[1]);
|
|
15794
|
+
hydrated[index2] = url;
|
|
15795
|
+
break;
|
|
15796
|
+
}
|
|
15797
|
+
default:
|
|
15798
|
+
throw new Error(`Unknown type ${type}`);
|
|
15799
|
+
}
|
|
15800
|
+
} else if (value[0] === SPARSE) {
|
|
15801
|
+
const len = value[1];
|
|
15802
|
+
if (!is_valid_array_len(len)) {
|
|
15803
|
+
throw new Error("Invalid input");
|
|
15804
|
+
}
|
|
15805
|
+
const array2 = [];
|
|
15806
|
+
hydrated[index2] = array2;
|
|
15807
|
+
array2[MAX_ARRAY_INDEX] = void 0;
|
|
15808
|
+
delete array2[MAX_ARRAY_INDEX];
|
|
15809
|
+
for (let i = 2; i < value.length; i += 2) {
|
|
15810
|
+
const idx = value[i];
|
|
15811
|
+
if (!is_valid_array_index(idx) || idx >= len) {
|
|
15812
|
+
throw new Error("Invalid input");
|
|
15813
|
+
}
|
|
15814
|
+
array2[idx] = hydrate(value[i + 1]);
|
|
15815
|
+
}
|
|
15816
|
+
array2.length = len;
|
|
15817
|
+
} else {
|
|
15818
|
+
const array2 = new Array(value.length);
|
|
15819
|
+
hydrated[index2] = array2;
|
|
15820
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
15821
|
+
const n = value[i];
|
|
15822
|
+
if (n === HOLE) continue;
|
|
15823
|
+
array2[i] = hydrate(n);
|
|
15824
|
+
}
|
|
15825
|
+
}
|
|
15826
|
+
} else {
|
|
15827
|
+
const object2 = {};
|
|
15828
|
+
hydrated[index2] = object2;
|
|
15829
|
+
for (const key of Object.keys(value)) {
|
|
15830
|
+
if (key === "__proto__") {
|
|
15831
|
+
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
15832
|
+
}
|
|
15833
|
+
const n = value[key];
|
|
15834
|
+
object2[key] = hydrate(n);
|
|
15835
|
+
}
|
|
15836
|
+
}
|
|
15837
|
+
return hydrated[index2];
|
|
15838
|
+
}
|
|
15839
|
+
return hydrate(0);
|
|
15840
|
+
}
|
|
15841
|
+
const SerializationFormat = {
|
|
15842
|
+
/** devalue stringify/parse with TextEncoder/TextDecoder */
|
|
15843
|
+
DEVALUE_V1: "devl",
|
|
15844
|
+
/** Encrypted payload (inner payload has its own format prefix after decryption) */
|
|
15845
|
+
ENCRYPTED: "encr",
|
|
15846
|
+
/** Gzip-compressed payload (inner payload has its own format prefix after decompression) */
|
|
15847
|
+
GZIP: "gzip",
|
|
15848
|
+
/** Zstandard-compressed payload (inner payload has its own format prefix after decompression) */
|
|
15849
|
+
ZSTD: "zstd"
|
|
16115
15850
|
};
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
15851
|
+
const FORMAT_PREFIX_LENGTH = 4;
|
|
15852
|
+
new TextEncoder();
|
|
15853
|
+
const formatDecoder = new TextDecoder();
|
|
15854
|
+
function decodeFormatPrefix(data) {
|
|
15855
|
+
if (!(data instanceof Uint8Array)) {
|
|
15856
|
+
return {
|
|
15857
|
+
format: SerializationFormat.DEVALUE_V1,
|
|
15858
|
+
payload: new TextEncoder().encode(JSON.stringify(data))
|
|
15859
|
+
};
|
|
15860
|
+
}
|
|
15861
|
+
if (data.length < FORMAT_PREFIX_LENGTH) {
|
|
15862
|
+
throw new Error(`Data too short to contain format prefix: expected at least ${FORMAT_PREFIX_LENGTH} bytes, got ${data.length}`);
|
|
15863
|
+
}
|
|
15864
|
+
const prefixBytes = data.subarray(0, FORMAT_PREFIX_LENGTH);
|
|
15865
|
+
const format = formatDecoder.decode(prefixBytes);
|
|
15866
|
+
const knownFormats = Object.values(SerializationFormat);
|
|
15867
|
+
if (!knownFormats.includes(format)) {
|
|
15868
|
+
throw new Error(`Unknown serialization format: "${format}". Known formats: ${knownFormats.join(", ")}`);
|
|
15869
|
+
}
|
|
15870
|
+
const payload = data.subarray(FORMAT_PREFIX_LENGTH);
|
|
15871
|
+
return { format, payload };
|
|
15872
|
+
}
|
|
15873
|
+
function isExpiredObject(data) {
|
|
15874
|
+
if (data === null || typeof data !== "object" || Array.isArray(data)) {
|
|
15875
|
+
return false;
|
|
15876
|
+
}
|
|
15877
|
+
const keys2 = Object.keys(data);
|
|
15878
|
+
return keys2.length === 1 && keys2[0] === "expiredAt" && typeof data.expiredAt === "string";
|
|
15879
|
+
}
|
|
15880
|
+
function isExpiredStub(data) {
|
|
15881
|
+
if (isExpiredObject(data))
|
|
15882
|
+
return true;
|
|
15883
|
+
if (Array.isArray(data) && data.length === 1 && isExpiredObject(data[0])) {
|
|
15884
|
+
return true;
|
|
15885
|
+
}
|
|
15886
|
+
return false;
|
|
15887
|
+
}
|
|
15888
|
+
function isEncryptedData(data) {
|
|
15889
|
+
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) {
|
|
15890
|
+
return false;
|
|
15891
|
+
}
|
|
15892
|
+
const prefix = formatDecoder.decode(data.subarray(0, FORMAT_PREFIX_LENGTH));
|
|
15893
|
+
return prefix === SerializationFormat.ENCRYPTED;
|
|
16123
15894
|
}
|
|
15895
|
+
function isCompressedData(data) {
|
|
15896
|
+
if (!(data instanceof Uint8Array) || data.length < FORMAT_PREFIX_LENGTH) {
|
|
15897
|
+
return false;
|
|
15898
|
+
}
|
|
15899
|
+
const prefix = formatDecoder.decode(data.subarray(0, FORMAT_PREFIX_LENGTH));
|
|
15900
|
+
return prefix === SerializationFormat.GZIP || prefix === SerializationFormat.ZSTD;
|
|
15901
|
+
}
|
|
15902
|
+
function getNodeZlib() {
|
|
15903
|
+
var _a3, _b2;
|
|
15904
|
+
try {
|
|
15905
|
+
return (_b2 = (_a3 = globalThis.process) == null ? void 0 : _a3.getBuiltinModule) == null ? void 0 : _b2.call(_a3, "node:zlib");
|
|
15906
|
+
} catch {
|
|
15907
|
+
return void 0;
|
|
15908
|
+
}
|
|
15909
|
+
}
|
|
15910
|
+
function decompressSyncIfAvailable(format, payload) {
|
|
15911
|
+
try {
|
|
15912
|
+
const zlib = getNodeZlib();
|
|
15913
|
+
if (format === SerializationFormat.GZIP && (zlib == null ? void 0 : zlib.gunzipSync)) {
|
|
15914
|
+
return new Uint8Array(zlib.gunzipSync(payload));
|
|
15915
|
+
}
|
|
15916
|
+
if (format === SerializationFormat.ZSTD && (zlib == null ? void 0 : zlib.zstdDecompressSync)) {
|
|
15917
|
+
return new Uint8Array(zlib.zstdDecompressSync(payload));
|
|
15918
|
+
}
|
|
15919
|
+
} catch {
|
|
15920
|
+
}
|
|
15921
|
+
return void 0;
|
|
15922
|
+
}
|
|
15923
|
+
let zstdBrowserDecoder;
|
|
15924
|
+
function registerZstdDecoder(decoder2) {
|
|
15925
|
+
zstdBrowserDecoder = decoder2;
|
|
15926
|
+
}
|
|
15927
|
+
async function decompressAsync(format, payload) {
|
|
15928
|
+
if (format === SerializationFormat.ZSTD) {
|
|
15929
|
+
const sync = decompressSyncIfAvailable(format, payload);
|
|
15930
|
+
if (sync)
|
|
15931
|
+
return sync;
|
|
15932
|
+
if (zstdBrowserDecoder)
|
|
15933
|
+
return zstdBrowserDecoder(payload);
|
|
15934
|
+
throw new Error("zstd-compressed workflow data encountered but no zstd decoder is available. Node.js 22.15+ decodes natively; in the browser register one via registerZstdDecoder (the web o11y package does this).");
|
|
15935
|
+
}
|
|
15936
|
+
const transform2 = new DecompressionStream("gzip");
|
|
15937
|
+
const writer = transform2.writable.getWriter();
|
|
15938
|
+
const writePromise = writer.write(payload).then(() => writer.close());
|
|
15939
|
+
writePromise.catch(() => {
|
|
15940
|
+
});
|
|
15941
|
+
const chunks = [];
|
|
15942
|
+
let total = 0;
|
|
15943
|
+
const reader = transform2.readable.getReader();
|
|
15944
|
+
for (; ; ) {
|
|
15945
|
+
const { done, value } = await reader.read();
|
|
15946
|
+
if (done)
|
|
15947
|
+
break;
|
|
15948
|
+
chunks.push(value);
|
|
15949
|
+
total += value.length;
|
|
15950
|
+
}
|
|
15951
|
+
await writePromise;
|
|
15952
|
+
const out = new Uint8Array(total);
|
|
15953
|
+
let offset2 = 0;
|
|
15954
|
+
for (const chunk of chunks) {
|
|
15955
|
+
out.set(chunk, offset2);
|
|
15956
|
+
offset2 += chunk.length;
|
|
15957
|
+
}
|
|
15958
|
+
return out;
|
|
15959
|
+
}
|
|
15960
|
+
function hydrateData(value, revivers) {
|
|
15961
|
+
if (value instanceof Uint8Array) {
|
|
15962
|
+
if (isEncryptedData(value)) {
|
|
15963
|
+
return value;
|
|
15964
|
+
}
|
|
15965
|
+
const { format, payload } = decodeFormatPrefix(value);
|
|
15966
|
+
if (format === SerializationFormat.DEVALUE_V1) {
|
|
15967
|
+
const str = new TextDecoder().decode(payload);
|
|
15968
|
+
return parse$3(str, revivers);
|
|
15969
|
+
}
|
|
15970
|
+
if (format === SerializationFormat.GZIP || format === SerializationFormat.ZSTD) {
|
|
15971
|
+
const inflated = decompressSyncIfAvailable(format, payload);
|
|
15972
|
+
if (inflated === void 0) {
|
|
15973
|
+
return value;
|
|
15974
|
+
}
|
|
15975
|
+
return hydrateData(inflated, revivers);
|
|
15976
|
+
}
|
|
15977
|
+
throw new Error(`Unsupported serialization format: ${format}`);
|
|
15978
|
+
}
|
|
15979
|
+
if (Array.isArray(value)) {
|
|
15980
|
+
return unflatten(value, revivers);
|
|
15981
|
+
}
|
|
15982
|
+
return value;
|
|
15983
|
+
}
|
|
15984
|
+
async function hydrateDataWithKey(value, revivers, key) {
|
|
15985
|
+
let data = value;
|
|
15986
|
+
if (data instanceof Uint8Array && isEncryptedData(data) && key) {
|
|
15987
|
+
const { decrypt } = await __vitePreload(async () => {
|
|
15988
|
+
const { decrypt: decrypt2 } = await import("./encryption-CLVP4klT.js");
|
|
15989
|
+
return { decrypt: decrypt2 };
|
|
15990
|
+
}, true ? __vite__mapDeps([0,1,2]) : void 0);
|
|
15991
|
+
const { payload } = decodeFormatPrefix(data);
|
|
15992
|
+
data = await decrypt(key, payload);
|
|
15993
|
+
}
|
|
15994
|
+
if (data instanceof Uint8Array && isCompressedData(data)) {
|
|
15995
|
+
const { format, payload } = decodeFormatPrefix(data);
|
|
15996
|
+
data = await decompressAsync(format, payload);
|
|
15997
|
+
}
|
|
15998
|
+
return hydrateData(data, revivers);
|
|
15999
|
+
}
|
|
16000
|
+
const STREAM_ID_PREFIX = "strm_";
|
|
16001
|
+
const STREAM_REF_TYPE$1 = "__workflow_stream_ref__";
|
|
16002
|
+
const RUN_REF_TYPE$1 = "__workflow_run_ref__";
|
|
16003
|
+
const isRunRef$1 = (value) => {
|
|
16004
|
+
return value !== null && typeof value === "object" && "__type" in value && value.__type === RUN_REF_TYPE$1 && "runId" in value && typeof value.runId === "string";
|
|
16005
|
+
};
|
|
16006
|
+
const serializedRunToRunRef = (value) => {
|
|
16007
|
+
return { __type: RUN_REF_TYPE$1, runId: value.runId };
|
|
16008
|
+
};
|
|
16009
|
+
const CLASS_INSTANCE_REF_TYPE$1 = "__workflow_class_instance_ref__";
|
|
16010
|
+
class ClassInstanceRef {
|
|
16011
|
+
constructor(className, classId, data) {
|
|
16012
|
+
__publicField(this, "className");
|
|
16013
|
+
__publicField(this, "classId");
|
|
16014
|
+
__publicField(this, "data");
|
|
16015
|
+
__publicField(this, "__type", CLASS_INSTANCE_REF_TYPE$1);
|
|
16016
|
+
this.className = className;
|
|
16017
|
+
this.classId = classId;
|
|
16018
|
+
this.data = data;
|
|
16019
|
+
}
|
|
16020
|
+
toJSON() {
|
|
16021
|
+
return {
|
|
16022
|
+
__type: this.__type,
|
|
16023
|
+
className: this.className,
|
|
16024
|
+
classId: this.classId,
|
|
16025
|
+
data: this.data
|
|
16026
|
+
};
|
|
16027
|
+
}
|
|
16028
|
+
}
|
|
16029
|
+
const streamToStreamRef = (value) => {
|
|
16030
|
+
let streamId;
|
|
16031
|
+
if ("name" in value) {
|
|
16032
|
+
const name2 = String(value.name);
|
|
16033
|
+
if (!name2.startsWith(STREAM_ID_PREFIX)) {
|
|
16034
|
+
streamId = `${STREAM_ID_PREFIX}${name2}`;
|
|
16035
|
+
} else {
|
|
16036
|
+
streamId = name2;
|
|
16037
|
+
}
|
|
16038
|
+
} else {
|
|
16039
|
+
streamId = `${STREAM_ID_PREFIX}null`;
|
|
16040
|
+
}
|
|
16041
|
+
return { __type: STREAM_REF_TYPE$1, streamId };
|
|
16042
|
+
};
|
|
16043
|
+
const serializedStepFunctionToString = (value) => {
|
|
16044
|
+
if (!value)
|
|
16045
|
+
return "null";
|
|
16046
|
+
if (typeof value !== "object")
|
|
16047
|
+
return "null";
|
|
16048
|
+
if ("stepId" in value) {
|
|
16049
|
+
return `<step:${value.stepId}>`;
|
|
16050
|
+
}
|
|
16051
|
+
return "<function>";
|
|
16052
|
+
};
|
|
16053
|
+
const extractClassName = (classId) => {
|
|
16054
|
+
if (!classId)
|
|
16055
|
+
return "Unknown";
|
|
16056
|
+
const parts = classId.split("/");
|
|
16057
|
+
return parts[parts.length - 1] || classId;
|
|
16058
|
+
};
|
|
16059
|
+
const serializedInstanceToRef = (value) => {
|
|
16060
|
+
const className = extractClassName(value.classId);
|
|
16061
|
+
if (className === "Run" && value.data !== null && typeof value.data === "object" && "runId" in value.data && typeof value.data.runId === "string") {
|
|
16062
|
+
return serializedRunToRunRef(value.data);
|
|
16063
|
+
}
|
|
16064
|
+
return new ClassInstanceRef(className, value.classId, value.data);
|
|
16065
|
+
};
|
|
16066
|
+
const serializedClassToString = (value) => {
|
|
16067
|
+
return `<class:${extractClassName(value.classId)}>`;
|
|
16068
|
+
};
|
|
16069
|
+
const observabilityRevivers = {
|
|
16070
|
+
ReadableStream: streamToStreamRef,
|
|
16071
|
+
WritableStream: streamToStreamRef,
|
|
16072
|
+
TransformStream: streamToStreamRef,
|
|
16073
|
+
AbortController: (value) => `<AbortController(aborted: ${value.aborted})>`,
|
|
16074
|
+
AbortSignal: (value) => `<AbortSignal(aborted: ${value.aborted})>`,
|
|
16075
|
+
// DOMException needs an explicit reviver: without one, devalue.parse
|
|
16076
|
+
// throws on the `["DOMException", ...]` tag and `hydrateStepIO`'s
|
|
16077
|
+
// try/catch leaves the raw flat-encoded string in the UI. AbortController
|
|
16078
|
+
// synthesizes a DOMException as the default `signal.reason` when abort()
|
|
16079
|
+
// is called with no arg — so any abort that round-trips through a step
|
|
16080
|
+
// boundary surfaces here. Reconstruct as a real DOMException when the
|
|
16081
|
+
// global is available (modern browsers + Node 18+), else fall back to
|
|
16082
|
+
// an Error preserving name/message/stack/cause for display.
|
|
16083
|
+
DOMException: (value) => {
|
|
16084
|
+
const G2 = globalThis;
|
|
16085
|
+
if (typeof G2.DOMException === "function") {
|
|
16086
|
+
const e2 = new G2.DOMException(value.message, value.name);
|
|
16087
|
+
if (value.stack !== void 0)
|
|
16088
|
+
e2.stack = value.stack;
|
|
16089
|
+
if ("cause" in value)
|
|
16090
|
+
e2.cause = value.cause;
|
|
16091
|
+
return e2;
|
|
16092
|
+
}
|
|
16093
|
+
const e = new Error(value.message);
|
|
16094
|
+
e.name = value.name;
|
|
16095
|
+
if (value.stack !== void 0)
|
|
16096
|
+
e.stack = value.stack;
|
|
16097
|
+
if ("cause" in value)
|
|
16098
|
+
e.cause = value.cause;
|
|
16099
|
+
return e;
|
|
16100
|
+
},
|
|
16101
|
+
StepFunction: serializedStepFunctionToString,
|
|
16102
|
+
WorkflowFunction: (value) => `<workflow:${value.workflowId}>`,
|
|
16103
|
+
Instance: serializedInstanceToRef,
|
|
16104
|
+
Class: serializedClassToString
|
|
16105
|
+
};
|
|
16106
|
+
function hydrateStepIO(resource, revivers) {
|
|
16107
|
+
let hydratedInput = resource.input;
|
|
16108
|
+
let hydratedOutput = resource.output;
|
|
16109
|
+
let hydratedError = resource.error;
|
|
16110
|
+
if (resource.input != null) {
|
|
16111
|
+
try {
|
|
16112
|
+
hydratedInput = hydrateData(resource.input, revivers);
|
|
16113
|
+
} catch {
|
|
16114
|
+
}
|
|
16115
|
+
}
|
|
16116
|
+
if (resource.output != null) {
|
|
16117
|
+
try {
|
|
16118
|
+
hydratedOutput = hydrateData(resource.output, revivers);
|
|
16119
|
+
} catch {
|
|
16120
|
+
}
|
|
16121
|
+
}
|
|
16122
|
+
if (resource.error != null) {
|
|
16123
|
+
try {
|
|
16124
|
+
hydratedError = hydrateData(resource.error, revivers);
|
|
16125
|
+
} catch {
|
|
16126
|
+
}
|
|
16127
|
+
}
|
|
16128
|
+
return {
|
|
16129
|
+
...resource,
|
|
16130
|
+
input: hydratedInput,
|
|
16131
|
+
output: hydratedOutput,
|
|
16132
|
+
error: hydratedError
|
|
16133
|
+
};
|
|
16134
|
+
}
|
|
16135
|
+
function hydrateWorkflowIO(resource, revivers) {
|
|
16136
|
+
let hydratedInput = resource.input;
|
|
16137
|
+
let hydratedOutput = resource.output;
|
|
16138
|
+
let hydratedError = resource.error;
|
|
16139
|
+
if (resource.input != null) {
|
|
16140
|
+
try {
|
|
16141
|
+
hydratedInput = hydrateData(resource.input, revivers);
|
|
16142
|
+
} catch {
|
|
16143
|
+
}
|
|
16144
|
+
}
|
|
16145
|
+
if (resource.output != null) {
|
|
16146
|
+
try {
|
|
16147
|
+
hydratedOutput = hydrateData(resource.output, revivers);
|
|
16148
|
+
} catch {
|
|
16149
|
+
}
|
|
16150
|
+
}
|
|
16151
|
+
if (resource.error != null) {
|
|
16152
|
+
try {
|
|
16153
|
+
hydratedError = hydrateData(resource.error, revivers);
|
|
16154
|
+
} catch {
|
|
16155
|
+
}
|
|
16156
|
+
}
|
|
16157
|
+
return {
|
|
16158
|
+
...resource,
|
|
16159
|
+
input: hydratedInput,
|
|
16160
|
+
output: hydratedOutput,
|
|
16161
|
+
error: hydratedError
|
|
16162
|
+
};
|
|
16163
|
+
}
|
|
16164
|
+
function hydrateEventData(resource, revivers) {
|
|
16165
|
+
if (!resource.eventData)
|
|
16166
|
+
return resource;
|
|
16167
|
+
const eventData = { ...resource.eventData };
|
|
16168
|
+
for (const field of getEventDataRefFields(resource.eventType ?? "")) {
|
|
16169
|
+
if (eventData[field] == null)
|
|
16170
|
+
continue;
|
|
16171
|
+
try {
|
|
16172
|
+
eventData[field] = hydrateData(eventData[field], revivers);
|
|
16173
|
+
} catch {
|
|
16174
|
+
}
|
|
16175
|
+
}
|
|
16176
|
+
return { ...resource, eventData };
|
|
16177
|
+
}
|
|
16178
|
+
function hydrateHookMetadata(resource, revivers) {
|
|
16179
|
+
if (resource.metadata == null)
|
|
16180
|
+
return resource;
|
|
16181
|
+
let hydratedMetadata = resource.metadata;
|
|
16182
|
+
try {
|
|
16183
|
+
hydratedMetadata = hydrateData(resource.metadata, revivers);
|
|
16184
|
+
} catch {
|
|
16185
|
+
}
|
|
16186
|
+
return { ...resource, metadata: hydratedMetadata };
|
|
16187
|
+
}
|
|
16188
|
+
function hydrateResourceIO$1(resource, revivers) {
|
|
16189
|
+
if (!resource)
|
|
16190
|
+
return resource;
|
|
16191
|
+
let hydrated;
|
|
16192
|
+
if ("stepId" in resource) {
|
|
16193
|
+
hydrated = hydrateStepIO(resource, revivers);
|
|
16194
|
+
} else if ("hookId" in resource) {
|
|
16195
|
+
hydrated = hydrateHookMetadata(resource, revivers);
|
|
16196
|
+
} else if ("eventId" in resource) {
|
|
16197
|
+
hydrated = hydrateEventData(resource, revivers);
|
|
16198
|
+
} else {
|
|
16199
|
+
hydrated = hydrateWorkflowIO(resource, revivers);
|
|
16200
|
+
}
|
|
16201
|
+
if ("executionContext" in hydrated) {
|
|
16202
|
+
const { executionContext, ...rest } = hydrated;
|
|
16203
|
+
const workflowCoreVersion = executionContext && typeof executionContext === "object" && "workflowCoreVersion" in executionContext ? executionContext.workflowCoreVersion : void 0;
|
|
16204
|
+
if (workflowCoreVersion) {
|
|
16205
|
+
return { ...rest, workflowCoreVersion };
|
|
16206
|
+
}
|
|
16207
|
+
return rest;
|
|
16208
|
+
}
|
|
16209
|
+
return hydrated;
|
|
16210
|
+
}
|
|
16211
|
+
const serializationFormat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16212
|
+
__proto__: null,
|
|
16213
|
+
CLASS_INSTANCE_REF_TYPE: CLASS_INSTANCE_REF_TYPE$1,
|
|
16214
|
+
ClassInstanceRef,
|
|
16215
|
+
RUN_REF_TYPE: RUN_REF_TYPE$1,
|
|
16216
|
+
STREAM_REF_TYPE: STREAM_REF_TYPE$1,
|
|
16217
|
+
SerializationFormat,
|
|
16218
|
+
decodeFormatPrefix,
|
|
16219
|
+
extractClassName,
|
|
16220
|
+
hydrateData,
|
|
16221
|
+
hydrateDataWithKey,
|
|
16222
|
+
hydrateResourceIO: hydrateResourceIO$1,
|
|
16223
|
+
isCompressedData,
|
|
16224
|
+
isEncryptedData,
|
|
16225
|
+
isExpiredStub,
|
|
16226
|
+
isRunRef: isRunRef$1,
|
|
16227
|
+
observabilityRevivers,
|
|
16228
|
+
registerZstdDecoder,
|
|
16229
|
+
serializedClassToString,
|
|
16230
|
+
serializedInstanceToRef,
|
|
16231
|
+
serializedRunToRunRef,
|
|
16232
|
+
serializedStepFunctionToString,
|
|
16233
|
+
streamToStreamRef
|
|
16234
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
16124
16235
|
function base64ToArrayBuffer(base642) {
|
|
16125
16236
|
if (base642 === "" || base642 === ".") {
|
|
16126
16237
|
return new ArrayBuffer(0);
|
|
@@ -16399,7 +16510,7 @@ async function hydrateResourceIOAsync(resource, key) {
|
|
|
16399
16510
|
return { hydrateDataWithKey: hydrateDataWithKey3 };
|
|
16400
16511
|
}, true ? void 0 : void 0);
|
|
16401
16512
|
const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
|
|
16402
|
-
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-
|
|
16513
|
+
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-VtbaLP8T.js");
|
|
16403
16514
|
return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
|
|
16404
16515
|
}, true ? __vite__mapDeps([3,2]) : void 0);
|
|
16405
16516
|
ensureZstdDecoderRegistered();
|
|
@@ -43961,7 +44072,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
43961
44072
|
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 });
|
|
43962
44073
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
43963
44074
|
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 }) });
|
|
43964
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-
|
|
44075
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-TNY6Phfb.js"), true ? __vite__mapDeps([4,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
43965
44076
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
43966
44077
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
43967
44078
|
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 }) })] }) });
|
|
@@ -49579,7 +49690,7 @@ export {
|
|
|
49579
49690
|
Button$1 as Z,
|
|
49580
49691
|
__vitePreload as _,
|
|
49581
49692
|
TooltipTrigger as a,
|
|
49582
|
-
|
|
49693
|
+
fetchEvent as a$,
|
|
49583
49694
|
Lock as a0,
|
|
49584
49695
|
CollapsibleRoot as a1,
|
|
49585
49696
|
CollapsibleTrigger as a2,
|
|
@@ -49590,78 +49701,83 @@ export {
|
|
|
49590
49701
|
Yr as a7,
|
|
49591
49702
|
isEncryptedMarker$1 as a8,
|
|
49592
49703
|
TimestampTooltip as a9,
|
|
49593
|
-
|
|
49594
|
-
|
|
49595
|
-
|
|
49596
|
-
|
|
49597
|
-
|
|
49598
|
-
|
|
49599
|
-
|
|
49600
|
-
|
|
49601
|
-
|
|
49602
|
-
|
|
49603
|
-
|
|
49604
|
-
|
|
49605
|
-
|
|
49606
|
-
|
|
49607
|
-
|
|
49608
|
-
|
|
49609
|
-
|
|
49610
|
-
|
|
49611
|
-
|
|
49612
|
-
|
|
49613
|
-
|
|
49614
|
-
|
|
49615
|
-
|
|
49616
|
-
|
|
49617
|
-
|
|
49618
|
-
|
|
49619
|
-
|
|
49704
|
+
getSpanDurationMs as aA,
|
|
49705
|
+
isSpanErrored as aB,
|
|
49706
|
+
formatDurationPrecise as aC,
|
|
49707
|
+
TooltipProvider as aD,
|
|
49708
|
+
ActiveSpanProvider as aE,
|
|
49709
|
+
useReducedMotion as aF,
|
|
49710
|
+
searchSpans as aG,
|
|
49711
|
+
computeRootBounds as aH,
|
|
49712
|
+
computeTimeMarkers as aI,
|
|
49713
|
+
clampViewportToRoot as aJ,
|
|
49714
|
+
getHighResInMs as aK,
|
|
49715
|
+
scrollRowIntoView as aL,
|
|
49716
|
+
TIMELINE_PADDING_PX as aM,
|
|
49717
|
+
Minimap as aN,
|
|
49718
|
+
Timeline as aO,
|
|
49719
|
+
TimelineHeader as aP,
|
|
49720
|
+
wheelZoomScaleFactor as aQ,
|
|
49721
|
+
wheelDeltaToPixels as aR,
|
|
49722
|
+
SidebarDataProvider as aS,
|
|
49723
|
+
fetchHook as aT,
|
|
49724
|
+
hydrateResourceIOAsync as aU,
|
|
49725
|
+
fetchStep as aV,
|
|
49726
|
+
hydrateResourceIO as aW,
|
|
49727
|
+
fetchStreams as aX,
|
|
49728
|
+
Slot as aY,
|
|
49729
|
+
Slottable as aZ,
|
|
49730
|
+
buttonVariants as a_,
|
|
49620
49731
|
formatDuration as aa,
|
|
49621
|
-
|
|
49622
|
-
|
|
49623
|
-
|
|
49624
|
-
|
|
49625
|
-
|
|
49626
|
-
|
|
49627
|
-
|
|
49628
|
-
|
|
49629
|
-
|
|
49630
|
-
|
|
49631
|
-
|
|
49632
|
-
|
|
49633
|
-
|
|
49634
|
-
|
|
49635
|
-
|
|
49636
|
-
|
|
49637
|
-
|
|
49638
|
-
|
|
49639
|
-
|
|
49640
|
-
|
|
49641
|
-
|
|
49642
|
-
|
|
49643
|
-
|
|
49644
|
-
|
|
49645
|
-
|
|
49732
|
+
isHookLifecycleEventType as ab,
|
|
49733
|
+
isTerminalStepEventType as ac,
|
|
49734
|
+
isWaitEventType as ad,
|
|
49735
|
+
isStepEventType as ae,
|
|
49736
|
+
_r as af,
|
|
49737
|
+
RunClickContext as ag,
|
|
49738
|
+
StreamClickContext as ah,
|
|
49739
|
+
Collapsible as ai,
|
|
49740
|
+
isExpiredMarker as aj,
|
|
49741
|
+
isDoStreamStep as ak,
|
|
49742
|
+
extractConversation as al,
|
|
49743
|
+
getEventDataRefFields as am,
|
|
49744
|
+
hasEncryptedFields as an,
|
|
49745
|
+
useSidebarDataOptional as ao,
|
|
49746
|
+
isTerminalWorkflowRunStatus as ap,
|
|
49747
|
+
clsx as aq,
|
|
49748
|
+
useActiveSpan as ar,
|
|
49749
|
+
useSidebarData as as,
|
|
49750
|
+
Tooltip$1 as at,
|
|
49751
|
+
TooltipTrigger$1 as au,
|
|
49752
|
+
IconButton as av,
|
|
49753
|
+
TooltipContent$1 as aw,
|
|
49754
|
+
useRowWindow as ax,
|
|
49755
|
+
isSpanDimmedBySearch as ay,
|
|
49756
|
+
ROW_HEIGHT_PX as az,
|
|
49646
49757
|
TooltipContent as b,
|
|
49647
|
-
|
|
49648
|
-
|
|
49649
|
-
|
|
49650
|
-
|
|
49651
|
-
|
|
49652
|
-
|
|
49653
|
-
|
|
49654
|
-
|
|
49655
|
-
|
|
49656
|
-
|
|
49657
|
-
|
|
49658
|
-
|
|
49659
|
-
|
|
49660
|
-
|
|
49661
|
-
|
|
49662
|
-
|
|
49663
|
-
|
|
49664
|
-
|
|
49758
|
+
fetchEventsByCorrelationId as b0,
|
|
49759
|
+
isEncryptedData as b1,
|
|
49760
|
+
hydrateData as b2,
|
|
49761
|
+
getWebRevivers as b3,
|
|
49762
|
+
LIVE_UPDATE_INTERVAL_MS as b4,
|
|
49763
|
+
getEncryptionKeyForRun as b5,
|
|
49764
|
+
StreamViewer as b6,
|
|
49765
|
+
composeRefs as b7,
|
|
49766
|
+
useFloating as b8,
|
|
49767
|
+
offset as b9,
|
|
49768
|
+
shift as ba,
|
|
49769
|
+
limitShift as bb,
|
|
49770
|
+
flip as bc,
|
|
49771
|
+
size as bd,
|
|
49772
|
+
arrow as be,
|
|
49773
|
+
hide as bf,
|
|
49774
|
+
autoUpdate as bg,
|
|
49775
|
+
cancelRun as bh,
|
|
49776
|
+
reenqueueRun as bi,
|
|
49777
|
+
wakeUpRun as bj,
|
|
49778
|
+
resumeHook as bk,
|
|
49779
|
+
fetchHookToken as bl,
|
|
49780
|
+
recreateRun as bm,
|
|
49665
49781
|
createLucideIcon as c,
|
|
49666
49782
|
runHealthCheck as d,
|
|
49667
49783
|
cn as e,
|