@workflow/world-testing 5.0.0-beta.3 → 5.0.0-beta.5

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