@trigger.dev/core 3.0.0-beta.45 → 3.0.0-beta.47

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 (67) hide show
  1. package/dist/{catalog-mlNxCacM.d.ts → catalog-N-X0Te3W.d.mts} +5 -23
  2. package/dist/{catalog-QcLmPVsr.d.mts → catalog-NxVZnWZh.d.ts} +5 -23
  3. package/dist/{common-55Mqj8JP.d.mts → common-fIyU5pmz.d.mts} +13 -0
  4. package/dist/{common-55Mqj8JP.d.ts → common-fIyU5pmz.d.ts} +13 -0
  5. package/dist/{manager-6NRInm7C.d.ts → manager-2ZQ3_twq.d.ts} +1 -1
  6. package/dist/{manager-2AqSY67c.d.mts → manager-X_HrWQ7_.d.mts} +1 -1
  7. package/dist/{messages-EJX0bMsF.d.mts → messages-Sggr4tid.d.mts} +233 -70
  8. package/dist/{messages-EJX0bMsF.d.ts → messages-Sggr4tid.d.ts} +233 -70
  9. package/dist/{schemas-Sb0sJcEt.d.mts → schemas-Zy7mGFgD.d.mts} +22 -0
  10. package/dist/{schemas-Sb0sJcEt.d.ts → schemas-Zy7mGFgD.d.ts} +22 -0
  11. package/dist/tracer-N0p2Fuuv.d.mts +23 -0
  12. package/dist/tracer-N0p2Fuuv.d.ts +23 -0
  13. package/dist/v3/dev/index.d.mts +2 -2
  14. package/dist/v3/dev/index.d.ts +2 -2
  15. package/dist/v3/dev/index.js.map +1 -1
  16. package/dist/v3/dev/index.mjs.map +1 -1
  17. package/dist/v3/index.d.mts +50 -38
  18. package/dist/v3/index.d.ts +50 -38
  19. package/dist/v3/index.js +503 -343
  20. package/dist/v3/index.js.map +1 -1
  21. package/dist/v3/index.mjs +499 -344
  22. package/dist/v3/index.mjs.map +1 -1
  23. package/dist/v3/otel/index.js +15 -5
  24. package/dist/v3/otel/index.js.map +1 -1
  25. package/dist/v3/otel/index.mjs +15 -5
  26. package/dist/v3/otel/index.mjs.map +1 -1
  27. package/dist/v3/prod/index.d.mts +4 -4
  28. package/dist/v3/prod/index.d.ts +4 -4
  29. package/dist/v3/prod/index.js +7 -131
  30. package/dist/v3/prod/index.js.map +1 -1
  31. package/dist/v3/prod/index.mjs +7 -131
  32. package/dist/v3/prod/index.mjs.map +1 -1
  33. package/dist/v3/schemas/index.d.mts +16 -4
  34. package/dist/v3/schemas/index.d.ts +16 -4
  35. package/dist/v3/schemas/index.js +35 -40
  36. package/dist/v3/schemas/index.js.map +1 -1
  37. package/dist/v3/schemas/index.mjs +35 -41
  38. package/dist/v3/schemas/index.mjs.map +1 -1
  39. package/dist/v3/utils/timers.d.mts +6 -0
  40. package/dist/v3/utils/timers.d.ts +6 -0
  41. package/dist/v3/utils/timers.js +31 -0
  42. package/dist/v3/utils/timers.js.map +1 -0
  43. package/dist/v3/utils/timers.mjs +28 -0
  44. package/dist/v3/utils/timers.mjs.map +1 -0
  45. package/dist/v3/workers/index.d.mts +7 -6
  46. package/dist/v3/workers/index.d.ts +7 -6
  47. package/dist/v3/workers/index.js +251 -96
  48. package/dist/v3/workers/index.js.map +1 -1
  49. package/dist/v3/workers/index.mjs +251 -96
  50. package/dist/v3/workers/index.mjs.map +1 -1
  51. package/dist/v3/zodNamespace.js +41 -18
  52. package/dist/v3/zodNamespace.js.map +1 -1
  53. package/dist/v3/zodNamespace.mjs +42 -19
  54. package/dist/v3/zodNamespace.mjs.map +1 -1
  55. package/dist/v3/zodSocket.d.mts +8 -3
  56. package/dist/v3/zodSocket.d.ts +8 -3
  57. package/dist/v3/zodSocket.js +56 -25
  58. package/dist/v3/zodSocket.js.map +1 -1
  59. package/dist/v3/zodSocket.mjs +57 -26
  60. package/dist/v3/zodSocket.mjs.map +1 -1
  61. package/dist/v3/zodfetch.d.mts +15 -2
  62. package/dist/v3/zodfetch.d.ts +15 -2
  63. package/dist/v3/zodfetch.js +248 -28
  64. package/dist/v3/zodfetch.js.map +1 -1
  65. package/dist/v3/zodfetch.mjs +246 -29
  66. package/dist/v3/zodfetch.mjs.map +1 -1
  67. package/package.json +10 -2
@@ -49,6 +49,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
49
49
  createdAt: z.ZodDate;
50
50
  startedAt: z.ZodDefault<z.ZodDate>;
51
51
  idempotencyKey: z.ZodOptional<z.ZodString>;
52
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
52
53
  durationMs: z.ZodDefault<z.ZodNumber>;
53
54
  costInCents: z.ZodDefault<z.ZodNumber>;
54
55
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -65,6 +66,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
65
66
  baseCostInCents: number;
66
67
  context?: any;
67
68
  idempotencyKey?: string | undefined;
69
+ maxAttempts?: number | undefined;
68
70
  }, {
69
71
  id: string;
70
72
  payload: string;
@@ -75,6 +77,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
75
77
  isTest?: boolean | undefined;
76
78
  startedAt?: Date | undefined;
77
79
  idempotencyKey?: string | undefined;
80
+ maxAttempts?: number | undefined;
78
81
  durationMs?: number | undefined;
79
82
  costInCents?: number | undefined;
80
83
  baseCostInCents?: number | undefined;
@@ -181,6 +184,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
181
184
  baseCostInCents: number;
182
185
  context?: any;
183
186
  idempotencyKey?: string | undefined;
187
+ maxAttempts?: number | undefined;
184
188
  };
185
189
  queue: {
186
190
  id: string;
@@ -235,6 +239,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
235
239
  isTest?: boolean | undefined;
236
240
  startedAt?: Date | undefined;
237
241
  idempotencyKey?: string | undefined;
242
+ maxAttempts?: number | undefined;
238
243
  durationMs?: number | undefined;
239
244
  costInCents?: number | undefined;
240
245
  baseCostInCents?: number | undefined;
@@ -299,6 +304,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
299
304
  baseCostInCents: number;
300
305
  context?: any;
301
306
  idempotencyKey?: string | undefined;
307
+ maxAttempts?: number | undefined;
302
308
  };
303
309
  queue: {
304
310
  id: string;
@@ -357,6 +363,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
357
363
  isTest?: boolean | undefined;
358
364
  startedAt?: Date | undefined;
359
365
  idempotencyKey?: string | undefined;
366
+ maxAttempts?: number | undefined;
360
367
  durationMs?: number | undefined;
361
368
  costInCents?: number | undefined;
362
369
  baseCostInCents?: number | undefined;
@@ -424,6 +431,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
424
431
  baseCostInCents: number;
425
432
  context?: any;
426
433
  idempotencyKey?: string | undefined;
434
+ maxAttempts?: number | undefined;
427
435
  };
428
436
  queue: {
429
437
  id: string;
@@ -485,6 +493,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
485
493
  isTest?: boolean | undefined;
486
494
  startedAt?: Date | undefined;
487
495
  idempotencyKey?: string | undefined;
496
+ maxAttempts?: number | undefined;
488
497
  durationMs?: number | undefined;
489
498
  costInCents?: number | undefined;
490
499
  baseCostInCents?: number | undefined;
@@ -596,6 +605,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
596
605
  type: z.ZodLiteral<"EXECUTE_RUN_LAZY_ATTEMPT">;
597
606
  payload: z.ZodObject<{
598
607
  runId: z.ZodString;
608
+ attemptCount: z.ZodOptional<z.ZodNumber>;
599
609
  messageId: z.ZodString;
600
610
  isTest: z.ZodBoolean;
601
611
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -605,12 +615,14 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
605
615
  traceContext: Record<string, unknown>;
606
616
  runId: string;
607
617
  messageId: string;
618
+ attemptCount?: number | undefined;
608
619
  environment?: Record<string, string> | undefined;
609
620
  }, {
610
621
  isTest: boolean;
611
622
  traceContext: Record<string, unknown>;
612
623
  runId: string;
613
624
  messageId: string;
625
+ attemptCount?: number | undefined;
614
626
  environment?: Record<string, string> | undefined;
615
627
  }>;
616
628
  }, "strip", z.ZodTypeAny, {
@@ -620,6 +632,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
620
632
  traceContext: Record<string, unknown>;
621
633
  runId: string;
622
634
  messageId: string;
635
+ attemptCount?: number | undefined;
623
636
  environment?: Record<string, string> | undefined;
624
637
  };
625
638
  }, {
@@ -629,6 +642,7 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
629
642
  traceContext: Record<string, unknown>;
630
643
  runId: string;
631
644
  messageId: string;
645
+ attemptCount?: number | undefined;
632
646
  environment?: Record<string, string> | undefined;
633
647
  };
634
648
  }>]>;
@@ -696,6 +710,7 @@ declare const serverWebsocketMessages: {
696
710
  createdAt: z.ZodDate;
697
711
  startedAt: z.ZodDefault<z.ZodDate>;
698
712
  idempotencyKey: z.ZodOptional<z.ZodString>;
713
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
699
714
  durationMs: z.ZodDefault<z.ZodNumber>;
700
715
  costInCents: z.ZodDefault<z.ZodNumber>;
701
716
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -712,6 +727,7 @@ declare const serverWebsocketMessages: {
712
727
  baseCostInCents: number;
713
728
  context?: any;
714
729
  idempotencyKey?: string | undefined;
730
+ maxAttempts?: number | undefined;
715
731
  }, {
716
732
  id: string;
717
733
  payload: string;
@@ -722,6 +738,7 @@ declare const serverWebsocketMessages: {
722
738
  isTest?: boolean | undefined;
723
739
  startedAt?: Date | undefined;
724
740
  idempotencyKey?: string | undefined;
741
+ maxAttempts?: number | undefined;
725
742
  durationMs?: number | undefined;
726
743
  costInCents?: number | undefined;
727
744
  baseCostInCents?: number | undefined;
@@ -828,6 +845,7 @@ declare const serverWebsocketMessages: {
828
845
  baseCostInCents: number;
829
846
  context?: any;
830
847
  idempotencyKey?: string | undefined;
848
+ maxAttempts?: number | undefined;
831
849
  };
832
850
  queue: {
833
851
  id: string;
@@ -882,6 +900,7 @@ declare const serverWebsocketMessages: {
882
900
  isTest?: boolean | undefined;
883
901
  startedAt?: Date | undefined;
884
902
  idempotencyKey?: string | undefined;
903
+ maxAttempts?: number | undefined;
885
904
  durationMs?: number | undefined;
886
905
  costInCents?: number | undefined;
887
906
  baseCostInCents?: number | undefined;
@@ -946,6 +965,7 @@ declare const serverWebsocketMessages: {
946
965
  baseCostInCents: number;
947
966
  context?: any;
948
967
  idempotencyKey?: string | undefined;
968
+ maxAttempts?: number | undefined;
949
969
  };
950
970
  queue: {
951
971
  id: string;
@@ -1004,6 +1024,7 @@ declare const serverWebsocketMessages: {
1004
1024
  isTest?: boolean | undefined;
1005
1025
  startedAt?: Date | undefined;
1006
1026
  idempotencyKey?: string | undefined;
1027
+ maxAttempts?: number | undefined;
1007
1028
  durationMs?: number | undefined;
1008
1029
  costInCents?: number | undefined;
1009
1030
  baseCostInCents?: number | undefined;
@@ -1071,6 +1092,7 @@ declare const serverWebsocketMessages: {
1071
1092
  baseCostInCents: number;
1072
1093
  context?: any;
1073
1094
  idempotencyKey?: string | undefined;
1095
+ maxAttempts?: number | undefined;
1074
1096
  };
1075
1097
  queue: {
1076
1098
  id: string;
@@ -1132,6 +1154,7 @@ declare const serverWebsocketMessages: {
1132
1154
  isTest?: boolean | undefined;
1133
1155
  startedAt?: Date | undefined;
1134
1156
  idempotencyKey?: string | undefined;
1157
+ maxAttempts?: number | undefined;
1135
1158
  durationMs?: number | undefined;
1136
1159
  costInCents?: number | undefined;
1137
1160
  baseCostInCents?: number | undefined;
@@ -1243,6 +1266,7 @@ declare const serverWebsocketMessages: {
1243
1266
  type: z.ZodLiteral<"EXECUTE_RUN_LAZY_ATTEMPT">;
1244
1267
  payload: z.ZodObject<{
1245
1268
  runId: z.ZodString;
1269
+ attemptCount: z.ZodOptional<z.ZodNumber>;
1246
1270
  messageId: z.ZodString;
1247
1271
  isTest: z.ZodBoolean;
1248
1272
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -1252,12 +1276,14 @@ declare const serverWebsocketMessages: {
1252
1276
  traceContext: Record<string, unknown>;
1253
1277
  runId: string;
1254
1278
  messageId: string;
1279
+ attemptCount?: number | undefined;
1255
1280
  environment?: Record<string, string> | undefined;
1256
1281
  }, {
1257
1282
  isTest: boolean;
1258
1283
  traceContext: Record<string, unknown>;
1259
1284
  runId: string;
1260
1285
  messageId: string;
1286
+ attemptCount?: number | undefined;
1261
1287
  environment?: Record<string, string> | undefined;
1262
1288
  }>;
1263
1289
  }, "strip", z.ZodTypeAny, {
@@ -1267,6 +1293,7 @@ declare const serverWebsocketMessages: {
1267
1293
  traceContext: Record<string, unknown>;
1268
1294
  runId: string;
1269
1295
  messageId: string;
1296
+ attemptCount?: number | undefined;
1270
1297
  environment?: Record<string, string> | undefined;
1271
1298
  };
1272
1299
  }, {
@@ -1276,6 +1303,7 @@ declare const serverWebsocketMessages: {
1276
1303
  traceContext: Record<string, unknown>;
1277
1304
  runId: string;
1278
1305
  messageId: string;
1306
+ attemptCount?: number | undefined;
1279
1307
  environment?: Record<string, string> | undefined;
1280
1308
  };
1281
1309
  }>]>;
@@ -1311,6 +1339,7 @@ declare const serverWebsocketMessages: {
1311
1339
  baseCostInCents: number;
1312
1340
  context?: any;
1313
1341
  idempotencyKey?: string | undefined;
1342
+ maxAttempts?: number | undefined;
1314
1343
  };
1315
1344
  queue: {
1316
1345
  id: string;
@@ -1372,6 +1401,7 @@ declare const serverWebsocketMessages: {
1372
1401
  traceContext: Record<string, unknown>;
1373
1402
  runId: string;
1374
1403
  messageId: string;
1404
+ attemptCount?: number | undefined;
1375
1405
  environment?: Record<string, string> | undefined;
1376
1406
  };
1377
1407
  };
@@ -1405,6 +1435,7 @@ declare const serverWebsocketMessages: {
1405
1435
  isTest?: boolean | undefined;
1406
1436
  startedAt?: Date | undefined;
1407
1437
  idempotencyKey?: string | undefined;
1438
+ maxAttempts?: number | undefined;
1408
1439
  durationMs?: number | undefined;
1409
1440
  costInCents?: number | undefined;
1410
1441
  baseCostInCents?: number | undefined;
@@ -1469,6 +1500,7 @@ declare const serverWebsocketMessages: {
1469
1500
  traceContext: Record<string, unknown>;
1470
1501
  runId: string;
1471
1502
  messageId: string;
1503
+ attemptCount?: number | undefined;
1472
1504
  environment?: Record<string, string> | undefined;
1473
1505
  };
1474
1506
  };
@@ -1684,6 +1716,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1684
1716
  createdAt: z.ZodDate;
1685
1717
  startedAt: z.ZodDefault<z.ZodDate>;
1686
1718
  idempotencyKey: z.ZodOptional<z.ZodString>;
1719
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
1687
1720
  durationMs: z.ZodDefault<z.ZodNumber>;
1688
1721
  costInCents: z.ZodDefault<z.ZodNumber>;
1689
1722
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -1700,6 +1733,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1700
1733
  baseCostInCents: number;
1701
1734
  context?: any;
1702
1735
  idempotencyKey?: string | undefined;
1736
+ maxAttempts?: number | undefined;
1703
1737
  }, {
1704
1738
  id: string;
1705
1739
  payload: string;
@@ -1710,6 +1744,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1710
1744
  isTest?: boolean | undefined;
1711
1745
  startedAt?: Date | undefined;
1712
1746
  idempotencyKey?: string | undefined;
1747
+ maxAttempts?: number | undefined;
1713
1748
  durationMs?: number | undefined;
1714
1749
  costInCents?: number | undefined;
1715
1750
  baseCostInCents?: number | undefined;
@@ -1816,6 +1851,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1816
1851
  baseCostInCents: number;
1817
1852
  context?: any;
1818
1853
  idempotencyKey?: string | undefined;
1854
+ maxAttempts?: number | undefined;
1819
1855
  };
1820
1856
  queue: {
1821
1857
  id: string;
@@ -1870,6 +1906,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1870
1906
  isTest?: boolean | undefined;
1871
1907
  startedAt?: Date | undefined;
1872
1908
  idempotencyKey?: string | undefined;
1909
+ maxAttempts?: number | undefined;
1873
1910
  durationMs?: number | undefined;
1874
1911
  costInCents?: number | undefined;
1875
1912
  baseCostInCents?: number | undefined;
@@ -1934,6 +1971,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
1934
1971
  baseCostInCents: number;
1935
1972
  context?: any;
1936
1973
  idempotencyKey?: string | undefined;
1974
+ maxAttempts?: number | undefined;
1937
1975
  };
1938
1976
  queue: {
1939
1977
  id: string;
@@ -2029,6 +2067,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
2029
2067
  isTest?: boolean | undefined;
2030
2068
  startedAt?: Date | undefined;
2031
2069
  idempotencyKey?: string | undefined;
2070
+ maxAttempts?: number | undefined;
2032
2071
  durationMs?: number | undefined;
2033
2072
  costInCents?: number | undefined;
2034
2073
  baseCostInCents?: number | undefined;
@@ -2579,6 +2618,7 @@ declare const clientWebsocketMessages: {
2579
2618
  createdAt: z.ZodDate;
2580
2619
  startedAt: z.ZodDefault<z.ZodDate>;
2581
2620
  idempotencyKey: z.ZodOptional<z.ZodString>;
2621
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
2582
2622
  durationMs: z.ZodDefault<z.ZodNumber>;
2583
2623
  costInCents: z.ZodDefault<z.ZodNumber>;
2584
2624
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -2595,6 +2635,7 @@ declare const clientWebsocketMessages: {
2595
2635
  baseCostInCents: number;
2596
2636
  context?: any;
2597
2637
  idempotencyKey?: string | undefined;
2638
+ maxAttempts?: number | undefined;
2598
2639
  }, {
2599
2640
  id: string;
2600
2641
  payload: string;
@@ -2605,6 +2646,7 @@ declare const clientWebsocketMessages: {
2605
2646
  isTest?: boolean | undefined;
2606
2647
  startedAt?: Date | undefined;
2607
2648
  idempotencyKey?: string | undefined;
2649
+ maxAttempts?: number | undefined;
2608
2650
  durationMs?: number | undefined;
2609
2651
  costInCents?: number | undefined;
2610
2652
  baseCostInCents?: number | undefined;
@@ -2711,6 +2753,7 @@ declare const clientWebsocketMessages: {
2711
2753
  baseCostInCents: number;
2712
2754
  context?: any;
2713
2755
  idempotencyKey?: string | undefined;
2756
+ maxAttempts?: number | undefined;
2714
2757
  };
2715
2758
  queue: {
2716
2759
  id: string;
@@ -2765,6 +2808,7 @@ declare const clientWebsocketMessages: {
2765
2808
  isTest?: boolean | undefined;
2766
2809
  startedAt?: Date | undefined;
2767
2810
  idempotencyKey?: string | undefined;
2811
+ maxAttempts?: number | undefined;
2768
2812
  durationMs?: number | undefined;
2769
2813
  costInCents?: number | undefined;
2770
2814
  baseCostInCents?: number | undefined;
@@ -2829,6 +2873,7 @@ declare const clientWebsocketMessages: {
2829
2873
  baseCostInCents: number;
2830
2874
  context?: any;
2831
2875
  idempotencyKey?: string | undefined;
2876
+ maxAttempts?: number | undefined;
2832
2877
  };
2833
2878
  queue: {
2834
2879
  id: string;
@@ -2924,6 +2969,7 @@ declare const clientWebsocketMessages: {
2924
2969
  isTest?: boolean | undefined;
2925
2970
  startedAt?: Date | undefined;
2926
2971
  idempotencyKey?: string | undefined;
2972
+ maxAttempts?: number | undefined;
2927
2973
  durationMs?: number | undefined;
2928
2974
  costInCents?: number | undefined;
2929
2975
  baseCostInCents?: number | undefined;
@@ -3255,6 +3301,7 @@ declare const clientWebsocketMessages: {
3255
3301
  baseCostInCents: number;
3256
3302
  context?: any;
3257
3303
  idempotencyKey?: string | undefined;
3304
+ maxAttempts?: number | undefined;
3258
3305
  };
3259
3306
  queue: {
3260
3307
  id: string;
@@ -3395,6 +3442,7 @@ declare const clientWebsocketMessages: {
3395
3442
  isTest?: boolean | undefined;
3396
3443
  startedAt?: Date | undefined;
3397
3444
  idempotencyKey?: string | undefined;
3445
+ maxAttempts?: number | undefined;
3398
3446
  durationMs?: number | undefined;
3399
3447
  costInCents?: number | undefined;
3400
3448
  baseCostInCents?: number | undefined;
@@ -3562,6 +3610,7 @@ declare const workerToChildMessages: {
3562
3610
  createdAt: z.ZodDate;
3563
3611
  startedAt: z.ZodDefault<z.ZodDate>;
3564
3612
  idempotencyKey: z.ZodOptional<z.ZodString>;
3613
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
3565
3614
  durationMs: z.ZodDefault<z.ZodNumber>;
3566
3615
  costInCents: z.ZodDefault<z.ZodNumber>;
3567
3616
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -3578,6 +3627,7 @@ declare const workerToChildMessages: {
3578
3627
  baseCostInCents: number;
3579
3628
  context?: any;
3580
3629
  idempotencyKey?: string | undefined;
3630
+ maxAttempts?: number | undefined;
3581
3631
  }, {
3582
3632
  id: string;
3583
3633
  payload: string;
@@ -3588,6 +3638,7 @@ declare const workerToChildMessages: {
3588
3638
  isTest?: boolean | undefined;
3589
3639
  startedAt?: Date | undefined;
3590
3640
  idempotencyKey?: string | undefined;
3641
+ maxAttempts?: number | undefined;
3591
3642
  durationMs?: number | undefined;
3592
3643
  costInCents?: number | undefined;
3593
3644
  baseCostInCents?: number | undefined;
@@ -3694,6 +3745,7 @@ declare const workerToChildMessages: {
3694
3745
  baseCostInCents: number;
3695
3746
  context?: any;
3696
3747
  idempotencyKey?: string | undefined;
3748
+ maxAttempts?: number | undefined;
3697
3749
  };
3698
3750
  queue: {
3699
3751
  id: string;
@@ -3748,6 +3800,7 @@ declare const workerToChildMessages: {
3748
3800
  isTest?: boolean | undefined;
3749
3801
  startedAt?: Date | undefined;
3750
3802
  idempotencyKey?: string | undefined;
3803
+ maxAttempts?: number | undefined;
3751
3804
  durationMs?: number | undefined;
3752
3805
  costInCents?: number | undefined;
3753
3806
  baseCostInCents?: number | undefined;
@@ -3825,6 +3878,7 @@ declare const workerToChildMessages: {
3825
3878
  baseCostInCents: number;
3826
3879
  context?: any;
3827
3880
  idempotencyKey?: string | undefined;
3881
+ maxAttempts?: number | undefined;
3828
3882
  };
3829
3883
  queue: {
3830
3884
  id: string;
@@ -3887,6 +3941,7 @@ declare const workerToChildMessages: {
3887
3941
  isTest?: boolean | undefined;
3888
3942
  startedAt?: Date | undefined;
3889
3943
  idempotencyKey?: string | undefined;
3944
+ maxAttempts?: number | undefined;
3890
3945
  durationMs?: number | undefined;
3891
3946
  costInCents?: number | undefined;
3892
3947
  baseCostInCents?: number | undefined;
@@ -4137,6 +4192,7 @@ declare const workerToChildMessages: {
4137
4192
  createdAt: z.ZodDate;
4138
4193
  startedAt: z.ZodDefault<z.ZodDate>;
4139
4194
  idempotencyKey: z.ZodOptional<z.ZodString>;
4195
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
4140
4196
  durationMs: z.ZodDefault<z.ZodNumber>;
4141
4197
  costInCents: z.ZodDefault<z.ZodNumber>;
4142
4198
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -4153,6 +4209,7 @@ declare const workerToChildMessages: {
4153
4209
  baseCostInCents: number;
4154
4210
  context?: any;
4155
4211
  idempotencyKey?: string | undefined;
4212
+ maxAttempts?: number | undefined;
4156
4213
  }, {
4157
4214
  id: string;
4158
4215
  payload: string;
@@ -4163,6 +4220,7 @@ declare const workerToChildMessages: {
4163
4220
  isTest?: boolean | undefined;
4164
4221
  startedAt?: Date | undefined;
4165
4222
  idempotencyKey?: string | undefined;
4223
+ maxAttempts?: number | undefined;
4166
4224
  durationMs?: number | undefined;
4167
4225
  costInCents?: number | undefined;
4168
4226
  baseCostInCents?: number | undefined;
@@ -4269,6 +4327,7 @@ declare const workerToChildMessages: {
4269
4327
  baseCostInCents: number;
4270
4328
  context?: any;
4271
4329
  idempotencyKey?: string | undefined;
4330
+ maxAttempts?: number | undefined;
4272
4331
  };
4273
4332
  queue: {
4274
4333
  id: string;
@@ -4323,6 +4382,7 @@ declare const workerToChildMessages: {
4323
4382
  isTest?: boolean | undefined;
4324
4383
  startedAt?: Date | undefined;
4325
4384
  idempotencyKey?: string | undefined;
4385
+ maxAttempts?: number | undefined;
4326
4386
  durationMs?: number | undefined;
4327
4387
  costInCents?: number | undefined;
4328
4388
  baseCostInCents?: number | undefined;
@@ -4386,6 +4446,7 @@ declare const workerToChildMessages: {
4386
4446
  baseCostInCents: number;
4387
4447
  context?: any;
4388
4448
  idempotencyKey?: string | undefined;
4449
+ maxAttempts?: number | undefined;
4389
4450
  };
4390
4451
  queue: {
4391
4452
  id: string;
@@ -4481,6 +4542,7 @@ declare const workerToChildMessages: {
4481
4542
  isTest?: boolean | undefined;
4482
4543
  startedAt?: Date | undefined;
4483
4544
  idempotencyKey?: string | undefined;
4545
+ maxAttempts?: number | undefined;
4484
4546
  durationMs?: number | undefined;
4485
4547
  costInCents?: number | undefined;
4486
4548
  baseCostInCents?: number | undefined;
@@ -4905,6 +4967,7 @@ declare const childToWorkerMessages: {
4905
4967
  createdAt: z.ZodDate;
4906
4968
  startedAt: z.ZodDefault<z.ZodDate>;
4907
4969
  idempotencyKey: z.ZodOptional<z.ZodString>;
4970
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
4908
4971
  durationMs: z.ZodDefault<z.ZodNumber>;
4909
4972
  costInCents: z.ZodDefault<z.ZodNumber>;
4910
4973
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -4921,6 +4984,7 @@ declare const childToWorkerMessages: {
4921
4984
  baseCostInCents: number;
4922
4985
  context?: any;
4923
4986
  idempotencyKey?: string | undefined;
4987
+ maxAttempts?: number | undefined;
4924
4988
  }, {
4925
4989
  id: string;
4926
4990
  payload: string;
@@ -4931,6 +4995,7 @@ declare const childToWorkerMessages: {
4931
4995
  isTest?: boolean | undefined;
4932
4996
  startedAt?: Date | undefined;
4933
4997
  idempotencyKey?: string | undefined;
4998
+ maxAttempts?: number | undefined;
4934
4999
  durationMs?: number | undefined;
4935
5000
  costInCents?: number | undefined;
4936
5001
  baseCostInCents?: number | undefined;
@@ -5037,6 +5102,7 @@ declare const childToWorkerMessages: {
5037
5102
  baseCostInCents: number;
5038
5103
  context?: any;
5039
5104
  idempotencyKey?: string | undefined;
5105
+ maxAttempts?: number | undefined;
5040
5106
  };
5041
5107
  queue: {
5042
5108
  id: string;
@@ -5091,6 +5157,7 @@ declare const childToWorkerMessages: {
5091
5157
  isTest?: boolean | undefined;
5092
5158
  startedAt?: Date | undefined;
5093
5159
  idempotencyKey?: string | undefined;
5160
+ maxAttempts?: number | undefined;
5094
5161
  durationMs?: number | undefined;
5095
5162
  costInCents?: number | undefined;
5096
5163
  baseCostInCents?: number | undefined;
@@ -5314,6 +5381,7 @@ declare const childToWorkerMessages: {
5314
5381
  baseCostInCents: number;
5315
5382
  context?: any;
5316
5383
  idempotencyKey?: string | undefined;
5384
+ maxAttempts?: number | undefined;
5317
5385
  };
5318
5386
  queue: {
5319
5387
  id: string;
@@ -5408,6 +5476,7 @@ declare const childToWorkerMessages: {
5408
5476
  isTest?: boolean | undefined;
5409
5477
  startedAt?: Date | undefined;
5410
5478
  idempotencyKey?: string | undefined;
5479
+ maxAttempts?: number | undefined;
5411
5480
  durationMs?: number | undefined;
5412
5481
  costInCents?: number | undefined;
5413
5482
  baseCostInCents?: number | undefined;
@@ -6086,6 +6155,7 @@ declare const ProdChildToWorkerMessages: {
6086
6155
  createdAt: z.ZodDate;
6087
6156
  startedAt: z.ZodDefault<z.ZodDate>;
6088
6157
  idempotencyKey: z.ZodOptional<z.ZodString>;
6158
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
6089
6159
  durationMs: z.ZodDefault<z.ZodNumber>;
6090
6160
  costInCents: z.ZodDefault<z.ZodNumber>;
6091
6161
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -6102,6 +6172,7 @@ declare const ProdChildToWorkerMessages: {
6102
6172
  baseCostInCents: number;
6103
6173
  context?: any;
6104
6174
  idempotencyKey?: string | undefined;
6175
+ maxAttempts?: number | undefined;
6105
6176
  }, {
6106
6177
  id: string;
6107
6178
  payload: string;
@@ -6112,6 +6183,7 @@ declare const ProdChildToWorkerMessages: {
6112
6183
  isTest?: boolean | undefined;
6113
6184
  startedAt?: Date | undefined;
6114
6185
  idempotencyKey?: string | undefined;
6186
+ maxAttempts?: number | undefined;
6115
6187
  durationMs?: number | undefined;
6116
6188
  costInCents?: number | undefined;
6117
6189
  baseCostInCents?: number | undefined;
@@ -6218,6 +6290,7 @@ declare const ProdChildToWorkerMessages: {
6218
6290
  baseCostInCents: number;
6219
6291
  context?: any;
6220
6292
  idempotencyKey?: string | undefined;
6293
+ maxAttempts?: number | undefined;
6221
6294
  };
6222
6295
  queue: {
6223
6296
  id: string;
@@ -6272,6 +6345,7 @@ declare const ProdChildToWorkerMessages: {
6272
6345
  isTest?: boolean | undefined;
6273
6346
  startedAt?: Date | undefined;
6274
6347
  idempotencyKey?: string | undefined;
6348
+ maxAttempts?: number | undefined;
6275
6349
  durationMs?: number | undefined;
6276
6350
  costInCents?: number | undefined;
6277
6351
  baseCostInCents?: number | undefined;
@@ -6495,6 +6569,7 @@ declare const ProdChildToWorkerMessages: {
6495
6569
  baseCostInCents: number;
6496
6570
  context?: any;
6497
6571
  idempotencyKey?: string | undefined;
6572
+ maxAttempts?: number | undefined;
6498
6573
  };
6499
6574
  queue: {
6500
6575
  id: string;
@@ -6589,6 +6664,7 @@ declare const ProdChildToWorkerMessages: {
6589
6664
  isTest?: boolean | undefined;
6590
6665
  startedAt?: Date | undefined;
6591
6666
  idempotencyKey?: string | undefined;
6667
+ maxAttempts?: number | undefined;
6592
6668
  durationMs?: number | undefined;
6593
6669
  costInCents?: number | undefined;
6594
6670
  baseCostInCents?: number | undefined;
@@ -7146,82 +7222,26 @@ declare const ProdChildToWorkerMessages: {
7146
7222
  version?: "v1" | undefined;
7147
7223
  }>;
7148
7224
  };
7149
- TASK_RUN_HEARTBEAT: {
7150
- message: z.ZodObject<{
7151
- version: z.ZodDefault<z.ZodLiteral<"v1">>;
7152
- id: z.ZodString;
7153
- }, "strip", z.ZodTypeAny, {
7154
- id: string;
7155
- version: "v1";
7156
- }, {
7157
- id: string;
7158
- version?: "v1" | undefined;
7159
- }>;
7160
- };
7161
7225
  READY_TO_DISPOSE: {
7162
7226
  message: z.ZodUndefined;
7163
7227
  };
7164
- READY_FOR_CHECKPOINT: {
7165
- message: z.ZodObject<{
7166
- version: z.ZodDefault<z.ZodLiteral<"v1">>;
7167
- }, "strip", z.ZodTypeAny, {
7168
- version: "v1";
7169
- }, {
7170
- version?: "v1" | undefined;
7171
- }>;
7172
- };
7173
- CANCEL_CHECKPOINT: {
7174
- message: z.ZodDefault<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
7175
- version: z.ZodLiteral<"v1">;
7176
- }, "strip", z.ZodTypeAny, {
7177
- version: "v1";
7178
- }, {
7179
- version: "v1";
7180
- }>, z.ZodObject<{
7181
- version: z.ZodLiteral<"v2">;
7182
- reason: z.ZodOptional<z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>>;
7183
- }, "strip", z.ZodTypeAny, {
7184
- version: "v2";
7185
- reason?: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH" | undefined;
7186
- }, {
7187
- version: "v2";
7188
- reason?: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH" | undefined;
7189
- }>]>>;
7190
- callback: z.ZodObject<{
7191
- version: z.ZodLiteral<"v2">;
7192
- checkpointCanceled: z.ZodBoolean;
7193
- reason: z.ZodOptional<z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>>;
7194
- }, "strip", z.ZodTypeAny, {
7195
- version: "v2";
7196
- checkpointCanceled: boolean;
7197
- reason?: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH" | undefined;
7198
- }, {
7199
- version: "v2";
7200
- checkpointCanceled: boolean;
7201
- reason?: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH" | undefined;
7202
- }>;
7203
- };
7204
7228
  WAIT_FOR_DURATION: {
7205
7229
  message: z.ZodObject<{
7206
7230
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
7207
7231
  ms: z.ZodNumber;
7208
7232
  now: z.ZodNumber;
7233
+ waitThresholdInMs: z.ZodNumber;
7209
7234
  }, "strip", z.ZodTypeAny, {
7210
7235
  version: "v1";
7211
7236
  ms: number;
7212
7237
  now: number;
7238
+ waitThresholdInMs: number;
7213
7239
  }, {
7214
7240
  ms: number;
7215
7241
  now: number;
7242
+ waitThresholdInMs: number;
7216
7243
  version?: "v1" | undefined;
7217
7244
  }>;
7218
- callback: z.ZodObject<{
7219
- willCheckpointAndRestore: z.ZodBoolean;
7220
- }, "strip", z.ZodTypeAny, {
7221
- willCheckpointAndRestore: boolean;
7222
- }, {
7223
- willCheckpointAndRestore: boolean;
7224
- }>;
7225
7245
  };
7226
7246
  WAIT_FOR_TASK: {
7227
7247
  message: z.ZodObject<{
@@ -7336,6 +7356,7 @@ declare const ProdWorkerToChildMessages: {
7336
7356
  createdAt: z.ZodDate;
7337
7357
  startedAt: z.ZodDefault<z.ZodDate>;
7338
7358
  idempotencyKey: z.ZodOptional<z.ZodString>;
7359
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
7339
7360
  durationMs: z.ZodDefault<z.ZodNumber>;
7340
7361
  costInCents: z.ZodDefault<z.ZodNumber>;
7341
7362
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -7352,6 +7373,7 @@ declare const ProdWorkerToChildMessages: {
7352
7373
  baseCostInCents: number;
7353
7374
  context?: any;
7354
7375
  idempotencyKey?: string | undefined;
7376
+ maxAttempts?: number | undefined;
7355
7377
  }, {
7356
7378
  id: string;
7357
7379
  payload: string;
@@ -7362,6 +7384,7 @@ declare const ProdWorkerToChildMessages: {
7362
7384
  isTest?: boolean | undefined;
7363
7385
  startedAt?: Date | undefined;
7364
7386
  idempotencyKey?: string | undefined;
7387
+ maxAttempts?: number | undefined;
7365
7388
  durationMs?: number | undefined;
7366
7389
  costInCents?: number | undefined;
7367
7390
  baseCostInCents?: number | undefined;
@@ -7468,6 +7491,7 @@ declare const ProdWorkerToChildMessages: {
7468
7491
  baseCostInCents: number;
7469
7492
  context?: any;
7470
7493
  idempotencyKey?: string | undefined;
7494
+ maxAttempts?: number | undefined;
7471
7495
  };
7472
7496
  queue: {
7473
7497
  id: string;
@@ -7522,6 +7546,7 @@ declare const ProdWorkerToChildMessages: {
7522
7546
  isTest?: boolean | undefined;
7523
7547
  startedAt?: Date | undefined;
7524
7548
  idempotencyKey?: string | undefined;
7549
+ maxAttempts?: number | undefined;
7525
7550
  durationMs?: number | undefined;
7526
7551
  costInCents?: number | undefined;
7527
7552
  baseCostInCents?: number | undefined;
@@ -7599,6 +7624,7 @@ declare const ProdWorkerToChildMessages: {
7599
7624
  baseCostInCents: number;
7600
7625
  context?: any;
7601
7626
  idempotencyKey?: string | undefined;
7627
+ maxAttempts?: number | undefined;
7602
7628
  };
7603
7629
  queue: {
7604
7630
  id: string;
@@ -7661,6 +7687,7 @@ declare const ProdWorkerToChildMessages: {
7661
7687
  isTest?: boolean | undefined;
7662
7688
  startedAt?: Date | undefined;
7663
7689
  idempotencyKey?: string | undefined;
7690
+ maxAttempts?: number | undefined;
7664
7691
  durationMs?: number | undefined;
7665
7692
  costInCents?: number | undefined;
7666
7693
  baseCostInCents?: number | undefined;
@@ -7913,6 +7940,7 @@ declare const ProdWorkerToChildMessages: {
7913
7940
  createdAt: z.ZodDate;
7914
7941
  startedAt: z.ZodDefault<z.ZodDate>;
7915
7942
  idempotencyKey: z.ZodOptional<z.ZodString>;
7943
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
7916
7944
  durationMs: z.ZodDefault<z.ZodNumber>;
7917
7945
  costInCents: z.ZodDefault<z.ZodNumber>;
7918
7946
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -7929,6 +7957,7 @@ declare const ProdWorkerToChildMessages: {
7929
7957
  baseCostInCents: number;
7930
7958
  context?: any;
7931
7959
  idempotencyKey?: string | undefined;
7960
+ maxAttempts?: number | undefined;
7932
7961
  }, {
7933
7962
  id: string;
7934
7963
  payload: string;
@@ -7939,6 +7968,7 @@ declare const ProdWorkerToChildMessages: {
7939
7968
  isTest?: boolean | undefined;
7940
7969
  startedAt?: Date | undefined;
7941
7970
  idempotencyKey?: string | undefined;
7971
+ maxAttempts?: number | undefined;
7942
7972
  durationMs?: number | undefined;
7943
7973
  costInCents?: number | undefined;
7944
7974
  baseCostInCents?: number | undefined;
@@ -8045,6 +8075,7 @@ declare const ProdWorkerToChildMessages: {
8045
8075
  baseCostInCents: number;
8046
8076
  context?: any;
8047
8077
  idempotencyKey?: string | undefined;
8078
+ maxAttempts?: number | undefined;
8048
8079
  };
8049
8080
  queue: {
8050
8081
  id: string;
@@ -8099,6 +8130,7 @@ declare const ProdWorkerToChildMessages: {
8099
8130
  isTest?: boolean | undefined;
8100
8131
  startedAt?: Date | undefined;
8101
8132
  idempotencyKey?: string | undefined;
8133
+ maxAttempts?: number | undefined;
8102
8134
  durationMs?: number | undefined;
8103
8135
  costInCents?: number | undefined;
8104
8136
  baseCostInCents?: number | undefined;
@@ -8162,6 +8194,7 @@ declare const ProdWorkerToChildMessages: {
8162
8194
  baseCostInCents: number;
8163
8195
  context?: any;
8164
8196
  idempotencyKey?: string | undefined;
8197
+ maxAttempts?: number | undefined;
8165
8198
  };
8166
8199
  queue: {
8167
8200
  id: string;
@@ -8257,6 +8290,7 @@ declare const ProdWorkerToChildMessages: {
8257
8290
  isTest?: boolean | undefined;
8258
8291
  startedAt?: Date | undefined;
8259
8292
  idempotencyKey?: string | undefined;
8293
+ maxAttempts?: number | undefined;
8260
8294
  durationMs?: number | undefined;
8261
8295
  costInCents?: number | undefined;
8262
8296
  baseCostInCents?: number | undefined;
@@ -10133,6 +10167,7 @@ declare const CoordinatorToPlatformMessages: {
10133
10167
  createdAt: z.ZodDate;
10134
10168
  startedAt: z.ZodDefault<z.ZodDate>;
10135
10169
  idempotencyKey: z.ZodOptional<z.ZodString>;
10170
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
10136
10171
  durationMs: z.ZodDefault<z.ZodNumber>;
10137
10172
  costInCents: z.ZodDefault<z.ZodNumber>;
10138
10173
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -10149,6 +10184,7 @@ declare const CoordinatorToPlatformMessages: {
10149
10184
  baseCostInCents: number;
10150
10185
  context?: any;
10151
10186
  idempotencyKey?: string | undefined;
10187
+ maxAttempts?: number | undefined;
10152
10188
  }, {
10153
10189
  id: string;
10154
10190
  payload: string;
@@ -10159,6 +10195,7 @@ declare const CoordinatorToPlatformMessages: {
10159
10195
  isTest?: boolean | undefined;
10160
10196
  startedAt?: Date | undefined;
10161
10197
  idempotencyKey?: string | undefined;
10198
+ maxAttempts?: number | undefined;
10162
10199
  durationMs?: number | undefined;
10163
10200
  costInCents?: number | undefined;
10164
10201
  baseCostInCents?: number | undefined;
@@ -10278,6 +10315,7 @@ declare const CoordinatorToPlatformMessages: {
10278
10315
  baseCostInCents: number;
10279
10316
  context?: any;
10280
10317
  idempotencyKey?: string | undefined;
10318
+ maxAttempts?: number | undefined;
10281
10319
  };
10282
10320
  queue: {
10283
10321
  id: string;
@@ -10337,6 +10375,7 @@ declare const CoordinatorToPlatformMessages: {
10337
10375
  isTest?: boolean | undefined;
10338
10376
  startedAt?: Date | undefined;
10339
10377
  idempotencyKey?: string | undefined;
10378
+ maxAttempts?: number | undefined;
10340
10379
  durationMs?: number | undefined;
10341
10380
  costInCents?: number | undefined;
10342
10381
  baseCostInCents?: number | undefined;
@@ -10406,6 +10445,7 @@ declare const CoordinatorToPlatformMessages: {
10406
10445
  baseCostInCents: number;
10407
10446
  context?: any;
10408
10447
  idempotencyKey?: string | undefined;
10448
+ maxAttempts?: number | undefined;
10409
10449
  };
10410
10450
  queue: {
10411
10451
  id: string;
@@ -10469,6 +10509,7 @@ declare const CoordinatorToPlatformMessages: {
10469
10509
  isTest?: boolean | undefined;
10470
10510
  startedAt?: Date | undefined;
10471
10511
  idempotencyKey?: string | undefined;
10512
+ maxAttempts?: number | undefined;
10472
10513
  durationMs?: number | undefined;
10473
10514
  costInCents?: number | undefined;
10474
10515
  baseCostInCents?: number | undefined;
@@ -10541,6 +10582,7 @@ declare const CoordinatorToPlatformMessages: {
10541
10582
  baseCostInCents: number;
10542
10583
  context?: any;
10543
10584
  idempotencyKey?: string | undefined;
10585
+ maxAttempts?: number | undefined;
10544
10586
  };
10545
10587
  queue: {
10546
10588
  id: string;
@@ -10607,6 +10649,7 @@ declare const CoordinatorToPlatformMessages: {
10607
10649
  isTest?: boolean | undefined;
10608
10650
  startedAt?: Date | undefined;
10609
10651
  idempotencyKey?: string | undefined;
10652
+ maxAttempts?: number | undefined;
10610
10653
  durationMs?: number | undefined;
10611
10654
  costInCents?: number | undefined;
10612
10655
  baseCostInCents?: number | undefined;
@@ -10720,6 +10763,7 @@ declare const CoordinatorToPlatformMessages: {
10720
10763
  createdAt: z.ZodDate;
10721
10764
  startedAt: z.ZodDefault<z.ZodDate>;
10722
10765
  idempotencyKey: z.ZodOptional<z.ZodString>;
10766
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
10723
10767
  durationMs: z.ZodDefault<z.ZodNumber>;
10724
10768
  costInCents: z.ZodDefault<z.ZodNumber>;
10725
10769
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -10736,6 +10780,7 @@ declare const CoordinatorToPlatformMessages: {
10736
10780
  baseCostInCents: number;
10737
10781
  context?: any;
10738
10782
  idempotencyKey?: string | undefined;
10783
+ maxAttempts?: number | undefined;
10739
10784
  }, {
10740
10785
  id: string;
10741
10786
  payload: string;
@@ -10746,6 +10791,7 @@ declare const CoordinatorToPlatformMessages: {
10746
10791
  isTest?: boolean | undefined;
10747
10792
  startedAt?: Date | undefined;
10748
10793
  idempotencyKey?: string | undefined;
10794
+ maxAttempts?: number | undefined;
10749
10795
  durationMs?: number | undefined;
10750
10796
  costInCents?: number | undefined;
10751
10797
  baseCostInCents?: number | undefined;
@@ -10865,6 +10911,7 @@ declare const CoordinatorToPlatformMessages: {
10865
10911
  baseCostInCents: number;
10866
10912
  context?: any;
10867
10913
  idempotencyKey?: string | undefined;
10914
+ maxAttempts?: number | undefined;
10868
10915
  };
10869
10916
  queue: {
10870
10917
  id: string;
@@ -10924,6 +10971,7 @@ declare const CoordinatorToPlatformMessages: {
10924
10971
  isTest?: boolean | undefined;
10925
10972
  startedAt?: Date | undefined;
10926
10973
  idempotencyKey?: string | undefined;
10974
+ maxAttempts?: number | undefined;
10927
10975
  durationMs?: number | undefined;
10928
10976
  costInCents?: number | undefined;
10929
10977
  baseCostInCents?: number | undefined;
@@ -10993,6 +11041,7 @@ declare const CoordinatorToPlatformMessages: {
10993
11041
  baseCostInCents: number;
10994
11042
  context?: any;
10995
11043
  idempotencyKey?: string | undefined;
11044
+ maxAttempts?: number | undefined;
10996
11045
  };
10997
11046
  queue: {
10998
11047
  id: string;
@@ -11056,6 +11105,7 @@ declare const CoordinatorToPlatformMessages: {
11056
11105
  isTest?: boolean | undefined;
11057
11106
  startedAt?: Date | undefined;
11058
11107
  idempotencyKey?: string | undefined;
11108
+ maxAttempts?: number | undefined;
11059
11109
  durationMs?: number | undefined;
11060
11110
  costInCents?: number | undefined;
11061
11111
  baseCostInCents?: number | undefined;
@@ -11127,6 +11177,7 @@ declare const CoordinatorToPlatformMessages: {
11127
11177
  baseCostInCents: number;
11128
11178
  context?: any;
11129
11179
  idempotencyKey?: string | undefined;
11180
+ maxAttempts?: number | undefined;
11130
11181
  };
11131
11182
  queue: {
11132
11183
  id: string;
@@ -11193,6 +11244,7 @@ declare const CoordinatorToPlatformMessages: {
11193
11244
  isTest?: boolean | undefined;
11194
11245
  startedAt?: Date | undefined;
11195
11246
  idempotencyKey?: string | undefined;
11247
+ maxAttempts?: number | undefined;
11196
11248
  durationMs?: number | undefined;
11197
11249
  costInCents?: number | undefined;
11198
11250
  baseCostInCents?: number | undefined;
@@ -11268,6 +11320,7 @@ declare const CoordinatorToPlatformMessages: {
11268
11320
  success: z.ZodLiteral<true>;
11269
11321
  lazyPayload: z.ZodObject<{
11270
11322
  runId: z.ZodString;
11323
+ attemptCount: z.ZodOptional<z.ZodNumber>;
11271
11324
  messageId: z.ZodString;
11272
11325
  isTest: z.ZodBoolean;
11273
11326
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -11277,12 +11330,14 @@ declare const CoordinatorToPlatformMessages: {
11277
11330
  traceContext: Record<string, unknown>;
11278
11331
  runId: string;
11279
11332
  messageId: string;
11333
+ attemptCount?: number | undefined;
11280
11334
  environment?: Record<string, string> | undefined;
11281
11335
  }, {
11282
11336
  isTest: boolean;
11283
11337
  traceContext: Record<string, unknown>;
11284
11338
  runId: string;
11285
11339
  messageId: string;
11340
+ attemptCount?: number | undefined;
11286
11341
  environment?: Record<string, string> | undefined;
11287
11342
  }>;
11288
11343
  }, "strip", z.ZodTypeAny, {
@@ -11292,6 +11347,7 @@ declare const CoordinatorToPlatformMessages: {
11292
11347
  traceContext: Record<string, unknown>;
11293
11348
  runId: string;
11294
11349
  messageId: string;
11350
+ attemptCount?: number | undefined;
11295
11351
  environment?: Record<string, string> | undefined;
11296
11352
  };
11297
11353
  }, {
@@ -11301,6 +11357,7 @@ declare const CoordinatorToPlatformMessages: {
11301
11357
  traceContext: Record<string, unknown>;
11302
11358
  runId: string;
11303
11359
  messageId: string;
11360
+ attemptCount?: number | undefined;
11304
11361
  environment?: Record<string, string> | undefined;
11305
11362
  };
11306
11363
  }>]>;
@@ -11369,6 +11426,7 @@ declare const CoordinatorToPlatformMessages: {
11369
11426
  createdAt: z.ZodDate;
11370
11427
  startedAt: z.ZodDefault<z.ZodDate>;
11371
11428
  idempotencyKey: z.ZodOptional<z.ZodString>;
11429
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
11372
11430
  durationMs: z.ZodDefault<z.ZodNumber>;
11373
11431
  costInCents: z.ZodDefault<z.ZodNumber>;
11374
11432
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -11385,6 +11443,7 @@ declare const CoordinatorToPlatformMessages: {
11385
11443
  baseCostInCents: number;
11386
11444
  context?: any;
11387
11445
  idempotencyKey?: string | undefined;
11446
+ maxAttempts?: number | undefined;
11388
11447
  }, {
11389
11448
  id: string;
11390
11449
  payload: string;
@@ -11395,6 +11454,7 @@ declare const CoordinatorToPlatformMessages: {
11395
11454
  isTest?: boolean | undefined;
11396
11455
  startedAt?: Date | undefined;
11397
11456
  idempotencyKey?: string | undefined;
11457
+ maxAttempts?: number | undefined;
11398
11458
  durationMs?: number | undefined;
11399
11459
  costInCents?: number | undefined;
11400
11460
  baseCostInCents?: number | undefined;
@@ -11514,6 +11574,7 @@ declare const CoordinatorToPlatformMessages: {
11514
11574
  baseCostInCents: number;
11515
11575
  context?: any;
11516
11576
  idempotencyKey?: string | undefined;
11577
+ maxAttempts?: number | undefined;
11517
11578
  };
11518
11579
  queue: {
11519
11580
  id: string;
@@ -11573,6 +11634,7 @@ declare const CoordinatorToPlatformMessages: {
11573
11634
  isTest?: boolean | undefined;
11574
11635
  startedAt?: Date | undefined;
11575
11636
  idempotencyKey?: string | undefined;
11637
+ maxAttempts?: number | undefined;
11576
11638
  durationMs?: number | undefined;
11577
11639
  costInCents?: number | undefined;
11578
11640
  baseCostInCents?: number | undefined;
@@ -11811,6 +11873,7 @@ declare const CoordinatorToPlatformMessages: {
11811
11873
  baseCostInCents: number;
11812
11874
  context?: any;
11813
11875
  idempotencyKey?: string | undefined;
11876
+ maxAttempts?: number | undefined;
11814
11877
  };
11815
11878
  queue: {
11816
11879
  id: string;
@@ -11914,6 +11977,7 @@ declare const CoordinatorToPlatformMessages: {
11914
11977
  isTest?: boolean | undefined;
11915
11978
  startedAt?: Date | undefined;
11916
11979
  idempotencyKey?: string | undefined;
11980
+ maxAttempts?: number | undefined;
11917
11981
  durationMs?: number | undefined;
11918
11982
  costInCents?: number | undefined;
11919
11983
  baseCostInCents?: number | undefined;
@@ -12613,6 +12677,7 @@ declare const PlatformToCoordinatorMessages: {
12613
12677
  createdAt: z.ZodDate;
12614
12678
  startedAt: z.ZodDefault<z.ZodDate>;
12615
12679
  idempotencyKey: z.ZodOptional<z.ZodString>;
12680
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
12616
12681
  durationMs: z.ZodDefault<z.ZodNumber>;
12617
12682
  costInCents: z.ZodDefault<z.ZodNumber>;
12618
12683
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -12629,6 +12694,7 @@ declare const PlatformToCoordinatorMessages: {
12629
12694
  baseCostInCents: number;
12630
12695
  context?: any;
12631
12696
  idempotencyKey?: string | undefined;
12697
+ maxAttempts?: number | undefined;
12632
12698
  }, {
12633
12699
  id: string;
12634
12700
  payload: string;
@@ -12639,6 +12705,7 @@ declare const PlatformToCoordinatorMessages: {
12639
12705
  isTest?: boolean | undefined;
12640
12706
  startedAt?: Date | undefined;
12641
12707
  idempotencyKey?: string | undefined;
12708
+ maxAttempts?: number | undefined;
12642
12709
  durationMs?: number | undefined;
12643
12710
  costInCents?: number | undefined;
12644
12711
  baseCostInCents?: number | undefined;
@@ -12745,6 +12812,7 @@ declare const PlatformToCoordinatorMessages: {
12745
12812
  baseCostInCents: number;
12746
12813
  context?: any;
12747
12814
  idempotencyKey?: string | undefined;
12815
+ maxAttempts?: number | undefined;
12748
12816
  };
12749
12817
  queue: {
12750
12818
  id: string;
@@ -12799,6 +12867,7 @@ declare const PlatformToCoordinatorMessages: {
12799
12867
  isTest?: boolean | undefined;
12800
12868
  startedAt?: Date | undefined;
12801
12869
  idempotencyKey?: string | undefined;
12870
+ maxAttempts?: number | undefined;
12802
12871
  durationMs?: number | undefined;
12803
12872
  costInCents?: number | undefined;
12804
12873
  baseCostInCents?: number | undefined;
@@ -12903,6 +12972,7 @@ declare const PlatformToCoordinatorMessages: {
12903
12972
  baseCostInCents: number;
12904
12973
  context?: any;
12905
12974
  idempotencyKey?: string | undefined;
12975
+ maxAttempts?: number | undefined;
12906
12976
  };
12907
12977
  queue: {
12908
12978
  id: string;
@@ -13000,6 +13070,7 @@ declare const PlatformToCoordinatorMessages: {
13000
13070
  isTest?: boolean | undefined;
13001
13071
  startedAt?: Date | undefined;
13002
13072
  idempotencyKey?: string | undefined;
13073
+ maxAttempts?: number | undefined;
13003
13074
  durationMs?: number | undefined;
13004
13075
  costInCents?: number | undefined;
13005
13076
  baseCostInCents?: number | undefined;
@@ -13094,6 +13165,18 @@ declare const PlatformToCoordinatorMessages: {
13094
13165
  version?: "v1" | undefined;
13095
13166
  }>;
13096
13167
  };
13168
+ DYNAMIC_CONFIG: {
13169
+ message: z.ZodObject<{
13170
+ version: z.ZodDefault<z.ZodLiteral<"v1">>;
13171
+ checkpointThresholdInMs: z.ZodNumber;
13172
+ }, "strip", z.ZodTypeAny, {
13173
+ version: "v1";
13174
+ checkpointThresholdInMs: number;
13175
+ }, {
13176
+ checkpointThresholdInMs: number;
13177
+ version?: "v1" | undefined;
13178
+ }>;
13179
+ };
13097
13180
  };
13098
13181
  declare const ClientToSharedQueueMessages: {
13099
13182
  READY_FOR_TASKS: {
@@ -13333,6 +13416,7 @@ declare const ClientToSharedQueueMessages: {
13333
13416
  createdAt: z.ZodDate;
13334
13417
  startedAt: z.ZodDefault<z.ZodDate>;
13335
13418
  idempotencyKey: z.ZodOptional<z.ZodString>;
13419
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
13336
13420
  durationMs: z.ZodDefault<z.ZodNumber>;
13337
13421
  costInCents: z.ZodDefault<z.ZodNumber>;
13338
13422
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -13349,6 +13433,7 @@ declare const ClientToSharedQueueMessages: {
13349
13433
  baseCostInCents: number;
13350
13434
  context?: any;
13351
13435
  idempotencyKey?: string | undefined;
13436
+ maxAttempts?: number | undefined;
13352
13437
  }, {
13353
13438
  id: string;
13354
13439
  payload: string;
@@ -13359,6 +13444,7 @@ declare const ClientToSharedQueueMessages: {
13359
13444
  isTest?: boolean | undefined;
13360
13445
  startedAt?: Date | undefined;
13361
13446
  idempotencyKey?: string | undefined;
13447
+ maxAttempts?: number | undefined;
13362
13448
  durationMs?: number | undefined;
13363
13449
  costInCents?: number | undefined;
13364
13450
  baseCostInCents?: number | undefined;
@@ -13465,6 +13551,7 @@ declare const ClientToSharedQueueMessages: {
13465
13551
  baseCostInCents: number;
13466
13552
  context?: any;
13467
13553
  idempotencyKey?: string | undefined;
13554
+ maxAttempts?: number | undefined;
13468
13555
  };
13469
13556
  queue: {
13470
13557
  id: string;
@@ -13519,6 +13606,7 @@ declare const ClientToSharedQueueMessages: {
13519
13606
  isTest?: boolean | undefined;
13520
13607
  startedAt?: Date | undefined;
13521
13608
  idempotencyKey?: string | undefined;
13609
+ maxAttempts?: number | undefined;
13522
13610
  durationMs?: number | undefined;
13523
13611
  costInCents?: number | undefined;
13524
13612
  baseCostInCents?: number | undefined;
@@ -13583,6 +13671,7 @@ declare const ClientToSharedQueueMessages: {
13583
13671
  baseCostInCents: number;
13584
13672
  context?: any;
13585
13673
  idempotencyKey?: string | undefined;
13674
+ maxAttempts?: number | undefined;
13586
13675
  };
13587
13676
  queue: {
13588
13677
  id: string;
@@ -13678,6 +13767,7 @@ declare const ClientToSharedQueueMessages: {
13678
13767
  isTest?: boolean | undefined;
13679
13768
  startedAt?: Date | undefined;
13680
13769
  idempotencyKey?: string | undefined;
13770
+ maxAttempts?: number | undefined;
13681
13771
  durationMs?: number | undefined;
13682
13772
  costInCents?: number | undefined;
13683
13773
  baseCostInCents?: number | undefined;
@@ -14009,6 +14099,7 @@ declare const ClientToSharedQueueMessages: {
14009
14099
  baseCostInCents: number;
14010
14100
  context?: any;
14011
14101
  idempotencyKey?: string | undefined;
14102
+ maxAttempts?: number | undefined;
14012
14103
  };
14013
14104
  queue: {
14014
14105
  id: string;
@@ -14149,6 +14240,7 @@ declare const ClientToSharedQueueMessages: {
14149
14240
  isTest?: boolean | undefined;
14150
14241
  startedAt?: Date | undefined;
14151
14242
  idempotencyKey?: string | undefined;
14243
+ maxAttempts?: number | undefined;
14152
14244
  durationMs?: number | undefined;
14153
14245
  costInCents?: number | undefined;
14154
14246
  baseCostInCents?: number | undefined;
@@ -14334,6 +14426,7 @@ declare const SharedQueueToClientMessages: {
14334
14426
  createdAt: z.ZodDate;
14335
14427
  startedAt: z.ZodDefault<z.ZodDate>;
14336
14428
  idempotencyKey: z.ZodOptional<z.ZodString>;
14429
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
14337
14430
  durationMs: z.ZodDefault<z.ZodNumber>;
14338
14431
  costInCents: z.ZodDefault<z.ZodNumber>;
14339
14432
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -14350,6 +14443,7 @@ declare const SharedQueueToClientMessages: {
14350
14443
  baseCostInCents: number;
14351
14444
  context?: any;
14352
14445
  idempotencyKey?: string | undefined;
14446
+ maxAttempts?: number | undefined;
14353
14447
  }, {
14354
14448
  id: string;
14355
14449
  payload: string;
@@ -14360,6 +14454,7 @@ declare const SharedQueueToClientMessages: {
14360
14454
  isTest?: boolean | undefined;
14361
14455
  startedAt?: Date | undefined;
14362
14456
  idempotencyKey?: string | undefined;
14457
+ maxAttempts?: number | undefined;
14363
14458
  durationMs?: number | undefined;
14364
14459
  costInCents?: number | undefined;
14365
14460
  baseCostInCents?: number | undefined;
@@ -14466,6 +14561,7 @@ declare const SharedQueueToClientMessages: {
14466
14561
  baseCostInCents: number;
14467
14562
  context?: any;
14468
14563
  idempotencyKey?: string | undefined;
14564
+ maxAttempts?: number | undefined;
14469
14565
  };
14470
14566
  queue: {
14471
14567
  id: string;
@@ -14520,6 +14616,7 @@ declare const SharedQueueToClientMessages: {
14520
14616
  isTest?: boolean | undefined;
14521
14617
  startedAt?: Date | undefined;
14522
14618
  idempotencyKey?: string | undefined;
14619
+ maxAttempts?: number | undefined;
14523
14620
  durationMs?: number | undefined;
14524
14621
  costInCents?: number | undefined;
14525
14622
  baseCostInCents?: number | undefined;
@@ -14584,6 +14681,7 @@ declare const SharedQueueToClientMessages: {
14584
14681
  baseCostInCents: number;
14585
14682
  context?: any;
14586
14683
  idempotencyKey?: string | undefined;
14684
+ maxAttempts?: number | undefined;
14587
14685
  };
14588
14686
  queue: {
14589
14687
  id: string;
@@ -14642,6 +14740,7 @@ declare const SharedQueueToClientMessages: {
14642
14740
  isTest?: boolean | undefined;
14643
14741
  startedAt?: Date | undefined;
14644
14742
  idempotencyKey?: string | undefined;
14743
+ maxAttempts?: number | undefined;
14645
14744
  durationMs?: number | undefined;
14646
14745
  costInCents?: number | undefined;
14647
14746
  baseCostInCents?: number | undefined;
@@ -14709,6 +14808,7 @@ declare const SharedQueueToClientMessages: {
14709
14808
  baseCostInCents: number;
14710
14809
  context?: any;
14711
14810
  idempotencyKey?: string | undefined;
14811
+ maxAttempts?: number | undefined;
14712
14812
  };
14713
14813
  queue: {
14714
14814
  id: string;
@@ -14770,6 +14870,7 @@ declare const SharedQueueToClientMessages: {
14770
14870
  isTest?: boolean | undefined;
14771
14871
  startedAt?: Date | undefined;
14772
14872
  idempotencyKey?: string | undefined;
14873
+ maxAttempts?: number | undefined;
14773
14874
  durationMs?: number | undefined;
14774
14875
  costInCents?: number | undefined;
14775
14876
  baseCostInCents?: number | undefined;
@@ -14881,6 +14982,7 @@ declare const SharedQueueToClientMessages: {
14881
14982
  type: z.ZodLiteral<"EXECUTE_RUN_LAZY_ATTEMPT">;
14882
14983
  payload: z.ZodObject<{
14883
14984
  runId: z.ZodString;
14985
+ attemptCount: z.ZodOptional<z.ZodNumber>;
14884
14986
  messageId: z.ZodString;
14885
14987
  isTest: z.ZodBoolean;
14886
14988
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -14890,12 +14992,14 @@ declare const SharedQueueToClientMessages: {
14890
14992
  traceContext: Record<string, unknown>;
14891
14993
  runId: string;
14892
14994
  messageId: string;
14995
+ attemptCount?: number | undefined;
14893
14996
  environment?: Record<string, string> | undefined;
14894
14997
  }, {
14895
14998
  isTest: boolean;
14896
14999
  traceContext: Record<string, unknown>;
14897
15000
  runId: string;
14898
15001
  messageId: string;
15002
+ attemptCount?: number | undefined;
14899
15003
  environment?: Record<string, string> | undefined;
14900
15004
  }>;
14901
15005
  }, "strip", z.ZodTypeAny, {
@@ -14905,6 +15009,7 @@ declare const SharedQueueToClientMessages: {
14905
15009
  traceContext: Record<string, unknown>;
14906
15010
  runId: string;
14907
15011
  messageId: string;
15012
+ attemptCount?: number | undefined;
14908
15013
  environment?: Record<string, string> | undefined;
14909
15014
  };
14910
15015
  }, {
@@ -14914,6 +15019,7 @@ declare const SharedQueueToClientMessages: {
14914
15019
  traceContext: Record<string, unknown>;
14915
15020
  runId: string;
14916
15021
  messageId: string;
15022
+ attemptCount?: number | undefined;
14917
15023
  environment?: Record<string, string> | undefined;
14918
15024
  };
14919
15025
  }>]>;
@@ -14949,6 +15055,7 @@ declare const SharedQueueToClientMessages: {
14949
15055
  baseCostInCents: number;
14950
15056
  context?: any;
14951
15057
  idempotencyKey?: string | undefined;
15058
+ maxAttempts?: number | undefined;
14952
15059
  };
14953
15060
  queue: {
14954
15061
  id: string;
@@ -15010,6 +15117,7 @@ declare const SharedQueueToClientMessages: {
15010
15117
  traceContext: Record<string, unknown>;
15011
15118
  runId: string;
15012
15119
  messageId: string;
15120
+ attemptCount?: number | undefined;
15013
15121
  environment?: Record<string, string> | undefined;
15014
15122
  };
15015
15123
  };
@@ -15043,6 +15151,7 @@ declare const SharedQueueToClientMessages: {
15043
15151
  isTest?: boolean | undefined;
15044
15152
  startedAt?: Date | undefined;
15045
15153
  idempotencyKey?: string | undefined;
15154
+ maxAttempts?: number | undefined;
15046
15155
  durationMs?: number | undefined;
15047
15156
  costInCents?: number | undefined;
15048
15157
  baseCostInCents?: number | undefined;
@@ -15107,6 +15216,7 @@ declare const SharedQueueToClientMessages: {
15107
15216
  traceContext: Record<string, unknown>;
15108
15217
  runId: string;
15109
15218
  messageId: string;
15219
+ attemptCount?: number | undefined;
15110
15220
  environment?: Record<string, string> | undefined;
15111
15221
  };
15112
15222
  };
@@ -15115,15 +15225,12 @@ declare const SharedQueueToClientMessages: {
15115
15225
  };
15116
15226
  };
15117
15227
  declare const ProdWorkerToCoordinatorMessages: {
15118
- LOG: {
15228
+ TEST: {
15119
15229
  message: z.ZodObject<{
15120
15230
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
15121
- text: z.ZodString;
15122
15231
  }, "strip", z.ZodTypeAny, {
15123
15232
  version: "v1";
15124
- text: string;
15125
15233
  }, {
15126
- text: string;
15127
15234
  version?: "v1" | undefined;
15128
15235
  }>;
15129
15236
  callback: z.ZodVoid;
@@ -16211,6 +16318,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16211
16318
  createdAt: z.ZodDate;
16212
16319
  startedAt: z.ZodDefault<z.ZodDate>;
16213
16320
  idempotencyKey: z.ZodOptional<z.ZodString>;
16321
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
16214
16322
  durationMs: z.ZodDefault<z.ZodNumber>;
16215
16323
  costInCents: z.ZodDefault<z.ZodNumber>;
16216
16324
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -16227,6 +16335,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16227
16335
  baseCostInCents: number;
16228
16336
  context?: any;
16229
16337
  idempotencyKey?: string | undefined;
16338
+ maxAttempts?: number | undefined;
16230
16339
  }, {
16231
16340
  id: string;
16232
16341
  payload: string;
@@ -16237,6 +16346,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16237
16346
  isTest?: boolean | undefined;
16238
16347
  startedAt?: Date | undefined;
16239
16348
  idempotencyKey?: string | undefined;
16349
+ maxAttempts?: number | undefined;
16240
16350
  durationMs?: number | undefined;
16241
16351
  costInCents?: number | undefined;
16242
16352
  baseCostInCents?: number | undefined;
@@ -16356,6 +16466,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16356
16466
  baseCostInCents: number;
16357
16467
  context?: any;
16358
16468
  idempotencyKey?: string | undefined;
16469
+ maxAttempts?: number | undefined;
16359
16470
  };
16360
16471
  queue: {
16361
16472
  id: string;
@@ -16415,6 +16526,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16415
16526
  isTest?: boolean | undefined;
16416
16527
  startedAt?: Date | undefined;
16417
16528
  idempotencyKey?: string | undefined;
16529
+ maxAttempts?: number | undefined;
16418
16530
  durationMs?: number | undefined;
16419
16531
  costInCents?: number | undefined;
16420
16532
  baseCostInCents?: number | undefined;
@@ -16643,6 +16755,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16643
16755
  baseCostInCents: number;
16644
16756
  context?: any;
16645
16757
  idempotencyKey?: string | undefined;
16758
+ maxAttempts?: number | undefined;
16646
16759
  };
16647
16760
  queue: {
16648
16761
  id: string;
@@ -16742,6 +16855,7 @@ declare const ProdWorkerToCoordinatorMessages: {
16742
16855
  isTest?: boolean | undefined;
16743
16856
  startedAt?: Date | undefined;
16744
16857
  idempotencyKey?: string | undefined;
16858
+ maxAttempts?: number | undefined;
16745
16859
  durationMs?: number | undefined;
16746
16860
  costInCents?: number | undefined;
16747
16861
  baseCostInCents?: number | undefined;
@@ -17060,17 +17174,17 @@ declare const ProdWorkerToCoordinatorMessages: {
17060
17174
  };
17061
17175
  WAIT_FOR_TASK: {
17062
17176
  message: z.ZodObject<{
17063
- version: z.ZodDefault<z.ZodLiteral<"v1">>;
17177
+ version: z.ZodDefault<z.ZodEnum<["v1", "v2"]>>;
17064
17178
  friendlyId: z.ZodString;
17065
17179
  attemptFriendlyId: z.ZodString;
17066
17180
  }, "strip", z.ZodTypeAny, {
17067
- version: "v1";
17181
+ version: "v1" | "v2";
17068
17182
  friendlyId: string;
17069
17183
  attemptFriendlyId: string;
17070
17184
  }, {
17071
17185
  friendlyId: string;
17072
17186
  attemptFriendlyId: string;
17073
- version?: "v1" | undefined;
17187
+ version?: "v1" | "v2" | undefined;
17074
17188
  }>;
17075
17189
  callback: z.ZodObject<{
17076
17190
  willCheckpointAndRestore: z.ZodBoolean;
@@ -17082,12 +17196,12 @@ declare const ProdWorkerToCoordinatorMessages: {
17082
17196
  };
17083
17197
  WAIT_FOR_BATCH: {
17084
17198
  message: z.ZodObject<{
17085
- version: z.ZodDefault<z.ZodLiteral<"v1">>;
17199
+ version: z.ZodDefault<z.ZodEnum<["v1", "v2"]>>;
17086
17200
  batchFriendlyId: z.ZodString;
17087
17201
  runFriendlyIds: z.ZodArray<z.ZodString, "many">;
17088
17202
  attemptFriendlyId: z.ZodString;
17089
17203
  }, "strip", z.ZodTypeAny, {
17090
- version: "v1";
17204
+ version: "v1" | "v2";
17091
17205
  batchFriendlyId: string;
17092
17206
  runFriendlyIds: string[];
17093
17207
  attemptFriendlyId: string;
@@ -17095,7 +17209,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17095
17209
  batchFriendlyId: string;
17096
17210
  runFriendlyIds: string[];
17097
17211
  attemptFriendlyId: string;
17098
- version?: "v1" | undefined;
17212
+ version?: "v1" | "v2" | undefined;
17099
17213
  }>;
17100
17214
  callback: z.ZodObject<{
17101
17215
  willCheckpointAndRestore: z.ZodBoolean;
@@ -17214,6 +17328,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17214
17328
  createdAt: z.ZodDate;
17215
17329
  startedAt: z.ZodDefault<z.ZodDate>;
17216
17330
  idempotencyKey: z.ZodOptional<z.ZodString>;
17331
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
17217
17332
  durationMs: z.ZodDefault<z.ZodNumber>;
17218
17333
  costInCents: z.ZodDefault<z.ZodNumber>;
17219
17334
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -17230,6 +17345,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17230
17345
  baseCostInCents: number;
17231
17346
  context?: any;
17232
17347
  idempotencyKey?: string | undefined;
17348
+ maxAttempts?: number | undefined;
17233
17349
  }, {
17234
17350
  id: string;
17235
17351
  payload: string;
@@ -17240,6 +17356,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17240
17356
  isTest?: boolean | undefined;
17241
17357
  startedAt?: Date | undefined;
17242
17358
  idempotencyKey?: string | undefined;
17359
+ maxAttempts?: number | undefined;
17243
17360
  durationMs?: number | undefined;
17244
17361
  costInCents?: number | undefined;
17245
17362
  baseCostInCents?: number | undefined;
@@ -17359,6 +17476,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17359
17476
  baseCostInCents: number;
17360
17477
  context?: any;
17361
17478
  idempotencyKey?: string | undefined;
17479
+ maxAttempts?: number | undefined;
17362
17480
  };
17363
17481
  queue: {
17364
17482
  id: string;
@@ -17418,6 +17536,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17418
17536
  isTest?: boolean | undefined;
17419
17537
  startedAt?: Date | undefined;
17420
17538
  idempotencyKey?: string | undefined;
17539
+ maxAttempts?: number | undefined;
17421
17540
  durationMs?: number | undefined;
17422
17541
  costInCents?: number | undefined;
17423
17542
  baseCostInCents?: number | undefined;
@@ -17487,6 +17606,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17487
17606
  baseCostInCents: number;
17488
17607
  context?: any;
17489
17608
  idempotencyKey?: string | undefined;
17609
+ maxAttempts?: number | undefined;
17490
17610
  };
17491
17611
  queue: {
17492
17612
  id: string;
@@ -17550,6 +17670,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17550
17670
  isTest?: boolean | undefined;
17551
17671
  startedAt?: Date | undefined;
17552
17672
  idempotencyKey?: string | undefined;
17673
+ maxAttempts?: number | undefined;
17553
17674
  durationMs?: number | undefined;
17554
17675
  costInCents?: number | undefined;
17555
17676
  baseCostInCents?: number | undefined;
@@ -17622,6 +17743,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17622
17743
  baseCostInCents: number;
17623
17744
  context?: any;
17624
17745
  idempotencyKey?: string | undefined;
17746
+ maxAttempts?: number | undefined;
17625
17747
  };
17626
17748
  queue: {
17627
17749
  id: string;
@@ -17688,6 +17810,7 @@ declare const ProdWorkerToCoordinatorMessages: {
17688
17810
  isTest?: boolean | undefined;
17689
17811
  startedAt?: Date | undefined;
17690
17812
  idempotencyKey?: string | undefined;
17813
+ maxAttempts?: number | undefined;
17691
17814
  durationMs?: number | undefined;
17692
17815
  costInCents?: number | undefined;
17693
17816
  baseCostInCents?: number | undefined;
@@ -17764,6 +17887,18 @@ declare const ProdWorkerToCoordinatorMessages: {
17764
17887
  version?: "v1" | undefined;
17765
17888
  }>;
17766
17889
  };
17890
+ SET_STATE: {
17891
+ message: z.ZodObject<{
17892
+ version: z.ZodDefault<z.ZodLiteral<"v1">>;
17893
+ attemptFriendlyId: z.ZodOptional<z.ZodString>;
17894
+ }, "strip", z.ZodTypeAny, {
17895
+ version: "v1";
17896
+ attemptFriendlyId?: string | undefined;
17897
+ }, {
17898
+ version?: "v1" | undefined;
17899
+ attemptFriendlyId?: string | undefined;
17900
+ }>;
17901
+ };
17767
17902
  };
17768
17903
  declare const CoordinatorToProdWorkerMessages: {
17769
17904
  RESUME_AFTER_DEPENDENCY: {
@@ -17976,6 +18111,7 @@ declare const CoordinatorToProdWorkerMessages: {
17976
18111
  createdAt: z.ZodDate;
17977
18112
  startedAt: z.ZodDefault<z.ZodDate>;
17978
18113
  idempotencyKey: z.ZodOptional<z.ZodString>;
18114
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
17979
18115
  durationMs: z.ZodDefault<z.ZodNumber>;
17980
18116
  costInCents: z.ZodDefault<z.ZodNumber>;
17981
18117
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -17992,6 +18128,7 @@ declare const CoordinatorToProdWorkerMessages: {
17992
18128
  baseCostInCents: number;
17993
18129
  context?: any;
17994
18130
  idempotencyKey?: string | undefined;
18131
+ maxAttempts?: number | undefined;
17995
18132
  }, {
17996
18133
  id: string;
17997
18134
  payload: string;
@@ -18002,6 +18139,7 @@ declare const CoordinatorToProdWorkerMessages: {
18002
18139
  isTest?: boolean | undefined;
18003
18140
  startedAt?: Date | undefined;
18004
18141
  idempotencyKey?: string | undefined;
18142
+ maxAttempts?: number | undefined;
18005
18143
  durationMs?: number | undefined;
18006
18144
  costInCents?: number | undefined;
18007
18145
  baseCostInCents?: number | undefined;
@@ -18108,6 +18246,7 @@ declare const CoordinatorToProdWorkerMessages: {
18108
18246
  baseCostInCents: number;
18109
18247
  context?: any;
18110
18248
  idempotencyKey?: string | undefined;
18249
+ maxAttempts?: number | undefined;
18111
18250
  };
18112
18251
  queue: {
18113
18252
  id: string;
@@ -18162,6 +18301,7 @@ declare const CoordinatorToProdWorkerMessages: {
18162
18301
  isTest?: boolean | undefined;
18163
18302
  startedAt?: Date | undefined;
18164
18303
  idempotencyKey?: string | undefined;
18304
+ maxAttempts?: number | undefined;
18165
18305
  durationMs?: number | undefined;
18166
18306
  costInCents?: number | undefined;
18167
18307
  baseCostInCents?: number | undefined;
@@ -18264,6 +18404,7 @@ declare const CoordinatorToProdWorkerMessages: {
18264
18404
  baseCostInCents: number;
18265
18405
  context?: any;
18266
18406
  idempotencyKey?: string | undefined;
18407
+ maxAttempts?: number | undefined;
18267
18408
  };
18268
18409
  queue: {
18269
18410
  id: string;
@@ -18359,6 +18500,7 @@ declare const CoordinatorToProdWorkerMessages: {
18359
18500
  isTest?: boolean | undefined;
18360
18501
  startedAt?: Date | undefined;
18361
18502
  idempotencyKey?: string | undefined;
18503
+ maxAttempts?: number | undefined;
18362
18504
  durationMs?: number | undefined;
18363
18505
  costInCents?: number | undefined;
18364
18506
  baseCostInCents?: number | undefined;
@@ -18458,6 +18600,7 @@ declare const CoordinatorToProdWorkerMessages: {
18458
18600
  createdAt: z.ZodDate;
18459
18601
  startedAt: z.ZodDefault<z.ZodDate>;
18460
18602
  idempotencyKey: z.ZodOptional<z.ZodString>;
18603
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
18461
18604
  durationMs: z.ZodDefault<z.ZodNumber>;
18462
18605
  costInCents: z.ZodDefault<z.ZodNumber>;
18463
18606
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
@@ -18474,6 +18617,7 @@ declare const CoordinatorToProdWorkerMessages: {
18474
18617
  baseCostInCents: number;
18475
18618
  context?: any;
18476
18619
  idempotencyKey?: string | undefined;
18620
+ maxAttempts?: number | undefined;
18477
18621
  }, {
18478
18622
  id: string;
18479
18623
  payload: string;
@@ -18484,6 +18628,7 @@ declare const CoordinatorToProdWorkerMessages: {
18484
18628
  isTest?: boolean | undefined;
18485
18629
  startedAt?: Date | undefined;
18486
18630
  idempotencyKey?: string | undefined;
18631
+ maxAttempts?: number | undefined;
18487
18632
  durationMs?: number | undefined;
18488
18633
  costInCents?: number | undefined;
18489
18634
  baseCostInCents?: number | undefined;
@@ -18603,6 +18748,7 @@ declare const CoordinatorToProdWorkerMessages: {
18603
18748
  baseCostInCents: number;
18604
18749
  context?: any;
18605
18750
  idempotencyKey?: string | undefined;
18751
+ maxAttempts?: number | undefined;
18606
18752
  };
18607
18753
  queue: {
18608
18754
  id: string;
@@ -18662,6 +18808,7 @@ declare const CoordinatorToProdWorkerMessages: {
18662
18808
  isTest?: boolean | undefined;
18663
18809
  startedAt?: Date | undefined;
18664
18810
  idempotencyKey?: string | undefined;
18811
+ maxAttempts?: number | undefined;
18665
18812
  durationMs?: number | undefined;
18666
18813
  costInCents?: number | undefined;
18667
18814
  baseCostInCents?: number | undefined;
@@ -18731,6 +18878,7 @@ declare const CoordinatorToProdWorkerMessages: {
18731
18878
  baseCostInCents: number;
18732
18879
  context?: any;
18733
18880
  idempotencyKey?: string | undefined;
18881
+ maxAttempts?: number | undefined;
18734
18882
  };
18735
18883
  queue: {
18736
18884
  id: string;
@@ -18794,6 +18942,7 @@ declare const CoordinatorToProdWorkerMessages: {
18794
18942
  isTest?: boolean | undefined;
18795
18943
  startedAt?: Date | undefined;
18796
18944
  idempotencyKey?: string | undefined;
18945
+ maxAttempts?: number | undefined;
18797
18946
  durationMs?: number | undefined;
18798
18947
  costInCents?: number | undefined;
18799
18948
  baseCostInCents?: number | undefined;
@@ -18866,6 +19015,7 @@ declare const CoordinatorToProdWorkerMessages: {
18866
19015
  baseCostInCents: number;
18867
19016
  context?: any;
18868
19017
  idempotencyKey?: string | undefined;
19018
+ maxAttempts?: number | undefined;
18869
19019
  };
18870
19020
  queue: {
18871
19021
  id: string;
@@ -18931,6 +19081,7 @@ declare const CoordinatorToProdWorkerMessages: {
18931
19081
  isTest?: boolean | undefined;
18932
19082
  startedAt?: Date | undefined;
18933
19083
  idempotencyKey?: string | undefined;
19084
+ maxAttempts?: number | undefined;
18934
19085
  durationMs?: number | undefined;
18935
19086
  costInCents?: number | undefined;
18936
19087
  baseCostInCents?: number | undefined;
@@ -18981,6 +19132,7 @@ declare const CoordinatorToProdWorkerMessages: {
18981
19132
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
18982
19133
  lazyPayload: z.ZodObject<{
18983
19134
  runId: z.ZodString;
19135
+ attemptCount: z.ZodOptional<z.ZodNumber>;
18984
19136
  messageId: z.ZodString;
18985
19137
  isTest: z.ZodBoolean;
18986
19138
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -18990,12 +19142,14 @@ declare const CoordinatorToProdWorkerMessages: {
18990
19142
  traceContext: Record<string, unknown>;
18991
19143
  runId: string;
18992
19144
  messageId: string;
19145
+ attemptCount?: number | undefined;
18993
19146
  environment?: Record<string, string> | undefined;
18994
19147
  }, {
18995
19148
  isTest: boolean;
18996
19149
  traceContext: Record<string, unknown>;
18997
19150
  runId: string;
18998
19151
  messageId: string;
19152
+ attemptCount?: number | undefined;
18999
19153
  environment?: Record<string, string> | undefined;
19000
19154
  }>;
19001
19155
  }, "strip", z.ZodTypeAny, {
@@ -19005,6 +19159,7 @@ declare const CoordinatorToProdWorkerMessages: {
19005
19159
  traceContext: Record<string, unknown>;
19006
19160
  runId: string;
19007
19161
  messageId: string;
19162
+ attemptCount?: number | undefined;
19008
19163
  environment?: Record<string, string> | undefined;
19009
19164
  };
19010
19165
  }, {
@@ -19013,6 +19168,7 @@ declare const CoordinatorToProdWorkerMessages: {
19013
19168
  traceContext: Record<string, unknown>;
19014
19169
  runId: string;
19015
19170
  messageId: string;
19171
+ attemptCount?: number | undefined;
19016
19172
  environment?: Record<string, string> | undefined;
19017
19173
  };
19018
19174
  version?: "v1" | undefined;
@@ -19089,5 +19245,12 @@ declare const ProdWorkerSocketData: z.ZodObject<{
19089
19245
  deploymentVersion: string;
19090
19246
  attemptFriendlyId?: string | undefined;
19091
19247
  }>;
19248
+ declare const CoordinatorSocketData: z.ZodObject<{
19249
+ supportsDynamicConfig: z.ZodOptional<z.ZodString>;
19250
+ }, "strip", z.ZodTypeAny, {
19251
+ supportsDynamicConfig?: string | undefined;
19252
+ }, {
19253
+ supportsDynamicConfig?: string | undefined;
19254
+ }>;
19092
19255
 
19093
- export { BackgroundWorkerProperties as B, CoordinatorToPlatformMessages as C, ProdWorkerToChildMessages as P, SharedQueueToClientMessages as S, TaskMetadataFailedToParseData as T, UncaughtExceptionMessage as U, ProdChildToWorkerMessages as a, BackgroundWorkerServerMessages as b, BackgroundWorkerClientMessages as c, clientWebsocketMessages as d, childToWorkerMessages as e, ProviderToPlatformMessages as f, PlatformToProviderMessages as g, PlatformToCoordinatorMessages as h, ClientToSharedQueueMessages as i, ProdWorkerToCoordinatorMessages as j, CoordinatorToProdWorkerMessages as k, ProdWorkerSocketData as l, serverWebsocketMessages as s, workerToChildMessages as w };
19256
+ export { BackgroundWorkerProperties as B, CoordinatorToPlatformMessages as C, ProdWorkerToChildMessages as P, SharedQueueToClientMessages as S, TaskMetadataFailedToParseData as T, UncaughtExceptionMessage as U, ProdChildToWorkerMessages as a, BackgroundWorkerServerMessages as b, BackgroundWorkerClientMessages as c, clientWebsocketMessages as d, childToWorkerMessages as e, ProviderToPlatformMessages as f, PlatformToProviderMessages as g, PlatformToCoordinatorMessages as h, ClientToSharedQueueMessages as i, ProdWorkerToCoordinatorMessages as j, CoordinatorToProdWorkerMessages as k, ProdWorkerSocketData as l, CoordinatorSocketData as m, serverWebsocketMessages as s, workerToChildMessages as w };