@trigger.dev/core 0.0.0-v4-prerelease-20250916125920 → 0.0.0-v4-prerelease-20250917185130

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.
@@ -10,30 +10,46 @@ export declare class WorkloadHttpClient {
10
10
  updateApiUrl(apiUrl: string): void;
11
11
  updateRunnerId(runnerId: string): void;
12
12
  defaultHeaders(): Record<string, string>;
13
- heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
14
- ok: true;
15
- }>>;
13
+ private isConnectionError;
14
+ private withConnectionErrorDetection;
15
+ heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<{
16
+ success: false;
17
+ error: string;
18
+ isConnectionError?: boolean;
19
+ } | {
20
+ success: true;
21
+ data: {
22
+ ok: true;
23
+ };
24
+ }>;
16
25
  suspendRun(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
17
26
  ok: true;
18
27
  } | {
19
28
  error: string;
20
29
  ok: false;
21
30
  }>>;
22
- continueRunExecution(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
23
- run: {
24
- status: import("../../index.js").TaskRunStatus;
25
- id: string;
26
- friendlyId: string;
27
- attemptNumber?: number | null | undefined;
28
- };
29
- snapshot: {
30
- id: string;
31
- createdAt: Date;
32
- description: string;
33
- friendlyId: string;
34
- executionStatus: import("../../index.js").TaskRunExecutionStatus;
31
+ continueRunExecution(runId: string, snapshotId: string): Promise<{
32
+ success: false;
33
+ error: string;
34
+ isConnectionError?: boolean;
35
+ } | {
36
+ success: true;
37
+ data: {
38
+ run: {
39
+ status: import("../../index.js").TaskRunStatus;
40
+ id: string;
41
+ friendlyId: string;
42
+ attemptNumber?: number | null | undefined;
43
+ };
44
+ snapshot: {
45
+ id: string;
46
+ createdAt: Date;
47
+ description: string;
48
+ friendlyId: string;
49
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
50
+ };
35
51
  };
36
- }>>;
52
+ }>;
37
53
  startRunAttempt(runId: string, snapshotId: string, body: WorkloadRunAttemptStartRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
38
54
  run: {
39
55
  status: import("../../index.js").TaskRunStatus;
@@ -175,60 +191,67 @@ export declare class WorkloadHttpClient {
175
191
  };
176
192
  };
177
193
  }>>;
178
- getSnapshotsSince(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
179
- snapshots: {
180
- version: "1";
181
- run: {
182
- status: import("../../index.js").TaskRunStatus;
183
- id: string;
184
- friendlyId: string;
185
- attemptNumber?: number | null | undefined;
186
- };
187
- snapshot: {
188
- id: string;
189
- createdAt: Date;
190
- description: string;
191
- friendlyId: string;
192
- executionStatus: import("../../index.js").TaskRunExecutionStatus;
193
- };
194
- completedWaitpoints: {
195
- type: import("../../index.js").WaitpointType;
196
- id: string;
197
- friendlyId: string;
198
- completedAt: Date;
199
- outputIsError: boolean;
200
- idempotencyKey?: string | undefined;
201
- output?: string | undefined;
202
- outputType?: string | undefined;
203
- index?: number | undefined;
204
- completedByTaskRun?: {
194
+ getSnapshotsSince(runId: string, snapshotId: string): Promise<{
195
+ success: false;
196
+ error: string;
197
+ isConnectionError?: boolean;
198
+ } | {
199
+ success: true;
200
+ data: {
201
+ snapshots: {
202
+ version: "1";
203
+ run: {
204
+ status: import("../../index.js").TaskRunStatus;
205
+ id: string;
206
+ friendlyId: string;
207
+ attemptNumber?: number | null | undefined;
208
+ };
209
+ snapshot: {
205
210
  id: string;
211
+ createdAt: Date;
212
+ description: string;
206
213
  friendlyId: string;
207
- batch?: {
214
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
215
+ };
216
+ completedWaitpoints: {
217
+ type: import("../../index.js").WaitpointType;
218
+ id: string;
219
+ friendlyId: string;
220
+ completedAt: Date;
221
+ outputIsError: boolean;
222
+ idempotencyKey?: string | undefined;
223
+ output?: string | undefined;
224
+ outputType?: string | undefined;
225
+ index?: number | undefined;
226
+ completedByTaskRun?: {
208
227
  id: string;
209
228
  friendlyId: string;
229
+ batch?: {
230
+ id: string;
231
+ friendlyId: string;
232
+ } | undefined;
210
233
  } | undefined;
234
+ completedAfter?: Date | undefined;
235
+ completedByBatch?: {
236
+ id: string;
237
+ friendlyId: string;
238
+ } | undefined;
239
+ }[];
240
+ batch?: {
241
+ id: string;
242
+ friendlyId: string;
211
243
  } | undefined;
212
- completedAfter?: Date | undefined;
213
- completedByBatch?: {
244
+ checkpoint?: {
245
+ type: import("../../index.js").CheckpointTypeEnum;
214
246
  id: string;
215
247
  friendlyId: string;
248
+ location: string;
249
+ imageRef?: string | null | undefined;
250
+ reason?: string | null | undefined;
216
251
  } | undefined;
217
252
  }[];
218
- batch?: {
219
- id: string;
220
- friendlyId: string;
221
- } | undefined;
222
- checkpoint?: {
223
- type: import("../../index.js").CheckpointTypeEnum;
224
- id: string;
225
- friendlyId: string;
226
- location: string;
227
- imageRef?: string | null | undefined;
228
- reason?: string | null | undefined;
229
- } | undefined;
230
- }[];
231
- }>>;
253
+ };
254
+ }>;
232
255
  sendDebugLog(runId: string, body: WorkloadDebugLogRequestBody): Promise<void>;
233
256
  /** @deprecated Not currently used */
234
257
  dequeue(): Promise<import("../../zodfetch.js").ApiResult<{
@@ -34,15 +34,44 @@ class WorkloadHttpClient {
34
34
  runnerId: this.runnerId,
35
35
  });
36
36
  }
37
+ isConnectionError(error) {
38
+ const connectionErrors = [
39
+ "Connection error",
40
+ "ECONNREFUSED",
41
+ "ETIMEDOUT",
42
+ "ENOTFOUND",
43
+ "ECONNRESET",
44
+ "EHOSTUNREACH",
45
+ "ENETUNREACH",
46
+ "EPIPE",
47
+ "ECONNABORTED",
48
+ ];
49
+ return connectionErrors.some((errType) => error.includes(errType));
50
+ }
51
+ async withConnectionErrorDetection(operation) {
52
+ const result = await operation();
53
+ if (result.success) {
54
+ return result;
55
+ }
56
+ // Check if this is a connection error
57
+ if (this.isConnectionError(result.error)) {
58
+ return {
59
+ ...result,
60
+ isConnectionError: true,
61
+ };
62
+ }
63
+ return result;
64
+ }
37
65
  async heartbeatRun(runId, snapshotId, body) {
38
- return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
66
+ return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
39
67
  method: "POST",
40
68
  headers: {
41
69
  ...this.defaultHeaders(),
42
70
  "Content-Type": "application/json",
43
71
  },
44
72
  body: JSON.stringify(body ?? {}),
45
- });
73
+ signal: AbortSignal.timeout(10_000), // 10 second timeout
74
+ }));
46
75
  }
47
76
  async suspendRun(runId, snapshotId) {
48
77
  return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadSuspendRunResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/suspend`, {
@@ -53,12 +82,12 @@ class WorkloadHttpClient {
53
82
  });
54
83
  }
55
84
  async continueRunExecution(runId, snapshotId) {
56
- return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
85
+ return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
57
86
  method: "GET",
58
87
  headers: {
59
88
  ...this.defaultHeaders(),
60
89
  },
61
- });
90
+ }));
62
91
  }
63
92
  async startRunAttempt(runId, snapshotId, body) {
64
93
  return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunAttemptStartResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/attempts/start`, {
@@ -79,12 +108,13 @@ class WorkloadHttpClient {
79
108
  });
80
109
  }
81
110
  async getSnapshotsSince(runId, snapshotId) {
82
- return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
111
+ return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
83
112
  method: "GET",
84
113
  headers: {
85
114
  ...this.defaultHeaders(),
86
115
  },
87
- });
116
+ signal: AbortSignal.timeout(10_000), // 10 second timeout
117
+ }));
88
118
  }
89
119
  async sendDebugLog(runId, body) {
90
120
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/workload/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAYsB;AAEtB,uCAAsD;AACtD,mDAAiD;AAIjD,MAAa,kBAAkB;IAKT;IAJZ,MAAM,CAAS;IACf,QAAQ,CAAS;IACR,YAAY,CAAS;IAEtC,YAAoB,IAA+B;QAA/B,SAAI,GAAJ,IAAI,CAA2B;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACvB,MA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IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CACF,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;gBACjB,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,0BAAY,EACjB,mDAAsC,EACtC,GAAG,IAAI,CAAC,MAAM,wCAAwC,IAAI,CAAC,YAAY,UAAU,EACjF;YACE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc,EAAE;aACzB;SACF,CACF,CAAC;IACJ,CAAC;CACF;AA7MD,gDA6MC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "0.0.0-v4-prerelease-20250916125920";
4
+ exports.VERSION = "0.0.0-v4-prerelease-20250917185130";
5
5
  //# sourceMappingURL=version.js.map
@@ -10,30 +10,46 @@ export declare class WorkloadHttpClient {
10
10
  updateApiUrl(apiUrl: string): void;
11
11
  updateRunnerId(runnerId: string): void;
12
12
  defaultHeaders(): Record<string, string>;
13
- heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
14
- ok: true;
15
- }>>;
13
+ private isConnectionError;
14
+ private withConnectionErrorDetection;
15
+ heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<{
16
+ success: false;
17
+ error: string;
18
+ isConnectionError?: boolean;
19
+ } | {
20
+ success: true;
21
+ data: {
22
+ ok: true;
23
+ };
24
+ }>;
16
25
  suspendRun(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
17
26
  ok: true;
18
27
  } | {
19
28
  error: string;
20
29
  ok: false;
21
30
  }>>;
22
- continueRunExecution(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
23
- run: {
24
- status: import("../../index.js").TaskRunStatus;
25
- id: string;
26
- friendlyId: string;
27
- attemptNumber?: number | null | undefined;
28
- };
29
- snapshot: {
30
- id: string;
31
- createdAt: Date;
32
- description: string;
33
- friendlyId: string;
34
- executionStatus: import("../../index.js").TaskRunExecutionStatus;
31
+ continueRunExecution(runId: string, snapshotId: string): Promise<{
32
+ success: false;
33
+ error: string;
34
+ isConnectionError?: boolean;
35
+ } | {
36
+ success: true;
37
+ data: {
38
+ run: {
39
+ status: import("../../index.js").TaskRunStatus;
40
+ id: string;
41
+ friendlyId: string;
42
+ attemptNumber?: number | null | undefined;
43
+ };
44
+ snapshot: {
45
+ id: string;
46
+ createdAt: Date;
47
+ description: string;
48
+ friendlyId: string;
49
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
50
+ };
35
51
  };
36
- }>>;
52
+ }>;
37
53
  startRunAttempt(runId: string, snapshotId: string, body: WorkloadRunAttemptStartRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
38
54
  run: {
39
55
  status: import("../../index.js").TaskRunStatus;
@@ -175,60 +191,67 @@ export declare class WorkloadHttpClient {
175
191
  };
176
192
  };
177
193
  }>>;
178
- getSnapshotsSince(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
179
- snapshots: {
180
- version: "1";
181
- run: {
182
- status: import("../../index.js").TaskRunStatus;
183
- id: string;
184
- friendlyId: string;
185
- attemptNumber?: number | null | undefined;
186
- };
187
- snapshot: {
188
- id: string;
189
- createdAt: Date;
190
- description: string;
191
- friendlyId: string;
192
- executionStatus: import("../../index.js").TaskRunExecutionStatus;
193
- };
194
- completedWaitpoints: {
195
- type: import("../../index.js").WaitpointType;
196
- id: string;
197
- friendlyId: string;
198
- completedAt: Date;
199
- outputIsError: boolean;
200
- idempotencyKey?: string | undefined;
201
- output?: string | undefined;
202
- outputType?: string | undefined;
203
- index?: number | undefined;
204
- completedByTaskRun?: {
194
+ getSnapshotsSince(runId: string, snapshotId: string): Promise<{
195
+ success: false;
196
+ error: string;
197
+ isConnectionError?: boolean;
198
+ } | {
199
+ success: true;
200
+ data: {
201
+ snapshots: {
202
+ version: "1";
203
+ run: {
204
+ status: import("../../index.js").TaskRunStatus;
205
+ id: string;
206
+ friendlyId: string;
207
+ attemptNumber?: number | null | undefined;
208
+ };
209
+ snapshot: {
205
210
  id: string;
211
+ createdAt: Date;
212
+ description: string;
206
213
  friendlyId: string;
207
- batch?: {
214
+ executionStatus: import("../../index.js").TaskRunExecutionStatus;
215
+ };
216
+ completedWaitpoints: {
217
+ type: import("../../index.js").WaitpointType;
218
+ id: string;
219
+ friendlyId: string;
220
+ completedAt: Date;
221
+ outputIsError: boolean;
222
+ idempotencyKey?: string | undefined;
223
+ output?: string | undefined;
224
+ outputType?: string | undefined;
225
+ index?: number | undefined;
226
+ completedByTaskRun?: {
208
227
  id: string;
209
228
  friendlyId: string;
229
+ batch?: {
230
+ id: string;
231
+ friendlyId: string;
232
+ } | undefined;
210
233
  } | undefined;
234
+ completedAfter?: Date | undefined;
235
+ completedByBatch?: {
236
+ id: string;
237
+ friendlyId: string;
238
+ } | undefined;
239
+ }[];
240
+ batch?: {
241
+ id: string;
242
+ friendlyId: string;
211
243
  } | undefined;
212
- completedAfter?: Date | undefined;
213
- completedByBatch?: {
244
+ checkpoint?: {
245
+ type: import("../../index.js").CheckpointTypeEnum;
214
246
  id: string;
215
247
  friendlyId: string;
248
+ location: string;
249
+ imageRef?: string | null | undefined;
250
+ reason?: string | null | undefined;
216
251
  } | undefined;
217
252
  }[];
218
- batch?: {
219
- id: string;
220
- friendlyId: string;
221
- } | undefined;
222
- checkpoint?: {
223
- type: import("../../index.js").CheckpointTypeEnum;
224
- id: string;
225
- friendlyId: string;
226
- location: string;
227
- imageRef?: string | null | undefined;
228
- reason?: string | null | undefined;
229
- } | undefined;
230
- }[];
231
- }>>;
253
+ };
254
+ }>;
232
255
  sendDebugLog(runId: string, body: WorkloadDebugLogRequestBody): Promise<void>;
233
256
  /** @deprecated Not currently used */
234
257
  dequeue(): Promise<import("../../zodfetch.js").ApiResult<{
@@ -31,15 +31,44 @@ export class WorkloadHttpClient {
31
31
  runnerId: this.runnerId,
32
32
  });
33
33
  }
34
+ isConnectionError(error) {
35
+ const connectionErrors = [
36
+ "Connection error",
37
+ "ECONNREFUSED",
38
+ "ETIMEDOUT",
39
+ "ENOTFOUND",
40
+ "ECONNRESET",
41
+ "EHOSTUNREACH",
42
+ "ENETUNREACH",
43
+ "EPIPE",
44
+ "ECONNABORTED",
45
+ ];
46
+ return connectionErrors.some((errType) => error.includes(errType));
47
+ }
48
+ async withConnectionErrorDetection(operation) {
49
+ const result = await operation();
50
+ if (result.success) {
51
+ return result;
52
+ }
53
+ // Check if this is a connection error
54
+ if (this.isConnectionError(result.error)) {
55
+ return {
56
+ ...result,
57
+ isConnectionError: true,
58
+ };
59
+ }
60
+ return result;
61
+ }
34
62
  async heartbeatRun(runId, snapshotId, body) {
35
- return wrapZodFetch(WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
63
+ return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
36
64
  method: "POST",
37
65
  headers: {
38
66
  ...this.defaultHeaders(),
39
67
  "Content-Type": "application/json",
40
68
  },
41
69
  body: JSON.stringify(body ?? {}),
42
- });
70
+ signal: AbortSignal.timeout(10_000), // 10 second timeout
71
+ }));
43
72
  }
44
73
  async suspendRun(runId, snapshotId) {
45
74
  return wrapZodFetch(WorkloadSuspendRunResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/suspend`, {
@@ -50,12 +79,12 @@ export class WorkloadHttpClient {
50
79
  });
51
80
  }
52
81
  async continueRunExecution(runId, snapshotId) {
53
- return wrapZodFetch(WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
82
+ return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
54
83
  method: "GET",
55
84
  headers: {
56
85
  ...this.defaultHeaders(),
57
86
  },
58
- });
87
+ }));
59
88
  }
60
89
  async startRunAttempt(runId, snapshotId, body) {
61
90
  return wrapZodFetch(WorkloadRunAttemptStartResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/attempts/start`, {
@@ -76,12 +105,13 @@ export class WorkloadHttpClient {
76
105
  });
77
106
  }
78
107
  async getSnapshotsSince(runId, snapshotId) {
79
- return wrapZodFetch(WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
108
+ return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
80
109
  method: "GET",
81
110
  headers: {
82
111
  ...this.defaultHeaders(),
83
112
  },
84
- });
113
+ signal: AbortSignal.timeout(10_000), // 10 second timeout
114
+ }));
85
115
  }
86
116
  async sendDebugLog(runId, body) {
87
117
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/workload/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,6BAA6B,EAE7B,sCAAsC,EACtC,mCAAmC,EACnC,sCAAsC,EAEtC,8BAA8B,EAC9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,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc,EAAE;aACzB;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.0.0-v4-prerelease-20250916125920";
1
+ export const VERSION = "0.0.0-v4-prerelease-20250917185130";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trigger.dev/core",
3
- "version": "0.0.0-v4-prerelease-20250916125920",
3
+ "version": "0.0.0-v4-prerelease-20250917185130",
4
4
  "description": "Core code used across the Trigger.dev SDK and platform",
5
5
  "license": "MIT",
6
6
  "publishConfig": {