@workflow/world-testing 5.0.0-beta.51 → 5.0.0-beta.52
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.
|
@@ -27226,7 +27226,8 @@ var init_ansi = __esm({
|
|
|
27226
27226
|
// ../core/dist/log-format.js
|
|
27227
27227
|
function composeLogLine(prefix, message, metadata) {
|
|
27228
27228
|
const [framing, ...rest] = message.split("\n");
|
|
27229
|
-
const
|
|
27229
|
+
const embeddedBody = rest.join("\n");
|
|
27230
|
+
const body = embeddedBody.trim() ? embeddedBody : pickString(metadata ?? {}, "errorStack") ?? "";
|
|
27230
27231
|
const fields = renderStructuredFields(framing ?? "", body, metadata);
|
|
27231
27232
|
const trimmedBody = trimStackBody(body);
|
|
27232
27233
|
const lines = [
|
|
@@ -27261,7 +27262,8 @@ function renderStructuredFields(framing, body, metadata) {
|
|
|
27261
27262
|
const lines = [];
|
|
27262
27263
|
const errorName = pickString(metadata, "errorName");
|
|
27263
27264
|
const attribution = pickString(metadata, "errorAttribution");
|
|
27264
|
-
|
|
27265
|
+
const nameEchoedByStack = errorName !== null && stackHeaderNames(body, errorName);
|
|
27266
|
+
if (attribution || errorName && !nameEchoedByStack) {
|
|
27265
27267
|
const badge = attribution ? attribution === "sdk" ? magenta("sdk error") : red("user error") : "";
|
|
27266
27268
|
const cls = errorName ? bold(errorName) : "";
|
|
27267
27269
|
const sep = badge && cls ? dim(" \xB7 ") : "";
|
|
@@ -27350,6 +27352,10 @@ function isFrameworkFrame(line) {
|
|
|
27350
27352
|
}
|
|
27351
27353
|
return false;
|
|
27352
27354
|
}
|
|
27355
|
+
function stackHeaderNames(body, errorName) {
|
|
27356
|
+
const header = body.split("\n", 1)[0]?.trim() ?? "";
|
|
27357
|
+
return header === errorName || header.startsWith(`${errorName}:`);
|
|
27358
|
+
}
|
|
27353
27359
|
function pickString(metadata, key) {
|
|
27354
27360
|
const v = metadata[key];
|
|
27355
27361
|
return typeof v === "string" && v.length > 0 ? v : null;
|
|
@@ -27388,6 +27394,7 @@ var init_log_format = __esm({
|
|
|
27388
27394
|
MAX_VISIBLE_FRAMES = 6;
|
|
27389
27395
|
__name(trimStackBody, "trimStackBody");
|
|
27390
27396
|
__name(isFrameworkFrame, "isFrameworkFrame");
|
|
27397
|
+
__name(stackHeaderNames, "stackHeaderNames");
|
|
27391
27398
|
__name(pickString, "pickString");
|
|
27392
27399
|
__name(kvKey, "kvKey");
|
|
27393
27400
|
__name(formatIdRow, "formatIdRow");
|
|
@@ -32157,14 +32164,14 @@ var version2;
|
|
|
32157
32164
|
var init_version = __esm({
|
|
32158
32165
|
"../core/dist/version.js"() {
|
|
32159
32166
|
"use strict";
|
|
32160
|
-
version2 = "5.0.0-beta.
|
|
32167
|
+
version2 = "5.0.0-beta.52";
|
|
32161
32168
|
}
|
|
32162
32169
|
});
|
|
32163
32170
|
|
|
32164
32171
|
// ../core/dist/runtime/helpers.js
|
|
32165
32172
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
32166
32173
|
if (!SAFE_WORKFLOW_NAME_PATTERN.test(workflowName)) {
|
|
32167
|
-
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, or
|
|
32174
|
+
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, at signs, parentheses, or square brackets`);
|
|
32168
32175
|
}
|
|
32169
32176
|
const prefix = getQueueTopicPrefix("workflow", resolveQueueNamespace(namespace));
|
|
32170
32177
|
return `${prefix}${workflowName}`;
|
|
@@ -32322,7 +32329,7 @@ var init_helpers = __esm({
|
|
|
32322
32329
|
init_version();
|
|
32323
32330
|
init_get_world_lazy();
|
|
32324
32331
|
DEFAULT_HEALTH_CHECK_TIMEOUT = 3e4;
|
|
32325
|
-
SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@]+$/;
|
|
32332
|
+
SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@()[\]]+$/;
|
|
32326
32333
|
__name(getWorkflowQueueName, "getWorkflowQueueName");
|
|
32327
32334
|
generateId = monotonicFactory();
|
|
32328
32335
|
__name(getHealthCheckStreamName, "getHealthCheckStreamName");
|
|
@@ -39971,7 +39978,7 @@ __name(start, "start");
|
|
|
39971
39978
|
value: "start",
|
|
39972
39979
|
configurable: true
|
|
39973
39980
|
});
|
|
39974
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
39981
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.52//start");
|
|
39975
39982
|
|
|
39976
39983
|
// ../core/dist/runtime/runs.js
|
|
39977
39984
|
async function wakeUpRun(world, runId, options) {
|
|
@@ -40434,7 +40441,7 @@ var Run = class _Run {
|
|
|
40434
40441
|
value: "wakeUp",
|
|
40435
40442
|
configurable: true
|
|
40436
40443
|
});
|
|
40437
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40444
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#wakeUp");
|
|
40438
40445
|
(function(__wf_fn, __wf_id) {
|
|
40439
40446
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40440
40447
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40443,7 +40450,7 @@ var Run = class _Run {
|
|
|
40443
40450
|
value: "cancel",
|
|
40444
40451
|
configurable: true
|
|
40445
40452
|
});
|
|
40446
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40453
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#cancel");
|
|
40447
40454
|
(function(__wf_fn, __wf_id) {
|
|
40448
40455
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40449
40456
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40452,7 +40459,7 @@ var Run = class _Run {
|
|
|
40452
40459
|
value: "getReadable",
|
|
40453
40460
|
configurable: true
|
|
40454
40461
|
});
|
|
40455
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40462
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getReadable");
|
|
40456
40463
|
(function(__wf_fn, __wf_id) {
|
|
40457
40464
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40458
40465
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40461,7 +40468,7 @@ var Run = class _Run {
|
|
|
40461
40468
|
value: "getWritable",
|
|
40462
40469
|
configurable: true
|
|
40463
40470
|
});
|
|
40464
|
-
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40471
|
+
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getWritable");
|
|
40465
40472
|
(function(__wf_fn, __wf_id) {
|
|
40466
40473
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40467
40474
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40470,7 +40477,7 @@ var Run = class _Run {
|
|
|
40470
40477
|
value: "exists",
|
|
40471
40478
|
configurable: true
|
|
40472
40479
|
});
|
|
40473
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40480
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#exists");
|
|
40474
40481
|
(function(__wf_fn, __wf_id) {
|
|
40475
40482
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40476
40483
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40479,7 +40486,7 @@ var Run = class _Run {
|
|
|
40479
40486
|
value: "status",
|
|
40480
40487
|
configurable: true
|
|
40481
40488
|
});
|
|
40482
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40489
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#status");
|
|
40483
40490
|
(function(__wf_fn, __wf_id) {
|
|
40484
40491
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40485
40492
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40488,7 +40495,7 @@ var Run = class _Run {
|
|
|
40488
40495
|
value: "returnValue",
|
|
40489
40496
|
configurable: true
|
|
40490
40497
|
});
|
|
40491
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40498
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#returnValue");
|
|
40492
40499
|
(function(__wf_fn, __wf_id) {
|
|
40493
40500
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40494
40501
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40497,7 +40504,7 @@ var Run = class _Run {
|
|
|
40497
40504
|
value: "workflowName",
|
|
40498
40505
|
configurable: true
|
|
40499
40506
|
});
|
|
40500
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40507
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#workflowName");
|
|
40501
40508
|
(function(__wf_fn, __wf_id) {
|
|
40502
40509
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40503
40510
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40506,7 +40513,7 @@ var Run = class _Run {
|
|
|
40506
40513
|
value: "createdAt",
|
|
40507
40514
|
configurable: true
|
|
40508
40515
|
});
|
|
40509
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40516
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#createdAt");
|
|
40510
40517
|
(function(__wf_fn, __wf_id) {
|
|
40511
40518
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40512
40519
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40515,7 +40522,7 @@ var Run = class _Run {
|
|
|
40515
40522
|
value: "startedAt",
|
|
40516
40523
|
configurable: true
|
|
40517
40524
|
});
|
|
40518
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40525
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#startedAt");
|
|
40519
40526
|
(function(__wf_fn, __wf_id) {
|
|
40520
40527
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40521
40528
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40524,7 +40531,7 @@ var Run = class _Run {
|
|
|
40524
40531
|
value: "completedAt",
|
|
40525
40532
|
configurable: true
|
|
40526
40533
|
});
|
|
40527
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40534
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#completedAt");
|
|
40528
40535
|
(function(__wf_cls, __wf_id) {
|
|
40529
40536
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40530
40537
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -40534,7 +40541,7 @@ var Run = class _Run {
|
|
|
40534
40541
|
enumerable: false,
|
|
40535
40542
|
configurable: false
|
|
40536
40543
|
});
|
|
40537
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
40544
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.52//Run");
|
|
40538
40545
|
|
|
40539
40546
|
// ../workflow/dist/stdlib.js
|
|
40540
40547
|
async function fetch2(...args) {
|
|
@@ -22114,27 +22114,25 @@ var init_node_http_flag2 = __esm({
|
|
|
22114
22114
|
async function reenqueueActiveRuns(runs, enqueue, label, namespace) {
|
|
22115
22115
|
const workflowQueuePrefix = getQueueTopicPrefix2("workflow", resolveQueueNamespace2(namespace));
|
|
22116
22116
|
let reenqueued = 0;
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
}
|
|
22132
|
-
console.warn(`[${label}] Failed to re-enqueue run ${run3.runId}: ${err}`);
|
|
22133
|
-
}
|
|
22117
|
+
let cursor;
|
|
22118
|
+
let hasMore = true;
|
|
22119
|
+
while (hasMore) {
|
|
22120
|
+
const page = await runs.list({
|
|
22121
|
+
status: ["pending", "running"],
|
|
22122
|
+
resolveData: "none",
|
|
22123
|
+
pagination: { cursor }
|
|
22124
|
+
});
|
|
22125
|
+
for (const run3 of page.data) {
|
|
22126
|
+
try {
|
|
22127
|
+
const queueName = `${workflowQueuePrefix}${run3.workflowName}`;
|
|
22128
|
+
await enqueue(queueName, { runId: run3.runId });
|
|
22129
|
+
reenqueued++;
|
|
22130
|
+
} catch (err) {
|
|
22131
|
+
console.warn(`[${label}] Failed to re-enqueue run ${run3.runId}: ${err}`);
|
|
22134
22132
|
}
|
|
22135
|
-
hasMore = page.hasMore;
|
|
22136
|
-
cursor = page.cursor ?? void 0;
|
|
22137
22133
|
}
|
|
22134
|
+
hasMore = page.hasMore;
|
|
22135
|
+
cursor = page.cursor ?? void 0;
|
|
22138
22136
|
}
|
|
22139
22137
|
if (reenqueued > 0 && isDebugEnabled()) {
|
|
22140
22138
|
console.debug(`[${label}] Re-enqueued ${reenqueued} active run(s) on startup`);
|
|
@@ -56417,8 +56415,11 @@ function createRunsStorage(basedir, tag) {
|
|
|
56417
56415
|
if (params?.workflowName && run3.workflowName !== params.workflowName) {
|
|
56418
56416
|
return false;
|
|
56419
56417
|
}
|
|
56420
|
-
if (params?.status
|
|
56421
|
-
|
|
56418
|
+
if (params?.status !== void 0) {
|
|
56419
|
+
const statuses = Array.isArray(params.status) ? params.status : [params.status];
|
|
56420
|
+
if (!statuses.includes(run3.status)) {
|
|
56421
|
+
return false;
|
|
56422
|
+
}
|
|
56422
56423
|
}
|
|
56423
56424
|
return true;
|
|
56424
56425
|
}, "filter"),
|
|
@@ -61823,7 +61824,7 @@ var version4;
|
|
|
61823
61824
|
var init_version3 = __esm({
|
|
61824
61825
|
"../world-vercel/dist/version.js"() {
|
|
61825
61826
|
"use strict";
|
|
61826
|
-
version4 = "5.0.0-beta.
|
|
61827
|
+
version4 = "5.0.0-beta.47";
|
|
61827
61828
|
}
|
|
61828
61829
|
});
|
|
61829
61830
|
|
|
@@ -76262,6 +76263,9 @@ async function listWorkflowRuns(params = {}, config4) {
|
|
|
76262
76263
|
const searchParams = new URLSearchParams();
|
|
76263
76264
|
if (workflowName)
|
|
76264
76265
|
searchParams.set("workflowName", workflowName);
|
|
76266
|
+
if (Array.isArray(status)) {
|
|
76267
|
+
throw new WorkflowWorldError2("listWorkflowRuns: status does not support an array of statuses on world-vercel yet; pass a single status", { code: "INVALID_ARGUMENT", field: "status" });
|
|
76268
|
+
}
|
|
76265
76269
|
if (status)
|
|
76266
76270
|
searchParams.set("status", status);
|
|
76267
76271
|
if (pagination?.limit)
|
|
@@ -78958,7 +78962,8 @@ var init_global2 = __esm({
|
|
|
78958
78962
|
// ../core/dist/log-format.js
|
|
78959
78963
|
function composeLogLine2(prefix, message, metadata) {
|
|
78960
78964
|
const [framing, ...rest] = message.split("\n");
|
|
78961
|
-
const
|
|
78965
|
+
const embeddedBody = rest.join("\n");
|
|
78966
|
+
const body = embeddedBody.trim() ? embeddedBody : pickString2(metadata ?? {}, "errorStack") ?? "";
|
|
78962
78967
|
const fields = renderStructuredFields2(framing ?? "", body, metadata);
|
|
78963
78968
|
const trimmedBody = trimStackBody2(body);
|
|
78964
78969
|
const lines = [`${prefix} ${framing ?? ""}`];
|
|
@@ -78994,7 +78999,8 @@ function renderStructuredFields2(framing, body, metadata) {
|
|
|
78994
78999
|
const lines = [];
|
|
78995
79000
|
const errorName = pickString2(metadata, "errorName");
|
|
78996
79001
|
const attribution = pickString2(metadata, "errorAttribution");
|
|
78997
|
-
|
|
79002
|
+
const nameEchoedByStack = errorName !== null && stackHeaderNames2(body, errorName);
|
|
79003
|
+
if (attribution || errorName && !nameEchoedByStack) {
|
|
78998
79004
|
const badge = attribution ? attribution === "sdk" ? magenta2("sdk error") : red2("user error") : "";
|
|
78999
79005
|
const cls = errorName ? bold2(errorName) : "";
|
|
79000
79006
|
const sep2 = badge && cls ? dim2(" \xB7 ") : "";
|
|
@@ -79090,6 +79096,10 @@ function isFrameworkFrame2(line) {
|
|
|
79090
79096
|
}
|
|
79091
79097
|
return false;
|
|
79092
79098
|
}
|
|
79099
|
+
function stackHeaderNames2(body, errorName) {
|
|
79100
|
+
const header = body.split("\n", 1)[0]?.trim() ?? "";
|
|
79101
|
+
return header === errorName || header.startsWith(`${errorName}:`);
|
|
79102
|
+
}
|
|
79093
79103
|
function pickString2(metadata, key) {
|
|
79094
79104
|
const v = metadata[key];
|
|
79095
79105
|
return typeof v === "string" && v.length > 0 ? v : null;
|
|
@@ -79129,6 +79139,7 @@ var init_log_format2 = __esm({
|
|
|
79129
79139
|
MAX_VISIBLE_FRAMES2 = 6;
|
|
79130
79140
|
__name(trimStackBody2, "trimStackBody");
|
|
79131
79141
|
__name(isFrameworkFrame2, "isFrameworkFrame");
|
|
79142
|
+
__name(stackHeaderNames2, "stackHeaderNames");
|
|
79132
79143
|
__name(pickString2, "pickString");
|
|
79133
79144
|
__name(kvKey2, "kvKey");
|
|
79134
79145
|
__name(formatIdRow2, "formatIdRow");
|
|
@@ -85917,14 +85928,14 @@ var version5;
|
|
|
85917
85928
|
var init_version4 = __esm({
|
|
85918
85929
|
"../core/dist/version.js"() {
|
|
85919
85930
|
"use strict";
|
|
85920
|
-
version5 = "5.0.0-beta.
|
|
85931
|
+
version5 = "5.0.0-beta.52";
|
|
85921
85932
|
}
|
|
85922
85933
|
});
|
|
85923
85934
|
|
|
85924
85935
|
// ../core/dist/runtime/helpers.js
|
|
85925
85936
|
function getWorkflowQueueName2(workflowName, namespace) {
|
|
85926
85937
|
if (!SAFE_WORKFLOW_NAME_PATTERN2.test(workflowName)) {
|
|
85927
|
-
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, or
|
|
85938
|
+
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, at signs, parentheses, or square brackets`);
|
|
85928
85939
|
}
|
|
85929
85940
|
const prefix = getQueueTopicPrefix2("workflow", resolveQueueNamespace2(namespace));
|
|
85930
85941
|
return `${prefix}${workflowName}`;
|
|
@@ -86345,7 +86356,7 @@ var init_helpers3 = __esm({
|
|
|
86345
86356
|
init_telemetry4();
|
|
86346
86357
|
init_version4();
|
|
86347
86358
|
init_get_world_lazy2();
|
|
86348
|
-
SAFE_WORKFLOW_NAME_PATTERN2 = /^[a-zA-Z0-9_\-./@]+$/;
|
|
86359
|
+
SAFE_WORKFLOW_NAME_PATTERN2 = /^[a-zA-Z0-9_\-./@()[\]]+$/;
|
|
86349
86360
|
__name(getWorkflowQueueName2, "getWorkflowQueueName");
|
|
86350
86361
|
generateId2 = monotonicFactory2();
|
|
86351
86362
|
__name(getHealthCheckStreamName2, "getHealthCheckStreamName");
|
|
@@ -128248,7 +128259,8 @@ var init_ansi = __esm2({
|
|
|
128248
128259
|
});
|
|
128249
128260
|
function composeLogLine(prefix, message, metadata) {
|
|
128250
128261
|
const [framing, ...rest] = message.split("\n");
|
|
128251
|
-
const
|
|
128262
|
+
const embeddedBody = rest.join("\n");
|
|
128263
|
+
const body = embeddedBody.trim() ? embeddedBody : pickString(metadata ?? {}, "errorStack") ?? "";
|
|
128252
128264
|
const fields = renderStructuredFields(framing ?? "", body, metadata);
|
|
128253
128265
|
const trimmedBody = trimStackBody(body);
|
|
128254
128266
|
const lines = [
|
|
@@ -128284,7 +128296,8 @@ function renderStructuredFields(framing, body, metadata) {
|
|
|
128284
128296
|
const lines = [];
|
|
128285
128297
|
const errorName = pickString(metadata, "errorName");
|
|
128286
128298
|
const attribution = pickString(metadata, "errorAttribution");
|
|
128287
|
-
|
|
128299
|
+
const nameEchoedByStack = errorName !== null && stackHeaderNames(body, errorName);
|
|
128300
|
+
if (attribution || errorName && !nameEchoedByStack) {
|
|
128288
128301
|
const badge = attribution ? attribution === "sdk" ? magenta("sdk error") : red("user error") : "";
|
|
128289
128302
|
const cls = errorName ? bold(errorName) : "";
|
|
128290
128303
|
const sep2 = badge && cls ? dim(" \xB7 ") : "";
|
|
@@ -128376,6 +128389,11 @@ function isFrameworkFrame(line) {
|
|
|
128376
128389
|
return false;
|
|
128377
128390
|
}
|
|
128378
128391
|
__name(isFrameworkFrame, "isFrameworkFrame");
|
|
128392
|
+
function stackHeaderNames(body, errorName) {
|
|
128393
|
+
const header = body.split("\n", 1)[0]?.trim() ?? "";
|
|
128394
|
+
return header === errorName || header.startsWith(`${errorName}:`);
|
|
128395
|
+
}
|
|
128396
|
+
__name(stackHeaderNames, "stackHeaderNames");
|
|
128379
128397
|
function pickString(metadata, key) {
|
|
128380
128398
|
const v = metadata[key];
|
|
128381
128399
|
return typeof v === "string" && v.length > 0 ? v : null;
|
|
@@ -128418,6 +128436,7 @@ var init_log_format = __esm2({
|
|
|
128418
128436
|
MAX_VISIBLE_FRAMES = 6;
|
|
128419
128437
|
__name2(trimStackBody, "trimStackBody");
|
|
128420
128438
|
__name2(isFrameworkFrame, "isFrameworkFrame");
|
|
128439
|
+
__name2(stackHeaderNames, "stackHeaderNames");
|
|
128421
128440
|
__name2(pickString, "pickString");
|
|
128422
128441
|
__name2(kvKey, "kvKey");
|
|
128423
128442
|
__name2(formatIdRow, "formatIdRow");
|
|
@@ -133277,12 +133296,12 @@ var version2;
|
|
|
133277
133296
|
var init_version = __esm2({
|
|
133278
133297
|
"../core/dist/version.js"() {
|
|
133279
133298
|
"use strict";
|
|
133280
|
-
version2 = "5.0.0-beta.
|
|
133299
|
+
version2 = "5.0.0-beta.52";
|
|
133281
133300
|
}
|
|
133282
133301
|
});
|
|
133283
133302
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
133284
133303
|
if (!SAFE_WORKFLOW_NAME_PATTERN.test(workflowName)) {
|
|
133285
|
-
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, or
|
|
133304
|
+
throw new Error(`Invalid workflow name "${workflowName}": must only contain alphanumeric characters, underscores, hyphens, dots, forward slashes, at signs, parentheses, or square brackets`);
|
|
133286
133305
|
}
|
|
133287
133306
|
const prefix = getQueueTopicPrefix("workflow", resolveQueueNamespace(namespace));
|
|
133288
133307
|
return `${prefix}${workflowName}`;
|
|
@@ -133451,7 +133470,7 @@ var init_helpers = __esm2({
|
|
|
133451
133470
|
init_version();
|
|
133452
133471
|
init_get_world_lazy();
|
|
133453
133472
|
DEFAULT_HEALTH_CHECK_TIMEOUT = 3e4;
|
|
133454
|
-
SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@]+$/;
|
|
133473
|
+
SAFE_WORKFLOW_NAME_PATTERN = /^[a-zA-Z0-9_\-./@()[\]]+$/;
|
|
133455
133474
|
__name2(getWorkflowQueueName, "getWorkflowQueueName");
|
|
133456
133475
|
generateId = monotonicFactory();
|
|
133457
133476
|
__name2(getHealthCheckStreamName, "getHealthCheckStreamName");
|
|
@@ -141221,7 +141240,7 @@ __name2(start, "start");
|
|
|
141221
141240
|
value: "start",
|
|
141222
141241
|
configurable: true
|
|
141223
141242
|
});
|
|
141224
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
141243
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.52//start");
|
|
141225
141244
|
async function wakeUpRun(world, runId, options) {
|
|
141226
141245
|
try {
|
|
141227
141246
|
const run22 = await world.runs.get(runId, {
|
|
@@ -141688,7 +141707,7 @@ var Run = class _Run {
|
|
|
141688
141707
|
value: "wakeUp",
|
|
141689
141708
|
configurable: true
|
|
141690
141709
|
});
|
|
141691
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141710
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#wakeUp");
|
|
141692
141711
|
(function(__wf_fn, __wf_id) {
|
|
141693
141712
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141694
141713
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141697,7 +141716,7 @@ var Run = class _Run {
|
|
|
141697
141716
|
value: "cancel",
|
|
141698
141717
|
configurable: true
|
|
141699
141718
|
});
|
|
141700
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141719
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#cancel");
|
|
141701
141720
|
(function(__wf_fn, __wf_id) {
|
|
141702
141721
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141703
141722
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141706,7 +141725,7 @@ var Run = class _Run {
|
|
|
141706
141725
|
value: "getReadable",
|
|
141707
141726
|
configurable: true
|
|
141708
141727
|
});
|
|
141709
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141728
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getReadable");
|
|
141710
141729
|
(function(__wf_fn, __wf_id) {
|
|
141711
141730
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141712
141731
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141715,7 +141734,7 @@ var Run = class _Run {
|
|
|
141715
141734
|
value: "getWritable",
|
|
141716
141735
|
configurable: true
|
|
141717
141736
|
});
|
|
141718
|
-
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141737
|
+
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getWritable");
|
|
141719
141738
|
(function(__wf_fn, __wf_id) {
|
|
141720
141739
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141721
141740
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141724,7 +141743,7 @@ var Run = class _Run {
|
|
|
141724
141743
|
value: "exists",
|
|
141725
141744
|
configurable: true
|
|
141726
141745
|
});
|
|
141727
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141746
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#exists");
|
|
141728
141747
|
(function(__wf_fn, __wf_id) {
|
|
141729
141748
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141730
141749
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141733,7 +141752,7 @@ var Run = class _Run {
|
|
|
141733
141752
|
value: "status",
|
|
141734
141753
|
configurable: true
|
|
141735
141754
|
});
|
|
141736
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141755
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#status");
|
|
141737
141756
|
(function(__wf_fn, __wf_id) {
|
|
141738
141757
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141739
141758
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141742,7 +141761,7 @@ var Run = class _Run {
|
|
|
141742
141761
|
value: "returnValue",
|
|
141743
141762
|
configurable: true
|
|
141744
141763
|
});
|
|
141745
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141764
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#returnValue");
|
|
141746
141765
|
(function(__wf_fn, __wf_id) {
|
|
141747
141766
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141748
141767
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141751,7 +141770,7 @@ var Run = class _Run {
|
|
|
141751
141770
|
value: "workflowName",
|
|
141752
141771
|
configurable: true
|
|
141753
141772
|
});
|
|
141754
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141773
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#workflowName");
|
|
141755
141774
|
(function(__wf_fn, __wf_id) {
|
|
141756
141775
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141757
141776
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141760,7 +141779,7 @@ var Run = class _Run {
|
|
|
141760
141779
|
value: "createdAt",
|
|
141761
141780
|
configurable: true
|
|
141762
141781
|
});
|
|
141763
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141782
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#createdAt");
|
|
141764
141783
|
(function(__wf_fn, __wf_id) {
|
|
141765
141784
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141766
141785
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141769,7 +141788,7 @@ var Run = class _Run {
|
|
|
141769
141788
|
value: "startedAt",
|
|
141770
141789
|
configurable: true
|
|
141771
141790
|
});
|
|
141772
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141791
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#startedAt");
|
|
141773
141792
|
(function(__wf_fn, __wf_id) {
|
|
141774
141793
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141775
141794
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -141778,7 +141797,7 @@ var Run = class _Run {
|
|
|
141778
141797
|
value: "completedAt",
|
|
141779
141798
|
configurable: true
|
|
141780
141799
|
});
|
|
141781
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
141800
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#completedAt");
|
|
141782
141801
|
(function(__wf_cls, __wf_id) {
|
|
141783
141802
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
141784
141803
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -141788,7 +141807,7 @@ var Run = class _Run {
|
|
|
141788
141807
|
enumerable: false,
|
|
141789
141808
|
configurable: false
|
|
141790
141809
|
});
|
|
141791
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
141810
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.52//Run");
|
|
141792
141811
|
async function fetch2(...args) {
|
|
141793
141812
|
return globalThis.fetch(...args);
|
|
141794
141813
|
}
|
|
@@ -148012,10 +148031,10 @@ function workflowEntrypoint(workflowCode2, options) {
|
|
|
148012
148031
|
workflowRunId: runId,
|
|
148013
148032
|
errorCode,
|
|
148014
148033
|
errorName,
|
|
148015
|
-
//
|
|
148016
|
-
//
|
|
148017
|
-
//
|
|
148018
|
-
//
|
|
148034
|
+
// This message has no body, so the console
|
|
148035
|
+
// renderer promotes `errorStack` into one and
|
|
148036
|
+
// shows `errorMessage` on its own row when the
|
|
148037
|
+
// throw produced no stack to carry it.
|
|
148019
148038
|
errorMessage,
|
|
148020
148039
|
errorStack
|
|
148021
148040
|
});
|
|
@@ -148956,11 +148975,11 @@ var Run = class _Run {
|
|
|
148956
148975
|
return this.getWritable();
|
|
148957
148976
|
}
|
|
148958
148977
|
};
|
|
148959
|
-
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148960
|
-
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148961
|
-
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148962
|
-
Run.prototype["getWritable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148963
|
-
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148978
|
+
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#wakeUp");
|
|
148979
|
+
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#cancel");
|
|
148980
|
+
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getReadable");
|
|
148981
|
+
Run.prototype["getWritable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getWritable");
|
|
148982
|
+
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#exists");
|
|
148964
148983
|
Object.defineProperty(Run.prototype, "exists", {
|
|
148965
148984
|
get() {
|
|
148966
148985
|
return __step_Run$exists.call(this);
|
|
@@ -148968,7 +148987,7 @@ Object.defineProperty(Run.prototype, "exists", {
|
|
|
148968
148987
|
configurable: true,
|
|
148969
148988
|
enumerable: false
|
|
148970
148989
|
});
|
|
148971
|
-
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148990
|
+
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#status");
|
|
148972
148991
|
Object.defineProperty(Run.prototype, "status", {
|
|
148973
148992
|
get() {
|
|
148974
148993
|
return __step_Run$status.call(this);
|
|
@@ -148976,7 +148995,7 @@ Object.defineProperty(Run.prototype, "status", {
|
|
|
148976
148995
|
configurable: true,
|
|
148977
148996
|
enumerable: false
|
|
148978
148997
|
});
|
|
148979
|
-
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
148998
|
+
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#returnValue");
|
|
148980
148999
|
Object.defineProperty(Run.prototype, "returnValue", {
|
|
148981
149000
|
get() {
|
|
148982
149001
|
return __step_Run$returnValue.call(this);
|
|
@@ -148984,7 +149003,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
|
|
|
148984
149003
|
configurable: true,
|
|
148985
149004
|
enumerable: false
|
|
148986
149005
|
});
|
|
148987
|
-
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149006
|
+
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#workflowName");
|
|
148988
149007
|
Object.defineProperty(Run.prototype, "workflowName", {
|
|
148989
149008
|
get() {
|
|
148990
149009
|
return __step_Run$workflowName.call(this);
|
|
@@ -148992,7 +149011,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
|
|
|
148992
149011
|
configurable: true,
|
|
148993
149012
|
enumerable: false
|
|
148994
149013
|
});
|
|
148995
|
-
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149014
|
+
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#createdAt");
|
|
148996
149015
|
Object.defineProperty(Run.prototype, "createdAt", {
|
|
148997
149016
|
get() {
|
|
148998
149017
|
return __step_Run$createdAt.call(this);
|
|
@@ -149000,7 +149019,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
|
|
|
149000
149019
|
configurable: true,
|
|
149001
149020
|
enumerable: false
|
|
149002
149021
|
});
|
|
149003
|
-
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149022
|
+
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#startedAt");
|
|
149004
149023
|
Object.defineProperty(Run.prototype, "startedAt", {
|
|
149005
149024
|
get() {
|
|
149006
149025
|
return __step_Run$startedAt.call(this);
|
|
@@ -149008,7 +149027,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
|
|
|
149008
149027
|
configurable: true,
|
|
149009
149028
|
enumerable: false
|
|
149010
149029
|
});
|
|
149011
|
-
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149030
|
+
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.52//Run#completedAt");
|
|
149012
149031
|
Object.defineProperty(Run.prototype, "completedAt", {
|
|
149013
149032
|
get() {
|
|
149014
149033
|
return __step_Run$completedAt.call(this);
|
|
@@ -149025,7 +149044,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
|
|
|
149025
149044
|
enumerable: false,
|
|
149026
149045
|
configurable: false
|
|
149027
149046
|
});
|
|
149028
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
149047
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.52//Run");
|
|
149029
149048
|
|
|
149030
149049
|
// ../core/dist/workflow/create-hook.js
|
|
149031
149050
|
aliasSerializationClass(RUN_CLASS_ID, Run);
|
|
@@ -156621,7 +156640,7 @@ globalThis.__private_workflows.set("workflow//./workflows/inline-execution//hook
|
|
|
156621
156640
|
var latestNoOpWarning = globalSingleton("@workflow/core//latestNoOpWarning", 1, () => ({
|
|
156622
156641
|
warned: false
|
|
156623
156642
|
}));
|
|
156624
|
-
var start = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/start@5.0.0-beta.
|
|
156643
|
+
var start = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/start@5.0.0-beta.52//start");
|
|
156625
156644
|
|
|
156626
156645
|
// workflows/lineage.ts
|
|
156627
156646
|
var noop = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//./workflows/lineage//noop");
|
|
@@ -3,42 +3,42 @@
|
|
|
3
3
|
"steps": {
|
|
4
4
|
"core/dist/runtime/run.js": {
|
|
5
5
|
"Run#cancel": {
|
|
6
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
6
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#cancel"
|
|
7
7
|
},
|
|
8
8
|
"Run#completedAt": {
|
|
9
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
9
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#completedAt"
|
|
10
10
|
},
|
|
11
11
|
"Run#createdAt": {
|
|
12
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
12
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#createdAt"
|
|
13
13
|
},
|
|
14
14
|
"Run#exists": {
|
|
15
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
15
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#exists"
|
|
16
16
|
},
|
|
17
17
|
"Run#getReadable": {
|
|
18
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
18
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getReadable"
|
|
19
19
|
},
|
|
20
20
|
"Run#getWritable": {
|
|
21
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
21
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#getWritable"
|
|
22
22
|
},
|
|
23
23
|
"Run#returnValue": {
|
|
24
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
24
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#returnValue"
|
|
25
25
|
},
|
|
26
26
|
"Run#startedAt": {
|
|
27
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
27
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#startedAt"
|
|
28
28
|
},
|
|
29
29
|
"Run#status": {
|
|
30
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
30
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#status"
|
|
31
31
|
},
|
|
32
32
|
"Run#wakeUp": {
|
|
33
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
33
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#wakeUp"
|
|
34
34
|
},
|
|
35
35
|
"Run#workflowName": {
|
|
36
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
36
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.52//Run#workflowName"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"core/dist/runtime/start.js": {
|
|
40
40
|
"start": {
|
|
41
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
41
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.52//start"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"workflow/dist/internal/builtins.js": {
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
"data": {
|
|
1299
1299
|
"label": "start",
|
|
1300
1300
|
"nodeKind": "step",
|
|
1301
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
1301
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.52//start"
|
|
1302
1302
|
}
|
|
1303
1303
|
},
|
|
1304
1304
|
{
|
|
@@ -1405,7 +1405,7 @@
|
|
|
1405
1405
|
"data": {
|
|
1406
1406
|
"label": "start",
|
|
1407
1407
|
"nodeKind": "step",
|
|
1408
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
1408
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.52//start"
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
1411
|
{
|
|
@@ -1466,7 +1466,7 @@
|
|
|
1466
1466
|
"data": {
|
|
1467
1467
|
"label": "start",
|
|
1468
1468
|
"nodeKind": "step",
|
|
1469
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
1469
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.52//start"
|
|
1470
1470
|
}
|
|
1471
1471
|
},
|
|
1472
1472
|
{
|
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
"classes": {
|
|
1768
1768
|
"core/dist/runtime/run.js": {
|
|
1769
1769
|
"Run": {
|
|
1770
|
-
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
1770
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.52//Run"
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workflow/world-testing",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.52",
|
|
4
4
|
"description": "Testing utilities and World implementation for Workflow SDK",
|
|
5
5
|
"main": "dist/src/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hono/node-server": "1.19.13",
|
|
20
|
-
"@workflow/cli": "5.0.0-beta.
|
|
21
|
-
"@workflow/core": "5.0.0-beta.
|
|
22
|
-
"@workflow/world": "5.0.0-beta.
|
|
20
|
+
"@workflow/cli": "5.0.0-beta.52",
|
|
21
|
+
"@workflow/core": "5.0.0-beta.52",
|
|
22
|
+
"@workflow/world": "5.0.0-beta.36",
|
|
23
23
|
"chalk": "5.6.2",
|
|
24
24
|
"hono": "4.12.25",
|
|
25
25
|
"jsonlines": "0.1.1",
|
|
26
|
-
"workflow": "5.0.0-beta.
|
|
26
|
+
"workflow": "5.0.0-beta.52",
|
|
27
27
|
"zod": "~4.5.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|