@workflow/world-testing 5.0.0-beta.24 → 5.0.0-beta.25

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.
@@ -6,11 +6,6 @@
6
6
  "stepId": "step//./workflows/hooks//writeEvent"
7
7
  }
8
8
  },
9
- "workflows/addition.ts": {
10
- "add": {
11
- "stepId": "step//./workflows/addition//add"
12
- }
13
- },
14
9
  "workflows/noop.ts": {
15
10
  "noop": {
16
11
  "stepId": "step//./workflows/noop//noop"
@@ -46,9 +41,9 @@
46
41
  "stepId": "step//./workflows/inline-execution//writeToStream"
47
42
  }
48
43
  },
49
- "workflow/dist/stdlib.js": {
50
- "fetch": {
51
- "stepId": "step//./workflow/dist/stdlib//fetch"
44
+ "core/dist/runtime/start.js": {
45
+ "start": {
46
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.25//start"
52
47
  }
53
48
  },
54
49
  "workflows/retriable-and-fatal.ts": {
@@ -59,41 +54,46 @@
59
54
  "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
60
55
  }
61
56
  },
62
- "core/dist/runtime/start.js": {
63
- "start": {
64
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.24//start"
57
+ "workflows/addition.ts": {
58
+ "add": {
59
+ "stepId": "step//./workflows/addition//add"
60
+ }
61
+ },
62
+ "workflow/dist/stdlib.js": {
63
+ "fetch": {
64
+ "stepId": "step//./workflow/dist/stdlib//fetch"
65
65
  }
66
66
  },
67
67
  "core/dist/runtime/run.js": {
68
68
  "Run#cancel": {
69
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel"
69
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#cancel"
70
70
  },
71
71
  "Run#completedAt": {
72
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt"
72
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#completedAt"
73
73
  },
74
74
  "Run#createdAt": {
75
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt"
75
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#createdAt"
76
76
  },
77
77
  "Run#exists": {
78
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists"
78
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#exists"
79
79
  },
80
80
  "Run#getReadable": {
81
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable"
81
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#getReadable"
82
82
  },
83
83
  "Run#returnValue": {
84
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue"
84
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#returnValue"
85
85
  },
86
86
  "Run#startedAt": {
87
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt"
87
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#startedAt"
88
88
  },
89
89
  "Run#status": {
90
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status"
90
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#status"
91
91
  },
92
92
  "Run#wakeUp": {
93
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp"
93
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#wakeUp"
94
94
  },
95
95
  "Run#workflowName": {
96
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName"
96
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#workflowName"
97
97
  }
98
98
  }
99
99
  },
@@ -131,16 +131,16 @@
131
131
  }
132
132
  }
133
133
  },
134
- "workflows/addition.ts": {
135
- "addTenWorkflow": {
136
- "workflowId": "workflow//./workflows/addition//addTenWorkflow",
134
+ "workflows/noop.ts": {
135
+ "brokenWf": {
136
+ "workflowId": "workflow//./workflows/noop//brokenWf",
137
137
  "graph": {
138
138
  "nodes": [
139
139
  {
140
140
  "id": "start",
141
141
  "type": "workflowStart",
142
142
  "data": {
143
- "label": "Start: addTenWorkflow",
143
+ "label": "Start: brokenWf",
144
144
  "nodeKind": "workflow_start"
145
145
  }
146
146
  },
@@ -162,16 +162,18 @@
162
162
  }
163
163
  ]
164
164
  }
165
- },
166
- "addition": {
167
- "workflowId": "workflow//./workflows/addition//addition",
165
+ }
166
+ },
167
+ "workflows/null-byte.ts": {
168
+ "nullByteWorkflow": {
169
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
168
170
  "graph": {
169
171
  "nodes": [
170
172
  {
171
173
  "id": "start",
172
174
  "type": "workflowStart",
173
175
  "data": {
174
- "label": "Start: addition",
176
+ "label": "Start: nullByteWorkflow",
175
177
  "nodeKind": "workflow_start"
176
178
  }
177
179
  },
@@ -195,16 +197,16 @@
195
197
  }
196
198
  }
197
199
  },
198
- "workflows/noop.ts": {
199
- "brokenWf": {
200
- "workflowId": "workflow//./workflows/noop//brokenWf",
200
+ "workflows/inline-execution.ts": {
201
+ "hookWorkflow": {
202
+ "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
201
203
  "graph": {
202
204
  "nodes": [
203
205
  {
204
206
  "id": "start",
205
207
  "type": "workflowStart",
206
208
  "data": {
207
- "label": "Start: brokenWf",
209
+ "label": "Start: hookWorkflow",
208
210
  "nodeKind": "workflow_start"
209
211
  }
210
212
  },
@@ -226,18 +228,16 @@
226
228
  }
227
229
  ]
228
230
  }
229
- }
230
- },
231
- "workflows/null-byte.ts": {
232
- "nullByteWorkflow": {
233
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
231
+ },
232
+ "parallelStepsWorkflow": {
233
+ "workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
234
234
  "graph": {
235
235
  "nodes": [
236
236
  {
237
237
  "id": "start",
238
238
  "type": "workflowStart",
239
239
  "data": {
240
- "label": "Start: nullByteWorkflow",
240
+ "label": "Start: parallelStepsWorkflow",
241
241
  "nodeKind": "workflow_start"
242
242
  }
243
243
  },
@@ -259,18 +259,16 @@
259
259
  }
260
260
  ]
261
261
  }
262
- }
263
- },
264
- "workflows/inline-execution.ts": {
265
- "hookWorkflow": {
266
- "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
262
+ },
263
+ "sequentialStepsWithStreamWorkflow": {
264
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
267
265
  "graph": {
268
266
  "nodes": [
269
267
  {
270
268
  "id": "start",
271
269
  "type": "workflowStart",
272
270
  "data": {
273
- "label": "Start: hookWorkflow",
271
+ "label": "Start: sequentialStepsWithStreamWorkflow",
274
272
  "nodeKind": "workflow_start"
275
273
  }
276
274
  },
@@ -293,15 +291,15 @@
293
291
  ]
294
292
  }
295
293
  },
296
- "parallelStepsWorkflow": {
297
- "workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
294
+ "sequentialStepsWorkflow": {
295
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
298
296
  "graph": {
299
297
  "nodes": [
300
298
  {
301
299
  "id": "start",
302
300
  "type": "workflowStart",
303
301
  "data": {
304
- "label": "Start: parallelStepsWorkflow",
302
+ "label": "Start: sequentialStepsWorkflow",
305
303
  "nodeKind": "workflow_start"
306
304
  }
307
305
  },
@@ -324,18 +322,26 @@
324
322
  ]
325
323
  }
326
324
  },
327
- "sequentialStepsWithStreamWorkflow": {
328
- "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
325
+ "sleepWorkflow": {
326
+ "workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
329
327
  "graph": {
330
328
  "nodes": [
331
329
  {
332
330
  "id": "start",
333
331
  "type": "workflowStart",
334
332
  "data": {
335
- "label": "Start: sequentialStepsWithStreamWorkflow",
333
+ "label": "Start: sleepWorkflow",
336
334
  "nodeKind": "workflow_start"
337
335
  }
338
336
  },
337
+ {
338
+ "id": "node_0",
339
+ "type": "primitive",
340
+ "data": {
341
+ "label": "sleep",
342
+ "nodeKind": "primitive"
343
+ }
344
+ },
339
345
  {
340
346
  "id": "end",
341
347
  "type": "workflowEnd",
@@ -347,23 +353,29 @@
347
353
  ],
348
354
  "edges": [
349
355
  {
350
- "id": "e_start_end",
356
+ "id": "e_start_node_0",
351
357
  "source": "start",
358
+ "target": "node_0",
359
+ "type": "default"
360
+ },
361
+ {
362
+ "id": "e_node_0_end",
363
+ "source": "node_0",
352
364
  "target": "end",
353
365
  "type": "default"
354
366
  }
355
367
  ]
356
368
  }
357
369
  },
358
- "sequentialStepsWorkflow": {
359
- "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
370
+ "threeBatchesOfFiveWorkflow": {
371
+ "workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
360
372
  "graph": {
361
373
  "nodes": [
362
374
  {
363
375
  "id": "start",
364
376
  "type": "workflowStart",
365
377
  "data": {
366
- "label": "Start: sequentialStepsWorkflow",
378
+ "label": "Start: threeBatchesOfFiveWorkflow",
367
379
  "nodeKind": "workflow_start"
368
380
  }
369
381
  },
@@ -385,27 +397,21 @@
385
397
  }
386
398
  ]
387
399
  }
388
- },
389
- "sleepWorkflow": {
390
- "workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
400
+ }
401
+ },
402
+ "workflows/retriable-and-fatal.ts": {
403
+ "retryableAndFatalErrorWorkflow": {
404
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
391
405
  "graph": {
392
406
  "nodes": [
393
407
  {
394
408
  "id": "start",
395
409
  "type": "workflowStart",
396
410
  "data": {
397
- "label": "Start: sleepWorkflow",
411
+ "label": "Start: retryableAndFatalErrorWorkflow",
398
412
  "nodeKind": "workflow_start"
399
413
  }
400
414
  },
401
- {
402
- "id": "node_0",
403
- "type": "primitive",
404
- "data": {
405
- "label": "sleep",
406
- "nodeKind": "primitive"
407
- }
408
- },
409
415
  {
410
416
  "id": "end",
411
417
  "type": "workflowEnd",
@@ -417,29 +423,25 @@
417
423
  ],
418
424
  "edges": [
419
425
  {
420
- "id": "e_start_node_0",
426
+ "id": "e_start_end",
421
427
  "source": "start",
422
- "target": "node_0",
423
- "type": "default"
424
- },
425
- {
426
- "id": "e_node_0_end",
427
- "source": "node_0",
428
428
  "target": "end",
429
429
  "type": "default"
430
430
  }
431
431
  ]
432
432
  }
433
- },
434
- "threeBatchesOfFiveWorkflow": {
435
- "workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
433
+ }
434
+ },
435
+ "workflows/addition.ts": {
436
+ "addTenWorkflow": {
437
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
436
438
  "graph": {
437
439
  "nodes": [
438
440
  {
439
441
  "id": "start",
440
442
  "type": "workflowStart",
441
443
  "data": {
442
- "label": "Start: threeBatchesOfFiveWorkflow",
444
+ "label": "Start: addTenWorkflow",
443
445
  "nodeKind": "workflow_start"
444
446
  }
445
447
  },
@@ -461,18 +463,16 @@
461
463
  }
462
464
  ]
463
465
  }
464
- }
465
- },
466
- "workflows/retriable-and-fatal.ts": {
467
- "retryableAndFatalErrorWorkflow": {
468
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
466
+ },
467
+ "addition": {
468
+ "workflowId": "workflow//./workflows/addition//addition",
469
469
  "graph": {
470
470
  "nodes": [
471
471
  {
472
472
  "id": "start",
473
473
  "type": "workflowStart",
474
474
  "data": {
475
- "label": "Start: retryableAndFatalErrorWorkflow",
475
+ "label": "Start: addition",
476
476
  "nodeKind": "workflow_start"
477
477
  }
478
478
  },
@@ -500,7 +500,7 @@
500
500
  "classes": {
501
501
  "core/dist/runtime/run.js": {
502
502
  "Run": {
503
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.24//Run"
503
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.25//Run"
504
504
  }
505
505
  }
506
506
  }
@@ -24007,7 +24007,7 @@ var version2;
24007
24007
  var init_version = __esm({
24008
24008
  "../core/dist/version.js"() {
24009
24009
  "use strict";
24010
- version2 = "5.0.0-beta.24";
24010
+ version2 = "5.0.0-beta.25";
24011
24011
  }
24012
24012
  });
24013
24013
 
@@ -25921,7 +25921,7 @@ function attachAbortListenerOnce(signal, streamName, runId, cryptoKey, ops) {
25921
25921
  once: true
25922
25922
  });
25923
25923
  }
25924
- function getExternalReducers(global2 = globalThis, ops, runId, cryptoKey, framedByteStreams = false) {
25924
+ function getExternalReducers(global2 = globalThis, ops, runId, cryptoKey, framedByteStreams = false, runReadyBarrier) {
25925
25925
  return {
25926
25926
  ...getAllBaseReducers(global2),
25927
25927
  ReadableStream: /* @__PURE__ */ __name((value) => {
@@ -25934,7 +25934,7 @@ function getExternalReducers(global2 = globalThis, ops, runId, cryptoKey, framed
25934
25934
  const streamId = (global2[STABLE_ULID] || defaultUlid)();
25935
25935
  const name = `strm_${streamId}`;
25936
25936
  const type = getStreamType(value);
25937
- const writable = new WorkflowServerWritableStream(runId, name);
25937
+ const writable = new WorkflowServerWritableStream(runId, name, runReadyBarrier);
25938
25938
  if (type === "bytes") {
25939
25939
  if (framedByteStreams) {
25940
25940
  ops.push(value.pipeThrough(getByteFramingStream()).pipeTo(writable));
@@ -25942,7 +25942,7 @@ function getExternalReducers(global2 = globalThis, ops, runId, cryptoKey, framed
25942
25942
  ops.push(value.pipeTo(writable));
25943
25943
  }
25944
25944
  } else {
25945
- ops.push(value.pipeThrough(getSerializeStream(getExternalReducers(global2, ops, runId, cryptoKey, framedByteStreams), cryptoKey)).pipeTo(writable));
25945
+ ops.push(value.pipeThrough(getSerializeStream(getExternalReducers(global2, ops, runId, cryptoKey, framedByteStreams, runReadyBarrier), cryptoKey)).pipeTo(writable));
25946
25946
  }
25947
25947
  const s = {
25948
25948
  name
@@ -26048,7 +26048,7 @@ function getWorkflowReducers(global2 = globalThis) {
26048
26048
  }, "AbortSignal")
26049
26049
  };
26050
26050
  }
26051
- function getStepReducers(global2 = globalThis, ops, runId, cryptoKey, framedByteStreams = false) {
26051
+ function getStepReducers(global2 = globalThis, ops, runId, cryptoKey, framedByteStreams = false, runReadyBarrier) {
26052
26052
  return {
26053
26053
  ...getAllBaseReducers(global2),
26054
26054
  ReadableStream: /* @__PURE__ */ __name((value) => {
@@ -26066,7 +26066,7 @@ function getStepReducers(global2 = globalThis, ops, runId, cryptoKey, framedByte
26066
26066
  name = `strm_${streamId}`;
26067
26067
  type = getStreamType(value);
26068
26068
  framing = type === "bytes" && framedByteStreams ? "framed-v1" : framing;
26069
- const writable = new WorkflowServerWritableStream(runId, name);
26069
+ const writable = new WorkflowServerWritableStream(runId, name, runReadyBarrier);
26070
26070
  if (type === "bytes") {
26071
26071
  if (framing === "framed-v1") {
26072
26072
  ops.push(value.pipeThrough(getByteFramingStream()).pipeTo(writable));
@@ -26074,7 +26074,7 @@ function getStepReducers(global2 = globalThis, ops, runId, cryptoKey, framedByte
26074
26074
  ops.push(value.pipeTo(writable));
26075
26075
  }
26076
26076
  } else {
26077
- ops.push(value.pipeThrough(getSerializeStream(getStepReducers(global2, ops, runId, cryptoKey, framedByteStreams), cryptoKey)).pipeTo(writable));
26077
+ ops.push(value.pipeThrough(getSerializeStream(getStepReducers(global2, ops, runId, cryptoKey, framedByteStreams, runReadyBarrier), cryptoKey)).pipeTo(writable));
26078
26078
  }
26079
26079
  }
26080
26080
  const s = {
@@ -26580,16 +26580,16 @@ async function hydrateStepArguments(value, runId, key, ops = [], global2 = globa
26580
26580
  await recordCompression(compressionStats, "deserialize");
26581
26581
  return result;
26582
26582
  }
26583
- async function dehydrateStepReturnValue(value, runId, key, ops = [], global2 = globalThis, v1Compat = false, framedByteStreams = false, compression = false) {
26583
+ async function dehydrateStepReturnValue(value, runId, key, ops = [], global2 = globalThis, v1Compat = false, framedByteStreams = false, compression = false, runReadyBarrier) {
26584
26584
  if (v1Compat) {
26585
- const str = stringify(value, getStepReducers(global2, ops, runId, key, framedByteStreams));
26585
+ const str = stringify(value, getStepReducers(global2, ops, runId, key, framedByteStreams, runReadyBarrier));
26586
26586
  return revive(str);
26587
26587
  }
26588
26588
  try {
26589
26589
  const compressionStats = {};
26590
26590
  const result = await serialize2(value, key, {
26591
26591
  global: global2,
26592
- extraReducers: getStreamAndRequestReducers(getStepReducers(global2, ops, runId, key, framedByteStreams)),
26592
+ extraReducers: getStreamAndRequestReducers(getStepReducers(global2, ops, runId, key, framedByteStreams, runReadyBarrier)),
26593
26593
  compression,
26594
26594
  compressionStats
26595
26595
  });
@@ -26729,7 +26729,16 @@ var init_serialization2 = __esm({
26729
26729
  static {
26730
26730
  __name(this, "WorkflowServerWritableStream");
26731
26731
  }
26732
- constructor(runId, name) {
26732
+ /**
26733
+ * @param runReadyBarrier Turbo mode only: a promise that resolves once the
26734
+ * backgrounded `run_started` has landed. When the step body runs
26735
+ * optimistically (before `run_started` is durable), the first chunk write to
26736
+ * a brand-new stream would otherwise reach the World before the run exists
26737
+ * and be rejected as run-not-found. Awaiting this once before the first
26738
+ * flush/close orders the write after the run's creation. `undefined` outside
26739
+ * turbo and on the await path, where the run was already durable.
26740
+ */
26741
+ constructor(runId, name, runReadyBarrier) {
26733
26742
  if (typeof runId !== "string") {
26734
26743
  throw new WorkflowRuntimeError(`"runId" must be a string, got "${typeof runId}"`);
26735
26744
  }
@@ -26737,6 +26746,16 @@ var init_serialization2 = __esm({
26737
26746
  throw new WorkflowRuntimeError(`"name" is required, got "${name}"`);
26738
26747
  }
26739
26748
  const worldPromise = getWorldLazy();
26749
+ let pendingRunReady = runReadyBarrier;
26750
+ const ensureRunReady = /* @__PURE__ */ __name(async () => {
26751
+ if (pendingRunReady) {
26752
+ try {
26753
+ await pendingRunReady;
26754
+ } catch {
26755
+ }
26756
+ pendingRunReady = void 0;
26757
+ }
26758
+ }, "ensureRunReady");
26740
26759
  let buffer2 = [];
26741
26760
  let flushTimer = null;
26742
26761
  let flushPromise = null;
@@ -26747,6 +26766,7 @@ var init_serialization2 = __esm({
26747
26766
  flushTimer = null;
26748
26767
  }
26749
26768
  if (buffer2.length === 0) return;
26769
+ await ensureRunReady();
26750
26770
  const chunksToFlush = buffer2.slice();
26751
26771
  const world = await worldPromise;
26752
26772
  if (resolvedFlushIntervalMs === void 0) {
@@ -26796,6 +26816,7 @@ var init_serialization2 = __esm({
26796
26816
  flushPromise = null;
26797
26817
  }
26798
26818
  await flush();
26819
+ await ensureRunReady();
26799
26820
  const world = await worldPromise;
26800
26821
  await world.streams.close(runId, name);
26801
26822
  },
@@ -27190,7 +27211,7 @@ __name(start, "start");
27190
27211
  value: "start",
27191
27212
  configurable: true
27192
27213
  });
27193
- })(start, "step//@workflow/core/runtime/start@5.0.0-beta.24//start");
27214
+ })(start, "step//@workflow/core/runtime/start@5.0.0-beta.25//start");
27194
27215
  function isRetryableStartError(err) {
27195
27216
  if (ThrottleError.is(err)) return true;
27196
27217
  if (WorkflowWorldError.is(err) && err.status && err.status >= 500) return true;
@@ -27523,7 +27544,7 @@ var Run = class _Run {
27523
27544
  value: "wakeUp",
27524
27545
  configurable: true
27525
27546
  });
27526
- })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#wakeUp");
27547
+ })(Run.prototype["wakeUp"], "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#wakeUp");
27527
27548
  (function(__wf_fn, __wf_id) {
27528
27549
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27529
27550
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27532,7 +27553,7 @@ var Run = class _Run {
27532
27553
  value: "cancel",
27533
27554
  configurable: true
27534
27555
  });
27535
- })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#cancel");
27556
+ })(Run.prototype["cancel"], "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#cancel");
27536
27557
  (function(__wf_fn, __wf_id) {
27537
27558
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27538
27559
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27541,7 +27562,7 @@ var Run = class _Run {
27541
27562
  value: "getReadable",
27542
27563
  configurable: true
27543
27564
  });
27544
- })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#getReadable");
27565
+ })(Run.prototype["getReadable"], "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#getReadable");
27545
27566
  (function(__wf_fn, __wf_id) {
27546
27567
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27547
27568
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27550,7 +27571,7 @@ var Run = class _Run {
27550
27571
  value: "exists",
27551
27572
  configurable: true
27552
27573
  });
27553
- })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#exists");
27574
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "exists").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#exists");
27554
27575
  (function(__wf_fn, __wf_id) {
27555
27576
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27556
27577
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27559,7 +27580,7 @@ var Run = class _Run {
27559
27580
  value: "status",
27560
27581
  configurable: true
27561
27582
  });
27562
- })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#status");
27583
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "status").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#status");
27563
27584
  (function(__wf_fn, __wf_id) {
27564
27585
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27565
27586
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27568,7 +27589,7 @@ var Run = class _Run {
27568
27589
  value: "returnValue",
27569
27590
  configurable: true
27570
27591
  });
27571
- })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#returnValue");
27592
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "returnValue").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#returnValue");
27572
27593
  (function(__wf_fn, __wf_id) {
27573
27594
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27574
27595
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27577,7 +27598,7 @@ var Run = class _Run {
27577
27598
  value: "workflowName",
27578
27599
  configurable: true
27579
27600
  });
27580
- })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#workflowName");
27601
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "workflowName").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#workflowName");
27581
27602
  (function(__wf_fn, __wf_id) {
27582
27603
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27583
27604
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27586,7 +27607,7 @@ var Run = class _Run {
27586
27607
  value: "createdAt",
27587
27608
  configurable: true
27588
27609
  });
27589
- })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#createdAt");
27610
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "createdAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#createdAt");
27590
27611
  (function(__wf_fn, __wf_id) {
27591
27612
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27592
27613
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27595,7 +27616,7 @@ var Run = class _Run {
27595
27616
  value: "startedAt",
27596
27617
  configurable: true
27597
27618
  });
27598
- })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#startedAt");
27619
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "startedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#startedAt");
27599
27620
  (function(__wf_fn, __wf_id) {
27600
27621
  var __wf_sym = /* @__PURE__ */ Symbol.for("@workflow/core//registeredSteps"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27601
27622
  __wf_reg.set(__wf_id, __wf_fn);
@@ -27604,7 +27625,7 @@ var Run = class _Run {
27604
27625
  value: "completedAt",
27605
27626
  configurable: true
27606
27627
  });
27607
- })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.24//Run#completedAt");
27628
+ })(Object.getOwnPropertyDescriptor(Run.prototype, "completedAt").get, "step//@workflow/core/runtime/run@5.0.0-beta.25//Run#completedAt");
27608
27629
  (function(__wf_cls, __wf_id) {
27609
27630
  var __wf_sym = /* @__PURE__ */ Symbol.for("workflow-class-registry"), __wf_reg = globalThis[__wf_sym] || (globalThis[__wf_sym] = /* @__PURE__ */ new Map());
27610
27631
  __wf_reg.set(__wf_id, __wf_cls);
@@ -27614,7 +27635,7 @@ var Run = class _Run {
27614
27635
  enumerable: false,
27615
27636
  configurable: false
27616
27637
  });
27617
- })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.24//Run");
27638
+ })(Run, "class//@workflow/core/runtime/run@5.0.0-beta.25//Run");
27618
27639
 
27619
27640
  // ../workflow/dist/stdlib.js
27620
27641
  async function fetch2(...args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/world-testing",
3
- "version": "5.0.0-beta.24",
3
+ "version": "5.0.0-beta.25",
4
4
  "description": "Testing utilities and World implementation for Workflow SDK",
5
5
  "main": "dist/src/index.mjs",
6
6
  "files": [
@@ -20,11 +20,11 @@
20
20
  "chalk": "5.6.2",
21
21
  "hono": "4.12.25",
22
22
  "jsonlines": "0.1.1",
23
- "zod": "4.3.6",
24
- "@workflow/cli": "5.0.0-beta.24",
25
- "@workflow/core": "5.0.0-beta.24",
26
- "@workflow/world": "5.0.0-beta.13",
27
- "workflow": "5.0.0-beta.24"
23
+ "zod": "~4.3.6",
24
+ "@workflow/cli": "5.0.0-beta.25",
25
+ "@workflow/core": "5.0.0-beta.25",
26
+ "@workflow/world": "5.0.0-beta.14",
27
+ "workflow": "5.0.0-beta.25"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jsonlines": "0.1.5",