@trigger.dev/core 0.0.0-v3-prerelease-20240618084116 → 0.0.0-v3-prerelease-20240619130535

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/{catalog-BY89ZnAT.d.ts → catalog-EP9DGAGm.d.ts} +2 -2
  2. package/dist/{catalog-bucrsOn7.d.mts → catalog-Gjy5NtAB.d.mts} +2 -2
  3. package/dist/{manager-7wgeUu45.d.mts → manager-S98VaLUy.d.mts} +8 -8
  4. package/dist/{manager-7wgeUu45.d.ts → manager-S98VaLUy.d.ts} +8 -8
  5. package/dist/{messages-TXYTx0wj.d.mts → messages--WkQvA2l.d.mts} +199 -199
  6. package/dist/{messages-TXYTx0wj.d.ts → messages--WkQvA2l.d.ts} +199 -199
  7. package/dist/{schemas-r_DPYnY7.d.mts → schemas-Sb0sJcEt.d.mts} +33 -33
  8. package/dist/{schemas-r_DPYnY7.d.ts → schemas-Sb0sJcEt.d.ts} +33 -33
  9. package/dist/v3/dev/index.d.mts +1 -1
  10. package/dist/v3/dev/index.d.ts +1 -1
  11. package/dist/v3/index.d.mts +20 -11
  12. package/dist/v3/index.d.ts +20 -11
  13. package/dist/v3/index.js +8 -3
  14. package/dist/v3/index.js.map +1 -1
  15. package/dist/v3/index.mjs +8 -3
  16. package/dist/v3/index.mjs.map +1 -1
  17. package/dist/v3/otel/index.js +3 -3
  18. package/dist/v3/otel/index.js.map +1 -1
  19. package/dist/v3/otel/index.mjs +3 -3
  20. package/dist/v3/otel/index.mjs.map +1 -1
  21. package/dist/v3/prod/index.d.mts +2 -2
  22. package/dist/v3/prod/index.d.ts +2 -2
  23. package/dist/v3/workers/index.d.mts +6 -6
  24. package/dist/v3/workers/index.d.ts +6 -6
  25. package/dist/v3/workers/index.js +10 -5
  26. package/dist/v3/workers/index.js.map +1 -1
  27. package/dist/v3/workers/index.mjs +10 -5
  28. package/dist/v3/workers/index.mjs.map +1 -1
  29. package/dist/v3/zodMessageHandler.d.mts +1 -1
  30. package/dist/v3/zodMessageHandler.d.ts +1 -1
  31. package/dist/v3/zodfetch.d.mts +1 -1
  32. package/dist/v3/zodfetch.d.ts +1 -1
  33. package/package.json +1 -1
@@ -54,7 +54,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
54
54
  tags: z.ZodArray<z.ZodString, "many">;
55
55
  isTest: z.ZodDefault<z.ZodBoolean>;
56
56
  createdAt: z.ZodDate;
57
- startedAt: z.ZodDate;
57
+ startedAt: z.ZodDefault<z.ZodDate>;
58
58
  idempotencyKey: z.ZodOptional<z.ZodString>;
59
59
  durationMs: z.ZodDefault<z.ZodNumber>;
60
60
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -74,13 +74,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
74
74
  idempotencyKey?: string | undefined;
75
75
  }, {
76
76
  id: string;
77
- startedAt: Date;
78
77
  payload: string;
79
78
  payloadType: string;
80
79
  tags: string[];
81
80
  createdAt: Date;
82
81
  context?: any;
83
82
  isTest?: boolean | undefined;
83
+ startedAt?: Date | undefined;
84
84
  idempotencyKey?: string | undefined;
85
85
  durationMs?: number | undefined;
86
86
  costInCents?: number | undefined;
@@ -234,13 +234,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
234
234
  };
235
235
  run: {
236
236
  id: string;
237
- startedAt: Date;
238
237
  payload: string;
239
238
  payloadType: string;
240
239
  tags: string[];
241
240
  createdAt: Date;
242
241
  context?: any;
243
242
  isTest?: boolean | undefined;
243
+ startedAt?: Date | undefined;
244
244
  idempotencyKey?: string | undefined;
245
245
  durationMs?: number | undefined;
246
246
  costInCents?: number | undefined;
@@ -356,13 +356,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
356
356
  };
357
357
  run: {
358
358
  id: string;
359
- startedAt: Date;
360
359
  payload: string;
361
360
  payloadType: string;
362
361
  tags: string[];
363
362
  createdAt: Date;
364
363
  context?: any;
365
364
  isTest?: boolean | undefined;
365
+ startedAt?: Date | undefined;
366
366
  idempotencyKey?: string | undefined;
367
367
  durationMs?: number | undefined;
368
368
  costInCents?: number | undefined;
@@ -446,7 +446,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
446
446
  tags: z.ZodArray<z.ZodString, "many">;
447
447
  isTest: z.ZodDefault<z.ZodBoolean>;
448
448
  createdAt: z.ZodDate;
449
- startedAt: z.ZodDate;
449
+ startedAt: z.ZodDefault<z.ZodDate>;
450
450
  idempotencyKey: z.ZodOptional<z.ZodString>;
451
451
  durationMs: z.ZodDefault<z.ZodNumber>;
452
452
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -466,13 +466,13 @@ declare const ProdTaskRunExecution: z.ZodObject<{
466
466
  idempotencyKey?: string | undefined;
467
467
  }, {
468
468
  id: string;
469
- startedAt: Date;
470
469
  payload: string;
471
470
  payloadType: string;
472
471
  tags: string[];
473
472
  createdAt: Date;
474
473
  context?: any;
475
474
  isTest?: boolean | undefined;
475
+ startedAt?: Date | undefined;
476
476
  idempotencyKey?: string | undefined;
477
477
  durationMs?: number | undefined;
478
478
  costInCents?: number | undefined;
@@ -550,7 +550,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
550
550
  version: string;
551
551
  contentHash: string;
552
552
  }>;
553
- machine: z.ZodObject<{
553
+ machine: z.ZodDefault<z.ZodObject<{
554
554
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
555
555
  cpu: z.ZodNumber;
556
556
  memory: z.ZodNumber;
@@ -565,7 +565,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
565
565
  cpu: number;
566
566
  memory: number;
567
567
  centsPerMs: number;
568
- }>;
568
+ }>>;
569
569
  }, "strip", z.ZodTypeAny, {
570
570
  task: {
571
571
  id: string;
@@ -644,13 +644,13 @@ declare const ProdTaskRunExecution: z.ZodObject<{
644
644
  };
645
645
  run: {
646
646
  id: string;
647
- startedAt: Date;
648
647
  payload: string;
649
648
  payloadType: string;
650
649
  tags: string[];
651
650
  createdAt: Date;
652
651
  context?: any;
653
652
  isTest?: boolean | undefined;
653
+ startedAt?: Date | undefined;
654
654
  idempotencyKey?: string | undefined;
655
655
  durationMs?: number | undefined;
656
656
  costInCents?: number | undefined;
@@ -676,12 +676,6 @@ declare const ProdTaskRunExecution: z.ZodObject<{
676
676
  slug: string;
677
677
  ref: string;
678
678
  };
679
- machine: {
680
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
681
- cpu: number;
682
- memory: number;
683
- centsPerMs: number;
684
- };
685
679
  worker: {
686
680
  id: string;
687
681
  version: string;
@@ -690,6 +684,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
690
684
  batch?: {
691
685
  id: string;
692
686
  } | undefined;
687
+ machine?: {
688
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
689
+ cpu: number;
690
+ memory: number;
691
+ centsPerMs: number;
692
+ } | undefined;
693
693
  }>;
694
694
  type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
695
695
  declare const ProdTaskRunExecutionPayload: z.ZodObject<{
@@ -737,7 +737,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
737
737
  tags: z.ZodArray<z.ZodString, "many">;
738
738
  isTest: z.ZodDefault<z.ZodBoolean>;
739
739
  createdAt: z.ZodDate;
740
- startedAt: z.ZodDate;
740
+ startedAt: z.ZodDefault<z.ZodDate>;
741
741
  idempotencyKey: z.ZodOptional<z.ZodString>;
742
742
  durationMs: z.ZodDefault<z.ZodNumber>;
743
743
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -757,13 +757,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
757
757
  idempotencyKey?: string | undefined;
758
758
  }, {
759
759
  id: string;
760
- startedAt: Date;
761
760
  payload: string;
762
761
  payloadType: string;
763
762
  tags: string[];
764
763
  createdAt: Date;
765
764
  context?: any;
766
765
  isTest?: boolean | undefined;
766
+ startedAt?: Date | undefined;
767
767
  idempotencyKey?: string | undefined;
768
768
  durationMs?: number | undefined;
769
769
  costInCents?: number | undefined;
@@ -841,7 +841,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
841
841
  version: string;
842
842
  contentHash: string;
843
843
  }>;
844
- machine: z.ZodObject<{
844
+ machine: z.ZodDefault<z.ZodObject<{
845
845
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
846
846
  cpu: z.ZodNumber;
847
847
  memory: z.ZodNumber;
@@ -856,7 +856,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
856
856
  cpu: number;
857
857
  memory: number;
858
858
  centsPerMs: number;
859
- }>;
859
+ }>>;
860
860
  }, "strip", z.ZodTypeAny, {
861
861
  task: {
862
862
  id: string;
@@ -935,13 +935,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
935
935
  };
936
936
  run: {
937
937
  id: string;
938
- startedAt: Date;
939
938
  payload: string;
940
939
  payloadType: string;
941
940
  tags: string[];
942
941
  createdAt: Date;
943
942
  context?: any;
944
943
  isTest?: boolean | undefined;
944
+ startedAt?: Date | undefined;
945
945
  idempotencyKey?: string | undefined;
946
946
  durationMs?: number | undefined;
947
947
  costInCents?: number | undefined;
@@ -967,12 +967,6 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
967
967
  slug: string;
968
968
  ref: string;
969
969
  };
970
- machine: {
971
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
972
- cpu: number;
973
- memory: number;
974
- centsPerMs: number;
975
- };
976
970
  worker: {
977
971
  id: string;
978
972
  version: string;
@@ -981,6 +975,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
981
975
  batch?: {
982
976
  id: string;
983
977
  } | undefined;
978
+ machine?: {
979
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
980
+ cpu: number;
981
+ memory: number;
982
+ centsPerMs: number;
983
+ } | undefined;
984
984
  }>;
985
985
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
986
986
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1067,13 +1067,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1067
1067
  };
1068
1068
  run: {
1069
1069
  id: string;
1070
- startedAt: Date;
1071
1070
  payload: string;
1072
1071
  payloadType: string;
1073
1072
  tags: string[];
1074
1073
  createdAt: Date;
1075
1074
  context?: any;
1076
1075
  isTest?: boolean | undefined;
1076
+ startedAt?: Date | undefined;
1077
1077
  idempotencyKey?: string | undefined;
1078
1078
  durationMs?: number | undefined;
1079
1079
  costInCents?: number | undefined;
@@ -1099,12 +1099,6 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1099
1099
  slug: string;
1100
1100
  ref: string;
1101
1101
  };
1102
- machine: {
1103
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1104
- cpu: number;
1105
- memory: number;
1106
- centsPerMs: number;
1107
- };
1108
1102
  worker: {
1109
1103
  id: string;
1110
1104
  version: string;
@@ -1113,6 +1107,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1113
1107
  batch?: {
1114
1108
  id: string;
1115
1109
  } | undefined;
1110
+ machine?: {
1111
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1112
+ cpu: number;
1113
+ memory: number;
1114
+ centsPerMs: number;
1115
+ } | undefined;
1116
1116
  };
1117
1117
  traceContext: Record<string, unknown>;
1118
1118
  environment?: Record<string, string> | undefined;
@@ -54,7 +54,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
54
54
  tags: z.ZodArray<z.ZodString, "many">;
55
55
  isTest: z.ZodDefault<z.ZodBoolean>;
56
56
  createdAt: z.ZodDate;
57
- startedAt: z.ZodDate;
57
+ startedAt: z.ZodDefault<z.ZodDate>;
58
58
  idempotencyKey: z.ZodOptional<z.ZodString>;
59
59
  durationMs: z.ZodDefault<z.ZodNumber>;
60
60
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -74,13 +74,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
74
74
  idempotencyKey?: string | undefined;
75
75
  }, {
76
76
  id: string;
77
- startedAt: Date;
78
77
  payload: string;
79
78
  payloadType: string;
80
79
  tags: string[];
81
80
  createdAt: Date;
82
81
  context?: any;
83
82
  isTest?: boolean | undefined;
83
+ startedAt?: Date | undefined;
84
84
  idempotencyKey?: string | undefined;
85
85
  durationMs?: number | undefined;
86
86
  costInCents?: number | undefined;
@@ -234,13 +234,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
234
234
  };
235
235
  run: {
236
236
  id: string;
237
- startedAt: Date;
238
237
  payload: string;
239
238
  payloadType: string;
240
239
  tags: string[];
241
240
  createdAt: Date;
242
241
  context?: any;
243
242
  isTest?: boolean | undefined;
243
+ startedAt?: Date | undefined;
244
244
  idempotencyKey?: string | undefined;
245
245
  durationMs?: number | undefined;
246
246
  costInCents?: number | undefined;
@@ -356,13 +356,13 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
356
356
  };
357
357
  run: {
358
358
  id: string;
359
- startedAt: Date;
360
359
  payload: string;
361
360
  payloadType: string;
362
361
  tags: string[];
363
362
  createdAt: Date;
364
363
  context?: any;
365
364
  isTest?: boolean | undefined;
365
+ startedAt?: Date | undefined;
366
366
  idempotencyKey?: string | undefined;
367
367
  durationMs?: number | undefined;
368
368
  costInCents?: number | undefined;
@@ -446,7 +446,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
446
446
  tags: z.ZodArray<z.ZodString, "many">;
447
447
  isTest: z.ZodDefault<z.ZodBoolean>;
448
448
  createdAt: z.ZodDate;
449
- startedAt: z.ZodDate;
449
+ startedAt: z.ZodDefault<z.ZodDate>;
450
450
  idempotencyKey: z.ZodOptional<z.ZodString>;
451
451
  durationMs: z.ZodDefault<z.ZodNumber>;
452
452
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -466,13 +466,13 @@ declare const ProdTaskRunExecution: z.ZodObject<{
466
466
  idempotencyKey?: string | undefined;
467
467
  }, {
468
468
  id: string;
469
- startedAt: Date;
470
469
  payload: string;
471
470
  payloadType: string;
472
471
  tags: string[];
473
472
  createdAt: Date;
474
473
  context?: any;
475
474
  isTest?: boolean | undefined;
475
+ startedAt?: Date | undefined;
476
476
  idempotencyKey?: string | undefined;
477
477
  durationMs?: number | undefined;
478
478
  costInCents?: number | undefined;
@@ -550,7 +550,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
550
550
  version: string;
551
551
  contentHash: string;
552
552
  }>;
553
- machine: z.ZodObject<{
553
+ machine: z.ZodDefault<z.ZodObject<{
554
554
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
555
555
  cpu: z.ZodNumber;
556
556
  memory: z.ZodNumber;
@@ -565,7 +565,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
565
565
  cpu: number;
566
566
  memory: number;
567
567
  centsPerMs: number;
568
- }>;
568
+ }>>;
569
569
  }, "strip", z.ZodTypeAny, {
570
570
  task: {
571
571
  id: string;
@@ -644,13 +644,13 @@ declare const ProdTaskRunExecution: z.ZodObject<{
644
644
  };
645
645
  run: {
646
646
  id: string;
647
- startedAt: Date;
648
647
  payload: string;
649
648
  payloadType: string;
650
649
  tags: string[];
651
650
  createdAt: Date;
652
651
  context?: any;
653
652
  isTest?: boolean | undefined;
653
+ startedAt?: Date | undefined;
654
654
  idempotencyKey?: string | undefined;
655
655
  durationMs?: number | undefined;
656
656
  costInCents?: number | undefined;
@@ -676,12 +676,6 @@ declare const ProdTaskRunExecution: z.ZodObject<{
676
676
  slug: string;
677
677
  ref: string;
678
678
  };
679
- machine: {
680
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
681
- cpu: number;
682
- memory: number;
683
- centsPerMs: number;
684
- };
685
679
  worker: {
686
680
  id: string;
687
681
  version: string;
@@ -690,6 +684,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
690
684
  batch?: {
691
685
  id: string;
692
686
  } | undefined;
687
+ machine?: {
688
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
689
+ cpu: number;
690
+ memory: number;
691
+ centsPerMs: number;
692
+ } | undefined;
693
693
  }>;
694
694
  type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
695
695
  declare const ProdTaskRunExecutionPayload: z.ZodObject<{
@@ -737,7 +737,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
737
737
  tags: z.ZodArray<z.ZodString, "many">;
738
738
  isTest: z.ZodDefault<z.ZodBoolean>;
739
739
  createdAt: z.ZodDate;
740
- startedAt: z.ZodDate;
740
+ startedAt: z.ZodDefault<z.ZodDate>;
741
741
  idempotencyKey: z.ZodOptional<z.ZodString>;
742
742
  durationMs: z.ZodDefault<z.ZodNumber>;
743
743
  costInCents: z.ZodDefault<z.ZodNumber>;
@@ -757,13 +757,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
757
757
  idempotencyKey?: string | undefined;
758
758
  }, {
759
759
  id: string;
760
- startedAt: Date;
761
760
  payload: string;
762
761
  payloadType: string;
763
762
  tags: string[];
764
763
  createdAt: Date;
765
764
  context?: any;
766
765
  isTest?: boolean | undefined;
766
+ startedAt?: Date | undefined;
767
767
  idempotencyKey?: string | undefined;
768
768
  durationMs?: number | undefined;
769
769
  costInCents?: number | undefined;
@@ -841,7 +841,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
841
841
  version: string;
842
842
  contentHash: string;
843
843
  }>;
844
- machine: z.ZodObject<{
844
+ machine: z.ZodDefault<z.ZodObject<{
845
845
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
846
846
  cpu: z.ZodNumber;
847
847
  memory: z.ZodNumber;
@@ -856,7 +856,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
856
856
  cpu: number;
857
857
  memory: number;
858
858
  centsPerMs: number;
859
- }>;
859
+ }>>;
860
860
  }, "strip", z.ZodTypeAny, {
861
861
  task: {
862
862
  id: string;
@@ -935,13 +935,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
935
935
  };
936
936
  run: {
937
937
  id: string;
938
- startedAt: Date;
939
938
  payload: string;
940
939
  payloadType: string;
941
940
  tags: string[];
942
941
  createdAt: Date;
943
942
  context?: any;
944
943
  isTest?: boolean | undefined;
944
+ startedAt?: Date | undefined;
945
945
  idempotencyKey?: string | undefined;
946
946
  durationMs?: number | undefined;
947
947
  costInCents?: number | undefined;
@@ -967,12 +967,6 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
967
967
  slug: string;
968
968
  ref: string;
969
969
  };
970
- machine: {
971
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
972
- cpu: number;
973
- memory: number;
974
- centsPerMs: number;
975
- };
976
970
  worker: {
977
971
  id: string;
978
972
  version: string;
@@ -981,6 +975,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
981
975
  batch?: {
982
976
  id: string;
983
977
  } | undefined;
978
+ machine?: {
979
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
980
+ cpu: number;
981
+ memory: number;
982
+ centsPerMs: number;
983
+ } | undefined;
984
984
  }>;
985
985
  traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
986
986
  environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1067,13 +1067,13 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1067
1067
  };
1068
1068
  run: {
1069
1069
  id: string;
1070
- startedAt: Date;
1071
1070
  payload: string;
1072
1071
  payloadType: string;
1073
1072
  tags: string[];
1074
1073
  createdAt: Date;
1075
1074
  context?: any;
1076
1075
  isTest?: boolean | undefined;
1076
+ startedAt?: Date | undefined;
1077
1077
  idempotencyKey?: string | undefined;
1078
1078
  durationMs?: number | undefined;
1079
1079
  costInCents?: number | undefined;
@@ -1099,12 +1099,6 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1099
1099
  slug: string;
1100
1100
  ref: string;
1101
1101
  };
1102
- machine: {
1103
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1104
- cpu: number;
1105
- memory: number;
1106
- centsPerMs: number;
1107
- };
1108
1102
  worker: {
1109
1103
  id: string;
1110
1104
  version: string;
@@ -1113,6 +1107,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
1113
1107
  batch?: {
1114
1108
  id: string;
1115
1109
  } | undefined;
1110
+ machine?: {
1111
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1112
+ cpu: number;
1113
+ memory: number;
1114
+ centsPerMs: number;
1115
+ } | undefined;
1116
1116
  };
1117
1117
  traceContext: Record<string, unknown>;
1118
1118
  environment?: Record<string, string> | undefined;
@@ -1,4 +1,4 @@
1
- import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../manager-7wgeUu45.mjs';
1
+ import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../manager-S98VaLUy.mjs';
2
2
  import 'zod';
3
3
 
4
4
  declare class DevRuntimeManager implements RuntimeManager {
@@ -1,4 +1,4 @@
1
- import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../manager-7wgeUu45.js';
1
+ import { R as RuntimeManager, T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../manager-S98VaLUy.js';
2
2
  import 'zod';
3
3
 
4
4
  declare class DevRuntimeManager implements RuntimeManager {
@@ -2,15 +2,15 @@ import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { Uploadable, BlobLikePart, CursorPageParams, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.mjs';
4
4
  export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError } from './zodfetch.mjs';
5
- import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-7wgeUu45.mjs';
6
- export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, k as TaskRunErrorCodes, b as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../manager-7wgeUu45.mjs';
7
- import { C as Clock, b as ClockTime, f as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-bucrsOn7.mjs';
8
- export { h as Context, F as FailureFnParams, n as HandleErrorArgs, j as HandleErrorFnParams, H as HandleErrorFunction, k as HandleErrorModificationOptions, m as HandleErrorResult, g as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, q as ResolveEnvironmentVariablesFunction, p as ResolveEnvironmentVariablesParams, o as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, i as SuccessFnParams, u as usage } from '../catalog-bucrsOn7.mjs';
5
+ import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-S98VaLUy.mjs';
6
+ export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, k as TaskRunErrorCodes, b as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../manager-S98VaLUy.mjs';
7
+ import { C as Clock, b as ClockTime, f as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-Gjy5NtAB.mjs';
8
+ export { h as Context, F as FailureFnParams, n as HandleErrorArgs, j as HandleErrorFnParams, H as HandleErrorFunction, k as HandleErrorModificationOptions, m as HandleErrorResult, g as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, q as ResolveEnvironmentVariablesFunction, p as ResolveEnvironmentVariablesParams, o as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, i as SuccessFnParams, u as usage } from '../catalog-Gjy5NtAB.mjs';
9
9
  import { Attributes, Span } from '@opentelemetry/api';
10
- import { B as BackgroundWorkerProperties } from '../messages-TXYTx0wj.mjs';
11
- export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-TXYTx0wj.mjs';
12
- import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-r_DPYnY7.mjs';
13
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, k as RequireKeys, i as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-r_DPYnY7.mjs';
10
+ import { B as BackgroundWorkerProperties } from '../messages--WkQvA2l.mjs';
11
+ export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages--WkQvA2l.mjs';
12
+ import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-Sb0sJcEt.mjs';
13
+ export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, k as RequireKeys, i as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-Sb0sJcEt.mjs';
14
14
  import { Unit } from 'humanize-duration';
15
15
  export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.mjs';
16
16
  import 'node:stream';
@@ -4066,7 +4066,10 @@ declare const FetchTimeoutOptions: z.ZodObject<{
4066
4066
  durationInMs: z.ZodOptional<z.ZodNumber>;
4067
4067
  retry: z.ZodOptional<z.ZodObject<{
4068
4068
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4069
- factor: z.ZodOptional<z.ZodNumber>;
4069
+ /** The retrying strategy for specific status codes. */
4070
+ factor: z.ZodOptional<z.ZodNumber>; /**
4071
+ * The retrying strategy for connection errors.
4072
+ */
4070
4073
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4071
4074
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4072
4075
  randomize: z.ZodOptional<z.ZodBoolean>;
@@ -4160,7 +4163,10 @@ declare const FetchRetryOptions: z.ZodObject<{
4160
4163
  /** The timeout options for the request. */
4161
4164
  timeout: z.ZodOptional<z.ZodObject<{
4162
4165
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4163
- factor: z.ZodOptional<z.ZodNumber>;
4166
+ /** The retrying strategy for specific status codes. */
4167
+ factor: z.ZodOptional<z.ZodNumber>; /**
4168
+ * The retrying strategy for connection errors.
4169
+ */
4164
4170
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4165
4171
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4166
4172
  randomize: z.ZodOptional<z.ZodBoolean>;
@@ -4182,7 +4188,10 @@ declare const FetchRetryOptions: z.ZodObject<{
4182
4188
  */
4183
4189
  connectionError: z.ZodOptional<z.ZodObject<{
4184
4190
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4185
- factor: z.ZodOptional<z.ZodNumber>;
4191
+ /** The retrying strategy for specific status codes. */
4192
+ factor: z.ZodOptional<z.ZodNumber>; /**
4193
+ * The retrying strategy for connection errors.
4194
+ */
4186
4195
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4187
4196
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4188
4197
  randomize: z.ZodOptional<z.ZodBoolean>;
@@ -2,15 +2,15 @@ import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
3
  import { Uploadable, BlobLikePart, CursorPageParams, ApiPromise, CursorPagePromise, OffsetLimitPagePromise } from './zodfetch.js';
4
4
  export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadRequestError, ConflictError, CursorPage, CursorPageResponse, InternalServerError, NotFoundError, OffsetLimitPage, OffsetLimitPageParams, OffsetLimitPageResponse, Page, PageResponse, PermissionDeniedError, RateLimitError, UnprocessableEntityError } from './zodfetch.js';
5
- import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-7wgeUu45.js';
6
- export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, k as TaskRunErrorCodes, b as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../manager-7wgeUu45.js';
7
- import { C as Clock, b as ClockTime, f as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-BY89ZnAT.js';
8
- export { h as Context, F as FailureFnParams, n as HandleErrorArgs, j as HandleErrorFnParams, H as HandleErrorFunction, k as HandleErrorModificationOptions, m as HandleErrorResult, g as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, q as ResolveEnvironmentVariablesFunction, p as ResolveEnvironmentVariablesParams, o as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, i as SuccessFnParams, u as usage } from '../catalog-BY89ZnAT.js';
5
+ import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, c as TaskRunError, a as TaskRunContext, R as RuntimeManager } from '../manager-S98VaLUy.js';
6
+ export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, k as TaskRunErrorCodes, b as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../manager-S98VaLUy.js';
7
+ import { C as Clock, b as ClockTime, f as TaskLogger, c as TaskCatalog, a as TaskMetadataWithFunctions, T as TriggerTracer } from '../catalog-EP9DGAGm.js';
8
+ export { h as Context, F as FailureFnParams, n as HandleErrorArgs, j as HandleErrorFnParams, H as HandleErrorFunction, k as HandleErrorModificationOptions, m as HandleErrorResult, g as InitFnParams, I as InitOutput, L as LogLevel, M as MiddlewareFnParams, P as ProjectConfig, q as ResolveEnvironmentVariablesFunction, p as ResolveEnvironmentVariablesParams, o as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, i as SuccessFnParams, u as usage } from '../catalog-EP9DGAGm.js';
9
9
  import { Attributes, Span } from '@opentelemetry/api';
10
- import { B as BackgroundWorkerProperties } from '../messages-TXYTx0wj.js';
11
- export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-TXYTx0wj.js';
12
- import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-r_DPYnY7.js';
13
- export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, k as RequireKeys, i as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-r_DPYnY7.js';
10
+ import { B as BackgroundWorkerProperties } from '../messages--WkQvA2l.js';
11
+ export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages--WkQvA2l.js';
12
+ import { P as Prettify, T as TaskFileMetadata, a as TaskMetadataWithFilePath, R as RetryOptions } from '../schemas-Sb0sJcEt.js';
13
+ export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, k as RequireKeys, i as ResolvedConfig, S as SlidingWindowRateLimit, b as TaskMetadata, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-Sb0sJcEt.js';
14
14
  import { Unit } from 'humanize-duration';
15
15
  export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.js';
16
16
  import 'node:stream';
@@ -4066,7 +4066,10 @@ declare const FetchTimeoutOptions: z.ZodObject<{
4066
4066
  durationInMs: z.ZodOptional<z.ZodNumber>;
4067
4067
  retry: z.ZodOptional<z.ZodObject<{
4068
4068
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4069
- factor: z.ZodOptional<z.ZodNumber>;
4069
+ /** The retrying strategy for specific status codes. */
4070
+ factor: z.ZodOptional<z.ZodNumber>; /**
4071
+ * The retrying strategy for connection errors.
4072
+ */
4070
4073
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4071
4074
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4072
4075
  randomize: z.ZodOptional<z.ZodBoolean>;
@@ -4160,7 +4163,10 @@ declare const FetchRetryOptions: z.ZodObject<{
4160
4163
  /** The timeout options for the request. */
4161
4164
  timeout: z.ZodOptional<z.ZodObject<{
4162
4165
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4163
- factor: z.ZodOptional<z.ZodNumber>;
4166
+ /** The retrying strategy for specific status codes. */
4167
+ factor: z.ZodOptional<z.ZodNumber>; /**
4168
+ * The retrying strategy for connection errors.
4169
+ */
4164
4170
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4165
4171
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4166
4172
  randomize: z.ZodOptional<z.ZodBoolean>;
@@ -4182,7 +4188,10 @@ declare const FetchRetryOptions: z.ZodObject<{
4182
4188
  */
4183
4189
  connectionError: z.ZodOptional<z.ZodObject<{
4184
4190
  maxAttempts: z.ZodOptional<z.ZodNumber>;
4185
- factor: z.ZodOptional<z.ZodNumber>;
4191
+ /** The retrying strategy for specific status codes. */
4192
+ factor: z.ZodOptional<z.ZodNumber>; /**
4193
+ * The retrying strategy for connection errors.
4194
+ */
4186
4195
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4187
4196
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
4188
4197
  randomize: z.ZodOptional<z.ZodBoolean>;