@workflow/world-testing 5.0.0-beta.40 → 5.0.0-beta.41

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.
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "steps": {
4
- "workflows/hooks.ts": {
5
- "writeEvent": {
6
- "stepId": "step//./workflows/hooks//writeEvent"
7
- }
8
- },
9
- "workflows/event-limit.ts": {
10
- "tick": {
11
- "stepId": "step//./workflows/event-limit//tick"
4
+ "workflows/signal-cost.ts": {
5
+ "trivialStep": {
6
+ "stepId": "step//./workflows/signal-cost//trivialStep"
12
7
  }
13
8
  },
14
9
  "workflows/addition.ts": {
@@ -16,6 +11,11 @@
16
11
  "stepId": "step//./workflows/addition//add"
17
12
  }
18
13
  },
14
+ "workflows/hooks.ts": {
15
+ "writeEvent": {
16
+ "stepId": "step//./workflows/hooks//writeEvent"
17
+ }
18
+ },
19
19
  "workflows/null-byte.ts": {
20
20
  "nullByteStep": {
21
21
  "stepId": "step//./workflows/null-byte//nullByteStep"
@@ -26,6 +26,19 @@
26
26
  "stepId": "step//./workflows/lineage//noop"
27
27
  }
28
28
  },
29
+ "workflows/retriable-and-fatal.ts": {
30
+ "stepThatFails": {
31
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
32
+ },
33
+ "stepThatThrowsRetryableError": {
34
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
35
+ }
36
+ },
37
+ "workflows/event-limit.ts": {
38
+ "tick": {
39
+ "stepId": "step//./workflows/event-limit//tick"
40
+ }
41
+ },
29
42
  "workflows/inline-execution.ts": {
30
43
  "add": {
31
44
  "stepId": "step//./workflows/inline-execution//add"
@@ -37,6 +50,16 @@
37
50
  "stepId": "step//./workflows/inline-execution//writeToStream"
38
51
  }
39
52
  },
53
+ "workflows/noop.ts": {
54
+ "noop": {
55
+ "stepId": "step//./workflows/noop//noop"
56
+ }
57
+ },
58
+ "workflow/dist/stdlib.js": {
59
+ "fetch": {
60
+ "stepId": "step//./workflow/dist/stdlib//fetch"
61
+ }
62
+ },
40
63
  "workflow/dist/internal/builtins.js": {
41
64
  "__builtin_response_array_buffer": {
42
65
  "stepId": "__builtin_response_array_buffer"
@@ -51,151 +74,55 @@
51
74
  "stepId": "__builtin_set_attributes"
52
75
  }
53
76
  },
54
- "workflows/noop.ts": {
55
- "noop": {
56
- "stepId": "step//./workflows/noop//noop"
57
- }
58
- },
59
- "workflows/signal-cost.ts": {
60
- "trivialStep": {
61
- "stepId": "step//./workflows/signal-cost//trivialStep"
62
- }
63
- },
64
- "workflow/dist/stdlib.js": {
65
- "fetch": {
66
- "stepId": "step//./workflow/dist/stdlib//fetch"
67
- }
68
- },
69
- "workflows/retriable-and-fatal.ts": {
70
- "stepThatFails": {
71
- "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
72
- },
73
- "stepThatThrowsRetryableError": {
74
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
75
- }
76
- },
77
77
  "core/dist/runtime/start.js": {
78
78
  "start": {
79
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.40//start"
79
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.41//start"
80
80
  }
81
81
  },
82
82
  "core/dist/runtime/run.js": {
83
83
  "Run#cancel": {
84
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#cancel"
84
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#cancel"
85
85
  },
86
86
  "Run#completedAt": {
87
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#completedAt"
87
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#completedAt"
88
88
  },
89
89
  "Run#createdAt": {
90
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#createdAt"
90
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#createdAt"
91
91
  },
92
92
  "Run#exists": {
93
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#exists"
93
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#exists"
94
94
  },
95
95
  "Run#getReadable": {
96
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#getReadable"
96
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#getReadable"
97
97
  },
98
98
  "Run#returnValue": {
99
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#returnValue"
99
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#returnValue"
100
100
  },
101
101
  "Run#startedAt": {
102
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#startedAt"
102
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#startedAt"
103
103
  },
104
104
  "Run#status": {
105
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#status"
105
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#status"
106
106
  },
107
107
  "Run#wakeUp": {
108
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#wakeUp"
108
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#wakeUp"
109
109
  },
110
110
  "Run#workflowName": {
111
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.40//Run#workflowName"
111
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.41//Run#workflowName"
112
112
  }
113
113
  }
114
114
  },
115
115
  "workflows": {
116
- "workflows/hooks.ts": {
117
- "collectWithHook": {
118
- "workflowId": "workflow//./workflows/hooks//collectWithHook",
119
- "graph": {
120
- "nodes": [
121
- {
122
- "id": "start",
123
- "type": "workflowStart",
124
- "data": {
125
- "label": "Start: collectWithHook",
126
- "nodeKind": "workflow_start"
127
- }
128
- },
129
- {
130
- "id": "node_0",
131
- "type": "step",
132
- "data": {
133
- "label": "writeEvent",
134
- "nodeKind": "step",
135
- "stepId": "step//./workflows/hooks//writeEvent"
136
- }
137
- },
138
- {
139
- "id": "node_1",
140
- "type": "step",
141
- "data": {
142
- "label": "writeEvent",
143
- "nodeKind": "step",
144
- "stepId": "step//./workflows/hooks//writeEvent"
145
- },
146
- "metadata": {
147
- "loopId": "loop_0",
148
- "loopIsAwait": true
149
- }
150
- },
151
- {
152
- "id": "end",
153
- "type": "workflowEnd",
154
- "data": {
155
- "label": "Return",
156
- "nodeKind": "workflow_end"
157
- }
158
- }
159
- ],
160
- "edges": [
161
- {
162
- "id": "e_start_node_0",
163
- "source": "start",
164
- "target": "node_0",
165
- "type": "default"
166
- },
167
- {
168
- "id": "e_node_1_back_node_1",
169
- "source": "node_1",
170
- "target": "node_1",
171
- "type": "loop"
172
- },
173
- {
174
- "id": "e_node_0_node_1",
175
- "source": "node_0",
176
- "target": "node_1",
177
- "type": "default"
178
- },
179
- {
180
- "id": "e_node_1_end",
181
- "source": "node_1",
182
- "target": "end",
183
- "type": "default"
184
- }
185
- ]
186
- }
187
- }
188
- },
189
- "workflows/event-limit.ts": {
190
- "runawayWorkflow": {
191
- "workflowId": "workflow//./workflows/event-limit//runawayWorkflow",
116
+ "workflows/signal-cost.ts": {
117
+ "signalCostWorkflow": {
118
+ "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
192
119
  "graph": {
193
120
  "nodes": [
194
121
  {
195
122
  "id": "start",
196
123
  "type": "workflowStart",
197
124
  "data": {
198
- "label": "Start: runawayWorkflow",
125
+ "label": "Start: signalCostWorkflow",
199
126
  "nodeKind": "workflow_start"
200
127
  }
201
128
  },
@@ -203,9 +130,9 @@
203
130
  "id": "node_0",
204
131
  "type": "step",
205
132
  "data": {
206
- "label": "tick",
133
+ "label": "trivialStep",
207
134
  "nodeKind": "step",
208
- "stepId": "step//./workflows/event-limit//tick"
135
+ "stepId": "step//./workflows/signal-cost//trivialStep"
209
136
  },
210
137
  "metadata": {
211
138
  "loopId": "loop_0"
@@ -367,6 +294,79 @@
367
294
  }
368
295
  }
369
296
  },
297
+ "workflows/hooks.ts": {
298
+ "collectWithHook": {
299
+ "workflowId": "workflow//./workflows/hooks//collectWithHook",
300
+ "graph": {
301
+ "nodes": [
302
+ {
303
+ "id": "start",
304
+ "type": "workflowStart",
305
+ "data": {
306
+ "label": "Start: collectWithHook",
307
+ "nodeKind": "workflow_start"
308
+ }
309
+ },
310
+ {
311
+ "id": "node_0",
312
+ "type": "step",
313
+ "data": {
314
+ "label": "writeEvent",
315
+ "nodeKind": "step",
316
+ "stepId": "step//./workflows/hooks//writeEvent"
317
+ }
318
+ },
319
+ {
320
+ "id": "node_1",
321
+ "type": "step",
322
+ "data": {
323
+ "label": "writeEvent",
324
+ "nodeKind": "step",
325
+ "stepId": "step//./workflows/hooks//writeEvent"
326
+ },
327
+ "metadata": {
328
+ "loopId": "loop_0",
329
+ "loopIsAwait": true
330
+ }
331
+ },
332
+ {
333
+ "id": "end",
334
+ "type": "workflowEnd",
335
+ "data": {
336
+ "label": "Return",
337
+ "nodeKind": "workflow_end"
338
+ }
339
+ }
340
+ ],
341
+ "edges": [
342
+ {
343
+ "id": "e_start_node_0",
344
+ "source": "start",
345
+ "target": "node_0",
346
+ "type": "default"
347
+ },
348
+ {
349
+ "id": "e_node_1_back_node_1",
350
+ "source": "node_1",
351
+ "target": "node_1",
352
+ "type": "loop"
353
+ },
354
+ {
355
+ "id": "e_node_0_node_1",
356
+ "source": "node_0",
357
+ "target": "node_1",
358
+ "type": "default"
359
+ },
360
+ {
361
+ "id": "e_node_1_end",
362
+ "source": "node_1",
363
+ "target": "end",
364
+ "type": "default"
365
+ }
366
+ ]
367
+ }
368
+ }
369
+ },
370
370
  "workflows/null-byte.ts": {
371
371
  "nullByteWorkflow": {
372
372
  "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
@@ -443,7 +443,7 @@
443
443
  "data": {
444
444
  "label": "start",
445
445
  "nodeKind": "step",
446
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.40//start"
446
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.41//start"
447
447
  }
448
448
  },
449
449
  {
@@ -550,7 +550,7 @@
550
550
  "data": {
551
551
  "label": "start",
552
552
  "nodeKind": "step",
553
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.40//start"
553
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.41//start"
554
554
  }
555
555
  },
556
556
  {
@@ -611,7 +611,7 @@
611
611
  "data": {
612
612
  "label": "start",
613
613
  "nodeKind": "step",
614
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.40//start"
614
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.41//start"
615
615
  }
616
616
  },
617
617
  {
@@ -692,6 +692,111 @@
692
692
  }
693
693
  }
694
694
  },
695
+ "workflows/retriable-and-fatal.ts": {
696
+ "retryableAndFatalErrorWorkflow": {
697
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
698
+ "graph": {
699
+ "nodes": [
700
+ {
701
+ "id": "start",
702
+ "type": "workflowStart",
703
+ "data": {
704
+ "label": "Start: retryableAndFatalErrorWorkflow",
705
+ "nodeKind": "workflow_start"
706
+ }
707
+ },
708
+ {
709
+ "id": "node_0",
710
+ "type": "step",
711
+ "data": {
712
+ "label": "stepThatThrowsRetryableError",
713
+ "nodeKind": "step",
714
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
715
+ }
716
+ },
717
+ {
718
+ "id": "end",
719
+ "type": "workflowEnd",
720
+ "data": {
721
+ "label": "Return",
722
+ "nodeKind": "workflow_end"
723
+ }
724
+ }
725
+ ],
726
+ "edges": [
727
+ {
728
+ "id": "e_start_node_0",
729
+ "source": "start",
730
+ "target": "node_0",
731
+ "type": "default"
732
+ },
733
+ {
734
+ "id": "e_node_0_end",
735
+ "source": "node_0",
736
+ "target": "end",
737
+ "type": "default"
738
+ }
739
+ ]
740
+ }
741
+ }
742
+ },
743
+ "workflows/event-limit.ts": {
744
+ "runawayWorkflow": {
745
+ "workflowId": "workflow//./workflows/event-limit//runawayWorkflow",
746
+ "graph": {
747
+ "nodes": [
748
+ {
749
+ "id": "start",
750
+ "type": "workflowStart",
751
+ "data": {
752
+ "label": "Start: runawayWorkflow",
753
+ "nodeKind": "workflow_start"
754
+ }
755
+ },
756
+ {
757
+ "id": "node_0",
758
+ "type": "step",
759
+ "data": {
760
+ "label": "tick",
761
+ "nodeKind": "step",
762
+ "stepId": "step//./workflows/event-limit//tick"
763
+ },
764
+ "metadata": {
765
+ "loopId": "loop_0"
766
+ }
767
+ },
768
+ {
769
+ "id": "end",
770
+ "type": "workflowEnd",
771
+ "data": {
772
+ "label": "Return",
773
+ "nodeKind": "workflow_end"
774
+ }
775
+ }
776
+ ],
777
+ "edges": [
778
+ {
779
+ "id": "e_node_0_back_node_0",
780
+ "source": "node_0",
781
+ "target": "node_0",
782
+ "type": "loop"
783
+ },
784
+ {
785
+ "id": "e_start_node_0",
786
+ "source": "start",
787
+ "target": "node_0",
788
+ "type": "default"
789
+ },
790
+ {
791
+ "id": "e_node_0_end",
792
+ "source": "node_0",
793
+ "target": "end",
794
+ "type": "default"
795
+ }
796
+ ]
797
+ }
798
+ }
799
+ },
695
800
  "workflows/inline-execution.ts": {
696
801
  "hookWorkflow": {
697
802
  "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
@@ -1654,117 +1759,12 @@
1654
1759
  ]
1655
1760
  }
1656
1761
  }
1657
- },
1658
- "workflows/signal-cost.ts": {
1659
- "signalCostWorkflow": {
1660
- "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
1661
- "graph": {
1662
- "nodes": [
1663
- {
1664
- "id": "start",
1665
- "type": "workflowStart",
1666
- "data": {
1667
- "label": "Start: signalCostWorkflow",
1668
- "nodeKind": "workflow_start"
1669
- }
1670
- },
1671
- {
1672
- "id": "node_0",
1673
- "type": "step",
1674
- "data": {
1675
- "label": "trivialStep",
1676
- "nodeKind": "step",
1677
- "stepId": "step//./workflows/signal-cost//trivialStep"
1678
- },
1679
- "metadata": {
1680
- "loopId": "loop_0"
1681
- }
1682
- },
1683
- {
1684
- "id": "end",
1685
- "type": "workflowEnd",
1686
- "data": {
1687
- "label": "Return",
1688
- "nodeKind": "workflow_end"
1689
- }
1690
- }
1691
- ],
1692
- "edges": [
1693
- {
1694
- "id": "e_node_0_back_node_0",
1695
- "source": "node_0",
1696
- "target": "node_0",
1697
- "type": "loop"
1698
- },
1699
- {
1700
- "id": "e_start_node_0",
1701
- "source": "start",
1702
- "target": "node_0",
1703
- "type": "default"
1704
- },
1705
- {
1706
- "id": "e_node_0_end",
1707
- "source": "node_0",
1708
- "target": "end",
1709
- "type": "default"
1710
- }
1711
- ]
1712
- }
1713
- }
1714
- },
1715
- "workflows/retriable-and-fatal.ts": {
1716
- "retryableAndFatalErrorWorkflow": {
1717
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
1718
- "graph": {
1719
- "nodes": [
1720
- {
1721
- "id": "start",
1722
- "type": "workflowStart",
1723
- "data": {
1724
- "label": "Start: retryableAndFatalErrorWorkflow",
1725
- "nodeKind": "workflow_start"
1726
- }
1727
- },
1728
- {
1729
- "id": "node_0",
1730
- "type": "step",
1731
- "data": {
1732
- "label": "stepThatThrowsRetryableError",
1733
- "nodeKind": "step",
1734
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
1735
- }
1736
- },
1737
- {
1738
- "id": "end",
1739
- "type": "workflowEnd",
1740
- "data": {
1741
- "label": "Return",
1742
- "nodeKind": "workflow_end"
1743
- }
1744
- }
1745
- ],
1746
- "edges": [
1747
- {
1748
- "id": "e_start_node_0",
1749
- "source": "start",
1750
- "target": "node_0",
1751
- "type": "default"
1752
- },
1753
- {
1754
- "id": "e_node_0_end",
1755
- "source": "node_0",
1756
- "target": "end",
1757
- "type": "default"
1758
- }
1759
- ]
1760
- }
1761
- }
1762
1762
  }
1763
1763
  },
1764
1764
  "classes": {
1765
1765
  "core/dist/runtime/run.js": {
1766
1766
  "Run": {
1767
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.40//Run"
1767
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.41//Run"
1768
1768
  }
1769
1769
  }
1770
1770
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/world-testing",
3
- "version": "5.0.0-beta.40",
3
+ "version": "5.0.0-beta.41",
4
4
  "description": "Testing utilities and World implementation for Workflow SDK",
5
5
  "main": "dist/src/index.mjs",
6
6
  "files": [
@@ -21,10 +21,10 @@
21
21
  "hono": "4.12.25",
22
22
  "jsonlines": "0.1.1",
23
23
  "zod": "~4.3.6",
24
- "@workflow/cli": "5.0.0-beta.40",
25
- "@workflow/core": "5.0.0-beta.40",
26
- "@workflow/world": "5.0.0-beta.25",
27
- "workflow": "5.0.0-beta.40"
24
+ "@workflow/cli": "5.0.0-beta.41",
25
+ "@workflow/core": "5.0.0-beta.41",
26
+ "@workflow/world": "5.0.0-beta.26",
27
+ "workflow": "5.0.0-beta.41"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/jsonlines": "0.1.5",