@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,5 +1,5 @@
1
- import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-psJfQhBB.mjs';
2
- import { n as ProdWorkerToChildMessages, m as ProdChildToWorkerMessages } from '../../messages-GvjBDSAA.mjs';
1
+ import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-KhqZOMNe.mjs';
2
+ import { n as ProdWorkerToChildMessages, m as ProdChildToWorkerMessages } from '../../messages-oFuHKbi4.mjs';
3
3
  import { ZodIpcConnection } from '../zodIpc.mjs';
4
4
  import 'zod';
5
5
  import '../zodSocket.mjs';
@@ -1,5 +1,5 @@
1
- import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-psJfQhBB.js';
2
- import { n as ProdWorkerToChildMessages, m as ProdChildToWorkerMessages } from '../../messages-GvjBDSAA.js';
1
+ import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, b as TaskRunContext, p as TaskRunExecution } from '../../manager-KhqZOMNe.js';
2
+ import { n as ProdWorkerToChildMessages, m as ProdChildToWorkerMessages } from '../../messages-oFuHKbi4.js';
3
3
  import { ZodIpcConnection } from '../zodIpc.js';
4
4
  import 'zod';
5
5
  import '../zodSocket.js';
@@ -1,9 +1,9 @@
1
- import { c as TriggerTracer, e as ConsoleInterceptor, h as Config, B as ProjectConfig, z as HandleErrorFunction, b as TaskMetadataWithFunctions, C as Clock, a as ClockTime } from '../../consoleInterceptor-hjdjADX8.mjs';
2
- export { d as TaskContextSpanProcessor, t as taskContextManager } from '../../consoleInterceptor-hjdjADX8.mjs';
1
+ import { c as TriggerTracer, e as ConsoleInterceptor, h as Config, B as ProjectConfig, z as HandleErrorFunction, b as TaskMetadataWithFunctions, C as Clock, a as ClockTime } from '../../consoleInterceptor-tCKb2R0l.mjs';
2
+ export { d as TaskContextSpanProcessor, t as taskContextManager } from '../../consoleInterceptor-tCKb2R0l.mjs';
3
3
  import { T as TracingSDK } from '../../tracingSDK-XMTLzw35.mjs';
4
- import { p as TaskRunExecution, T as TaskRunExecutionResult } from '../../manager-psJfQhBB.mjs';
5
- export { R as RuntimeManager } from '../../manager-psJfQhBB.mjs';
6
- import { g as BackgroundWorkerProperties } from '../../messages-GvjBDSAA.mjs';
4
+ import { p as TaskRunExecution, T as TaskRunExecutionResult } from '../../manager-KhqZOMNe.mjs';
5
+ export { R as RuntimeManager } from '../../manager-KhqZOMNe.mjs';
6
+ import { g as BackgroundWorkerProperties } from '../../messages-oFuHKbi4.mjs';
7
7
  import { PreciseDate } from '@google-cloud/precise-date';
8
8
  import '@opentelemetry/api';
9
9
  import '@opentelemetry/api-logs';
@@ -1,9 +1,9 @@
1
- import { c as TriggerTracer, e as ConsoleInterceptor, h as Config, B as ProjectConfig, z as HandleErrorFunction, b as TaskMetadataWithFunctions, C as Clock, a as ClockTime } from '../../consoleInterceptor-6WZo2qUS.js';
2
- export { d as TaskContextSpanProcessor, t as taskContextManager } from '../../consoleInterceptor-6WZo2qUS.js';
1
+ import { c as TriggerTracer, e as ConsoleInterceptor, h as Config, B as ProjectConfig, z as HandleErrorFunction, b as TaskMetadataWithFunctions, C as Clock, a as ClockTime } from '../../consoleInterceptor-pKvaiAI6.js';
2
+ export { d as TaskContextSpanProcessor, t as taskContextManager } from '../../consoleInterceptor-pKvaiAI6.js';
3
3
  import { T as TracingSDK } from '../../tracingSDK-XMTLzw35.js';
4
- import { p as TaskRunExecution, T as TaskRunExecutionResult } from '../../manager-psJfQhBB.js';
5
- export { R as RuntimeManager } from '../../manager-psJfQhBB.js';
6
- import { g as BackgroundWorkerProperties } from '../../messages-GvjBDSAA.js';
4
+ import { p as TaskRunExecution, T as TaskRunExecutionResult } from '../../manager-KhqZOMNe.js';
5
+ export { R as RuntimeManager } from '../../manager-KhqZOMNe.js';
6
+ import { g as BackgroundWorkerProperties } from '../../messages-oFuHKbi4.js';
7
7
  import { PreciseDate } from '@google-cloud/precise-date';
8
8
  import '@opentelemetry/api';
9
9
  import '@opentelemetry/api-logs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trigger.dev/core",
3
- "version": "0.0.0-v3-trigger-dirs-20240422221109",
3
+ "version": "0.0.0-v3-trigger-dirs-20240423091017",
4
4
  "description": "Core code used across the Trigger.dev SDK and platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -145,8 +145,8 @@
145
145
  "tsup": "^8.0.1",
146
146
  "typescript": "^5.3.0",
147
147
  "socket.io": "4.7.4",
148
- "@trigger.dev/tsconfig": "0.0.0",
149
- "@trigger.dev/tsup": "0.0.0"
148
+ "@trigger.dev/tsup": "0.0.0",
149
+ "@trigger.dev/tsconfig": "0.0.0"
150
150
  },
151
151
  "engines": {
152
152
  "node": ">=18.0.0"
@@ -6,14 +6,14 @@ declare const TaskRunBuiltInError: z.ZodObject<{
6
6
  message: z.ZodString;
7
7
  stackTrace: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- name: string;
10
- type: "BUILT_IN_ERROR";
11
9
  message: string;
10
+ type: "BUILT_IN_ERROR";
11
+ name: string;
12
12
  stackTrace: string;
13
13
  }, {
14
- name: string;
15
- type: "BUILT_IN_ERROR";
16
14
  message: string;
15
+ type: "BUILT_IN_ERROR";
16
+ name: string;
17
17
  stackTrace: string;
18
18
  }>;
19
19
  type TaskRunBuiltInError = z.infer<typeof TaskRunBuiltInError>;
@@ -57,12 +57,12 @@ declare const TaskRunInternalError: z.ZodObject<{
57
57
  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"]>;
58
58
  message: z.ZodOptional<z.ZodString>;
59
59
  }, "strip", z.ZodTypeAny, {
60
- type: "INTERNAL_ERROR";
61
60
  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";
61
+ type: "INTERNAL_ERROR";
62
62
  message?: string | undefined;
63
63
  }, {
64
- type: "INTERNAL_ERROR";
65
64
  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";
65
+ type: "INTERNAL_ERROR";
66
66
  message?: string | undefined;
67
67
  }>;
68
68
  type TaskRunInternalError = z.infer<typeof TaskRunInternalError>;
@@ -72,14 +72,14 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
72
72
  message: z.ZodString;
73
73
  stackTrace: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- name: string;
76
- type: "BUILT_IN_ERROR";
77
75
  message: string;
76
+ type: "BUILT_IN_ERROR";
77
+ name: string;
78
78
  stackTrace: string;
79
79
  }, {
80
- name: string;
81
- type: "BUILT_IN_ERROR";
82
80
  message: string;
81
+ type: "BUILT_IN_ERROR";
82
+ name: string;
83
83
  stackTrace: string;
84
84
  }>, z.ZodObject<{
85
85
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -104,12 +104,12 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
104
104
  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"]>;
105
105
  message: z.ZodOptional<z.ZodString>;
106
106
  }, "strip", z.ZodTypeAny, {
107
- type: "INTERNAL_ERROR";
108
107
  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";
108
+ type: "INTERNAL_ERROR";
109
109
  message?: string | undefined;
110
110
  }, {
111
- type: "INTERNAL_ERROR";
112
111
  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";
112
+ type: "INTERNAL_ERROR";
113
113
  message?: string | undefined;
114
114
  }>]>;
115
115
  type TaskRunError = z.infer<typeof TaskRunError>;
@@ -123,18 +123,18 @@ declare const TaskRun: z.ZodObject<{
123
123
  createdAt: z.ZodDate;
124
124
  idempotencyKey: z.ZodOptional<z.ZodString>;
125
125
  }, "strip", z.ZodTypeAny, {
126
+ id: string;
126
127
  payload: string;
127
128
  payloadType: string;
128
- id: string;
129
129
  tags: string[];
130
130
  isTest: boolean;
131
131
  createdAt: Date;
132
132
  context?: any;
133
133
  idempotencyKey?: string | undefined;
134
134
  }, {
135
+ id: string;
135
136
  payload: string;
136
137
  payloadType: string;
137
- id: string;
138
138
  tags: string[];
139
139
  createdAt: Date;
140
140
  context?: any;
@@ -288,18 +288,18 @@ declare const TaskRunExecution: z.ZodObject<{
288
288
  createdAt: z.ZodDate;
289
289
  idempotencyKey: z.ZodOptional<z.ZodString>;
290
290
  }, "strip", z.ZodTypeAny, {
291
+ id: string;
291
292
  payload: string;
292
293
  payloadType: string;
293
- id: string;
294
294
  tags: string[];
295
295
  isTest: boolean;
296
296
  createdAt: Date;
297
297
  context?: any;
298
298
  idempotencyKey?: string | undefined;
299
299
  }, {
300
+ id: string;
300
301
  payload: string;
301
302
  payloadType: string;
302
- id: string;
303
303
  tags: string[];
304
304
  createdAt: Date;
305
305
  context?: any;
@@ -366,10 +366,6 @@ declare const TaskRunExecution: z.ZodObject<{
366
366
  id: string;
367
367
  }>>;
368
368
  }, "strip", z.ZodTypeAny, {
369
- queue: {
370
- name: string;
371
- id: string;
372
- };
373
369
  task: {
374
370
  id: string;
375
371
  filePath: string;
@@ -384,15 +380,19 @@ declare const TaskRunExecution: z.ZodObject<{
384
380
  backgroundWorkerTaskId: string;
385
381
  };
386
382
  run: {
383
+ id: string;
387
384
  payload: string;
388
385
  payloadType: string;
389
- id: string;
390
386
  tags: string[];
391
387
  isTest: boolean;
392
388
  createdAt: Date;
393
389
  context?: any;
394
390
  idempotencyKey?: string | undefined;
395
391
  };
392
+ queue: {
393
+ name: string;
394
+ id: string;
395
+ };
396
396
  environment: {
397
397
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
398
398
  id: string;
@@ -413,10 +413,6 @@ declare const TaskRunExecution: z.ZodObject<{
413
413
  id: string;
414
414
  } | undefined;
415
415
  }, {
416
- queue: {
417
- name: string;
418
- id: string;
419
- };
420
416
  task: {
421
417
  id: string;
422
418
  filePath: string;
@@ -431,15 +427,19 @@ declare const TaskRunExecution: z.ZodObject<{
431
427
  backgroundWorkerTaskId: string;
432
428
  };
433
429
  run: {
430
+ id: string;
434
431
  payload: string;
435
432
  payloadType: string;
436
- id: string;
437
433
  tags: string[];
438
434
  createdAt: Date;
439
435
  context?: any;
440
436
  isTest?: boolean | undefined;
441
437
  idempotencyKey?: string | undefined;
442
438
  };
439
+ queue: {
440
+ name: string;
441
+ id: string;
442
+ };
443
443
  environment: {
444
444
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
445
445
  id: string;
@@ -514,8 +514,8 @@ declare const TaskRunContext: z.ZodObject<{
514
514
  tags: string[];
515
515
  createdAt: Date;
516
516
  context?: any;
517
- idempotencyKey?: string | undefined;
518
517
  isTest?: boolean | undefined;
518
+ idempotencyKey?: string | undefined;
519
519
  }>;
520
520
  queue: z.ZodObject<{
521
521
  id: z.ZodString;
@@ -577,10 +577,6 @@ declare const TaskRunContext: z.ZodObject<{
577
577
  id: string;
578
578
  }>>;
579
579
  }, "strip", z.ZodTypeAny, {
580
- queue: {
581
- name: string;
582
- id: string;
583
- };
584
580
  task: {
585
581
  id: string;
586
582
  filePath: string;
@@ -600,6 +596,10 @@ declare const TaskRunContext: z.ZodObject<{
600
596
  context?: any;
601
597
  idempotencyKey?: string | undefined;
602
598
  };
599
+ queue: {
600
+ name: string;
601
+ id: string;
602
+ };
603
603
  environment: {
604
604
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
605
605
  id: string;
@@ -620,10 +620,6 @@ declare const TaskRunContext: z.ZodObject<{
620
620
  id: string;
621
621
  } | undefined;
622
622
  }, {
623
- queue: {
624
- name: string;
625
- id: string;
626
- };
627
623
  task: {
628
624
  id: string;
629
625
  filePath: string;
@@ -640,8 +636,12 @@ declare const TaskRunContext: z.ZodObject<{
640
636
  tags: string[];
641
637
  createdAt: Date;
642
638
  context?: any;
643
- idempotencyKey?: string | undefined;
644
639
  isTest?: boolean | undefined;
640
+ idempotencyKey?: string | undefined;
641
+ };
642
+ queue: {
643
+ name: string;
644
+ id: string;
645
645
  };
646
646
  environment: {
647
647
  type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
@@ -687,14 +687,14 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
687
687
  message: z.ZodString;
688
688
  stackTrace: z.ZodString;
689
689
  }, "strip", z.ZodTypeAny, {
690
- name: string;
691
- type: "BUILT_IN_ERROR";
692
690
  message: string;
691
+ type: "BUILT_IN_ERROR";
692
+ name: string;
693
693
  stackTrace: string;
694
694
  }, {
695
- name: string;
696
- type: "BUILT_IN_ERROR";
697
695
  message: string;
696
+ type: "BUILT_IN_ERROR";
697
+ name: string;
698
698
  stackTrace: string;
699
699
  }>, z.ZodObject<{
700
700
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -719,12 +719,12 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
719
719
  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"]>;
720
720
  message: z.ZodOptional<z.ZodString>;
721
721
  }, "strip", z.ZodTypeAny, {
722
- type: "INTERNAL_ERROR";
723
722
  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";
723
+ type: "INTERNAL_ERROR";
724
724
  message?: string | undefined;
725
725
  }, {
726
- type: "INTERNAL_ERROR";
727
726
  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";
727
+ type: "INTERNAL_ERROR";
728
728
  message?: string | undefined;
729
729
  }>]>;
730
730
  retry: z.ZodOptional<z.ZodObject<{
@@ -743,9 +743,9 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
743
743
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
744
744
  }, "strip", z.ZodTypeAny, {
745
745
  error: {
746
- name: string;
747
- type: "BUILT_IN_ERROR";
748
746
  message: string;
747
+ type: "BUILT_IN_ERROR";
748
+ name: string;
749
749
  stackTrace: string;
750
750
  } | {
751
751
  type: "CUSTOM_ERROR";
@@ -754,8 +754,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
754
754
  type: "STRING_ERROR";
755
755
  raw: string;
756
756
  } | {
757
- type: "INTERNAL_ERROR";
758
757
  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";
758
+ type: "INTERNAL_ERROR";
759
759
  message?: string | undefined;
760
760
  };
761
761
  id: string;
@@ -768,9 +768,9 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
768
768
  skippedRetrying?: boolean | undefined;
769
769
  }, {
770
770
  error: {
771
- name: string;
772
- type: "BUILT_IN_ERROR";
773
771
  message: string;
772
+ type: "BUILT_IN_ERROR";
773
+ name: string;
774
774
  stackTrace: string;
775
775
  } | {
776
776
  type: "CUSTOM_ERROR";
@@ -779,8 +779,8 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
779
779
  type: "STRING_ERROR";
780
780
  raw: string;
781
781
  } | {
782
- type: "INTERNAL_ERROR";
783
782
  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";
783
+ type: "INTERNAL_ERROR";
784
784
  message?: string | undefined;
785
785
  };
786
786
  id: string;
@@ -834,14 +834,14 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
834
834
  message: z.ZodString;
835
835
  stackTrace: z.ZodString;
836
836
  }, "strip", z.ZodTypeAny, {
837
- name: string;
838
- type: "BUILT_IN_ERROR";
839
837
  message: string;
838
+ type: "BUILT_IN_ERROR";
839
+ name: string;
840
840
  stackTrace: string;
841
841
  }, {
842
- name: string;
843
- type: "BUILT_IN_ERROR";
844
842
  message: string;
843
+ type: "BUILT_IN_ERROR";
844
+ name: string;
845
845
  stackTrace: string;
846
846
  }>, z.ZodObject<{
847
847
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -866,12 +866,12 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
866
866
  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"]>;
867
867
  message: z.ZodOptional<z.ZodString>;
868
868
  }, "strip", z.ZodTypeAny, {
869
- type: "INTERNAL_ERROR";
870
869
  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";
870
+ type: "INTERNAL_ERROR";
871
871
  message?: string | undefined;
872
872
  }, {
873
- type: "INTERNAL_ERROR";
874
873
  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";
874
+ type: "INTERNAL_ERROR";
875
875
  message?: string | undefined;
876
876
  }>]>;
877
877
  retry: z.ZodOptional<z.ZodObject<{
@@ -890,9 +890,9 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
890
890
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
891
891
  }, "strip", z.ZodTypeAny, {
892
892
  error: {
893
- name: string;
894
- type: "BUILT_IN_ERROR";
895
893
  message: string;
894
+ type: "BUILT_IN_ERROR";
895
+ name: string;
896
896
  stackTrace: string;
897
897
  } | {
898
898
  type: "CUSTOM_ERROR";
@@ -901,8 +901,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
901
901
  type: "STRING_ERROR";
902
902
  raw: string;
903
903
  } | {
904
- type: "INTERNAL_ERROR";
905
904
  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";
905
+ type: "INTERNAL_ERROR";
906
906
  message?: string | undefined;
907
907
  };
908
908
  id: string;
@@ -915,9 +915,9 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
915
915
  skippedRetrying?: boolean | undefined;
916
916
  }, {
917
917
  error: {
918
- name: string;
919
- type: "BUILT_IN_ERROR";
920
918
  message: string;
919
+ type: "BUILT_IN_ERROR";
920
+ name: string;
921
921
  stackTrace: string;
922
922
  } | {
923
923
  type: "CUSTOM_ERROR";
@@ -926,8 +926,8 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
926
926
  type: "STRING_ERROR";
927
927
  raw: string;
928
928
  } | {
929
- type: "INTERNAL_ERROR";
930
929
  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";
930
+ type: "INTERNAL_ERROR";
931
931
  message?: string | undefined;
932
932
  };
933
933
  id: string;
@@ -966,14 +966,14 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
966
966
  message: z.ZodString;
967
967
  stackTrace: z.ZodString;
968
968
  }, "strip", z.ZodTypeAny, {
969
- name: string;
970
- type: "BUILT_IN_ERROR";
971
969
  message: string;
970
+ type: "BUILT_IN_ERROR";
971
+ name: string;
972
972
  stackTrace: string;
973
973
  }, {
974
- name: string;
975
- type: "BUILT_IN_ERROR";
976
974
  message: string;
975
+ type: "BUILT_IN_ERROR";
976
+ name: string;
977
977
  stackTrace: string;
978
978
  }>, z.ZodObject<{
979
979
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -998,12 +998,12 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
998
998
  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"]>;
999
999
  message: z.ZodOptional<z.ZodString>;
1000
1000
  }, "strip", z.ZodTypeAny, {
1001
- type: "INTERNAL_ERROR";
1002
1001
  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";
1002
+ type: "INTERNAL_ERROR";
1003
1003
  message?: string | undefined;
1004
1004
  }, {
1005
- type: "INTERNAL_ERROR";
1006
1005
  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";
1006
+ type: "INTERNAL_ERROR";
1007
1007
  message?: string | undefined;
1008
1008
  }>]>;
1009
1009
  retry: z.ZodOptional<z.ZodObject<{
@@ -1022,9 +1022,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1022
1022
  skippedRetrying: z.ZodOptional<z.ZodBoolean>;
1023
1023
  }, "strip", z.ZodTypeAny, {
1024
1024
  error: {
1025
- name: string;
1026
- type: "BUILT_IN_ERROR";
1027
1025
  message: string;
1026
+ type: "BUILT_IN_ERROR";
1027
+ name: string;
1028
1028
  stackTrace: string;
1029
1029
  } | {
1030
1030
  type: "CUSTOM_ERROR";
@@ -1033,8 +1033,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1033
1033
  type: "STRING_ERROR";
1034
1034
  raw: string;
1035
1035
  } | {
1036
- type: "INTERNAL_ERROR";
1037
1036
  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";
1037
+ type: "INTERNAL_ERROR";
1038
1038
  message?: string | undefined;
1039
1039
  };
1040
1040
  id: string;
@@ -1047,9 +1047,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1047
1047
  skippedRetrying?: boolean | undefined;
1048
1048
  }, {
1049
1049
  error: {
1050
- name: string;
1051
- type: "BUILT_IN_ERROR";
1052
1050
  message: string;
1051
+ type: "BUILT_IN_ERROR";
1052
+ name: string;
1053
1053
  stackTrace: string;
1054
1054
  } | {
1055
1055
  type: "CUSTOM_ERROR";
@@ -1058,8 +1058,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1058
1058
  type: "STRING_ERROR";
1059
1059
  raw: string;
1060
1060
  } | {
1061
- type: "INTERNAL_ERROR";
1062
1061
  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";
1062
+ type: "INTERNAL_ERROR";
1063
1063
  message?: string | undefined;
1064
1064
  };
1065
1065
  id: string;
@@ -1072,11 +1072,12 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1072
1072
  skippedRetrying?: boolean | undefined;
1073
1073
  }>]>, "many">;
1074
1074
  }, "strip", z.ZodTypeAny, {
1075
+ id: string;
1075
1076
  items: ({
1076
1077
  error: {
1077
- name: string;
1078
- type: "BUILT_IN_ERROR";
1079
1078
  message: string;
1079
+ type: "BUILT_IN_ERROR";
1080
+ name: string;
1080
1081
  stackTrace: string;
1081
1082
  } | {
1082
1083
  type: "CUSTOM_ERROR";
@@ -1085,8 +1086,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1085
1086
  type: "STRING_ERROR";
1086
1087
  raw: string;
1087
1088
  } | {
1088
- type: "INTERNAL_ERROR";
1089
1089
  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";
1090
+ type: "INTERNAL_ERROR";
1090
1091
  message?: string | undefined;
1091
1092
  };
1092
1093
  id: string;
@@ -1103,13 +1104,13 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1103
1104
  outputType: string;
1104
1105
  output?: string | undefined;
1105
1106
  })[];
1106
- id: string;
1107
1107
  }, {
1108
+ id: string;
1108
1109
  items: ({
1109
1110
  error: {
1110
- name: string;
1111
- type: "BUILT_IN_ERROR";
1112
1111
  message: string;
1112
+ type: "BUILT_IN_ERROR";
1113
+ name: string;
1113
1114
  stackTrace: string;
1114
1115
  } | {
1115
1116
  type: "CUSTOM_ERROR";
@@ -1118,8 +1119,8 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1118
1119
  type: "STRING_ERROR";
1119
1120
  raw: string;
1120
1121
  } | {
1121
- type: "INTERNAL_ERROR";
1122
1122
  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";
1123
+ type: "INTERNAL_ERROR";
1123
1124
  message?: string | undefined;
1124
1125
  };
1125
1126
  id: string;
@@ -1136,7 +1137,6 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
1136
1137
  outputType: string;
1137
1138
  output?: string | undefined;
1138
1139
  })[];
1139
- id: string;
1140
1140
  }>;
1141
1141
  type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
1142
1142