@fluidgrids/workflows 2026.1027.0 → 2026.1028.1

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 (168) hide show
  1. package/README.md +170 -18
  2. package/dist/activation-BBh1p82z.d.cts +57 -0
  3. package/dist/activation-DnhG7SmF.d.ts +57 -0
  4. package/dist/assemble-BLqQ8lSu.d.cts +39 -0
  5. package/dist/assemble-DWgaXHd-.d.ts +39 -0
  6. package/dist/chunk-2DP2Y6EU.cjs +832 -0
  7. package/dist/chunk-2J6TF7YI.cjs +86 -0
  8. package/dist/chunk-3FOTFQ3J.js +1622 -0
  9. package/dist/chunk-4LYSEANA.js +199 -0
  10. package/dist/{chunk-KUTMY2IO.cjs → chunk-57MSZ24T.cjs} +162 -98
  11. package/dist/{chunk-BWSLWF2E.js → chunk-5HDSBTBX.js} +99 -32
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-4DPEGDPW.js → chunk-6FSHT5IL.js} +4 -4
  14. package/dist/{chunk-REV7ZOA4.js → chunk-7AAZGVKD.js} +1 -35
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-SS4LT2IP.js → chunk-BD7ZPG53.js} +5 -10
  18. package/dist/chunk-BO6OVILK.js +79 -0
  19. package/dist/chunk-C5OLWZ42.js +245 -0
  20. package/dist/chunk-CBL5JSCC.cjs +75 -0
  21. package/dist/{chunk-LSKSBVL4.cjs → chunk-CPDK3K5N.cjs} +6 -6
  22. package/dist/chunk-CSNWNFKU.cjs +1635 -0
  23. package/dist/chunk-DJYMDLV5.js +227 -0
  24. package/dist/{chunk-X4HKU3MX.js → chunk-E2VK7J2C.js} +3 -1
  25. package/dist/chunk-FMSW2HDF.cjs +267 -0
  26. package/dist/chunk-FQIHX7YI.cjs +80 -0
  27. package/dist/chunk-FR7KYWRO.cjs +41 -0
  28. package/dist/{chunk-AU3YW7FZ.cjs → chunk-GBQ33SIZ.cjs} +46 -51
  29. package/dist/{chunk-RRQ5HOBF.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/chunk-HR3BN4C4.cjs +27 -0
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-PL73GJR4.js → chunk-JZ4TOOLN.js} +1 -1
  35. package/dist/chunk-L24YIZY7.cjs +207 -0
  36. package/dist/chunk-LNUQE6D6.js +39 -0
  37. package/dist/{chunk-BYJ7QTLY.cjs → chunk-NEIUQASE.cjs} +13 -13
  38. package/dist/chunk-P6TA5EZT.cjs +634 -0
  39. package/dist/chunk-PDHLTDZB.js +72 -0
  40. package/dist/chunk-PMCM2OH4.js +46 -0
  41. package/dist/chunk-PZCVF76Q.cjs +868 -0
  42. package/dist/{chunk-GO34UHSY.js → chunk-QAN5MZEM.js} +3 -3
  43. package/dist/{chunk-27HASETB.cjs → chunk-QKZL3ONM.cjs} +3 -1
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-LMX35GNQ.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-IZQNUNSU.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-LRM6JXJA.cjs → chunk-TBDXTV22.cjs} +0 -37
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/chunk-XB53G2DK.js +25 -0
  50. package/dist/chunk-Z2Y65YOY.cjs +7 -0
  51. package/dist/codegen/index.cjs +9 -7
  52. package/dist/codegen/index.d.cts +2 -2
  53. package/dist/codegen/index.d.ts +2 -2
  54. package/dist/codegen/index.js +6 -5
  55. package/dist/file-BOoHZgoQ.d.cts +1557 -0
  56. package/dist/file-yuPCFU5b.d.ts +1557 -0
  57. package/dist/history/index.cjs +287 -0
  58. package/dist/history/index.d.cts +157 -0
  59. package/dist/history/index.d.ts +157 -0
  60. package/dist/history/index.js +5 -0
  61. package/dist/index.cjs +134 -36
  62. package/dist/index.d.cts +137 -9
  63. package/dist/index.d.ts +137 -9
  64. package/dist/index.js +8 -3
  65. package/dist/ir/index.cjs +161 -165
  66. package/dist/ir/index.d.cts +32 -12
  67. package/dist/ir/index.d.ts +32 -12
  68. package/dist/ir/index.js +54 -61
  69. package/dist/lower-BuSvAFqi.d.cts +129 -0
  70. package/dist/lower-C_Qv_34S.d.ts +129 -0
  71. package/dist/lower-types-nofRXw9c.d.cts +15 -0
  72. package/dist/lower-types-nofRXw9c.d.ts +15 -0
  73. package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
  74. package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
  75. package/dist/node-evaluator-CJNP4GHX.js +12 -0
  76. package/dist/node-evaluator-DMKPKUWA.cjs +22 -0
  77. package/dist/quickjs/index.cjs +256 -78
  78. package/dist/quickjs/index.d.cts +48 -7
  79. package/dist/quickjs/index.d.ts +48 -7
  80. package/dist/quickjs/index.js +254 -79
  81. package/dist/roundtrip/index.cjs +404 -129
  82. package/dist/roundtrip/index.d.cts +43 -8
  83. package/dist/roundtrip/index.d.ts +43 -8
  84. package/dist/roundtrip/index.js +260 -19
  85. package/dist/runtime/index.cjs +90 -0
  86. package/dist/runtime/index.d.cts +297 -0
  87. package/dist/runtime/index.d.ts +297 -0
  88. package/dist/runtime/index.js +8 -0
  89. package/dist/testing/index.cjs +1057 -0
  90. package/dist/testing/index.d.cts +305 -0
  91. package/dist/testing/index.d.ts +305 -0
  92. package/dist/testing/index.js +1037 -0
  93. package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
  94. package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
  95. package/dist/types-CpBBjaGX.d.cts +380 -0
  96. package/dist/types-DV-HX_Gt.d.ts +380 -0
  97. package/dist/{assemble-DMOuaxRI.d.ts → workflow-Bpr3vnA_.d.ts} +60 -162
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-BJo9TECS.d.cts → workflow-FXUkpIBc.d.cts} +60 -162
  100. package/dist/workflow-J-yYixny.d.cts +444 -0
  101. package/fixtures/README.md +128 -0
  102. package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
  103. package/fixtures/histories/activity-retry-then-success.history.json +147 -0
  104. package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
  105. package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
  106. package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
  107. package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
  108. package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
  109. package/fixtures/histories/cancel-during-timer.history.json +123 -0
  110. package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
  111. package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
  112. package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
  113. package/fixtures/histories/child-cancel-default.history.json +234 -0
  114. package/fixtures/histories/child-cancel-request.history.json +206 -0
  115. package/fixtures/histories/child-durable-child-side.history.json +124 -0
  116. package/fixtures/histories/child-durable-result.history.json +163 -0
  117. package/fixtures/histories/child-failure-caught.history.json +166 -0
  118. package/fixtures/histories/child-graph-by-key.history.json +138 -0
  119. package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
  120. package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
  121. package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
  122. package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
  123. package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
  124. package/fixtures/histories/details-and-context.history.json +176 -0
  125. package/fixtures/histories/deterministic-values.history.json +128 -0
  126. package/fixtures/histories/engine-builtins.history.json +172 -0
  127. package/fixtures/histories/gather-activities.history.json +291 -0
  128. package/fixtures/histories/gather-all-settled.history.json +219 -0
  129. package/fixtures/histories/gather-mixed.history.json +281 -0
  130. package/fixtures/histories/input-during-running-task.history.json +111 -0
  131. package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
  132. package/fixtures/histories/patched-deprecated.history.json +271 -0
  133. package/fixtures/histories/patched-new-run.history.json +270 -0
  134. package/fixtures/histories/patched-old-history.history.json +190 -0
  135. package/fixtures/histories/race-activity-wins.history.json +152 -0
  136. package/fixtures/histories/race-signal-beats-child.history.json +161 -0
  137. package/fixtures/histories/race-timeout-wins.history.json +118 -0
  138. package/fixtures/histories/side-effect-recorded.history.json +153 -0
  139. package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
  140. package/fixtures/histories/signal-default-handler.history.json +187 -0
  141. package/fixtures/histories/signal-handler.history.json +191 -0
  142. package/fixtures/histories/signal-parent-child-side.history.json +132 -0
  143. package/fixtures/histories/signal-parent.history.json +202 -0
  144. package/fixtures/histories/signal-run-delivered.history.json +128 -0
  145. package/fixtures/histories/signal-run-undelivered.history.json +134 -0
  146. package/fixtures/histories/signal-wait.history.json +111 -0
  147. package/fixtures/histories/task-failure-code-error.history.json +137 -0
  148. package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
  149. package/fixtures/histories/timer-condition-met.history.json +201 -0
  150. package/fixtures/histories/timer-condition-timeout.history.json +118 -0
  151. package/fixtures/histories/timer-sleep-once.history.json +118 -0
  152. package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
  153. package/fixtures/histories/update-accepted-completed.history.json +149 -0
  154. package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
  155. package/package.json +85 -20
  156. package/schema/history-file.schema.json +2544 -0
  157. package/schema/ir-v2.schema.json +16 -0
  158. package/schema/run-event.schema.json +2374 -0
  159. package/schema/workflow-command.schema.json +1095 -0
  160. package/schema/workflow-task.schema.json +3560 -0
  161. package/dist/chunk-265J2FCH.cjs +0 -33
  162. package/dist/chunk-LUXCXFOE.cjs +0 -269
  163. package/dist/chunk-S34NJE3A.js +0 -262
  164. package/dist/chunk-SRQRLWOS.js +0 -31
  165. package/dist/lower-DcOY8ux0.d.cts +0 -49
  166. package/dist/lower-Dw5grNrI.d.ts +0 -49
  167. package/dist/node-evaluator-2GTUZVPK.cjs +0 -17
  168. package/dist/node-evaluator-RMYEWCXZ.js +0 -8
@@ -0,0 +1,489 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-history-limit",
5
+ "description": "HistoryLimitExceeded at 95 % of a 40-event cap is caught and the run continues as new; replay throws at the same command.",
6
+ "source": "src/continue-as-new.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "historyLimit": {
14
+ "events": 40,
15
+ "bytes": 16777216
16
+ },
17
+ "runId": "run-1"
18
+ },
19
+ "nowMs": 1767225600000,
20
+ "workflowFn": "limitThenContinue",
21
+ "events": [
22
+ {
23
+ "seq": 1,
24
+ "type": "WORKFLOW_STARTED",
25
+ "payload": {
26
+ "workflowFn": "limitThenContinue",
27
+ "input": {
28
+ "round": 0
29
+ },
30
+ "taskQueue": "managed",
31
+ "randomnessSeed": "run-1"
32
+ },
33
+ "createdAt": "2026-01-01T00:00:00.000Z"
34
+ },
35
+ {
36
+ "seq": 2,
37
+ "type": "WORKFLOW_TASK_SCHEDULED",
38
+ "payload": {
39
+ "taskId": "run-1-task-1"
40
+ },
41
+ "createdAt": "2026-01-01T00:00:00.000Z"
42
+ },
43
+ {
44
+ "seq": 3,
45
+ "type": "WORKFLOW_TASK_STARTED",
46
+ "payload": {
47
+ "taskId": "run-1-task-1",
48
+ "attempt": 1
49
+ },
50
+ "createdAt": "2026-01-01T00:00:00.000Z"
51
+ },
52
+ {
53
+ "seq": 4,
54
+ "type": "WORKFLOW_TASK_COMPLETED",
55
+ "payload": {
56
+ "taskId": "run-1-task-1"
57
+ },
58
+ "createdAt": "2026-01-01T00:00:00.000Z",
59
+ "taskId": "run-1-task-1"
60
+ },
61
+ {
62
+ "seq": 5,
63
+ "type": "ACTIVITY_SCHEDULED",
64
+ "payload": {
65
+ "activityId": "a1",
66
+ "kind": "node",
67
+ "nodeType": "internal:http",
68
+ "operation": "execute",
69
+ "args": {
70
+ "url": "https://example.test/step/0"
71
+ },
72
+ "retry": {
73
+ "retryDelay": 1000,
74
+ "backoffMultiplier": 2,
75
+ "maxDelay": 100000
76
+ }
77
+ },
78
+ "createdAt": "2026-01-01T00:00:00.000Z",
79
+ "taskId": "run-1-task-1"
80
+ },
81
+ {
82
+ "seq": 6,
83
+ "type": "ACTIVITY_STARTED",
84
+ "payload": {
85
+ "activityId": "a1",
86
+ "attempt": 1
87
+ },
88
+ "createdAt": "2026-01-01T00:00:00.000Z"
89
+ },
90
+ {
91
+ "seq": 7,
92
+ "type": "ACTIVITY_COMPLETED",
93
+ "payload": {
94
+ "activityId": "a1",
95
+ "attempt": 1,
96
+ "result": {
97
+ "status": 200,
98
+ "url": "https://example.test/step/0"
99
+ }
100
+ },
101
+ "createdAt": "2026-01-01T00:00:00.000Z"
102
+ },
103
+ {
104
+ "seq": 8,
105
+ "type": "WORKFLOW_TASK_SCHEDULED",
106
+ "payload": {
107
+ "taskId": "run-1-task-2"
108
+ },
109
+ "createdAt": "2026-01-01T00:00:00.000Z"
110
+ },
111
+ {
112
+ "seq": 9,
113
+ "type": "WORKFLOW_TASK_STARTED",
114
+ "payload": {
115
+ "taskId": "run-1-task-2",
116
+ "attempt": 1
117
+ },
118
+ "createdAt": "2026-01-01T00:00:00.000Z"
119
+ },
120
+ {
121
+ "seq": 10,
122
+ "type": "WORKFLOW_TASK_COMPLETED",
123
+ "payload": {
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ "createdAt": "2026-01-01T00:00:00.000Z",
127
+ "taskId": "run-1-task-2"
128
+ },
129
+ {
130
+ "seq": 11,
131
+ "type": "ACTIVITY_SCHEDULED",
132
+ "payload": {
133
+ "activityId": "a2",
134
+ "kind": "node",
135
+ "nodeType": "internal:http",
136
+ "operation": "execute",
137
+ "args": {
138
+ "url": "https://example.test/step/1"
139
+ },
140
+ "retry": {
141
+ "retryDelay": 1000,
142
+ "backoffMultiplier": 2,
143
+ "maxDelay": 100000
144
+ }
145
+ },
146
+ "createdAt": "2026-01-01T00:00:00.000Z",
147
+ "taskId": "run-1-task-2"
148
+ },
149
+ {
150
+ "seq": 12,
151
+ "type": "ACTIVITY_STARTED",
152
+ "payload": {
153
+ "activityId": "a2",
154
+ "attempt": 1
155
+ },
156
+ "createdAt": "2026-01-01T00:00:00.000Z"
157
+ },
158
+ {
159
+ "seq": 13,
160
+ "type": "ACTIVITY_COMPLETED",
161
+ "payload": {
162
+ "activityId": "a2",
163
+ "attempt": 1,
164
+ "result": {
165
+ "status": 200,
166
+ "url": "https://example.test/step/1"
167
+ }
168
+ },
169
+ "createdAt": "2026-01-01T00:00:00.000Z"
170
+ },
171
+ {
172
+ "seq": 14,
173
+ "type": "WORKFLOW_TASK_SCHEDULED",
174
+ "payload": {
175
+ "taskId": "run-1-task-3"
176
+ },
177
+ "createdAt": "2026-01-01T00:00:00.000Z"
178
+ },
179
+ {
180
+ "seq": 15,
181
+ "type": "WORKFLOW_TASK_STARTED",
182
+ "payload": {
183
+ "taskId": "run-1-task-3",
184
+ "attempt": 1
185
+ },
186
+ "createdAt": "2026-01-01T00:00:00.000Z"
187
+ },
188
+ {
189
+ "seq": 16,
190
+ "type": "WORKFLOW_TASK_COMPLETED",
191
+ "payload": {
192
+ "taskId": "run-1-task-3"
193
+ },
194
+ "createdAt": "2026-01-01T00:00:00.000Z",
195
+ "taskId": "run-1-task-3"
196
+ },
197
+ {
198
+ "seq": 17,
199
+ "type": "ACTIVITY_SCHEDULED",
200
+ "payload": {
201
+ "activityId": "a3",
202
+ "kind": "node",
203
+ "nodeType": "internal:http",
204
+ "operation": "execute",
205
+ "args": {
206
+ "url": "https://example.test/step/2"
207
+ },
208
+ "retry": {
209
+ "retryDelay": 1000,
210
+ "backoffMultiplier": 2,
211
+ "maxDelay": 100000
212
+ }
213
+ },
214
+ "createdAt": "2026-01-01T00:00:00.000Z",
215
+ "taskId": "run-1-task-3"
216
+ },
217
+ {
218
+ "seq": 18,
219
+ "type": "ACTIVITY_STARTED",
220
+ "payload": {
221
+ "activityId": "a3",
222
+ "attempt": 1
223
+ },
224
+ "createdAt": "2026-01-01T00:00:00.000Z"
225
+ },
226
+ {
227
+ "seq": 19,
228
+ "type": "ACTIVITY_COMPLETED",
229
+ "payload": {
230
+ "activityId": "a3",
231
+ "attempt": 1,
232
+ "result": {
233
+ "status": 200,
234
+ "url": "https://example.test/step/2"
235
+ }
236
+ },
237
+ "createdAt": "2026-01-01T00:00:00.000Z"
238
+ },
239
+ {
240
+ "seq": 20,
241
+ "type": "WORKFLOW_TASK_SCHEDULED",
242
+ "payload": {
243
+ "taskId": "run-1-task-4"
244
+ },
245
+ "createdAt": "2026-01-01T00:00:00.000Z"
246
+ },
247
+ {
248
+ "seq": 21,
249
+ "type": "WORKFLOW_TASK_STARTED",
250
+ "payload": {
251
+ "taskId": "run-1-task-4",
252
+ "attempt": 1
253
+ },
254
+ "createdAt": "2026-01-01T00:00:00.000Z"
255
+ },
256
+ {
257
+ "seq": 22,
258
+ "type": "WORKFLOW_TASK_COMPLETED",
259
+ "payload": {
260
+ "taskId": "run-1-task-4"
261
+ },
262
+ "createdAt": "2026-01-01T00:00:00.000Z",
263
+ "taskId": "run-1-task-4"
264
+ },
265
+ {
266
+ "seq": 23,
267
+ "type": "ACTIVITY_SCHEDULED",
268
+ "payload": {
269
+ "activityId": "a4",
270
+ "kind": "node",
271
+ "nodeType": "internal:http",
272
+ "operation": "execute",
273
+ "args": {
274
+ "url": "https://example.test/step/3"
275
+ },
276
+ "retry": {
277
+ "retryDelay": 1000,
278
+ "backoffMultiplier": 2,
279
+ "maxDelay": 100000
280
+ }
281
+ },
282
+ "createdAt": "2026-01-01T00:00:00.000Z",
283
+ "taskId": "run-1-task-4"
284
+ },
285
+ {
286
+ "seq": 24,
287
+ "type": "ACTIVITY_STARTED",
288
+ "payload": {
289
+ "activityId": "a4",
290
+ "attempt": 1
291
+ },
292
+ "createdAt": "2026-01-01T00:00:00.000Z"
293
+ },
294
+ {
295
+ "seq": 25,
296
+ "type": "ACTIVITY_COMPLETED",
297
+ "payload": {
298
+ "activityId": "a4",
299
+ "attempt": 1,
300
+ "result": {
301
+ "status": 200,
302
+ "url": "https://example.test/step/3"
303
+ }
304
+ },
305
+ "createdAt": "2026-01-01T00:00:00.000Z"
306
+ },
307
+ {
308
+ "seq": 26,
309
+ "type": "WORKFLOW_TASK_SCHEDULED",
310
+ "payload": {
311
+ "taskId": "run-1-task-5"
312
+ },
313
+ "createdAt": "2026-01-01T00:00:00.000Z"
314
+ },
315
+ {
316
+ "seq": 27,
317
+ "type": "WORKFLOW_TASK_STARTED",
318
+ "payload": {
319
+ "taskId": "run-1-task-5",
320
+ "attempt": 1
321
+ },
322
+ "createdAt": "2026-01-01T00:00:00.000Z"
323
+ },
324
+ {
325
+ "seq": 28,
326
+ "type": "WORKFLOW_TASK_COMPLETED",
327
+ "payload": {
328
+ "taskId": "run-1-task-5"
329
+ },
330
+ "createdAt": "2026-01-01T00:00:00.000Z",
331
+ "taskId": "run-1-task-5"
332
+ },
333
+ {
334
+ "seq": 29,
335
+ "type": "ACTIVITY_SCHEDULED",
336
+ "payload": {
337
+ "activityId": "a5",
338
+ "kind": "node",
339
+ "nodeType": "internal:http",
340
+ "operation": "execute",
341
+ "args": {
342
+ "url": "https://example.test/step/4"
343
+ },
344
+ "retry": {
345
+ "retryDelay": 1000,
346
+ "backoffMultiplier": 2,
347
+ "maxDelay": 100000
348
+ }
349
+ },
350
+ "createdAt": "2026-01-01T00:00:00.000Z",
351
+ "taskId": "run-1-task-5"
352
+ },
353
+ {
354
+ "seq": 30,
355
+ "type": "ACTIVITY_STARTED",
356
+ "payload": {
357
+ "activityId": "a5",
358
+ "attempt": 1
359
+ },
360
+ "createdAt": "2026-01-01T00:00:00.000Z"
361
+ },
362
+ {
363
+ "seq": 31,
364
+ "type": "ACTIVITY_COMPLETED",
365
+ "payload": {
366
+ "activityId": "a5",
367
+ "attempt": 1,
368
+ "result": {
369
+ "status": 200,
370
+ "url": "https://example.test/step/4"
371
+ }
372
+ },
373
+ "createdAt": "2026-01-01T00:00:00.000Z"
374
+ },
375
+ {
376
+ "seq": 32,
377
+ "type": "WORKFLOW_TASK_SCHEDULED",
378
+ "payload": {
379
+ "taskId": "run-1-task-6"
380
+ },
381
+ "createdAt": "2026-01-01T00:00:00.000Z"
382
+ },
383
+ {
384
+ "seq": 33,
385
+ "type": "WORKFLOW_TASK_STARTED",
386
+ "payload": {
387
+ "taskId": "run-1-task-6",
388
+ "attempt": 1
389
+ },
390
+ "createdAt": "2026-01-01T00:00:00.000Z"
391
+ },
392
+ {
393
+ "seq": 34,
394
+ "type": "WORKFLOW_TASK_COMPLETED",
395
+ "payload": {
396
+ "taskId": "run-1-task-6"
397
+ },
398
+ "createdAt": "2026-01-01T00:00:00.000Z",
399
+ "taskId": "run-1-task-6"
400
+ },
401
+ {
402
+ "seq": 35,
403
+ "type": "ACTIVITY_SCHEDULED",
404
+ "payload": {
405
+ "activityId": "a6",
406
+ "kind": "node",
407
+ "nodeType": "internal:http",
408
+ "operation": "execute",
409
+ "args": {
410
+ "url": "https://example.test/step/5"
411
+ },
412
+ "retry": {
413
+ "retryDelay": 1000,
414
+ "backoffMultiplier": 2,
415
+ "maxDelay": 100000
416
+ }
417
+ },
418
+ "createdAt": "2026-01-01T00:00:00.000Z",
419
+ "taskId": "run-1-task-6"
420
+ },
421
+ {
422
+ "seq": 36,
423
+ "type": "ACTIVITY_STARTED",
424
+ "payload": {
425
+ "activityId": "a6",
426
+ "attempt": 1
427
+ },
428
+ "createdAt": "2026-01-01T00:00:00.000Z"
429
+ },
430
+ {
431
+ "seq": 37,
432
+ "type": "ACTIVITY_COMPLETED",
433
+ "payload": {
434
+ "activityId": "a6",
435
+ "attempt": 1,
436
+ "result": {
437
+ "status": 200,
438
+ "url": "https://example.test/step/5"
439
+ }
440
+ },
441
+ "createdAt": "2026-01-01T00:00:00.000Z"
442
+ },
443
+ {
444
+ "seq": 38,
445
+ "type": "WORKFLOW_TASK_SCHEDULED",
446
+ "payload": {
447
+ "taskId": "run-1-task-7"
448
+ },
449
+ "createdAt": "2026-01-01T00:00:00.000Z"
450
+ },
451
+ {
452
+ "seq": 39,
453
+ "type": "WORKFLOW_TASK_STARTED",
454
+ "payload": {
455
+ "taskId": "run-1-task-7",
456
+ "attempt": 1
457
+ },
458
+ "createdAt": "2026-01-01T00:00:00.000Z"
459
+ },
460
+ {
461
+ "seq": 40,
462
+ "type": "WORKFLOW_TASK_COMPLETED",
463
+ "payload": {
464
+ "taskId": "run-1-task-7"
465
+ },
466
+ "createdAt": "2026-01-01T00:00:00.000Z",
467
+ "taskId": "run-1-task-7"
468
+ },
469
+ {
470
+ "seq": 41,
471
+ "type": "WORKFLOW_CONTINUED_AS_NEW",
472
+ "payload": {
473
+ "input": {
474
+ "round": 1,
475
+ "steps": 6
476
+ },
477
+ "options": {}
478
+ },
479
+ "createdAt": "2026-01-01T00:00:00.000Z",
480
+ "taskId": "run-1-task-7"
481
+ }
482
+ ],
483
+ "expected": {
484
+ "protocol": 1,
485
+ "outcome": "commands",
486
+ "commands": [],
487
+ "logs": []
488
+ }
489
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-last-run",
5
+ "description": "The last run of the pager chain completes; continuedFromRunId is set.",
6
+ "source": "src/continue-as-new.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-3",
14
+ "continuedFromRunId": "run-2",
15
+ "firstRunId": "run-1"
16
+ },
17
+ "nowMs": 1767225600000,
18
+ "workflowFn": "pager",
19
+ "events": [
20
+ {
21
+ "seq": 1,
22
+ "type": "WORKFLOW_STARTED",
23
+ "payload": {
24
+ "workflowFn": "pager",
25
+ "input": {
26
+ "page": 3,
27
+ "last": 3
28
+ },
29
+ "taskQueue": "managed",
30
+ "randomnessSeed": "run-3"
31
+ },
32
+ "createdAt": "2026-01-01T00:00:00.000Z"
33
+ },
34
+ {
35
+ "seq": 2,
36
+ "type": "WORKFLOW_TASK_SCHEDULED",
37
+ "payload": {
38
+ "taskId": "run-3-task-1"
39
+ },
40
+ "createdAt": "2026-01-01T00:00:00.000Z"
41
+ },
42
+ {
43
+ "seq": 3,
44
+ "type": "WORKFLOW_TASK_STARTED",
45
+ "payload": {
46
+ "taskId": "run-3-task-1",
47
+ "attempt": 1
48
+ },
49
+ "createdAt": "2026-01-01T00:00:00.000Z"
50
+ },
51
+ {
52
+ "seq": 4,
53
+ "type": "WORKFLOW_TASK_COMPLETED",
54
+ "payload": {
55
+ "taskId": "run-3-task-1"
56
+ },
57
+ "createdAt": "2026-01-01T00:00:00.000Z",
58
+ "taskId": "run-3-task-1"
59
+ },
60
+ {
61
+ "seq": 5,
62
+ "type": "ACTIVITY_SCHEDULED",
63
+ "payload": {
64
+ "activityId": "a1",
65
+ "kind": "node",
66
+ "nodeType": "internal:http",
67
+ "operation": "execute",
68
+ "args": {
69
+ "url": "https://example.test/page/3"
70
+ },
71
+ "retry": {
72
+ "retryDelay": 1000,
73
+ "backoffMultiplier": 2,
74
+ "maxDelay": 100000
75
+ }
76
+ },
77
+ "createdAt": "2026-01-01T00:00:00.000Z",
78
+ "taskId": "run-3-task-1"
79
+ },
80
+ {
81
+ "seq": 6,
82
+ "type": "ACTIVITY_STARTED",
83
+ "payload": {
84
+ "activityId": "a1",
85
+ "attempt": 1
86
+ },
87
+ "createdAt": "2026-01-01T00:00:00.000Z"
88
+ },
89
+ {
90
+ "seq": 7,
91
+ "type": "ACTIVITY_COMPLETED",
92
+ "payload": {
93
+ "activityId": "a1",
94
+ "attempt": 1,
95
+ "result": {
96
+ "status": 200,
97
+ "url": "https://example.test/page/3"
98
+ }
99
+ },
100
+ "createdAt": "2026-01-01T00:00:00.000Z"
101
+ },
102
+ {
103
+ "seq": 8,
104
+ "type": "WORKFLOW_TASK_SCHEDULED",
105
+ "payload": {
106
+ "taskId": "run-3-task-2"
107
+ },
108
+ "createdAt": "2026-01-01T00:00:00.000Z"
109
+ },
110
+ {
111
+ "seq": 9,
112
+ "type": "WORKFLOW_TASK_STARTED",
113
+ "payload": {
114
+ "taskId": "run-3-task-2",
115
+ "attempt": 1
116
+ },
117
+ "createdAt": "2026-01-01T00:00:00.000Z"
118
+ },
119
+ {
120
+ "seq": 10,
121
+ "type": "WORKFLOW_TASK_COMPLETED",
122
+ "payload": {
123
+ "taskId": "run-3-task-2"
124
+ },
125
+ "createdAt": "2026-01-01T00:00:00.000Z",
126
+ "taskId": "run-3-task-2"
127
+ },
128
+ {
129
+ "seq": 11,
130
+ "type": "WORKFLOW_COMPLETED",
131
+ "payload": {
132
+ "output": {
133
+ "pages": 3,
134
+ "continuedFrom": "run-2"
135
+ }
136
+ },
137
+ "createdAt": "2026-01-01T00:00:00.000Z",
138
+ "taskId": "run-3-task-2"
139
+ }
140
+ ],
141
+ "expected": {
142
+ "protocol": 1,
143
+ "outcome": "commands",
144
+ "commands": [],
145
+ "logs": []
146
+ }
147
+ }