@fluidgrids/workflows 2026.1028.1 → 2026.1029.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.
- package/README.md +72 -10
- package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
- package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
- package/dist/{chunk-XB53G2DK.js → chunk-25BKWR2O.js} +1 -1
- package/dist/{chunk-CBL5JSCC.cjs → chunk-2B37XAFQ.cjs} +44 -8
- package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
- package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
- package/dist/chunk-6QPOJZT6.cjs +1180 -0
- package/dist/chunk-7ILGCUI6.js +154 -0
- package/dist/chunk-A2OHX3UQ.js +1156 -0
- package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
- package/dist/{chunk-5HDSBTBX.js → chunk-FQSJI5NV.js} +1 -1
- package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
- package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
- package/dist/chunk-J3PYFGKA.cjs +166 -0
- package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-3FOTFQ3J.js → chunk-MJ5TGYVG.js} +333 -65
- package/dist/{chunk-57MSZ24T.cjs → chunk-NXFBVDOI.cjs} +3 -3
- package/dist/{chunk-PDHLTDZB.js → chunk-OIX4O6UR.js} +38 -2
- package/dist/{chunk-HR3BN4C4.cjs → chunk-OKX3FYIM.cjs} +3 -3
- package/dist/{chunk-CSNWNFKU.cjs → chunk-OMY3CKUZ.cjs} +404 -136
- package/dist/chunk-PWIUEWC3.js +81 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
- package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
- package/dist/chunk-YHBVMOMK.cjs +87 -0
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-BTHjQaSp.d.ts +86 -0
- package/dist/collect-CSyOg5XC.d.cts +86 -0
- package/dist/{file-yuPCFU5b.d.ts → file-cgL9l9l8.d.cts} +765 -14
- package/dist/{file-BOoHZgoQ.d.cts → file-olQudcx5.d.ts} +765 -14
- package/dist/history/index.cjs +198 -86
- package/dist/history/index.d.cts +49 -10
- package/dist/history/index.d.ts +49 -10
- package/dist/history/index.js +49 -4
- package/dist/index.cjs +64 -51
- package/dist/index.d.cts +9 -53
- package/dist/index.d.ts +9 -53
- package/dist/index.js +5 -4
- package/dist/ir/index.cjs +24 -3
- package/dist/ir/index.d.cts +43 -4
- package/dist/ir/index.d.ts +43 -4
- package/dist/ir/index.js +24 -3
- package/dist/{lower-BuSvAFqi.d.cts → lower-3S6PsqjJ.d.cts} +41 -7
- package/dist/{lower-C_Qv_34S.d.ts → lower-DmZpQ8hJ.d.ts} +41 -7
- package/dist/lower-types-DQNBfWQn.d.cts +37 -0
- package/dist/lower-types-DQNBfWQn.d.ts +37 -0
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
- package/dist/node-evaluator-SOADN23V.js +14 -0
- package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
- package/dist/quickjs/index.cjs +25 -24
- package/dist/quickjs/index.d.cts +7 -7
- package/dist/quickjs/index.d.ts +7 -7
- package/dist/quickjs/index.js +8 -7
- package/dist/roundtrip/index.cjs +245 -43
- package/dist/roundtrip/index.d.cts +88 -11
- package/dist/roundtrip/index.d.ts +88 -11
- package/dist/roundtrip/index.js +172 -8
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +49 -7
- package/dist/runtime/index.d.ts +49 -7
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +514 -74
- package/dist/testing/index.d.cts +128 -11
- package/dist/testing/index.d.ts +128 -11
- package/dist/testing/index.js +480 -42
- package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
- package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
- package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
- package/dist/{workflow-J-yYixny.d.cts → workflow-DWTPHFbt.d.ts} +124 -12
- package/dist/{workflow-C2a05WUJ.d.ts → workflow-O6e64ZcG.d.cts} +124 -12
- package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
- package/fixtures/histories/benign-failure.history.json +146 -0
- package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
- package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
- package/fixtures/histories/child-options-roundtrip.history.json +192 -0
- package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
- package/fixtures/histories/continue-as-new-options.history.json +99 -0
- package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
- package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
- package/fixtures/histories/execution-timeout-chain.history.json +98 -0
- package/fixtures/histories/external-cancel-resolved.history.json +123 -0
- package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
- package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
- package/fixtures/histories/handler-drain-warn.history.json +222 -0
- package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
- package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
- package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
- package/fixtures/histories/local-activity-completed.history.json +157 -0
- package/fixtures/histories/local-activity-failed.history.json +93 -0
- package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
- package/fixtures/histories/run-retry-last-failure.history.json +90 -0
- package/fixtures/histories/run-timeout.history.json +159 -0
- package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
- package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
- package/package.json +1 -1
- package/schema/history-file.schema.json +283 -2
- package/schema/ir-v2.schema.json +45 -0
- package/schema/run-event.schema.json +264 -2
- package/schema/workflow-command.schema.json +178 -1
- package/schema/workflow-task.schema.json +392 -4
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-2DP2Y6EU.cjs +0 -832
- package/dist/chunk-2J6TF7YI.cjs +0 -86
- package/dist/chunk-7NQ37GZU.js +0 -73
- package/dist/chunk-BO6OVILK.js +0 -79
- package/dist/chunk-FQIHX7YI.cjs +0 -80
- package/dist/chunk-H7KEVW2M.js +0 -816
- package/dist/lower-types-nofRXw9c.d.cts +0 -15
- package/dist/lower-types-nofRXw9c.d.ts +0 -15
- package/dist/node-evaluator-CJNP4GHX.js +0 -12
- package/dist/node-evaluator-DMKPKUWA.cjs +0 -22
|
@@ -159,6 +159,7 @@
|
|
|
159
159
|
"workflowKey",
|
|
160
160
|
"workflowId"
|
|
161
161
|
],
|
|
162
|
+
"description": "The open run of a workflow id, following its continue-as-new chain; firstRunId pins the chain (R2).",
|
|
162
163
|
"properties": {
|
|
163
164
|
"workflowKey": {
|
|
164
165
|
"type": "string",
|
|
@@ -169,12 +170,82 @@
|
|
|
169
170
|
"type": "string",
|
|
170
171
|
"minLength": 1,
|
|
171
172
|
"maxLength": 256
|
|
173
|
+
},
|
|
174
|
+
"firstRunId": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 256
|
|
172
178
|
}
|
|
173
179
|
},
|
|
174
180
|
"additionalProperties": false
|
|
175
181
|
}
|
|
176
182
|
]
|
|
177
183
|
},
|
|
184
|
+
"runRetryPolicy": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"required": [
|
|
187
|
+
"initialDelayMs"
|
|
188
|
+
],
|
|
189
|
+
"description": "Run-level retry (11 §2.17), in milliseconds. maxAttempts counts every attempt; absent means unlimited, bounded by the execution timeout.",
|
|
190
|
+
"properties": {
|
|
191
|
+
"maxAttempts": {
|
|
192
|
+
"type": "integer",
|
|
193
|
+
"minimum": 1
|
|
194
|
+
},
|
|
195
|
+
"initialDelayMs": {
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"minimum": 0
|
|
198
|
+
},
|
|
199
|
+
"backoffMultiplier": {
|
|
200
|
+
"type": "number",
|
|
201
|
+
"minimum": 1
|
|
202
|
+
},
|
|
203
|
+
"maxDelayMs": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"minimum": 0
|
|
206
|
+
},
|
|
207
|
+
"retryOnErrorTypes": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"enum": [
|
|
211
|
+
"TIMEOUT",
|
|
212
|
+
"TRANSIENT",
|
|
213
|
+
"DEPENDENCY",
|
|
214
|
+
"AUTHORIZATION",
|
|
215
|
+
"VALIDATION",
|
|
216
|
+
"PERMANENT",
|
|
217
|
+
"UNKNOWN"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"nonRetryableErrorTypes": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
},
|
|
230
|
+
"timeouts": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"description": "The three workflow timeouts (11 §2.20), in milliseconds.",
|
|
233
|
+
"properties": {
|
|
234
|
+
"executionTimeout": {
|
|
235
|
+
"type": "integer",
|
|
236
|
+
"minimum": 0
|
|
237
|
+
},
|
|
238
|
+
"runTimeout": {
|
|
239
|
+
"type": "integer",
|
|
240
|
+
"minimum": 0
|
|
241
|
+
},
|
|
242
|
+
"workflowTaskTimeout": {
|
|
243
|
+
"type": "integer",
|
|
244
|
+
"minimum": 0
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"additionalProperties": false
|
|
248
|
+
},
|
|
178
249
|
"childOptions": {
|
|
179
250
|
"type": "object",
|
|
180
251
|
"required": [
|
|
@@ -236,9 +307,101 @@
|
|
|
236
307
|
"startDelay": {
|
|
237
308
|
"type": "integer",
|
|
238
309
|
"minimum": 0
|
|
310
|
+
},
|
|
311
|
+
"retry": {
|
|
312
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
313
|
+
},
|
|
314
|
+
"versioningBehavior": {
|
|
315
|
+
"enum": [
|
|
316
|
+
"PINNED",
|
|
317
|
+
"AUTO_UPGRADE"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"idReusePolicy": {
|
|
321
|
+
"enum": [
|
|
322
|
+
"ALLOW_DUPLICATE",
|
|
323
|
+
"ALLOW_DUPLICATE_FAILED_ONLY",
|
|
324
|
+
"REJECT_DUPLICATE"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"idConflictPolicy": {
|
|
328
|
+
"enum": [
|
|
329
|
+
"FAIL",
|
|
330
|
+
"USE_EXISTING",
|
|
331
|
+
"TERMINATE_EXISTING"
|
|
332
|
+
]
|
|
239
333
|
}
|
|
240
334
|
}
|
|
241
335
|
},
|
|
336
|
+
"legacyCanRetryPolicy": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"required": [
|
|
339
|
+
"retryDelay"
|
|
340
|
+
],
|
|
341
|
+
"description": "The R1 activity-shaped CONTINUE_AS_NEW retry: whatever explicitRetryPolicy wrote from a Partial<RetryPolicy>, so numbers carry no integer or minimum constraint. It never had a meaning, and the service ignores it.",
|
|
342
|
+
"properties": {
|
|
343
|
+
"maxRetries": {
|
|
344
|
+
"type": "number"
|
|
345
|
+
},
|
|
346
|
+
"retryDelay": {
|
|
347
|
+
"type": "number"
|
|
348
|
+
},
|
|
349
|
+
"backoffMultiplier": {
|
|
350
|
+
"type": "number"
|
|
351
|
+
},
|
|
352
|
+
"maxDelay": {
|
|
353
|
+
"type": "number"
|
|
354
|
+
},
|
|
355
|
+
"retryOnErrorTypes": {
|
|
356
|
+
"type": "array",
|
|
357
|
+
"items": {
|
|
358
|
+
"type": "string"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"nonRetryableErrorTypes": {
|
|
362
|
+
"type": "array",
|
|
363
|
+
"items": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"additionalProperties": false
|
|
369
|
+
},
|
|
370
|
+
"canOptions": {
|
|
371
|
+
"type": "object",
|
|
372
|
+
"description": "Options of a CONTINUE_AS_NEW command (C-SCHEMA, frozen in R2). retry is the R2 run-retry policy of the new run, or the R1 activity shape (retryDelay, maxRetries, maxDelay) that R1 bundles wrote and R2 bundles still write for that shape: it never had a meaning, and the service ignores it instead of reading it as a run-retry policy.",
|
|
373
|
+
"properties": {
|
|
374
|
+
"taskQueue": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"minLength": 1,
|
|
377
|
+
"maxLength": 256
|
|
378
|
+
},
|
|
379
|
+
"retry": {
|
|
380
|
+
"oneOf": [
|
|
381
|
+
{
|
|
382
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"$ref": "#/$defs/legacyCanRetryPolicy"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
"workflowTaskTimeout": {
|
|
390
|
+
"type": "integer",
|
|
391
|
+
"minimum": 0
|
|
392
|
+
},
|
|
393
|
+
"context": {
|
|
394
|
+
"type": "object"
|
|
395
|
+
},
|
|
396
|
+
"versioningBehavior": {
|
|
397
|
+
"enum": [
|
|
398
|
+
"PINNED",
|
|
399
|
+
"AUTO_UPGRADE"
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"additionalProperties": false
|
|
404
|
+
},
|
|
242
405
|
"headers": {
|
|
243
406
|
"type": "object",
|
|
244
407
|
"additionalProperties": {
|
|
@@ -345,6 +508,35 @@
|
|
|
345
508
|
"type": "string",
|
|
346
509
|
"minLength": 1,
|
|
347
510
|
"maxLength": 256
|
|
511
|
+
},
|
|
512
|
+
"startDelayMs": {
|
|
513
|
+
"type": "integer",
|
|
514
|
+
"minimum": 0,
|
|
515
|
+
"description": "R2: the start delay of a delayed run (11 §2.23); the first task waits for it."
|
|
516
|
+
},
|
|
517
|
+
"runAttempt": {
|
|
518
|
+
"type": "integer",
|
|
519
|
+
"minimum": 1,
|
|
520
|
+
"description": "R2: the run-level retry attempt (11 §2.17), 1-based."
|
|
521
|
+
},
|
|
522
|
+
"businessId": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"description": "R2: the workflow id (11 §2.1), stored as WorkflowRun.businessId."
|
|
525
|
+
},
|
|
526
|
+
"workflowId": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"description": "R2: the same value as businessId."
|
|
529
|
+
},
|
|
530
|
+
"timeouts": {
|
|
531
|
+
"$ref": "#/$defs/timeouts"
|
|
532
|
+
},
|
|
533
|
+
"retry": {
|
|
534
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
535
|
+
},
|
|
536
|
+
"priority": {
|
|
537
|
+
"type": "integer",
|
|
538
|
+
"minimum": 1,
|
|
539
|
+
"maximum": 5
|
|
348
540
|
}
|
|
349
541
|
}
|
|
350
542
|
},
|
|
@@ -395,6 +587,9 @@
|
|
|
395
587
|
"type": "integer",
|
|
396
588
|
"minimum": 1,
|
|
397
589
|
"description": "The history length the attempt was leased with (run.taskStartedSeq), when it is not this event's own seq. Required on the WORKFLOW_TASK_STARTED of a transient attempt: input events with a higher seq that precede this event arrived during the attempt and belong to the next activation."
|
|
590
|
+
},
|
|
591
|
+
"version": {
|
|
592
|
+
"description": "R2: the workflow version whose bundle served the task (it differs from WORKFLOW_STARTED.version after an AUTO_UPGRADE or a versioning override)."
|
|
398
593
|
}
|
|
399
594
|
}
|
|
400
595
|
},
|
|
@@ -1171,6 +1366,19 @@
|
|
|
1171
1366
|
"attempts": {
|
|
1172
1367
|
"type": "integer",
|
|
1173
1368
|
"minimum": 1
|
|
1369
|
+
},
|
|
1370
|
+
"nodeType": {
|
|
1371
|
+
"type": "string",
|
|
1372
|
+
"minLength": 1,
|
|
1373
|
+
"maxLength": 256
|
|
1374
|
+
},
|
|
1375
|
+
"operation": {
|
|
1376
|
+
"type": "string",
|
|
1377
|
+
"minLength": 1,
|
|
1378
|
+
"maxLength": 256
|
|
1379
|
+
},
|
|
1380
|
+
"summary": {
|
|
1381
|
+
"type": "string"
|
|
1174
1382
|
}
|
|
1175
1383
|
}
|
|
1176
1384
|
},
|
|
@@ -1193,6 +1401,19 @@
|
|
|
1193
1401
|
"attempts": {
|
|
1194
1402
|
"type": "integer",
|
|
1195
1403
|
"minimum": 1
|
|
1404
|
+
},
|
|
1405
|
+
"nodeType": {
|
|
1406
|
+
"type": "string",
|
|
1407
|
+
"minLength": 1,
|
|
1408
|
+
"maxLength": 256
|
|
1409
|
+
},
|
|
1410
|
+
"operation": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"minLength": 1,
|
|
1413
|
+
"maxLength": 256
|
|
1414
|
+
},
|
|
1415
|
+
"summary": {
|
|
1416
|
+
"type": "string"
|
|
1196
1417
|
}
|
|
1197
1418
|
}
|
|
1198
1419
|
},
|
|
@@ -1270,7 +1491,44 @@
|
|
|
1270
1491
|
"override"
|
|
1271
1492
|
],
|
|
1272
1493
|
"properties": {
|
|
1273
|
-
"override": {
|
|
1494
|
+
"override": {
|
|
1495
|
+
"description": "The per-run override (11 §2.27): { behavior: PINNED, version } pins the run, { behavior: AUTO_UPGRADE } upgrades it, null removes the override.",
|
|
1496
|
+
"oneOf": [
|
|
1497
|
+
{
|
|
1498
|
+
"type": "null"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"type": "object",
|
|
1502
|
+
"required": [
|
|
1503
|
+
"behavior",
|
|
1504
|
+
"version"
|
|
1505
|
+
],
|
|
1506
|
+
"properties": {
|
|
1507
|
+
"behavior": {
|
|
1508
|
+
"const": "PINNED"
|
|
1509
|
+
},
|
|
1510
|
+
"version": {}
|
|
1511
|
+
},
|
|
1512
|
+
"additionalProperties": false
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"type": "object",
|
|
1516
|
+
"required": [
|
|
1517
|
+
"behavior"
|
|
1518
|
+
],
|
|
1519
|
+
"properties": {
|
|
1520
|
+
"behavior": {
|
|
1521
|
+
"const": "AUTO_UPGRADE"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
"additionalProperties": false
|
|
1525
|
+
}
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
"actor": {},
|
|
1529
|
+
"reason": {
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
}
|
|
1274
1532
|
}
|
|
1275
1533
|
},
|
|
1276
1534
|
"payload_WORKFLOW_COMPLETED": {
|
|
@@ -1321,6 +1579,9 @@
|
|
|
1321
1579
|
"WORKFLOW_RUN",
|
|
1322
1580
|
"WORKFLOW_EXECUTION"
|
|
1323
1581
|
]
|
|
1582
|
+
},
|
|
1583
|
+
"failure": {
|
|
1584
|
+
"$ref": "#/$defs/failure"
|
|
1324
1585
|
}
|
|
1325
1586
|
}
|
|
1326
1587
|
},
|
|
@@ -1333,7 +1594,8 @@
|
|
|
1333
1594
|
"properties": {
|
|
1334
1595
|
"input": {},
|
|
1335
1596
|
"options": {
|
|
1336
|
-
"type": "object"
|
|
1597
|
+
"type": "object",
|
|
1598
|
+
"description": "The CONTINUE_AS_NEW options as the service recorded them. New commands are checked against canOptions; histories recorded before R2 may hold any object the R1 contract accepted."
|
|
1337
1599
|
},
|
|
1338
1600
|
"newRunId": {
|
|
1339
1601
|
"type": "string"
|
|
@@ -1726,6 +1988,20 @@
|
|
|
1726
1988
|
"attempts": {
|
|
1727
1989
|
"type": "integer",
|
|
1728
1990
|
"minimum": 1
|
|
1991
|
+
},
|
|
1992
|
+
"nodeType": {
|
|
1993
|
+
"type": "string",
|
|
1994
|
+
"minLength": 1,
|
|
1995
|
+
"maxLength": 256
|
|
1996
|
+
},
|
|
1997
|
+
"operation": {
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"minLength": 1,
|
|
2000
|
+
"maxLength": 256
|
|
2001
|
+
},
|
|
2002
|
+
"summary": {
|
|
2003
|
+
"type": "string",
|
|
2004
|
+
"maxLength": 200
|
|
1729
2005
|
}
|
|
1730
2006
|
},
|
|
1731
2007
|
"additionalProperties": false,
|
|
@@ -1758,7 +2034,7 @@
|
|
|
1758
2034
|
},
|
|
1759
2035
|
"input": {},
|
|
1760
2036
|
"options": {
|
|
1761
|
-
"
|
|
2037
|
+
"$ref": "#/$defs/canOptions"
|
|
1762
2038
|
}
|
|
1763
2039
|
},
|
|
1764
2040
|
"additionalProperties": false
|
|
@@ -3263,10 +3539,17 @@
|
|
|
3263
3539
|
"businessId": {
|
|
3264
3540
|
"type": "string"
|
|
3265
3541
|
},
|
|
3542
|
+
"workflowId": {
|
|
3543
|
+
"type": "string"
|
|
3544
|
+
},
|
|
3266
3545
|
"attempt": {
|
|
3267
3546
|
"type": "integer",
|
|
3268
3547
|
"minimum": 1
|
|
3269
3548
|
},
|
|
3549
|
+
"runAttempt": {
|
|
3550
|
+
"type": "integer",
|
|
3551
|
+
"minimum": 1
|
|
3552
|
+
},
|
|
3270
3553
|
"taskQueue": {
|
|
3271
3554
|
"type": "string"
|
|
3272
3555
|
},
|
|
@@ -3347,9 +3630,86 @@
|
|
|
3347
3630
|
},
|
|
3348
3631
|
"context": {
|
|
3349
3632
|
"type": "object"
|
|
3633
|
+
},
|
|
3634
|
+
"memo": {
|
|
3635
|
+
"type": "object"
|
|
3636
|
+
},
|
|
3637
|
+
"versioningBehavior": {
|
|
3638
|
+
"enum": [
|
|
3639
|
+
"PINNED",
|
|
3640
|
+
"AUTO_UPGRADE"
|
|
3641
|
+
]
|
|
3642
|
+
},
|
|
3643
|
+
"retry": {
|
|
3644
|
+
"$ref": "#/$defs/runRetryPolicy"
|
|
3350
3645
|
}
|
|
3351
3646
|
}
|
|
3352
3647
|
},
|
|
3648
|
+
"localActivityRequest": {
|
|
3649
|
+
"type": "object",
|
|
3650
|
+
"required": [
|
|
3651
|
+
"localActivityId",
|
|
3652
|
+
"kind",
|
|
3653
|
+
"nodeType",
|
|
3654
|
+
"operation",
|
|
3655
|
+
"args",
|
|
3656
|
+
"retry",
|
|
3657
|
+
"startToCloseTimeout",
|
|
3658
|
+
"attempt",
|
|
3659
|
+
"backoffMs"
|
|
3660
|
+
],
|
|
3661
|
+
"description": "R2: a local activity the task needs (11 §2.12). Run attempt `attempt` after waiting backoffMs, then run the same task again with the outcome in localActivityResults.",
|
|
3662
|
+
"properties": {
|
|
3663
|
+
"localActivityId": {
|
|
3664
|
+
"type": "string",
|
|
3665
|
+
"minLength": 1,
|
|
3666
|
+
"maxLength": 256
|
|
3667
|
+
},
|
|
3668
|
+
"kind": {
|
|
3669
|
+
"const": "node"
|
|
3670
|
+
},
|
|
3671
|
+
"nodeType": {
|
|
3672
|
+
"type": "string",
|
|
3673
|
+
"minLength": 1,
|
|
3674
|
+
"maxLength": 256
|
|
3675
|
+
},
|
|
3676
|
+
"nodeVersion": {
|
|
3677
|
+
"type": "string"
|
|
3678
|
+
},
|
|
3679
|
+
"operation": {
|
|
3680
|
+
"type": "string",
|
|
3681
|
+
"minLength": 1,
|
|
3682
|
+
"maxLength": 256
|
|
3683
|
+
},
|
|
3684
|
+
"args": {},
|
|
3685
|
+
"connection": {
|
|
3686
|
+
"type": "string",
|
|
3687
|
+
"minLength": 1,
|
|
3688
|
+
"maxLength": 256
|
|
3689
|
+
},
|
|
3690
|
+
"retry": {
|
|
3691
|
+
"$ref": "#/$defs/retryPolicy"
|
|
3692
|
+
},
|
|
3693
|
+
"startToCloseTimeout": {
|
|
3694
|
+
"type": "integer",
|
|
3695
|
+
"minimum": 1,
|
|
3696
|
+
"maximum": 30000
|
|
3697
|
+
},
|
|
3698
|
+
"attempt": {
|
|
3699
|
+
"type": "integer",
|
|
3700
|
+
"minimum": 1
|
|
3701
|
+
},
|
|
3702
|
+
"backoffMs": {
|
|
3703
|
+
"type": "integer",
|
|
3704
|
+
"minimum": 0
|
|
3705
|
+
},
|
|
3706
|
+
"summary": {
|
|
3707
|
+
"type": "string",
|
|
3708
|
+
"maxLength": 200
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"additionalProperties": false
|
|
3712
|
+
},
|
|
3353
3713
|
"request": {
|
|
3354
3714
|
"type": "object",
|
|
3355
3715
|
"required": [
|
|
@@ -3468,7 +3828,35 @@
|
|
|
3468
3828
|
"localActivityRequests": {
|
|
3469
3829
|
"type": "array",
|
|
3470
3830
|
"items": {
|
|
3471
|
-
"
|
|
3831
|
+
"$ref": "#/$defs/localActivityRequest"
|
|
3832
|
+
}
|
|
3833
|
+
},
|
|
3834
|
+
"unfinishedHandlers": {
|
|
3835
|
+
"type": "array",
|
|
3836
|
+
"description": "R2: handlers still running when the terminal command was issued (11 §2.18); never set on replay.",
|
|
3837
|
+
"items": {
|
|
3838
|
+
"type": "object",
|
|
3839
|
+
"required": [
|
|
3840
|
+
"kind",
|
|
3841
|
+
"name",
|
|
3842
|
+
"count"
|
|
3843
|
+
],
|
|
3844
|
+
"properties": {
|
|
3845
|
+
"kind": {
|
|
3846
|
+
"enum": [
|
|
3847
|
+
"signal",
|
|
3848
|
+
"update"
|
|
3849
|
+
]
|
|
3850
|
+
},
|
|
3851
|
+
"name": {
|
|
3852
|
+
"type": "string"
|
|
3853
|
+
},
|
|
3854
|
+
"count": {
|
|
3855
|
+
"type": "integer",
|
|
3856
|
+
"minimum": 1
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
"additionalProperties": false
|
|
3472
3860
|
}
|
|
3473
3861
|
},
|
|
3474
3862
|
"queryResults": {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { P as Position, J as JsonObject, d as ConnectionRef, i as WorkflowAuthoring, b as WorkflowDefinition } from './types-BGoPzgcl.cjs';
|
|
2
|
-
import { T as Tier1Recording, x as Tier1Workflow } from './workflow-FXUkpIBc.cjs';
|
|
3
|
-
|
|
4
|
-
declare const LAYOUT_FORMAT = "fluidgrids.layout";
|
|
5
|
-
declare const LAYOUT_FORMAT_VERSION = 1;
|
|
6
|
-
/**
|
|
7
|
-
* The layout sidecar (`workflows/<key>.layout.json`): canvas positions, sticky
|
|
8
|
-
* notes and `meta.layout`, kept out of the code so it stays readable.
|
|
9
|
-
*/
|
|
10
|
-
interface LayoutSidecar {
|
|
11
|
-
format: typeof LAYOUT_FORMAT;
|
|
12
|
-
formatVersion: typeof LAYOUT_FORMAT_VERSION;
|
|
13
|
-
positions: Record<string, Position>;
|
|
14
|
-
stickyNotes?: JsonObject[];
|
|
15
|
-
metaLayout?: JsonObject;
|
|
16
|
-
}
|
|
17
|
-
/** How connection names in code resolve to connection references. */
|
|
18
|
-
type ConnectionResolver = Readonly<Record<string, ConnectionRef>> | ((name: string) => ConnectionRef | undefined);
|
|
19
|
-
interface AssembleOptions {
|
|
20
|
-
layout?: LayoutSidecar;
|
|
21
|
-
connections?: ConnectionResolver;
|
|
22
|
-
/** TEST-only pinned data (`workflows/<key>.pinned.json`). */
|
|
23
|
-
pinnedData?: JsonObject;
|
|
24
|
-
/** Provenance; defaults to `{ mode: 'canvas', generator: 'sdk-ts', generatorVersion }`. */
|
|
25
|
-
authoring?: WorkflowAuthoring;
|
|
26
|
-
}
|
|
27
|
-
/** Connection names used in code that the target workspace does not have. */
|
|
28
|
-
declare class UnresolvedConnectionsError extends Error {
|
|
29
|
-
readonly names: string[];
|
|
30
|
-
constructor(names: string[]);
|
|
31
|
-
}
|
|
32
|
-
/** Validate a parsed layout sidecar. */
|
|
33
|
-
declare function parseLayoutSidecar(value: unknown): LayoutSidecar;
|
|
34
|
-
/** Assemble IR v2 from a recording. */
|
|
35
|
-
declare function assembleRecording(recording: Tier1Recording, options?: AssembleOptions): WorkflowDefinition;
|
|
36
|
-
/** Lower a tier-1 workflow to IR v2 (spec 10 §1 `toIR`). */
|
|
37
|
-
declare function toIR(workflow: Tier1Workflow, options?: AssembleOptions): WorkflowDefinition;
|
|
38
|
-
|
|
39
|
-
export { type AssembleOptions as A, type ConnectionResolver as C, LAYOUT_FORMAT as L, UnresolvedConnectionsError as U, LAYOUT_FORMAT_VERSION as a, type LayoutSidecar as b, assembleRecording as c, parseLayoutSidecar as p, toIR as t };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { P as Position, J as JsonObject, d as ConnectionRef, i as WorkflowAuthoring, b as WorkflowDefinition } from './types-BGoPzgcl.js';
|
|
2
|
-
import { T as Tier1Recording, x as Tier1Workflow } from './workflow-Bpr3vnA_.js';
|
|
3
|
-
|
|
4
|
-
declare const LAYOUT_FORMAT = "fluidgrids.layout";
|
|
5
|
-
declare const LAYOUT_FORMAT_VERSION = 1;
|
|
6
|
-
/**
|
|
7
|
-
* The layout sidecar (`workflows/<key>.layout.json`): canvas positions, sticky
|
|
8
|
-
* notes and `meta.layout`, kept out of the code so it stays readable.
|
|
9
|
-
*/
|
|
10
|
-
interface LayoutSidecar {
|
|
11
|
-
format: typeof LAYOUT_FORMAT;
|
|
12
|
-
formatVersion: typeof LAYOUT_FORMAT_VERSION;
|
|
13
|
-
positions: Record<string, Position>;
|
|
14
|
-
stickyNotes?: JsonObject[];
|
|
15
|
-
metaLayout?: JsonObject;
|
|
16
|
-
}
|
|
17
|
-
/** How connection names in code resolve to connection references. */
|
|
18
|
-
type ConnectionResolver = Readonly<Record<string, ConnectionRef>> | ((name: string) => ConnectionRef | undefined);
|
|
19
|
-
interface AssembleOptions {
|
|
20
|
-
layout?: LayoutSidecar;
|
|
21
|
-
connections?: ConnectionResolver;
|
|
22
|
-
/** TEST-only pinned data (`workflows/<key>.pinned.json`). */
|
|
23
|
-
pinnedData?: JsonObject;
|
|
24
|
-
/** Provenance; defaults to `{ mode: 'canvas', generator: 'sdk-ts', generatorVersion }`. */
|
|
25
|
-
authoring?: WorkflowAuthoring;
|
|
26
|
-
}
|
|
27
|
-
/** Connection names used in code that the target workspace does not have. */
|
|
28
|
-
declare class UnresolvedConnectionsError extends Error {
|
|
29
|
-
readonly names: string[];
|
|
30
|
-
constructor(names: string[]);
|
|
31
|
-
}
|
|
32
|
-
/** Validate a parsed layout sidecar. */
|
|
33
|
-
declare function parseLayoutSidecar(value: unknown): LayoutSidecar;
|
|
34
|
-
/** Assemble IR v2 from a recording. */
|
|
35
|
-
declare function assembleRecording(recording: Tier1Recording, options?: AssembleOptions): WorkflowDefinition;
|
|
36
|
-
/** Lower a tier-1 workflow to IR v2 (spec 10 §1 `toIR`). */
|
|
37
|
-
declare function toIR(workflow: Tier1Workflow, options?: AssembleOptions): WorkflowDefinition;
|
|
38
|
-
|
|
39
|
-
export { type AssembleOptions as A, type ConnectionResolver as C, LAYOUT_FORMAT as L, UnresolvedConnectionsError as U, LAYOUT_FORMAT_VERSION as a, type LayoutSidecar as b, assembleRecording as c, parseLayoutSidecar as p, toIR as t };
|