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

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.
@@ -1,9 +1,9 @@
1
1
  import { Context as Context$1, Span, SpanOptions, Tracer, Attributes } from '@opentelemetry/api';
2
2
  import * as logsAPI from '@opentelemetry/api-logs';
3
3
  import { Logger } from '@opentelemetry/api-logs';
4
- import { R as RetryOptions, j as TaskMetadata, g as BackgroundWorkerProperties } from './messages-GvjBDSAA.mjs';
4
+ import { R as RetryOptions, j as TaskMetadata, g as BackgroundWorkerProperties } from './messages-oFuHKbi4.mjs';
5
5
  import { InstrumentationOption } from '@opentelemetry/instrumentation';
6
- import { b as TaskRunContext } from './manager-psJfQhBB.mjs';
6
+ import { b as TaskRunContext } from './manager-KhqZOMNe.mjs';
7
7
  import { z } from 'zod';
8
8
  import { SpanProcessor, Span as Span$1 } from '@opentelemetry/sdk-trace-base';
9
9
 
@@ -319,26 +319,26 @@ declare const ProviderToPlatformMessages: {
319
319
  message: z.ZodString;
320
320
  stack: z.ZodOptional<z.ZodString>;
321
321
  }, "strip", z.ZodTypeAny, {
322
- name: string;
323
322
  message: string;
323
+ name: string;
324
324
  stack?: string | undefined;
325
325
  }, {
326
- name: string;
327
326
  message: string;
327
+ name: string;
328
328
  stack?: string | undefined;
329
329
  }>;
330
330
  }, "strip", z.ZodTypeAny, {
331
331
  error: {
332
- name: string;
333
332
  message: string;
333
+ name: string;
334
334
  stack?: string | undefined;
335
335
  };
336
336
  version: "v1";
337
337
  deploymentId: string;
338
338
  }, {
339
339
  error: {
340
- name: string;
341
340
  message: string;
341
+ name: string;
342
342
  stack?: string | undefined;
343
343
  };
344
344
  deploymentId: string;
@@ -405,25 +405,25 @@ declare const PlatformToProviderMessages: {
405
405
  message: z.ZodString;
406
406
  stack: z.ZodOptional<z.ZodString>;
407
407
  }, "strip", z.ZodTypeAny, {
408
- name: string;
409
408
  message: string;
409
+ name: string;
410
410
  stack?: string | undefined;
411
411
  }, {
412
- name: string;
413
412
  message: string;
413
+ name: string;
414
414
  stack?: string | undefined;
415
415
  }>;
416
416
  }, "strip", z.ZodTypeAny, {
417
417
  error: {
418
- name: string;
419
418
  message: string;
419
+ name: string;
420
420
  stack?: string | undefined;
421
421
  };
422
422
  success: false;
423
423
  }, {
424
424
  error: {
425
- name: string;
426
425
  message: string;
426
+ name: string;
427
427
  stack?: string | undefined;
428
428
  };
429
429
  success: false;
@@ -1174,16 +1174,6 @@ declare const CoordinatorToPlatformMessages: {
1174
1174
  success: z.ZodLiteral<true>;
1175
1175
  payload: z.ZodObject<{
1176
1176
  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
1177
  task: z.ZodObject<{
1188
1178
  id: z.ZodString;
1189
1179
  filePath: z.ZodString;
@@ -1229,24 +1219,34 @@ declare const CoordinatorToPlatformMessages: {
1229
1219
  createdAt: z.ZodDate;
1230
1220
  idempotencyKey: z.ZodOptional<z.ZodString>;
1231
1221
  }, "strip", z.ZodTypeAny, {
1222
+ id: string;
1232
1223
  payload: string;
1233
1224
  payloadType: string;
1234
- id: string;
1235
1225
  tags: string[];
1236
1226
  isTest: boolean;
1237
1227
  createdAt: Date;
1238
1228
  context?: any;
1239
1229
  idempotencyKey?: string | undefined;
1240
1230
  }, {
1231
+ id: string;
1241
1232
  payload: string;
1242
1233
  payloadType: string;
1243
- id: string;
1244
1234
  tags: string[];
1245
1235
  createdAt: Date;
1246
1236
  context?: any;
1247
1237
  isTest?: boolean | undefined;
1248
1238
  idempotencyKey?: string | undefined;
1249
1239
  }>;
1240
+ queue: z.ZodObject<{
1241
+ id: z.ZodString;
1242
+ name: z.ZodString;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ name: string;
1245
+ id: string;
1246
+ }, {
1247
+ name: string;
1248
+ id: string;
1249
+ }>;
1250
1250
  environment: z.ZodObject<{
1251
1251
  id: z.ZodString;
1252
1252
  slug: z.ZodString;
@@ -1310,10 +1310,6 @@ declare const CoordinatorToPlatformMessages: {
1310
1310
  contentHash: string;
1311
1311
  }>;
1312
1312
  }, "strip", z.ZodTypeAny, {
1313
- queue: {
1314
- name: string;
1315
- id: string;
1316
- };
1317
1313
  task: {
1318
1314
  id: string;
1319
1315
  filePath: string;
@@ -1328,15 +1324,19 @@ declare const CoordinatorToPlatformMessages: {
1328
1324
  backgroundWorkerTaskId: string;
1329
1325
  };
1330
1326
  run: {
1327
+ id: string;
1331
1328
  payload: string;
1332
1329
  payloadType: string;
1333
- id: string;
1334
1330
  tags: string[];
1335
1331
  isTest: boolean;
1336
1332
  createdAt: Date;
1337
1333
  context?: any;
1338
1334
  idempotencyKey?: string | undefined;
1339
1335
  };
1336
+ queue: {
1337
+ name: string;
1338
+ id: string;
1339
+ };
1340
1340
  environment: {
1341
1341
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1342
1342
  id: string;
@@ -1362,10 +1362,6 @@ declare const CoordinatorToPlatformMessages: {
1362
1362
  id: string;
1363
1363
  } | undefined;
1364
1364
  }, {
1365
- queue: {
1366
- name: string;
1367
- id: string;
1368
- };
1369
1365
  task: {
1370
1366
  id: string;
1371
1367
  filePath: string;
@@ -1380,15 +1376,19 @@ declare const CoordinatorToPlatformMessages: {
1380
1376
  backgroundWorkerTaskId: string;
1381
1377
  };
1382
1378
  run: {
1379
+ id: string;
1383
1380
  payload: string;
1384
1381
  payloadType: string;
1385
- id: string;
1386
1382
  tags: string[];
1387
1383
  createdAt: Date;
1388
1384
  context?: any;
1389
1385
  isTest?: boolean | undefined;
1390
1386
  idempotencyKey?: string | undefined;
1391
1387
  };
1388
+ queue: {
1389
+ name: string;
1390
+ id: string;
1391
+ };
1392
1392
  environment: {
1393
1393
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1394
1394
  id: string;
@@ -1418,10 +1418,6 @@ declare const CoordinatorToPlatformMessages: {
1418
1418
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1419
1419
  }, "strip", z.ZodTypeAny, {
1420
1420
  execution: {
1421
- queue: {
1422
- name: string;
1423
- id: string;
1424
- };
1425
1421
  task: {
1426
1422
  id: string;
1427
1423
  filePath: string;
@@ -1436,15 +1432,19 @@ declare const CoordinatorToPlatformMessages: {
1436
1432
  backgroundWorkerTaskId: string;
1437
1433
  };
1438
1434
  run: {
1435
+ id: string;
1439
1436
  payload: string;
1440
1437
  payloadType: string;
1441
- id: string;
1442
1438
  tags: string[];
1443
1439
  isTest: boolean;
1444
1440
  createdAt: Date;
1445
1441
  context?: any;
1446
1442
  idempotencyKey?: string | undefined;
1447
1443
  };
1444
+ queue: {
1445
+ name: string;
1446
+ id: string;
1447
+ };
1448
1448
  environment: {
1449
1449
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1450
1450
  id: string;
@@ -1474,10 +1474,6 @@ declare const CoordinatorToPlatformMessages: {
1474
1474
  environment?: Record<string, string> | undefined;
1475
1475
  }, {
1476
1476
  execution: {
1477
- queue: {
1478
- name: string;
1479
- id: string;
1480
- };
1481
1477
  task: {
1482
1478
  id: string;
1483
1479
  filePath: string;
@@ -1492,15 +1488,19 @@ declare const CoordinatorToPlatformMessages: {
1492
1488
  backgroundWorkerTaskId: string;
1493
1489
  };
1494
1490
  run: {
1491
+ id: string;
1495
1492
  payload: string;
1496
1493
  payloadType: string;
1497
- id: string;
1498
1494
  tags: string[];
1499
1495
  createdAt: Date;
1500
1496
  context?: any;
1501
1497
  isTest?: boolean | undefined;
1502
1498
  idempotencyKey?: string | undefined;
1503
1499
  };
1500
+ queue: {
1501
+ name: string;
1502
+ id: string;
1503
+ };
1504
1504
  environment: {
1505
1505
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1506
1506
  id: string;
@@ -1532,10 +1532,6 @@ declare const CoordinatorToPlatformMessages: {
1532
1532
  }, "strip", z.ZodTypeAny, {
1533
1533
  payload: {
1534
1534
  execution: {
1535
- queue: {
1536
- name: string;
1537
- id: string;
1538
- };
1539
1535
  task: {
1540
1536
  id: string;
1541
1537
  filePath: string;
@@ -1550,15 +1546,19 @@ declare const CoordinatorToPlatformMessages: {
1550
1546
  backgroundWorkerTaskId: string;
1551
1547
  };
1552
1548
  run: {
1549
+ id: string;
1553
1550
  payload: string;
1554
1551
  payloadType: string;
1555
- id: string;
1556
1552
  tags: string[];
1557
1553
  isTest: boolean;
1558
1554
  createdAt: Date;
1559
1555
  context?: any;
1560
1556
  idempotencyKey?: string | undefined;
1561
1557
  };
1558
+ queue: {
1559
+ name: string;
1560
+ id: string;
1561
+ };
1562
1562
  environment: {
1563
1563
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1564
1564
  id: string;
@@ -1591,10 +1591,6 @@ declare const CoordinatorToPlatformMessages: {
1591
1591
  }, {
1592
1592
  payload: {
1593
1593
  execution: {
1594
- queue: {
1595
- name: string;
1596
- id: string;
1597
- };
1598
1594
  task: {
1599
1595
  id: string;
1600
1596
  filePath: string;
@@ -1609,15 +1605,19 @@ declare const CoordinatorToPlatformMessages: {
1609
1605
  backgroundWorkerTaskId: string;
1610
1606
  };
1611
1607
  run: {
1608
+ id: string;
1612
1609
  payload: string;
1613
1610
  payloadType: string;
1614
- id: string;
1615
1611
  tags: string[];
1616
1612
  createdAt: Date;
1617
1613
  context?: any;
1618
1614
  isTest?: boolean | undefined;
1619
1615
  idempotencyKey?: string | undefined;
1620
1616
  };
1617
+ queue: {
1618
+ name: string;
1619
+ id: string;
1620
+ };
1621
1621
  environment: {
1622
1622
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1623
1623
  id: string;
@@ -1668,16 +1668,6 @@ declare const CoordinatorToPlatformMessages: {
1668
1668
  message: z.ZodObject<{
1669
1669
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
1670
1670
  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
1671
  task: z.ZodObject<{
1682
1672
  id: z.ZodString;
1683
1673
  filePath: z.ZodString;
@@ -1723,24 +1713,34 @@ declare const CoordinatorToPlatformMessages: {
1723
1713
  createdAt: z.ZodDate;
1724
1714
  idempotencyKey: z.ZodOptional<z.ZodString>;
1725
1715
  }, "strip", z.ZodTypeAny, {
1716
+ id: string;
1726
1717
  payload: string;
1727
1718
  payloadType: string;
1728
- id: string;
1729
1719
  tags: string[];
1730
1720
  isTest: boolean;
1731
1721
  createdAt: Date;
1732
1722
  context?: any;
1733
1723
  idempotencyKey?: string | undefined;
1734
1724
  }, {
1725
+ id: string;
1735
1726
  payload: string;
1736
1727
  payloadType: string;
1737
- id: string;
1738
1728
  tags: string[];
1739
1729
  createdAt: Date;
1740
1730
  context?: any;
1741
1731
  isTest?: boolean | undefined;
1742
1732
  idempotencyKey?: string | undefined;
1743
1733
  }>;
1734
+ queue: z.ZodObject<{
1735
+ id: z.ZodString;
1736
+ name: z.ZodString;
1737
+ }, "strip", z.ZodTypeAny, {
1738
+ name: string;
1739
+ id: string;
1740
+ }, {
1741
+ name: string;
1742
+ id: string;
1743
+ }>;
1744
1744
  environment: z.ZodObject<{
1745
1745
  id: z.ZodString;
1746
1746
  slug: z.ZodString;
@@ -1804,10 +1804,6 @@ declare const CoordinatorToPlatformMessages: {
1804
1804
  contentHash: string;
1805
1805
  }>;
1806
1806
  }, "strip", z.ZodTypeAny, {
1807
- queue: {
1808
- name: string;
1809
- id: string;
1810
- };
1811
1807
  task: {
1812
1808
  id: string;
1813
1809
  filePath: string;
@@ -1822,15 +1818,19 @@ declare const CoordinatorToPlatformMessages: {
1822
1818
  backgroundWorkerTaskId: string;
1823
1819
  };
1824
1820
  run: {
1821
+ id: string;
1825
1822
  payload: string;
1826
1823
  payloadType: string;
1827
- id: string;
1828
1824
  tags: string[];
1829
1825
  isTest: boolean;
1830
1826
  createdAt: Date;
1831
1827
  context?: any;
1832
1828
  idempotencyKey?: string | undefined;
1833
1829
  };
1830
+ queue: {
1831
+ name: string;
1832
+ id: string;
1833
+ };
1834
1834
  environment: {
1835
1835
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1836
1836
  id: string;
@@ -1856,10 +1856,6 @@ declare const CoordinatorToPlatformMessages: {
1856
1856
  id: string;
1857
1857
  } | undefined;
1858
1858
  }, {
1859
- queue: {
1860
- name: string;
1861
- id: string;
1862
- };
1863
1859
  task: {
1864
1860
  id: string;
1865
1861
  filePath: string;
@@ -1874,15 +1870,19 @@ declare const CoordinatorToPlatformMessages: {
1874
1870
  backgroundWorkerTaskId: string;
1875
1871
  };
1876
1872
  run: {
1873
+ id: string;
1877
1874
  payload: string;
1878
1875
  payloadType: string;
1879
- id: string;
1880
1876
  tags: string[];
1881
1877
  createdAt: Date;
1882
1878
  context?: any;
1883
1879
  isTest?: boolean | undefined;
1884
1880
  idempotencyKey?: string | undefined;
1885
1881
  };
1882
+ queue: {
1883
+ name: string;
1884
+ id: string;
1885
+ };
1886
1886
  environment: {
1887
1887
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1888
1888
  id: string;
@@ -1932,14 +1932,14 @@ declare const CoordinatorToPlatformMessages: {
1932
1932
  message: z.ZodString;
1933
1933
  stackTrace: z.ZodString;
1934
1934
  }, "strip", z.ZodTypeAny, {
1935
- name: string;
1936
- type: "BUILT_IN_ERROR";
1937
1935
  message: string;
1936
+ type: "BUILT_IN_ERROR";
1937
+ name: string;
1938
1938
  stackTrace: string;
1939
1939
  }, {
1940
- name: string;
1941
- type: "BUILT_IN_ERROR";
1942
1940
  message: string;
1941
+ type: "BUILT_IN_ERROR";
1942
+ name: string;
1943
1943
  stackTrace: string;
1944
1944
  }>, z.ZodObject<{
1945
1945
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -1964,12 +1964,12 @@ declare const CoordinatorToPlatformMessages: {
1964
1964
  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
1965
  message: z.ZodOptional<z.ZodString>;
1966
1966
  }, "strip", z.ZodTypeAny, {
1967
- type: "INTERNAL_ERROR";
1968
1967
  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";
1968
+ type: "INTERNAL_ERROR";
1969
1969
  message?: string | undefined;
1970
1970
  }, {
1971
- type: "INTERNAL_ERROR";
1972
1971
  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";
1972
+ type: "INTERNAL_ERROR";
1973
1973
  message?: string | undefined;
1974
1974
  }>]>;
1975
1975
  retry: z.ZodOptional<z.ZodObject<{
@@ -1988,9 +1988,9 @@ declare const CoordinatorToPlatformMessages: {
1988
1988
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1989
1989
  }, "strip", z.ZodTypeAny, {
1990
1990
  error: {
1991
- name: string;
1992
- type: "BUILT_IN_ERROR";
1993
1991
  message: string;
1992
+ type: "BUILT_IN_ERROR";
1993
+ name: string;
1994
1994
  stackTrace: string;
1995
1995
  } | {
1996
1996
  type: "CUSTOM_ERROR";
@@ -1999,8 +1999,8 @@ declare const CoordinatorToPlatformMessages: {
1999
1999
  type: "STRING_ERROR";
2000
2000
  raw: string;
2001
2001
  } | {
2002
- type: "INTERNAL_ERROR";
2003
2002
  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";
2003
+ type: "INTERNAL_ERROR";
2004
2004
  message?: string | undefined;
2005
2005
  };
2006
2006
  id: string;
@@ -2013,9 +2013,9 @@ declare const CoordinatorToPlatformMessages: {
2013
2013
  skippedRetrying?: boolean | undefined;
2014
2014
  }, {
2015
2015
  error: {
2016
- name: string;
2017
- type: "BUILT_IN_ERROR";
2018
2016
  message: string;
2017
+ type: "BUILT_IN_ERROR";
2018
+ name: string;
2019
2019
  stackTrace: string;
2020
2020
  } | {
2021
2021
  type: "CUSTOM_ERROR";
@@ -2024,8 +2024,8 @@ declare const CoordinatorToPlatformMessages: {
2024
2024
  type: "STRING_ERROR";
2025
2025
  raw: string;
2026
2026
  } | {
2027
- type: "INTERNAL_ERROR";
2028
2027
  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";
2028
+ type: "INTERNAL_ERROR";
2029
2029
  message?: string | undefined;
2030
2030
  };
2031
2031
  id: string;
@@ -2050,10 +2050,6 @@ declare const CoordinatorToPlatformMessages: {
2050
2050
  }, "strip", z.ZodTypeAny, {
2051
2051
  version: "v1";
2052
2052
  execution: {
2053
- queue: {
2054
- name: string;
2055
- id: string;
2056
- };
2057
2053
  task: {
2058
2054
  id: string;
2059
2055
  filePath: string;
@@ -2068,15 +2064,19 @@ declare const CoordinatorToPlatformMessages: {
2068
2064
  backgroundWorkerTaskId: string;
2069
2065
  };
2070
2066
  run: {
2067
+ id: string;
2071
2068
  payload: string;
2072
2069
  payloadType: string;
2073
- id: string;
2074
2070
  tags: string[];
2075
2071
  isTest: boolean;
2076
2072
  createdAt: Date;
2077
2073
  context?: any;
2078
2074
  idempotencyKey?: string | undefined;
2079
2075
  };
2076
+ queue: {
2077
+ name: string;
2078
+ id: string;
2079
+ };
2080
2080
  environment: {
2081
2081
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2082
2082
  id: string;
@@ -2104,9 +2104,9 @@ declare const CoordinatorToPlatformMessages: {
2104
2104
  };
2105
2105
  completion: {
2106
2106
  error: {
2107
- name: string;
2108
- type: "BUILT_IN_ERROR";
2109
2107
  message: string;
2108
+ type: "BUILT_IN_ERROR";
2109
+ name: string;
2110
2110
  stackTrace: string;
2111
2111
  } | {
2112
2112
  type: "CUSTOM_ERROR";
@@ -2115,8 +2115,8 @@ declare const CoordinatorToPlatformMessages: {
2115
2115
  type: "STRING_ERROR";
2116
2116
  raw: string;
2117
2117
  } | {
2118
- type: "INTERNAL_ERROR";
2119
2118
  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";
2119
+ type: "INTERNAL_ERROR";
2120
2120
  message?: string | undefined;
2121
2121
  };
2122
2122
  id: string;
@@ -2139,10 +2139,6 @@ declare const CoordinatorToPlatformMessages: {
2139
2139
  } | undefined;
2140
2140
  }, {
2141
2141
  execution: {
2142
- queue: {
2143
- name: string;
2144
- id: string;
2145
- };
2146
2142
  task: {
2147
2143
  id: string;
2148
2144
  filePath: string;
@@ -2157,15 +2153,19 @@ declare const CoordinatorToPlatformMessages: {
2157
2153
  backgroundWorkerTaskId: string;
2158
2154
  };
2159
2155
  run: {
2156
+ id: string;
2160
2157
  payload: string;
2161
2158
  payloadType: string;
2162
- id: string;
2163
2159
  tags: string[];
2164
2160
  createdAt: Date;
2165
2161
  context?: any;
2166
2162
  isTest?: boolean | undefined;
2167
2163
  idempotencyKey?: string | undefined;
2168
2164
  };
2165
+ queue: {
2166
+ name: string;
2167
+ id: string;
2168
+ };
2169
2169
  environment: {
2170
2170
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2171
2171
  id: string;
@@ -2193,9 +2193,9 @@ declare const CoordinatorToPlatformMessages: {
2193
2193
  };
2194
2194
  completion: {
2195
2195
  error: {
2196
- name: string;
2197
- type: "BUILT_IN_ERROR";
2198
2196
  message: string;
2197
+ type: "BUILT_IN_ERROR";
2198
+ name: string;
2199
2199
  stackTrace: string;
2200
2200
  } | {
2201
2201
  type: "CUSTOM_ERROR";
@@ -2204,8 +2204,8 @@ declare const CoordinatorToPlatformMessages: {
2204
2204
  type: "STRING_ERROR";
2205
2205
  raw: string;
2206
2206
  } | {
2207
- type: "INTERNAL_ERROR";
2208
2207
  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";
2208
+ type: "INTERNAL_ERROR";
2209
2209
  message?: string | undefined;
2210
2210
  };
2211
2211
  id: string;
@@ -2341,26 +2341,26 @@ declare const CoordinatorToPlatformMessages: {
2341
2341
  message: z.ZodString;
2342
2342
  stack: z.ZodOptional<z.ZodString>;
2343
2343
  }, "strip", z.ZodTypeAny, {
2344
- name: string;
2345
2344
  message: string;
2345
+ name: string;
2346
2346
  stack?: string | undefined;
2347
2347
  }, {
2348
- name: string;
2349
2348
  message: string;
2349
+ name: string;
2350
2350
  stack?: string | undefined;
2351
2351
  }>;
2352
2352
  }, "strip", z.ZodTypeAny, {
2353
2353
  error: {
2354
- name: string;
2355
2354
  message: string;
2355
+ name: string;
2356
2356
  stack?: string | undefined;
2357
2357
  };
2358
2358
  version: "v1";
2359
2359
  deploymentId: string;
2360
2360
  }, {
2361
2361
  error: {
2362
- name: string;
2363
2362
  message: string;
2363
+ name: string;
2364
2364
  stack?: string | undefined;
2365
2365
  };
2366
2366
  deploymentId: string;
@@ -2399,14 +2399,14 @@ declare const PlatformToCoordinatorMessages: {
2399
2399
  message: z.ZodString;
2400
2400
  stackTrace: z.ZodString;
2401
2401
  }, "strip", z.ZodTypeAny, {
2402
- name: string;
2403
- type: "BUILT_IN_ERROR";
2404
2402
  message: string;
2403
+ type: "BUILT_IN_ERROR";
2404
+ name: string;
2405
2405
  stackTrace: string;
2406
2406
  }, {
2407
- name: string;
2408
- type: "BUILT_IN_ERROR";
2409
2407
  message: string;
2408
+ type: "BUILT_IN_ERROR";
2409
+ name: string;
2410
2410
  stackTrace: string;
2411
2411
  }>, z.ZodObject<{
2412
2412
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -2431,12 +2431,12 @@ declare const PlatformToCoordinatorMessages: {
2431
2431
  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
2432
  message: z.ZodOptional<z.ZodString>;
2433
2433
  }, "strip", z.ZodTypeAny, {
2434
- type: "INTERNAL_ERROR";
2435
2434
  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";
2435
+ type: "INTERNAL_ERROR";
2436
2436
  message?: string | undefined;
2437
2437
  }, {
2438
- type: "INTERNAL_ERROR";
2439
2438
  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";
2439
+ type: "INTERNAL_ERROR";
2440
2440
  message?: string | undefined;
2441
2441
  }>]>;
2442
2442
  retry: z.ZodOptional<z.ZodObject<{
@@ -2455,9 +2455,9 @@ declare const PlatformToCoordinatorMessages: {
2455
2455
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
2456
2456
  }, "strip", z.ZodTypeAny, {
2457
2457
  error: {
2458
- name: string;
2459
- type: "BUILT_IN_ERROR";
2460
2458
  message: string;
2459
+ type: "BUILT_IN_ERROR";
2460
+ name: string;
2461
2461
  stackTrace: string;
2462
2462
  } | {
2463
2463
  type: "CUSTOM_ERROR";
@@ -2466,8 +2466,8 @@ declare const PlatformToCoordinatorMessages: {
2466
2466
  type: "STRING_ERROR";
2467
2467
  raw: string;
2468
2468
  } | {
2469
- type: "INTERNAL_ERROR";
2470
2469
  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";
2470
+ type: "INTERNAL_ERROR";
2471
2471
  message?: string | undefined;
2472
2472
  };
2473
2473
  id: string;
@@ -2480,9 +2480,9 @@ declare const PlatformToCoordinatorMessages: {
2480
2480
  skippedRetrying?: boolean | undefined;
2481
2481
  }, {
2482
2482
  error: {
2483
- name: string;
2484
- type: "BUILT_IN_ERROR";
2485
2483
  message: string;
2484
+ type: "BUILT_IN_ERROR";
2485
+ name: string;
2486
2486
  stackTrace: string;
2487
2487
  } | {
2488
2488
  type: "CUSTOM_ERROR";
@@ -2491,8 +2491,8 @@ declare const PlatformToCoordinatorMessages: {
2491
2491
  type: "STRING_ERROR";
2492
2492
  raw: string;
2493
2493
  } | {
2494
- type: "INTERNAL_ERROR";
2495
2494
  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";
2495
+ type: "INTERNAL_ERROR";
2496
2496
  message?: string | undefined;
2497
2497
  };
2498
2498
  id: string;
@@ -2550,18 +2550,18 @@ declare const PlatformToCoordinatorMessages: {
2550
2550
  createdAt: z.ZodDate;
2551
2551
  idempotencyKey: z.ZodOptional<z.ZodString>;
2552
2552
  }, "strip", z.ZodTypeAny, {
2553
+ id: string;
2553
2554
  payload: string;
2554
2555
  payloadType: string;
2555
- id: string;
2556
2556
  tags: string[];
2557
2557
  isTest: boolean;
2558
2558
  createdAt: Date;
2559
2559
  context?: any;
2560
2560
  idempotencyKey?: string | undefined;
2561
2561
  }, {
2562
+ id: string;
2562
2563
  payload: string;
2563
2564
  payloadType: string;
2564
- id: string;
2565
2565
  tags: string[];
2566
2566
  createdAt: Date;
2567
2567
  context?: any;
@@ -2628,10 +2628,6 @@ declare const PlatformToCoordinatorMessages: {
2628
2628
  id: string;
2629
2629
  }>>;
2630
2630
  }, "strip", z.ZodTypeAny, {
2631
- queue: {
2632
- name: string;
2633
- id: string;
2634
- };
2635
2631
  task: {
2636
2632
  id: string;
2637
2633
  filePath: string;
@@ -2646,15 +2642,19 @@ declare const PlatformToCoordinatorMessages: {
2646
2642
  backgroundWorkerTaskId: string;
2647
2643
  };
2648
2644
  run: {
2645
+ id: string;
2649
2646
  payload: string;
2650
2647
  payloadType: string;
2651
- id: string;
2652
2648
  tags: string[];
2653
2649
  isTest: boolean;
2654
2650
  createdAt: Date;
2655
2651
  context?: any;
2656
2652
  idempotencyKey?: string | undefined;
2657
2653
  };
2654
+ queue: {
2655
+ name: string;
2656
+ id: string;
2657
+ };
2658
2658
  environment: {
2659
2659
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2660
2660
  id: string;
@@ -2675,10 +2675,6 @@ declare const PlatformToCoordinatorMessages: {
2675
2675
  id: string;
2676
2676
  } | undefined;
2677
2677
  }, {
2678
- queue: {
2679
- name: string;
2680
- id: string;
2681
- };
2682
2678
  task: {
2683
2679
  id: string;
2684
2680
  filePath: string;
@@ -2693,15 +2689,19 @@ declare const PlatformToCoordinatorMessages: {
2693
2689
  backgroundWorkerTaskId: string;
2694
2690
  };
2695
2691
  run: {
2692
+ id: string;
2696
2693
  payload: string;
2697
2694
  payloadType: string;
2698
- id: string;
2699
2695
  tags: string[];
2700
2696
  createdAt: Date;
2701
2697
  context?: any;
2702
2698
  isTest?: boolean | undefined;
2703
2699
  idempotencyKey?: string | undefined;
2704
2700
  };
2701
+ queue: {
2702
+ name: string;
2703
+ id: string;
2704
+ };
2705
2705
  environment: {
2706
2706
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2707
2707
  id: string;
@@ -2729,9 +2729,9 @@ declare const PlatformToCoordinatorMessages: {
2729
2729
  attemptId: string;
2730
2730
  completions: ({
2731
2731
  error: {
2732
- name: string;
2733
- type: "BUILT_IN_ERROR";
2734
2732
  message: string;
2733
+ type: "BUILT_IN_ERROR";
2734
+ name: string;
2735
2735
  stackTrace: string;
2736
2736
  } | {
2737
2737
  type: "CUSTOM_ERROR";
@@ -2740,8 +2740,8 @@ declare const PlatformToCoordinatorMessages: {
2740
2740
  type: "STRING_ERROR";
2741
2741
  raw: string;
2742
2742
  } | {
2743
- type: "INTERNAL_ERROR";
2744
2743
  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";
2744
+ type: "INTERNAL_ERROR";
2745
2745
  message?: string | undefined;
2746
2746
  };
2747
2747
  id: string;
@@ -2759,10 +2759,6 @@ declare const PlatformToCoordinatorMessages: {
2759
2759
  output?: string | undefined;
2760
2760
  })[];
2761
2761
  executions: {
2762
- queue: {
2763
- name: string;
2764
- id: string;
2765
- };
2766
2762
  task: {
2767
2763
  id: string;
2768
2764
  filePath: string;
@@ -2777,15 +2773,19 @@ declare const PlatformToCoordinatorMessages: {
2777
2773
  backgroundWorkerTaskId: string;
2778
2774
  };
2779
2775
  run: {
2776
+ id: string;
2780
2777
  payload: string;
2781
2778
  payloadType: string;
2782
- id: string;
2783
2779
  tags: string[];
2784
2780
  isTest: boolean;
2785
2781
  createdAt: Date;
2786
2782
  context?: any;
2787
2783
  idempotencyKey?: string | undefined;
2788
2784
  };
2785
+ queue: {
2786
+ name: string;
2787
+ id: string;
2788
+ };
2789
2789
  environment: {
2790
2790
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2791
2791
  id: string;
@@ -2812,9 +2812,9 @@ declare const PlatformToCoordinatorMessages: {
2812
2812
  attemptId: string;
2813
2813
  completions: ({
2814
2814
  error: {
2815
- name: string;
2816
- type: "BUILT_IN_ERROR";
2817
2815
  message: string;
2816
+ type: "BUILT_IN_ERROR";
2817
+ name: string;
2818
2818
  stackTrace: string;
2819
2819
  } | {
2820
2820
  type: "CUSTOM_ERROR";
@@ -2823,8 +2823,8 @@ declare const PlatformToCoordinatorMessages: {
2823
2823
  type: "STRING_ERROR";
2824
2824
  raw: string;
2825
2825
  } | {
2826
- type: "INTERNAL_ERROR";
2827
2826
  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";
2827
+ type: "INTERNAL_ERROR";
2828
2828
  message?: string | undefined;
2829
2829
  };
2830
2830
  id: string;
@@ -2842,10 +2842,6 @@ declare const PlatformToCoordinatorMessages: {
2842
2842
  output?: string | undefined;
2843
2843
  })[];
2844
2844
  executions: {
2845
- queue: {
2846
- name: string;
2847
- id: string;
2848
- };
2849
2845
  task: {
2850
2846
  id: string;
2851
2847
  filePath: string;
@@ -2860,15 +2856,19 @@ declare const PlatformToCoordinatorMessages: {
2860
2856
  backgroundWorkerTaskId: string;
2861
2857
  };
2862
2858
  run: {
2859
+ id: string;
2863
2860
  payload: string;
2864
2861
  payloadType: string;
2865
- id: string;
2866
2862
  tags: string[];
2867
2863
  createdAt: Date;
2868
2864
  context?: any;
2869
2865
  isTest?: boolean | undefined;
2870
2866
  idempotencyKey?: string | undefined;
2871
2867
  };
2868
+ queue: {
2869
+ name: string;
2870
+ id: string;
2871
+ };
2872
2872
  environment: {
2873
2873
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
2874
2874
  id: string;
@@ -2991,14 +2991,14 @@ declare const ClientToSharedQueueMessages: {
2991
2991
  message: z.ZodString;
2992
2992
  stackTrace: z.ZodString;
2993
2993
  }, "strip", z.ZodTypeAny, {
2994
- name: string;
2995
- type: "BUILT_IN_ERROR";
2996
2994
  message: string;
2995
+ type: "BUILT_IN_ERROR";
2996
+ name: string;
2997
2997
  stackTrace: string;
2998
2998
  }, {
2999
- name: string;
3000
- type: "BUILT_IN_ERROR";
3001
2999
  message: string;
3000
+ type: "BUILT_IN_ERROR";
3001
+ name: string;
3002
3002
  stackTrace: string;
3003
3003
  }>, z.ZodObject<{
3004
3004
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -3023,12 +3023,12 @@ declare const ClientToSharedQueueMessages: {
3023
3023
  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
3024
  message: z.ZodOptional<z.ZodString>;
3025
3025
  }, "strip", z.ZodTypeAny, {
3026
- type: "INTERNAL_ERROR";
3027
3026
  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";
3027
+ type: "INTERNAL_ERROR";
3028
3028
  message?: string | undefined;
3029
3029
  }, {
3030
- type: "INTERNAL_ERROR";
3031
3030
  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";
3031
+ type: "INTERNAL_ERROR";
3032
3032
  message?: string | undefined;
3033
3033
  }>]>;
3034
3034
  retry: z.ZodOptional<z.ZodObject<{
@@ -3047,9 +3047,9 @@ declare const ClientToSharedQueueMessages: {
3047
3047
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
3048
3048
  }, "strip", z.ZodTypeAny, {
3049
3049
  error: {
3050
- name: string;
3051
- type: "BUILT_IN_ERROR";
3052
3050
  message: string;
3051
+ type: "BUILT_IN_ERROR";
3052
+ name: string;
3053
3053
  stackTrace: string;
3054
3054
  } | {
3055
3055
  type: "CUSTOM_ERROR";
@@ -3058,8 +3058,8 @@ declare const ClientToSharedQueueMessages: {
3058
3058
  type: "STRING_ERROR";
3059
3059
  raw: string;
3060
3060
  } | {
3061
- type: "INTERNAL_ERROR";
3062
3061
  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";
3062
+ type: "INTERNAL_ERROR";
3063
3063
  message?: string | undefined;
3064
3064
  };
3065
3065
  id: string;
@@ -3072,9 +3072,9 @@ declare const ClientToSharedQueueMessages: {
3072
3072
  skippedRetrying?: boolean | undefined;
3073
3073
  }, {
3074
3074
  error: {
3075
- name: string;
3076
- type: "BUILT_IN_ERROR";
3077
3075
  message: string;
3076
+ type: "BUILT_IN_ERROR";
3077
+ name: string;
3078
3078
  stackTrace: string;
3079
3079
  } | {
3080
3080
  type: "CUSTOM_ERROR";
@@ -3083,8 +3083,8 @@ declare const ClientToSharedQueueMessages: {
3083
3083
  type: "STRING_ERROR";
3084
3084
  raw: string;
3085
3085
  } | {
3086
- type: "INTERNAL_ERROR";
3087
3086
  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";
3087
+ type: "INTERNAL_ERROR";
3088
3088
  message?: string | undefined;
3089
3089
  };
3090
3090
  id: string;
@@ -3142,18 +3142,18 @@ declare const ClientToSharedQueueMessages: {
3142
3142
  createdAt: z.ZodDate;
3143
3143
  idempotencyKey: z.ZodOptional<z.ZodString>;
3144
3144
  }, "strip", z.ZodTypeAny, {
3145
+ id: string;
3145
3146
  payload: string;
3146
3147
  payloadType: string;
3147
- id: string;
3148
3148
  tags: string[];
3149
3149
  isTest: boolean;
3150
3150
  createdAt: Date;
3151
3151
  context?: any;
3152
3152
  idempotencyKey?: string | undefined;
3153
3153
  }, {
3154
+ id: string;
3154
3155
  payload: string;
3155
3156
  payloadType: string;
3156
- id: string;
3157
3157
  tags: string[];
3158
3158
  createdAt: Date;
3159
3159
  context?: any;
@@ -3220,10 +3220,6 @@ declare const ClientToSharedQueueMessages: {
3220
3220
  id: string;
3221
3221
  }>>;
3222
3222
  }, "strip", z.ZodTypeAny, {
3223
- queue: {
3224
- name: string;
3225
- id: string;
3226
- };
3227
3223
  task: {
3228
3224
  id: string;
3229
3225
  filePath: string;
@@ -3238,15 +3234,19 @@ declare const ClientToSharedQueueMessages: {
3238
3234
  backgroundWorkerTaskId: string;
3239
3235
  };
3240
3236
  run: {
3237
+ id: string;
3241
3238
  payload: string;
3242
3239
  payloadType: string;
3243
- id: string;
3244
3240
  tags: string[];
3245
3241
  isTest: boolean;
3246
3242
  createdAt: Date;
3247
3243
  context?: any;
3248
3244
  idempotencyKey?: string | undefined;
3249
3245
  };
3246
+ queue: {
3247
+ name: string;
3248
+ id: string;
3249
+ };
3250
3250
  environment: {
3251
3251
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3252
3252
  id: string;
@@ -3267,10 +3267,6 @@ declare const ClientToSharedQueueMessages: {
3267
3267
  id: string;
3268
3268
  } | undefined;
3269
3269
  }, {
3270
- queue: {
3271
- name: string;
3272
- id: string;
3273
- };
3274
3270
  task: {
3275
3271
  id: string;
3276
3272
  filePath: string;
@@ -3285,15 +3281,19 @@ declare const ClientToSharedQueueMessages: {
3285
3281
  backgroundWorkerTaskId: string;
3286
3282
  };
3287
3283
  run: {
3284
+ id: string;
3288
3285
  payload: string;
3289
3286
  payloadType: string;
3290
- id: string;
3291
3287
  tags: string[];
3292
3288
  createdAt: Date;
3293
3289
  context?: any;
3294
3290
  isTest?: boolean | undefined;
3295
3291
  idempotencyKey?: string | undefined;
3296
3292
  };
3293
+ queue: {
3294
+ name: string;
3295
+ id: string;
3296
+ };
3297
3297
  environment: {
3298
3298
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3299
3299
  id: string;
@@ -3318,10 +3318,6 @@ declare const ClientToSharedQueueMessages: {
3318
3318
  type: "TASK_RUN_COMPLETED";
3319
3319
  version: "v1";
3320
3320
  execution: {
3321
- queue: {
3322
- name: string;
3323
- id: string;
3324
- };
3325
3321
  task: {
3326
3322
  id: string;
3327
3323
  filePath: string;
@@ -3336,15 +3332,19 @@ declare const ClientToSharedQueueMessages: {
3336
3332
  backgroundWorkerTaskId: string;
3337
3333
  };
3338
3334
  run: {
3335
+ id: string;
3339
3336
  payload: string;
3340
3337
  payloadType: string;
3341
- id: string;
3342
3338
  tags: string[];
3343
3339
  isTest: boolean;
3344
3340
  createdAt: Date;
3345
3341
  context?: any;
3346
3342
  idempotencyKey?: string | undefined;
3347
3343
  };
3344
+ queue: {
3345
+ name: string;
3346
+ id: string;
3347
+ };
3348
3348
  environment: {
3349
3349
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3350
3350
  id: string;
@@ -3367,9 +3367,9 @@ declare const ClientToSharedQueueMessages: {
3367
3367
  };
3368
3368
  completion: {
3369
3369
  error: {
3370
- name: string;
3371
- type: "BUILT_IN_ERROR";
3372
3370
  message: string;
3371
+ type: "BUILT_IN_ERROR";
3372
+ name: string;
3373
3373
  stackTrace: string;
3374
3374
  } | {
3375
3375
  type: "CUSTOM_ERROR";
@@ -3378,8 +3378,8 @@ declare const ClientToSharedQueueMessages: {
3378
3378
  type: "STRING_ERROR";
3379
3379
  raw: string;
3380
3380
  } | {
3381
- type: "INTERNAL_ERROR";
3382
3381
  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";
3382
+ type: "INTERNAL_ERROR";
3383
3383
  message?: string | undefined;
3384
3384
  };
3385
3385
  id: string;
@@ -3399,10 +3399,6 @@ declare const ClientToSharedQueueMessages: {
3399
3399
  }, {
3400
3400
  type: "TASK_RUN_COMPLETED";
3401
3401
  execution: {
3402
- queue: {
3403
- name: string;
3404
- id: string;
3405
- };
3406
3402
  task: {
3407
3403
  id: string;
3408
3404
  filePath: string;
@@ -3417,15 +3413,19 @@ declare const ClientToSharedQueueMessages: {
3417
3413
  backgroundWorkerTaskId: string;
3418
3414
  };
3419
3415
  run: {
3416
+ id: string;
3420
3417
  payload: string;
3421
3418
  payloadType: string;
3422
- id: string;
3423
3419
  tags: string[];
3424
3420
  createdAt: Date;
3425
3421
  context?: any;
3426
3422
  isTest?: boolean | undefined;
3427
3423
  idempotencyKey?: string | undefined;
3428
3424
  };
3425
+ queue: {
3426
+ name: string;
3427
+ id: string;
3428
+ };
3429
3429
  environment: {
3430
3430
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3431
3431
  id: string;
@@ -3448,9 +3448,9 @@ declare const ClientToSharedQueueMessages: {
3448
3448
  };
3449
3449
  completion: {
3450
3450
  error: {
3451
- name: string;
3452
- type: "BUILT_IN_ERROR";
3453
3451
  message: string;
3452
+ type: "BUILT_IN_ERROR";
3453
+ name: string;
3454
3454
  stackTrace: string;
3455
3455
  } | {
3456
3456
  type: "CUSTOM_ERROR";
@@ -3459,8 +3459,8 @@ declare const ClientToSharedQueueMessages: {
3459
3459
  type: "STRING_ERROR";
3460
3460
  raw: string;
3461
3461
  } | {
3462
- type: "INTERNAL_ERROR";
3463
3462
  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";
3463
+ type: "INTERNAL_ERROR";
3464
3464
  message?: string | undefined;
3465
3465
  };
3466
3466
  id: string;
@@ -3496,10 +3496,6 @@ declare const ClientToSharedQueueMessages: {
3496
3496
  type: "TASK_RUN_COMPLETED";
3497
3497
  version: "v1";
3498
3498
  execution: {
3499
- queue: {
3500
- name: string;
3501
- id: string;
3502
- };
3503
3499
  task: {
3504
3500
  id: string;
3505
3501
  filePath: string;
@@ -3514,15 +3510,19 @@ declare const ClientToSharedQueueMessages: {
3514
3510
  backgroundWorkerTaskId: string;
3515
3511
  };
3516
3512
  run: {
3513
+ id: string;
3517
3514
  payload: string;
3518
3515
  payloadType: string;
3519
- id: string;
3520
3516
  tags: string[];
3521
3517
  isTest: boolean;
3522
3518
  createdAt: Date;
3523
3519
  context?: any;
3524
3520
  idempotencyKey?: string | undefined;
3525
3521
  };
3522
+ queue: {
3523
+ name: string;
3524
+ id: string;
3525
+ };
3526
3526
  environment: {
3527
3527
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3528
3528
  id: string;
@@ -3545,9 +3545,9 @@ declare const ClientToSharedQueueMessages: {
3545
3545
  };
3546
3546
  completion: {
3547
3547
  error: {
3548
- name: string;
3549
- type: "BUILT_IN_ERROR";
3550
3548
  message: string;
3549
+ type: "BUILT_IN_ERROR";
3550
+ name: string;
3551
3551
  stackTrace: string;
3552
3552
  } | {
3553
3553
  type: "CUSTOM_ERROR";
@@ -3556,8 +3556,8 @@ declare const ClientToSharedQueueMessages: {
3556
3556
  type: "STRING_ERROR";
3557
3557
  raw: string;
3558
3558
  } | {
3559
- type: "INTERNAL_ERROR";
3560
3559
  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";
3560
+ type: "INTERNAL_ERROR";
3561
3561
  message?: string | undefined;
3562
3562
  };
3563
3563
  id: string;
@@ -3585,10 +3585,6 @@ declare const ClientToSharedQueueMessages: {
3585
3585
  data: {
3586
3586
  type: "TASK_RUN_COMPLETED";
3587
3587
  execution: {
3588
- queue: {
3589
- name: string;
3590
- id: string;
3591
- };
3592
3588
  task: {
3593
3589
  id: string;
3594
3590
  filePath: string;
@@ -3603,15 +3599,19 @@ declare const ClientToSharedQueueMessages: {
3603
3599
  backgroundWorkerTaskId: string;
3604
3600
  };
3605
3601
  run: {
3602
+ id: string;
3606
3603
  payload: string;
3607
3604
  payloadType: string;
3608
- id: string;
3609
3605
  tags: string[];
3610
3606
  createdAt: Date;
3611
3607
  context?: any;
3612
3608
  isTest?: boolean | undefined;
3613
3609
  idempotencyKey?: string | undefined;
3614
3610
  };
3611
+ queue: {
3612
+ name: string;
3613
+ id: string;
3614
+ };
3615
3615
  environment: {
3616
3616
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3617
3617
  id: string;
@@ -3634,9 +3634,9 @@ declare const ClientToSharedQueueMessages: {
3634
3634
  };
3635
3635
  completion: {
3636
3636
  error: {
3637
- name: string;
3638
- type: "BUILT_IN_ERROR";
3639
3637
  message: string;
3638
+ type: "BUILT_IN_ERROR";
3639
+ name: string;
3640
3640
  stackTrace: string;
3641
3641
  } | {
3642
3642
  type: "CUSTOM_ERROR";
@@ -3645,8 +3645,8 @@ declare const ClientToSharedQueueMessages: {
3645
3645
  type: "STRING_ERROR";
3646
3646
  raw: string;
3647
3647
  } | {
3648
- type: "INTERNAL_ERROR";
3649
3648
  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";
3649
+ type: "INTERNAL_ERROR";
3650
3650
  message?: string | undefined;
3651
3651
  };
3652
3652
  id: string;
@@ -3740,18 +3740,18 @@ declare const SharedQueueToClientMessages: {
3740
3740
  createdAt: z.ZodDate;
3741
3741
  idempotencyKey: z.ZodOptional<z.ZodString>;
3742
3742
  }, "strip", z.ZodTypeAny, {
3743
+ id: string;
3743
3744
  payload: string;
3744
3745
  payloadType: string;
3745
- id: string;
3746
3746
  tags: string[];
3747
3747
  isTest: boolean;
3748
3748
  createdAt: Date;
3749
3749
  context?: any;
3750
3750
  idempotencyKey?: string | undefined;
3751
3751
  }, {
3752
+ id: string;
3752
3753
  payload: string;
3753
3754
  payloadType: string;
3754
- id: string;
3755
3755
  tags: string[];
3756
3756
  createdAt: Date;
3757
3757
  context?: any;
@@ -3818,10 +3818,6 @@ declare const SharedQueueToClientMessages: {
3818
3818
  id: string;
3819
3819
  }>>;
3820
3820
  }, "strip", z.ZodTypeAny, {
3821
- queue: {
3822
- name: string;
3823
- id: string;
3824
- };
3825
3821
  task: {
3826
3822
  id: string;
3827
3823
  filePath: string;
@@ -3836,15 +3832,19 @@ declare const SharedQueueToClientMessages: {
3836
3832
  backgroundWorkerTaskId: string;
3837
3833
  };
3838
3834
  run: {
3835
+ id: string;
3839
3836
  payload: string;
3840
3837
  payloadType: string;
3841
- id: string;
3842
3838
  tags: string[];
3843
3839
  isTest: boolean;
3844
3840
  createdAt: Date;
3845
3841
  context?: any;
3846
3842
  idempotencyKey?: string | undefined;
3847
3843
  };
3844
+ queue: {
3845
+ name: string;
3846
+ id: string;
3847
+ };
3848
3848
  environment: {
3849
3849
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3850
3850
  id: string;
@@ -3865,10 +3865,6 @@ declare const SharedQueueToClientMessages: {
3865
3865
  id: string;
3866
3866
  } | undefined;
3867
3867
  }, {
3868
- queue: {
3869
- name: string;
3870
- id: string;
3871
- };
3872
3868
  task: {
3873
3869
  id: string;
3874
3870
  filePath: string;
@@ -3883,15 +3879,19 @@ declare const SharedQueueToClientMessages: {
3883
3879
  backgroundWorkerTaskId: string;
3884
3880
  };
3885
3881
  run: {
3882
+ id: string;
3886
3883
  payload: string;
3887
3884
  payloadType: string;
3888
- id: string;
3889
3885
  tags: string[];
3890
3886
  createdAt: Date;
3891
3887
  context?: any;
3892
3888
  isTest?: boolean | undefined;
3893
3889
  idempotencyKey?: string | undefined;
3894
3890
  };
3891
+ queue: {
3892
+ name: string;
3893
+ id: string;
3894
+ };
3895
3895
  environment: {
3896
3896
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3897
3897
  id: string;
@@ -3916,10 +3916,6 @@ declare const SharedQueueToClientMessages: {
3916
3916
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3917
3917
  }, "strip", z.ZodTypeAny, {
3918
3918
  execution: {
3919
- queue: {
3920
- name: string;
3921
- id: string;
3922
- };
3923
3919
  task: {
3924
3920
  id: string;
3925
3921
  filePath: string;
@@ -3934,15 +3930,19 @@ declare const SharedQueueToClientMessages: {
3934
3930
  backgroundWorkerTaskId: string;
3935
3931
  };
3936
3932
  run: {
3933
+ id: string;
3937
3934
  payload: string;
3938
3935
  payloadType: string;
3939
- id: string;
3940
3936
  tags: string[];
3941
3937
  isTest: boolean;
3942
3938
  createdAt: Date;
3943
3939
  context?: any;
3944
3940
  idempotencyKey?: string | undefined;
3945
3941
  };
3942
+ queue: {
3943
+ name: string;
3944
+ id: string;
3945
+ };
3946
3946
  environment: {
3947
3947
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3948
3948
  id: string;
@@ -3967,10 +3967,6 @@ declare const SharedQueueToClientMessages: {
3967
3967
  environment?: Record<string, string> | undefined;
3968
3968
  }, {
3969
3969
  execution: {
3970
- queue: {
3971
- name: string;
3972
- id: string;
3973
- };
3974
3970
  task: {
3975
3971
  id: string;
3976
3972
  filePath: string;
@@ -3985,15 +3981,19 @@ declare const SharedQueueToClientMessages: {
3985
3981
  backgroundWorkerTaskId: string;
3986
3982
  };
3987
3983
  run: {
3984
+ id: string;
3988
3985
  payload: string;
3989
3986
  payloadType: string;
3990
- id: string;
3991
3987
  tags: string[];
3992
3988
  createdAt: Date;
3993
3989
  context?: any;
3994
3990
  isTest?: boolean | undefined;
3995
3991
  idempotencyKey?: string | undefined;
3996
3992
  };
3993
+ queue: {
3994
+ name: string;
3995
+ id: string;
3996
+ };
3997
3997
  environment: {
3998
3998
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3999
3999
  id: string;
@@ -4021,10 +4021,6 @@ declare const SharedQueueToClientMessages: {
4021
4021
  type: "EXECUTE_RUNS";
4022
4022
  payloads: {
4023
4023
  execution: {
4024
- queue: {
4025
- name: string;
4026
- id: string;
4027
- };
4028
4024
  task: {
4029
4025
  id: string;
4030
4026
  filePath: string;
@@ -4039,15 +4035,19 @@ declare const SharedQueueToClientMessages: {
4039
4035
  backgroundWorkerTaskId: string;
4040
4036
  };
4041
4037
  run: {
4038
+ id: string;
4042
4039
  payload: string;
4043
4040
  payloadType: string;
4044
- id: string;
4045
4041
  tags: string[];
4046
4042
  isTest: boolean;
4047
4043
  createdAt: Date;
4048
4044
  context?: any;
4049
4045
  idempotencyKey?: string | undefined;
4050
4046
  };
4047
+ queue: {
4048
+ name: string;
4049
+ id: string;
4050
+ };
4051
4051
  environment: {
4052
4052
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4053
4053
  id: string;
@@ -4075,10 +4075,6 @@ declare const SharedQueueToClientMessages: {
4075
4075
  type: "EXECUTE_RUNS";
4076
4076
  payloads: {
4077
4077
  execution: {
4078
- queue: {
4079
- name: string;
4080
- id: string;
4081
- };
4082
4078
  task: {
4083
4079
  id: string;
4084
4080
  filePath: string;
@@ -4093,15 +4089,19 @@ declare const SharedQueueToClientMessages: {
4093
4089
  backgroundWorkerTaskId: string;
4094
4090
  };
4095
4091
  run: {
4092
+ id: string;
4096
4093
  payload: string;
4097
4094
  payloadType: string;
4098
- id: string;
4099
4095
  tags: string[];
4100
4096
  createdAt: Date;
4101
4097
  context?: any;
4102
4098
  isTest?: boolean | undefined;
4103
4099
  idempotencyKey?: string | undefined;
4104
4100
  };
4101
+ queue: {
4102
+ name: string;
4103
+ id: string;
4104
+ };
4105
4105
  environment: {
4106
4106
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4107
4107
  id: string;
@@ -4196,10 +4196,6 @@ declare const SharedQueueToClientMessages: {
4196
4196
  type: "EXECUTE_RUNS";
4197
4197
  payloads: {
4198
4198
  execution: {
4199
- queue: {
4200
- name: string;
4201
- id: string;
4202
- };
4203
4199
  task: {
4204
4200
  id: string;
4205
4201
  filePath: string;
@@ -4214,15 +4210,19 @@ declare const SharedQueueToClientMessages: {
4214
4210
  backgroundWorkerTaskId: string;
4215
4211
  };
4216
4212
  run: {
4213
+ id: string;
4217
4214
  payload: string;
4218
4215
  payloadType: string;
4219
- id: string;
4220
4216
  tags: string[];
4221
4217
  isTest: boolean;
4222
4218
  createdAt: Date;
4223
4219
  context?: any;
4224
4220
  idempotencyKey?: string | undefined;
4225
4221
  };
4222
+ queue: {
4223
+ name: string;
4224
+ id: string;
4225
+ };
4226
4226
  environment: {
4227
4227
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4228
4228
  id: string;
@@ -4273,10 +4273,6 @@ declare const SharedQueueToClientMessages: {
4273
4273
  type: "EXECUTE_RUNS";
4274
4274
  payloads: {
4275
4275
  execution: {
4276
- queue: {
4277
- name: string;
4278
- id: string;
4279
- };
4280
4276
  task: {
4281
4277
  id: string;
4282
4278
  filePath: string;
@@ -4291,15 +4287,19 @@ declare const SharedQueueToClientMessages: {
4291
4287
  backgroundWorkerTaskId: string;
4292
4288
  };
4293
4289
  run: {
4290
+ id: string;
4294
4291
  payload: string;
4295
4292
  payloadType: string;
4296
- id: string;
4297
4293
  tags: string[];
4298
4294
  createdAt: Date;
4299
4295
  context?: any;
4300
4296
  isTest?: boolean | undefined;
4301
4297
  idempotencyKey?: string | undefined;
4302
4298
  };
4299
+ queue: {
4300
+ name: string;
4301
+ id: string;
4302
+ };
4303
4303
  environment: {
4304
4304
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4305
4305
  id: string;
@@ -4895,16 +4895,6 @@ declare const ProdWorkerToCoordinatorMessages: {
4895
4895
  message: z.ZodObject<{
4896
4896
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
4897
4897
  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
4898
  task: z.ZodObject<{
4909
4899
  id: z.ZodString;
4910
4900
  filePath: z.ZodString;
@@ -4950,24 +4940,34 @@ declare const ProdWorkerToCoordinatorMessages: {
4950
4940
  createdAt: z.ZodDate;
4951
4941
  idempotencyKey: z.ZodOptional<z.ZodString>;
4952
4942
  }, "strip", z.ZodTypeAny, {
4943
+ id: string;
4953
4944
  payload: string;
4954
4945
  payloadType: string;
4955
- id: string;
4956
4946
  tags: string[];
4957
4947
  isTest: boolean;
4958
4948
  createdAt: Date;
4959
4949
  context?: any;
4960
4950
  idempotencyKey?: string | undefined;
4961
4951
  }, {
4952
+ id: string;
4962
4953
  payload: string;
4963
4954
  payloadType: string;
4964
- id: string;
4965
4955
  tags: string[];
4966
4956
  createdAt: Date;
4967
4957
  context?: any;
4968
4958
  isTest?: boolean | undefined;
4969
4959
  idempotencyKey?: string | undefined;
4970
4960
  }>;
4961
+ queue: z.ZodObject<{
4962
+ id: z.ZodString;
4963
+ name: z.ZodString;
4964
+ }, "strip", z.ZodTypeAny, {
4965
+ name: string;
4966
+ id: string;
4967
+ }, {
4968
+ name: string;
4969
+ id: string;
4970
+ }>;
4971
4971
  environment: z.ZodObject<{
4972
4972
  id: z.ZodString;
4973
4973
  slug: z.ZodString;
@@ -5031,10 +5031,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5031
5031
  contentHash: string;
5032
5032
  }>;
5033
5033
  }, "strip", z.ZodTypeAny, {
5034
- queue: {
5035
- name: string;
5036
- id: string;
5037
- };
5038
5034
  task: {
5039
5035
  id: string;
5040
5036
  filePath: string;
@@ -5049,15 +5045,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5049
5045
  backgroundWorkerTaskId: string;
5050
5046
  };
5051
5047
  run: {
5048
+ id: string;
5052
5049
  payload: string;
5053
5050
  payloadType: string;
5054
- id: string;
5055
5051
  tags: string[];
5056
5052
  isTest: boolean;
5057
5053
  createdAt: Date;
5058
5054
  context?: any;
5059
5055
  idempotencyKey?: string | undefined;
5060
5056
  };
5057
+ queue: {
5058
+ name: string;
5059
+ id: string;
5060
+ };
5061
5061
  environment: {
5062
5062
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5063
5063
  id: string;
@@ -5083,10 +5083,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5083
5083
  id: string;
5084
5084
  } | undefined;
5085
5085
  }, {
5086
- queue: {
5087
- name: string;
5088
- id: string;
5089
- };
5090
5086
  task: {
5091
5087
  id: string;
5092
5088
  filePath: string;
@@ -5101,15 +5097,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5101
5097
  backgroundWorkerTaskId: string;
5102
5098
  };
5103
5099
  run: {
5100
+ id: string;
5104
5101
  payload: string;
5105
5102
  payloadType: string;
5106
- id: string;
5107
5103
  tags: string[];
5108
5104
  createdAt: Date;
5109
5105
  context?: any;
5110
5106
  isTest?: boolean | undefined;
5111
5107
  idempotencyKey?: string | undefined;
5112
5108
  };
5109
+ queue: {
5110
+ name: string;
5111
+ id: string;
5112
+ };
5113
5113
  environment: {
5114
5114
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5115
5115
  id: string;
@@ -5159,14 +5159,14 @@ declare const ProdWorkerToCoordinatorMessages: {
5159
5159
  message: z.ZodString;
5160
5160
  stackTrace: z.ZodString;
5161
5161
  }, "strip", z.ZodTypeAny, {
5162
- name: string;
5163
- type: "BUILT_IN_ERROR";
5164
5162
  message: string;
5163
+ type: "BUILT_IN_ERROR";
5164
+ name: string;
5165
5165
  stackTrace: string;
5166
5166
  }, {
5167
- name: string;
5168
- type: "BUILT_IN_ERROR";
5169
5167
  message: string;
5168
+ type: "BUILT_IN_ERROR";
5169
+ name: string;
5170
5170
  stackTrace: string;
5171
5171
  }>, z.ZodObject<{
5172
5172
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -5191,12 +5191,12 @@ declare const ProdWorkerToCoordinatorMessages: {
5191
5191
  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
5192
  message: z.ZodOptional<z.ZodString>;
5193
5193
  }, "strip", z.ZodTypeAny, {
5194
- type: "INTERNAL_ERROR";
5195
5194
  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";
5195
+ type: "INTERNAL_ERROR";
5196
5196
  message?: string | undefined;
5197
5197
  }, {
5198
- type: "INTERNAL_ERROR";
5199
5198
  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";
5199
+ type: "INTERNAL_ERROR";
5200
5200
  message?: string | undefined;
5201
5201
  }>]>;
5202
5202
  retry: z.ZodOptional<z.ZodObject<{
@@ -5215,9 +5215,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5215
5215
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
5216
5216
  }, "strip", z.ZodTypeAny, {
5217
5217
  error: {
5218
- name: string;
5219
- type: "BUILT_IN_ERROR";
5220
5218
  message: string;
5219
+ type: "BUILT_IN_ERROR";
5220
+ name: string;
5221
5221
  stackTrace: string;
5222
5222
  } | {
5223
5223
  type: "CUSTOM_ERROR";
@@ -5226,8 +5226,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5226
5226
  type: "STRING_ERROR";
5227
5227
  raw: string;
5228
5228
  } | {
5229
- type: "INTERNAL_ERROR";
5230
5229
  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";
5230
+ type: "INTERNAL_ERROR";
5231
5231
  message?: string | undefined;
5232
5232
  };
5233
5233
  id: string;
@@ -5240,9 +5240,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5240
5240
  skippedRetrying?: boolean | undefined;
5241
5241
  }, {
5242
5242
  error: {
5243
- name: string;
5244
- type: "BUILT_IN_ERROR";
5245
5243
  message: string;
5244
+ type: "BUILT_IN_ERROR";
5245
+ name: string;
5246
5246
  stackTrace: string;
5247
5247
  } | {
5248
5248
  type: "CUSTOM_ERROR";
@@ -5251,8 +5251,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5251
5251
  type: "STRING_ERROR";
5252
5252
  raw: string;
5253
5253
  } | {
5254
- type: "INTERNAL_ERROR";
5255
5254
  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";
5255
+ type: "INTERNAL_ERROR";
5256
5256
  message?: string | undefined;
5257
5257
  };
5258
5258
  id: string;
@@ -5267,10 +5267,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5267
5267
  }, "strip", z.ZodTypeAny, {
5268
5268
  version: "v1";
5269
5269
  execution: {
5270
- queue: {
5271
- name: string;
5272
- id: string;
5273
- };
5274
5270
  task: {
5275
5271
  id: string;
5276
5272
  filePath: string;
@@ -5285,15 +5281,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5285
5281
  backgroundWorkerTaskId: string;
5286
5282
  };
5287
5283
  run: {
5284
+ id: string;
5288
5285
  payload: string;
5289
5286
  payloadType: string;
5290
- id: string;
5291
5287
  tags: string[];
5292
5288
  isTest: boolean;
5293
5289
  createdAt: Date;
5294
5290
  context?: any;
5295
5291
  idempotencyKey?: string | undefined;
5296
5292
  };
5293
+ queue: {
5294
+ name: string;
5295
+ id: string;
5296
+ };
5297
5297
  environment: {
5298
5298
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5299
5299
  id: string;
@@ -5321,9 +5321,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5321
5321
  };
5322
5322
  completion: {
5323
5323
  error: {
5324
- name: string;
5325
- type: "BUILT_IN_ERROR";
5326
5324
  message: string;
5325
+ type: "BUILT_IN_ERROR";
5326
+ name: string;
5327
5327
  stackTrace: string;
5328
5328
  } | {
5329
5329
  type: "CUSTOM_ERROR";
@@ -5332,8 +5332,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5332
5332
  type: "STRING_ERROR";
5333
5333
  raw: string;
5334
5334
  } | {
5335
- type: "INTERNAL_ERROR";
5336
5335
  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";
5336
+ type: "INTERNAL_ERROR";
5337
5337
  message?: string | undefined;
5338
5338
  };
5339
5339
  id: string;
@@ -5352,10 +5352,6 @@ declare const ProdWorkerToCoordinatorMessages: {
5352
5352
  };
5353
5353
  }, {
5354
5354
  execution: {
5355
- queue: {
5356
- name: string;
5357
- id: string;
5358
- };
5359
5355
  task: {
5360
5356
  id: string;
5361
5357
  filePath: string;
@@ -5370,15 +5366,19 @@ declare const ProdWorkerToCoordinatorMessages: {
5370
5366
  backgroundWorkerTaskId: string;
5371
5367
  };
5372
5368
  run: {
5369
+ id: string;
5373
5370
  payload: string;
5374
5371
  payloadType: string;
5375
- id: string;
5376
5372
  tags: string[];
5377
5373
  createdAt: Date;
5378
5374
  context?: any;
5379
5375
  isTest?: boolean | undefined;
5380
5376
  idempotencyKey?: string | undefined;
5381
5377
  };
5378
+ queue: {
5379
+ name: string;
5380
+ id: string;
5381
+ };
5382
5382
  environment: {
5383
5383
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5384
5384
  id: string;
@@ -5406,9 +5406,9 @@ declare const ProdWorkerToCoordinatorMessages: {
5406
5406
  };
5407
5407
  completion: {
5408
5408
  error: {
5409
- name: string;
5410
- type: "BUILT_IN_ERROR";
5411
5409
  message: string;
5410
+ type: "BUILT_IN_ERROR";
5411
+ name: string;
5412
5412
  stackTrace: string;
5413
5413
  } | {
5414
5414
  type: "CUSTOM_ERROR";
@@ -5417,8 +5417,8 @@ declare const ProdWorkerToCoordinatorMessages: {
5417
5417
  type: "STRING_ERROR";
5418
5418
  raw: string;
5419
5419
  } | {
5420
- type: "INTERNAL_ERROR";
5421
5420
  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";
5421
+ type: "INTERNAL_ERROR";
5422
5422
  message?: string | undefined;
5423
5423
  };
5424
5424
  id: string;
@@ -5529,26 +5529,26 @@ declare const ProdWorkerToCoordinatorMessages: {
5529
5529
  message: z.ZodString;
5530
5530
  stack: z.ZodOptional<z.ZodString>;
5531
5531
  }, "strip", z.ZodTypeAny, {
5532
- name: string;
5533
5532
  message: string;
5533
+ name: string;
5534
5534
  stack?: string | undefined;
5535
5535
  }, {
5536
- name: string;
5537
5536
  message: string;
5537
+ name: string;
5538
5538
  stack?: string | undefined;
5539
5539
  }>;
5540
5540
  }, "strip", z.ZodTypeAny, {
5541
5541
  error: {
5542
- name: string;
5543
5542
  message: string;
5543
+ name: string;
5544
5544
  stack?: string | undefined;
5545
5545
  };
5546
5546
  version: "v1";
5547
5547
  deploymentId: string;
5548
5548
  }, {
5549
5549
  error: {
5550
- name: string;
5551
5550
  message: string;
5551
+ name: string;
5552
5552
  stack?: string | undefined;
5553
5553
  };
5554
5554
  deploymentId: string;
@@ -5585,14 +5585,14 @@ declare const CoordinatorToProdWorkerMessages: {
5585
5585
  message: z.ZodString;
5586
5586
  stackTrace: z.ZodString;
5587
5587
  }, "strip", z.ZodTypeAny, {
5588
- name: string;
5589
- type: "BUILT_IN_ERROR";
5590
5588
  message: string;
5589
+ type: "BUILT_IN_ERROR";
5590
+ name: string;
5591
5591
  stackTrace: string;
5592
5592
  }, {
5593
- name: string;
5594
- type: "BUILT_IN_ERROR";
5595
5593
  message: string;
5594
+ type: "BUILT_IN_ERROR";
5595
+ name: string;
5596
5596
  stackTrace: string;
5597
5597
  }>, z.ZodObject<{
5598
5598
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -5617,12 +5617,12 @@ declare const CoordinatorToProdWorkerMessages: {
5617
5617
  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
5618
  message: z.ZodOptional<z.ZodString>;
5619
5619
  }, "strip", z.ZodTypeAny, {
5620
- type: "INTERNAL_ERROR";
5621
5620
  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";
5621
+ type: "INTERNAL_ERROR";
5622
5622
  message?: string | undefined;
5623
5623
  }, {
5624
- type: "INTERNAL_ERROR";
5625
5624
  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";
5625
+ type: "INTERNAL_ERROR";
5626
5626
  message?: string | undefined;
5627
5627
  }>]>;
5628
5628
  retry: z.ZodOptional<z.ZodObject<{
@@ -5641,9 +5641,9 @@ declare const CoordinatorToProdWorkerMessages: {
5641
5641
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
5642
5642
  }, "strip", z.ZodTypeAny, {
5643
5643
  error: {
5644
- name: string;
5645
- type: "BUILT_IN_ERROR";
5646
5644
  message: string;
5645
+ type: "BUILT_IN_ERROR";
5646
+ name: string;
5647
5647
  stackTrace: string;
5648
5648
  } | {
5649
5649
  type: "CUSTOM_ERROR";
@@ -5652,8 +5652,8 @@ declare const CoordinatorToProdWorkerMessages: {
5652
5652
  type: "STRING_ERROR";
5653
5653
  raw: string;
5654
5654
  } | {
5655
- type: "INTERNAL_ERROR";
5656
5655
  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";
5656
+ type: "INTERNAL_ERROR";
5657
5657
  message?: string | undefined;
5658
5658
  };
5659
5659
  id: string;
@@ -5666,9 +5666,9 @@ declare const CoordinatorToProdWorkerMessages: {
5666
5666
  skippedRetrying?: boolean | undefined;
5667
5667
  }, {
5668
5668
  error: {
5669
- name: string;
5670
- type: "BUILT_IN_ERROR";
5671
5669
  message: string;
5670
+ type: "BUILT_IN_ERROR";
5671
+ name: string;
5672
5672
  stackTrace: string;
5673
5673
  } | {
5674
5674
  type: "CUSTOM_ERROR";
@@ -5677,8 +5677,8 @@ declare const CoordinatorToProdWorkerMessages: {
5677
5677
  type: "STRING_ERROR";
5678
5678
  raw: string;
5679
5679
  } | {
5680
- type: "INTERNAL_ERROR";
5681
5680
  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";
5681
+ type: "INTERNAL_ERROR";
5682
5682
  message?: string | undefined;
5683
5683
  };
5684
5684
  id: string;
@@ -5736,18 +5736,18 @@ declare const CoordinatorToProdWorkerMessages: {
5736
5736
  createdAt: z.ZodDate;
5737
5737
  idempotencyKey: z.ZodOptional<z.ZodString>;
5738
5738
  }, "strip", z.ZodTypeAny, {
5739
+ id: string;
5739
5740
  payload: string;
5740
5741
  payloadType: string;
5741
- id: string;
5742
5742
  tags: string[];
5743
5743
  isTest: boolean;
5744
5744
  createdAt: Date;
5745
5745
  context?: any;
5746
5746
  idempotencyKey?: string | undefined;
5747
5747
  }, {
5748
+ id: string;
5748
5749
  payload: string;
5749
5750
  payloadType: string;
5750
- id: string;
5751
5751
  tags: string[];
5752
5752
  createdAt: Date;
5753
5753
  context?: any;
@@ -5814,10 +5814,6 @@ declare const CoordinatorToProdWorkerMessages: {
5814
5814
  id: string;
5815
5815
  }>>;
5816
5816
  }, "strip", z.ZodTypeAny, {
5817
- queue: {
5818
- name: string;
5819
- id: string;
5820
- };
5821
5817
  task: {
5822
5818
  id: string;
5823
5819
  filePath: string;
@@ -5832,15 +5828,19 @@ declare const CoordinatorToProdWorkerMessages: {
5832
5828
  backgroundWorkerTaskId: string;
5833
5829
  };
5834
5830
  run: {
5831
+ id: string;
5835
5832
  payload: string;
5836
5833
  payloadType: string;
5837
- id: string;
5838
5834
  tags: string[];
5839
5835
  isTest: boolean;
5840
5836
  createdAt: Date;
5841
5837
  context?: any;
5842
5838
  idempotencyKey?: string | undefined;
5843
5839
  };
5840
+ queue: {
5841
+ name: string;
5842
+ id: string;
5843
+ };
5844
5844
  environment: {
5845
5845
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5846
5846
  id: string;
@@ -5861,10 +5861,6 @@ declare const CoordinatorToProdWorkerMessages: {
5861
5861
  id: string;
5862
5862
  } | undefined;
5863
5863
  }, {
5864
- queue: {
5865
- name: string;
5866
- id: string;
5867
- };
5868
5864
  task: {
5869
5865
  id: string;
5870
5866
  filePath: string;
@@ -5879,15 +5875,19 @@ declare const CoordinatorToProdWorkerMessages: {
5879
5875
  backgroundWorkerTaskId: string;
5880
5876
  };
5881
5877
  run: {
5878
+ id: string;
5882
5879
  payload: string;
5883
5880
  payloadType: string;
5884
- id: string;
5885
5881
  tags: string[];
5886
5882
  createdAt: Date;
5887
5883
  context?: any;
5888
5884
  isTest?: boolean | undefined;
5889
5885
  idempotencyKey?: string | undefined;
5890
5886
  };
5887
+ queue: {
5888
+ name: string;
5889
+ id: string;
5890
+ };
5891
5891
  environment: {
5892
5892
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5893
5893
  id: string;
@@ -5913,9 +5913,9 @@ declare const CoordinatorToProdWorkerMessages: {
5913
5913
  attemptId: string;
5914
5914
  completions: ({
5915
5915
  error: {
5916
- name: string;
5917
- type: "BUILT_IN_ERROR";
5918
5916
  message: string;
5917
+ type: "BUILT_IN_ERROR";
5918
+ name: string;
5919
5919
  stackTrace: string;
5920
5920
  } | {
5921
5921
  type: "CUSTOM_ERROR";
@@ -5924,8 +5924,8 @@ declare const CoordinatorToProdWorkerMessages: {
5924
5924
  type: "STRING_ERROR";
5925
5925
  raw: string;
5926
5926
  } | {
5927
- type: "INTERNAL_ERROR";
5928
5927
  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";
5928
+ type: "INTERNAL_ERROR";
5929
5929
  message?: string | undefined;
5930
5930
  };
5931
5931
  id: string;
@@ -5943,10 +5943,6 @@ declare const CoordinatorToProdWorkerMessages: {
5943
5943
  output?: string | undefined;
5944
5944
  })[];
5945
5945
  executions: {
5946
- queue: {
5947
- name: string;
5948
- id: string;
5949
- };
5950
5946
  task: {
5951
5947
  id: string;
5952
5948
  filePath: string;
@@ -5961,15 +5957,19 @@ declare const CoordinatorToProdWorkerMessages: {
5961
5957
  backgroundWorkerTaskId: string;
5962
5958
  };
5963
5959
  run: {
5960
+ id: string;
5964
5961
  payload: string;
5965
5962
  payloadType: string;
5966
- id: string;
5967
5963
  tags: string[];
5968
5964
  isTest: boolean;
5969
5965
  createdAt: Date;
5970
5966
  context?: any;
5971
5967
  idempotencyKey?: string | undefined;
5972
5968
  };
5969
+ queue: {
5970
+ name: string;
5971
+ id: string;
5972
+ };
5973
5973
  environment: {
5974
5974
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5975
5975
  id: string;
@@ -5994,9 +5994,9 @@ declare const CoordinatorToProdWorkerMessages: {
5994
5994
  attemptId: string;
5995
5995
  completions: ({
5996
5996
  error: {
5997
- name: string;
5998
- type: "BUILT_IN_ERROR";
5999
5997
  message: string;
5998
+ type: "BUILT_IN_ERROR";
5999
+ name: string;
6000
6000
  stackTrace: string;
6001
6001
  } | {
6002
6002
  type: "CUSTOM_ERROR";
@@ -6005,8 +6005,8 @@ declare const CoordinatorToProdWorkerMessages: {
6005
6005
  type: "STRING_ERROR";
6006
6006
  raw: string;
6007
6007
  } | {
6008
- type: "INTERNAL_ERROR";
6009
6008
  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";
6009
+ type: "INTERNAL_ERROR";
6010
6010
  message?: string | undefined;
6011
6011
  };
6012
6012
  id: string;
@@ -6024,10 +6024,6 @@ declare const CoordinatorToProdWorkerMessages: {
6024
6024
  output?: string | undefined;
6025
6025
  })[];
6026
6026
  executions: {
6027
- queue: {
6028
- name: string;
6029
- id: string;
6030
- };
6031
6027
  task: {
6032
6028
  id: string;
6033
6029
  filePath: string;
@@ -6042,15 +6038,19 @@ declare const CoordinatorToProdWorkerMessages: {
6042
6038
  backgroundWorkerTaskId: string;
6043
6039
  };
6044
6040
  run: {
6041
+ id: string;
6045
6042
  payload: string;
6046
6043
  payloadType: string;
6047
- id: string;
6048
6044
  tags: string[];
6049
6045
  createdAt: Date;
6050
6046
  context?: any;
6051
6047
  isTest?: boolean | undefined;
6052
6048
  idempotencyKey?: string | undefined;
6053
6049
  };
6050
+ queue: {
6051
+ name: string;
6052
+ id: string;
6053
+ };
6054
6054
  environment: {
6055
6055
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6056
6056
  id: string;
@@ -6091,16 +6091,6 @@ declare const CoordinatorToProdWorkerMessages: {
6091
6091
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
6092
6092
  executionPayload: z.ZodObject<{
6093
6093
  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
6094
  task: z.ZodObject<{
6105
6095
  id: z.ZodString;
6106
6096
  filePath: z.ZodString;
@@ -6146,24 +6136,34 @@ declare const CoordinatorToProdWorkerMessages: {
6146
6136
  createdAt: z.ZodDate;
6147
6137
  idempotencyKey: z.ZodOptional<z.ZodString>;
6148
6138
  }, "strip", z.ZodTypeAny, {
6139
+ id: string;
6149
6140
  payload: string;
6150
6141
  payloadType: string;
6151
- id: string;
6152
6142
  tags: string[];
6153
6143
  isTest: boolean;
6154
6144
  createdAt: Date;
6155
6145
  context?: any;
6156
6146
  idempotencyKey?: string | undefined;
6157
6147
  }, {
6148
+ id: string;
6158
6149
  payload: string;
6159
6150
  payloadType: string;
6160
- id: string;
6161
6151
  tags: string[];
6162
6152
  createdAt: Date;
6163
6153
  context?: any;
6164
6154
  isTest?: boolean | undefined;
6165
6155
  idempotencyKey?: string | undefined;
6166
6156
  }>;
6157
+ queue: z.ZodObject<{
6158
+ id: z.ZodString;
6159
+ name: z.ZodString;
6160
+ }, "strip", z.ZodTypeAny, {
6161
+ name: string;
6162
+ id: string;
6163
+ }, {
6164
+ name: string;
6165
+ id: string;
6166
+ }>;
6167
6167
  environment: z.ZodObject<{
6168
6168
  id: z.ZodString;
6169
6169
  slug: z.ZodString;
@@ -6227,10 +6227,6 @@ declare const CoordinatorToProdWorkerMessages: {
6227
6227
  contentHash: string;
6228
6228
  }>;
6229
6229
  }, "strip", z.ZodTypeAny, {
6230
- queue: {
6231
- name: string;
6232
- id: string;
6233
- };
6234
6230
  task: {
6235
6231
  id: string;
6236
6232
  filePath: string;
@@ -6245,15 +6241,19 @@ declare const CoordinatorToProdWorkerMessages: {
6245
6241
  backgroundWorkerTaskId: string;
6246
6242
  };
6247
6243
  run: {
6244
+ id: string;
6248
6245
  payload: string;
6249
6246
  payloadType: string;
6250
- id: string;
6251
6247
  tags: string[];
6252
6248
  isTest: boolean;
6253
6249
  createdAt: Date;
6254
6250
  context?: any;
6255
6251
  idempotencyKey?: string | undefined;
6256
6252
  };
6253
+ queue: {
6254
+ name: string;
6255
+ id: string;
6256
+ };
6257
6257
  environment: {
6258
6258
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6259
6259
  id: string;
@@ -6279,10 +6279,6 @@ declare const CoordinatorToProdWorkerMessages: {
6279
6279
  id: string;
6280
6280
  } | undefined;
6281
6281
  }, {
6282
- queue: {
6283
- name: string;
6284
- id: string;
6285
- };
6286
6282
  task: {
6287
6283
  id: string;
6288
6284
  filePath: string;
@@ -6297,15 +6293,19 @@ declare const CoordinatorToProdWorkerMessages: {
6297
6293
  backgroundWorkerTaskId: string;
6298
6294
  };
6299
6295
  run: {
6296
+ id: string;
6300
6297
  payload: string;
6301
6298
  payloadType: string;
6302
- id: string;
6303
6299
  tags: string[];
6304
6300
  createdAt: Date;
6305
6301
  context?: any;
6306
6302
  isTest?: boolean | undefined;
6307
6303
  idempotencyKey?: string | undefined;
6308
6304
  };
6305
+ queue: {
6306
+ name: string;
6307
+ id: string;
6308
+ };
6309
6309
  environment: {
6310
6310
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6311
6311
  id: string;
@@ -6335,10 +6335,6 @@ declare const CoordinatorToProdWorkerMessages: {
6335
6335
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6336
6336
  }, "strip", z.ZodTypeAny, {
6337
6337
  execution: {
6338
- queue: {
6339
- name: string;
6340
- id: string;
6341
- };
6342
6338
  task: {
6343
6339
  id: string;
6344
6340
  filePath: string;
@@ -6353,15 +6349,19 @@ declare const CoordinatorToProdWorkerMessages: {
6353
6349
  backgroundWorkerTaskId: string;
6354
6350
  };
6355
6351
  run: {
6352
+ id: string;
6356
6353
  payload: string;
6357
6354
  payloadType: string;
6358
- id: string;
6359
6355
  tags: string[];
6360
6356
  isTest: boolean;
6361
6357
  createdAt: Date;
6362
6358
  context?: any;
6363
6359
  idempotencyKey?: string | undefined;
6364
6360
  };
6361
+ queue: {
6362
+ name: string;
6363
+ id: string;
6364
+ };
6365
6365
  environment: {
6366
6366
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6367
6367
  id: string;
@@ -6391,10 +6391,6 @@ declare const CoordinatorToProdWorkerMessages: {
6391
6391
  environment?: Record<string, string> | undefined;
6392
6392
  }, {
6393
6393
  execution: {
6394
- queue: {
6395
- name: string;
6396
- id: string;
6397
- };
6398
6394
  task: {
6399
6395
  id: string;
6400
6396
  filePath: string;
@@ -6409,15 +6405,19 @@ declare const CoordinatorToProdWorkerMessages: {
6409
6405
  backgroundWorkerTaskId: string;
6410
6406
  };
6411
6407
  run: {
6408
+ id: string;
6412
6409
  payload: string;
6413
6410
  payloadType: string;
6414
- id: string;
6415
6411
  tags: string[];
6416
6412
  createdAt: Date;
6417
6413
  context?: any;
6418
6414
  isTest?: boolean | undefined;
6419
6415
  idempotencyKey?: string | undefined;
6420
6416
  };
6417
+ queue: {
6418
+ name: string;
6419
+ id: string;
6420
+ };
6421
6421
  environment: {
6422
6422
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6423
6423
  id: string;
@@ -6450,10 +6450,6 @@ declare const CoordinatorToProdWorkerMessages: {
6450
6450
  version: "v1";
6451
6451
  executionPayload: {
6452
6452
  execution: {
6453
- queue: {
6454
- name: string;
6455
- id: string;
6456
- };
6457
6453
  task: {
6458
6454
  id: string;
6459
6455
  filePath: string;
@@ -6468,15 +6464,19 @@ declare const CoordinatorToProdWorkerMessages: {
6468
6464
  backgroundWorkerTaskId: string;
6469
6465
  };
6470
6466
  run: {
6467
+ id: string;
6471
6468
  payload: string;
6472
6469
  payloadType: string;
6473
- id: string;
6474
6470
  tags: string[];
6475
6471
  isTest: boolean;
6476
6472
  createdAt: Date;
6477
6473
  context?: any;
6478
6474
  idempotencyKey?: string | undefined;
6479
6475
  };
6476
+ queue: {
6477
+ name: string;
6478
+ id: string;
6479
+ };
6480
6480
  environment: {
6481
6481
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6482
6482
  id: string;
@@ -6508,10 +6508,6 @@ declare const CoordinatorToProdWorkerMessages: {
6508
6508
  }, {
6509
6509
  executionPayload: {
6510
6510
  execution: {
6511
- queue: {
6512
- name: string;
6513
- id: string;
6514
- };
6515
6511
  task: {
6516
6512
  id: string;
6517
6513
  filePath: string;
@@ -6526,15 +6522,19 @@ declare const CoordinatorToProdWorkerMessages: {
6526
6522
  backgroundWorkerTaskId: string;
6527
6523
  };
6528
6524
  run: {
6525
+ id: string;
6529
6526
  payload: string;
6530
6527
  payloadType: string;
6531
- id: string;
6532
6528
  tags: string[];
6533
6529
  createdAt: Date;
6534
6530
  context?: any;
6535
6531
  isTest?: boolean | undefined;
6536
6532
  idempotencyKey?: string | undefined;
6537
6533
  };
6534
+ queue: {
6535
+ name: string;
6536
+ id: string;
6537
+ };
6538
6538
  environment: {
6539
6539
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
6540
6540
  id: string;