@workflow/world-testing 5.0.0-beta.6 → 5.0.0-beta.8
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 +25187 -13288
- package/dist/.well-known/workflow/v1/manifest.json +108 -105
- package/dist/.well-known/workflow/v1/step.mjs +194 -32
- 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.mjs +1 -1
- package/dist/src/inline-batches-debug.mjs +1 -1
- package/dist/src/inline-execution.mjs +1 -1
- package/dist/src/jsonlines.mjs +1 -1
- package/dist/src/null-byte.mjs +1 -1
- package/dist/src/server.mjs +8 -5
- package/dist/src/util.d.mts +8 -4
- package/dist/src/util.d.mts.map +1 -1
- package/dist/src/util.mjs +1 -1
- package/dist/workflows/hooks.js +1 -1
- package/package.json +5 -5
- 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/inline-batches-debug.mjs.map +0 -1
- package/dist/src/inline-execution.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,6 +1,11 @@
|
|
|
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
|
+
},
|
|
4
9
|
"workflows/retriable-and-fatal.ts": {
|
|
5
10
|
"stepThatFails": {
|
|
6
11
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
|
|
@@ -9,9 +14,19 @@
|
|
|
9
14
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
10
15
|
}
|
|
11
16
|
},
|
|
12
|
-
"workflows/
|
|
13
|
-
"
|
|
14
|
-
"stepId": "step//./workflows/
|
|
17
|
+
"workflows/noop.ts": {
|
|
18
|
+
"noop": {
|
|
19
|
+
"stepId": "step//./workflows/noop//noop"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"workflows/hooks.ts": {
|
|
23
|
+
"writeEvent": {
|
|
24
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"workflows/null-byte.ts": {
|
|
28
|
+
"nullByteStep": {
|
|
29
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
15
30
|
}
|
|
16
31
|
},
|
|
17
32
|
"workflows/inline-execution.ts": {
|
|
@@ -25,24 +40,9 @@
|
|
|
25
40
|
"stepId": "step//./workflows/inline-execution//writeToStream"
|
|
26
41
|
}
|
|
27
42
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"stepId": "step
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"workflows/null-byte.ts": {
|
|
34
|
-
"nullByteStep": {
|
|
35
|
-
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"workflows/hooks.ts": {
|
|
39
|
-
"writeEvent": {
|
|
40
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"workflow/dist/stdlib.js": {
|
|
44
|
-
"fetch": {
|
|
45
|
-
"stepId": "step//workflow@5.0.0-beta.6//fetch"
|
|
43
|
+
"core/dist/runtime/start.js": {
|
|
44
|
+
"start": {
|
|
45
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.8//start"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"workflow/dist/internal/builtins.js": {
|
|
@@ -54,57 +54,60 @@
|
|
|
54
54
|
},
|
|
55
55
|
"__builtin_response_text": {
|
|
56
56
|
"stepId": "__builtin_response_text"
|
|
57
|
+
},
|
|
58
|
+
"__builtin_set_attributes": {
|
|
59
|
+
"stepId": "__builtin_set_attributes"
|
|
57
60
|
}
|
|
58
61
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"stepId": "step
|
|
62
|
+
"workflow/dist/stdlib.js": {
|
|
63
|
+
"fetch": {
|
|
64
|
+
"stepId": "step//workflow@5.0.0-beta.8//fetch"
|
|
62
65
|
}
|
|
63
66
|
},
|
|
64
67
|
"core/dist/runtime/run.js": {
|
|
65
68
|
"Run#cancel": {
|
|
66
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
69
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#cancel"
|
|
67
70
|
},
|
|
68
71
|
"Run#completedAt": {
|
|
69
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
72
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#completedAt"
|
|
70
73
|
},
|
|
71
74
|
"Run#createdAt": {
|
|
72
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
75
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#createdAt"
|
|
73
76
|
},
|
|
74
77
|
"Run#exists": {
|
|
75
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
78
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#exists"
|
|
76
79
|
},
|
|
77
80
|
"Run#getReadable": {
|
|
78
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
81
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#getReadable"
|
|
79
82
|
},
|
|
80
83
|
"Run#returnValue": {
|
|
81
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
84
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#returnValue"
|
|
82
85
|
},
|
|
83
86
|
"Run#startedAt": {
|
|
84
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
87
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#startedAt"
|
|
85
88
|
},
|
|
86
89
|
"Run#status": {
|
|
87
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
90
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#status"
|
|
88
91
|
},
|
|
89
92
|
"Run#wakeUp": {
|
|
90
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
93
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#wakeUp"
|
|
91
94
|
},
|
|
92
95
|
"Run#workflowName": {
|
|
93
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
96
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.8//Run#workflowName"
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
},
|
|
97
100
|
"workflows": {
|
|
98
|
-
"workflows/
|
|
99
|
-
"
|
|
100
|
-
"workflowId": "workflow//./workflows/
|
|
101
|
+
"workflows/addition.ts": {
|
|
102
|
+
"addTenWorkflow": {
|
|
103
|
+
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
101
104
|
"graph": {
|
|
102
105
|
"nodes": [
|
|
103
106
|
{
|
|
104
107
|
"id": "start",
|
|
105
108
|
"type": "workflowStart",
|
|
106
109
|
"data": {
|
|
107
|
-
"label": "Start:
|
|
110
|
+
"label": "Start: addTenWorkflow",
|
|
108
111
|
"nodeKind": "workflow_start"
|
|
109
112
|
}
|
|
110
113
|
},
|
|
@@ -126,18 +129,16 @@
|
|
|
126
129
|
}
|
|
127
130
|
]
|
|
128
131
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"addTenWorkflow": {
|
|
133
|
-
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
132
|
+
},
|
|
133
|
+
"addition": {
|
|
134
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
134
135
|
"graph": {
|
|
135
136
|
"nodes": [
|
|
136
137
|
{
|
|
137
138
|
"id": "start",
|
|
138
139
|
"type": "workflowStart",
|
|
139
140
|
"data": {
|
|
140
|
-
"label": "Start:
|
|
141
|
+
"label": "Start: addition",
|
|
141
142
|
"nodeKind": "workflow_start"
|
|
142
143
|
}
|
|
143
144
|
},
|
|
@@ -159,16 +160,18 @@
|
|
|
159
160
|
}
|
|
160
161
|
]
|
|
161
162
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"workflows/retriable-and-fatal.ts": {
|
|
166
|
+
"retryableAndFatalErrorWorkflow": {
|
|
167
|
+
"workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
|
|
165
168
|
"graph": {
|
|
166
169
|
"nodes": [
|
|
167
170
|
{
|
|
168
171
|
"id": "start",
|
|
169
172
|
"type": "workflowStart",
|
|
170
173
|
"data": {
|
|
171
|
-
"label": "Start:
|
|
174
|
+
"label": "Start: retryableAndFatalErrorWorkflow",
|
|
172
175
|
"nodeKind": "workflow_start"
|
|
173
176
|
}
|
|
174
177
|
},
|
|
@@ -192,16 +195,16 @@
|
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
},
|
|
195
|
-
"workflows/
|
|
196
|
-
"
|
|
197
|
-
"workflowId": "workflow//./workflows/
|
|
198
|
+
"workflows/noop.ts": {
|
|
199
|
+
"brokenWf": {
|
|
200
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
198
201
|
"graph": {
|
|
199
202
|
"nodes": [
|
|
200
203
|
{
|
|
201
204
|
"id": "start",
|
|
202
205
|
"type": "workflowStart",
|
|
203
206
|
"data": {
|
|
204
|
-
"label": "Start:
|
|
207
|
+
"label": "Start: brokenWf",
|
|
205
208
|
"nodeKind": "workflow_start"
|
|
206
209
|
}
|
|
207
210
|
},
|
|
@@ -223,16 +226,18 @@
|
|
|
223
226
|
}
|
|
224
227
|
]
|
|
225
228
|
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"workflows/hooks.ts": {
|
|
232
|
+
"collectWithHook": {
|
|
233
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
229
234
|
"graph": {
|
|
230
235
|
"nodes": [
|
|
231
236
|
{
|
|
232
237
|
"id": "start",
|
|
233
238
|
"type": "workflowStart",
|
|
234
239
|
"data": {
|
|
235
|
-
"label": "Start:
|
|
240
|
+
"label": "Start: collectWithHook",
|
|
236
241
|
"nodeKind": "workflow_start"
|
|
237
242
|
}
|
|
238
243
|
},
|
|
@@ -254,16 +259,18 @@
|
|
|
254
259
|
}
|
|
255
260
|
]
|
|
256
261
|
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"workflows/null-byte.ts": {
|
|
265
|
+
"nullByteWorkflow": {
|
|
266
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
260
267
|
"graph": {
|
|
261
268
|
"nodes": [
|
|
262
269
|
{
|
|
263
270
|
"id": "start",
|
|
264
271
|
"type": "workflowStart",
|
|
265
272
|
"data": {
|
|
266
|
-
"label": "Start:
|
|
273
|
+
"label": "Start: nullByteWorkflow",
|
|
267
274
|
"nodeKind": "workflow_start"
|
|
268
275
|
}
|
|
269
276
|
},
|
|
@@ -285,16 +292,18 @@
|
|
|
285
292
|
}
|
|
286
293
|
]
|
|
287
294
|
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"workflows/inline-execution.ts": {
|
|
298
|
+
"hookWorkflow": {
|
|
299
|
+
"workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
|
|
291
300
|
"graph": {
|
|
292
301
|
"nodes": [
|
|
293
302
|
{
|
|
294
303
|
"id": "start",
|
|
295
304
|
"type": "workflowStart",
|
|
296
305
|
"data": {
|
|
297
|
-
"label": "Start:
|
|
306
|
+
"label": "Start: hookWorkflow",
|
|
298
307
|
"nodeKind": "workflow_start"
|
|
299
308
|
}
|
|
300
309
|
},
|
|
@@ -317,26 +326,18 @@
|
|
|
317
326
|
]
|
|
318
327
|
}
|
|
319
328
|
},
|
|
320
|
-
"
|
|
321
|
-
"workflowId": "workflow//./workflows/inline-execution//
|
|
329
|
+
"parallelStepsWorkflow": {
|
|
330
|
+
"workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
|
|
322
331
|
"graph": {
|
|
323
332
|
"nodes": [
|
|
324
333
|
{
|
|
325
334
|
"id": "start",
|
|
326
335
|
"type": "workflowStart",
|
|
327
336
|
"data": {
|
|
328
|
-
"label": "Start:
|
|
337
|
+
"label": "Start: parallelStepsWorkflow",
|
|
329
338
|
"nodeKind": "workflow_start"
|
|
330
339
|
}
|
|
331
340
|
},
|
|
332
|
-
{
|
|
333
|
-
"id": "node_0",
|
|
334
|
-
"type": "primitive",
|
|
335
|
-
"data": {
|
|
336
|
-
"label": "sleep",
|
|
337
|
-
"nodeKind": "primitive"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
341
|
{
|
|
341
342
|
"id": "end",
|
|
342
343
|
"type": "workflowEnd",
|
|
@@ -348,29 +349,23 @@
|
|
|
348
349
|
],
|
|
349
350
|
"edges": [
|
|
350
351
|
{
|
|
351
|
-
"id": "
|
|
352
|
+
"id": "e_start_end",
|
|
352
353
|
"source": "start",
|
|
353
|
-
"target": "node_0",
|
|
354
|
-
"type": "default"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"id": "e_node_0_end",
|
|
358
|
-
"source": "node_0",
|
|
359
354
|
"target": "end",
|
|
360
355
|
"type": "default"
|
|
361
356
|
}
|
|
362
357
|
]
|
|
363
358
|
}
|
|
364
359
|
},
|
|
365
|
-
"
|
|
366
|
-
"workflowId": "workflow//./workflows/inline-execution//
|
|
360
|
+
"sequentialStepsWithStreamWorkflow": {
|
|
361
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
|
|
367
362
|
"graph": {
|
|
368
363
|
"nodes": [
|
|
369
364
|
{
|
|
370
365
|
"id": "start",
|
|
371
366
|
"type": "workflowStart",
|
|
372
367
|
"data": {
|
|
373
|
-
"label": "Start:
|
|
368
|
+
"label": "Start: sequentialStepsWithStreamWorkflow",
|
|
374
369
|
"nodeKind": "workflow_start"
|
|
375
370
|
}
|
|
376
371
|
},
|
|
@@ -392,18 +387,16 @@
|
|
|
392
387
|
}
|
|
393
388
|
]
|
|
394
389
|
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"brokenWf": {
|
|
399
|
-
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
390
|
+
},
|
|
391
|
+
"sequentialStepsWorkflow": {
|
|
392
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
|
|
400
393
|
"graph": {
|
|
401
394
|
"nodes": [
|
|
402
395
|
{
|
|
403
396
|
"id": "start",
|
|
404
397
|
"type": "workflowStart",
|
|
405
398
|
"data": {
|
|
406
|
-
"label": "Start:
|
|
399
|
+
"label": "Start: sequentialStepsWorkflow",
|
|
407
400
|
"nodeKind": "workflow_start"
|
|
408
401
|
}
|
|
409
402
|
},
|
|
@@ -425,21 +418,27 @@
|
|
|
425
418
|
}
|
|
426
419
|
]
|
|
427
420
|
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
"nullByteWorkflow": {
|
|
432
|
-
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
421
|
+
},
|
|
422
|
+
"sleepWorkflow": {
|
|
423
|
+
"workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
|
|
433
424
|
"graph": {
|
|
434
425
|
"nodes": [
|
|
435
426
|
{
|
|
436
427
|
"id": "start",
|
|
437
428
|
"type": "workflowStart",
|
|
438
429
|
"data": {
|
|
439
|
-
"label": "Start:
|
|
430
|
+
"label": "Start: sleepWorkflow",
|
|
440
431
|
"nodeKind": "workflow_start"
|
|
441
432
|
}
|
|
442
433
|
},
|
|
434
|
+
{
|
|
435
|
+
"id": "node_0",
|
|
436
|
+
"type": "primitive",
|
|
437
|
+
"data": {
|
|
438
|
+
"label": "sleep",
|
|
439
|
+
"nodeKind": "primitive"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
443
442
|
{
|
|
444
443
|
"id": "end",
|
|
445
444
|
"type": "workflowEnd",
|
|
@@ -451,25 +450,29 @@
|
|
|
451
450
|
],
|
|
452
451
|
"edges": [
|
|
453
452
|
{
|
|
454
|
-
"id": "
|
|
453
|
+
"id": "e_start_node_0",
|
|
455
454
|
"source": "start",
|
|
455
|
+
"target": "node_0",
|
|
456
|
+
"type": "default"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"id": "e_node_0_end",
|
|
460
|
+
"source": "node_0",
|
|
456
461
|
"target": "end",
|
|
457
462
|
"type": "default"
|
|
458
463
|
}
|
|
459
464
|
]
|
|
460
465
|
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
"collectWithHook": {
|
|
465
|
-
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
466
|
+
},
|
|
467
|
+
"threeBatchesOfFiveWorkflow": {
|
|
468
|
+
"workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
|
|
466
469
|
"graph": {
|
|
467
470
|
"nodes": [
|
|
468
471
|
{
|
|
469
472
|
"id": "start",
|
|
470
473
|
"type": "workflowStart",
|
|
471
474
|
"data": {
|
|
472
|
-
"label": "Start:
|
|
475
|
+
"label": "Start: threeBatchesOfFiveWorkflow",
|
|
473
476
|
"nodeKind": "workflow_start"
|
|
474
477
|
}
|
|
475
478
|
},
|
|
@@ -497,7 +500,7 @@
|
|
|
497
500
|
"classes": {
|
|
498
501
|
"core/dist/runtime/run.js": {
|
|
499
502
|
"Run": {
|
|
500
|
-
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
503
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.8//Run"
|
|
501
504
|
}
|
|
502
505
|
}
|
|
503
506
|
}
|