@workflow/world-testing 5.0.0-beta.4 → 5.0.0-beta.6

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