@workflow/world-testing 5.0.0-beta.27 → 5.0.0-beta.29

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,17 +1,14 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "steps": {
4
- "workflows/noop.ts": {
5
- "noop": {
6
- "stepId": "step//./workflows/noop//noop"
4
+ "workflows/addition.ts": {
5
+ "add": {
6
+ "stepId": "step//./workflows/addition//add"
7
7
  }
8
8
  },
9
- "workflows/retriable-and-fatal.ts": {
10
- "stepThatFails": {
11
- "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
12
- },
13
- "stepThatThrowsRetryableError": {
14
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
9
+ "workflows/hooks.ts": {
10
+ "writeEvent": {
11
+ "stepId": "step//./workflows/hooks//writeEvent"
15
12
  }
16
13
  },
17
14
  "workflows/null-byte.ts": {
@@ -19,33 +16,22 @@
19
16
  "stepId": "step//./workflows/null-byte//nullByteStep"
20
17
  }
21
18
  },
22
- "workflow/dist/internal/builtins.js": {
23
- "__builtin_response_array_buffer": {
24
- "stepId": "__builtin_response_array_buffer"
25
- },
26
- "__builtin_response_json": {
27
- "stepId": "__builtin_response_json"
28
- },
29
- "__builtin_response_text": {
30
- "stepId": "__builtin_response_text"
19
+ "workflows/retriable-and-fatal.ts": {
20
+ "stepThatFails": {
21
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
31
22
  },
32
- "__builtin_set_attributes": {
33
- "stepId": "__builtin_set_attributes"
34
- }
35
- },
36
- "workflows/addition.ts": {
37
- "add": {
38
- "stepId": "step//./workflows/addition//add"
23
+ "stepThatThrowsRetryableError": {
24
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
39
25
  }
40
26
  },
41
- "workflows/hooks.ts": {
42
- "writeEvent": {
43
- "stepId": "step//./workflows/hooks//writeEvent"
27
+ "workflows/signal-cost.ts": {
28
+ "trivialStep": {
29
+ "stepId": "step//./workflows/signal-cost//trivialStep"
44
30
  }
45
31
  },
46
- "workflow/dist/stdlib.js": {
47
- "fetch": {
48
- "stepId": "step//./workflow/dist/stdlib//fetch"
32
+ "workflows/noop.ts": {
33
+ "noop": {
34
+ "stepId": "step//./workflows/noop//noop"
49
35
  }
50
36
  },
51
37
  "workflows/inline-execution.ts": {
@@ -61,53 +47,72 @@
61
47
  },
62
48
  "core/dist/runtime/start.js": {
63
49
  "start": {
64
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.27//start"
50
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.29//start"
51
+ }
52
+ },
53
+ "workflow/dist/stdlib.js": {
54
+ "fetch": {
55
+ "stepId": "step//./workflow/dist/stdlib//fetch"
56
+ }
57
+ },
58
+ "workflow/dist/internal/builtins.js": {
59
+ "__builtin_response_array_buffer": {
60
+ "stepId": "__builtin_response_array_buffer"
61
+ },
62
+ "__builtin_response_json": {
63
+ "stepId": "__builtin_response_json"
64
+ },
65
+ "__builtin_response_text": {
66
+ "stepId": "__builtin_response_text"
67
+ },
68
+ "__builtin_set_attributes": {
69
+ "stepId": "__builtin_set_attributes"
65
70
  }
66
71
  },
67
72
  "core/dist/runtime/run.js": {
68
73
  "Run#cancel": {
69
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#cancel"
74
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#cancel"
70
75
  },
71
76
  "Run#completedAt": {
72
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#completedAt"
77
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#completedAt"
73
78
  },
74
79
  "Run#createdAt": {
75
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#createdAt"
80
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#createdAt"
76
81
  },
77
82
  "Run#exists": {
78
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#exists"
83
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#exists"
79
84
  },
80
85
  "Run#getReadable": {
81
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#getReadable"
86
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#getReadable"
82
87
  },
83
88
  "Run#returnValue": {
84
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#returnValue"
89
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#returnValue"
85
90
  },
86
91
  "Run#startedAt": {
87
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#startedAt"
92
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#startedAt"
88
93
  },
89
94
  "Run#status": {
90
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#status"
95
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#status"
91
96
  },
92
97
  "Run#wakeUp": {
93
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#wakeUp"
98
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#wakeUp"
94
99
  },
95
100
  "Run#workflowName": {
96
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.27//Run#workflowName"
101
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.29//Run#workflowName"
97
102
  }
98
103
  }
99
104
  },
100
105
  "workflows": {
101
- "workflows/noop.ts": {
102
- "brokenWf": {
103
- "workflowId": "workflow//./workflows/noop//brokenWf",
106
+ "workflows/addition.ts": {
107
+ "addTenWorkflow": {
108
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
104
109
  "graph": {
105
110
  "nodes": [
106
111
  {
107
112
  "id": "start",
108
113
  "type": "workflowStart",
109
114
  "data": {
110
- "label": "Start: brokenWf",
115
+ "label": "Start: addTenWorkflow",
111
116
  "nodeKind": "workflow_start"
112
117
  }
113
118
  },
@@ -115,18 +120,27 @@
115
120
  "id": "node_0",
116
121
  "type": "step",
117
122
  "data": {
118
- "label": "noop",
123
+ "label": "add",
119
124
  "nodeKind": "step",
120
- "stepId": "step//./workflows/noop//noop"
125
+ "stepId": "step//./workflows/addition//add"
121
126
  }
122
127
  },
123
128
  {
124
129
  "id": "node_1",
125
130
  "type": "step",
126
131
  "data": {
127
- "label": "noop",
132
+ "label": "add",
128
133
  "nodeKind": "step",
129
- "stepId": "step//./workflows/noop//noop"
134
+ "stepId": "step//./workflows/addition//add"
135
+ }
136
+ },
137
+ {
138
+ "id": "node_2",
139
+ "type": "step",
140
+ "data": {
141
+ "label": "add",
142
+ "nodeKind": "step",
143
+ "stepId": "step//./workflows/addition//add"
130
144
  }
131
145
  },
132
146
  {
@@ -152,25 +166,29 @@
152
166
  "type": "default"
153
167
  },
154
168
  {
155
- "id": "e_node_1_end",
169
+ "id": "e_node_1_node_2",
156
170
  "source": "node_1",
171
+ "target": "node_2",
172
+ "type": "default"
173
+ },
174
+ {
175
+ "id": "e_node_2_end",
176
+ "source": "node_2",
157
177
  "target": "end",
158
178
  "type": "default"
159
179
  }
160
180
  ]
161
181
  }
162
- }
163
- },
164
- "workflows/retriable-and-fatal.ts": {
165
- "retryableAndFatalErrorWorkflow": {
166
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
182
+ },
183
+ "addition": {
184
+ "workflowId": "workflow//./workflows/addition//addition",
167
185
  "graph": {
168
186
  "nodes": [
169
187
  {
170
188
  "id": "start",
171
189
  "type": "workflowStart",
172
190
  "data": {
173
- "label": "Start: retryableAndFatalErrorWorkflow",
191
+ "label": "Start: addition",
174
192
  "nodeKind": "workflow_start"
175
193
  }
176
194
  },
@@ -178,9 +196,9 @@
178
196
  "id": "node_0",
179
197
  "type": "step",
180
198
  "data": {
181
- "label": "stepThatThrowsRetryableError",
199
+ "label": "add",
182
200
  "nodeKind": "step",
183
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
201
+ "stepId": "step//./workflows/addition//add"
184
202
  }
185
203
  },
186
204
  {
@@ -209,16 +227,16 @@
209
227
  }
210
228
  }
211
229
  },
212
- "workflows/null-byte.ts": {
213
- "nullByteWorkflow": {
214
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
230
+ "workflows/hooks.ts": {
231
+ "collectWithHook": {
232
+ "workflowId": "workflow//./workflows/hooks//collectWithHook",
215
233
  "graph": {
216
234
  "nodes": [
217
235
  {
218
236
  "id": "start",
219
237
  "type": "workflowStart",
220
238
  "data": {
221
- "label": "Start: nullByteWorkflow",
239
+ "label": "Start: collectWithHook",
222
240
  "nodeKind": "workflow_start"
223
241
  }
224
242
  },
@@ -226,9 +244,22 @@
226
244
  "id": "node_0",
227
245
  "type": "step",
228
246
  "data": {
229
- "label": "nullByteStep",
247
+ "label": "writeEvent",
230
248
  "nodeKind": "step",
231
- "stepId": "step//./workflows/null-byte//nullByteStep"
249
+ "stepId": "step//./workflows/hooks//writeEvent"
250
+ }
251
+ },
252
+ {
253
+ "id": "node_1",
254
+ "type": "step",
255
+ "data": {
256
+ "label": "writeEvent",
257
+ "nodeKind": "step",
258
+ "stepId": "step//./workflows/hooks//writeEvent"
259
+ },
260
+ "metadata": {
261
+ "loopId": "loop_0",
262
+ "loopIsAwait": true
232
263
  }
233
264
  },
234
265
  {
@@ -248,8 +279,20 @@
248
279
  "type": "default"
249
280
  },
250
281
  {
251
- "id": "e_node_0_end",
282
+ "id": "e_node_1_back_node_1",
283
+ "source": "node_1",
284
+ "target": "node_1",
285
+ "type": "loop"
286
+ },
287
+ {
288
+ "id": "e_node_0_node_1",
252
289
  "source": "node_0",
290
+ "target": "node_1",
291
+ "type": "default"
292
+ },
293
+ {
294
+ "id": "e_node_1_end",
295
+ "source": "node_1",
253
296
  "target": "end",
254
297
  "type": "default"
255
298
  }
@@ -257,16 +300,16 @@
257
300
  }
258
301
  }
259
302
  },
260
- "workflows/addition.ts": {
261
- "addTenWorkflow": {
262
- "workflowId": "workflow//./workflows/addition//addTenWorkflow",
303
+ "workflows/null-byte.ts": {
304
+ "nullByteWorkflow": {
305
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
263
306
  "graph": {
264
307
  "nodes": [
265
308
  {
266
309
  "id": "start",
267
310
  "type": "workflowStart",
268
311
  "data": {
269
- "label": "Start: addTenWorkflow",
312
+ "label": "Start: nullByteWorkflow",
270
313
  "nodeKind": "workflow_start"
271
314
  }
272
315
  },
@@ -274,27 +317,57 @@
274
317
  "id": "node_0",
275
318
  "type": "step",
276
319
  "data": {
277
- "label": "add",
320
+ "label": "nullByteStep",
278
321
  "nodeKind": "step",
279
- "stepId": "step//./workflows/addition//add"
322
+ "stepId": "step//./workflows/null-byte//nullByteStep"
280
323
  }
281
324
  },
282
325
  {
283
- "id": "node_1",
284
- "type": "step",
326
+ "id": "end",
327
+ "type": "workflowEnd",
285
328
  "data": {
286
- "label": "add",
287
- "nodeKind": "step",
288
- "stepId": "step//./workflows/addition//add"
329
+ "label": "Return",
330
+ "nodeKind": "workflow_end"
289
331
  }
332
+ }
333
+ ],
334
+ "edges": [
335
+ {
336
+ "id": "e_start_node_0",
337
+ "source": "start",
338
+ "target": "node_0",
339
+ "type": "default"
290
340
  },
291
341
  {
292
- "id": "node_2",
342
+ "id": "e_node_0_end",
343
+ "source": "node_0",
344
+ "target": "end",
345
+ "type": "default"
346
+ }
347
+ ]
348
+ }
349
+ }
350
+ },
351
+ "workflows/retriable-and-fatal.ts": {
352
+ "retryableAndFatalErrorWorkflow": {
353
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
354
+ "graph": {
355
+ "nodes": [
356
+ {
357
+ "id": "start",
358
+ "type": "workflowStart",
359
+ "data": {
360
+ "label": "Start: retryableAndFatalErrorWorkflow",
361
+ "nodeKind": "workflow_start"
362
+ }
363
+ },
364
+ {
365
+ "id": "node_0",
293
366
  "type": "step",
294
367
  "data": {
295
- "label": "add",
368
+ "label": "stepThatThrowsRetryableError",
296
369
  "nodeKind": "step",
297
- "stepId": "step//./workflows/addition//add"
370
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
298
371
  }
299
372
  },
300
373
  {
@@ -314,35 +387,25 @@
314
387
  "type": "default"
315
388
  },
316
389
  {
317
- "id": "e_node_0_node_1",
390
+ "id": "e_node_0_end",
318
391
  "source": "node_0",
319
- "target": "node_1",
320
- "type": "default"
321
- },
322
- {
323
- "id": "e_node_1_node_2",
324
- "source": "node_1",
325
- "target": "node_2",
326
- "type": "default"
327
- },
328
- {
329
- "id": "e_node_2_end",
330
- "source": "node_2",
331
392
  "target": "end",
332
393
  "type": "default"
333
394
  }
334
395
  ]
335
396
  }
336
- },
337
- "addition": {
338
- "workflowId": "workflow//./workflows/addition//addition",
397
+ }
398
+ },
399
+ "workflows/signal-cost.ts": {
400
+ "signalCostWorkflow": {
401
+ "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
339
402
  "graph": {
340
403
  "nodes": [
341
404
  {
342
405
  "id": "start",
343
406
  "type": "workflowStart",
344
407
  "data": {
345
- "label": "Start: addition",
408
+ "label": "Start: signalCostWorkflow",
346
409
  "nodeKind": "workflow_start"
347
410
  }
348
411
  },
@@ -350,9 +413,12 @@
350
413
  "id": "node_0",
351
414
  "type": "step",
352
415
  "data": {
353
- "label": "add",
416
+ "label": "trivialStep",
354
417
  "nodeKind": "step",
355
- "stepId": "step//./workflows/addition//add"
418
+ "stepId": "step//./workflows/signal-cost//trivialStep"
419
+ },
420
+ "metadata": {
421
+ "loopId": "loop_0"
356
422
  }
357
423
  },
358
424
  {
@@ -365,6 +431,12 @@
365
431
  }
366
432
  ],
367
433
  "edges": [
434
+ {
435
+ "id": "e_node_0_back_node_0",
436
+ "source": "node_0",
437
+ "target": "node_0",
438
+ "type": "loop"
439
+ },
368
440
  {
369
441
  "id": "e_start_node_0",
370
442
  "source": "start",
@@ -381,16 +453,16 @@
381
453
  }
382
454
  }
383
455
  },
384
- "workflows/hooks.ts": {
385
- "collectWithHook": {
386
- "workflowId": "workflow//./workflows/hooks//collectWithHook",
456
+ "workflows/noop.ts": {
457
+ "brokenWf": {
458
+ "workflowId": "workflow//./workflows/noop//brokenWf",
387
459
  "graph": {
388
460
  "nodes": [
389
461
  {
390
462
  "id": "start",
391
463
  "type": "workflowStart",
392
464
  "data": {
393
- "label": "Start: collectWithHook",
465
+ "label": "Start: brokenWf",
394
466
  "nodeKind": "workflow_start"
395
467
  }
396
468
  },
@@ -398,22 +470,18 @@
398
470
  "id": "node_0",
399
471
  "type": "step",
400
472
  "data": {
401
- "label": "writeEvent",
473
+ "label": "noop",
402
474
  "nodeKind": "step",
403
- "stepId": "step//./workflows/hooks//writeEvent"
475
+ "stepId": "step//./workflows/noop//noop"
404
476
  }
405
477
  },
406
478
  {
407
479
  "id": "node_1",
408
480
  "type": "step",
409
481
  "data": {
410
- "label": "writeEvent",
482
+ "label": "noop",
411
483
  "nodeKind": "step",
412
- "stepId": "step//./workflows/hooks//writeEvent"
413
- },
414
- "metadata": {
415
- "loopId": "loop_0",
416
- "loopIsAwait": true
484
+ "stepId": "step//./workflows/noop//noop"
417
485
  }
418
486
  },
419
487
  {
@@ -432,12 +500,6 @@
432
500
  "target": "node_0",
433
501
  "type": "default"
434
502
  },
435
- {
436
- "id": "e_node_1_back_node_1",
437
- "source": "node_1",
438
- "target": "node_1",
439
- "type": "loop"
440
- },
441
503
  {
442
504
  "id": "e_node_0_node_1",
443
505
  "source": "node_0",
@@ -1358,7 +1420,7 @@
1358
1420
  "classes": {
1359
1421
  "core/dist/runtime/run.js": {
1360
1422
  "Run": {
1361
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.27//Run"
1423
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.29//Run"
1362
1424
  }
1363
1425
  }
1364
1426
  }