@workflow/world-testing 5.0.0-beta.32 → 5.0.0-beta.34

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.
@@ -1,32 +1,14 @@
1
1
  {
2
2
  "version": "1.0.0",
3
3
  "steps": {
4
- "workflows/signal-cost.ts": {
5
- "trivialStep": {
6
- "stepId": "step//./workflows/signal-cost//trivialStep"
7
- }
8
- },
9
- "workflows/addition.ts": {
10
- "add": {
11
- "stepId": "step//./workflows/addition//add"
12
- }
13
- },
14
4
  "workflows/hooks.ts": {
15
5
  "writeEvent": {
16
6
  "stepId": "step//./workflows/hooks//writeEvent"
17
7
  }
18
8
  },
19
- "workflows/retriable-and-fatal.ts": {
20
- "stepThatFails": {
21
- "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
22
- },
23
- "stepThatThrowsRetryableError": {
24
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
25
- }
26
- },
27
- "workflows/null-byte.ts": {
28
- "nullByteStep": {
29
- "stepId": "step//./workflows/null-byte//nullByteStep"
9
+ "workflows/signal-cost.ts": {
10
+ "trivialStep": {
11
+ "stepId": "step//./workflows/signal-cost//trivialStep"
30
12
  }
31
13
  },
32
14
  "workflows/inline-execution.ts": {
@@ -40,14 +22,9 @@
40
22
  "stepId": "step//./workflows/inline-execution//writeToStream"
41
23
  }
42
24
  },
43
- "workflow/dist/stdlib.js": {
44
- "fetch": {
45
- "stepId": "step//./workflow/dist/stdlib//fetch"
46
- }
47
- },
48
- "workflows/noop.ts": {
49
- "noop": {
50
- "stepId": "step//./workflows/noop//noop"
25
+ "workflows/addition.ts": {
26
+ "add": {
27
+ "stepId": "step//./workflows/addition//add"
51
28
  }
52
29
  },
53
30
  "workflow/dist/internal/builtins.js": {
@@ -64,226 +41,68 @@
64
41
  "stepId": "__builtin_set_attributes"
65
42
  }
66
43
  },
67
- "core/dist/runtime/start.js": {
68
- "start": {
69
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.32//start"
44
+ "workflows/noop.ts": {
45
+ "noop": {
46
+ "stepId": "step//./workflows/noop//noop"
47
+ }
48
+ },
49
+ "workflows/null-byte.ts": {
50
+ "nullByteStep": {
51
+ "stepId": "step//./workflows/null-byte//nullByteStep"
52
+ }
53
+ },
54
+ "workflow/dist/stdlib.js": {
55
+ "fetch": {
56
+ "stepId": "step//./workflow/dist/stdlib//fetch"
57
+ }
58
+ },
59
+ "workflows/retriable-and-fatal.ts": {
60
+ "stepThatFails": {
61
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatFails"
62
+ },
63
+ "stepThatThrowsRetryableError": {
64
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
70
65
  }
71
66
  },
72
67
  "core/dist/runtime/run.js": {
73
68
  "Run#cancel": {
74
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#cancel"
69
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#cancel"
75
70
  },
76
71
  "Run#completedAt": {
77
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#completedAt"
72
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#completedAt"
78
73
  },
79
74
  "Run#createdAt": {
80
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#createdAt"
75
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#createdAt"
81
76
  },
82
77
  "Run#exists": {
83
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#exists"
78
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#exists"
84
79
  },
85
80
  "Run#getReadable": {
86
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#getReadable"
81
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#getReadable"
87
82
  },
88
83
  "Run#returnValue": {
89
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#returnValue"
84
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#returnValue"
90
85
  },
91
86
  "Run#startedAt": {
92
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#startedAt"
87
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#startedAt"
93
88
  },
94
89
  "Run#status": {
95
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#status"
90
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#status"
96
91
  },
97
92
  "Run#wakeUp": {
98
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#wakeUp"
93
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#wakeUp"
99
94
  },
100
95
  "Run#workflowName": {
101
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#workflowName"
96
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.34//Run#workflowName"
97
+ }
98
+ },
99
+ "core/dist/runtime/start.js": {
100
+ "start": {
101
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.34//start"
102
102
  }
103
103
  }
104
104
  },
105
105
  "workflows": {
106
- "workflows/signal-cost.ts": {
107
- "signalCostWorkflow": {
108
- "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
109
- "graph": {
110
- "nodes": [
111
- {
112
- "id": "start",
113
- "type": "workflowStart",
114
- "data": {
115
- "label": "Start: signalCostWorkflow",
116
- "nodeKind": "workflow_start"
117
- }
118
- },
119
- {
120
- "id": "node_0",
121
- "type": "step",
122
- "data": {
123
- "label": "trivialStep",
124
- "nodeKind": "step",
125
- "stepId": "step//./workflows/signal-cost//trivialStep"
126
- },
127
- "metadata": {
128
- "loopId": "loop_0"
129
- }
130
- },
131
- {
132
- "id": "end",
133
- "type": "workflowEnd",
134
- "data": {
135
- "label": "Return",
136
- "nodeKind": "workflow_end"
137
- }
138
- }
139
- ],
140
- "edges": [
141
- {
142
- "id": "e_node_0_back_node_0",
143
- "source": "node_0",
144
- "target": "node_0",
145
- "type": "loop"
146
- },
147
- {
148
- "id": "e_start_node_0",
149
- "source": "start",
150
- "target": "node_0",
151
- "type": "default"
152
- },
153
- {
154
- "id": "e_node_0_end",
155
- "source": "node_0",
156
- "target": "end",
157
- "type": "default"
158
- }
159
- ]
160
- }
161
- }
162
- },
163
- "workflows/addition.ts": {
164
- "addTenWorkflow": {
165
- "workflowId": "workflow//./workflows/addition//addTenWorkflow",
166
- "graph": {
167
- "nodes": [
168
- {
169
- "id": "start",
170
- "type": "workflowStart",
171
- "data": {
172
- "label": "Start: addTenWorkflow",
173
- "nodeKind": "workflow_start"
174
- }
175
- },
176
- {
177
- "id": "node_0",
178
- "type": "step",
179
- "data": {
180
- "label": "add",
181
- "nodeKind": "step",
182
- "stepId": "step//./workflows/addition//add"
183
- }
184
- },
185
- {
186
- "id": "node_1",
187
- "type": "step",
188
- "data": {
189
- "label": "add",
190
- "nodeKind": "step",
191
- "stepId": "step//./workflows/addition//add"
192
- }
193
- },
194
- {
195
- "id": "node_2",
196
- "type": "step",
197
- "data": {
198
- "label": "add",
199
- "nodeKind": "step",
200
- "stepId": "step//./workflows/addition//add"
201
- }
202
- },
203
- {
204
- "id": "end",
205
- "type": "workflowEnd",
206
- "data": {
207
- "label": "Return",
208
- "nodeKind": "workflow_end"
209
- }
210
- }
211
- ],
212
- "edges": [
213
- {
214
- "id": "e_start_node_0",
215
- "source": "start",
216
- "target": "node_0",
217
- "type": "default"
218
- },
219
- {
220
- "id": "e_node_0_node_1",
221
- "source": "node_0",
222
- "target": "node_1",
223
- "type": "default"
224
- },
225
- {
226
- "id": "e_node_1_node_2",
227
- "source": "node_1",
228
- "target": "node_2",
229
- "type": "default"
230
- },
231
- {
232
- "id": "e_node_2_end",
233
- "source": "node_2",
234
- "target": "end",
235
- "type": "default"
236
- }
237
- ]
238
- }
239
- },
240
- "addition": {
241
- "workflowId": "workflow//./workflows/addition//addition",
242
- "graph": {
243
- "nodes": [
244
- {
245
- "id": "start",
246
- "type": "workflowStart",
247
- "data": {
248
- "label": "Start: addition",
249
- "nodeKind": "workflow_start"
250
- }
251
- },
252
- {
253
- "id": "node_0",
254
- "type": "step",
255
- "data": {
256
- "label": "add",
257
- "nodeKind": "step",
258
- "stepId": "step//./workflows/addition//add"
259
- }
260
- },
261
- {
262
- "id": "end",
263
- "type": "workflowEnd",
264
- "data": {
265
- "label": "Return",
266
- "nodeKind": "workflow_end"
267
- }
268
- }
269
- ],
270
- "edges": [
271
- {
272
- "id": "e_start_node_0",
273
- "source": "start",
274
- "target": "node_0",
275
- "type": "default"
276
- },
277
- {
278
- "id": "e_node_0_end",
279
- "source": "node_0",
280
- "target": "end",
281
- "type": "default"
282
- }
283
- ]
284
- }
285
- }
286
- },
287
106
  "workflows/hooks.ts": {
288
107
  "collectWithHook": {
289
108
  "workflowId": "workflow//./workflows/hooks//collectWithHook",
@@ -316,67 +135,7 @@
316
135
  },
317
136
  "metadata": {
318
137
  "loopId": "loop_0",
319
- "loopIsAwait": true
320
- }
321
- },
322
- {
323
- "id": "end",
324
- "type": "workflowEnd",
325
- "data": {
326
- "label": "Return",
327
- "nodeKind": "workflow_end"
328
- }
329
- }
330
- ],
331
- "edges": [
332
- {
333
- "id": "e_start_node_0",
334
- "source": "start",
335
- "target": "node_0",
336
- "type": "default"
337
- },
338
- {
339
- "id": "e_node_1_back_node_1",
340
- "source": "node_1",
341
- "target": "node_1",
342
- "type": "loop"
343
- },
344
- {
345
- "id": "e_node_0_node_1",
346
- "source": "node_0",
347
- "target": "node_1",
348
- "type": "default"
349
- },
350
- {
351
- "id": "e_node_1_end",
352
- "source": "node_1",
353
- "target": "end",
354
- "type": "default"
355
- }
356
- ]
357
- }
358
- }
359
- },
360
- "workflows/retriable-and-fatal.ts": {
361
- "retryableAndFatalErrorWorkflow": {
362
- "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
363
- "graph": {
364
- "nodes": [
365
- {
366
- "id": "start",
367
- "type": "workflowStart",
368
- "data": {
369
- "label": "Start: retryableAndFatalErrorWorkflow",
370
- "nodeKind": "workflow_start"
371
- }
372
- },
373
- {
374
- "id": "node_0",
375
- "type": "step",
376
- "data": {
377
- "label": "stepThatThrowsRetryableError",
378
- "nodeKind": "step",
379
- "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
138
+ "loopIsAwait": true
380
139
  }
381
140
  },
382
141
  {
@@ -396,8 +155,20 @@
396
155
  "type": "default"
397
156
  },
398
157
  {
399
- "id": "e_node_0_end",
158
+ "id": "e_node_1_back_node_1",
159
+ "source": "node_1",
160
+ "target": "node_1",
161
+ "type": "loop"
162
+ },
163
+ {
164
+ "id": "e_node_0_node_1",
400
165
  "source": "node_0",
166
+ "target": "node_1",
167
+ "type": "default"
168
+ },
169
+ {
170
+ "id": "e_node_1_end",
171
+ "source": "node_1",
401
172
  "target": "end",
402
173
  "type": "default"
403
174
  }
@@ -405,16 +176,16 @@
405
176
  }
406
177
  }
407
178
  },
408
- "workflows/null-byte.ts": {
409
- "nullByteWorkflow": {
410
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
179
+ "workflows/signal-cost.ts": {
180
+ "signalCostWorkflow": {
181
+ "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
411
182
  "graph": {
412
183
  "nodes": [
413
184
  {
414
185
  "id": "start",
415
186
  "type": "workflowStart",
416
187
  "data": {
417
- "label": "Start: nullByteWorkflow",
188
+ "label": "Start: signalCostWorkflow",
418
189
  "nodeKind": "workflow_start"
419
190
  }
420
191
  },
@@ -422,9 +193,12 @@
422
193
  "id": "node_0",
423
194
  "type": "step",
424
195
  "data": {
425
- "label": "nullByteStep",
196
+ "label": "trivialStep",
426
197
  "nodeKind": "step",
427
- "stepId": "step//./workflows/null-byte//nullByteStep"
198
+ "stepId": "step//./workflows/signal-cost//trivialStep"
199
+ },
200
+ "metadata": {
201
+ "loopId": "loop_0"
428
202
  }
429
203
  },
430
204
  {
@@ -437,6 +211,12 @@
437
211
  }
438
212
  ],
439
213
  "edges": [
214
+ {
215
+ "id": "e_node_0_back_node_0",
216
+ "source": "node_0",
217
+ "target": "node_0",
218
+ "type": "loop"
219
+ },
440
220
  {
441
221
  "id": "e_start_node_0",
442
222
  "source": "start",
@@ -1353,6 +1133,130 @@
1353
1133
  }
1354
1134
  }
1355
1135
  },
1136
+ "workflows/addition.ts": {
1137
+ "addTenWorkflow": {
1138
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
1139
+ "graph": {
1140
+ "nodes": [
1141
+ {
1142
+ "id": "start",
1143
+ "type": "workflowStart",
1144
+ "data": {
1145
+ "label": "Start: addTenWorkflow",
1146
+ "nodeKind": "workflow_start"
1147
+ }
1148
+ },
1149
+ {
1150
+ "id": "node_0",
1151
+ "type": "step",
1152
+ "data": {
1153
+ "label": "add",
1154
+ "nodeKind": "step",
1155
+ "stepId": "step//./workflows/addition//add"
1156
+ }
1157
+ },
1158
+ {
1159
+ "id": "node_1",
1160
+ "type": "step",
1161
+ "data": {
1162
+ "label": "add",
1163
+ "nodeKind": "step",
1164
+ "stepId": "step//./workflows/addition//add"
1165
+ }
1166
+ },
1167
+ {
1168
+ "id": "node_2",
1169
+ "type": "step",
1170
+ "data": {
1171
+ "label": "add",
1172
+ "nodeKind": "step",
1173
+ "stepId": "step//./workflows/addition//add"
1174
+ }
1175
+ },
1176
+ {
1177
+ "id": "end",
1178
+ "type": "workflowEnd",
1179
+ "data": {
1180
+ "label": "Return",
1181
+ "nodeKind": "workflow_end"
1182
+ }
1183
+ }
1184
+ ],
1185
+ "edges": [
1186
+ {
1187
+ "id": "e_start_node_0",
1188
+ "source": "start",
1189
+ "target": "node_0",
1190
+ "type": "default"
1191
+ },
1192
+ {
1193
+ "id": "e_node_0_node_1",
1194
+ "source": "node_0",
1195
+ "target": "node_1",
1196
+ "type": "default"
1197
+ },
1198
+ {
1199
+ "id": "e_node_1_node_2",
1200
+ "source": "node_1",
1201
+ "target": "node_2",
1202
+ "type": "default"
1203
+ },
1204
+ {
1205
+ "id": "e_node_2_end",
1206
+ "source": "node_2",
1207
+ "target": "end",
1208
+ "type": "default"
1209
+ }
1210
+ ]
1211
+ }
1212
+ },
1213
+ "addition": {
1214
+ "workflowId": "workflow//./workflows/addition//addition",
1215
+ "graph": {
1216
+ "nodes": [
1217
+ {
1218
+ "id": "start",
1219
+ "type": "workflowStart",
1220
+ "data": {
1221
+ "label": "Start: addition",
1222
+ "nodeKind": "workflow_start"
1223
+ }
1224
+ },
1225
+ {
1226
+ "id": "node_0",
1227
+ "type": "step",
1228
+ "data": {
1229
+ "label": "add",
1230
+ "nodeKind": "step",
1231
+ "stepId": "step//./workflows/addition//add"
1232
+ }
1233
+ },
1234
+ {
1235
+ "id": "end",
1236
+ "type": "workflowEnd",
1237
+ "data": {
1238
+ "label": "Return",
1239
+ "nodeKind": "workflow_end"
1240
+ }
1241
+ }
1242
+ ],
1243
+ "edges": [
1244
+ {
1245
+ "id": "e_start_node_0",
1246
+ "source": "start",
1247
+ "target": "node_0",
1248
+ "type": "default"
1249
+ },
1250
+ {
1251
+ "id": "e_node_0_end",
1252
+ "source": "node_0",
1253
+ "target": "end",
1254
+ "type": "default"
1255
+ }
1256
+ ]
1257
+ }
1258
+ }
1259
+ },
1356
1260
  "workflows/noop.ts": {
1357
1261
  "brokenWf": {
1358
1262
  "workflowId": "workflow//./workflows/noop//brokenWf",
@@ -1415,12 +1319,108 @@
1415
1319
  ]
1416
1320
  }
1417
1321
  }
1322
+ },
1323
+ "workflows/null-byte.ts": {
1324
+ "nullByteWorkflow": {
1325
+ "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
1326
+ "graph": {
1327
+ "nodes": [
1328
+ {
1329
+ "id": "start",
1330
+ "type": "workflowStart",
1331
+ "data": {
1332
+ "label": "Start: nullByteWorkflow",
1333
+ "nodeKind": "workflow_start"
1334
+ }
1335
+ },
1336
+ {
1337
+ "id": "node_0",
1338
+ "type": "step",
1339
+ "data": {
1340
+ "label": "nullByteStep",
1341
+ "nodeKind": "step",
1342
+ "stepId": "step//./workflows/null-byte//nullByteStep"
1343
+ }
1344
+ },
1345
+ {
1346
+ "id": "end",
1347
+ "type": "workflowEnd",
1348
+ "data": {
1349
+ "label": "Return",
1350
+ "nodeKind": "workflow_end"
1351
+ }
1352
+ }
1353
+ ],
1354
+ "edges": [
1355
+ {
1356
+ "id": "e_start_node_0",
1357
+ "source": "start",
1358
+ "target": "node_0",
1359
+ "type": "default"
1360
+ },
1361
+ {
1362
+ "id": "e_node_0_end",
1363
+ "source": "node_0",
1364
+ "target": "end",
1365
+ "type": "default"
1366
+ }
1367
+ ]
1368
+ }
1369
+ }
1370
+ },
1371
+ "workflows/retriable-and-fatal.ts": {
1372
+ "retryableAndFatalErrorWorkflow": {
1373
+ "workflowId": "workflow//./workflows/retriable-and-fatal//retryableAndFatalErrorWorkflow",
1374
+ "graph": {
1375
+ "nodes": [
1376
+ {
1377
+ "id": "start",
1378
+ "type": "workflowStart",
1379
+ "data": {
1380
+ "label": "Start: retryableAndFatalErrorWorkflow",
1381
+ "nodeKind": "workflow_start"
1382
+ }
1383
+ },
1384
+ {
1385
+ "id": "node_0",
1386
+ "type": "step",
1387
+ "data": {
1388
+ "label": "stepThatThrowsRetryableError",
1389
+ "nodeKind": "step",
1390
+ "stepId": "step//./workflows/retriable-and-fatal//stepThatThrowsRetryableError"
1391
+ }
1392
+ },
1393
+ {
1394
+ "id": "end",
1395
+ "type": "workflowEnd",
1396
+ "data": {
1397
+ "label": "Return",
1398
+ "nodeKind": "workflow_end"
1399
+ }
1400
+ }
1401
+ ],
1402
+ "edges": [
1403
+ {
1404
+ "id": "e_start_node_0",
1405
+ "source": "start",
1406
+ "target": "node_0",
1407
+ "type": "default"
1408
+ },
1409
+ {
1410
+ "id": "e_node_0_end",
1411
+ "source": "node_0",
1412
+ "target": "end",
1413
+ "type": "default"
1414
+ }
1415
+ ]
1416
+ }
1417
+ }
1418
1418
  }
1419
1419
  },
1420
1420
  "classes": {
1421
1421
  "core/dist/runtime/run.js": {
1422
1422
  "Run": {
1423
- "classId": "class//@workflow/core/runtime/run@5.0.0-beta.32//Run"
1423
+ "classId": "class//@workflow/core/runtime/run@5.0.0-beta.34//Run"
1424
1424
  }
1425
1425
  }
1426
1426
  }