@workflow/world-testing 5.0.0-beta.4 → 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.
- package/dist/.well-known/workflow/v1/flow.mjs +73481 -43011
- package/dist/.well-known/workflow/v1/manifest.json +292 -43
- package/dist/.well-known/workflow/v1/step.mjs +8635 -46348
- package/dist/src/index.d.mts.map +1 -1
- package/dist/src/index.mjs +2 -0
- package/dist/src/index.mjs.map +1 -1
- package/dist/src/inline-batches-debug.d.mts +15 -0
- package/dist/src/inline-batches-debug.d.mts.map +1 -0
- package/dist/src/inline-batches-debug.mjs +208 -0
- package/dist/src/inline-batches-debug.mjs.map +1 -0
- package/dist/src/inline-execution.d.mts +13 -0
- package/dist/src/inline-execution.d.mts.map +1 -0
- package/dist/src/inline-execution.mjs +80 -0
- package/dist/src/inline-execution.mjs.map +1 -0
- package/dist/src/server.mjs +50 -5
- package/dist/src/server.mjs.map +1 -1
- package/dist/src/util.d.mts +15 -12
- package/dist/src/util.d.mts.map +1 -1
- package/dist/src/util.mjs +20 -3
- package/dist/src/util.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,21 +1,6 @@
|
|
|
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"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"workflows/addition.ts": {
|
|
15
|
-
"add": {
|
|
16
|
-
"stepId": "step//./workflows/addition//add"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
4
|
"workflows/retriable-and-fatal.ts": {
|
|
20
5
|
"stepThatFails": {
|
|
21
6
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
@@ -29,6 +14,32 @@
|
|
|
29
14
|
"stepId": "step//./workflows/hooks//writeEvent"
|
|
30
15
|
}
|
|
31
16
|
},
|
|
17
|
+
"workflows/addition.ts": {
|
|
18
|
+
"add": {
|
|
19
|
+
"stepId": "step//./workflows/addition//add"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"workflows/noop.ts": {
|
|
23
|
+
"noop": {
|
|
24
|
+
"stepId": "step//./workflows/noop//noop"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"workflows/null-byte.ts": {
|
|
28
|
+
"nullByteStep": {
|
|
29
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"workflows/inline-execution.ts": {
|
|
33
|
+
"add": {
|
|
34
|
+
"stepId": "step//./workflows/inline-execution//add"
|
|
35
|
+
},
|
|
36
|
+
"closeOutputStream": {
|
|
37
|
+
"stepId": "step//./workflows/inline-execution//closeOutputStream"
|
|
38
|
+
},
|
|
39
|
+
"writeToStream": {
|
|
40
|
+
"stepId": "step//./workflows/inline-execution//writeToStream"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
32
43
|
"workflow/dist/internal/builtins.js": {
|
|
33
44
|
"__builtin_response_array_buffer": {
|
|
34
45
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
83
|
-
"
|
|
84
|
-
"workflowId": "workflow//./workflows/
|
|
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:
|
|
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/
|
|
116
|
-
"
|
|
117
|
-
"workflowId": "workflow//./workflows/
|
|
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:
|
|
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/
|
|
182
|
-
"
|
|
183
|
-
"workflowId": "workflow//./workflows/
|
|
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:
|
|
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/
|
|
215
|
-
"
|
|
216
|
-
"workflowId": "workflow//./workflows/
|
|
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:
|
|
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.
|
|
500
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.5//Run"
|
|
252
501
|
}
|
|
253
502
|
}
|
|
254
503
|
}
|