@workflow/world-testing 5.0.0-beta.27 → 5.0.0-beta.28
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 +67997 -78669
- package/dist/.well-known/workflow/v1/manifest.json +170 -108
- package/dist/.well-known/workflow/v1/step.mjs +61 -32
- package/dist/src/inline-execution.d.mts.map +1 -1
- package/dist/src/inline-execution.mjs +21 -1
- package/dist/src/server.mjs +22 -3
- package/package.json +7 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"steps": {
|
|
4
|
-
"workflows/
|
|
5
|
-
"
|
|
6
|
-
"stepId": "step//./workflows/
|
|
4
|
+
"workflows/addition.ts": {
|
|
5
|
+
"add": {
|
|
6
|
+
"stepId": "step//./workflows/addition//add"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
"workflows/retriable-and-fatal.ts": {
|
|
@@ -14,6 +14,26 @@
|
|
|
14
14
|
"stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
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/signal-cost.ts": {
|
|
28
|
+
"trivialStep": {
|
|
29
|
+
"stepId": "step//./workflows/signal-cost//trivialStep"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"workflow/dist/stdlib.js": {
|
|
33
|
+
"fetch": {
|
|
34
|
+
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
17
37
|
"workflows/null-byte.ts": {
|
|
18
38
|
"nullByteStep": {
|
|
19
39
|
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
@@ -33,21 +53,6 @@
|
|
|
33
53
|
"stepId": "__builtin_set_attributes"
|
|
34
54
|
}
|
|
35
55
|
},
|
|
36
|
-
"workflows/addition.ts": {
|
|
37
|
-
"add": {
|
|
38
|
-
"stepId": "step//./workflows/addition//add"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"workflows/hooks.ts": {
|
|
42
|
-
"writeEvent": {
|
|
43
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"workflow/dist/stdlib.js": {
|
|
47
|
-
"fetch": {
|
|
48
|
-
"stepId": "step//./workflow/dist/stdlib//fetch"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
56
|
"workflows/inline-execution.ts": {
|
|
52
57
|
"add": {
|
|
53
58
|
"stepId": "step//./workflows/inline-execution//add"
|
|
@@ -61,53 +66,53 @@
|
|
|
61
66
|
},
|
|
62
67
|
"core/dist/runtime/start.js": {
|
|
63
68
|
"start": {
|
|
64
|
-
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.
|
|
69
|
+
"stepId": "step//@workflow/core/runtime/start@5.0.0-beta.28//start"
|
|
65
70
|
}
|
|
66
71
|
},
|
|
67
72
|
"core/dist/runtime/run.js": {
|
|
68
73
|
"Run#cancel": {
|
|
69
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
74
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#cancel"
|
|
70
75
|
},
|
|
71
76
|
"Run#completedAt": {
|
|
72
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
77
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#completedAt"
|
|
73
78
|
},
|
|
74
79
|
"Run#createdAt": {
|
|
75
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
80
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#createdAt"
|
|
76
81
|
},
|
|
77
82
|
"Run#exists": {
|
|
78
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
83
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#exists"
|
|
79
84
|
},
|
|
80
85
|
"Run#getReadable": {
|
|
81
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
86
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#getReadable"
|
|
82
87
|
},
|
|
83
88
|
"Run#returnValue": {
|
|
84
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
89
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#returnValue"
|
|
85
90
|
},
|
|
86
91
|
"Run#startedAt": {
|
|
87
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
92
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#startedAt"
|
|
88
93
|
},
|
|
89
94
|
"Run#status": {
|
|
90
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
95
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#status"
|
|
91
96
|
},
|
|
92
97
|
"Run#wakeUp": {
|
|
93
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
98
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#wakeUp"
|
|
94
99
|
},
|
|
95
100
|
"Run#workflowName": {
|
|
96
|
-
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.
|
|
101
|
+
"stepId": "step//@workflow/core/runtime/run@5.0.0-beta.28//Run#workflowName"
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
},
|
|
100
105
|
"workflows": {
|
|
101
|
-
"workflows/
|
|
102
|
-
"
|
|
103
|
-
"workflowId": "workflow//./workflows/
|
|
106
|
+
"workflows/addition.ts": {
|
|
107
|
+
"addTenWorkflow": {
|
|
108
|
+
"workflowId": "workflow//./workflows/addition//addTenWorkflow",
|
|
104
109
|
"graph": {
|
|
105
110
|
"nodes": [
|
|
106
111
|
{
|
|
107
112
|
"id": "start",
|
|
108
113
|
"type": "workflowStart",
|
|
109
114
|
"data": {
|
|
110
|
-
"label": "Start:
|
|
115
|
+
"label": "Start: addTenWorkflow",
|
|
111
116
|
"nodeKind": "workflow_start"
|
|
112
117
|
}
|
|
113
118
|
},
|
|
@@ -115,18 +120,27 @@
|
|
|
115
120
|
"id": "node_0",
|
|
116
121
|
"type": "step",
|
|
117
122
|
"data": {
|
|
118
|
-
"label": "
|
|
123
|
+
"label": "add",
|
|
119
124
|
"nodeKind": "step",
|
|
120
|
-
"stepId": "step//./workflows/
|
|
125
|
+
"stepId": "step//./workflows/addition//add"
|
|
121
126
|
}
|
|
122
127
|
},
|
|
123
128
|
{
|
|
124
129
|
"id": "node_1",
|
|
125
130
|
"type": "step",
|
|
126
131
|
"data": {
|
|
127
|
-
"label": "
|
|
132
|
+
"label": "add",
|
|
128
133
|
"nodeKind": "step",
|
|
129
|
-
"stepId": "step//./workflows/
|
|
134
|
+
"stepId": "step//./workflows/addition//add"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "node_2",
|
|
139
|
+
"type": "step",
|
|
140
|
+
"data": {
|
|
141
|
+
"label": "add",
|
|
142
|
+
"nodeKind": "step",
|
|
143
|
+
"stepId": "step//./workflows/addition//add"
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
{
|
|
@@ -152,8 +166,60 @@
|
|
|
152
166
|
"type": "default"
|
|
153
167
|
},
|
|
154
168
|
{
|
|
155
|
-
"id": "
|
|
169
|
+
"id": "e_node_1_node_2",
|
|
156
170
|
"source": "node_1",
|
|
171
|
+
"target": "node_2",
|
|
172
|
+
"type": "default"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "e_node_2_end",
|
|
176
|
+
"source": "node_2",
|
|
177
|
+
"target": "end",
|
|
178
|
+
"type": "default"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"addition": {
|
|
184
|
+
"workflowId": "workflow//./workflows/addition//addition",
|
|
185
|
+
"graph": {
|
|
186
|
+
"nodes": [
|
|
187
|
+
{
|
|
188
|
+
"id": "start",
|
|
189
|
+
"type": "workflowStart",
|
|
190
|
+
"data": {
|
|
191
|
+
"label": "Start: addition",
|
|
192
|
+
"nodeKind": "workflow_start"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "node_0",
|
|
197
|
+
"type": "step",
|
|
198
|
+
"data": {
|
|
199
|
+
"label": "add",
|
|
200
|
+
"nodeKind": "step",
|
|
201
|
+
"stepId": "step//./workflows/addition//add"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "end",
|
|
206
|
+
"type": "workflowEnd",
|
|
207
|
+
"data": {
|
|
208
|
+
"label": "Return",
|
|
209
|
+
"nodeKind": "workflow_end"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"edges": [
|
|
214
|
+
{
|
|
215
|
+
"id": "e_start_node_0",
|
|
216
|
+
"source": "start",
|
|
217
|
+
"target": "node_0",
|
|
218
|
+
"type": "default"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "e_node_0_end",
|
|
222
|
+
"source": "node_0",
|
|
157
223
|
"target": "end",
|
|
158
224
|
"type": "default"
|
|
159
225
|
}
|
|
@@ -209,16 +275,16 @@
|
|
|
209
275
|
}
|
|
210
276
|
}
|
|
211
277
|
},
|
|
212
|
-
"workflows/
|
|
213
|
-
"
|
|
214
|
-
"workflowId": "workflow//./workflows/
|
|
278
|
+
"workflows/noop.ts": {
|
|
279
|
+
"brokenWf": {
|
|
280
|
+
"workflowId": "workflow//./workflows/noop//brokenWf",
|
|
215
281
|
"graph": {
|
|
216
282
|
"nodes": [
|
|
217
283
|
{
|
|
218
284
|
"id": "start",
|
|
219
285
|
"type": "workflowStart",
|
|
220
286
|
"data": {
|
|
221
|
-
"label": "Start:
|
|
287
|
+
"label": "Start: brokenWf",
|
|
222
288
|
"nodeKind": "workflow_start"
|
|
223
289
|
}
|
|
224
290
|
},
|
|
@@ -226,9 +292,18 @@
|
|
|
226
292
|
"id": "node_0",
|
|
227
293
|
"type": "step",
|
|
228
294
|
"data": {
|
|
229
|
-
"label": "
|
|
295
|
+
"label": "noop",
|
|
230
296
|
"nodeKind": "step",
|
|
231
|
-
"stepId": "step//./workflows/
|
|
297
|
+
"stepId": "step//./workflows/noop//noop"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "node_1",
|
|
302
|
+
"type": "step",
|
|
303
|
+
"data": {
|
|
304
|
+
"label": "noop",
|
|
305
|
+
"nodeKind": "step",
|
|
306
|
+
"stepId": "step//./workflows/noop//noop"
|
|
232
307
|
}
|
|
233
308
|
},
|
|
234
309
|
{
|
|
@@ -248,8 +323,14 @@
|
|
|
248
323
|
"type": "default"
|
|
249
324
|
},
|
|
250
325
|
{
|
|
251
|
-
"id": "
|
|
326
|
+
"id": "e_node_0_node_1",
|
|
252
327
|
"source": "node_0",
|
|
328
|
+
"target": "node_1",
|
|
329
|
+
"type": "default"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"id": "e_node_1_end",
|
|
333
|
+
"source": "node_1",
|
|
253
334
|
"target": "end",
|
|
254
335
|
"type": "default"
|
|
255
336
|
}
|
|
@@ -257,16 +338,16 @@
|
|
|
257
338
|
}
|
|
258
339
|
}
|
|
259
340
|
},
|
|
260
|
-
"workflows/
|
|
261
|
-
"
|
|
262
|
-
"workflowId": "workflow//./workflows/
|
|
341
|
+
"workflows/hooks.ts": {
|
|
342
|
+
"collectWithHook": {
|
|
343
|
+
"workflowId": "workflow//./workflows/hooks//collectWithHook",
|
|
263
344
|
"graph": {
|
|
264
345
|
"nodes": [
|
|
265
346
|
{
|
|
266
347
|
"id": "start",
|
|
267
348
|
"type": "workflowStart",
|
|
268
349
|
"data": {
|
|
269
|
-
"label": "Start:
|
|
350
|
+
"label": "Start: collectWithHook",
|
|
270
351
|
"nodeKind": "workflow_start"
|
|
271
352
|
}
|
|
272
353
|
},
|
|
@@ -274,27 +355,22 @@
|
|
|
274
355
|
"id": "node_0",
|
|
275
356
|
"type": "step",
|
|
276
357
|
"data": {
|
|
277
|
-
"label": "
|
|
358
|
+
"label": "writeEvent",
|
|
278
359
|
"nodeKind": "step",
|
|
279
|
-
"stepId": "step//./workflows/
|
|
360
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
280
361
|
}
|
|
281
362
|
},
|
|
282
363
|
{
|
|
283
364
|
"id": "node_1",
|
|
284
365
|
"type": "step",
|
|
285
366
|
"data": {
|
|
286
|
-
"label": "
|
|
287
|
-
"nodeKind": "step",
|
|
288
|
-
"stepId": "step//./workflows/addition//add"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"id": "node_2",
|
|
293
|
-
"type": "step",
|
|
294
|
-
"data": {
|
|
295
|
-
"label": "add",
|
|
367
|
+
"label": "writeEvent",
|
|
296
368
|
"nodeKind": "step",
|
|
297
|
-
"stepId": "step//./workflows/
|
|
369
|
+
"stepId": "step//./workflows/hooks//writeEvent"
|
|
370
|
+
},
|
|
371
|
+
"metadata": {
|
|
372
|
+
"loopId": "loop_0",
|
|
373
|
+
"loopIsAwait": true
|
|
298
374
|
}
|
|
299
375
|
},
|
|
300
376
|
{
|
|
@@ -313,6 +389,12 @@
|
|
|
313
389
|
"target": "node_0",
|
|
314
390
|
"type": "default"
|
|
315
391
|
},
|
|
392
|
+
{
|
|
393
|
+
"id": "e_node_1_back_node_1",
|
|
394
|
+
"source": "node_1",
|
|
395
|
+
"target": "node_1",
|
|
396
|
+
"type": "loop"
|
|
397
|
+
},
|
|
316
398
|
{
|
|
317
399
|
"id": "e_node_0_node_1",
|
|
318
400
|
"source": "node_0",
|
|
@@ -320,29 +402,25 @@
|
|
|
320
402
|
"type": "default"
|
|
321
403
|
},
|
|
322
404
|
{
|
|
323
|
-
"id": "
|
|
405
|
+
"id": "e_node_1_end",
|
|
324
406
|
"source": "node_1",
|
|
325
|
-
"target": "node_2",
|
|
326
|
-
"type": "default"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"id": "e_node_2_end",
|
|
330
|
-
"source": "node_2",
|
|
331
407
|
"target": "end",
|
|
332
408
|
"type": "default"
|
|
333
409
|
}
|
|
334
410
|
]
|
|
335
411
|
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"workflows/signal-cost.ts": {
|
|
415
|
+
"signalCostWorkflow": {
|
|
416
|
+
"workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
|
|
339
417
|
"graph": {
|
|
340
418
|
"nodes": [
|
|
341
419
|
{
|
|
342
420
|
"id": "start",
|
|
343
421
|
"type": "workflowStart",
|
|
344
422
|
"data": {
|
|
345
|
-
"label": "Start:
|
|
423
|
+
"label": "Start: signalCostWorkflow",
|
|
346
424
|
"nodeKind": "workflow_start"
|
|
347
425
|
}
|
|
348
426
|
},
|
|
@@ -350,9 +428,12 @@
|
|
|
350
428
|
"id": "node_0",
|
|
351
429
|
"type": "step",
|
|
352
430
|
"data": {
|
|
353
|
-
"label": "
|
|
431
|
+
"label": "trivialStep",
|
|
354
432
|
"nodeKind": "step",
|
|
355
|
-
"stepId": "step//./workflows/
|
|
433
|
+
"stepId": "step//./workflows/signal-cost//trivialStep"
|
|
434
|
+
},
|
|
435
|
+
"metadata": {
|
|
436
|
+
"loopId": "loop_0"
|
|
356
437
|
}
|
|
357
438
|
},
|
|
358
439
|
{
|
|
@@ -365,6 +446,12 @@
|
|
|
365
446
|
}
|
|
366
447
|
],
|
|
367
448
|
"edges": [
|
|
449
|
+
{
|
|
450
|
+
"id": "e_node_0_back_node_0",
|
|
451
|
+
"source": "node_0",
|
|
452
|
+
"target": "node_0",
|
|
453
|
+
"type": "loop"
|
|
454
|
+
},
|
|
368
455
|
{
|
|
369
456
|
"id": "e_start_node_0",
|
|
370
457
|
"source": "start",
|
|
@@ -381,16 +468,16 @@
|
|
|
381
468
|
}
|
|
382
469
|
}
|
|
383
470
|
},
|
|
384
|
-
"workflows/
|
|
385
|
-
"
|
|
386
|
-
"workflowId": "workflow//./workflows/
|
|
471
|
+
"workflows/null-byte.ts": {
|
|
472
|
+
"nullByteWorkflow": {
|
|
473
|
+
"workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
|
|
387
474
|
"graph": {
|
|
388
475
|
"nodes": [
|
|
389
476
|
{
|
|
390
477
|
"id": "start",
|
|
391
478
|
"type": "workflowStart",
|
|
392
479
|
"data": {
|
|
393
|
-
"label": "Start:
|
|
480
|
+
"label": "Start: nullByteWorkflow",
|
|
394
481
|
"nodeKind": "workflow_start"
|
|
395
482
|
}
|
|
396
483
|
},
|
|
@@ -398,22 +485,9 @@
|
|
|
398
485
|
"id": "node_0",
|
|
399
486
|
"type": "step",
|
|
400
487
|
"data": {
|
|
401
|
-
"label": "
|
|
402
|
-
"nodeKind": "step",
|
|
403
|
-
"stepId": "step//./workflows/hooks//writeEvent"
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"id": "node_1",
|
|
408
|
-
"type": "step",
|
|
409
|
-
"data": {
|
|
410
|
-
"label": "writeEvent",
|
|
488
|
+
"label": "nullByteStep",
|
|
411
489
|
"nodeKind": "step",
|
|
412
|
-
"stepId": "step//./workflows/
|
|
413
|
-
},
|
|
414
|
-
"metadata": {
|
|
415
|
-
"loopId": "loop_0",
|
|
416
|
-
"loopIsAwait": true
|
|
490
|
+
"stepId": "step//./workflows/null-byte//nullByteStep"
|
|
417
491
|
}
|
|
418
492
|
},
|
|
419
493
|
{
|
|
@@ -433,20 +507,8 @@
|
|
|
433
507
|
"type": "default"
|
|
434
508
|
},
|
|
435
509
|
{
|
|
436
|
-
"id": "
|
|
437
|
-
"source": "node_1",
|
|
438
|
-
"target": "node_1",
|
|
439
|
-
"type": "loop"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"id": "e_node_0_node_1",
|
|
510
|
+
"id": "e_node_0_end",
|
|
443
511
|
"source": "node_0",
|
|
444
|
-
"target": "node_1",
|
|
445
|
-
"type": "default"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"id": "e_node_1_end",
|
|
449
|
-
"source": "node_1",
|
|
450
512
|
"target": "end",
|
|
451
513
|
"type": "default"
|
|
452
514
|
}
|
|
@@ -1358,7 +1420,7 @@
|
|
|
1358
1420
|
"classes": {
|
|
1359
1421
|
"core/dist/runtime/run.js": {
|
|
1360
1422
|
"Run": {
|
|
1361
|
-
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.
|
|
1423
|
+
"classId": "class//@workflow/core/runtime/run@5.0.0-beta.28//Run"
|
|
1362
1424
|
}
|
|
1363
1425
|
}
|
|
1364
1426
|
}
|