@workflow/world-testing 5.0.0-beta.54 → 5.0.0-beta.55
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.
|
@@ -32182,7 +32182,7 @@ var version2;
|
|
|
32182
32182
|
var init_version = __esm({
|
|
32183
32183
|
"../core/dist/version.js"() {
|
|
32184
32184
|
"use strict";
|
|
32185
|
-
version2 = "5.0.0-beta.
|
|
32185
|
+
version2 = "5.0.0-beta.55";
|
|
32186
32186
|
}
|
|
32187
32187
|
});
|
|
32188
32188
|
|
|
@@ -40086,7 +40086,7 @@ __name(start, "start");
|
|
|
40086
40086
|
value: "start",
|
|
40087
40087
|
configurable: true
|
|
40088
40088
|
});
|
|
40089
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
40089
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.55//start");
|
|
40090
40090
|
|
|
40091
40091
|
// ../core/dist/runtime/runs.js
|
|
40092
40092
|
async function wakeUpRun(world, runId, options) {
|
|
@@ -40557,7 +40557,7 @@ var Run = class _Run {
|
|
|
40557
40557
|
value: "wakeUp",
|
|
40558
40558
|
configurable: true
|
|
40559
40559
|
});
|
|
40560
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40560
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#wakeUp");
|
|
40561
40561
|
(function(__wf_fn, __wf_id) {
|
|
40562
40562
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40563
40563
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40566,7 +40566,7 @@ var Run = class _Run {
|
|
|
40566
40566
|
value: "cancel",
|
|
40567
40567
|
configurable: true
|
|
40568
40568
|
});
|
|
40569
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40569
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#cancel");
|
|
40570
40570
|
(function(__wf_fn, __wf_id) {
|
|
40571
40571
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40572
40572
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40575,7 +40575,7 @@ var Run = class _Run {
|
|
|
40575
40575
|
value: "getReadable",
|
|
40576
40576
|
configurable: true
|
|
40577
40577
|
});
|
|
40578
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40578
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getReadable");
|
|
40579
40579
|
(function(__wf_fn, __wf_id) {
|
|
40580
40580
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40581
40581
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40584,7 +40584,7 @@ var Run = class _Run {
|
|
|
40584
40584
|
value: "getWritable",
|
|
40585
40585
|
configurable: true
|
|
40586
40586
|
});
|
|
40587
|
-
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40587
|
+
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getWritable");
|
|
40588
40588
|
(function(__wf_fn, __wf_id) {
|
|
40589
40589
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40590
40590
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40593,7 +40593,7 @@ var Run = class _Run {
|
|
|
40593
40593
|
value: "exists",
|
|
40594
40594
|
configurable: true
|
|
40595
40595
|
});
|
|
40596
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40596
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#exists");
|
|
40597
40597
|
(function(__wf_fn, __wf_id) {
|
|
40598
40598
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40599
40599
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40602,7 +40602,7 @@ var Run = class _Run {
|
|
|
40602
40602
|
value: "status",
|
|
40603
40603
|
configurable: true
|
|
40604
40604
|
});
|
|
40605
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40605
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#status");
|
|
40606
40606
|
(function(__wf_fn, __wf_id) {
|
|
40607
40607
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40608
40608
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40611,7 +40611,7 @@ var Run = class _Run {
|
|
|
40611
40611
|
value: "returnValue",
|
|
40612
40612
|
configurable: true
|
|
40613
40613
|
});
|
|
40614
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40614
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#returnValue");
|
|
40615
40615
|
(function(__wf_fn, __wf_id) {
|
|
40616
40616
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40617
40617
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40620,7 +40620,7 @@ var Run = class _Run {
|
|
|
40620
40620
|
value: "workflowName",
|
|
40621
40621
|
configurable: true
|
|
40622
40622
|
});
|
|
40623
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40623
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#workflowName");
|
|
40624
40624
|
(function(__wf_fn, __wf_id) {
|
|
40625
40625
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40626
40626
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40629,7 +40629,7 @@ var Run = class _Run {
|
|
|
40629
40629
|
value: "createdAt",
|
|
40630
40630
|
configurable: true
|
|
40631
40631
|
});
|
|
40632
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40632
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#createdAt");
|
|
40633
40633
|
(function(__wf_fn, __wf_id) {
|
|
40634
40634
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40635
40635
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40638,7 +40638,7 @@ var Run = class _Run {
|
|
|
40638
40638
|
value: "startedAt",
|
|
40639
40639
|
configurable: true
|
|
40640
40640
|
});
|
|
40641
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40641
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#startedAt");
|
|
40642
40642
|
(function(__wf_fn, __wf_id) {
|
|
40643
40643
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40644
40644
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -40647,7 +40647,7 @@ var Run = class _Run {
|
|
|
40647
40647
|
value: "completedAt",
|
|
40648
40648
|
configurable: true
|
|
40649
40649
|
});
|
|
40650
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
40650
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#completedAt");
|
|
40651
40651
|
(function(__wf_cls, __wf_id) {
|
|
40652
40652
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
40653
40653
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -40657,7 +40657,7 @@ var Run = class _Run {
|
|
|
40657
40657
|
enumerable: false,
|
|
40658
40658
|
configurable: false
|
|
40659
40659
|
});
|
|
40660
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
40660
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.55//Run");
|
|
40661
40661
|
|
|
40662
40662
|
// ../workflow/dist/stdlib.js
|
|
40663
40663
|
async function fetch2(...args) {
|
|
@@ -61842,7 +61842,7 @@ var version4;
|
|
|
61842
61842
|
var init_version3 = __esm({
|
|
61843
61843
|
"../world-vercel/dist/version.js"() {
|
|
61844
61844
|
"use strict";
|
|
61845
|
-
version4 = "5.0.0-beta.
|
|
61845
|
+
version4 = "5.0.0-beta.50";
|
|
61846
61846
|
}
|
|
61847
61847
|
});
|
|
61848
61848
|
|
|
@@ -74579,10 +74579,20 @@ function toBatchResult(outcome) {
|
|
|
74579
74579
|
messageId: outcome.messageId ? MessageId2.parse(outcome.messageId) : null
|
|
74580
74580
|
};
|
|
74581
74581
|
}
|
|
74582
|
-
function
|
|
74582
|
+
function getErrorRetryAfterSeconds(error121) {
|
|
74583
|
+
if (typeof error121 !== "object" || error121 === null)
|
|
74584
|
+
return void 0;
|
|
74585
|
+
const retryAfter = error121.retryAfter;
|
|
74586
|
+
if (typeof retryAfter !== "number" || !Number.isFinite(retryAfter) || retryAfter <= 0) {
|
|
74587
|
+
return void 0;
|
|
74588
|
+
}
|
|
74589
|
+
return Math.min(Math.ceil(retryAfter), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
74590
|
+
}
|
|
74591
|
+
function getHandlerErrorRetryAfterSeconds(error121, deliveryCount) {
|
|
74583
74592
|
const backoffSeconds = Math.min(Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, 2 ** (deliveryCount - 1)), HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS);
|
|
74584
74593
|
const jitterSeconds = Math.floor(Math.random() * (Math.ceil(backoffSeconds * HANDLER_ERROR_RETRY_JITTER_RATIO) + 1));
|
|
74585
|
-
|
|
74594
|
+
const jitteredBackoffSeconds = Math.max(HANDLER_ERROR_RETRY_AFTER_SECONDS, backoffSeconds - jitterSeconds);
|
|
74595
|
+
return Math.max(jitteredBackoffSeconds, getErrorRetryAfterSeconds(error121) ?? HANDLER_ERROR_RETRY_AFTER_SECONDS);
|
|
74586
74596
|
}
|
|
74587
74597
|
function getRunIdFromPayload(payload) {
|
|
74588
74598
|
if ("runId" in payload && typeof payload.runId === "string") {
|
|
@@ -74800,7 +74810,7 @@ function createQueue2(config4) {
|
|
|
74800
74810
|
// redrive in lockstep. Workflow handlers are event-sourced and must
|
|
74801
74811
|
// remain idempotent because queue retries can happen close together.
|
|
74802
74812
|
retry: /* @__PURE__ */ __name((error121, { messageId, deliveryCount }) => {
|
|
74803
|
-
const afterSeconds = getHandlerErrorRetryAfterSeconds(deliveryCount);
|
|
74813
|
+
const afterSeconds = getHandlerErrorRetryAfterSeconds(error121, deliveryCount);
|
|
74804
74814
|
console.error(`[workflow] Queue handler failed for message "${messageId}" on delivery attempt ${deliveryCount}; retrying in ${afterSeconds}s:`, error121);
|
|
74805
74815
|
return { afterSeconds };
|
|
74806
74816
|
}, "retry")
|
|
@@ -74931,6 +74941,7 @@ var init_queue4 = __esm({
|
|
|
74931
74941
|
HANDLER_ERROR_RETRY_AFTER_SECONDS = 1;
|
|
74932
74942
|
HANDLER_ERROR_MAX_RETRY_AFTER_SECONDS = 900;
|
|
74933
74943
|
HANDLER_ERROR_RETRY_JITTER_RATIO = 0.25;
|
|
74944
|
+
__name(getErrorRetryAfterSeconds, "getErrorRetryAfterSeconds");
|
|
74934
74945
|
__name(getHandlerErrorRetryAfterSeconds, "getHandlerErrorRetryAfterSeconds");
|
|
74935
74946
|
FALLBACK_REGION = "iad1";
|
|
74936
74947
|
__name(getRunIdFromPayload, "getRunIdFromPayload");
|
|
@@ -86041,7 +86052,7 @@ var version5;
|
|
|
86041
86052
|
var init_version4 = __esm({
|
|
86042
86053
|
"../core/dist/version.js"() {
|
|
86043
86054
|
"use strict";
|
|
86044
|
-
version5 = "5.0.0-beta.
|
|
86055
|
+
version5 = "5.0.0-beta.55";
|
|
86045
86056
|
}
|
|
86046
86057
|
});
|
|
86047
86058
|
|
|
@@ -91438,11 +91449,11 @@ var init_step_executor = __esm({
|
|
|
91438
91449
|
});
|
|
91439
91450
|
|
|
91440
91451
|
// ../core/dist/runtime/step-single-flight.js
|
|
91441
|
-
async function runStepSingleFlight(runId, correlationId, execute) {
|
|
91452
|
+
async function runStepSingleFlight(runId, correlationId, execute, logLevel = "warn") {
|
|
91442
91453
|
const key = `${runId}:${correlationId}`;
|
|
91443
91454
|
const existing = singleFlight.inFlight.get(key);
|
|
91444
91455
|
if (existing) {
|
|
91445
|
-
runtimeLogger2
|
|
91456
|
+
runtimeLogger2[logLevel]("Step execution already in flight in this process; awaiting its settlement instead of executing again", { workflowRunId: runId, stepId: correlationId });
|
|
91446
91457
|
try {
|
|
91447
91458
|
await existing;
|
|
91448
91459
|
} catch {
|
|
@@ -100558,7 +100569,7 @@ async function runWorkflowWithQuickJS(params) {
|
|
|
100558
100569
|
// attempt.
|
|
100559
100570
|
authoritativeAttempt: 1,
|
|
100560
100571
|
...inlineDeltaSinceCursor !== void 0 ? { inlineDeltaSinceCursor } : {}
|
|
100561
|
-
}))())));
|
|
100572
|
+
}))(), "debug")));
|
|
100562
100573
|
} finally {
|
|
100563
100574
|
budget.resume();
|
|
100564
100575
|
}
|
|
@@ -134364,7 +134375,7 @@ var version2;
|
|
|
134364
134375
|
var init_version = __esm2({
|
|
134365
134376
|
"../core/dist/version.js"() {
|
|
134366
134377
|
"use strict";
|
|
134367
|
-
version2 = "5.0.0-beta.
|
|
134378
|
+
version2 = "5.0.0-beta.55";
|
|
134368
134379
|
}
|
|
134369
134380
|
});
|
|
134370
134381
|
function getWorkflowQueueName(workflowName, namespace) {
|
|
@@ -142401,7 +142412,7 @@ __name2(start, "start");
|
|
|
142401
142412
|
value: "start",
|
|
142402
142413
|
configurable: true
|
|
142403
142414
|
});
|
|
142404
|
-
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
142415
|
+
})(start, "step//@workflow/core/runtime/start@5.0.0-beta.55//start");
|
|
142405
142416
|
async function wakeUpRun(world, runId, options) {
|
|
142406
142417
|
try {
|
|
142407
142418
|
const run22 = await world.runs.get(runId, {
|
|
@@ -142876,7 +142887,7 @@ var Run = class _Run {
|
|
|
142876
142887
|
value: "wakeUp",
|
|
142877
142888
|
configurable: true
|
|
142878
142889
|
});
|
|
142879
|
-
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142890
|
+
})(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#wakeUp");
|
|
142880
142891
|
(function(__wf_fn, __wf_id) {
|
|
142881
142892
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142882
142893
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142885,7 +142896,7 @@ var Run = class _Run {
|
|
|
142885
142896
|
value: "cancel",
|
|
142886
142897
|
configurable: true
|
|
142887
142898
|
});
|
|
142888
|
-
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142899
|
+
})(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#cancel");
|
|
142889
142900
|
(function(__wf_fn, __wf_id) {
|
|
142890
142901
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142891
142902
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142894,7 +142905,7 @@ var Run = class _Run {
|
|
|
142894
142905
|
value: "getReadable",
|
|
142895
142906
|
configurable: true
|
|
142896
142907
|
});
|
|
142897
|
-
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142908
|
+
})(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getReadable");
|
|
142898
142909
|
(function(__wf_fn, __wf_id) {
|
|
142899
142910
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142900
142911
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142903,7 +142914,7 @@ var Run = class _Run {
|
|
|
142903
142914
|
value: "getWritable",
|
|
142904
142915
|
configurable: true
|
|
142905
142916
|
});
|
|
142906
|
-
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142917
|
+
})(Run.prototype["getWritable"], "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getWritable");
|
|
142907
142918
|
(function(__wf_fn, __wf_id) {
|
|
142908
142919
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142909
142920
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142912,7 +142923,7 @@ var Run = class _Run {
|
|
|
142912
142923
|
value: "exists",
|
|
142913
142924
|
configurable: true
|
|
142914
142925
|
});
|
|
142915
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142926
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#exists");
|
|
142916
142927
|
(function(__wf_fn, __wf_id) {
|
|
142917
142928
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142918
142929
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142921,7 +142932,7 @@ var Run = class _Run {
|
|
|
142921
142932
|
value: "status",
|
|
142922
142933
|
configurable: true
|
|
142923
142934
|
});
|
|
142924
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142935
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#status");
|
|
142925
142936
|
(function(__wf_fn, __wf_id) {
|
|
142926
142937
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142927
142938
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142930,7 +142941,7 @@ var Run = class _Run {
|
|
|
142930
142941
|
value: "returnValue",
|
|
142931
142942
|
configurable: true
|
|
142932
142943
|
});
|
|
142933
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142944
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#returnValue");
|
|
142934
142945
|
(function(__wf_fn, __wf_id) {
|
|
142935
142946
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142936
142947
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142939,7 +142950,7 @@ var Run = class _Run {
|
|
|
142939
142950
|
value: "workflowName",
|
|
142940
142951
|
configurable: true
|
|
142941
142952
|
});
|
|
142942
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142953
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#workflowName");
|
|
142943
142954
|
(function(__wf_fn, __wf_id) {
|
|
142944
142955
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142945
142956
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142948,7 +142959,7 @@ var Run = class _Run {
|
|
|
142948
142959
|
value: "createdAt",
|
|
142949
142960
|
configurable: true
|
|
142950
142961
|
});
|
|
142951
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142962
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#createdAt");
|
|
142952
142963
|
(function(__wf_fn, __wf_id) {
|
|
142953
142964
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142954
142965
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142957,7 +142968,7 @@ var Run = class _Run {
|
|
|
142957
142968
|
value: "startedAt",
|
|
142958
142969
|
configurable: true
|
|
142959
142970
|
});
|
|
142960
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142971
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#startedAt");
|
|
142961
142972
|
(function(__wf_fn, __wf_id) {
|
|
142962
142973
|
var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142963
142974
|
__wf_reg.set(__wf_id, __wf_fn);
|
|
@@ -142966,7 +142977,7 @@ var Run = class _Run {
|
|
|
142966
142977
|
value: "completedAt",
|
|
142967
142978
|
configurable: true
|
|
142968
142979
|
});
|
|
142969
|
-
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
142980
|
+
})(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.55//Run#completedAt");
|
|
142970
142981
|
(function(__wf_cls, __wf_id) {
|
|
142971
142982
|
var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
|
|
142972
142983
|
__wf_reg.set(__wf_id, __wf_cls);
|
|
@@ -142976,7 +142987,7 @@ var Run = class _Run {
|
|
|
142976
142987
|
enumerable: false,
|
|
142977
142988
|
configurable: false
|
|
142978
142989
|
});
|
|
142979
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
142990
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.55//Run");
|
|
142980
142991
|
async function fetch2(...args) {
|
|
142981
142992
|
return globalThis.fetch(...args);
|
|
142982
142993
|
}
|
|
@@ -149736,11 +149747,11 @@ var Run = class _Run {
|
|
|
149736
149747
|
return this.getWritable();
|
|
149737
149748
|
}
|
|
149738
149749
|
};
|
|
149739
|
-
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149740
|
-
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149741
|
-
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149742
|
-
Run.prototype["getWritable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149743
|
-
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149750
|
+
Run.prototype["wakeUp"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#wakeUp");
|
|
149751
|
+
Run.prototype["cancel"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#cancel");
|
|
149752
|
+
Run.prototype["getReadable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getReadable");
|
|
149753
|
+
Run.prototype["getWritable"] = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#getWritable");
|
|
149754
|
+
var __step_Run$exists = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#exists");
|
|
149744
149755
|
Object.defineProperty(Run.prototype, "exists", {
|
|
149745
149756
|
get() {
|
|
149746
149757
|
return __step_Run$exists.call(this);
|
|
@@ -149748,7 +149759,7 @@ Object.defineProperty(Run.prototype, "exists", {
|
|
|
149748
149759
|
configurable: true,
|
|
149749
149760
|
enumerable: false
|
|
149750
149761
|
});
|
|
149751
|
-
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149762
|
+
var __step_Run$status = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#status");
|
|
149752
149763
|
Object.defineProperty(Run.prototype, "status", {
|
|
149753
149764
|
get() {
|
|
149754
149765
|
return __step_Run$status.call(this);
|
|
@@ -149756,7 +149767,7 @@ Object.defineProperty(Run.prototype, "status", {
|
|
|
149756
149767
|
configurable: true,
|
|
149757
149768
|
enumerable: false
|
|
149758
149769
|
});
|
|
149759
|
-
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149770
|
+
var __step_Run$returnValue = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#returnValue");
|
|
149760
149771
|
Object.defineProperty(Run.prototype, "returnValue", {
|
|
149761
149772
|
get() {
|
|
149762
149773
|
return __step_Run$returnValue.call(this);
|
|
@@ -149764,7 +149775,7 @@ Object.defineProperty(Run.prototype, "returnValue", {
|
|
|
149764
149775
|
configurable: true,
|
|
149765
149776
|
enumerable: false
|
|
149766
149777
|
});
|
|
149767
|
-
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149778
|
+
var __step_Run$workflowName = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#workflowName");
|
|
149768
149779
|
Object.defineProperty(Run.prototype, "workflowName", {
|
|
149769
149780
|
get() {
|
|
149770
149781
|
return __step_Run$workflowName.call(this);
|
|
@@ -149772,7 +149783,7 @@ Object.defineProperty(Run.prototype, "workflowName", {
|
|
|
149772
149783
|
configurable: true,
|
|
149773
149784
|
enumerable: false
|
|
149774
149785
|
});
|
|
149775
|
-
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149786
|
+
var __step_Run$createdAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#createdAt");
|
|
149776
149787
|
Object.defineProperty(Run.prototype, "createdAt", {
|
|
149777
149788
|
get() {
|
|
149778
149789
|
return __step_Run$createdAt.call(this);
|
|
@@ -149780,7 +149791,7 @@ Object.defineProperty(Run.prototype, "createdAt", {
|
|
|
149780
149791
|
configurable: true,
|
|
149781
149792
|
enumerable: false
|
|
149782
149793
|
});
|
|
149783
|
-
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149794
|
+
var __step_Run$startedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#startedAt");
|
|
149784
149795
|
Object.defineProperty(Run.prototype, "startedAt", {
|
|
149785
149796
|
get() {
|
|
149786
149797
|
return __step_Run$startedAt.call(this);
|
|
@@ -149788,7 +149799,7 @@ Object.defineProperty(Run.prototype, "startedAt", {
|
|
|
149788
149799
|
configurable: true,
|
|
149789
149800
|
enumerable: false
|
|
149790
149801
|
});
|
|
149791
|
-
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.
|
|
149802
|
+
var __step_Run$completedAt = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/run@5.0.0-beta.55//Run#completedAt");
|
|
149792
149803
|
Object.defineProperty(Run.prototype, "completedAt", {
|
|
149793
149804
|
get() {
|
|
149794
149805
|
return __step_Run$completedAt.call(this);
|
|
@@ -149805,7 +149816,7 @@ Object.defineProperty(Run.prototype, "completedAt", {
|
|
|
149805
149816
|
enumerable: false,
|
|
149806
149817
|
configurable: false
|
|
149807
149818
|
});
|
|
149808
|
-
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
149819
|
+
})(Run, "class//@workflow/core/runtime/run@5.0.0-beta.55//Run");
|
|
149809
149820
|
|
|
149810
149821
|
// ../core/dist/workflow/create-hook.js
|
|
149811
149822
|
aliasSerializationClass(RUN_CLASS_ID, Run);
|
|
@@ -157401,7 +157412,7 @@ globalThis.__private_workflows.set("workflow//./workflows/inline-execution//hook
|
|
|
157401
157412
|
var latestNoOpWarning = globalSingleton("@workflow/core//latestNoOpWarning", 1, () => ({
|
|
157402
157413
|
warned: false
|
|
157403
157414
|
}));
|
|
157404
|
-
var start = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/start@5.0.0-beta.
|
|
157415
|
+
var start = globalThis[/* @__PURE__ */ Symbol.for("WORKFLOW_USE_STEP")]("step//@workflow/core/runtime/start@5.0.0-beta.55//start");
|
|
157405
157416
|
|
|
157406
157417
|
// workflows/lineage.ts
|
|
157407
157418
|
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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55//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.55",
|
|
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.
|
|
20
|
+
"@workflow/cli": "5.0.0-beta.55",
|
|
21
|
+
"@workflow/core": "5.0.0-beta.55",
|
|
22
22
|
"@workflow/world": "5.0.0-beta.37",
|
|
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.55",
|
|
27
27
|
"zod": "~4.5.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|