@workflow/world-testing 4.0.1-beta.37 → 4.0.1-beta.38
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.js +41 -41
- package/dist/.well-known/workflow/v1/manifest.json +331 -0
- package/dist/.well-known/workflow/v1/step.js +25 -25
- package/dist/.well-known/workflow/v1/step.js.map +1 -1
- package/dist/src/server.mjs +3 -3
- package/dist/src/server.mjs.map +1 -1
- package/dist/src/util.d.mts +1 -1
- package/dist/src/util.d.mts.map +1 -1
- package/package.json +4 -4
- package/dist/.well-known/workflow/v1/manifest.debug.json +0 -75
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"steps": {
|
|
4
|
+
"workflow/dist/internal/builtins.js": {
|
|
5
|
+
"__builtin_response_array_buffer": {
|
|
6
|
+
"stepId": "__builtin_response_array_buffer"
|
|
7
|
+
},
|
|
8
|
+
"__builtin_response_json": {
|
|
9
|
+
"stepId": "__builtin_response_json"
|
|
10
|
+
},
|
|
11
|
+
"__builtin_response_text": {
|
|
12
|
+
"stepId": "__builtin_response_text"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"workflows/null-byte.ts": {
|
|
16
|
+
"nullByteStep": {
|
|
17
|
+
"stepId": "step//workflows/null-byte.ts//nullByteStep"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"workflow/dist/stdlib.js": {
|
|
21
|
+
"fetch": {
|
|
22
|
+
"stepId": "step//workflow/dist/stdlib.js//fetch"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"workflows/addition.ts": {
|
|
26
|
+
"add": {
|
|
27
|
+
"stepId": "step//workflows/addition.ts//add"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"workflows/retriable-and-fatal.ts": {
|
|
31
|
+
"stepThatFails": {
|
|
32
|
+
"stepId": "step//workflows/retriable-and-fatal.ts//stepThatFails"
|
|
33
|
+
},
|
|
34
|
+
"stepThatThrowsRetryableError": {
|
|
35
|
+
"stepId": "step//workflows/retriable-and-fatal.ts//stepThatThrowsRetryableError"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"workflows/hooks.ts": {
|
|
39
|
+
"writeEvent": {
|
|
40
|
+
"stepId": "step//workflows/hooks.ts//writeEvent"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"workflows/noop.ts": {
|
|
44
|
+
"noop": {
|
|
45
|
+
"stepId": "step//workflows/noop.ts//noop"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"workflows": {
|
|
50
|
+
"workflows/null-byte.ts": {
|
|
51
|
+
"nullByteWorkflow": {
|
|
52
|
+
"workflowId": "workflow//workflows/null-byte.ts//nullByteWorkflow",
|
|
53
|
+
"graph": {
|
|
54
|
+
"nodes": [
|
|
55
|
+
{
|
|
56
|
+
"id": "start",
|
|
57
|
+
"type": "workflowStart",
|
|
58
|
+
"data": {
|
|
59
|
+
"label": "Start: nullByteWorkflow",
|
|
60
|
+
"nodeKind": "workflow_start"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "node_0",
|
|
65
|
+
"type": "step",
|
|
66
|
+
"data": {
|
|
67
|
+
"label": "nullByteStep",
|
|
68
|
+
"nodeKind": "step",
|
|
69
|
+
"stepId": "step//workflows/null-byte.ts//nullByteStep"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "end",
|
|
74
|
+
"type": "workflowEnd",
|
|
75
|
+
"data": {
|
|
76
|
+
"label": "Return",
|
|
77
|
+
"nodeKind": "workflow_end"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"edges": [
|
|
82
|
+
{
|
|
83
|
+
"id": "e_start_node_0",
|
|
84
|
+
"source": "start",
|
|
85
|
+
"target": "node_0",
|
|
86
|
+
"type": "default"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "e_node_0_end",
|
|
90
|
+
"source": "node_0",
|
|
91
|
+
"target": "end",
|
|
92
|
+
"type": "default"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"workflows/addition.ts": {
|
|
99
|
+
"addition": {
|
|
100
|
+
"workflowId": "workflow//workflows/addition.ts//addition",
|
|
101
|
+
"graph": {
|
|
102
|
+
"nodes": [
|
|
103
|
+
{
|
|
104
|
+
"id": "start",
|
|
105
|
+
"type": "workflowStart",
|
|
106
|
+
"data": {
|
|
107
|
+
"label": "Start: addition",
|
|
108
|
+
"nodeKind": "workflow_start"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "node_0",
|
|
113
|
+
"type": "step",
|
|
114
|
+
"data": {
|
|
115
|
+
"label": "add",
|
|
116
|
+
"nodeKind": "step",
|
|
117
|
+
"stepId": "step//workflows/addition.ts//add"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "end",
|
|
122
|
+
"type": "workflowEnd",
|
|
123
|
+
"data": {
|
|
124
|
+
"label": "Return",
|
|
125
|
+
"nodeKind": "workflow_end"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"edges": [
|
|
130
|
+
{
|
|
131
|
+
"id": "e_start_node_0",
|
|
132
|
+
"source": "start",
|
|
133
|
+
"target": "node_0",
|
|
134
|
+
"type": "default"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "e_node_0_end",
|
|
138
|
+
"source": "node_0",
|
|
139
|
+
"target": "end",
|
|
140
|
+
"type": "default"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"workflows/retriable-and-fatal.ts": {
|
|
147
|
+
"retryableAndFatalErrorWorkflow": {
|
|
148
|
+
"workflowId": "workflow//workflows/retriable-and-fatal.ts//retryableAndFatalErrorWorkflow",
|
|
149
|
+
"graph": {
|
|
150
|
+
"nodes": [
|
|
151
|
+
{
|
|
152
|
+
"id": "start",
|
|
153
|
+
"type": "workflowStart",
|
|
154
|
+
"data": {
|
|
155
|
+
"label": "Start: retryableAndFatalErrorWorkflow",
|
|
156
|
+
"nodeKind": "workflow_start"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "node_0",
|
|
161
|
+
"type": "step",
|
|
162
|
+
"data": {
|
|
163
|
+
"label": "stepThatThrowsRetryableError",
|
|
164
|
+
"nodeKind": "step",
|
|
165
|
+
"stepId": "step//workflows/retriable-and-fatal.ts//stepThatThrowsRetryableError"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "end",
|
|
170
|
+
"type": "workflowEnd",
|
|
171
|
+
"data": {
|
|
172
|
+
"label": "Return",
|
|
173
|
+
"nodeKind": "workflow_end"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"edges": [
|
|
178
|
+
{
|
|
179
|
+
"id": "e_start_node_0",
|
|
180
|
+
"source": "start",
|
|
181
|
+
"target": "node_0",
|
|
182
|
+
"type": "default"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "e_node_0_end",
|
|
186
|
+
"source": "node_0",
|
|
187
|
+
"target": "end",
|
|
188
|
+
"type": "default"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"workflows/hooks.ts": {
|
|
195
|
+
"collectWithHook": {
|
|
196
|
+
"workflowId": "workflow//workflows/hooks.ts//collectWithHook",
|
|
197
|
+
"graph": {
|
|
198
|
+
"nodes": [
|
|
199
|
+
{
|
|
200
|
+
"id": "start",
|
|
201
|
+
"type": "workflowStart",
|
|
202
|
+
"data": {
|
|
203
|
+
"label": "Start: collectWithHook",
|
|
204
|
+
"nodeKind": "workflow_start"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "node_0",
|
|
209
|
+
"type": "step",
|
|
210
|
+
"data": {
|
|
211
|
+
"label": "writeEvent",
|
|
212
|
+
"nodeKind": "step",
|
|
213
|
+
"stepId": "step//workflows/hooks.ts//writeEvent"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "node_1",
|
|
218
|
+
"type": "step",
|
|
219
|
+
"data": {
|
|
220
|
+
"label": "writeEvent",
|
|
221
|
+
"nodeKind": "step",
|
|
222
|
+
"stepId": "step//workflows/hooks.ts//writeEvent"
|
|
223
|
+
},
|
|
224
|
+
"metadata": {
|
|
225
|
+
"loopId": "loop_0",
|
|
226
|
+
"loopIsAwait": true
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "end",
|
|
231
|
+
"type": "workflowEnd",
|
|
232
|
+
"data": {
|
|
233
|
+
"label": "Return",
|
|
234
|
+
"nodeKind": "workflow_end"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"edges": [
|
|
239
|
+
{
|
|
240
|
+
"id": "e_start_node_0",
|
|
241
|
+
"source": "start",
|
|
242
|
+
"target": "node_0",
|
|
243
|
+
"type": "default"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "e_node_1_back_node_1",
|
|
247
|
+
"source": "node_1",
|
|
248
|
+
"target": "node_1",
|
|
249
|
+
"type": "loop"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": "e_node_0_node_1",
|
|
253
|
+
"source": "node_0",
|
|
254
|
+
"target": "node_1",
|
|
255
|
+
"type": "default"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "e_node_1_end",
|
|
259
|
+
"source": "node_1",
|
|
260
|
+
"target": "end",
|
|
261
|
+
"type": "default"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"workflows/noop.ts": {
|
|
268
|
+
"brokenWf": {
|
|
269
|
+
"workflowId": "workflow//workflows/noop.ts//brokenWf",
|
|
270
|
+
"graph": {
|
|
271
|
+
"nodes": [
|
|
272
|
+
{
|
|
273
|
+
"id": "start",
|
|
274
|
+
"type": "workflowStart",
|
|
275
|
+
"data": {
|
|
276
|
+
"label": "Start: brokenWf",
|
|
277
|
+
"nodeKind": "workflow_start"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"id": "node_0",
|
|
282
|
+
"type": "step",
|
|
283
|
+
"data": {
|
|
284
|
+
"label": "noop",
|
|
285
|
+
"nodeKind": "step",
|
|
286
|
+
"stepId": "step//workflows/noop.ts//noop"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"id": "node_1",
|
|
291
|
+
"type": "step",
|
|
292
|
+
"data": {
|
|
293
|
+
"label": "noop",
|
|
294
|
+
"nodeKind": "step",
|
|
295
|
+
"stepId": "step//workflows/noop.ts//noop"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "end",
|
|
300
|
+
"type": "workflowEnd",
|
|
301
|
+
"data": {
|
|
302
|
+
"label": "Return",
|
|
303
|
+
"nodeKind": "workflow_end"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"edges": [
|
|
308
|
+
{
|
|
309
|
+
"id": "e_start_node_0",
|
|
310
|
+
"source": "start",
|
|
311
|
+
"target": "node_0",
|
|
312
|
+
"type": "default"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "e_node_0_node_1",
|
|
316
|
+
"source": "node_0",
|
|
317
|
+
"target": "node_1",
|
|
318
|
+
"type": "default"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "e_node_1_end",
|
|
322
|
+
"source": "node_1",
|
|
323
|
+
"target": "end",
|
|
324
|
+
"type": "default"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
@@ -24522,30 +24522,6 @@ async function addition(num, num2) {
|
|
|
24522
24522
|
__name(addition, "addition");
|
|
24523
24523
|
addition.workflowId = "workflow//workflows/addition.ts//addition";
|
|
24524
24524
|
registerStepFunction("step//workflows/addition.ts//add", add);
|
|
24525
|
-
// workflows/noop.ts
|
|
24526
|
-
var count = 0;
|
|
24527
|
-
async function noop(_i) {
|
|
24528
|
-
count++;
|
|
24529
|
-
return count;
|
|
24530
|
-
}
|
|
24531
|
-
__name(noop, "noop");
|
|
24532
|
-
async function brokenWf() {
|
|
24533
|
-
throw new Error("You attempted to execute workflow brokenWf function directly. To start a workflow, use start(brokenWf) from workflow/api");
|
|
24534
|
-
}
|
|
24535
|
-
__name(brokenWf, "brokenWf");
|
|
24536
|
-
brokenWf.workflowId = "workflow//workflows/noop.ts//brokenWf";
|
|
24537
|
-
registerStepFunction("step//workflows/noop.ts//noop", noop);
|
|
24538
|
-
// workflows/null-byte.ts
|
|
24539
|
-
async function nullByteStep() {
|
|
24540
|
-
return "null byte \0";
|
|
24541
|
-
}
|
|
24542
|
-
__name(nullByteStep, "nullByteStep");
|
|
24543
|
-
async function nullByteWorkflow() {
|
|
24544
|
-
throw new Error("You attempted to execute workflow nullByteWorkflow function directly. To start a workflow, use start(nullByteWorkflow) from workflow/api");
|
|
24545
|
-
}
|
|
24546
|
-
__name(nullByteWorkflow, "nullByteWorkflow");
|
|
24547
|
-
nullByteWorkflow.workflowId = "workflow//workflows/null-byte.ts//nullByteWorkflow";
|
|
24548
|
-
registerStepFunction("step//workflows/null-byte.ts//nullByteStep", nullByteStep);
|
|
24549
24525
|
// ../utils/dist/promise.js
|
|
24550
24526
|
function once(fn) {
|
|
24551
24527
|
const result = {
|
|
@@ -42565,7 +42541,7 @@ __name(createLocalWorld, "createLocalWorld");
|
|
|
42565
42541
|
var import_node_os = __toESM(require("node:os"), 1);
|
|
42566
42542
|
var import_oidc2 = __toESM(require_dist(), 1);
|
|
42567
42543
|
// ../world-vercel/dist/version.js
|
|
42568
|
-
var version2 = "4.0.1-beta.
|
|
42544
|
+
var version2 = "4.0.1-beta.24";
|
|
42569
42545
|
// ../world-vercel/dist/utils.js
|
|
42570
42546
|
var DEFAULT_RESOLVE_DATA_OPTION2 = "all";
|
|
42571
42547
|
function dateToStringReplacer(_key, value) {
|
|
@@ -44295,6 +44271,30 @@ async function writeEvent(writable, event, payload) {
|
|
|
44295
44271
|
}
|
|
44296
44272
|
__name(writeEvent, "writeEvent");
|
|
44297
44273
|
registerStepFunction("step//workflows/hooks.ts//writeEvent", writeEvent);
|
|
44274
|
+
// workflows/noop.ts
|
|
44275
|
+
var count = 0;
|
|
44276
|
+
async function noop(_i) {
|
|
44277
|
+
count++;
|
|
44278
|
+
return count;
|
|
44279
|
+
}
|
|
44280
|
+
__name(noop, "noop");
|
|
44281
|
+
async function brokenWf() {
|
|
44282
|
+
throw new Error("You attempted to execute workflow brokenWf function directly. To start a workflow, use start(brokenWf) from workflow/api");
|
|
44283
|
+
}
|
|
44284
|
+
__name(brokenWf, "brokenWf");
|
|
44285
|
+
brokenWf.workflowId = "workflow//workflows/noop.ts//brokenWf";
|
|
44286
|
+
registerStepFunction("step//workflows/noop.ts//noop", noop);
|
|
44287
|
+
// workflows/null-byte.ts
|
|
44288
|
+
async function nullByteStep() {
|
|
44289
|
+
return "null byte \0";
|
|
44290
|
+
}
|
|
44291
|
+
__name(nullByteStep, "nullByteStep");
|
|
44292
|
+
async function nullByteWorkflow() {
|
|
44293
|
+
throw new Error("You attempted to execute workflow nullByteWorkflow function directly. To start a workflow, use start(nullByteWorkflow) from workflow/api");
|
|
44294
|
+
}
|
|
44295
|
+
__name(nullByteWorkflow, "nullByteWorkflow");
|
|
44296
|
+
nullByteWorkflow.workflowId = "workflow//workflows/null-byte.ts//nullByteWorkflow";
|
|
44297
|
+
registerStepFunction("step//workflows/null-byte.ts//nullByteStep", nullByteStep);
|
|
44298
44298
|
// workflows/retriable-and-fatal.ts
|
|
44299
44299
|
async function retryableAndFatalErrorWorkflow() {
|
|
44300
44300
|
throw new Error("You attempted to execute workflow retryableAndFatalErrorWorkflow function directly. To start a workflow, use start(retryableAndFatalErrorWorkflow) from workflow/api");
|