@workflow/world-testing 5.0.0-beta.0 → 5.0.0-beta.10

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.
Files changed (36) hide show
  1. package/dist/.well-known/workflow/v1/flow.mjs +112379 -0
  2. package/dist/.well-known/workflow/v1/manifest.json +314 -19
  3. package/dist/.well-known/workflow/v1/step.mjs +27154 -0
  4. package/dist/src/addition.mjs +1 -1
  5. package/dist/src/errors.mjs +1 -1
  6. package/dist/src/hooks.mjs +1 -1
  7. package/dist/src/idempotency.mjs +1 -1
  8. package/dist/src/index.d.mts.map +1 -1
  9. package/dist/src/index.mjs +3 -1
  10. package/dist/src/inline-batches-debug.d.mts +15 -0
  11. package/dist/src/inline-batches-debug.d.mts.map +1 -0
  12. package/dist/src/inline-batches-debug.mjs +208 -0
  13. package/dist/src/inline-execution.d.mts +13 -0
  14. package/dist/src/inline-execution.d.mts.map +1 -0
  15. package/dist/src/inline-execution.mjs +80 -0
  16. package/dist/src/jsonlines.mjs +1 -1
  17. package/dist/src/null-byte.mjs +1 -1
  18. package/dist/src/server.mjs +58 -9
  19. package/dist/src/util.d.mts +23 -16
  20. package/dist/src/util.d.mts.map +1 -1
  21. package/dist/src/util.mjs +21 -4
  22. package/dist/workflows/hooks.js +1 -1
  23. package/package.json +6 -6
  24. package/dist/.well-known/workflow/v1/flow.js +0 -69316
  25. package/dist/.well-known/workflow/v1/step.js +0 -63436
  26. package/dist/src/addition.mjs.map +0 -1
  27. package/dist/src/errors.mjs.map +0 -1
  28. package/dist/src/hooks.mjs.map +0 -1
  29. package/dist/src/idempotency.mjs.map +0 -1
  30. package/dist/src/index.mjs.map +0 -1
  31. package/dist/src/jsonlines.mjs.map +0 -1
  32. package/dist/src/null-byte.mjs.map +0 -1
  33. package/dist/src/server.mjs.map +0 -1
  34. package/dist/src/util.mjs.map +0 -1
  35. package/dist/workflows/hooks.js.map +0 -1
  36. /package/dist/.well-known/workflow/v1/{webhook.js → webhook.mjs} +0 -0
@@ -6,6 +6,19 @@
6
6
  "stepId": "step//./workflows/addition//add"
7
7
  }
8
8
  },
9
+ "workflows/retriable-and-fatal.ts": {
10
+ "stepThatFails": {
11
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
12
+ },
13
+ "stepThatThrowsRetryableError": {
14
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
15
+ }
16
+ },
17
+ "workflows/null-byte.ts": {
18
+ "nullByteStep": {
19
+ "stepId": "step//./workflows/null-byte//nullByteStep"
20
+ }
21
+ },
9
22
  "workflows/hooks.ts": {
10
23
  "writeEvent": {
11
24
  "stepId": "step//./workflows/hooks//writeEvent"
@@ -16,9 +29,20 @@
16
29
  "stepId": "step//./workflows/noop//noop"
17
30
  }
18
31
  },
19
- "workflows/null-byte.ts": {
20
- "nullByteStep": {
21
- "stepId": "step//./workflows/null-byte//nullByteStep"
32
+ "workflow/dist/stdlib.js": {
33
+ "fetch": {
34
+ "stepId": "step//workflow@5.0.0-beta.10//fetch"
35
+ }
36
+ },
37
+ "workflows/inline-execution.ts": {
38
+ "add": {
39
+ "stepId": "step//./workflows/inline-execution//add"
40
+ },
41
+ "closeOutputStream": {
42
+ "stepId": "step//./workflows/inline-execution//closeOutputStream"
43
+ },
44
+ "writeToStream": {
45
+ "stepId": "step//./workflows/inline-execution//writeToStream"
22
46
  }
23
47
  },
24
48
  "workflow/dist/internal/builtins.js": {
@@ -30,19 +54,82 @@
30
54
  },
31
55
  "__builtin_response_text": {
32
56
  "stepId": "__builtin_response_text"
57
+ },
58
+ "__builtin_set_attributes": {
59
+ "stepId": "__builtin_set_attributes"
33
60
  }
34
61
  },
35
- "workflows/retriable-and-fatal.ts": {
36
- "stepThatFails": {
37
- "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
62
+ "core/dist/runtime/start.js": {
63
+ "start": {
64
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.10//start"
65
+ }
66
+ },
67
+ "core/dist/runtime/run.js": {
68
+ "Run#cancel": {
69
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#cancel"
38
70
  },
39
- "stepThatThrowsRetryableError": {
40
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
71
+ "Run#completedAt": {
72
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#completedAt"
73
+ },
74
+ "Run#createdAt": {
75
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#createdAt"
76
+ },
77
+ "Run#exists": {
78
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#exists"
79
+ },
80
+ "Run#getReadable": {
81
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#getReadable"
82
+ },
83
+ "Run#returnValue": {
84
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#returnValue"
85
+ },
86
+ "Run#startedAt": {
87
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#startedAt"
88
+ },
89
+ "Run#status": {
90
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#status"
91
+ },
92
+ "Run#wakeUp": {
93
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#wakeUp"
94
+ },
95
+ "Run#workflowName": {
96
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.10//Run#workflowName"
41
97
  }
42
98
  }
43
99
  },
44
100
  "workflows": {
45
101
  "workflows/addition.ts": {
102
+ "addTenWorkflow": {
103
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
104
+ "graph": {
105
+ "nodes": [
106
+ {
107
+ "id": "start",
108
+ "type": "workflowStart",
109
+ "data": {
110
+ "label": "Start: addTenWorkflow",
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
+ },
46
133
  "addition": {
47
134
  "workflowId": "workflow//./workflows/addition//addition",
48
135
  "graph": {
@@ -75,6 +162,72 @@
75
162
  }
76
163
  }
77
164
  },
165
+ "workflows/retriable-and-fatal.ts": {
166
+ "retryableAndFatalErrorWorkflow": {
167
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
168
+ "graph": {
169
+ "nodes": [
170
+ {
171
+ "id": "start",
172
+ "type": "workflowStart",
173
+ "data": {
174
+ "label": "Start: retryableAndFatalErrorWorkflow",
175
+ "nodeKind": "workflow_start"
176
+ }
177
+ },
178
+ {
179
+ "id": "end",
180
+ "type": "workflowEnd",
181
+ "data": {
182
+ "label": "Return",
183
+ "nodeKind": "workflow_end"
184
+ }
185
+ }
186
+ ],
187
+ "edges": [
188
+ {
189
+ "id": "e_start_end",
190
+ "source": "start",
191
+ "target": "end",
192
+ "type": "default"
193
+ }
194
+ ]
195
+ }
196
+ }
197
+ },
198
+ "workflows/null-byte.ts": {
199
+ "nullByteWorkflow": {
200
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
201
+ "graph": {
202
+ "nodes": [
203
+ {
204
+ "id": "start",
205
+ "type": "workflowStart",
206
+ "data": {
207
+ "label": "Start: nullByteWorkflow",
208
+ "nodeKind": "workflow_start"
209
+ }
210
+ },
211
+ {
212
+ "id": "end",
213
+ "type": "workflowEnd",
214
+ "data": {
215
+ "label": "Return",
216
+ "nodeKind": "workflow_end"
217
+ }
218
+ }
219
+ ],
220
+ "edges": [
221
+ {
222
+ "id": "e_start_end",
223
+ "source": "start",
224
+ "target": "end",
225
+ "type": "default"
226
+ }
227
+ ]
228
+ }
229
+ }
230
+ },
78
231
  "workflows/hooks.ts": {
79
232
  "collectWithHook": {
80
233
  "workflowId": "workflow//./workflows/hooks//collectWithHook",
@@ -141,16 +294,16 @@
141
294
  }
142
295
  }
143
296
  },
144
- "workflows/null-byte.ts": {
145
- "nullByteWorkflow": {
146
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
297
+ "workflows/inline-execution.ts": {
298
+ "hookWorkflow": {
299
+ "workflowId": "workflow//./workflows/inline-execution//hookWorkflow",
147
300
  "graph": {
148
301
  "nodes": [
149
302
  {
150
303
  "id": "start",
151
304
  "type": "workflowStart",
152
305
  "data": {
153
- "label": "Start: nullByteWorkflow",
306
+ "label": "Start: hookWorkflow",
154
307
  "nodeKind": "workflow_start"
155
308
  }
156
309
  },
@@ -172,18 +325,154 @@
172
325
  }
173
326
  ]
174
327
  }
175
- }
176
- },
177
- "workflows/retriable-and-fatal.ts": {
178
- "retryableAndFatalErrorWorkflow": {
179
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
328
+ },
329
+ "parallelStepsWorkflow": {
330
+ "workflowId": "workflow//./workflows/inline-execution//parallelStepsWorkflow",
180
331
  "graph": {
181
332
  "nodes": [
182
333
  {
183
334
  "id": "start",
184
335
  "type": "workflowStart",
185
336
  "data": {
186
- "label": "Start: retryableAndFatalErrorWorkflow",
337
+ "label": "Start: parallelStepsWorkflow",
338
+ "nodeKind": "workflow_start"
339
+ }
340
+ },
341
+ {
342
+ "id": "end",
343
+ "type": "workflowEnd",
344
+ "data": {
345
+ "label": "Return",
346
+ "nodeKind": "workflow_end"
347
+ }
348
+ }
349
+ ],
350
+ "edges": [
351
+ {
352
+ "id": "e_start_end",
353
+ "source": "start",
354
+ "target": "end",
355
+ "type": "default"
356
+ }
357
+ ]
358
+ }
359
+ },
360
+ "sequentialStepsWithStreamWorkflow": {
361
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWithStreamWorkflow",
362
+ "graph": {
363
+ "nodes": [
364
+ {
365
+ "id": "start",
366
+ "type": "workflowStart",
367
+ "data": {
368
+ "label": "Start: sequentialStepsWithStreamWorkflow",
369
+ "nodeKind": "workflow_start"
370
+ }
371
+ },
372
+ {
373
+ "id": "end",
374
+ "type": "workflowEnd",
375
+ "data": {
376
+ "label": "Return",
377
+ "nodeKind": "workflow_end"
378
+ }
379
+ }
380
+ ],
381
+ "edges": [
382
+ {
383
+ "id": "e_start_end",
384
+ "source": "start",
385
+ "target": "end",
386
+ "type": "default"
387
+ }
388
+ ]
389
+ }
390
+ },
391
+ "sequentialStepsWorkflow": {
392
+ "workflowId": "workflow//./workflows/inline-execution//sequentialStepsWorkflow",
393
+ "graph": {
394
+ "nodes": [
395
+ {
396
+ "id": "start",
397
+ "type": "workflowStart",
398
+ "data": {
399
+ "label": "Start: sequentialStepsWorkflow",
400
+ "nodeKind": "workflow_start"
401
+ }
402
+ },
403
+ {
404
+ "id": "end",
405
+ "type": "workflowEnd",
406
+ "data": {
407
+ "label": "Return",
408
+ "nodeKind": "workflow_end"
409
+ }
410
+ }
411
+ ],
412
+ "edges": [
413
+ {
414
+ "id": "e_start_end",
415
+ "source": "start",
416
+ "target": "end",
417
+ "type": "default"
418
+ }
419
+ ]
420
+ }
421
+ },
422
+ "sleepWorkflow": {
423
+ "workflowId": "workflow//./workflows/inline-execution//sleepWorkflow",
424
+ "graph": {
425
+ "nodes": [
426
+ {
427
+ "id": "start",
428
+ "type": "workflowStart",
429
+ "data": {
430
+ "label": "Start: sleepWorkflow",
431
+ "nodeKind": "workflow_start"
432
+ }
433
+ },
434
+ {
435
+ "id": "node_0",
436
+ "type": "primitive",
437
+ "data": {
438
+ "label": "sleep",
439
+ "nodeKind": "primitive"
440
+ }
441
+ },
442
+ {
443
+ "id": "end",
444
+ "type": "workflowEnd",
445
+ "data": {
446
+ "label": "Return",
447
+ "nodeKind": "workflow_end"
448
+ }
449
+ }
450
+ ],
451
+ "edges": [
452
+ {
453
+ "id": "e_start_node_0",
454
+ "source": "start",
455
+ "target": "node_0",
456
+ "type": "default"
457
+ },
458
+ {
459
+ "id": "e_node_0_end",
460
+ "source": "node_0",
461
+ "target": "end",
462
+ "type": "default"
463
+ }
464
+ ]
465
+ }
466
+ },
467
+ "threeBatchesOfFiveWorkflow": {
468
+ "workflowId": "workflow//./workflows/inline-execution//threeBatchesOfFiveWorkflow",
469
+ "graph": {
470
+ "nodes": [
471
+ {
472
+ "id": "start",
473
+ "type": "workflowStart",
474
+ "data": {
475
+ "label": "Start: threeBatchesOfFiveWorkflow",
187
476
  "nodeKind": "workflow_start"
188
477
  }
189
478
  },
@@ -208,5 +497,11 @@
208
497
  }
209
498
  }
210
499
  },
211
- "classes": {}
500
+ "classes": {
501
+ "core/dist/runtime/run.js": {
502
+ "Run": {
503
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.10//Run"
504
+ }
505
+ }
506
+ }
212
507
  }