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

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/noop.ts": {
10
+ "noop": {
11
+ "stepId": "step//./workflows/noop//noop"
30
12
  }
31
13
  },
32
14
  "workflows/inline-execution.ts": {
@@ -40,14 +22,19 @@
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"
25
+ "workflows/addition.ts": {
26
+ "add": {
27
+ "stepId": "step//./workflows/addition//add"
46
28
  }
47
29
  },
48
- "workflows/noop.ts": {
49
- "noop": {
50
- "stepId": "step//./workflows/noop//noop"
30
+ "workflows/signal-cost.ts": {
31
+ "trivialStep": {
32
+ "stepId": "step//./workflows/signal-cost//trivialStep"
33
+ }
34
+ },
35
+ "workflows/null-byte.ts": {
36
+ "nullByteStep": {
37
+ "stepId": "step//./workflows/null-byte//nullByteStep"
51
38
  }
52
39
  },
53
40
  "workflow/dist/internal/builtins.js": {
@@ -66,224 +53,56 @@
66
53
  },
67
54
  "core/dist/runtime/start.js": {
68
55
  "start": {
69
- "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.32//start"
56
+ "stepId": "step//@workflow/core/runtime/start@5.0.0-beta.33//start"
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"
65
+ }
66
+ },
67
+ "workflow/dist/stdlib.js": {
68
+ "fetch": {
69
+ "stepId": "step//./workflow/dist/stdlib//fetch"
70
70
  }
71
71
  },
72
72
  "core/dist/runtime/run.js": {
73
73
  "Run#cancel": {
74
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#cancel"
74
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#cancel"
75
75
  },
76
76
  "Run#completedAt": {
77
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#completedAt"
77
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#completedAt"
78
78
  },
79
79
  "Run#createdAt": {
80
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#createdAt"
80
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#createdAt"
81
81
  },
82
82
  "Run#exists": {
83
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#exists"
83
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#exists"
84
84
  },
85
85
  "Run#getReadable": {
86
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#getReadable"
86
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#getReadable"
87
87
  },
88
88
  "Run#returnValue": {
89
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#returnValue"
89
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#returnValue"
90
90
  },
91
91
  "Run#startedAt": {
92
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#startedAt"
92
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#startedAt"
93
93
  },
94
94
  "Run#status": {
95
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#status"
95
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#status"
96
96
  },
97
97
  "Run#wakeUp": {
98
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#wakeUp"
98
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#wakeUp"
99
99
  },
100
100
  "Run#workflowName": {
101
- "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.32//Run#workflowName"
101
+ "stepId": "step//@workflow/core/runtime/run@5.0.0-beta.33//Run#workflowName"
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",
@@ -357,64 +176,16 @@
357
176
  }
358
177
  }
359
178
  },
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"
380
- }
381
- },
382
- {
383
- "id": "end",
384
- "type": "workflowEnd",
385
- "data": {
386
- "label": "Return",
387
- "nodeKind": "workflow_end"
388
- }
389
- }
390
- ],
391
- "edges": [
392
- {
393
- "id": "e_start_node_0",
394
- "source": "start",
395
- "target": "node_0",
396
- "type": "default"
397
- },
398
- {
399
- "id": "e_node_0_end",
400
- "source": "node_0",
401
- "target": "end",
402
- "type": "default"
403
- }
404
- ]
405
- }
406
- }
407
- },
408
- "workflows/null-byte.ts": {
409
- "nullByteWorkflow": {
410
- "workflowId": "workflow//./workflows/null-byte//nullByteWorkflow",
179
+ "workflows/noop.ts": {
180
+ "brokenWf": {
181
+ "workflowId": "workflow//./workflows/noop//brokenWf",
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: brokenWf",
418
189
  "nodeKind": "workflow_start"
419
190
  }
420
191
  },
@@ -422,9 +193,18 @@
422
193
  "id": "node_0",
423
194
  "type": "step",
424
195
  "data": {
425
- "label": "nullByteStep",
196
+ "label": "noop",
426
197
  "nodeKind": "step",
427
- "stepId": "step//./workflows/null-byte//nullByteStep"
198
+ "stepId": "step//./workflows/noop//noop"
199
+ }
200
+ },
201
+ {
202
+ "id": "node_1",
203
+ "type": "step",
204
+ "data": {
205
+ "label": "noop",
206
+ "nodeKind": "step",
207
+ "stepId": "step//./workflows/noop//noop"
428
208
  }
429
209
  },
430
210
  {
@@ -444,8 +224,14 @@
444
224
  "type": "default"
445
225
  },
446
226
  {
447
- "id": "e_node_0_end",
227
+ "id": "e_node_0_node_1",
448
228
  "source": "node_0",
229
+ "target": "node_1",
230
+ "type": "default"
231
+ },
232
+ {
233
+ "id": "e_node_1_end",
234
+ "source": "node_1",
449
235
  "target": "end",
450
236
  "type": "default"
451
237
  }
@@ -1353,16 +1139,16 @@
1353
1139
  }
1354
1140
  }
1355
1141
  },
1356
- "workflows/noop.ts": {
1357
- "brokenWf": {
1358
- "workflowId": "workflow//./workflows/noop//brokenWf",
1142
+ "workflows/addition.ts": {
1143
+ "addTenWorkflow": {
1144
+ "workflowId": "workflow//./workflows/addition//addTenWorkflow",
1359
1145
  "graph": {
1360
1146
  "nodes": [
1361
1147
  {
1362
1148
  "id": "start",
1363
1149
  "type": "workflowStart",
1364
1150
  "data": {
1365
- "label": "Start: brokenWf",
1151
+ "label": "Start: addTenWorkflow",
1366
1152
  "nodeKind": "workflow_start"
1367
1153
  }
1368
1154
  },
@@ -1370,18 +1156,27 @@
1370
1156
  "id": "node_0",
1371
1157
  "type": "step",
1372
1158
  "data": {
1373
- "label": "noop",
1159
+ "label": "add",
1374
1160
  "nodeKind": "step",
1375
- "stepId": "step//./workflows/noop//noop"
1161
+ "stepId": "step//./workflows/addition//add"
1376
1162
  }
1377
1163
  },
1378
1164
  {
1379
1165
  "id": "node_1",
1380
1166
  "type": "step",
1381
1167
  "data": {
1382
- "label": "noop",
1168
+ "label": "add",
1383
1169
  "nodeKind": "step",
1384
- "stepId": "step//./workflows/noop//noop"
1170
+ "stepId": "step//./workflows/addition//add"
1171
+ }
1172
+ },
1173
+ {
1174
+ "id": "node_2",
1175
+ "type": "step",
1176
+ "data": {
1177
+ "label": "add",
1178
+ "nodeKind": "step",
1179
+ "stepId": "step//./workflows/addition//add"
1385
1180
  }
1386
1181
  },
1387
1182
  {
@@ -1407,8 +1202,213 @@
1407
1202
  "type": "default"
1408
1203
  },
1409
1204
  {
1410
- "id": "e_node_1_end",
1205
+ "id": "e_node_1_node_2",
1411
1206
  "source": "node_1",
1207
+ "target": "node_2",
1208
+ "type": "default"
1209
+ },
1210
+ {
1211
+ "id": "e_node_2_end",
1212
+ "source": "node_2",
1213
+ "target": "end",
1214
+ "type": "default"
1215
+ }
1216
+ ]
1217
+ }
1218
+ },
1219
+ "addition": {
1220
+ "workflowId": "workflow//./workflows/addition//addition",
1221
+ "graph": {
1222
+ "nodes": [
1223
+ {
1224
+ "id": "start",
1225
+ "type": "workflowStart",
1226
+ "data": {
1227
+ "label": "Start: addition",
1228
+ "nodeKind": "workflow_start"
1229
+ }
1230
+ },
1231
+ {
1232
+ "id": "node_0",
1233
+ "type": "step",
1234
+ "data": {
1235
+ "label": "add",
1236
+ "nodeKind": "step",
1237
+ "stepId": "step//./workflows/addition//add"
1238
+ }
1239
+ },
1240
+ {
1241
+ "id": "end",
1242
+ "type": "workflowEnd",
1243
+ "data": {
1244
+ "label": "Return",
1245
+ "nodeKind": "workflow_end"
1246
+ }
1247
+ }
1248
+ ],
1249
+ "edges": [
1250
+ {
1251
+ "id": "e_start_node_0",
1252
+ "source": "start",
1253
+ "target": "node_0",
1254
+ "type": "default"
1255
+ },
1256
+ {
1257
+ "id": "e_node_0_end",
1258
+ "source": "node_0",
1259
+ "target": "end",
1260
+ "type": "default"
1261
+ }
1262
+ ]
1263
+ }
1264
+ }
1265
+ },
1266
+ "workflows/signal-cost.ts": {
1267
+ "signalCostWorkflow": {
1268
+ "workflowId": "workflow//./workflows/signal-cost//signalCostWorkflow",
1269
+ "graph": {
1270
+ "nodes": [
1271
+ {
1272
+ "id": "start",
1273
+ "type": "workflowStart",
1274
+ "data": {
1275
+ "label": "Start: signalCostWorkflow",
1276
+ "nodeKind": "workflow_start"
1277
+ }
1278
+ },
1279
+ {
1280
+ "id": "node_0",
1281
+ "type": "step",
1282
+ "data": {
1283
+ "label": "trivialStep",
1284
+ "nodeKind": "step",
1285
+ "stepId": "step//./workflows/signal-cost//trivialStep"
1286
+ },
1287
+ "metadata": {
1288
+ "loopId": "loop_0"
1289
+ }
1290
+ },
1291
+ {
1292
+ "id": "end",
1293
+ "type": "workflowEnd",
1294
+ "data": {
1295
+ "label": "Return",
1296
+ "nodeKind": "workflow_end"
1297
+ }
1298
+ }
1299
+ ],
1300
+ "edges": [
1301
+ {
1302
+ "id": "e_node_0_back_node_0",
1303
+ "source": "node_0",
1304
+ "target": "node_0",
1305
+ "type": "loop"
1306
+ },
1307
+ {
1308
+ "id": "e_start_node_0",
1309
+ "source": "start",
1310
+ "target": "node_0",
1311
+ "type": "default"
1312
+ },
1313
+ {
1314
+ "id": "e_node_0_end",
1315
+ "source": "node_0",
1316
+ "target": "end",
1317
+ "type": "default"
1318
+ }
1319
+ ]
1320
+ }
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
1412
  "target": "end",
1413
1413
  "type": "default"
1414
1414
  }
@@ -1420,7 +1420,7 @@
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.33//Run"
1424
1424
  }
1425
1425
  }
1426
1426
  }