@workflow/world-testing 5.0.0-beta.2 → 5.0.0-beta.21
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 +99409 -51444
- package/dist/.well-known/workflow/v1/manifest.json +302 -45
- package/dist/.well-known/workflow/v1/step.mjs +9940 -46191
- package/dist/src/addition.mjs +1 -1
- package/dist/src/errors.mjs +1 -1
- package/dist/src/hooks.mjs +1 -1
- package/dist/src/idempotency.mjs +1 -1
- package/dist/src/index.d.mts.map +1 -1
- package/dist/src/index.mjs +3 -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-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/jsonlines.mjs +1 -1
- package/dist/src/null-byte.mjs +1 -1
- package/dist/src/server.mjs +53 -5
- package/dist/src/util.d.mts +23 -16
- package/dist/src/util.d.mts.map +1 -1
- package/dist/src/util.mjs +21 -4
- package/dist/workflows/hooks.js +1 -1
- package/package.json +9 -9
- package/dist/src/addition.mjs.map +0 -1
- package/dist/src/errors.mjs.map +0 -1
- package/dist/src/hooks.mjs.map +0 -1
- package/dist/src/idempotency.mjs.map +0 -1
- package/dist/src/index.mjs.map +0 -1
- package/dist/src/jsonlines.mjs.map +0 -1
- package/dist/src/null-byte.mjs.map +0 -1
- package/dist/src/server.mjs.map +0 -1
- package/dist/src/util.mjs.map +0 -1
- package/dist/workflows/hooks.js.map +0 -1
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
-
"workflows/addition.ts": {
|
|
5
|
-
"add": {
|
|
6
|
-
"stepId": "step//./workflows/addition//add"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"workflows/hooks.ts": {
|
|
10
|
-
"writeEvent": {
|
|
11
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
4
|
"workflows/noop.ts": {
|
|
15
5
|
"noop": {
|
|
16
6
|
"stepId": "step//./workflows/noop//noop"
|
|
@@ -21,12 +11,9 @@
|
|
|
21
11
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
22
12
|
}
|
|
23
13
|
},
|
|
24
|
-
"workflows/
|
|
25
|
-
"
|
|
26
|
-
"stepId": "step//./workflows/
|
|
27
|
-
},
|
|
28
|
-
"stepThatThrowsRetryableError": {
|
|
29
|
-
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
14
|
+
"workflows/addition.ts": {
|
|
15
|
+
"add": {
|
|
16
|
+
"stepId": "step//./workflows/addition//add"
|
|
30
17
|
}
|
|
31
18
|
},
|
|
32
19
|
"workflow/dist/internal/builtins.js": {
|
|
@@ -38,52 +25,89 @@
|
|
|
38
25
|
},
|
|
39
26
|
"__builtin_response_text": {
|
|
40
27
|
"stepId": "__builtin_response_text"
|
|
28
|
+
},
|
|
29
|
+
"__builtin_set_attributes": {
|
|
30
|
+
"stepId": "__builtin_set_attributes"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"workflows/retriable-and-fatal.ts": {
|
|
34
|
+
"stepThatFails": {
|
|
35
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
36
|
+
},
|
|
37
|
+
"stepThatThrowsRetryableError": {
|
|
38
|
+
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"workflows/inline-execution.ts": {
|
|
42
|
+
"add": {
|
|
43
|
+
"stepId": "step//./workflows/inline-execution//add"
|
|
44
|
+
},
|
|
45
|
+
"closeOutputStream": {
|
|
46
|
+
"stepId": "step//./workflows/inline-execution//closeOutputStream"
|
|
47
|
+
},
|
|
48
|
+
"writeToStream": {
|
|
49
|
+
"stepId": "step//./workflows/inline-execution//writeToStream"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"workflow/dist/stdlib.js": {
|
|
53
|
+
"fetch": {
|
|
54
|
+
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"workflows/hooks.ts": {
|
|
58
|
+
"writeEvent": {
|
|
59
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"core/dist/runtime/start.js": {
|
|
63
|
+
"start": {
|
|
64
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.21//start"
|
|
41
65
|
}
|
|
42
66
|
},
|
|
43
67
|
"core/dist/runtime/run.js": {
|
|
44
68
|
"Run#cancel": {
|
|
45
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
69
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#cancel"
|
|
46
70
|
},
|
|
47
71
|
"Run#completedAt": {
|
|
48
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
72
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#completedAt"
|
|
49
73
|
},
|
|
50
74
|
"Run#createdAt": {
|
|
51
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
75
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#createdAt"
|
|
52
76
|
},
|
|
53
77
|
"Run#exists": {
|
|
54
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
78
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#exists"
|
|
55
79
|
},
|
|
56
80
|
"Run#getReadable": {
|
|
57
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
81
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#getReadable"
|
|
58
82
|
},
|
|
59
83
|
"Run#returnValue": {
|
|
60
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
84
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#returnValue"
|
|
61
85
|
},
|
|
62
86
|
"Run#startedAt": {
|
|
63
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
87
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#startedAt"
|
|
64
88
|
},
|
|
65
89
|
"Run#status": {
|
|
66
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
90
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#status"
|
|
67
91
|
},
|
|
68
92
|
"Run#wakeUp": {
|
|
69
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#wakeUp"
|
|
70
94
|
},
|
|
71
95
|
"Run#workflowName": {
|
|
72
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
96
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.21//Run#workflowName"
|
|
73
97
|
}
|
|
74
98
|
}
|
|
75
99
|
},
|
|
76
100
|
"workflows": {
|
|
77
|
-
"workflows/
|
|
78
|
-
"
|
|
79
|
-
"workflowId": "workflow//./workflows/
|
|
101
|
+
"workflows/noop.ts": {
|
|
102
|
+
"brokenWf": {
|
|
103
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
80
104
|
"graph": {
|
|
81
105
|
"nodes": [
|
|
82
106
|
{
|
|
83
107
|
"id": "start",
|
|
84
108
|
"type": "workflowStart",
|
|
85
109
|
"data": {
|
|
86
|
-
"label": "Start:
|
|
110
|
+
"label": "Start: brokenWf",
|
|
87
111
|
"nodeKind": "workflow_start"
|
|
88
112
|
}
|
|
89
113
|
},
|
|
@@ -107,16 +131,16 @@
|
|
|
107
131
|
}
|
|
108
132
|
}
|
|
109
133
|
},
|
|
110
|
-
"workflows/
|
|
111
|
-
"
|
|
112
|
-
"workflowId": "workflow//./workflows/
|
|
134
|
+
"workflows/null-byte.ts": {
|
|
135
|
+
"nullByteWorkflow": {
|
|
136
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
113
137
|
"graph": {
|
|
114
138
|
"nodes": [
|
|
115
139
|
{
|
|
116
140
|
"id": "start",
|
|
117
141
|
"type": "workflowStart",
|
|
118
142
|
"data": {
|
|
119
|
-
"label": "Start:
|
|
143
|
+
"label": "Start: nullByteWorkflow",
|
|
120
144
|
"nodeKind": "workflow_start"
|
|
121
145
|
}
|
|
122
146
|
},
|
|
@@ -140,16 +164,16 @@
|
|
|
140
164
|
}
|
|
141
165
|
}
|
|
142
166
|
},
|
|
143
|
-
"workflows/
|
|
144
|
-
"
|
|
145
|
-
"workflowId": "workflow//./workflows/
|
|
167
|
+
"workflows/addition.ts": {
|
|
168
|
+
"addTenWorkflow": {
|
|
169
|
+
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
146
170
|
"graph": {
|
|
147
171
|
"nodes": [
|
|
148
172
|
{
|
|
149
173
|
"id": "start",
|
|
150
174
|
"type": "workflowStart",
|
|
151
175
|
"data": {
|
|
152
|
-
"label": "Start:
|
|
176
|
+
"label": "Start: addTenWorkflow",
|
|
153
177
|
"nodeKind": "workflow_start"
|
|
154
178
|
}
|
|
155
179
|
},
|
|
@@ -171,18 +195,16 @@
|
|
|
171
195
|
}
|
|
172
196
|
]
|
|
173
197
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"nullByteWorkflow": {
|
|
178
|
-
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
198
|
+
},
|
|
199
|
+
"addition": {
|
|
200
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
179
201
|
"graph": {
|
|
180
202
|
"nodes": [
|
|
181
203
|
{
|
|
182
204
|
"id": "start",
|
|
183
205
|
"type": "workflowStart",
|
|
184
206
|
"data": {
|
|
185
|
-
"label": "Start:
|
|
207
|
+
"label": "Start: addition",
|
|
186
208
|
"nodeKind": "workflow_start"
|
|
187
209
|
}
|
|
188
210
|
},
|
|
@@ -238,12 +260,247 @@
|
|
|
238
260
|
]
|
|
239
261
|
}
|
|
240
262
|
}
|
|
263
|
+
},
|
|
264
|
+
"workflows/inline-execution.ts": {
|
|
265
|
+
"hookWorkflow": {
|
|
266
|
+
"workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
|
|
267
|
+
"graph": {
|
|
268
|
+
"nodes": [
|
|
269
|
+
{
|
|
270
|
+
"id": "start",
|
|
271
|
+
"type": "workflowStart",
|
|
272
|
+
"data": {
|
|
273
|
+
"label": "Start: hookWorkflow",
|
|
274
|
+
"nodeKind": "workflow_start"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "end",
|
|
279
|
+
"type": "workflowEnd",
|
|
280
|
+
"data": {
|
|
281
|
+
"label": "Return",
|
|
282
|
+
"nodeKind": "workflow_end"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"edges": [
|
|
287
|
+
{
|
|
288
|
+
"id": "e_start_end",
|
|
289
|
+
"source": "start",
|
|
290
|
+
"target": "end",
|
|
291
|
+
"type": "default"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"parallelStepsWorkflow": {
|
|
297
|
+
"workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
|
|
298
|
+
"graph": {
|
|
299
|
+
"nodes": [
|
|
300
|
+
{
|
|
301
|
+
"id": "start",
|
|
302
|
+
"type": "workflowStart",
|
|
303
|
+
"data": {
|
|
304
|
+
"label": "Start: parallelStepsWorkflow",
|
|
305
|
+
"nodeKind": "workflow_start"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "end",
|
|
310
|
+
"type": "workflowEnd",
|
|
311
|
+
"data": {
|
|
312
|
+
"label": "Return",
|
|
313
|
+
"nodeKind": "workflow_end"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"edges": [
|
|
318
|
+
{
|
|
319
|
+
"id": "e_start_end",
|
|
320
|
+
"source": "start",
|
|
321
|
+
"target": "end",
|
|
322
|
+
"type": "default"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"sequentialStepsWithStreamWorkflow": {
|
|
328
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
|
|
329
|
+
"graph": {
|
|
330
|
+
"nodes": [
|
|
331
|
+
{
|
|
332
|
+
"id": "start",
|
|
333
|
+
"type": "workflowStart",
|
|
334
|
+
"data": {
|
|
335
|
+
"label": "Start: sequentialStepsWithStreamWorkflow",
|
|
336
|
+
"nodeKind": "workflow_start"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"id": "end",
|
|
341
|
+
"type": "workflowEnd",
|
|
342
|
+
"data": {
|
|
343
|
+
"label": "Return",
|
|
344
|
+
"nodeKind": "workflow_end"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"edges": [
|
|
349
|
+
{
|
|
350
|
+
"id": "e_start_end",
|
|
351
|
+
"source": "start",
|
|
352
|
+
"target": "end",
|
|
353
|
+
"type": "default"
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"sequentialStepsWorkflow": {
|
|
359
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
|
|
360
|
+
"graph": {
|
|
361
|
+
"nodes": [
|
|
362
|
+
{
|
|
363
|
+
"id": "start",
|
|
364
|
+
"type": "workflowStart",
|
|
365
|
+
"data": {
|
|
366
|
+
"label": "Start: sequentialStepsWorkflow",
|
|
367
|
+
"nodeKind": "workflow_start"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": "end",
|
|
372
|
+
"type": "workflowEnd",
|
|
373
|
+
"data": {
|
|
374
|
+
"label": "Return",
|
|
375
|
+
"nodeKind": "workflow_end"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"edges": [
|
|
380
|
+
{
|
|
381
|
+
"id": "e_start_end",
|
|
382
|
+
"source": "start",
|
|
383
|
+
"target": "end",
|
|
384
|
+
"type": "default"
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"sleepWorkflow": {
|
|
390
|
+
"workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
|
|
391
|
+
"graph": {
|
|
392
|
+
"nodes": [
|
|
393
|
+
{
|
|
394
|
+
"id": "start",
|
|
395
|
+
"type": "workflowStart",
|
|
396
|
+
"data": {
|
|
397
|
+
"label": "Start: sleepWorkflow",
|
|
398
|
+
"nodeKind": "workflow_start"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"id": "node_0",
|
|
403
|
+
"type": "primitive",
|
|
404
|
+
"data": {
|
|
405
|
+
"label": "sleep",
|
|
406
|
+
"nodeKind": "primitive"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "end",
|
|
411
|
+
"type": "workflowEnd",
|
|
412
|
+
"data": {
|
|
413
|
+
"label": "Return",
|
|
414
|
+
"nodeKind": "workflow_end"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"edges": [
|
|
419
|
+
{
|
|
420
|
+
"id": "e_start_node_0",
|
|
421
|
+
"source": "start",
|
|
422
|
+
"target": "node_0",
|
|
423
|
+
"type": "default"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "e_node_0_end",
|
|
427
|
+
"source": "node_0",
|
|
428
|
+
"target": "end",
|
|
429
|
+
"type": "default"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"threeBatchesOfFiveWorkflow": {
|
|
435
|
+
"workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
|
|
436
|
+
"graph": {
|
|
437
|
+
"nodes": [
|
|
438
|
+
{
|
|
439
|
+
"id": "start",
|
|
440
|
+
"type": "workflowStart",
|
|
441
|
+
"data": {
|
|
442
|
+
"label": "Start: threeBatchesOfFiveWorkflow",
|
|
443
|
+
"nodeKind": "workflow_start"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"id": "end",
|
|
448
|
+
"type": "workflowEnd",
|
|
449
|
+
"data": {
|
|
450
|
+
"label": "Return",
|
|
451
|
+
"nodeKind": "workflow_end"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"edges": [
|
|
456
|
+
{
|
|
457
|
+
"id": "e_start_end",
|
|
458
|
+
"source": "start",
|
|
459
|
+
"target": "end",
|
|
460
|
+
"type": "default"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"workflows/hooks.ts": {
|
|
467
|
+
"collectWithHook": {
|
|
468
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
469
|
+
"graph": {
|
|
470
|
+
"nodes": [
|
|
471
|
+
{
|
|
472
|
+
"id": "start",
|
|
473
|
+
"type": "workflowStart",
|
|
474
|
+
"data": {
|
|
475
|
+
"label": "Start: collectWithHook",
|
|
476
|
+
"nodeKind": "workflow_start"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"id": "end",
|
|
481
|
+
"type": "workflowEnd",
|
|
482
|
+
"data": {
|
|
483
|
+
"label": "Return",
|
|
484
|
+
"nodeKind": "workflow_end"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"edges": [
|
|
489
|
+
{
|
|
490
|
+
"id": "e_start_end",
|
|
491
|
+
"source": "start",
|
|
492
|
+
"target": "end",
|
|
493
|
+
"type": "default"
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
}
|
|
241
498
|
}
|
|
242
499
|
},
|
|
243
500
|
"classes": {
|
|
244
501
|
"core/dist/runtime/run.js": {
|
|
245
502
|
"Run": {
|
|
246
|
-
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
503
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.21//Run"
|
|
247
504
|
}
|
|
248
505
|
}
|
|
249
506
|
}
|