@workflow/world-testing 5.0.0-beta.2 → 5.0.0-beta.20
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 +99799 -52004
- package/dist/.well-known/workflow/v1/manifest.json +299 -42
- package/dist/.well-known/workflow/v1/step.mjs +9941 -46193
- 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,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
-
"workflows/
|
|
5
|
-
"
|
|
6
|
-
"stepId": "step//./workflows/
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"writeEvent": {
|
|
11
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
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/noop.ts": {
|
|
@@ -21,12 +19,30 @@
|
|
|
21
19
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
22
20
|
}
|
|
23
21
|
},
|
|
24
|
-
"workflows/
|
|
25
|
-
"
|
|
26
|
-
"stepId": "step//./workflows/
|
|
22
|
+
"workflows/hooks.ts": {
|
|
23
|
+
"writeEvent": {
|
|
24
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"workflows/inline-execution.ts": {
|
|
28
|
+
"add": {
|
|
29
|
+
"stepId": "step//./workflows/inline-execution//add"
|
|
27
30
|
},
|
|
28
|
-
"
|
|
29
|
-
"stepId": "step//./workflows/
|
|
31
|
+
"closeOutputStream": {
|
|
32
|
+
"stepId": "step//./workflows/inline-execution//closeOutputStream"
|
|
33
|
+
},
|
|
34
|
+
"writeToStream": {
|
|
35
|
+
"stepId": "step//./workflows/inline-execution//writeToStream"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"workflows/addition.ts": {
|
|
39
|
+
"add": {
|
|
40
|
+
"stepId": "step//./workflows/addition//add"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"workflow/dist/stdlib.js": {
|
|
44
|
+
"fetch": {
|
|
45
|
+
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
30
46
|
}
|
|
31
47
|
},
|
|
32
48
|
"workflow/dist/internal/builtins.js": {
|
|
@@ -38,52 +54,126 @@
|
|
|
38
54
|
},
|
|
39
55
|
"__builtin_response_text": {
|
|
40
56
|
"stepId": "__builtin_response_text"
|
|
57
|
+
},
|
|
58
|
+
"__builtin_set_attributes": {
|
|
59
|
+
"stepId": "__builtin_set_attributes"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"core/dist/runtime/start.js": {
|
|
63
|
+
"start": {
|
|
64
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.20//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.20//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.20//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.20//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.20//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.20//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.20//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.20//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.20//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.20//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.20//Run#workflowName"
|
|
73
97
|
}
|
|
74
98
|
}
|
|
75
99
|
},
|
|
76
100
|
"workflows": {
|
|
77
|
-
"workflows/
|
|
78
|
-
"
|
|
79
|
-
"workflowId": "workflow//./workflows/
|
|
101
|
+
"workflows/retriable-and-fatal.ts": {
|
|
102
|
+
"retryableAndFatalErrorWorkflow": {
|
|
103
|
+
"workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
|
|
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: retryableAndFatalErrorWorkflow",
|
|
111
|
+
"nodeKind": "workflow_start"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "end",
|
|
116
|
+
"type": "workflowEnd",
|
|
117
|
+
"data": {
|
|
118
|
+
"label": "Return",
|
|
119
|
+
"nodeKind": "workflow_end"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"edges": [
|
|
124
|
+
{
|
|
125
|
+
"id": "e_start_end",
|
|
126
|
+
"source": "start",
|
|
127
|
+
"target": "end",
|
|
128
|
+
"type": "default"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"workflows/noop.ts": {
|
|
135
|
+
"brokenWf": {
|
|
136
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
137
|
+
"graph": {
|
|
138
|
+
"nodes": [
|
|
139
|
+
{
|
|
140
|
+
"id": "start",
|
|
141
|
+
"type": "workflowStart",
|
|
142
|
+
"data": {
|
|
143
|
+
"label": "Start: brokenWf",
|
|
144
|
+
"nodeKind": "workflow_start"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "end",
|
|
149
|
+
"type": "workflowEnd",
|
|
150
|
+
"data": {
|
|
151
|
+
"label": "Return",
|
|
152
|
+
"nodeKind": "workflow_end"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"edges": [
|
|
157
|
+
{
|
|
158
|
+
"id": "e_start_end",
|
|
159
|
+
"source": "start",
|
|
160
|
+
"target": "end",
|
|
161
|
+
"type": "default"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"workflows/null-byte.ts": {
|
|
168
|
+
"nullByteWorkflow": {
|
|
169
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
170
|
+
"graph": {
|
|
171
|
+
"nodes": [
|
|
172
|
+
{
|
|
173
|
+
"id": "start",
|
|
174
|
+
"type": "workflowStart",
|
|
175
|
+
"data": {
|
|
176
|
+
"label": "Start: nullByteWorkflow",
|
|
87
177
|
"nodeKind": "workflow_start"
|
|
88
178
|
}
|
|
89
179
|
},
|
|
@@ -140,16 +230,16 @@
|
|
|
140
230
|
}
|
|
141
231
|
}
|
|
142
232
|
},
|
|
143
|
-
"workflows/
|
|
144
|
-
"
|
|
145
|
-
"workflowId": "workflow//./workflows/
|
|
233
|
+
"workflows/inline-execution.ts": {
|
|
234
|
+
"hookWorkflow": {
|
|
235
|
+
"workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
|
|
146
236
|
"graph": {
|
|
147
237
|
"nodes": [
|
|
148
238
|
{
|
|
149
239
|
"id": "start",
|
|
150
240
|
"type": "workflowStart",
|
|
151
241
|
"data": {
|
|
152
|
-
"label": "Start:
|
|
242
|
+
"label": "Start: hookWorkflow",
|
|
153
243
|
"nodeKind": "workflow_start"
|
|
154
244
|
}
|
|
155
245
|
},
|
|
@@ -171,18 +261,154 @@
|
|
|
171
261
|
}
|
|
172
262
|
]
|
|
173
263
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"nullByteWorkflow": {
|
|
178
|
-
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
264
|
+
},
|
|
265
|
+
"parallelStepsWorkflow": {
|
|
266
|
+
"workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
|
|
179
267
|
"graph": {
|
|
180
268
|
"nodes": [
|
|
181
269
|
{
|
|
182
270
|
"id": "start",
|
|
183
271
|
"type": "workflowStart",
|
|
184
272
|
"data": {
|
|
185
|
-
"label": "Start:
|
|
273
|
+
"label": "Start: parallelStepsWorkflow",
|
|
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
|
+
"sequentialStepsWithStreamWorkflow": {
|
|
297
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
|
|
298
|
+
"graph": {
|
|
299
|
+
"nodes": [
|
|
300
|
+
{
|
|
301
|
+
"id": "start",
|
|
302
|
+
"type": "workflowStart",
|
|
303
|
+
"data": {
|
|
304
|
+
"label": "Start: sequentialStepsWithStreamWorkflow",
|
|
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
|
+
"sequentialStepsWorkflow": {
|
|
328
|
+
"workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
|
|
329
|
+
"graph": {
|
|
330
|
+
"nodes": [
|
|
331
|
+
{
|
|
332
|
+
"id": "start",
|
|
333
|
+
"type": "workflowStart",
|
|
334
|
+
"data": {
|
|
335
|
+
"label": "Start: sequentialStepsWorkflow",
|
|
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
|
+
"sleepWorkflow": {
|
|
359
|
+
"workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
|
|
360
|
+
"graph": {
|
|
361
|
+
"nodes": [
|
|
362
|
+
{
|
|
363
|
+
"id": "start",
|
|
364
|
+
"type": "workflowStart",
|
|
365
|
+
"data": {
|
|
366
|
+
"label": "Start: sleepWorkflow",
|
|
367
|
+
"nodeKind": "workflow_start"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"id": "node_0",
|
|
372
|
+
"type": "primitive",
|
|
373
|
+
"data": {
|
|
374
|
+
"label": "sleep",
|
|
375
|
+
"nodeKind": "primitive"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "end",
|
|
380
|
+
"type": "workflowEnd",
|
|
381
|
+
"data": {
|
|
382
|
+
"label": "Return",
|
|
383
|
+
"nodeKind": "workflow_end"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"edges": [
|
|
388
|
+
{
|
|
389
|
+
"id": "e_start_node_0",
|
|
390
|
+
"source": "start",
|
|
391
|
+
"target": "node_0",
|
|
392
|
+
"type": "default"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "e_node_0_end",
|
|
396
|
+
"source": "node_0",
|
|
397
|
+
"target": "end",
|
|
398
|
+
"type": "default"
|
|
399
|
+
}
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"threeBatchesOfFiveWorkflow": {
|
|
404
|
+
"workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
|
|
405
|
+
"graph": {
|
|
406
|
+
"nodes": [
|
|
407
|
+
{
|
|
408
|
+
"id": "start",
|
|
409
|
+
"type": "workflowStart",
|
|
410
|
+
"data": {
|
|
411
|
+
"label": "Start: threeBatchesOfFiveWorkflow",
|
|
186
412
|
"nodeKind": "workflow_start"
|
|
187
413
|
}
|
|
188
414
|
},
|
|
@@ -206,16 +432,47 @@
|
|
|
206
432
|
}
|
|
207
433
|
}
|
|
208
434
|
},
|
|
209
|
-
"workflows/
|
|
210
|
-
"
|
|
211
|
-
"workflowId": "workflow//./workflows/
|
|
435
|
+
"workflows/addition.ts": {
|
|
436
|
+
"addTenWorkflow": {
|
|
437
|
+
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
212
438
|
"graph": {
|
|
213
439
|
"nodes": [
|
|
214
440
|
{
|
|
215
441
|
"id": "start",
|
|
216
442
|
"type": "workflowStart",
|
|
217
443
|
"data": {
|
|
218
|
-
"label": "Start:
|
|
444
|
+
"label": "Start: addTenWorkflow",
|
|
445
|
+
"nodeKind": "workflow_start"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"id": "end",
|
|
450
|
+
"type": "workflowEnd",
|
|
451
|
+
"data": {
|
|
452
|
+
"label": "Return",
|
|
453
|
+
"nodeKind": "workflow_end"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"edges": [
|
|
458
|
+
{
|
|
459
|
+
"id": "e_start_end",
|
|
460
|
+
"source": "start",
|
|
461
|
+
"target": "end",
|
|
462
|
+
"type": "default"
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"addition": {
|
|
468
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
469
|
+
"graph": {
|
|
470
|
+
"nodes": [
|
|
471
|
+
{
|
|
472
|
+
"id": "start",
|
|
473
|
+
"type": "workflowStart",
|
|
474
|
+
"data": {
|
|
475
|
+
"label": "Start: addition",
|
|
219
476
|
"nodeKind": "workflow_start"
|
|
220
477
|
}
|
|
221
478
|
},
|
|
@@ -243,7 +500,7 @@
|
|
|
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.20//Run"
|
|
247
504
|
}
|
|
248
505
|
}
|
|
249
506
|
}
|