@trigger.dev/core 0.0.0-v3-prerelease-20241101212227 → 0.0.0-v3-prerelease-20241105122139

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.
@@ -5,12 +5,12 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
5
5
  taskRunId: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  type: "CANCEL_ATTEMPT";
8
- taskAttemptId: string;
9
8
  taskRunId: string;
9
+ taskAttemptId: string;
10
10
  }, {
11
11
  type: "CANCEL_ATTEMPT";
12
- taskAttemptId: string;
13
12
  taskRunId: string;
13
+ taskAttemptId: string;
14
14
  }>, z.ZodObject<{
15
15
  type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
16
16
  image: z.ZodString;
@@ -47,12 +47,12 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
47
47
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
48
48
  centsPerMs: number;
49
49
  };
50
+ runId: string;
51
+ projectId: string;
50
52
  image: string;
51
53
  envId: string;
52
54
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
53
55
  orgId: string;
54
- projectId: string;
55
- runId: string;
56
56
  nextAttemptNumber?: number | undefined;
57
57
  id?: string | undefined;
58
58
  }, {
@@ -64,12 +64,12 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
64
64
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
65
65
  centsPerMs: number;
66
66
  };
67
+ runId: string;
68
+ projectId: string;
67
69
  image: string;
68
70
  envId: string;
69
71
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
70
72
  orgId: string;
71
- projectId: string;
72
- runId: string;
73
73
  nextAttemptNumber?: number | undefined;
74
74
  id?: string | undefined;
75
75
  }>, z.ZodObject<{
@@ -83,16 +83,16 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
83
83
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  isTest: boolean;
86
+ traceContext: Record<string, unknown>;
86
87
  runId: string;
87
88
  messageId: string;
88
- traceContext: Record<string, unknown>;
89
89
  attemptCount?: number | undefined;
90
90
  environment?: Record<string, string> | undefined;
91
91
  }, {
92
92
  isTest: boolean;
93
+ traceContext: Record<string, unknown>;
93
94
  runId: string;
94
95
  messageId: string;
95
- traceContext: Record<string, unknown>;
96
96
  attemptCount?: number | undefined;
97
97
  environment?: Record<string, string> | undefined;
98
98
  }>;
@@ -100,9 +100,9 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
100
100
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
101
101
  payload: {
102
102
  isTest: boolean;
103
+ traceContext: Record<string, unknown>;
103
104
  runId: string;
104
105
  messageId: string;
105
- traceContext: Record<string, unknown>;
106
106
  attemptCount?: number | undefined;
107
107
  environment?: Record<string, string> | undefined;
108
108
  };
@@ -110,9 +110,9 @@ export declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"ty
110
110
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
111
111
  payload: {
112
112
  isTest: boolean;
113
+ traceContext: Record<string, unknown>;
113
114
  runId: string;
114
115
  messageId: string;
115
- traceContext: Record<string, unknown>;
116
116
  attemptCount?: number | undefined;
117
117
  environment?: Record<string, string> | undefined;
118
118
  };
@@ -138,12 +138,12 @@ export declare const serverWebsocketMessages: {
138
138
  taskRunId: z.ZodString;
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  type: "CANCEL_ATTEMPT";
141
- taskAttemptId: string;
142
141
  taskRunId: string;
142
+ taskAttemptId: string;
143
143
  }, {
144
144
  type: "CANCEL_ATTEMPT";
145
- taskAttemptId: string;
146
145
  taskRunId: string;
146
+ taskAttemptId: string;
147
147
  }>, z.ZodObject<{
148
148
  type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
149
149
  image: z.ZodString;
@@ -180,12 +180,12 @@ export declare const serverWebsocketMessages: {
180
180
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
181
181
  centsPerMs: number;
182
182
  };
183
+ runId: string;
184
+ projectId: string;
183
185
  image: string;
184
186
  envId: string;
185
187
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
186
188
  orgId: string;
187
- projectId: string;
188
- runId: string;
189
189
  nextAttemptNumber?: number | undefined;
190
190
  id?: string | undefined;
191
191
  }, {
@@ -197,12 +197,12 @@ export declare const serverWebsocketMessages: {
197
197
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
198
198
  centsPerMs: number;
199
199
  };
200
+ runId: string;
201
+ projectId: string;
200
202
  image: string;
201
203
  envId: string;
202
204
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
203
205
  orgId: string;
204
- projectId: string;
205
- runId: string;
206
206
  nextAttemptNumber?: number | undefined;
207
207
  id?: string | undefined;
208
208
  }>, z.ZodObject<{
@@ -216,16 +216,16 @@ export declare const serverWebsocketMessages: {
216
216
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
217
217
  }, "strip", z.ZodTypeAny, {
218
218
  isTest: boolean;
219
+ traceContext: Record<string, unknown>;
219
220
  runId: string;
220
221
  messageId: string;
221
- traceContext: Record<string, unknown>;
222
222
  attemptCount?: number | undefined;
223
223
  environment?: Record<string, string> | undefined;
224
224
  }, {
225
225
  isTest: boolean;
226
+ traceContext: Record<string, unknown>;
226
227
  runId: string;
227
228
  messageId: string;
228
- traceContext: Record<string, unknown>;
229
229
  attemptCount?: number | undefined;
230
230
  environment?: Record<string, string> | undefined;
231
231
  }>;
@@ -233,9 +233,9 @@ export declare const serverWebsocketMessages: {
233
233
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
234
234
  payload: {
235
235
  isTest: boolean;
236
+ traceContext: Record<string, unknown>;
236
237
  runId: string;
237
238
  messageId: string;
238
- traceContext: Record<string, unknown>;
239
239
  attemptCount?: number | undefined;
240
240
  environment?: Record<string, string> | undefined;
241
241
  };
@@ -243,9 +243,9 @@ export declare const serverWebsocketMessages: {
243
243
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
244
244
  payload: {
245
245
  isTest: boolean;
246
+ traceContext: Record<string, unknown>;
246
247
  runId: string;
247
248
  messageId: string;
248
- traceContext: Record<string, unknown>;
249
249
  attemptCount?: number | undefined;
250
250
  environment?: Record<string, string> | undefined;
251
251
  };
@@ -253,8 +253,8 @@ export declare const serverWebsocketMessages: {
253
253
  }, "strip", z.ZodTypeAny, {
254
254
  data: {
255
255
  type: "CANCEL_ATTEMPT";
256
- taskAttemptId: string;
257
256
  taskRunId: string;
257
+ taskAttemptId: string;
258
258
  } | {
259
259
  type: "SCHEDULE_ATTEMPT";
260
260
  version: string;
@@ -264,21 +264,21 @@ export declare const serverWebsocketMessages: {
264
264
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
265
265
  centsPerMs: number;
266
266
  };
267
+ runId: string;
268
+ projectId: string;
267
269
  image: string;
268
270
  envId: string;
269
271
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
270
272
  orgId: string;
271
- projectId: string;
272
- runId: string;
273
273
  nextAttemptNumber?: number | undefined;
274
274
  id?: string | undefined;
275
275
  } | {
276
276
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
277
277
  payload: {
278
278
  isTest: boolean;
279
+ traceContext: Record<string, unknown>;
279
280
  runId: string;
280
281
  messageId: string;
281
- traceContext: Record<string, unknown>;
282
282
  attemptCount?: number | undefined;
283
283
  environment?: Record<string, string> | undefined;
284
284
  };
@@ -288,8 +288,8 @@ export declare const serverWebsocketMessages: {
288
288
  }, {
289
289
  data: {
290
290
  type: "CANCEL_ATTEMPT";
291
- taskAttemptId: string;
292
291
  taskRunId: string;
292
+ taskAttemptId: string;
293
293
  } | {
294
294
  type: "SCHEDULE_ATTEMPT";
295
295
  version: string;
@@ -299,21 +299,21 @@ export declare const serverWebsocketMessages: {
299
299
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
300
300
  centsPerMs: number;
301
301
  };
302
+ runId: string;
303
+ projectId: string;
302
304
  image: string;
303
305
  envId: string;
304
306
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
305
307
  orgId: string;
306
- projectId: string;
307
- runId: string;
308
308
  nextAttemptNumber?: number | undefined;
309
309
  id?: string | undefined;
310
310
  } | {
311
311
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
312
312
  payload: {
313
313
  isTest: boolean;
314
+ traceContext: Record<string, unknown>;
314
315
  runId: string;
315
316
  messageId: string;
316
- traceContext: Record<string, unknown>;
317
317
  attemptCount?: number | undefined;
318
318
  environment?: Record<string, string> | undefined;
319
319
  };
@@ -774,44 +774,6 @@ export declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"ty
774
774
  }, "strip", z.ZodTypeAny, {
775
775
  type: "TASK_RUN_COMPLETED";
776
776
  version: "v1";
777
- completion: {
778
- error: {
779
- message: string;
780
- type: "BUILT_IN_ERROR";
781
- name: string;
782
- stackTrace: string;
783
- } | {
784
- type: "CUSTOM_ERROR";
785
- raw: string;
786
- } | {
787
- type: "STRING_ERROR";
788
- raw: string;
789
- } | {
790
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
791
- type: "INTERNAL_ERROR";
792
- message?: string | undefined;
793
- stackTrace?: string | undefined;
794
- };
795
- id: string;
796
- ok: false;
797
- retry?: {
798
- timestamp: number;
799
- delay: number;
800
- error?: unknown;
801
- } | undefined;
802
- skippedRetrying?: boolean | undefined;
803
- usage?: {
804
- durationMs: number;
805
- } | undefined;
806
- } | {
807
- id: string;
808
- ok: true;
809
- outputType: string;
810
- output?: string | undefined;
811
- usage?: {
812
- durationMs: number;
813
- } | undefined;
814
- };
815
777
  execution: {
816
778
  task: {
817
779
  id: string;
@@ -874,8 +836,6 @@ export declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"ty
874
836
  centsPerMs: number;
875
837
  } | undefined;
876
838
  };
877
- }, {
878
- type: "TASK_RUN_COMPLETED";
879
839
  completion: {
880
840
  error: {
881
841
  message: string;
@@ -914,6 +874,8 @@ export declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"ty
914
874
  durationMs: number;
915
875
  } | undefined;
916
876
  };
877
+ }, {
878
+ type: "TASK_RUN_COMPLETED";
917
879
  execution: {
918
880
  task: {
919
881
  id: string;
@@ -976,6 +938,44 @@ export declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"ty
976
938
  centsPerMs: number;
977
939
  } | undefined;
978
940
  };
941
+ completion: {
942
+ error: {
943
+ message: string;
944
+ type: "BUILT_IN_ERROR";
945
+ name: string;
946
+ stackTrace: string;
947
+ } | {
948
+ type: "CUSTOM_ERROR";
949
+ raw: string;
950
+ } | {
951
+ type: "STRING_ERROR";
952
+ raw: string;
953
+ } | {
954
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
955
+ type: "INTERNAL_ERROR";
956
+ message?: string | undefined;
957
+ stackTrace?: string | undefined;
958
+ };
959
+ id: string;
960
+ ok: false;
961
+ retry?: {
962
+ timestamp: number;
963
+ delay: number;
964
+ error?: unknown;
965
+ } | undefined;
966
+ skippedRetrying?: boolean | undefined;
967
+ usage?: {
968
+ durationMs: number;
969
+ } | undefined;
970
+ } | {
971
+ id: string;
972
+ ok: true;
973
+ outputType: string;
974
+ output?: string | undefined;
975
+ usage?: {
976
+ durationMs: number;
977
+ } | undefined;
978
+ };
979
979
  version?: "v1" | undefined;
980
980
  }>, z.ZodObject<{
981
981
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
@@ -1697,44 +1697,6 @@ export declare const clientWebsocketMessages: {
1697
1697
  }, "strip", z.ZodTypeAny, {
1698
1698
  type: "TASK_RUN_COMPLETED";
1699
1699
  version: "v1";
1700
- completion: {
1701
- error: {
1702
- message: string;
1703
- type: "BUILT_IN_ERROR";
1704
- name: string;
1705
- stackTrace: string;
1706
- } | {
1707
- type: "CUSTOM_ERROR";
1708
- raw: string;
1709
- } | {
1710
- type: "STRING_ERROR";
1711
- raw: string;
1712
- } | {
1713
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1714
- type: "INTERNAL_ERROR";
1715
- message?: string | undefined;
1716
- stackTrace?: string | undefined;
1717
- };
1718
- id: string;
1719
- ok: false;
1720
- retry?: {
1721
- timestamp: number;
1722
- delay: number;
1723
- error?: unknown;
1724
- } | undefined;
1725
- skippedRetrying?: boolean | undefined;
1726
- usage?: {
1727
- durationMs: number;
1728
- } | undefined;
1729
- } | {
1730
- id: string;
1731
- ok: true;
1732
- outputType: string;
1733
- output?: string | undefined;
1734
- usage?: {
1735
- durationMs: number;
1736
- } | undefined;
1737
- };
1738
1700
  execution: {
1739
1701
  task: {
1740
1702
  id: string;
@@ -1797,8 +1759,6 @@ export declare const clientWebsocketMessages: {
1797
1759
  centsPerMs: number;
1798
1760
  } | undefined;
1799
1761
  };
1800
- }, {
1801
- type: "TASK_RUN_COMPLETED";
1802
1762
  completion: {
1803
1763
  error: {
1804
1764
  message: string;
@@ -1837,6 +1797,8 @@ export declare const clientWebsocketMessages: {
1837
1797
  durationMs: number;
1838
1798
  } | undefined;
1839
1799
  };
1800
+ }, {
1801
+ type: "TASK_RUN_COMPLETED";
1840
1802
  execution: {
1841
1803
  task: {
1842
1804
  id: string;
@@ -1899,6 +1861,44 @@ export declare const clientWebsocketMessages: {
1899
1861
  centsPerMs: number;
1900
1862
  } | undefined;
1901
1863
  };
1864
+ completion: {
1865
+ error: {
1866
+ message: string;
1867
+ type: "BUILT_IN_ERROR";
1868
+ name: string;
1869
+ stackTrace: string;
1870
+ } | {
1871
+ type: "CUSTOM_ERROR";
1872
+ raw: string;
1873
+ } | {
1874
+ type: "STRING_ERROR";
1875
+ raw: string;
1876
+ } | {
1877
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
1878
+ type: "INTERNAL_ERROR";
1879
+ message?: string | undefined;
1880
+ stackTrace?: string | undefined;
1881
+ };
1882
+ id: string;
1883
+ ok: false;
1884
+ retry?: {
1885
+ timestamp: number;
1886
+ delay: number;
1887
+ error?: unknown;
1888
+ } | undefined;
1889
+ skippedRetrying?: boolean | undefined;
1890
+ usage?: {
1891
+ durationMs: number;
1892
+ } | undefined;
1893
+ } | {
1894
+ id: string;
1895
+ ok: true;
1896
+ outputType: string;
1897
+ output?: string | undefined;
1898
+ usage?: {
1899
+ durationMs: number;
1900
+ } | undefined;
1901
+ };
1902
1902
  version?: "v1" | undefined;
1903
1903
  }>, z.ZodObject<{
1904
1904
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
@@ -2130,44 +2130,6 @@ export declare const clientWebsocketMessages: {
2130
2130
  data: {
2131
2131
  type: "TASK_RUN_COMPLETED";
2132
2132
  version: "v1";
2133
- completion: {
2134
- error: {
2135
- message: string;
2136
- type: "BUILT_IN_ERROR";
2137
- name: string;
2138
- stackTrace: string;
2139
- } | {
2140
- type: "CUSTOM_ERROR";
2141
- raw: string;
2142
- } | {
2143
- type: "STRING_ERROR";
2144
- raw: string;
2145
- } | {
2146
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
2147
- type: "INTERNAL_ERROR";
2148
- message?: string | undefined;
2149
- stackTrace?: string | undefined;
2150
- };
2151
- id: string;
2152
- ok: false;
2153
- retry?: {
2154
- timestamp: number;
2155
- delay: number;
2156
- error?: unknown;
2157
- } | undefined;
2158
- skippedRetrying?: boolean | undefined;
2159
- usage?: {
2160
- durationMs: number;
2161
- } | undefined;
2162
- } | {
2163
- id: string;
2164
- ok: true;
2165
- outputType: string;
2166
- output?: string | undefined;
2167
- usage?: {
2168
- durationMs: number;
2169
- } | undefined;
2170
- };
2171
2133
  execution: {
2172
2134
  task: {
2173
2135
  id: string;
@@ -2230,9 +2192,6 @@ export declare const clientWebsocketMessages: {
2230
2192
  centsPerMs: number;
2231
2193
  } | undefined;
2232
2194
  };
2233
- } | {
2234
- type: "TASK_RUN_FAILED_TO_RUN";
2235
- version: "v1";
2236
2195
  completion: {
2237
2196
  error: {
2238
2197
  message: string;
@@ -2262,21 +2221,18 @@ export declare const clientWebsocketMessages: {
2262
2221
  usage?: {
2263
2222
  durationMs: number;
2264
2223
  } | undefined;
2224
+ } | {
2225
+ id: string;
2226
+ ok: true;
2227
+ outputType: string;
2228
+ output?: string | undefined;
2229
+ usage?: {
2230
+ durationMs: number;
2231
+ } | undefined;
2265
2232
  };
2266
2233
  } | {
2267
- type: "TASK_HEARTBEAT";
2268
- id: string;
2269
- version: "v1";
2270
- } | {
2271
- type: "TASK_RUN_HEARTBEAT";
2272
- id: string;
2234
+ type: "TASK_RUN_FAILED_TO_RUN";
2273
2235
  version: "v1";
2274
- };
2275
- version: "v1";
2276
- backgroundWorkerId: string;
2277
- }, {
2278
- data: {
2279
- type: "TASK_RUN_COMPLETED";
2280
2236
  completion: {
2281
2237
  error: {
2282
2238
  message: string;
@@ -2306,15 +2262,21 @@ export declare const clientWebsocketMessages: {
2306
2262
  usage?: {
2307
2263
  durationMs: number;
2308
2264
  } | undefined;
2309
- } | {
2310
- id: string;
2311
- ok: true;
2312
- outputType: string;
2313
- output?: string | undefined;
2314
- usage?: {
2315
- durationMs: number;
2316
- } | undefined;
2317
2265
  };
2266
+ } | {
2267
+ type: "TASK_HEARTBEAT";
2268
+ id: string;
2269
+ version: "v1";
2270
+ } | {
2271
+ type: "TASK_RUN_HEARTBEAT";
2272
+ id: string;
2273
+ version: "v1";
2274
+ };
2275
+ version: "v1";
2276
+ backgroundWorkerId: string;
2277
+ }, {
2278
+ data: {
2279
+ type: "TASK_RUN_COMPLETED";
2318
2280
  execution: {
2319
2281
  task: {
2320
2282
  id: string;
@@ -2377,6 +2339,44 @@ export declare const clientWebsocketMessages: {
2377
2339
  centsPerMs: number;
2378
2340
  } | undefined;
2379
2341
  };
2342
+ completion: {
2343
+ error: {
2344
+ message: string;
2345
+ type: "BUILT_IN_ERROR";
2346
+ name: string;
2347
+ stackTrace: string;
2348
+ } | {
2349
+ type: "CUSTOM_ERROR";
2350
+ raw: string;
2351
+ } | {
2352
+ type: "STRING_ERROR";
2353
+ raw: string;
2354
+ } | {
2355
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
2356
+ type: "INTERNAL_ERROR";
2357
+ message?: string | undefined;
2358
+ stackTrace?: string | undefined;
2359
+ };
2360
+ id: string;
2361
+ ok: false;
2362
+ retry?: {
2363
+ timestamp: number;
2364
+ delay: number;
2365
+ error?: unknown;
2366
+ } | undefined;
2367
+ skippedRetrying?: boolean | undefined;
2368
+ usage?: {
2369
+ durationMs: number;
2370
+ } | undefined;
2371
+ } | {
2372
+ id: string;
2373
+ ok: true;
2374
+ outputType: string;
2375
+ output?: string | undefined;
2376
+ usage?: {
2377
+ durationMs: number;
2378
+ } | undefined;
2379
+ };
2380
2380
  version?: "v1" | undefined;
2381
2381
  } | {
2382
2382
  type: "TASK_RUN_FAILED_TO_RUN";
@@ -2846,6 +2846,7 @@ export declare const indexerToWorkerMessages: {
2846
2846
  exclude?: string[] | undefined;
2847
2847
  }>>;
2848
2848
  }, "strip", z.ZodTypeAny, {
2849
+ configPath: string;
2849
2850
  tasks: {
2850
2851
  id: string;
2851
2852
  filePath: string;
@@ -2907,7 +2908,6 @@ export declare const indexerToWorkerMessages: {
2907
2908
  } | undefined;
2908
2909
  maxDuration?: number | undefined;
2909
2910
  }[];
2910
- configPath: string;
2911
2911
  workerEntryPoint: string;
2912
2912
  runtime: "node" | "bun";
2913
2913
  controllerEntryPoint?: string | undefined;
@@ -2918,6 +2918,7 @@ export declare const indexerToWorkerMessages: {
2918
2918
  exclude?: string[] | undefined;
2919
2919
  } | undefined;
2920
2920
  }, {
2921
+ configPath: string;
2921
2922
  tasks: {
2922
2923
  id: string;
2923
2924
  filePath: string;
@@ -2979,7 +2980,6 @@ export declare const indexerToWorkerMessages: {
2979
2980
  } | undefined;
2980
2981
  maxDuration?: number | undefined;
2981
2982
  }[];
2982
- configPath: string;
2983
2983
  workerEntryPoint: string;
2984
2984
  runtime: "node" | "bun";
2985
2985
  controllerEntryPoint?: string | undefined;
@@ -3009,6 +3009,7 @@ export declare const indexerToWorkerMessages: {
3009
3009
  }, "strip", z.ZodTypeAny, {
3010
3010
  version: "v1";
3011
3011
  manifest: {
3012
+ configPath: string;
3012
3013
  tasks: {
3013
3014
  id: string;
3014
3015
  filePath: string;
@@ -3070,7 +3071,6 @@ export declare const indexerToWorkerMessages: {
3070
3071
  } | undefined;
3071
3072
  maxDuration?: number | undefined;
3072
3073
  }[];
3073
- configPath: string;
3074
3074
  workerEntryPoint: string;
3075
3075
  runtime: "node" | "bun";
3076
3076
  controllerEntryPoint?: string | undefined;
@@ -3089,6 +3089,7 @@ export declare const indexerToWorkerMessages: {
3089
3089
  }[];
3090
3090
  }, {
3091
3091
  manifest: {
3092
+ configPath: string;
3092
3093
  tasks: {
3093
3094
  id: string;
3094
3095
  filePath: string;
@@ -3150,7 +3151,6 @@ export declare const indexerToWorkerMessages: {
3150
3151
  } | undefined;
3151
3152
  maxDuration?: number | undefined;
3152
3153
  }[];
3153
- configPath: string;
3154
3154
  workerEntryPoint: string;
3155
3155
  runtime: "node" | "bun";
3156
3156
  controllerEntryPoint?: string | undefined;
@@ -4279,7 +4279,6 @@ export declare const WorkerToExecutorMessageCatalog: {
4279
4279
  version: string;
4280
4280
  contentHash: string;
4281
4281
  };
4282
- traceContext: Record<string, unknown>;
4283
4282
  execution: {
4284
4283
  task: {
4285
4284
  id: string;
@@ -4342,13 +4341,13 @@ export declare const WorkerToExecutorMessageCatalog: {
4342
4341
  centsPerMs: number;
4343
4342
  } | undefined;
4344
4343
  };
4344
+ traceContext: Record<string, unknown>;
4345
4345
  }, {
4346
4346
  metadata: {
4347
4347
  id: string;
4348
4348
  version: string;
4349
4349
  contentHash: string;
4350
4350
  };
4351
- traceContext: Record<string, unknown>;
4352
4351
  execution: {
4353
4352
  task: {
4354
4353
  id: string;
@@ -4411,6 +4410,7 @@ export declare const WorkerToExecutorMessageCatalog: {
4411
4410
  centsPerMs: number;
4412
4411
  } | undefined;
4413
4412
  };
4413
+ traceContext: Record<string, unknown>;
4414
4414
  version?: "v1" | undefined;
4415
4415
  }>;
4416
4416
  };
@@ -4865,44 +4865,6 @@ export declare const WorkerToExecutorMessageCatalog: {
4865
4865
  }>;
4866
4866
  }, "strip", z.ZodTypeAny, {
4867
4867
  version: "v1";
4868
- completion: {
4869
- error: {
4870
- message: string;
4871
- type: "BUILT_IN_ERROR";
4872
- name: string;
4873
- stackTrace: string;
4874
- } | {
4875
- type: "CUSTOM_ERROR";
4876
- raw: string;
4877
- } | {
4878
- type: "STRING_ERROR";
4879
- raw: string;
4880
- } | {
4881
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
4882
- type: "INTERNAL_ERROR";
4883
- message?: string | undefined;
4884
- stackTrace?: string | undefined;
4885
- };
4886
- id: string;
4887
- ok: false;
4888
- retry?: {
4889
- timestamp: number;
4890
- delay: number;
4891
- error?: unknown;
4892
- } | undefined;
4893
- skippedRetrying?: boolean | undefined;
4894
- usage?: {
4895
- durationMs: number;
4896
- } | undefined;
4897
- } | {
4898
- id: string;
4899
- ok: true;
4900
- outputType: string;
4901
- output?: string | undefined;
4902
- usage?: {
4903
- durationMs: number;
4904
- } | undefined;
4905
- };
4906
4868
  execution: {
4907
4869
  task: {
4908
4870
  id: string;
@@ -4965,8 +4927,6 @@ export declare const WorkerToExecutorMessageCatalog: {
4965
4927
  centsPerMs: number;
4966
4928
  } | undefined;
4967
4929
  };
4968
- }, {
4969
- version: "v1";
4970
4930
  completion: {
4971
4931
  error: {
4972
4932
  message: string;
@@ -5005,6 +4965,8 @@ export declare const WorkerToExecutorMessageCatalog: {
5005
4965
  durationMs: number;
5006
4966
  } | undefined;
5007
4967
  };
4968
+ }, {
4969
+ version: "v1";
5008
4970
  execution: {
5009
4971
  task: {
5010
4972
  id: string;
@@ -5067,6 +5029,44 @@ export declare const WorkerToExecutorMessageCatalog: {
5067
5029
  centsPerMs: number;
5068
5030
  } | undefined;
5069
5031
  };
5032
+ completion: {
5033
+ error: {
5034
+ message: string;
5035
+ type: "BUILT_IN_ERROR";
5036
+ name: string;
5037
+ stackTrace: string;
5038
+ } | {
5039
+ type: "CUSTOM_ERROR";
5040
+ raw: string;
5041
+ } | {
5042
+ type: "STRING_ERROR";
5043
+ raw: string;
5044
+ } | {
5045
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
5046
+ type: "INTERNAL_ERROR";
5047
+ message?: string | undefined;
5048
+ stackTrace?: string | undefined;
5049
+ };
5050
+ id: string;
5051
+ ok: false;
5052
+ retry?: {
5053
+ timestamp: number;
5054
+ delay: number;
5055
+ error?: unknown;
5056
+ } | undefined;
5057
+ skippedRetrying?: boolean | undefined;
5058
+ usage?: {
5059
+ durationMs: number;
5060
+ } | undefined;
5061
+ } | {
5062
+ id: string;
5063
+ ok: true;
5064
+ outputType: string;
5065
+ output?: string | undefined;
5066
+ usage?: {
5067
+ durationMs: number;
5068
+ } | undefined;
5069
+ };
5070
5070
  }>, z.ZodObject<{
5071
5071
  version: z.ZodLiteral<"v2">;
5072
5072
  completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
@@ -5453,25 +5453,25 @@ export declare const PlatformToProviderMessages: {
5453
5453
  deploymentId: z.ZodString;
5454
5454
  }, "strip", z.ZodTypeAny, {
5455
5455
  version: "v1";
5456
+ imageTag: string;
5457
+ apiKey: string;
5458
+ apiUrl: string;
5459
+ projectId: string;
5460
+ shortCode: string;
5456
5461
  envId: string;
5457
5462
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5458
5463
  orgId: string;
5459
- projectId: string;
5460
5464
  deploymentId: string;
5465
+ }, {
5461
5466
  imageTag: string;
5462
- shortCode: string;
5463
5467
  apiKey: string;
5464
5468
  apiUrl: string;
5465
- }, {
5469
+ projectId: string;
5470
+ shortCode: string;
5466
5471
  envId: string;
5467
5472
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5468
5473
  orgId: string;
5469
- projectId: string;
5470
5474
  deploymentId: string;
5471
- imageTag: string;
5472
- shortCode: string;
5473
- apiKey: string;
5474
- apiUrl: string;
5475
5475
  version?: "v1" | undefined;
5476
5476
  }>;
5477
5477
  callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
@@ -5555,11 +5555,11 @@ export declare const PlatformToProviderMessages: {
5555
5555
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
5556
5556
  centsPerMs: number;
5557
5557
  };
5558
+ runId: string;
5559
+ projectId: string;
5558
5560
  envId: string;
5559
5561
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5560
5562
  orgId: string;
5561
- projectId: string;
5562
- runId: string;
5563
5563
  location: string;
5564
5564
  imageRef: string;
5565
5565
  checkpointId: string;
@@ -5573,11 +5573,11 @@ export declare const PlatformToProviderMessages: {
5573
5573
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
5574
5574
  centsPerMs: number;
5575
5575
  };
5576
+ runId: string;
5577
+ projectId: string;
5576
5578
  envId: string;
5577
5579
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5578
5580
  orgId: string;
5579
- projectId: string;
5580
- runId: string;
5581
5581
  location: string;
5582
5582
  imageRef: string;
5583
5583
  checkpointId: string;
@@ -5598,20 +5598,20 @@ export declare const PlatformToProviderMessages: {
5598
5598
  deploymentId: z.ZodString;
5599
5599
  }, "strip", z.ZodTypeAny, {
5600
5600
  version: "v1";
5601
+ projectId: string;
5602
+ shortCode: string;
5601
5603
  envId: string;
5602
5604
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5603
5605
  orgId: string;
5604
- projectId: string;
5605
5606
  deploymentId: string;
5606
- shortCode: string;
5607
5607
  imageRef: string;
5608
5608
  }, {
5609
+ projectId: string;
5610
+ shortCode: string;
5609
5611
  envId: string;
5610
5612
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
5611
5613
  orgId: string;
5612
- projectId: string;
5613
5614
  deploymentId: string;
5614
- shortCode: string;
5615
5615
  imageRef: string;
5616
5616
  version?: "v1" | undefined;
5617
5617
  }>;
@@ -5992,7 +5992,6 @@ export declare const CoordinatorToPlatformMessages: {
5992
5992
  maxDuration?: number | undefined;
5993
5993
  }>, "many">;
5994
5994
  }, "strip", z.ZodTypeAny, {
5995
- contentHash: string;
5996
5995
  tasks: {
5997
5996
  id: string;
5998
5997
  filePath: string;
@@ -6053,10 +6052,10 @@ export declare const CoordinatorToPlatformMessages: {
6053
6052
  } | undefined;
6054
6053
  maxDuration?: number | undefined;
6055
6054
  }[];
6055
+ contentHash: string;
6056
6056
  packageVersion: string;
6057
6057
  cliPackageVersion?: string | undefined;
6058
6058
  }, {
6059
- contentHash: string;
6060
6059
  tasks: {
6061
6060
  id: string;
6062
6061
  filePath: string;
@@ -6117,6 +6116,7 @@ export declare const CoordinatorToPlatformMessages: {
6117
6116
  } | undefined;
6118
6117
  maxDuration?: number | undefined;
6119
6118
  }[];
6119
+ contentHash: string;
6120
6120
  packageVersion: string;
6121
6121
  cliPackageVersion?: string | undefined;
6122
6122
  }>;
@@ -6127,7 +6127,6 @@ export declare const CoordinatorToPlatformMessages: {
6127
6127
  }, "strip", z.ZodTypeAny, {
6128
6128
  version: "v1";
6129
6129
  metadata: {
6130
- contentHash: string;
6131
6130
  tasks: {
6132
6131
  id: string;
6133
6132
  filePath: string;
@@ -6188,6 +6187,7 @@ export declare const CoordinatorToPlatformMessages: {
6188
6187
  } | undefined;
6189
6188
  maxDuration?: number | undefined;
6190
6189
  }[];
6190
+ contentHash: string;
6191
6191
  packageVersion: string;
6192
6192
  cliPackageVersion?: string | undefined;
6193
6193
  };
@@ -6197,7 +6197,6 @@ export declare const CoordinatorToPlatformMessages: {
6197
6197
  }, {
6198
6198
  version: "v1";
6199
6199
  metadata: {
6200
- contentHash: string;
6201
6200
  tasks: {
6202
6201
  id: string;
6203
6202
  filePath: string;
@@ -6258,6 +6257,7 @@ export declare const CoordinatorToPlatformMessages: {
6258
6257
  } | undefined;
6259
6258
  maxDuration?: number | undefined;
6260
6259
  }[];
6260
+ contentHash: string;
6261
6261
  packageVersion: string;
6262
6262
  cliPackageVersion?: string | undefined;
6263
6263
  };
@@ -6622,7 +6622,6 @@ export declare const CoordinatorToPlatformMessages: {
6622
6622
  maxDuration?: number | undefined;
6623
6623
  }>, "many">;
6624
6624
  }, "strip", z.ZodTypeAny, {
6625
- contentHash: string;
6626
6625
  tasks: {
6627
6626
  id: string;
6628
6627
  filePath: string;
@@ -6683,10 +6682,10 @@ export declare const CoordinatorToPlatformMessages: {
6683
6682
  } | undefined;
6684
6683
  maxDuration?: number | undefined;
6685
6684
  }[];
6685
+ contentHash: string;
6686
6686
  packageVersion: string;
6687
6687
  cliPackageVersion?: string | undefined;
6688
6688
  }, {
6689
- contentHash: string;
6690
6689
  tasks: {
6691
6690
  id: string;
6692
6691
  filePath: string;
@@ -6747,6 +6746,7 @@ export declare const CoordinatorToPlatformMessages: {
6747
6746
  } | undefined;
6748
6747
  maxDuration?: number | undefined;
6749
6748
  }[];
6749
+ contentHash: string;
6750
6750
  packageVersion: string;
6751
6751
  cliPackageVersion?: string | undefined;
6752
6752
  }>;
@@ -6758,7 +6758,6 @@ export declare const CoordinatorToPlatformMessages: {
6758
6758
  }, "strip", z.ZodTypeAny, {
6759
6759
  version: "v2";
6760
6760
  metadata: {
6761
- contentHash: string;
6762
6761
  tasks: {
6763
6762
  id: string;
6764
6763
  filePath: string;
@@ -6819,17 +6818,17 @@ export declare const CoordinatorToPlatformMessages: {
6819
6818
  } | undefined;
6820
6819
  maxDuration?: number | undefined;
6821
6820
  }[];
6821
+ contentHash: string;
6822
6822
  packageVersion: string;
6823
6823
  cliPackageVersion?: string | undefined;
6824
6824
  };
6825
+ supportsLazyAttempts: boolean;
6825
6826
  envId: string;
6826
6827
  deploymentId: string;
6827
6828
  projectRef: string;
6828
- supportsLazyAttempts: boolean;
6829
6829
  }, {
6830
6830
  version: "v2";
6831
6831
  metadata: {
6832
- contentHash: string;
6833
6832
  tasks: {
6834
6833
  id: string;
6835
6834
  filePath: string;
@@ -6890,13 +6889,14 @@ export declare const CoordinatorToPlatformMessages: {
6890
6889
  } | undefined;
6891
6890
  maxDuration?: number | undefined;
6892
6891
  }[];
6892
+ contentHash: string;
6893
6893
  packageVersion: string;
6894
6894
  cliPackageVersion?: string | undefined;
6895
6895
  };
6896
+ supportsLazyAttempts: boolean;
6896
6897
  envId: string;
6897
6898
  deploymentId: string;
6898
6899
  projectRef: string;
6899
- supportsLazyAttempts: boolean;
6900
6900
  }>]>;
6901
6901
  callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
6902
6902
  success: z.ZodLiteral<false>;
@@ -6919,11 +6919,11 @@ export declare const CoordinatorToPlatformMessages: {
6919
6919
  envId: z.ZodString;
6920
6920
  }, "strip", z.ZodTypeAny, {
6921
6921
  version: "v1";
6922
- envId: string;
6923
6922
  runId: string;
6924
- }, {
6925
6923
  envId: string;
6924
+ }, {
6926
6925
  runId: string;
6926
+ envId: string;
6927
6927
  version?: "v1" | undefined;
6928
6928
  }>;
6929
6929
  callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
@@ -7250,7 +7250,6 @@ export declare const CoordinatorToPlatformMessages: {
7250
7250
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7251
7251
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7252
7252
  }, "strip", z.ZodTypeAny, {
7253
- traceContext: Record<string, unknown>;
7254
7253
  execution: {
7255
7254
  task: {
7256
7255
  id: string;
@@ -7318,9 +7317,9 @@ export declare const CoordinatorToPlatformMessages: {
7318
7317
  id: string;
7319
7318
  } | undefined;
7320
7319
  };
7320
+ traceContext: Record<string, unknown>;
7321
7321
  environment?: Record<string, string> | undefined;
7322
7322
  }, {
7323
- traceContext: Record<string, unknown>;
7324
7323
  execution: {
7325
7324
  task: {
7326
7325
  id: string;
@@ -7388,12 +7387,12 @@ export declare const CoordinatorToPlatformMessages: {
7388
7387
  centsPerMs: number;
7389
7388
  } | undefined;
7390
7389
  };
7390
+ traceContext: Record<string, unknown>;
7391
7391
  environment?: Record<string, string> | undefined;
7392
7392
  }>;
7393
7393
  }, "strip", z.ZodTypeAny, {
7394
7394
  success: true;
7395
7395
  executionPayload: {
7396
- traceContext: Record<string, unknown>;
7397
7396
  execution: {
7398
7397
  task: {
7399
7398
  id: string;
@@ -7461,12 +7460,12 @@ export declare const CoordinatorToPlatformMessages: {
7461
7460
  id: string;
7462
7461
  } | undefined;
7463
7462
  };
7463
+ traceContext: Record<string, unknown>;
7464
7464
  environment?: Record<string, string> | undefined;
7465
7465
  };
7466
7466
  }, {
7467
7467
  success: true;
7468
7468
  executionPayload: {
7469
- traceContext: Record<string, unknown>;
7470
7469
  execution: {
7471
7470
  task: {
7472
7471
  id: string;
@@ -7534,6 +7533,7 @@ export declare const CoordinatorToPlatformMessages: {
7534
7533
  centsPerMs: number;
7535
7534
  } | undefined;
7536
7535
  };
7536
+ traceContext: Record<string, unknown>;
7537
7537
  environment?: Record<string, string> | undefined;
7538
7538
  };
7539
7539
  }>]>;
@@ -7873,7 +7873,6 @@ export declare const CoordinatorToPlatformMessages: {
7873
7873
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7874
7874
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7875
7875
  }, "strip", z.ZodTypeAny, {
7876
- traceContext: Record<string, unknown>;
7877
7876
  execution: {
7878
7877
  task: {
7879
7878
  id: string;
@@ -7941,9 +7940,9 @@ export declare const CoordinatorToPlatformMessages: {
7941
7940
  id: string;
7942
7941
  } | undefined;
7943
7942
  };
7943
+ traceContext: Record<string, unknown>;
7944
7944
  environment?: Record<string, string> | undefined;
7945
7945
  }, {
7946
- traceContext: Record<string, unknown>;
7947
7946
  execution: {
7948
7947
  task: {
7949
7948
  id: string;
@@ -8011,11 +8010,11 @@ export declare const CoordinatorToPlatformMessages: {
8011
8010
  centsPerMs: number;
8012
8011
  } | undefined;
8013
8012
  };
8013
+ traceContext: Record<string, unknown>;
8014
8014
  environment?: Record<string, string> | undefined;
8015
8015
  }>;
8016
8016
  }, "strip", z.ZodTypeAny, {
8017
8017
  payload: {
8018
- traceContext: Record<string, unknown>;
8019
8018
  execution: {
8020
8019
  task: {
8021
8020
  id: string;
@@ -8083,12 +8082,12 @@ export declare const CoordinatorToPlatformMessages: {
8083
8082
  id: string;
8084
8083
  } | undefined;
8085
8084
  };
8085
+ traceContext: Record<string, unknown>;
8086
8086
  environment?: Record<string, string> | undefined;
8087
8087
  };
8088
8088
  success: true;
8089
8089
  }, {
8090
8090
  payload: {
8091
- traceContext: Record<string, unknown>;
8092
8091
  execution: {
8093
8092
  task: {
8094
8093
  id: string;
@@ -8156,6 +8155,7 @@ export declare const CoordinatorToPlatformMessages: {
8156
8155
  centsPerMs: number;
8157
8156
  } | undefined;
8158
8157
  };
8158
+ traceContext: Record<string, unknown>;
8159
8159
  environment?: Record<string, string> | undefined;
8160
8160
  };
8161
8161
  success: true;
@@ -8169,12 +8169,12 @@ export declare const CoordinatorToPlatformMessages: {
8169
8169
  totalCompletions: z.ZodNumber;
8170
8170
  }, "strip", z.ZodTypeAny, {
8171
8171
  version: "v1";
8172
- envId: string;
8173
8172
  runId: string;
8173
+ envId: string;
8174
8174
  totalCompletions: number;
8175
8175
  }, {
8176
- envId: string;
8177
8176
  runId: string;
8177
+ envId: string;
8178
8178
  totalCompletions: number;
8179
8179
  version?: "v1" | undefined;
8180
8180
  }>;
@@ -8198,16 +8198,16 @@ export declare const CoordinatorToPlatformMessages: {
8198
8198
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8199
8199
  }, "strip", z.ZodTypeAny, {
8200
8200
  isTest: boolean;
8201
+ traceContext: Record<string, unknown>;
8201
8202
  runId: string;
8202
8203
  messageId: string;
8203
- traceContext: Record<string, unknown>;
8204
8204
  attemptCount?: number | undefined;
8205
8205
  environment?: Record<string, string> | undefined;
8206
8206
  }, {
8207
8207
  isTest: boolean;
8208
+ traceContext: Record<string, unknown>;
8208
8209
  runId: string;
8209
8210
  messageId: string;
8210
- traceContext: Record<string, unknown>;
8211
8211
  attemptCount?: number | undefined;
8212
8212
  environment?: Record<string, string> | undefined;
8213
8213
  }>;
@@ -8215,9 +8215,9 @@ export declare const CoordinatorToPlatformMessages: {
8215
8215
  success: true;
8216
8216
  lazyPayload: {
8217
8217
  isTest: boolean;
8218
+ traceContext: Record<string, unknown>;
8218
8219
  runId: string;
8219
8220
  messageId: string;
8220
- traceContext: Record<string, unknown>;
8221
8221
  attemptCount?: number | undefined;
8222
8222
  environment?: Record<string, string> | undefined;
8223
8223
  };
@@ -8225,9 +8225,9 @@ export declare const CoordinatorToPlatformMessages: {
8225
8225
  success: true;
8226
8226
  lazyPayload: {
8227
8227
  isTest: boolean;
8228
+ traceContext: Record<string, unknown>;
8228
8229
  runId: string;
8229
8230
  messageId: string;
8230
- traceContext: Record<string, unknown>;
8231
8231
  attemptCount?: number | undefined;
8232
8232
  environment?: Record<string, string> | undefined;
8233
8233
  };
@@ -8732,44 +8732,6 @@ export declare const CoordinatorToPlatformMessages: {
8732
8732
  }>>;
8733
8733
  }, "strip", z.ZodTypeAny, {
8734
8734
  version: "v1" | "v2";
8735
- completion: {
8736
- error: {
8737
- message: string;
8738
- type: "BUILT_IN_ERROR";
8739
- name: string;
8740
- stackTrace: string;
8741
- } | {
8742
- type: "CUSTOM_ERROR";
8743
- raw: string;
8744
- } | {
8745
- type: "STRING_ERROR";
8746
- raw: string;
8747
- } | {
8748
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
8749
- type: "INTERNAL_ERROR";
8750
- message?: string | undefined;
8751
- stackTrace?: string | undefined;
8752
- };
8753
- id: string;
8754
- ok: false;
8755
- retry?: {
8756
- timestamp: number;
8757
- delay: number;
8758
- error?: unknown;
8759
- } | undefined;
8760
- skippedRetrying?: boolean | undefined;
8761
- usage?: {
8762
- durationMs: number;
8763
- } | undefined;
8764
- } | {
8765
- id: string;
8766
- ok: true;
8767
- outputType: string;
8768
- output?: string | undefined;
8769
- usage?: {
8770
- durationMs: number;
8771
- } | undefined;
8772
- };
8773
8735
  execution: {
8774
8736
  task: {
8775
8737
  id: string;
@@ -8837,11 +8799,6 @@ export declare const CoordinatorToPlatformMessages: {
8837
8799
  id: string;
8838
8800
  } | undefined;
8839
8801
  };
8840
- checkpoint?: {
8841
- location: string;
8842
- docker: boolean;
8843
- } | undefined;
8844
- }, {
8845
8802
  completion: {
8846
8803
  error: {
8847
8804
  message: string;
@@ -8880,6 +8837,11 @@ export declare const CoordinatorToPlatformMessages: {
8880
8837
  durationMs: number;
8881
8838
  } | undefined;
8882
8839
  };
8840
+ checkpoint?: {
8841
+ location: string;
8842
+ docker: boolean;
8843
+ } | undefined;
8844
+ }, {
8883
8845
  execution: {
8884
8846
  task: {
8885
8847
  id: string;
@@ -8947,6 +8909,44 @@ export declare const CoordinatorToPlatformMessages: {
8947
8909
  centsPerMs: number;
8948
8910
  } | undefined;
8949
8911
  };
8912
+ completion: {
8913
+ error: {
8914
+ message: string;
8915
+ type: "BUILT_IN_ERROR";
8916
+ name: string;
8917
+ stackTrace: string;
8918
+ } | {
8919
+ type: "CUSTOM_ERROR";
8920
+ raw: string;
8921
+ } | {
8922
+ type: "STRING_ERROR";
8923
+ raw: string;
8924
+ } | {
8925
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
8926
+ type: "INTERNAL_ERROR";
8927
+ message?: string | undefined;
8928
+ stackTrace?: string | undefined;
8929
+ };
8930
+ id: string;
8931
+ ok: false;
8932
+ retry?: {
8933
+ timestamp: number;
8934
+ delay: number;
8935
+ error?: unknown;
8936
+ } | undefined;
8937
+ skippedRetrying?: boolean | undefined;
8938
+ usage?: {
8939
+ durationMs: number;
8940
+ } | undefined;
8941
+ } | {
8942
+ id: string;
8943
+ ok: true;
8944
+ outputType: string;
8945
+ output?: string | undefined;
8946
+ usage?: {
8947
+ durationMs: number;
8948
+ } | undefined;
8949
+ };
8950
8950
  version?: "v1" | "v2" | undefined;
8951
8951
  checkpoint?: {
8952
8952
  location: string;
@@ -11281,44 +11281,6 @@ export declare const ClientToSharedQueueMessages: {
11281
11281
  }, "strip", z.ZodTypeAny, {
11282
11282
  type: "TASK_RUN_COMPLETED";
11283
11283
  version: "v1";
11284
- completion: {
11285
- error: {
11286
- message: string;
11287
- type: "BUILT_IN_ERROR";
11288
- name: string;
11289
- stackTrace: string;
11290
- } | {
11291
- type: "CUSTOM_ERROR";
11292
- raw: string;
11293
- } | {
11294
- type: "STRING_ERROR";
11295
- raw: string;
11296
- } | {
11297
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
11298
- type: "INTERNAL_ERROR";
11299
- message?: string | undefined;
11300
- stackTrace?: string | undefined;
11301
- };
11302
- id: string;
11303
- ok: false;
11304
- retry?: {
11305
- timestamp: number;
11306
- delay: number;
11307
- error?: unknown;
11308
- } | undefined;
11309
- skippedRetrying?: boolean | undefined;
11310
- usage?: {
11311
- durationMs: number;
11312
- } | undefined;
11313
- } | {
11314
- id: string;
11315
- ok: true;
11316
- outputType: string;
11317
- output?: string | undefined;
11318
- usage?: {
11319
- durationMs: number;
11320
- } | undefined;
11321
- };
11322
11284
  execution: {
11323
11285
  task: {
11324
11286
  id: string;
@@ -11381,8 +11343,6 @@ export declare const ClientToSharedQueueMessages: {
11381
11343
  centsPerMs: number;
11382
11344
  } | undefined;
11383
11345
  };
11384
- }, {
11385
- type: "TASK_RUN_COMPLETED";
11386
11346
  completion: {
11387
11347
  error: {
11388
11348
  message: string;
@@ -11421,6 +11381,8 @@ export declare const ClientToSharedQueueMessages: {
11421
11381
  durationMs: number;
11422
11382
  } | undefined;
11423
11383
  };
11384
+ }, {
11385
+ type: "TASK_RUN_COMPLETED";
11424
11386
  execution: {
11425
11387
  task: {
11426
11388
  id: string;
@@ -11483,6 +11445,44 @@ export declare const ClientToSharedQueueMessages: {
11483
11445
  centsPerMs: number;
11484
11446
  } | undefined;
11485
11447
  };
11448
+ completion: {
11449
+ error: {
11450
+ message: string;
11451
+ type: "BUILT_IN_ERROR";
11452
+ name: string;
11453
+ stackTrace: string;
11454
+ } | {
11455
+ type: "CUSTOM_ERROR";
11456
+ raw: string;
11457
+ } | {
11458
+ type: "STRING_ERROR";
11459
+ raw: string;
11460
+ } | {
11461
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
11462
+ type: "INTERNAL_ERROR";
11463
+ message?: string | undefined;
11464
+ stackTrace?: string | undefined;
11465
+ };
11466
+ id: string;
11467
+ ok: false;
11468
+ retry?: {
11469
+ timestamp: number;
11470
+ delay: number;
11471
+ error?: unknown;
11472
+ } | undefined;
11473
+ skippedRetrying?: boolean | undefined;
11474
+ usage?: {
11475
+ durationMs: number;
11476
+ } | undefined;
11477
+ } | {
11478
+ id: string;
11479
+ ok: true;
11480
+ outputType: string;
11481
+ output?: string | undefined;
11482
+ usage?: {
11483
+ durationMs: number;
11484
+ } | undefined;
11485
+ };
11486
11486
  version?: "v1" | undefined;
11487
11487
  }>, z.ZodObject<{
11488
11488
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
@@ -11700,58 +11700,20 @@ export declare const ClientToSharedQueueMessages: {
11700
11700
  }>, z.ZodObject<{
11701
11701
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
11702
11702
  type: z.ZodLiteral<"TASK_RUN_HEARTBEAT">;
11703
- id: z.ZodString;
11704
- }, "strip", z.ZodTypeAny, {
11705
- type: "TASK_RUN_HEARTBEAT";
11706
- id: string;
11707
- version: "v1";
11708
- }, {
11709
- type: "TASK_RUN_HEARTBEAT";
11710
- id: string;
11711
- version?: "v1" | undefined;
11712
- }>]>;
11713
- }, "strip", z.ZodTypeAny, {
11714
- data: {
11715
- type: "TASK_RUN_COMPLETED";
11716
- version: "v1";
11717
- completion: {
11718
- error: {
11719
- message: string;
11720
- type: "BUILT_IN_ERROR";
11721
- name: string;
11722
- stackTrace: string;
11723
- } | {
11724
- type: "CUSTOM_ERROR";
11725
- raw: string;
11726
- } | {
11727
- type: "STRING_ERROR";
11728
- raw: string;
11729
- } | {
11730
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
11731
- type: "INTERNAL_ERROR";
11732
- message?: string | undefined;
11733
- stackTrace?: string | undefined;
11734
- };
11735
- id: string;
11736
- ok: false;
11737
- retry?: {
11738
- timestamp: number;
11739
- delay: number;
11740
- error?: unknown;
11741
- } | undefined;
11742
- skippedRetrying?: boolean | undefined;
11743
- usage?: {
11744
- durationMs: number;
11745
- } | undefined;
11746
- } | {
11747
- id: string;
11748
- ok: true;
11749
- outputType: string;
11750
- output?: string | undefined;
11751
- usage?: {
11752
- durationMs: number;
11753
- } | undefined;
11754
- };
11703
+ id: z.ZodString;
11704
+ }, "strip", z.ZodTypeAny, {
11705
+ type: "TASK_RUN_HEARTBEAT";
11706
+ id: string;
11707
+ version: "v1";
11708
+ }, {
11709
+ type: "TASK_RUN_HEARTBEAT";
11710
+ id: string;
11711
+ version?: "v1" | undefined;
11712
+ }>]>;
11713
+ }, "strip", z.ZodTypeAny, {
11714
+ data: {
11715
+ type: "TASK_RUN_COMPLETED";
11716
+ version: "v1";
11755
11717
  execution: {
11756
11718
  task: {
11757
11719
  id: string;
@@ -11814,9 +11776,6 @@ export declare const ClientToSharedQueueMessages: {
11814
11776
  centsPerMs: number;
11815
11777
  } | undefined;
11816
11778
  };
11817
- } | {
11818
- type: "TASK_RUN_FAILED_TO_RUN";
11819
- version: "v1";
11820
11779
  completion: {
11821
11780
  error: {
11822
11781
  message: string;
@@ -11846,21 +11805,18 @@ export declare const ClientToSharedQueueMessages: {
11846
11805
  usage?: {
11847
11806
  durationMs: number;
11848
11807
  } | undefined;
11808
+ } | {
11809
+ id: string;
11810
+ ok: true;
11811
+ outputType: string;
11812
+ output?: string | undefined;
11813
+ usage?: {
11814
+ durationMs: number;
11815
+ } | undefined;
11849
11816
  };
11850
11817
  } | {
11851
- type: "TASK_HEARTBEAT";
11852
- id: string;
11853
- version: "v1";
11854
- } | {
11855
- type: "TASK_RUN_HEARTBEAT";
11856
- id: string;
11818
+ type: "TASK_RUN_FAILED_TO_RUN";
11857
11819
  version: "v1";
11858
- };
11859
- version: "v1";
11860
- backgroundWorkerId: string;
11861
- }, {
11862
- data: {
11863
- type: "TASK_RUN_COMPLETED";
11864
11820
  completion: {
11865
11821
  error: {
11866
11822
  message: string;
@@ -11890,15 +11846,21 @@ export declare const ClientToSharedQueueMessages: {
11890
11846
  usage?: {
11891
11847
  durationMs: number;
11892
11848
  } | undefined;
11893
- } | {
11894
- id: string;
11895
- ok: true;
11896
- outputType: string;
11897
- output?: string | undefined;
11898
- usage?: {
11899
- durationMs: number;
11900
- } | undefined;
11901
11849
  };
11850
+ } | {
11851
+ type: "TASK_HEARTBEAT";
11852
+ id: string;
11853
+ version: "v1";
11854
+ } | {
11855
+ type: "TASK_RUN_HEARTBEAT";
11856
+ id: string;
11857
+ version: "v1";
11858
+ };
11859
+ version: "v1";
11860
+ backgroundWorkerId: string;
11861
+ }, {
11862
+ data: {
11863
+ type: "TASK_RUN_COMPLETED";
11902
11864
  execution: {
11903
11865
  task: {
11904
11866
  id: string;
@@ -11961,6 +11923,44 @@ export declare const ClientToSharedQueueMessages: {
11961
11923
  centsPerMs: number;
11962
11924
  } | undefined;
11963
11925
  };
11926
+ completion: {
11927
+ error: {
11928
+ message: string;
11929
+ type: "BUILT_IN_ERROR";
11930
+ name: string;
11931
+ stackTrace: string;
11932
+ } | {
11933
+ type: "CUSTOM_ERROR";
11934
+ raw: string;
11935
+ } | {
11936
+ type: "STRING_ERROR";
11937
+ raw: string;
11938
+ } | {
11939
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
11940
+ type: "INTERNAL_ERROR";
11941
+ message?: string | undefined;
11942
+ stackTrace?: string | undefined;
11943
+ };
11944
+ id: string;
11945
+ ok: false;
11946
+ retry?: {
11947
+ timestamp: number;
11948
+ delay: number;
11949
+ error?: unknown;
11950
+ } | undefined;
11951
+ skippedRetrying?: boolean | undefined;
11952
+ usage?: {
11953
+ durationMs: number;
11954
+ } | undefined;
11955
+ } | {
11956
+ id: string;
11957
+ ok: true;
11958
+ outputType: string;
11959
+ output?: string | undefined;
11960
+ usage?: {
11961
+ durationMs: number;
11962
+ } | undefined;
11963
+ };
11964
11964
  version?: "v1" | undefined;
11965
11965
  } | {
11966
11966
  type: "TASK_RUN_FAILED_TO_RUN";
@@ -12032,12 +12032,12 @@ export declare const SharedQueueToClientMessages: {
12032
12032
  taskRunId: z.ZodString;
12033
12033
  }, "strip", z.ZodTypeAny, {
12034
12034
  type: "CANCEL_ATTEMPT";
12035
- taskAttemptId: string;
12036
12035
  taskRunId: string;
12036
+ taskAttemptId: string;
12037
12037
  }, {
12038
12038
  type: "CANCEL_ATTEMPT";
12039
- taskAttemptId: string;
12040
12039
  taskRunId: string;
12040
+ taskAttemptId: string;
12041
12041
  }>, z.ZodObject<{
12042
12042
  type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
12043
12043
  image: z.ZodString;
@@ -12074,12 +12074,12 @@ export declare const SharedQueueToClientMessages: {
12074
12074
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
12075
12075
  centsPerMs: number;
12076
12076
  };
12077
+ runId: string;
12078
+ projectId: string;
12077
12079
  image: string;
12078
12080
  envId: string;
12079
12081
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
12080
12082
  orgId: string;
12081
- projectId: string;
12082
- runId: string;
12083
12083
  nextAttemptNumber?: number | undefined;
12084
12084
  id?: string | undefined;
12085
12085
  }, {
@@ -12091,12 +12091,12 @@ export declare const SharedQueueToClientMessages: {
12091
12091
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
12092
12092
  centsPerMs: number;
12093
12093
  };
12094
+ runId: string;
12095
+ projectId: string;
12094
12096
  image: string;
12095
12097
  envId: string;
12096
12098
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
12097
12099
  orgId: string;
12098
- projectId: string;
12099
- runId: string;
12100
12100
  nextAttemptNumber?: number | undefined;
12101
12101
  id?: string | undefined;
12102
12102
  }>, z.ZodObject<{
@@ -12110,16 +12110,16 @@ export declare const SharedQueueToClientMessages: {
12110
12110
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12111
12111
  }, "strip", z.ZodTypeAny, {
12112
12112
  isTest: boolean;
12113
+ traceContext: Record<string, unknown>;
12113
12114
  runId: string;
12114
12115
  messageId: string;
12115
- traceContext: Record<string, unknown>;
12116
12116
  attemptCount?: number | undefined;
12117
12117
  environment?: Record<string, string> | undefined;
12118
12118
  }, {
12119
12119
  isTest: boolean;
12120
+ traceContext: Record<string, unknown>;
12120
12121
  runId: string;
12121
12122
  messageId: string;
12122
- traceContext: Record<string, unknown>;
12123
12123
  attemptCount?: number | undefined;
12124
12124
  environment?: Record<string, string> | undefined;
12125
12125
  }>;
@@ -12127,9 +12127,9 @@ export declare const SharedQueueToClientMessages: {
12127
12127
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
12128
12128
  payload: {
12129
12129
  isTest: boolean;
12130
+ traceContext: Record<string, unknown>;
12130
12131
  runId: string;
12131
12132
  messageId: string;
12132
- traceContext: Record<string, unknown>;
12133
12133
  attemptCount?: number | undefined;
12134
12134
  environment?: Record<string, string> | undefined;
12135
12135
  };
@@ -12137,9 +12137,9 @@ export declare const SharedQueueToClientMessages: {
12137
12137
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
12138
12138
  payload: {
12139
12139
  isTest: boolean;
12140
+ traceContext: Record<string, unknown>;
12140
12141
  runId: string;
12141
12142
  messageId: string;
12142
- traceContext: Record<string, unknown>;
12143
12143
  attemptCount?: number | undefined;
12144
12144
  environment?: Record<string, string> | undefined;
12145
12145
  };
@@ -12147,8 +12147,8 @@ export declare const SharedQueueToClientMessages: {
12147
12147
  }, "strip", z.ZodTypeAny, {
12148
12148
  data: {
12149
12149
  type: "CANCEL_ATTEMPT";
12150
- taskAttemptId: string;
12151
12150
  taskRunId: string;
12151
+ taskAttemptId: string;
12152
12152
  } | {
12153
12153
  type: "SCHEDULE_ATTEMPT";
12154
12154
  version: string;
@@ -12158,21 +12158,21 @@ export declare const SharedQueueToClientMessages: {
12158
12158
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
12159
12159
  centsPerMs: number;
12160
12160
  };
12161
+ runId: string;
12162
+ projectId: string;
12161
12163
  image: string;
12162
12164
  envId: string;
12163
12165
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
12164
12166
  orgId: string;
12165
- projectId: string;
12166
- runId: string;
12167
12167
  nextAttemptNumber?: number | undefined;
12168
12168
  id?: string | undefined;
12169
12169
  } | {
12170
12170
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
12171
12171
  payload: {
12172
12172
  isTest: boolean;
12173
+ traceContext: Record<string, unknown>;
12173
12174
  runId: string;
12174
12175
  messageId: string;
12175
- traceContext: Record<string, unknown>;
12176
12176
  attemptCount?: number | undefined;
12177
12177
  environment?: Record<string, string> | undefined;
12178
12178
  };
@@ -12182,8 +12182,8 @@ export declare const SharedQueueToClientMessages: {
12182
12182
  }, {
12183
12183
  data: {
12184
12184
  type: "CANCEL_ATTEMPT";
12185
- taskAttemptId: string;
12186
12185
  taskRunId: string;
12186
+ taskAttemptId: string;
12187
12187
  } | {
12188
12188
  type: "SCHEDULE_ATTEMPT";
12189
12189
  version: string;
@@ -12193,21 +12193,21 @@ export declare const SharedQueueToClientMessages: {
12193
12193
  name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
12194
12194
  centsPerMs: number;
12195
12195
  };
12196
+ runId: string;
12197
+ projectId: string;
12196
12198
  image: string;
12197
12199
  envId: string;
12198
12200
  envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
12199
12201
  orgId: string;
12200
- projectId: string;
12201
- runId: string;
12202
12202
  nextAttemptNumber?: number | undefined;
12203
12203
  id?: string | undefined;
12204
12204
  } | {
12205
12205
  type: "EXECUTE_RUN_LAZY_ATTEMPT";
12206
12206
  payload: {
12207
12207
  isTest: boolean;
12208
+ traceContext: Record<string, unknown>;
12208
12209
  runId: string;
12209
12210
  messageId: string;
12210
- traceContext: Record<string, unknown>;
12211
12211
  attemptCount?: number | undefined;
12212
12212
  environment?: Record<string, string> | undefined;
12213
12213
  };
@@ -12582,8 +12582,8 @@ export declare const ProdWorkerToCoordinatorMessages: {
12582
12582
  } | undefined;
12583
12583
  maxDuration?: number | undefined;
12584
12584
  }>, "many">;
12585
- deploymentId: z.ZodString;
12586
12585
  packageVersion: z.ZodString;
12586
+ deploymentId: z.ZodString;
12587
12587
  version: z.ZodLiteral<"v1">;
12588
12588
  }, "strip", z.ZodTypeAny, {
12589
12589
  version: "v1";
@@ -12647,8 +12647,8 @@ export declare const ProdWorkerToCoordinatorMessages: {
12647
12647
  } | undefined;
12648
12648
  maxDuration?: number | undefined;
12649
12649
  }[];
12650
- deploymentId: string;
12651
12650
  packageVersion: string;
12651
+ deploymentId: string;
12652
12652
  }, {
12653
12653
  version: "v1";
12654
12654
  tasks: {
@@ -12711,8 +12711,8 @@ export declare const ProdWorkerToCoordinatorMessages: {
12711
12711
  } | undefined;
12712
12712
  maxDuration?: number | undefined;
12713
12713
  }[];
12714
- deploymentId: string;
12715
12714
  packageVersion: string;
12715
+ deploymentId: string;
12716
12716
  }>, z.ZodObject<{
12717
12717
  tasks: z.ZodArray<z.ZodObject<{
12718
12718
  id: z.ZodString;
@@ -13066,8 +13066,8 @@ export declare const ProdWorkerToCoordinatorMessages: {
13066
13066
  } | undefined;
13067
13067
  maxDuration?: number | undefined;
13068
13068
  }>, "many">;
13069
- deploymentId: z.ZodString;
13070
13069
  packageVersion: z.ZodString;
13070
+ deploymentId: z.ZodString;
13071
13071
  version: z.ZodLiteral<"v2">;
13072
13072
  supportsLazyAttempts: z.ZodBoolean;
13073
13073
  }, "strip", z.ZodTypeAny, {
@@ -13132,9 +13132,9 @@ export declare const ProdWorkerToCoordinatorMessages: {
13132
13132
  } | undefined;
13133
13133
  maxDuration?: number | undefined;
13134
13134
  }[];
13135
- deploymentId: string;
13136
13135
  packageVersion: string;
13137
13136
  supportsLazyAttempts: boolean;
13137
+ deploymentId: string;
13138
13138
  }, {
13139
13139
  version: "v2";
13140
13140
  tasks: {
@@ -13197,9 +13197,9 @@ export declare const ProdWorkerToCoordinatorMessages: {
13197
13197
  } | undefined;
13198
13198
  maxDuration?: number | undefined;
13199
13199
  }[];
13200
- deploymentId: string;
13201
13200
  packageVersion: string;
13202
13201
  supportsLazyAttempts: boolean;
13202
+ deploymentId: string;
13203
13203
  }>]>;
13204
13204
  callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
13205
13205
  success: z.ZodLiteral<false>;
@@ -13813,44 +13813,6 @@ export declare const ProdWorkerToCoordinatorMessages: {
13813
13813
  }>]>;
13814
13814
  }, "strip", z.ZodTypeAny, {
13815
13815
  version: "v1" | "v2";
13816
- completion: {
13817
- error: {
13818
- message: string;
13819
- type: "BUILT_IN_ERROR";
13820
- name: string;
13821
- stackTrace: string;
13822
- } | {
13823
- type: "CUSTOM_ERROR";
13824
- raw: string;
13825
- } | {
13826
- type: "STRING_ERROR";
13827
- raw: string;
13828
- } | {
13829
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
13830
- type: "INTERNAL_ERROR";
13831
- message?: string | undefined;
13832
- stackTrace?: string | undefined;
13833
- };
13834
- id: string;
13835
- ok: false;
13836
- retry?: {
13837
- timestamp: number;
13838
- delay: number;
13839
- error?: unknown;
13840
- } | undefined;
13841
- skippedRetrying?: boolean | undefined;
13842
- usage?: {
13843
- durationMs: number;
13844
- } | undefined;
13845
- } | {
13846
- id: string;
13847
- ok: true;
13848
- outputType: string;
13849
- output?: string | undefined;
13850
- usage?: {
13851
- durationMs: number;
13852
- } | undefined;
13853
- };
13854
13816
  execution: {
13855
13817
  task: {
13856
13818
  id: string;
@@ -13918,7 +13880,6 @@ export declare const ProdWorkerToCoordinatorMessages: {
13918
13880
  id: string;
13919
13881
  } | undefined;
13920
13882
  };
13921
- }, {
13922
13883
  completion: {
13923
13884
  error: {
13924
13885
  message: string;
@@ -13957,6 +13918,7 @@ export declare const ProdWorkerToCoordinatorMessages: {
13957
13918
  durationMs: number;
13958
13919
  } | undefined;
13959
13920
  };
13921
+ }, {
13960
13922
  execution: {
13961
13923
  task: {
13962
13924
  id: string;
@@ -14024,6 +13986,44 @@ export declare const ProdWorkerToCoordinatorMessages: {
14024
13986
  centsPerMs: number;
14025
13987
  } | undefined;
14026
13988
  };
13989
+ completion: {
13990
+ error: {
13991
+ message: string;
13992
+ type: "BUILT_IN_ERROR";
13993
+ name: string;
13994
+ stackTrace: string;
13995
+ } | {
13996
+ type: "CUSTOM_ERROR";
13997
+ raw: string;
13998
+ } | {
13999
+ type: "STRING_ERROR";
14000
+ raw: string;
14001
+ } | {
14002
+ code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
14003
+ type: "INTERNAL_ERROR";
14004
+ message?: string | undefined;
14005
+ stackTrace?: string | undefined;
14006
+ };
14007
+ id: string;
14008
+ ok: false;
14009
+ retry?: {
14010
+ timestamp: number;
14011
+ delay: number;
14012
+ error?: unknown;
14013
+ } | undefined;
14014
+ skippedRetrying?: boolean | undefined;
14015
+ usage?: {
14016
+ durationMs: number;
14017
+ } | undefined;
14018
+ } | {
14019
+ id: string;
14020
+ ok: true;
14021
+ outputType: string;
14022
+ output?: string | undefined;
14023
+ usage?: {
14024
+ durationMs: number;
14025
+ } | undefined;
14026
+ };
14027
14027
  version?: "v1" | "v2" | undefined;
14028
14028
  }>;
14029
14029
  callback: z.ZodObject<{
@@ -14685,7 +14685,6 @@ export declare const ProdWorkerToCoordinatorMessages: {
14685
14685
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14686
14686
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
14687
14687
  }, "strip", z.ZodTypeAny, {
14688
- traceContext: Record<string, unknown>;
14689
14688
  execution: {
14690
14689
  task: {
14691
14690
  id: string;
@@ -14753,9 +14752,9 @@ export declare const ProdWorkerToCoordinatorMessages: {
14753
14752
  id: string;
14754
14753
  } | undefined;
14755
14754
  };
14755
+ traceContext: Record<string, unknown>;
14756
14756
  environment?: Record<string, string> | undefined;
14757
14757
  }, {
14758
- traceContext: Record<string, unknown>;
14759
14758
  execution: {
14760
14759
  task: {
14761
14760
  id: string;
@@ -14823,12 +14822,12 @@ export declare const ProdWorkerToCoordinatorMessages: {
14823
14822
  centsPerMs: number;
14824
14823
  } | undefined;
14825
14824
  };
14825
+ traceContext: Record<string, unknown>;
14826
14826
  environment?: Record<string, string> | undefined;
14827
14827
  }>;
14828
14828
  }, "strip", z.ZodTypeAny, {
14829
14829
  success: true;
14830
14830
  executionPayload: {
14831
- traceContext: Record<string, unknown>;
14832
14831
  execution: {
14833
14832
  task: {
14834
14833
  id: string;
@@ -14896,12 +14895,12 @@ export declare const ProdWorkerToCoordinatorMessages: {
14896
14895
  id: string;
14897
14896
  } | undefined;
14898
14897
  };
14898
+ traceContext: Record<string, unknown>;
14899
14899
  environment?: Record<string, string> | undefined;
14900
14900
  };
14901
14901
  }, {
14902
14902
  success: true;
14903
14903
  executionPayload: {
14904
- traceContext: Record<string, unknown>;
14905
14904
  execution: {
14906
14905
  task: {
14907
14906
  id: string;
@@ -14969,6 +14968,7 @@ export declare const ProdWorkerToCoordinatorMessages: {
14969
14968
  centsPerMs: number;
14970
14969
  } | undefined;
14971
14970
  };
14971
+ traceContext: Record<string, unknown>;
14972
14972
  environment?: Record<string, string> | undefined;
14973
14973
  };
14974
14974
  }>]>;
@@ -16008,7 +16008,6 @@ export declare const CoordinatorToProdWorkerMessages: {
16008
16008
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16009
16009
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16010
16010
  }, "strip", z.ZodTypeAny, {
16011
- traceContext: Record<string, unknown>;
16012
16011
  execution: {
16013
16012
  task: {
16014
16013
  id: string;
@@ -16076,9 +16075,9 @@ export declare const CoordinatorToProdWorkerMessages: {
16076
16075
  id: string;
16077
16076
  } | undefined;
16078
16077
  };
16078
+ traceContext: Record<string, unknown>;
16079
16079
  environment?: Record<string, string> | undefined;
16080
16080
  }, {
16081
- traceContext: Record<string, unknown>;
16082
16081
  execution: {
16083
16082
  task: {
16084
16083
  id: string;
@@ -16146,12 +16145,12 @@ export declare const CoordinatorToProdWorkerMessages: {
16146
16145
  centsPerMs: number;
16147
16146
  } | undefined;
16148
16147
  };
16148
+ traceContext: Record<string, unknown>;
16149
16149
  environment?: Record<string, string> | undefined;
16150
16150
  }>;
16151
16151
  }, "strip", z.ZodTypeAny, {
16152
16152
  version: "v1";
16153
16153
  executionPayload: {
16154
- traceContext: Record<string, unknown>;
16155
16154
  execution: {
16156
16155
  task: {
16157
16156
  id: string;
@@ -16219,11 +16218,11 @@ export declare const CoordinatorToProdWorkerMessages: {
16219
16218
  id: string;
16220
16219
  } | undefined;
16221
16220
  };
16221
+ traceContext: Record<string, unknown>;
16222
16222
  environment?: Record<string, string> | undefined;
16223
16223
  };
16224
16224
  }, {
16225
16225
  executionPayload: {
16226
- traceContext: Record<string, unknown>;
16227
16226
  execution: {
16228
16227
  task: {
16229
16228
  id: string;
@@ -16291,6 +16290,7 @@ export declare const CoordinatorToProdWorkerMessages: {
16291
16290
  centsPerMs: number;
16292
16291
  } | undefined;
16293
16292
  };
16293
+ traceContext: Record<string, unknown>;
16294
16294
  environment?: Record<string, string> | undefined;
16295
16295
  };
16296
16296
  version?: "v1" | undefined;
@@ -16308,16 +16308,16 @@ export declare const CoordinatorToProdWorkerMessages: {
16308
16308
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16309
16309
  }, "strip", z.ZodTypeAny, {
16310
16310
  isTest: boolean;
16311
+ traceContext: Record<string, unknown>;
16311
16312
  runId: string;
16312
16313
  messageId: string;
16313
- traceContext: Record<string, unknown>;
16314
16314
  attemptCount?: number | undefined;
16315
16315
  environment?: Record<string, string> | undefined;
16316
16316
  }, {
16317
16317
  isTest: boolean;
16318
+ traceContext: Record<string, unknown>;
16318
16319
  runId: string;
16319
16320
  messageId: string;
16320
- traceContext: Record<string, unknown>;
16321
16321
  attemptCount?: number | undefined;
16322
16322
  environment?: Record<string, string> | undefined;
16323
16323
  }>;
@@ -16325,18 +16325,18 @@ export declare const CoordinatorToProdWorkerMessages: {
16325
16325
  version: "v1";
16326
16326
  lazyPayload: {
16327
16327
  isTest: boolean;
16328
+ traceContext: Record<string, unknown>;
16328
16329
  runId: string;
16329
16330
  messageId: string;
16330
- traceContext: Record<string, unknown>;
16331
16331
  attemptCount?: number | undefined;
16332
16332
  environment?: Record<string, string> | undefined;
16333
16333
  };
16334
16334
  }, {
16335
16335
  lazyPayload: {
16336
16336
  isTest: boolean;
16337
+ traceContext: Record<string, unknown>;
16337
16338
  runId: string;
16338
16339
  messageId: string;
16339
- traceContext: Record<string, unknown>;
16340
16340
  attemptCount?: number | undefined;
16341
16341
  environment?: Record<string, string> | undefined;
16342
16342
  };
@@ -16398,9 +16398,9 @@ export declare const ProdWorkerSocketData: z.ZodObject<{
16398
16398
  deploymentVersion: z.ZodString;
16399
16399
  requiresCheckpointResumeWithMessage: z.ZodOptional<z.ZodString>;
16400
16400
  }, "strip", z.ZodTypeAny, {
16401
- envId: string;
16402
- runId: string;
16403
16401
  contentHash: string;
16402
+ runId: string;
16403
+ envId: string;
16404
16404
  deploymentId: string;
16405
16405
  projectRef: string;
16406
16406
  podName: string;
@@ -16409,9 +16409,9 @@ export declare const ProdWorkerSocketData: z.ZodObject<{
16409
16409
  attemptNumber?: string | undefined;
16410
16410
  requiresCheckpointResumeWithMessage?: string | undefined;
16411
16411
  }, {
16412
- envId: string;
16413
- runId: string;
16414
16412
  contentHash: string;
16413
+ runId: string;
16414
+ envId: string;
16415
16415
  deploymentId: string;
16416
16416
  projectRef: string;
16417
16417
  podName: string;