@trigger.dev/core 0.0.0-v3-trigger-dirs-20240422221109 → 0.0.0-v3-trigger-dirs-20240423123825

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 (33) hide show
  1. package/dist/{consoleInterceptor-6WZo2qUS.d.ts → catalog-e2OUDZEa.d.mts} +368 -400
  2. package/dist/{consoleInterceptor-hjdjADX8.d.mts → catalog-ndN7py2b.d.ts} +368 -400
  3. package/dist/{messages-GvjBDSAA.d.mts → messages-AriaDDm0.d.mts} +439 -439
  4. package/dist/{messages-GvjBDSAA.d.ts → messages-AriaDDm0.d.ts} +439 -439
  5. package/dist/v3/dev/index.d.mts +1 -1
  6. package/dist/v3/dev/index.d.ts +1 -1
  7. package/dist/v3/index.d.mts +107 -321
  8. package/dist/v3/index.d.ts +107 -321
  9. package/dist/v3/index.js +2045 -2595
  10. package/dist/v3/index.js.map +1 -1
  11. package/dist/v3/index.mjs +2065 -2603
  12. package/dist/v3/index.mjs.map +1 -1
  13. package/dist/v3/otel/index.d.mts +34 -6
  14. package/dist/v3/otel/index.d.ts +34 -6
  15. package/dist/v3/otel/index.js +62 -38
  16. package/dist/v3/otel/index.js.map +1 -1
  17. package/dist/v3/otel/index.mjs +62 -38
  18. package/dist/v3/otel/index.mjs.map +1 -1
  19. package/dist/v3/prod/index.d.mts +2 -2
  20. package/dist/v3/prod/index.d.ts +2 -2
  21. package/dist/v3/prod/index.js.map +1 -1
  22. package/dist/v3/prod/index.mjs.map +1 -1
  23. package/dist/v3/workers/index.d.mts +57 -12
  24. package/dist/v3/workers/index.d.ts +57 -12
  25. package/dist/v3/workers/index.js +728 -124
  26. package/dist/v3/workers/index.js.map +1 -1
  27. package/dist/v3/workers/index.mjs +718 -125
  28. package/dist/v3/workers/index.mjs.map +1 -1
  29. package/package.json +3 -3
  30. package/dist/tracingSDK-XMTLzw35.d.mts +0 -35
  31. package/dist/tracingSDK-XMTLzw35.d.ts +0 -35
  32. package/dist/{manager-psJfQhBB.d.mts → manager-M9GLDnhJ.d.mts} +62 -62
  33. package/dist/{manager-psJfQhBB.d.ts → manager-M9GLDnhJ.d.ts} +62 -62
@@ -1,11 +1,9 @@
1
- import { Context as Context$1, Span, SpanOptions, Tracer, Attributes } from '@opentelemetry/api';
2
- import * as logsAPI from '@opentelemetry/api-logs';
1
+ import { Context as Context$1, Span, SpanOptions, Tracer } from '@opentelemetry/api';
3
2
  import { Logger } from '@opentelemetry/api-logs';
4
- import { R as RetryOptions, j as TaskMetadata, g as BackgroundWorkerProperties } from './messages-GvjBDSAA.js';
3
+ import { R as RetryOptions, j as TaskMetadata, T as TaskFileMetadata, a as TaskMetadataWithFilePath } from './messages-AriaDDm0.mjs';
5
4
  import { InstrumentationOption } from '@opentelemetry/instrumentation';
6
- import { b as TaskRunContext } from './manager-psJfQhBB.js';
7
5
  import { z } from 'zod';
8
- import { SpanProcessor, Span as Span$1 } from '@opentelemetry/sdk-trace-base';
6
+ import { b as TaskRunContext } from './manager-M9GLDnhJ.mjs';
9
7
 
10
8
  type RequireKeys<T extends object, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K> extends infer O ? {
11
9
  [P in keyof O]: O[P];
@@ -319,26 +317,26 @@ declare const ProviderToPlatformMessages: {
319
317
  message: z.ZodString;
320
318
  stack: z.ZodOptional<z.ZodString>;
321
319
  }, "strip", z.ZodTypeAny, {
322
- name: string;
323
320
  message: string;
321
+ name: string;
324
322
  stack?: string | undefined;
325
323
  }, {
326
- name: string;
327
324
  message: string;
325
+ name: string;
328
326
  stack?: string | undefined;
329
327
  }>;
330
328
  }, "strip", z.ZodTypeAny, {
331
329
  error: {
332
- name: string;
333
330
  message: string;
331
+ name: string;
334
332
  stack?: string | undefined;
335
333
  };
336
334
  version: "v1";
337
335
  deploymentId: string;
338
336
  }, {
339
337
  error: {
340
- name: string;
341
338
  message: string;
339
+ name: string;
342
340
  stack?: string | undefined;
343
341
  };
344
342
  deploymentId: string;
@@ -405,25 +403,25 @@ declare const PlatformToProviderMessages: {
405
403
  message: z.ZodString;
406
404
  stack: z.ZodOptional<z.ZodString>;
407
405
  }, "strip", z.ZodTypeAny, {
408
- name: string;
409
406
  message: string;
407
+ name: string;
410
408
  stack?: string | undefined;
411
409
  }, {
412
- name: string;
413
410
  message: string;
411
+ name: string;
414
412
  stack?: string | undefined;
415
413
  }>;
416
414
  }, "strip", z.ZodTypeAny, {
417
415
  error: {
418
- name: string;
419
416
  message: string;
417
+ name: string;
420
418
  stack?: string | undefined;
421
419
  };
422
420
  success: false;
423
421
  }, {
424
422
  error: {
425
- name: string;
426
423
  message: string;
424
+ name: string;
427
425
  stack?: string | undefined;
428
426
  };
429
427
  success: false;
@@ -887,8 +885,8 @@ declare const CoordinatorToPlatformMessages: {
887
885
  triggerSource?: string | undefined;
888
886
  }>, "many">;
889
887
  }, "strip", z.ZodTypeAny, {
890
- packageVersion: string;
891
888
  contentHash: string;
889
+ packageVersion: string;
892
890
  tasks: {
893
891
  id: string;
894
892
  filePath: string;
@@ -946,8 +944,8 @@ declare const CoordinatorToPlatformMessages: {
946
944
  }[];
947
945
  cliPackageVersion?: string | undefined;
948
946
  }, {
949
- packageVersion: string;
950
947
  contentHash: string;
948
+ packageVersion: string;
951
949
  tasks: {
952
950
  id: string;
953
951
  filePath: string;
@@ -1009,8 +1007,8 @@ declare const CoordinatorToPlatformMessages: {
1009
1007
  version: "v1";
1010
1008
  envId: string;
1011
1009
  metadata: {
1012
- packageVersion: string;
1013
1010
  contentHash: string;
1011
+ packageVersion: string;
1014
1012
  tasks: {
1015
1013
  id: string;
1016
1014
  filePath: string;
@@ -1073,8 +1071,8 @@ declare const CoordinatorToPlatformMessages: {
1073
1071
  }, {
1074
1072
  envId: string;
1075
1073
  metadata: {
1076
- packageVersion: string;
1077
1074
  contentHash: string;
1075
+ packageVersion: string;
1078
1076
  tasks: {
1079
1077
  id: string;
1080
1078
  filePath: string;
@@ -1174,16 +1172,6 @@ declare const CoordinatorToPlatformMessages: {
1174
1172
  success: z.ZodLiteral<true>;
1175
1173
  payload: z.ZodObject<{
1176
1174
  execution: z.ZodObject<{
1177
- queue: z.ZodObject<{
1178
- id: z.ZodString;
1179
- name: z.ZodString;
1180
- }, "strip", z.ZodTypeAny, {
1181
- name: string;
1182
- id: string;
1183
- }, {
1184
- name: string;
1185
- id: string;
1186
- }>;
1187
1175
  task: z.ZodObject<{
1188
1176
  id: z.ZodString;
1189
1177
  filePath: z.ZodString;
@@ -1229,24 +1217,34 @@ declare const CoordinatorToPlatformMessages: {
1229
1217
  createdAt: z.ZodDate;
1230
1218
  idempotencyKey: z.ZodOptional<z.ZodString>;
1231
1219
  }, "strip", z.ZodTypeAny, {
1220
+ id: string;
1232
1221
  payload: string;
1233
1222
  payloadType: string;
1234
- id: string;
1235
1223
  tags: string[];
1236
1224
  isTest: boolean;
1237
1225
  createdAt: Date;
1238
1226
  context?: any;
1239
1227
  idempotencyKey?: string | undefined;
1240
1228
  }, {
1229
+ id: string;
1241
1230
  payload: string;
1242
1231
  payloadType: string;
1243
- id: string;
1244
1232
  tags: string[];
1245
1233
  createdAt: Date;
1246
1234
  context?: any;
1247
1235
  isTest?: boolean | undefined;
1248
1236
  idempotencyKey?: string | undefined;
1249
1237
  }>;
1238
+ queue: z.ZodObject<{
1239
+ id: z.ZodString;
1240
+ name: z.ZodString;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ name: string;
1243
+ id: string;
1244
+ }, {
1245
+ name: string;
1246
+ id: string;
1247
+ }>;
1250
1248
  environment: z.ZodObject<{
1251
1249
  id: z.ZodString;
1252
1250
  slug: z.ZodString;
@@ -1310,10 +1308,6 @@ declare const CoordinatorToPlatformMessages: {
1310
1308
  contentHash: string;
1311
1309
  }>;
1312
1310
  }, "strip", z.ZodTypeAny, {
1313
- queue: {
1314
- name: string;
1315
- id: string;
1316
- };
1317
1311
  task: {
1318
1312
  id: string;
1319
1313
  filePath: string;
@@ -1328,15 +1322,19 @@ declare const CoordinatorToPlatformMessages: {
1328
1322
  backgroundWorkerTaskId: string;
1329
1323
  };
1330
1324
  run: {
1325
+ id: string;
1331
1326
  payload: string;
1332
1327
  payloadType: string;
1333
- id: string;
1334
1328
  tags: string[];
1335
1329
  isTest: boolean;
1336
1330
  createdAt: Date;
1337
1331
  context?: any;
1338
1332
  idempotencyKey?: string | undefined;
1339
1333
  };
1334
+ queue: {
1335
+ name: string;
1336
+ id: string;
1337
+ };
1340
1338
  environment: {
1341
1339
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1342
1340
  id: string;
@@ -1362,10 +1360,6 @@ declare const CoordinatorToPlatformMessages: {
1362
1360
  id: string;
1363
1361
  } | undefined;
1364
1362
  }, {
1365
- queue: {
1366
- name: string;
1367
- id: string;
1368
- };
1369
1363
  task: {
1370
1364
  id: string;
1371
1365
  filePath: string;
@@ -1380,15 +1374,19 @@ declare const CoordinatorToPlatformMessages: {
1380
1374
  backgroundWorkerTaskId: string;
1381
1375
  };
1382
1376
  run: {
1377
+ id: string;
1383
1378
  payload: string;
1384
1379
  payloadType: string;
1385
- id: string;
1386
1380
  tags: string[];
1387
1381
  createdAt: Date;
1388
1382
  context?: any;
1389
1383
  isTest?: boolean | undefined;
1390
1384
  idempotencyKey?: string | undefined;
1391
1385
  };
1386
+ queue: {
1387
+ name: string;
1388
+ id: string;
1389
+ };
1392
1390
  environment: {
1393
1391
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1394
1392
  id: string;
@@ -1418,10 +1416,6 @@ declare const CoordinatorToPlatformMessages: {
1418
1416
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1419
1417
  }, "strip", z.ZodTypeAny, {
1420
1418
  execution: {
1421
- queue: {
1422
- name: string;
1423
- id: string;
1424
- };
1425
1419
  task: {
1426
1420
  id: string;
1427
1421
  filePath: string;
@@ -1436,15 +1430,19 @@ declare const CoordinatorToPlatformMessages: {
1436
1430
  backgroundWorkerTaskId: string;
1437
1431
  };
1438
1432
  run: {
1433
+ id: string;
1439
1434
  payload: string;
1440
1435
  payloadType: string;
1441
- id: string;
1442
1436
  tags: string[];
1443
1437
  isTest: boolean;
1444
1438
  createdAt: Date;
1445
1439
  context?: any;
1446
1440
  idempotencyKey?: string | undefined;
1447
1441
  };
1442
+ queue: {
1443
+ name: string;
1444
+ id: string;
1445
+ };
1448
1446
  environment: {
1449
1447
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1450
1448
  id: string;
@@ -1474,10 +1472,6 @@ declare const CoordinatorToPlatformMessages: {
1474
1472
  environment?: Record<string, string> | undefined;
1475
1473
  }, {
1476
1474
  execution: {
1477
- queue: {
1478
- name: string;
1479
- id: string;
1480
- };
1481
1475
  task: {
1482
1476
  id: string;
1483
1477
  filePath: string;
@@ -1492,15 +1486,19 @@ declare const CoordinatorToPlatformMessages: {
1492
1486
  backgroundWorkerTaskId: string;
1493
1487
  };
1494
1488
  run: {
1489
+ id: string;
1495
1490
  payload: string;
1496
1491
  payloadType: string;
1497
- id: string;
1498
1492
  tags: string[];
1499
1493
  createdAt: Date;
1500
1494
  context?: any;
1501
1495
  isTest?: boolean | undefined;
1502
1496
  idempotencyKey?: string | undefined;
1503
1497
  };
1498
+ queue: {
1499
+ name: string;
1500
+ id: string;
1501
+ };
1504
1502
  environment: {
1505
1503
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1506
1504
  id: string;
@@ -1532,10 +1530,6 @@ declare const CoordinatorToPlatformMessages: {
1532
1530
  }, "strip", z.ZodTypeAny, {
1533
1531
  payload: {
1534
1532
  execution: {
1535
- queue: {
1536
- name: string;
1537
- id: string;
1538
- };
1539
1533
  task: {
1540
1534
  id: string;
1541
1535
  filePath: string;
@@ -1550,15 +1544,19 @@ declare const CoordinatorToPlatformMessages: {
1550
1544
  backgroundWorkerTaskId: string;
1551
1545
  };
1552
1546
  run: {
1547
+ id: string;
1553
1548
  payload: string;
1554
1549
  payloadType: string;
1555
- id: string;
1556
1550
  tags: string[];
1557
1551
  isTest: boolean;
1558
1552
  createdAt: Date;
1559
1553
  context?: any;
1560
1554
  idempotencyKey?: string | undefined;
1561
1555
  };
1556
+ queue: {
1557
+ name: string;
1558
+ id: string;
1559
+ };
1562
1560
  environment: {
1563
1561
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1564
1562
  id: string;
@@ -1591,10 +1589,6 @@ declare const CoordinatorToPlatformMessages: {
1591
1589
  }, {
1592
1590
  payload: {
1593
1591
  execution: {
1594
- queue: {
1595
- name: string;
1596
- id: string;
1597
- };
1598
1592
  task: {
1599
1593
  id: string;
1600
1594
  filePath: string;
@@ -1609,15 +1603,19 @@ declare const CoordinatorToPlatformMessages: {
1609
1603
  backgroundWorkerTaskId: string;
1610
1604
  };
1611
1605
  run: {
1606
+ id: string;
1612
1607
  payload: string;
1613
1608
  payloadType: string;
1614
- id: string;
1615
1609
  tags: string[];
1616
1610
  createdAt: Date;
1617
1611
  context?: any;
1618
1612
  isTest?: boolean | undefined;
1619
1613
  idempotencyKey?: string | undefined;
1620
1614
  };
1615
+ queue: {
1616
+ name: string;
1617
+ id: string;
1618
+ };
1621
1619
  environment: {
1622
1620
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1623
1621
  id: string;
@@ -1668,16 +1666,6 @@ declare const CoordinatorToPlatformMessages: {
1668
1666
  message: z.ZodObject<{
1669
1667
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
1670
1668
  execution: z.ZodObject<{
1671
- queue: z.ZodObject<{
1672
- id: z.ZodString;
1673
- name: z.ZodString;
1674
- }, "strip", z.ZodTypeAny, {
1675
- name: string;
1676
- id: string;
1677
- }, {
1678
- name: string;
1679
- id: string;
1680
- }>;
1681
1669
  task: z.ZodObject<{
1682
1670
  id: z.ZodString;
1683
1671
  filePath: z.ZodString;
@@ -1723,24 +1711,34 @@ declare const CoordinatorToPlatformMessages: {
1723
1711
  createdAt: z.ZodDate;
1724
1712
  idempotencyKey: z.ZodOptional<z.ZodString>;
1725
1713
  }, "strip", z.ZodTypeAny, {
1714
+ id: string;
1726
1715
  payload: string;
1727
1716
  payloadType: string;
1728
- id: string;
1729
1717
  tags: string[];
1730
1718
  isTest: boolean;
1731
1719
  createdAt: Date;
1732
1720
  context?: any;
1733
1721
  idempotencyKey?: string | undefined;
1734
1722
  }, {
1723
+ id: string;
1735
1724
  payload: string;
1736
1725
  payloadType: string;
1737
- id: string;
1738
1726
  tags: string[];
1739
1727
  createdAt: Date;
1740
1728
  context?: any;
1741
1729
  isTest?: boolean | undefined;
1742
1730
  idempotencyKey?: string | undefined;
1743
1731
  }>;
1732
+ queue: z.ZodObject<{
1733
+ id: z.ZodString;
1734
+ name: z.ZodString;
1735
+ }, "strip", z.ZodTypeAny, {
1736
+ name: string;
1737
+ id: string;
1738
+ }, {
1739
+ name: string;
1740
+ id: string;
1741
+ }>;
1744
1742
  environment: z.ZodObject<{
1745
1743
  id: z.ZodString;
1746
1744
  slug: z.ZodString;
@@ -1804,10 +1802,6 @@ declare const CoordinatorToPlatformMessages: {
1804
1802
  contentHash: string;
1805
1803
  }>;
1806
1804
  }, "strip", z.ZodTypeAny, {
1807
- queue: {
1808
- name: string;
1809
- id: string;
1810
- };
1811
1805
  task: {
1812
1806
  id: string;
1813
1807
  filePath: string;
@@ -1822,15 +1816,19 @@ declare const CoordinatorToPlatformMessages: {
1822
1816
  backgroundWorkerTaskId: string;
1823
1817
  };
1824
1818
  run: {
1819
+ id: string;
1825
1820
  payload: string;
1826
1821
  payloadType: string;
1827
- id: string;
1828
1822
  tags: string[];
1829
1823
  isTest: boolean;
1830
1824
  createdAt: Date;
1831
1825
  context?: any;
1832
1826
  idempotencyKey?: string | undefined;
1833
1827
  };
1828
+ queue: {
1829
+ name: string;
1830
+ id: string;
1831
+ };
1834
1832
  environment: {
1835
1833
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1836
1834
  id: string;
@@ -1856,10 +1854,6 @@ declare const CoordinatorToPlatformMessages: {
1856
1854
  id: string;
1857
1855
  } | undefined;
1858
1856
  }, {
1859
- queue: {
1860
- name: string;
1861
- id: string;
1862
- };
1863
1857
  task: {
1864
1858
  id: string;
1865
1859
  filePath: string;
@@ -1874,15 +1868,19 @@ declare const CoordinatorToPlatformMessages: {
1874
1868
  backgroundWorkerTaskId: string;
1875
1869
  };
1876
1870
  run: {
1871
+ id: string;
1877
1872
  payload: string;
1878
1873
  payloadType: string;
1879
- id: string;
1880
1874
  tags: string[];
1881
1875
  createdAt: Date;
1882
1876
  context?: any;
1883
1877
  isTest?: boolean | undefined;
1884
1878
  idempotencyKey?: string | undefined;
1885
1879
  };
1880
+ queue: {
1881
+ name: string;
1882
+ id: string;
1883
+ };
1886
1884
  environment: {
1887
1885
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1888
1886
  id: string;
@@ -1932,14 +1930,14 @@ declare const CoordinatorToPlatformMessages: {
1932
1930
  message: z.ZodString;
1933
1931
  stackTrace: z.ZodString;
1934
1932
  }, "strip", z.ZodTypeAny, {
1935
- name: string;
1936
1933
  type: "BUILT_IN_ERROR";
1937
1934
  message: string;
1935
+ name: string;
1938
1936
  stackTrace: string;
1939
1937
  }, {
1940
- name: string;
1941
1938
  type: "BUILT_IN_ERROR";
1942
1939
  message: string;
1940
+ name: string;
1943
1941
  stackTrace: string;
1944
1942
  }>, z.ZodObject<{
1945
1943
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -1964,12 +1962,12 @@ declare const CoordinatorToPlatformMessages: {
1964
1962
  code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT"]>;
1965
1963
  message: z.ZodOptional<z.ZodString>;
1966
1964
  }, "strip", z.ZodTypeAny, {
1967
- type: "INTERNAL_ERROR";
1968
1965
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
1966
+ type: "INTERNAL_ERROR";
1969
1967
  message?: string | undefined;
1970
1968
  }, {
1971
- type: "INTERNAL_ERROR";
1972
1969
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
1970
+ type: "INTERNAL_ERROR";
1973
1971
  message?: string | undefined;
1974
1972
  }>]>;
1975
1973
  retry: z.ZodOptional<z.ZodObject<{
@@ -1988,9 +1986,9 @@ declare const CoordinatorToPlatformMessages: {
1988
1986
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1989
1987
  }, "strip", z.ZodTypeAny, {
1990
1988
  error: {
1991
- name: string;
1992
1989
  type: "BUILT_IN_ERROR";
1993
1990
  message: string;
1991
+ name: string;
1994
1992
  stackTrace: string;
1995
1993
  } | {
1996
1994
  type: "CUSTOM_ERROR";
@@ -1999,8 +1997,8 @@ declare const CoordinatorToPlatformMessages: {
1999
1997
  type: "STRING_ERROR";
2000
1998
  raw: string;
2001
1999
  } | {
2002
- type: "INTERNAL_ERROR";
2003
2000
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2001
+ type: "INTERNAL_ERROR";
2004
2002
  message?: string | undefined;
2005
2003
  };
2006
2004
  id: string;
@@ -2013,9 +2011,9 @@ declare const CoordinatorToPlatformMessages: {
2013
2011
  skippedRetrying?: boolean | undefined;
2014
2012
  }, {
2015
2013
  error: {
2016
- name: string;
2017
2014
  type: "BUILT_IN_ERROR";
2018
2015
  message: string;
2016
+ name: string;
2019
2017
  stackTrace: string;
2020
2018
  } | {
2021
2019
  type: "CUSTOM_ERROR";
@@ -2024,8 +2022,8 @@ declare const CoordinatorToPlatformMessages: {
2024
2022
  type: "STRING_ERROR";
2025
2023
  raw: string;
2026
2024
  } | {
2027
- type: "INTERNAL_ERROR";
2028
2025
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2026
+ type: "INTERNAL_ERROR";
2029
2027
  message?: string | undefined;
2030
2028
  };
2031
2029
  id: string;
@@ -2050,10 +2048,6 @@ declare const CoordinatorToPlatformMessages: {
2050
2048
  }, "strip", z.ZodTypeAny, {
2051
2049
  version: "v1";
2052
2050
  execution: {
2053
- queue: {
2054
- name: string;
2055
- id: string;
2056
- };
2057
2051
  task: {
2058
2052
  id: string;
2059
2053
  filePath: string;
@@ -2068,15 +2062,19 @@ declare const CoordinatorToPlatformMessages: {
2068
2062
  backgroundWorkerTaskId: string;
2069
2063
  };
2070
2064
  run: {
2065
+ id: string;
2071
2066
  payload: string;
2072
2067
  payloadType: string;
2073
- id: string;
2074
2068
  tags: string[];
2075
2069
  isTest: boolean;
2076
2070
  createdAt: Date;
2077
2071
  context?: any;
2078
2072
  idempotencyKey?: string | undefined;
2079
2073
  };
2074
+ queue: {
2075
+ name: string;
2076
+ id: string;
2077
+ };
2080
2078
  environment: {
2081
2079
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2082
2080
  id: string;
@@ -2104,9 +2102,9 @@ declare const CoordinatorToPlatformMessages: {
2104
2102
  };
2105
2103
  completion: {
2106
2104
  error: {
2107
- name: string;
2108
2105
  type: "BUILT_IN_ERROR";
2109
2106
  message: string;
2107
+ name: string;
2110
2108
  stackTrace: string;
2111
2109
  } | {
2112
2110
  type: "CUSTOM_ERROR";
@@ -2115,8 +2113,8 @@ declare const CoordinatorToPlatformMessages: {
2115
2113
  type: "STRING_ERROR";
2116
2114
  raw: string;
2117
2115
  } | {
2118
- type: "INTERNAL_ERROR";
2119
2116
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2117
+ type: "INTERNAL_ERROR";
2120
2118
  message?: string | undefined;
2121
2119
  };
2122
2120
  id: string;
@@ -2139,10 +2137,6 @@ declare const CoordinatorToPlatformMessages: {
2139
2137
  } | undefined;
2140
2138
  }, {
2141
2139
  execution: {
2142
- queue: {
2143
- name: string;
2144
- id: string;
2145
- };
2146
2140
  task: {
2147
2141
  id: string;
2148
2142
  filePath: string;
@@ -2157,15 +2151,19 @@ declare const CoordinatorToPlatformMessages: {
2157
2151
  backgroundWorkerTaskId: string;
2158
2152
  };
2159
2153
  run: {
2154
+ id: string;
2160
2155
  payload: string;
2161
2156
  payloadType: string;
2162
- id: string;
2163
2157
  tags: string[];
2164
2158
  createdAt: Date;
2165
2159
  context?: any;
2166
2160
  isTest?: boolean | undefined;
2167
2161
  idempotencyKey?: string | undefined;
2168
2162
  };
2163
+ queue: {
2164
+ name: string;
2165
+ id: string;
2166
+ };
2169
2167
  environment: {
2170
2168
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2171
2169
  id: string;
@@ -2193,9 +2191,9 @@ declare const CoordinatorToPlatformMessages: {
2193
2191
  };
2194
2192
  completion: {
2195
2193
  error: {
2196
- name: string;
2197
2194
  type: "BUILT_IN_ERROR";
2198
2195
  message: string;
2196
+ name: string;
2199
2197
  stackTrace: string;
2200
2198
  } | {
2201
2199
  type: "CUSTOM_ERROR";
@@ -2204,8 +2202,8 @@ declare const CoordinatorToPlatformMessages: {
2204
2202
  type: "STRING_ERROR";
2205
2203
  raw: string;
2206
2204
  } | {
2207
- type: "INTERNAL_ERROR";
2208
2205
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2206
+ type: "INTERNAL_ERROR";
2209
2207
  message?: string | undefined;
2210
2208
  };
2211
2209
  id: string;
@@ -2341,26 +2339,26 @@ declare const CoordinatorToPlatformMessages: {
2341
2339
  message: z.ZodString;
2342
2340
  stack: z.ZodOptional<z.ZodString>;
2343
2341
  }, "strip", z.ZodTypeAny, {
2344
- name: string;
2345
2342
  message: string;
2343
+ name: string;
2346
2344
  stack?: string | undefined;
2347
2345
  }, {
2348
- name: string;
2349
2346
  message: string;
2347
+ name: string;
2350
2348
  stack?: string | undefined;
2351
2349
  }>;
2352
2350
  }, "strip", z.ZodTypeAny, {
2353
2351
  error: {
2354
- name: string;
2355
2352
  message: string;
2353
+ name: string;
2356
2354
  stack?: string | undefined;
2357
2355
  };
2358
2356
  version: "v1";
2359
2357
  deploymentId: string;
2360
2358
  }, {
2361
2359
  error: {
2362
- name: string;
2363
2360
  message: string;
2361
+ name: string;
2364
2362
  stack?: string | undefined;
2365
2363
  };
2366
2364
  deploymentId: string;
@@ -2399,14 +2397,14 @@ declare const PlatformToCoordinatorMessages: {
2399
2397
  message: z.ZodString;
2400
2398
  stackTrace: z.ZodString;
2401
2399
  }, "strip", z.ZodTypeAny, {
2402
- name: string;
2403
2400
  type: "BUILT_IN_ERROR";
2404
2401
  message: string;
2402
+ name: string;
2405
2403
  stackTrace: string;
2406
2404
  }, {
2407
- name: string;
2408
2405
  type: "BUILT_IN_ERROR";
2409
2406
  message: string;
2407
+ name: string;
2410
2408
  stackTrace: string;
2411
2409
  }>, z.ZodObject<{
2412
2410
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -2431,12 +2429,12 @@ declare const PlatformToCoordinatorMessages: {
2431
2429
  code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT"]>;
2432
2430
  message: z.ZodOptional<z.ZodString>;
2433
2431
  }, "strip", z.ZodTypeAny, {
2434
- type: "INTERNAL_ERROR";
2435
2432
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2433
+ type: "INTERNAL_ERROR";
2436
2434
  message?: string | undefined;
2437
2435
  }, {
2438
- type: "INTERNAL_ERROR";
2439
2436
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2437
+ type: "INTERNAL_ERROR";
2440
2438
  message?: string | undefined;
2441
2439
  }>]>;
2442
2440
  retry: z.ZodOptional<z.ZodObject<{
@@ -2455,9 +2453,9 @@ declare const PlatformToCoordinatorMessages: {
2455
2453
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
2456
2454
  }, "strip", z.ZodTypeAny, {
2457
2455
  error: {
2458
- name: string;
2459
2456
  type: "BUILT_IN_ERROR";
2460
2457
  message: string;
2458
+ name: string;
2461
2459
  stackTrace: string;
2462
2460
  } | {
2463
2461
  type: "CUSTOM_ERROR";
@@ -2466,8 +2464,8 @@ declare const PlatformToCoordinatorMessages: {
2466
2464
  type: "STRING_ERROR";
2467
2465
  raw: string;
2468
2466
  } | {
2469
- type: "INTERNAL_ERROR";
2470
2467
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2468
+ type: "INTERNAL_ERROR";
2471
2469
  message?: string | undefined;
2472
2470
  };
2473
2471
  id: string;
@@ -2480,9 +2478,9 @@ declare const PlatformToCoordinatorMessages: {
2480
2478
  skippedRetrying?: boolean | undefined;
2481
2479
  }, {
2482
2480
  error: {
2483
- name: string;
2484
2481
  type: "BUILT_IN_ERROR";
2485
2482
  message: string;
2483
+ name: string;
2486
2484
  stackTrace: string;
2487
2485
  } | {
2488
2486
  type: "CUSTOM_ERROR";
@@ -2491,8 +2489,8 @@ declare const PlatformToCoordinatorMessages: {
2491
2489
  type: "STRING_ERROR";
2492
2490
  raw: string;
2493
2491
  } | {
2494
- type: "INTERNAL_ERROR";
2495
2492
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2493
+ type: "INTERNAL_ERROR";
2496
2494
  message?: string | undefined;
2497
2495
  };
2498
2496
  id: string;
@@ -2550,18 +2548,18 @@ declare const PlatformToCoordinatorMessages: {
2550
2548
  createdAt: z.ZodDate;
2551
2549
  idempotencyKey: z.ZodOptional<z.ZodString>;
2552
2550
  }, "strip", z.ZodTypeAny, {
2551
+ id: string;
2553
2552
  payload: string;
2554
2553
  payloadType: string;
2555
- id: string;
2556
2554
  tags: string[];
2557
2555
  isTest: boolean;
2558
2556
  createdAt: Date;
2559
2557
  context?: any;
2560
2558
  idempotencyKey?: string | undefined;
2561
2559
  }, {
2560
+ id: string;
2562
2561
  payload: string;
2563
2562
  payloadType: string;
2564
- id: string;
2565
2563
  tags: string[];
2566
2564
  createdAt: Date;
2567
2565
  context?: any;
@@ -2628,10 +2626,6 @@ declare const PlatformToCoordinatorMessages: {
2628
2626
  id: string;
2629
2627
  }>>;
2630
2628
  }, "strip", z.ZodTypeAny, {
2631
- queue: {
2632
- name: string;
2633
- id: string;
2634
- };
2635
2629
  task: {
2636
2630
  id: string;
2637
2631
  filePath: string;
@@ -2646,15 +2640,19 @@ declare const PlatformToCoordinatorMessages: {
2646
2640
  backgroundWorkerTaskId: string;
2647
2641
  };
2648
2642
  run: {
2643
+ id: string;
2649
2644
  payload: string;
2650
2645
  payloadType: string;
2651
- id: string;
2652
2646
  tags: string[];
2653
2647
  isTest: boolean;
2654
2648
  createdAt: Date;
2655
2649
  context?: any;
2656
2650
  idempotencyKey?: string | undefined;
2657
2651
  };
2652
+ queue: {
2653
+ name: string;
2654
+ id: string;
2655
+ };
2658
2656
  environment: {
2659
2657
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2660
2658
  id: string;
@@ -2675,10 +2673,6 @@ declare const PlatformToCoordinatorMessages: {
2675
2673
  id: string;
2676
2674
  } | undefined;
2677
2675
  }, {
2678
- queue: {
2679
- name: string;
2680
- id: string;
2681
- };
2682
2676
  task: {
2683
2677
  id: string;
2684
2678
  filePath: string;
@@ -2693,15 +2687,19 @@ declare const PlatformToCoordinatorMessages: {
2693
2687
  backgroundWorkerTaskId: string;
2694
2688
  };
2695
2689
  run: {
2690
+ id: string;
2696
2691
  payload: string;
2697
2692
  payloadType: string;
2698
- id: string;
2699
2693
  tags: string[];
2700
2694
  createdAt: Date;
2701
2695
  context?: any;
2702
2696
  isTest?: boolean | undefined;
2703
2697
  idempotencyKey?: string | undefined;
2704
2698
  };
2699
+ queue: {
2700
+ name: string;
2701
+ id: string;
2702
+ };
2705
2703
  environment: {
2706
2704
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2707
2705
  id: string;
@@ -2729,9 +2727,9 @@ declare const PlatformToCoordinatorMessages: {
2729
2727
  attemptId: string;
2730
2728
  completions: ({
2731
2729
  error: {
2732
- name: string;
2733
2730
  type: "BUILT_IN_ERROR";
2734
2731
  message: string;
2732
+ name: string;
2735
2733
  stackTrace: string;
2736
2734
  } | {
2737
2735
  type: "CUSTOM_ERROR";
@@ -2740,8 +2738,8 @@ declare const PlatformToCoordinatorMessages: {
2740
2738
  type: "STRING_ERROR";
2741
2739
  raw: string;
2742
2740
  } | {
2743
- type: "INTERNAL_ERROR";
2744
2741
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2742
+ type: "INTERNAL_ERROR";
2745
2743
  message?: string | undefined;
2746
2744
  };
2747
2745
  id: string;
@@ -2759,10 +2757,6 @@ declare const PlatformToCoordinatorMessages: {
2759
2757
  output?: string | undefined;
2760
2758
  })[];
2761
2759
  executions: {
2762
- queue: {
2763
- name: string;
2764
- id: string;
2765
- };
2766
2760
  task: {
2767
2761
  id: string;
2768
2762
  filePath: string;
@@ -2777,17 +2771,21 @@ declare const PlatformToCoordinatorMessages: {
2777
2771
  backgroundWorkerTaskId: string;
2778
2772
  };
2779
2773
  run: {
2774
+ id: string;
2780
2775
  payload: string;
2781
2776
  payloadType: string;
2782
- id: string;
2783
2777
  tags: string[];
2784
2778
  isTest: boolean;
2785
2779
  createdAt: Date;
2786
2780
  context?: any;
2787
2781
  idempotencyKey?: string | undefined;
2788
2782
  };
2789
- environment: {
2790
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2783
+ queue: {
2784
+ name: string;
2785
+ id: string;
2786
+ };
2787
+ environment: {
2788
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2791
2789
  id: string;
2792
2790
  slug: string;
2793
2791
  };
@@ -2812,9 +2810,9 @@ declare const PlatformToCoordinatorMessages: {
2812
2810
  attemptId: string;
2813
2811
  completions: ({
2814
2812
  error: {
2815
- name: string;
2816
2813
  type: "BUILT_IN_ERROR";
2817
2814
  message: string;
2815
+ name: string;
2818
2816
  stackTrace: string;
2819
2817
  } | {
2820
2818
  type: "CUSTOM_ERROR";
@@ -2823,8 +2821,8 @@ declare const PlatformToCoordinatorMessages: {
2823
2821
  type: "STRING_ERROR";
2824
2822
  raw: string;
2825
2823
  } | {
2826
- type: "INTERNAL_ERROR";
2827
2824
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
2825
+ type: "INTERNAL_ERROR";
2828
2826
  message?: string | undefined;
2829
2827
  };
2830
2828
  id: string;
@@ -2842,10 +2840,6 @@ declare const PlatformToCoordinatorMessages: {
2842
2840
  output?: string | undefined;
2843
2841
  })[];
2844
2842
  executions: {
2845
- queue: {
2846
- name: string;
2847
- id: string;
2848
- };
2849
2843
  task: {
2850
2844
  id: string;
2851
2845
  filePath: string;
@@ -2860,15 +2854,19 @@ declare const PlatformToCoordinatorMessages: {
2860
2854
  backgroundWorkerTaskId: string;
2861
2855
  };
2862
2856
  run: {
2857
+ id: string;
2863
2858
  payload: string;
2864
2859
  payloadType: string;
2865
- id: string;
2866
2860
  tags: string[];
2867
2861
  createdAt: Date;
2868
2862
  context?: any;
2869
2863
  isTest?: boolean | undefined;
2870
2864
  idempotencyKey?: string | undefined;
2871
2865
  };
2866
+ queue: {
2867
+ name: string;
2868
+ id: string;
2869
+ };
2872
2870
  environment: {
2873
2871
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2874
2872
  id: string;
@@ -2991,14 +2989,14 @@ declare const ClientToSharedQueueMessages: {
2991
2989
  message: z.ZodString;
2992
2990
  stackTrace: z.ZodString;
2993
2991
  }, "strip", z.ZodTypeAny, {
2994
- name: string;
2995
2992
  type: "BUILT_IN_ERROR";
2996
2993
  message: string;
2994
+ name: string;
2997
2995
  stackTrace: string;
2998
2996
  }, {
2999
- name: string;
3000
2997
  type: "BUILT_IN_ERROR";
3001
2998
  message: string;
2999
+ name: string;
3002
3000
  stackTrace: string;
3003
3001
  }>, z.ZodObject<{
3004
3002
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -3023,12 +3021,12 @@ declare const ClientToSharedQueueMessages: {
3023
3021
  code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT"]>;
3024
3022
  message: z.ZodOptional<z.ZodString>;
3025
3023
  }, "strip", z.ZodTypeAny, {
3026
- type: "INTERNAL_ERROR";
3027
3024
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3025
+ type: "INTERNAL_ERROR";
3028
3026
  message?: string | undefined;
3029
3027
  }, {
3030
- type: "INTERNAL_ERROR";
3031
3028
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3029
+ type: "INTERNAL_ERROR";
3032
3030
  message?: string | undefined;
3033
3031
  }>]>;
3034
3032
  retry: z.ZodOptional<z.ZodObject<{
@@ -3047,9 +3045,9 @@ declare const ClientToSharedQueueMessages: {
3047
3045
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
3048
3046
  }, "strip", z.ZodTypeAny, {
3049
3047
  error: {
3050
- name: string;
3051
3048
  type: "BUILT_IN_ERROR";
3052
3049
  message: string;
3050
+ name: string;
3053
3051
  stackTrace: string;
3054
3052
  } | {
3055
3053
  type: "CUSTOM_ERROR";
@@ -3058,8 +3056,8 @@ declare const ClientToSharedQueueMessages: {
3058
3056
  type: "STRING_ERROR";
3059
3057
  raw: string;
3060
3058
  } | {
3061
- type: "INTERNAL_ERROR";
3062
3059
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3060
+ type: "INTERNAL_ERROR";
3063
3061
  message?: string | undefined;
3064
3062
  };
3065
3063
  id: string;
@@ -3072,9 +3070,9 @@ declare const ClientToSharedQueueMessages: {
3072
3070
  skippedRetrying?: boolean | undefined;
3073
3071
  }, {
3074
3072
  error: {
3075
- name: string;
3076
3073
  type: "BUILT_IN_ERROR";
3077
3074
  message: string;
3075
+ name: string;
3078
3076
  stackTrace: string;
3079
3077
  } | {
3080
3078
  type: "CUSTOM_ERROR";
@@ -3083,8 +3081,8 @@ declare const ClientToSharedQueueMessages: {
3083
3081
  type: "STRING_ERROR";
3084
3082
  raw: string;
3085
3083
  } | {
3086
- type: "INTERNAL_ERROR";
3087
3084
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3085
+ type: "INTERNAL_ERROR";
3088
3086
  message?: string | undefined;
3089
3087
  };
3090
3088
  id: string;
@@ -3142,18 +3140,18 @@ declare const ClientToSharedQueueMessages: {
3142
3140
  createdAt: z.ZodDate;
3143
3141
  idempotencyKey: z.ZodOptional<z.ZodString>;
3144
3142
  }, "strip", z.ZodTypeAny, {
3143
+ id: string;
3145
3144
  payload: string;
3146
3145
  payloadType: string;
3147
- id: string;
3148
3146
  tags: string[];
3149
3147
  isTest: boolean;
3150
3148
  createdAt: Date;
3151
3149
  context?: any;
3152
3150
  idempotencyKey?: string | undefined;
3153
3151
  }, {
3152
+ id: string;
3154
3153
  payload: string;
3155
3154
  payloadType: string;
3156
- id: string;
3157
3155
  tags: string[];
3158
3156
  createdAt: Date;
3159
3157
  context?: any;
@@ -3220,10 +3218,6 @@ declare const ClientToSharedQueueMessages: {
3220
3218
  id: string;
3221
3219
  }>>;
3222
3220
  }, "strip", z.ZodTypeAny, {
3223
- queue: {
3224
- name: string;
3225
- id: string;
3226
- };
3227
3221
  task: {
3228
3222
  id: string;
3229
3223
  filePath: string;
@@ -3238,15 +3232,19 @@ declare const ClientToSharedQueueMessages: {
3238
3232
  backgroundWorkerTaskId: string;
3239
3233
  };
3240
3234
  run: {
3235
+ id: string;
3241
3236
  payload: string;
3242
3237
  payloadType: string;
3243
- id: string;
3244
3238
  tags: string[];
3245
3239
  isTest: boolean;
3246
3240
  createdAt: Date;
3247
3241
  context?: any;
3248
3242
  idempotencyKey?: string | undefined;
3249
3243
  };
3244
+ queue: {
3245
+ name: string;
3246
+ id: string;
3247
+ };
3250
3248
  environment: {
3251
3249
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3252
3250
  id: string;
@@ -3267,10 +3265,6 @@ declare const ClientToSharedQueueMessages: {
3267
3265
  id: string;
3268
3266
  } | undefined;
3269
3267
  }, {
3270
- queue: {
3271
- name: string;
3272
- id: string;
3273
- };
3274
3268
  task: {
3275
3269
  id: string;
3276
3270
  filePath: string;
@@ -3285,15 +3279,19 @@ declare const ClientToSharedQueueMessages: {
3285
3279
  backgroundWorkerTaskId: string;
3286
3280
  };
3287
3281
  run: {
3282
+ id: string;
3288
3283
  payload: string;
3289
3284
  payloadType: string;
3290
- id: string;
3291
3285
  tags: string[];
3292
3286
  createdAt: Date;
3293
3287
  context?: any;
3294
3288
  isTest?: boolean | undefined;
3295
3289
  idempotencyKey?: string | undefined;
3296
3290
  };
3291
+ queue: {
3292
+ name: string;
3293
+ id: string;
3294
+ };
3297
3295
  environment: {
3298
3296
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3299
3297
  id: string;
@@ -3318,10 +3316,6 @@ declare const ClientToSharedQueueMessages: {
3318
3316
  type: "TASK_RUN_COMPLETED";
3319
3317
  version: "v1";
3320
3318
  execution: {
3321
- queue: {
3322
- name: string;
3323
- id: string;
3324
- };
3325
3319
  task: {
3326
3320
  id: string;
3327
3321
  filePath: string;
@@ -3336,15 +3330,19 @@ declare const ClientToSharedQueueMessages: {
3336
3330
  backgroundWorkerTaskId: string;
3337
3331
  };
3338
3332
  run: {
3333
+ id: string;
3339
3334
  payload: string;
3340
3335
  payloadType: string;
3341
- id: string;
3342
3336
  tags: string[];
3343
3337
  isTest: boolean;
3344
3338
  createdAt: Date;
3345
3339
  context?: any;
3346
3340
  idempotencyKey?: string | undefined;
3347
3341
  };
3342
+ queue: {
3343
+ name: string;
3344
+ id: string;
3345
+ };
3348
3346
  environment: {
3349
3347
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3350
3348
  id: string;
@@ -3367,9 +3365,9 @@ declare const ClientToSharedQueueMessages: {
3367
3365
  };
3368
3366
  completion: {
3369
3367
  error: {
3370
- name: string;
3371
3368
  type: "BUILT_IN_ERROR";
3372
3369
  message: string;
3370
+ name: string;
3373
3371
  stackTrace: string;
3374
3372
  } | {
3375
3373
  type: "CUSTOM_ERROR";
@@ -3378,8 +3376,8 @@ declare const ClientToSharedQueueMessages: {
3378
3376
  type: "STRING_ERROR";
3379
3377
  raw: string;
3380
3378
  } | {
3381
- type: "INTERNAL_ERROR";
3382
3379
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3380
+ type: "INTERNAL_ERROR";
3383
3381
  message?: string | undefined;
3384
3382
  };
3385
3383
  id: string;
@@ -3399,10 +3397,6 @@ declare const ClientToSharedQueueMessages: {
3399
3397
  }, {
3400
3398
  type: "TASK_RUN_COMPLETED";
3401
3399
  execution: {
3402
- queue: {
3403
- name: string;
3404
- id: string;
3405
- };
3406
3400
  task: {
3407
3401
  id: string;
3408
3402
  filePath: string;
@@ -3417,15 +3411,19 @@ declare const ClientToSharedQueueMessages: {
3417
3411
  backgroundWorkerTaskId: string;
3418
3412
  };
3419
3413
  run: {
3414
+ id: string;
3420
3415
  payload: string;
3421
3416
  payloadType: string;
3422
- id: string;
3423
3417
  tags: string[];
3424
3418
  createdAt: Date;
3425
3419
  context?: any;
3426
3420
  isTest?: boolean | undefined;
3427
3421
  idempotencyKey?: string | undefined;
3428
3422
  };
3423
+ queue: {
3424
+ name: string;
3425
+ id: string;
3426
+ };
3429
3427
  environment: {
3430
3428
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3431
3429
  id: string;
@@ -3448,9 +3446,9 @@ declare const ClientToSharedQueueMessages: {
3448
3446
  };
3449
3447
  completion: {
3450
3448
  error: {
3451
- name: string;
3452
3449
  type: "BUILT_IN_ERROR";
3453
3450
  message: string;
3451
+ name: string;
3454
3452
  stackTrace: string;
3455
3453
  } | {
3456
3454
  type: "CUSTOM_ERROR";
@@ -3459,8 +3457,8 @@ declare const ClientToSharedQueueMessages: {
3459
3457
  type: "STRING_ERROR";
3460
3458
  raw: string;
3461
3459
  } | {
3462
- type: "INTERNAL_ERROR";
3463
3460
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3461
+ type: "INTERNAL_ERROR";
3464
3462
  message?: string | undefined;
3465
3463
  };
3466
3464
  id: string;
@@ -3496,10 +3494,6 @@ declare const ClientToSharedQueueMessages: {
3496
3494
  type: "TASK_RUN_COMPLETED";
3497
3495
  version: "v1";
3498
3496
  execution: {
3499
- queue: {
3500
- name: string;
3501
- id: string;
3502
- };
3503
3497
  task: {
3504
3498
  id: string;
3505
3499
  filePath: string;
@@ -3514,15 +3508,19 @@ declare const ClientToSharedQueueMessages: {
3514
3508
  backgroundWorkerTaskId: string;
3515
3509
  };
3516
3510
  run: {
3511
+ id: string;
3517
3512
  payload: string;
3518
3513
  payloadType: string;
3519
- id: string;
3520
3514
  tags: string[];
3521
3515
  isTest: boolean;
3522
3516
  createdAt: Date;
3523
3517
  context?: any;
3524
3518
  idempotencyKey?: string | undefined;
3525
3519
  };
3520
+ queue: {
3521
+ name: string;
3522
+ id: string;
3523
+ };
3526
3524
  environment: {
3527
3525
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3528
3526
  id: string;
@@ -3545,9 +3543,9 @@ declare const ClientToSharedQueueMessages: {
3545
3543
  };
3546
3544
  completion: {
3547
3545
  error: {
3548
- name: string;
3549
3546
  type: "BUILT_IN_ERROR";
3550
3547
  message: string;
3548
+ name: string;
3551
3549
  stackTrace: string;
3552
3550
  } | {
3553
3551
  type: "CUSTOM_ERROR";
@@ -3556,8 +3554,8 @@ declare const ClientToSharedQueueMessages: {
3556
3554
  type: "STRING_ERROR";
3557
3555
  raw: string;
3558
3556
  } | {
3559
- type: "INTERNAL_ERROR";
3560
3557
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3558
+ type: "INTERNAL_ERROR";
3561
3559
  message?: string | undefined;
3562
3560
  };
3563
3561
  id: string;
@@ -3585,10 +3583,6 @@ declare const ClientToSharedQueueMessages: {
3585
3583
  data: {
3586
3584
  type: "TASK_RUN_COMPLETED";
3587
3585
  execution: {
3588
- queue: {
3589
- name: string;
3590
- id: string;
3591
- };
3592
3586
  task: {
3593
3587
  id: string;
3594
3588
  filePath: string;
@@ -3603,15 +3597,19 @@ declare const ClientToSharedQueueMessages: {
3603
3597
  backgroundWorkerTaskId: string;
3604
3598
  };
3605
3599
  run: {
3600
+ id: string;
3606
3601
  payload: string;
3607
3602
  payloadType: string;
3608
- id: string;
3609
3603
  tags: string[];
3610
3604
  createdAt: Date;
3611
3605
  context?: any;
3612
3606
  isTest?: boolean | undefined;
3613
3607
  idempotencyKey?: string | undefined;
3614
3608
  };
3609
+ queue: {
3610
+ name: string;
3611
+ id: string;
3612
+ };
3615
3613
  environment: {
3616
3614
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3617
3615
  id: string;
@@ -3634,9 +3632,9 @@ declare const ClientToSharedQueueMessages: {
3634
3632
  };
3635
3633
  completion: {
3636
3634
  error: {
3637
- name: string;
3638
3635
  type: "BUILT_IN_ERROR";
3639
3636
  message: string;
3637
+ name: string;
3640
3638
  stackTrace: string;
3641
3639
  } | {
3642
3640
  type: "CUSTOM_ERROR";
@@ -3645,8 +3643,8 @@ declare const ClientToSharedQueueMessages: {
3645
3643
  type: "STRING_ERROR";
3646
3644
  raw: string;
3647
3645
  } | {
3648
- type: "INTERNAL_ERROR";
3649
3646
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
3647
+ type: "INTERNAL_ERROR";
3650
3648
  message?: string | undefined;
3651
3649
  };
3652
3650
  id: string;
@@ -3740,18 +3738,18 @@ declare const SharedQueueToClientMessages: {
3740
3738
  createdAt: z.ZodDate;
3741
3739
  idempotencyKey: z.ZodOptional<z.ZodString>;
3742
3740
  }, "strip", z.ZodTypeAny, {
3741
+ id: string;
3743
3742
  payload: string;
3744
3743
  payloadType: string;
3745
- id: string;
3746
3744
  tags: string[];
3747
3745
  isTest: boolean;
3748
3746
  createdAt: Date;
3749
3747
  context?: any;
3750
3748
  idempotencyKey?: string | undefined;
3751
3749
  }, {
3750
+ id: string;
3752
3751
  payload: string;
3753
3752
  payloadType: string;
3754
- id: string;
3755
3753
  tags: string[];
3756
3754
  createdAt: Date;
3757
3755
  context?: any;
@@ -3818,10 +3816,6 @@ declare const SharedQueueToClientMessages: {
3818
3816
  id: string;
3819
3817
  }>>;
3820
3818
  }, "strip", z.ZodTypeAny, {
3821
- queue: {
3822
- name: string;
3823
- id: string;
3824
- };
3825
3819
  task: {
3826
3820
  id: string;
3827
3821
  filePath: string;
@@ -3836,15 +3830,19 @@ declare const SharedQueueToClientMessages: {
3836
3830
  backgroundWorkerTaskId: string;
3837
3831
  };
3838
3832
  run: {
3833
+ id: string;
3839
3834
  payload: string;
3840
3835
  payloadType: string;
3841
- id: string;
3842
3836
  tags: string[];
3843
3837
  isTest: boolean;
3844
3838
  createdAt: Date;
3845
3839
  context?: any;
3846
3840
  idempotencyKey?: string | undefined;
3847
3841
  };
3842
+ queue: {
3843
+ name: string;
3844
+ id: string;
3845
+ };
3848
3846
  environment: {
3849
3847
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3850
3848
  id: string;
@@ -3865,10 +3863,6 @@ declare const SharedQueueToClientMessages: {
3865
3863
  id: string;
3866
3864
  } | undefined;
3867
3865
  }, {
3868
- queue: {
3869
- name: string;
3870
- id: string;
3871
- };
3872
3866
  task: {
3873
3867
  id: string;
3874
3868
  filePath: string;
@@ -3883,15 +3877,19 @@ declare const SharedQueueToClientMessages: {
3883
3877
  backgroundWorkerTaskId: string;
3884
3878
  };
3885
3879
  run: {
3880
+ id: string;
3886
3881
  payload: string;
3887
3882
  payloadType: string;
3888
- id: string;
3889
3883
  tags: string[];
3890
3884
  createdAt: Date;
3891
3885
  context?: any;
3892
3886
  isTest?: boolean | undefined;
3893
3887
  idempotencyKey?: string | undefined;
3894
3888
  };
3889
+ queue: {
3890
+ name: string;
3891
+ id: string;
3892
+ };
3895
3893
  environment: {
3896
3894
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3897
3895
  id: string;
@@ -3916,10 +3914,6 @@ declare const SharedQueueToClientMessages: {
3916
3914
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3917
3915
  }, "strip", z.ZodTypeAny, {
3918
3916
  execution: {
3919
- queue: {
3920
- name: string;
3921
- id: string;
3922
- };
3923
3917
  task: {
3924
3918
  id: string;
3925
3919
  filePath: string;
@@ -3934,15 +3928,19 @@ declare const SharedQueueToClientMessages: {
3934
3928
  backgroundWorkerTaskId: string;
3935
3929
  };
3936
3930
  run: {
3931
+ id: string;
3937
3932
  payload: string;
3938
3933
  payloadType: string;
3939
- id: string;
3940
3934
  tags: string[];
3941
3935
  isTest: boolean;
3942
3936
  createdAt: Date;
3943
3937
  context?: any;
3944
3938
  idempotencyKey?: string | undefined;
3945
3939
  };
3940
+ queue: {
3941
+ name: string;
3942
+ id: string;
3943
+ };
3946
3944
  environment: {
3947
3945
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3948
3946
  id: string;
@@ -3967,10 +3965,6 @@ declare const SharedQueueToClientMessages: {
3967
3965
  environment?: Record<string, string> | undefined;
3968
3966
  }, {
3969
3967
  execution: {
3970
- queue: {
3971
- name: string;
3972
- id: string;
3973
- };
3974
3968
  task: {
3975
3969
  id: string;
3976
3970
  filePath: string;
@@ -3985,15 +3979,19 @@ declare const SharedQueueToClientMessages: {
3985
3979
  backgroundWorkerTaskId: string;
3986
3980
  };
3987
3981
  run: {
3982
+ id: string;
3988
3983
  payload: string;
3989
3984
  payloadType: string;
3990
- id: string;
3991
3985
  tags: string[];
3992
3986
  createdAt: Date;
3993
3987
  context?: any;
3994
3988
  isTest?: boolean | undefined;
3995
3989
  idempotencyKey?: string | undefined;
3996
3990
  };
3991
+ queue: {
3992
+ name: string;
3993
+ id: string;
3994
+ };
3997
3995
  environment: {
3998
3996
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3999
3997
  id: string;
@@ -4021,10 +4019,6 @@ declare const SharedQueueToClientMessages: {
4021
4019
  type: "EXECUTE_RUNS";
4022
4020
  payloads: {
4023
4021
  execution: {
4024
- queue: {
4025
- name: string;
4026
- id: string;
4027
- };
4028
4022
  task: {
4029
4023
  id: string;
4030
4024
  filePath: string;
@@ -4039,15 +4033,19 @@ declare const SharedQueueToClientMessages: {
4039
4033
  backgroundWorkerTaskId: string;
4040
4034
  };
4041
4035
  run: {
4036
+ id: string;
4042
4037
  payload: string;
4043
4038
  payloadType: string;
4044
- id: string;
4045
4039
  tags: string[];
4046
4040
  isTest: boolean;
4047
4041
  createdAt: Date;
4048
4042
  context?: any;
4049
4043
  idempotencyKey?: string | undefined;
4050
4044
  };
4045
+ queue: {
4046
+ name: string;
4047
+ id: string;
4048
+ };
4051
4049
  environment: {
4052
4050
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4053
4051
  id: string;
@@ -4075,10 +4073,6 @@ declare const SharedQueueToClientMessages: {
4075
4073
  type: "EXECUTE_RUNS";
4076
4074
  payloads: {
4077
4075
  execution: {
4078
- queue: {
4079
- name: string;
4080
- id: string;
4081
- };
4082
4076
  task: {
4083
4077
  id: string;
4084
4078
  filePath: string;
@@ -4093,15 +4087,19 @@ declare const SharedQueueToClientMessages: {
4093
4087
  backgroundWorkerTaskId: string;
4094
4088
  };
4095
4089
  run: {
4090
+ id: string;
4096
4091
  payload: string;
4097
4092
  payloadType: string;
4098
- id: string;
4099
4093
  tags: string[];
4100
4094
  createdAt: Date;
4101
4095
  context?: any;
4102
4096
  isTest?: boolean | undefined;
4103
4097
  idempotencyKey?: string | undefined;
4104
4098
  };
4099
+ queue: {
4100
+ name: string;
4101
+ id: string;
4102
+ };
4105
4103
  environment: {
4106
4104
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4107
4105
  id: string;
@@ -4164,12 +4162,12 @@ declare const SharedQueueToClientMessages: {
4164
4162
  type: "SCHEDULE_ATTEMPT";
4165
4163
  id: string;
4166
4164
  version: string;
4165
+ image: string;
4167
4166
  machine: {
4168
4167
  version: "v1";
4169
4168
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
4170
4169
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
4171
4170
  };
4172
- image: string;
4173
4171
  envId: string;
4174
4172
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4175
4173
  orgId: string;
@@ -4179,12 +4177,12 @@ declare const SharedQueueToClientMessages: {
4179
4177
  type: "SCHEDULE_ATTEMPT";
4180
4178
  id: string;
4181
4179
  version: string;
4180
+ image: string;
4182
4181
  machine: {
4183
4182
  version?: "v1" | undefined;
4184
4183
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
4185
4184
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
4186
4185
  };
4187
- image: string;
4188
4186
  envId: string;
4189
4187
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4190
4188
  orgId: string;
@@ -4196,10 +4194,6 @@ declare const SharedQueueToClientMessages: {
4196
4194
  type: "EXECUTE_RUNS";
4197
4195
  payloads: {
4198
4196
  execution: {
4199
- queue: {
4200
- name: string;
4201
- id: string;
4202
- };
4203
4197
  task: {
4204
4198
  id: string;
4205
4199
  filePath: string;
@@ -4214,15 +4208,19 @@ declare const SharedQueueToClientMessages: {
4214
4208
  backgroundWorkerTaskId: string;
4215
4209
  };
4216
4210
  run: {
4211
+ id: string;
4217
4212
  payload: string;
4218
4213
  payloadType: string;
4219
- id: string;
4220
4214
  tags: string[];
4221
4215
  isTest: boolean;
4222
4216
  createdAt: Date;
4223
4217
  context?: any;
4224
4218
  idempotencyKey?: string | undefined;
4225
4219
  };
4220
+ queue: {
4221
+ name: string;
4222
+ id: string;
4223
+ };
4226
4224
  environment: {
4227
4225
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4228
4226
  id: string;
@@ -4254,12 +4252,12 @@ declare const SharedQueueToClientMessages: {
4254
4252
  type: "SCHEDULE_ATTEMPT";
4255
4253
  id: string;
4256
4254
  version: string;
4255
+ image: string;
4257
4256
  machine: {
4258
4257
  version: "v1";
4259
4258
  cpu: 2 | 1 | 4 | 0.25 | 0.5;
4260
4259
  memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
4261
4260
  };
4262
- image: string;
4263
4261
  envId: string;
4264
4262
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4265
4263
  orgId: string;
@@ -4273,10 +4271,6 @@ declare const SharedQueueToClientMessages: {
4273
4271
  type: "EXECUTE_RUNS";
4274
4272
  payloads: {
4275
4273
  execution: {
4276
- queue: {
4277
- name: string;
4278
- id: string;
4279
- };
4280
4274
  task: {
4281
4275
  id: string;
4282
4276
  filePath: string;
@@ -4291,15 +4285,19 @@ declare const SharedQueueToClientMessages: {
4291
4285
  backgroundWorkerTaskId: string;
4292
4286
  };
4293
4287
  run: {
4288
+ id: string;
4294
4289
  payload: string;
4295
4290
  payloadType: string;
4296
- id: string;
4297
4291
  tags: string[];
4298
4292
  createdAt: Date;
4299
4293
  context?: any;
4300
4294
  isTest?: boolean | undefined;
4301
4295
  idempotencyKey?: string | undefined;
4302
4296
  };
4297
+ queue: {
4298
+ name: string;
4299
+ id: string;
4300
+ };
4303
4301
  environment: {
4304
4302
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4305
4303
  id: string;
@@ -4331,12 +4329,12 @@ declare const SharedQueueToClientMessages: {
4331
4329
  type: "SCHEDULE_ATTEMPT";
4332
4330
  id: string;
4333
4331
  version: string;
4332
+ image: string;
4334
4333
  machine: {
4335
4334
  version?: "v1" | undefined;
4336
4335
  cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
4337
4336
  memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
4338
4337
  };
4339
- image: string;
4340
4338
  envId: string;
4341
4339
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4342
4340
  orgId: string;
@@ -4699,8 +4697,8 @@ declare const ProdWorkerToCoordinatorMessages: {
4699
4697
  }>, "many">;
4700
4698
  packageVersion: z.ZodString;
4701
4699
  }, "strip", z.ZodTypeAny, {
4702
- packageVersion: string;
4703
4700
  version: "v1";
4701
+ packageVersion: string;
4704
4702
  tasks: {
4705
4703
  id: string;
4706
4704
  filePath: string;
@@ -4895,16 +4893,6 @@ declare const ProdWorkerToCoordinatorMessages: {
4895
4893
  message: z.ZodObject<{
4896
4894
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
4897
4895
  execution: z.ZodObject<{
4898
- queue: z.ZodObject<{
4899
- id: z.ZodString;
4900
- name: z.ZodString;
4901
- }, "strip", z.ZodTypeAny, {
4902
- name: string;
4903
- id: string;
4904
- }, {
4905
- name: string;
4906
- id: string;
4907
- }>;
4908
4896
  task: z.ZodObject<{
4909
4897
  id: z.ZodString;
4910
4898
  filePath: z.ZodString;
@@ -4950,24 +4938,34 @@ declare const ProdWorkerToCoordinatorMessages: {
4950
4938
  createdAt: z.ZodDate;
4951
4939
  idempotencyKey: z.ZodOptional<z.ZodString>;
4952
4940
  }, "strip", z.ZodTypeAny, {
4941
+ id: string;
4953
4942
  payload: string;
4954
4943
  payloadType: string;
4955
- id: string;
4956
4944
  tags: string[];
4957
4945
  isTest: boolean;
4958
4946
  createdAt: Date;
4959
4947
  context?: any;
4960
4948
  idempotencyKey?: string | undefined;
4961
4949
  }, {
4950
+ id: string;
4962
4951
  payload: string;
4963
4952
  payloadType: string;
4964
- id: string;
4965
4953
  tags: string[];
4966
4954
  createdAt: Date;
4967
4955
  context?: any;
4968
4956
  isTest?: boolean | undefined;
4969
4957
  idempotencyKey?: string | undefined;
4970
4958
  }>;
4959
+ queue: z.ZodObject<{
4960
+ id: z.ZodString;
4961
+ name: z.ZodString;
4962
+ }, "strip", z.ZodTypeAny, {
4963
+ name: string;
4964
+ id: string;
4965
+ }, {
4966
+ name: string;
4967
+ id: string;
4968
+ }>;
4971
4969
  environment: z.ZodObject<{
4972
4970
  id: z.ZodString;
4973
4971
  slug: z.ZodString;
@@ -5031,10 +5029,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5031
5029
  contentHash: string;
5032
5030
  }>;
5033
5031
  }, "strip", z.ZodTypeAny, {
5034
- queue: {
5035
- name: string;
5036
- id: string;
5037
- };
5038
5032
  task: {
5039
5033
  id: string;
5040
5034
  filePath: string;
@@ -5049,15 +5043,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5049
5043
  backgroundWorkerTaskId: string;
5050
5044
  };
5051
5045
  run: {
5046
+ id: string;
5052
5047
  payload: string;
5053
5048
  payloadType: string;
5054
- id: string;
5055
5049
  tags: string[];
5056
5050
  isTest: boolean;
5057
5051
  createdAt: Date;
5058
5052
  context?: any;
5059
5053
  idempotencyKey?: string | undefined;
5060
5054
  };
5055
+ queue: {
5056
+ name: string;
5057
+ id: string;
5058
+ };
5061
5059
  environment: {
5062
5060
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5063
5061
  id: string;
@@ -5083,10 +5081,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5083
5081
  id: string;
5084
5082
  } | undefined;
5085
5083
  }, {
5086
- queue: {
5087
- name: string;
5088
- id: string;
5089
- };
5090
5084
  task: {
5091
5085
  id: string;
5092
5086
  filePath: string;
@@ -5101,15 +5095,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5101
5095
  backgroundWorkerTaskId: string;
5102
5096
  };
5103
5097
  run: {
5098
+ id: string;
5104
5099
  payload: string;
5105
5100
  payloadType: string;
5106
- id: string;
5107
5101
  tags: string[];
5108
5102
  createdAt: Date;
5109
5103
  context?: any;
5110
5104
  isTest?: boolean | undefined;
5111
5105
  idempotencyKey?: string | undefined;
5112
5106
  };
5107
+ queue: {
5108
+ name: string;
5109
+ id: string;
5110
+ };
5113
5111
  environment: {
5114
5112
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5115
5113
  id: string;
@@ -5159,14 +5157,14 @@ declare const ProdWorkerToCoordinatorMessages: {
5159
5157
  message: z.ZodString;
5160
5158
  stackTrace: z.ZodString;
5161
5159
  }, "strip", z.ZodTypeAny, {
5162
- name: string;
5163
5160
  type: "BUILT_IN_ERROR";
5164
5161
  message: string;
5162
+ name: string;
5165
5163
  stackTrace: string;
5166
5164
  }, {
5167
- name: string;
5168
5165
  type: "BUILT_IN_ERROR";
5169
5166
  message: string;
5167
+ name: string;
5170
5168
  stackTrace: string;
5171
5169
  }>, z.ZodObject<{
5172
5170
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -5191,12 +5189,12 @@ declare const ProdWorkerToCoordinatorMessages: {
5191
5189
  code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT"]>;
5192
5190
  message: z.ZodOptional<z.ZodString>;
5193
5191
  }, "strip", z.ZodTypeAny, {
5194
- type: "INTERNAL_ERROR";
5195
5192
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5193
+ type: "INTERNAL_ERROR";
5196
5194
  message?: string | undefined;
5197
5195
  }, {
5198
- type: "INTERNAL_ERROR";
5199
5196
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5197
+ type: "INTERNAL_ERROR";
5200
5198
  message?: string | undefined;
5201
5199
  }>]>;
5202
5200
  retry: z.ZodOptional<z.ZodObject<{
@@ -5215,9 +5213,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5215
5213
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
5216
5214
  }, "strip", z.ZodTypeAny, {
5217
5215
  error: {
5218
- name: string;
5219
5216
  type: "BUILT_IN_ERROR";
5220
5217
  message: string;
5218
+ name: string;
5221
5219
  stackTrace: string;
5222
5220
  } | {
5223
5221
  type: "CUSTOM_ERROR";
@@ -5226,8 +5224,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5226
5224
  type: "STRING_ERROR";
5227
5225
  raw: string;
5228
5226
  } | {
5229
- type: "INTERNAL_ERROR";
5230
5227
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5228
+ type: "INTERNAL_ERROR";
5231
5229
  message?: string | undefined;
5232
5230
  };
5233
5231
  id: string;
@@ -5240,9 +5238,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5240
5238
  skippedRetrying?: boolean | undefined;
5241
5239
  }, {
5242
5240
  error: {
5243
- name: string;
5244
5241
  type: "BUILT_IN_ERROR";
5245
5242
  message: string;
5243
+ name: string;
5246
5244
  stackTrace: string;
5247
5245
  } | {
5248
5246
  type: "CUSTOM_ERROR";
@@ -5251,8 +5249,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5251
5249
  type: "STRING_ERROR";
5252
5250
  raw: string;
5253
5251
  } | {
5254
- type: "INTERNAL_ERROR";
5255
5252
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5253
+ type: "INTERNAL_ERROR";
5256
5254
  message?: string | undefined;
5257
5255
  };
5258
5256
  id: string;
@@ -5267,10 +5265,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5267
5265
  }, "strip", z.ZodTypeAny, {
5268
5266
  version: "v1";
5269
5267
  execution: {
5270
- queue: {
5271
- name: string;
5272
- id: string;
5273
- };
5274
5268
  task: {
5275
5269
  id: string;
5276
5270
  filePath: string;
@@ -5285,15 +5279,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5285
5279
  backgroundWorkerTaskId: string;
5286
5280
  };
5287
5281
  run: {
5282
+ id: string;
5288
5283
  payload: string;
5289
5284
  payloadType: string;
5290
- id: string;
5291
5285
  tags: string[];
5292
5286
  isTest: boolean;
5293
5287
  createdAt: Date;
5294
5288
  context?: any;
5295
5289
  idempotencyKey?: string | undefined;
5296
5290
  };
5291
+ queue: {
5292
+ name: string;
5293
+ id: string;
5294
+ };
5297
5295
  environment: {
5298
5296
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5299
5297
  id: string;
@@ -5321,9 +5319,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5321
5319
  };
5322
5320
  completion: {
5323
5321
  error: {
5324
- name: string;
5325
5322
  type: "BUILT_IN_ERROR";
5326
5323
  message: string;
5324
+ name: string;
5327
5325
  stackTrace: string;
5328
5326
  } | {
5329
5327
  type: "CUSTOM_ERROR";
@@ -5332,8 +5330,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5332
5330
  type: "STRING_ERROR";
5333
5331
  raw: string;
5334
5332
  } | {
5335
- type: "INTERNAL_ERROR";
5336
5333
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5334
+ type: "INTERNAL_ERROR";
5337
5335
  message?: string | undefined;
5338
5336
  };
5339
5337
  id: string;
@@ -5352,10 +5350,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5352
5350
  };
5353
5351
  }, {
5354
5352
  execution: {
5355
- queue: {
5356
- name: string;
5357
- id: string;
5358
- };
5359
5353
  task: {
5360
5354
  id: string;
5361
5355
  filePath: string;
@@ -5370,15 +5364,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5370
5364
  backgroundWorkerTaskId: string;
5371
5365
  };
5372
5366
  run: {
5367
+ id: string;
5373
5368
  payload: string;
5374
5369
  payloadType: string;
5375
- id: string;
5376
5370
  tags: string[];
5377
5371
  createdAt: Date;
5378
5372
  context?: any;
5379
5373
  isTest?: boolean | undefined;
5380
5374
  idempotencyKey?: string | undefined;
5381
5375
  };
5376
+ queue: {
5377
+ name: string;
5378
+ id: string;
5379
+ };
5382
5380
  environment: {
5383
5381
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5384
5382
  id: string;
@@ -5406,9 +5404,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5406
5404
  };
5407
5405
  completion: {
5408
5406
  error: {
5409
- name: string;
5410
5407
  type: "BUILT_IN_ERROR";
5411
5408
  message: string;
5409
+ name: string;
5412
5410
  stackTrace: string;
5413
5411
  } | {
5414
5412
  type: "CUSTOM_ERROR";
@@ -5417,8 +5415,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5417
5415
  type: "STRING_ERROR";
5418
5416
  raw: string;
5419
5417
  } | {
5420
- type: "INTERNAL_ERROR";
5421
5418
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5419
+ type: "INTERNAL_ERROR";
5422
5420
  message?: string | undefined;
5423
5421
  };
5424
5422
  id: string;
@@ -5529,26 +5527,26 @@ declare const ProdWorkerToCoordinatorMessages: {
5529
5527
  message: z.ZodString;
5530
5528
  stack: z.ZodOptional<z.ZodString>;
5531
5529
  }, "strip", z.ZodTypeAny, {
5532
- name: string;
5533
5530
  message: string;
5531
+ name: string;
5534
5532
  stack?: string | undefined;
5535
5533
  }, {
5536
- name: string;
5537
5534
  message: string;
5535
+ name: string;
5538
5536
  stack?: string | undefined;
5539
5537
  }>;
5540
5538
  }, "strip", z.ZodTypeAny, {
5541
5539
  error: {
5542
- name: string;
5543
5540
  message: string;
5541
+ name: string;
5544
5542
  stack?: string | undefined;
5545
5543
  };
5546
5544
  version: "v1";
5547
5545
  deploymentId: string;
5548
5546
  }, {
5549
5547
  error: {
5550
- name: string;
5551
5548
  message: string;
5549
+ name: string;
5552
5550
  stack?: string | undefined;
5553
5551
  };
5554
5552
  deploymentId: string;
@@ -5585,14 +5583,14 @@ declare const CoordinatorToProdWorkerMessages: {
5585
5583
  message: z.ZodString;
5586
5584
  stackTrace: z.ZodString;
5587
5585
  }, "strip", z.ZodTypeAny, {
5588
- name: string;
5589
5586
  type: "BUILT_IN_ERROR";
5590
5587
  message: string;
5588
+ name: string;
5591
5589
  stackTrace: string;
5592
5590
  }, {
5593
- name: string;
5594
5591
  type: "BUILT_IN_ERROR";
5595
5592
  message: string;
5593
+ name: string;
5596
5594
  stackTrace: string;
5597
5595
  }>, z.ZodObject<{
5598
5596
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -5617,12 +5615,12 @@ declare const CoordinatorToProdWorkerMessages: {
5617
5615
  code: z.ZodEnum<["COULD_NOT_FIND_EXECUTOR", "COULD_NOT_FIND_TASK", "CONFIGURED_INCORRECTLY", "TASK_ALREADY_RUNNING", "TASK_EXECUTION_FAILED", "TASK_EXECUTION_ABORTED", "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE", "TASK_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT"]>;
5618
5616
  message: z.ZodOptional<z.ZodString>;
5619
5617
  }, "strip", z.ZodTypeAny, {
5620
- type: "INTERNAL_ERROR";
5621
5618
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5619
+ type: "INTERNAL_ERROR";
5622
5620
  message?: string | undefined;
5623
5621
  }, {
5624
- type: "INTERNAL_ERROR";
5625
5622
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5623
+ type: "INTERNAL_ERROR";
5626
5624
  message?: string | undefined;
5627
5625
  }>]>;
5628
5626
  retry: z.ZodOptional<z.ZodObject<{
@@ -5641,9 +5639,9 @@ declare const CoordinatorToProdWorkerMessages: {
5641
5639
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
5642
5640
  }, "strip", z.ZodTypeAny, {
5643
5641
  error: {
5644
- name: string;
5645
5642
  type: "BUILT_IN_ERROR";
5646
5643
  message: string;
5644
+ name: string;
5647
5645
  stackTrace: string;
5648
5646
  } | {
5649
5647
  type: "CUSTOM_ERROR";
@@ -5652,8 +5650,8 @@ declare const CoordinatorToProdWorkerMessages: {
5652
5650
  type: "STRING_ERROR";
5653
5651
  raw: string;
5654
5652
  } | {
5655
- type: "INTERNAL_ERROR";
5656
5653
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5654
+ type: "INTERNAL_ERROR";
5657
5655
  message?: string | undefined;
5658
5656
  };
5659
5657
  id: string;
@@ -5666,9 +5664,9 @@ declare const CoordinatorToProdWorkerMessages: {
5666
5664
  skippedRetrying?: boolean | undefined;
5667
5665
  }, {
5668
5666
  error: {
5669
- name: string;
5670
5667
  type: "BUILT_IN_ERROR";
5671
5668
  message: string;
5669
+ name: string;
5672
5670
  stackTrace: string;
5673
5671
  } | {
5674
5672
  type: "CUSTOM_ERROR";
@@ -5677,8 +5675,8 @@ declare const CoordinatorToProdWorkerMessages: {
5677
5675
  type: "STRING_ERROR";
5678
5676
  raw: string;
5679
5677
  } | {
5680
- type: "INTERNAL_ERROR";
5681
5678
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5679
+ type: "INTERNAL_ERROR";
5682
5680
  message?: string | undefined;
5683
5681
  };
5684
5682
  id: string;
@@ -5736,18 +5734,18 @@ declare const CoordinatorToProdWorkerMessages: {
5736
5734
  createdAt: z.ZodDate;
5737
5735
  idempotencyKey: z.ZodOptional<z.ZodString>;
5738
5736
  }, "strip", z.ZodTypeAny, {
5737
+ id: string;
5739
5738
  payload: string;
5740
5739
  payloadType: string;
5741
- id: string;
5742
5740
  tags: string[];
5743
5741
  isTest: boolean;
5744
5742
  createdAt: Date;
5745
5743
  context?: any;
5746
5744
  idempotencyKey?: string | undefined;
5747
5745
  }, {
5746
+ id: string;
5748
5747
  payload: string;
5749
5748
  payloadType: string;
5750
- id: string;
5751
5749
  tags: string[];
5752
5750
  createdAt: Date;
5753
5751
  context?: any;
@@ -5814,10 +5812,6 @@ declare const CoordinatorToProdWorkerMessages: {
5814
5812
  id: string;
5815
5813
  }>>;
5816
5814
  }, "strip", z.ZodTypeAny, {
5817
- queue: {
5818
- name: string;
5819
- id: string;
5820
- };
5821
5815
  task: {
5822
5816
  id: string;
5823
5817
  filePath: string;
@@ -5832,15 +5826,19 @@ declare const CoordinatorToProdWorkerMessages: {
5832
5826
  backgroundWorkerTaskId: string;
5833
5827
  };
5834
5828
  run: {
5829
+ id: string;
5835
5830
  payload: string;
5836
5831
  payloadType: string;
5837
- id: string;
5838
5832
  tags: string[];
5839
5833
  isTest: boolean;
5840
5834
  createdAt: Date;
5841
5835
  context?: any;
5842
5836
  idempotencyKey?: string | undefined;
5843
5837
  };
5838
+ queue: {
5839
+ name: string;
5840
+ id: string;
5841
+ };
5844
5842
  environment: {
5845
5843
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5846
5844
  id: string;
@@ -5861,10 +5859,6 @@ declare const CoordinatorToProdWorkerMessages: {
5861
5859
  id: string;
5862
5860
  } | undefined;
5863
5861
  }, {
5864
- queue: {
5865
- name: string;
5866
- id: string;
5867
- };
5868
5862
  task: {
5869
5863
  id: string;
5870
5864
  filePath: string;
@@ -5879,15 +5873,19 @@ declare const CoordinatorToProdWorkerMessages: {
5879
5873
  backgroundWorkerTaskId: string;
5880
5874
  };
5881
5875
  run: {
5876
+ id: string;
5882
5877
  payload: string;
5883
5878
  payloadType: string;
5884
- id: string;
5885
5879
  tags: string[];
5886
5880
  createdAt: Date;
5887
5881
  context?: any;
5888
5882
  isTest?: boolean | undefined;
5889
5883
  idempotencyKey?: string | undefined;
5890
5884
  };
5885
+ queue: {
5886
+ name: string;
5887
+ id: string;
5888
+ };
5891
5889
  environment: {
5892
5890
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5893
5891
  id: string;
@@ -5913,9 +5911,9 @@ declare const CoordinatorToProdWorkerMessages: {
5913
5911
  attemptId: string;
5914
5912
  completions: ({
5915
5913
  error: {
5916
- name: string;
5917
5914
  type: "BUILT_IN_ERROR";
5918
5915
  message: string;
5916
+ name: string;
5919
5917
  stackTrace: string;
5920
5918
  } | {
5921
5919
  type: "CUSTOM_ERROR";
@@ -5924,8 +5922,8 @@ declare const CoordinatorToProdWorkerMessages: {
5924
5922
  type: "STRING_ERROR";
5925
5923
  raw: string;
5926
5924
  } | {
5927
- type: "INTERNAL_ERROR";
5928
5925
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
5926
+ type: "INTERNAL_ERROR";
5929
5927
  message?: string | undefined;
5930
5928
  };
5931
5929
  id: string;
@@ -5943,10 +5941,6 @@ declare const CoordinatorToProdWorkerMessages: {
5943
5941
  output?: string | undefined;
5944
5942
  })[];
5945
5943
  executions: {
5946
- queue: {
5947
- name: string;
5948
- id: string;
5949
- };
5950
5944
  task: {
5951
5945
  id: string;
5952
5946
  filePath: string;
@@ -5961,15 +5955,19 @@ declare const CoordinatorToProdWorkerMessages: {
5961
5955
  backgroundWorkerTaskId: string;
5962
5956
  };
5963
5957
  run: {
5958
+ id: string;
5964
5959
  payload: string;
5965
5960
  payloadType: string;
5966
- id: string;
5967
5961
  tags: string[];
5968
5962
  isTest: boolean;
5969
5963
  createdAt: Date;
5970
5964
  context?: any;
5971
5965
  idempotencyKey?: string | undefined;
5972
5966
  };
5967
+ queue: {
5968
+ name: string;
5969
+ id: string;
5970
+ };
5973
5971
  environment: {
5974
5972
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5975
5973
  id: string;
@@ -5994,9 +5992,9 @@ declare const CoordinatorToProdWorkerMessages: {
5994
5992
  attemptId: string;
5995
5993
  completions: ({
5996
5994
  error: {
5997
- name: string;
5998
5995
  type: "BUILT_IN_ERROR";
5999
5996
  message: string;
5997
+ name: string;
6000
5998
  stackTrace: string;
6001
5999
  } | {
6002
6000
  type: "CUSTOM_ERROR";
@@ -6005,8 +6003,8 @@ declare const CoordinatorToProdWorkerMessages: {
6005
6003
  type: "STRING_ERROR";
6006
6004
  raw: string;
6007
6005
  } | {
6008
- type: "INTERNAL_ERROR";
6009
6006
  code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT";
6007
+ type: "INTERNAL_ERROR";
6010
6008
  message?: string | undefined;
6011
6009
  };
6012
6010
  id: string;
@@ -6024,10 +6022,6 @@ declare const CoordinatorToProdWorkerMessages: {
6024
6022
  output?: string | undefined;
6025
6023
  })[];
6026
6024
  executions: {
6027
- queue: {
6028
- name: string;
6029
- id: string;
6030
- };
6031
6025
  task: {
6032
6026
  id: string;
6033
6027
  filePath: string;
@@ -6042,15 +6036,19 @@ declare const CoordinatorToProdWorkerMessages: {
6042
6036
  backgroundWorkerTaskId: string;
6043
6037
  };
6044
6038
  run: {
6039
+ id: string;
6045
6040
  payload: string;
6046
6041
  payloadType: string;
6047
- id: string;
6048
6042
  tags: string[];
6049
6043
  createdAt: Date;
6050
6044
  context?: any;
6051
6045
  isTest?: boolean | undefined;
6052
6046
  idempotencyKey?: string | undefined;
6053
6047
  };
6048
+ queue: {
6049
+ name: string;
6050
+ id: string;
6051
+ };
6054
6052
  environment: {
6055
6053
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6056
6054
  id: string;
@@ -6091,16 +6089,6 @@ declare const CoordinatorToProdWorkerMessages: {
6091
6089
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
6092
6090
  executionPayload: z.ZodObject<{
6093
6091
  execution: z.ZodObject<{
6094
- queue: z.ZodObject<{
6095
- id: z.ZodString;
6096
- name: z.ZodString;
6097
- }, "strip", z.ZodTypeAny, {
6098
- name: string;
6099
- id: string;
6100
- }, {
6101
- name: string;
6102
- id: string;
6103
- }>;
6104
6092
  task: z.ZodObject<{
6105
6093
  id: z.ZodString;
6106
6094
  filePath: z.ZodString;
@@ -6146,24 +6134,34 @@ declare const CoordinatorToProdWorkerMessages: {
6146
6134
  createdAt: z.ZodDate;
6147
6135
  idempotencyKey: z.ZodOptional<z.ZodString>;
6148
6136
  }, "strip", z.ZodTypeAny, {
6137
+ id: string;
6149
6138
  payload: string;
6150
6139
  payloadType: string;
6151
- id: string;
6152
6140
  tags: string[];
6153
6141
  isTest: boolean;
6154
6142
  createdAt: Date;
6155
6143
  context?: any;
6156
6144
  idempotencyKey?: string | undefined;
6157
6145
  }, {
6146
+ id: string;
6158
6147
  payload: string;
6159
6148
  payloadType: string;
6160
- id: string;
6161
6149
  tags: string[];
6162
6150
  createdAt: Date;
6163
6151
  context?: any;
6164
6152
  isTest?: boolean | undefined;
6165
6153
  idempotencyKey?: string | undefined;
6166
6154
  }>;
6155
+ queue: z.ZodObject<{
6156
+ id: z.ZodString;
6157
+ name: z.ZodString;
6158
+ }, "strip", z.ZodTypeAny, {
6159
+ name: string;
6160
+ id: string;
6161
+ }, {
6162
+ name: string;
6163
+ id: string;
6164
+ }>;
6167
6165
  environment: z.ZodObject<{
6168
6166
  id: z.ZodString;
6169
6167
  slug: z.ZodString;
@@ -6227,10 +6225,6 @@ declare const CoordinatorToProdWorkerMessages: {
6227
6225
  contentHash: string;
6228
6226
  }>;
6229
6227
  }, "strip", z.ZodTypeAny, {
6230
- queue: {
6231
- name: string;
6232
- id: string;
6233
- };
6234
6228
  task: {
6235
6229
  id: string;
6236
6230
  filePath: string;
@@ -6245,15 +6239,19 @@ declare const CoordinatorToProdWorkerMessages: {
6245
6239
  backgroundWorkerTaskId: string;
6246
6240
  };
6247
6241
  run: {
6242
+ id: string;
6248
6243
  payload: string;
6249
6244
  payloadType: string;
6250
- id: string;
6251
6245
  tags: string[];
6252
6246
  isTest: boolean;
6253
6247
  createdAt: Date;
6254
6248
  context?: any;
6255
6249
  idempotencyKey?: string | undefined;
6256
6250
  };
6251
+ queue: {
6252
+ name: string;
6253
+ id: string;
6254
+ };
6257
6255
  environment: {
6258
6256
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6259
6257
  id: string;
@@ -6279,10 +6277,6 @@ declare const CoordinatorToProdWorkerMessages: {
6279
6277
  id: string;
6280
6278
  } | undefined;
6281
6279
  }, {
6282
- queue: {
6283
- name: string;
6284
- id: string;
6285
- };
6286
6280
  task: {
6287
6281
  id: string;
6288
6282
  filePath: string;
@@ -6297,15 +6291,19 @@ declare const CoordinatorToProdWorkerMessages: {
6297
6291
  backgroundWorkerTaskId: string;
6298
6292
  };
6299
6293
  run: {
6294
+ id: string;
6300
6295
  payload: string;
6301
6296
  payloadType: string;
6302
- id: string;
6303
6297
  tags: string[];
6304
6298
  createdAt: Date;
6305
6299
  context?: any;
6306
6300
  isTest?: boolean | undefined;
6307
6301
  idempotencyKey?: string | undefined;
6308
6302
  };
6303
+ queue: {
6304
+ name: string;
6305
+ id: string;
6306
+ };
6309
6307
  environment: {
6310
6308
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6311
6309
  id: string;
@@ -6335,10 +6333,6 @@ declare const CoordinatorToProdWorkerMessages: {
6335
6333
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6336
6334
  }, "strip", z.ZodTypeAny, {
6337
6335
  execution: {
6338
- queue: {
6339
- name: string;
6340
- id: string;
6341
- };
6342
6336
  task: {
6343
6337
  id: string;
6344
6338
  filePath: string;
@@ -6353,15 +6347,19 @@ declare const CoordinatorToProdWorkerMessages: {
6353
6347
  backgroundWorkerTaskId: string;
6354
6348
  };
6355
6349
  run: {
6350
+ id: string;
6356
6351
  payload: string;
6357
6352
  payloadType: string;
6358
- id: string;
6359
6353
  tags: string[];
6360
6354
  isTest: boolean;
6361
6355
  createdAt: Date;
6362
6356
  context?: any;
6363
6357
  idempotencyKey?: string | undefined;
6364
6358
  };
6359
+ queue: {
6360
+ name: string;
6361
+ id: string;
6362
+ };
6365
6363
  environment: {
6366
6364
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6367
6365
  id: string;
@@ -6391,10 +6389,6 @@ declare const CoordinatorToProdWorkerMessages: {
6391
6389
  environment?: Record<string, string> | undefined;
6392
6390
  }, {
6393
6391
  execution: {
6394
- queue: {
6395
- name: string;
6396
- id: string;
6397
- };
6398
6392
  task: {
6399
6393
  id: string;
6400
6394
  filePath: string;
@@ -6409,15 +6403,19 @@ declare const CoordinatorToProdWorkerMessages: {
6409
6403
  backgroundWorkerTaskId: string;
6410
6404
  };
6411
6405
  run: {
6406
+ id: string;
6412
6407
  payload: string;
6413
6408
  payloadType: string;
6414
- id: string;
6415
6409
  tags: string[];
6416
6410
  createdAt: Date;
6417
6411
  context?: any;
6418
6412
  isTest?: boolean | undefined;
6419
6413
  idempotencyKey?: string | undefined;
6420
6414
  };
6415
+ queue: {
6416
+ name: string;
6417
+ id: string;
6418
+ };
6421
6419
  environment: {
6422
6420
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6423
6421
  id: string;
@@ -6450,10 +6448,6 @@ declare const CoordinatorToProdWorkerMessages: {
6450
6448
  version: "v1";
6451
6449
  executionPayload: {
6452
6450
  execution: {
6453
- queue: {
6454
- name: string;
6455
- id: string;
6456
- };
6457
6451
  task: {
6458
6452
  id: string;
6459
6453
  filePath: string;
@@ -6468,15 +6462,19 @@ declare const CoordinatorToProdWorkerMessages: {
6468
6462
  backgroundWorkerTaskId: string;
6469
6463
  };
6470
6464
  run: {
6465
+ id: string;
6471
6466
  payload: string;
6472
6467
  payloadType: string;
6473
- id: string;
6474
6468
  tags: string[];
6475
6469
  isTest: boolean;
6476
6470
  createdAt: Date;
6477
6471
  context?: any;
6478
6472
  idempotencyKey?: string | undefined;
6479
6473
  };
6474
+ queue: {
6475
+ name: string;
6476
+ id: string;
6477
+ };
6480
6478
  environment: {
6481
6479
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6482
6480
  id: string;
@@ -6508,10 +6506,6 @@ declare const CoordinatorToProdWorkerMessages: {
6508
6506
  }, {
6509
6507
  executionPayload: {
6510
6508
  execution: {
6511
- queue: {
6512
- name: string;
6513
- id: string;
6514
- };
6515
6509
  task: {
6516
6510
  id: string;
6517
6511
  filePath: string;
@@ -6526,15 +6520,19 @@ declare const CoordinatorToProdWorkerMessages: {
6526
6520
  backgroundWorkerTaskId: string;
6527
6521
  };
6528
6522
  run: {
6523
+ id: string;
6529
6524
  payload: string;
6530
6525
  payloadType: string;
6531
- id: string;
6532
6526
  tags: string[];
6533
6527
  createdAt: Date;
6534
6528
  context?: any;
6535
6529
  isTest?: boolean | undefined;
6536
6530
  idempotencyKey?: string | undefined;
6537
6531
  };
6532
+ queue: {
6533
+ name: string;
6534
+ id: string;
6535
+ };
6538
6536
  environment: {
6539
6537
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6540
6538
  id: string;
@@ -6635,43 +6633,13 @@ interface Clock {
6635
6633
  reset(): void;
6636
6634
  }
6637
6635
 
6638
- type TaskContext = {
6639
- ctx: TaskRunContext;
6640
- worker: BackgroundWorkerProperties;
6641
- };
6642
- declare class TaskContextManager {
6643
- #private;
6644
- private _storage;
6645
- get isInsideTask(): boolean;
6646
- get ctx(): TaskRunContext | undefined;
6647
- get worker(): BackgroundWorkerProperties | undefined;
6648
- get attributes(): Attributes;
6649
- get workerAttributes(): Attributes;
6650
- get contextAttributes(): Attributes;
6651
- runWith<R extends (...args: any[]) => Promise<any>>(context: TaskContext, fn: R): Promise<ReturnType<R>>;
6652
- }
6653
- declare const taskContextManager: TaskContextManager;
6654
-
6655
- declare class TaskContextSpanProcessor implements SpanProcessor {
6656
- private _innerProcessor;
6657
- constructor(innerProcessor: SpanProcessor);
6658
- onStart(span: Span$1, parentContext: Context$1): void;
6659
- onEnd(span: Span$1): void;
6660
- shutdown(): Promise<void>;
6661
- forceFlush(): Promise<void>;
6662
- }
6663
-
6664
- declare class ConsoleInterceptor {
6665
- #private;
6666
- private readonly logger;
6667
- private readonly sendToStdIO;
6668
- constructor(logger: logsAPI.Logger, sendToStdIO: boolean);
6669
- intercept<T>(console: Console, callback: () => Promise<T>): Promise<T>;
6670
- debug(...args: unknown[]): void;
6671
- log(...args: unknown[]): void;
6672
- info(...args: unknown[]): void;
6673
- warn(...args: unknown[]): void;
6674
- error(...args: unknown[]): void;
6636
+ interface TaskCatalog {
6637
+ registerTaskMetadata(task: TaskMetadataWithFunctions): void;
6638
+ updateTaskMetadata(id: string, task: Partial<TaskMetadataWithFunctions>): void;
6639
+ registerTaskFileMetadata(id: string, metadata: TaskFileMetadata): void;
6640
+ getAllTaskMetadata(): Array<TaskMetadataWithFilePath>;
6641
+ getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
6642
+ getTask(id: string): TaskMetadataWithFunctions | undefined;
6675
6643
  }
6676
6644
 
6677
- export { type RequireKeys as A, type ProjectConfig as B, type Clock as C, type HandleErrorFnParams as H, type InitOutput as I, type LogLevel as L, type MiddlewareFnParams as M, OtelTaskLogger as O, type Prettify as P, type ResolvedConfig as R, SharedQueueToClientMessages as S, type TaskLogger as T, WaitReason as W, type ClockTime as a, type TaskMetadataWithFunctions as b, TriggerTracer as c, TaskContextSpanProcessor as d, ConsoleInterceptor as e, PostStartCauses as f, PreStopCauses as g, Config as h, ProviderToPlatformMessages as i, PlatformToProviderMessages as j, CoordinatorToPlatformMessages as k, logLevels as l, PlatformToCoordinatorMessages as m, ClientToSharedQueueMessages as n, ProdWorkerToCoordinatorMessages as o, CoordinatorToProdWorkerMessages as p, ProdWorkerSocketData as q, type RunFnParams as r, type InitFnParams as s, taskContextManager as t, type Context as u, type SuccessFnParams as v, type HandleErrorModificationOptions as w, type HandleErrorResult as x, type HandleErrorArgs as y, type HandleErrorFunction as z };
6645
+ export { type Clock as C, type HandleErrorFnParams as H, type InitOutput as I, type LogLevel as L, type MiddlewareFnParams as M, OtelTaskLogger as O, type Prettify as P, type ResolvedConfig as R, SharedQueueToClientMessages as S, type TaskLogger as T, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TriggerTracer as d, PostStartCauses as e, PreStopCauses as f, Config as g, ProviderToPlatformMessages as h, PlatformToProviderMessages as i, CoordinatorToPlatformMessages as j, PlatformToCoordinatorMessages as k, ClientToSharedQueueMessages as l, ProdWorkerToCoordinatorMessages as m, CoordinatorToProdWorkerMessages as n, ProdWorkerSocketData as o, type RunFnParams as p, type InitFnParams as q, type Context as r, type SuccessFnParams as s, type HandleErrorModificationOptions as t, type HandleErrorResult as u, type HandleErrorArgs as v, type HandleErrorFunction as w, type RequireKeys as x, type ProjectConfig as y, logLevels as z };