@trigger.dev/core 3.0.0-beta.42 → 3.0.0-beta.44

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.
package/dist/v3/index.mjs CHANGED
@@ -27,7 +27,7 @@ var __privateMethod = (obj, member, method) => {
27
27
  };
28
28
 
29
29
  // package.json
30
- var version = "3.0.0-beta.42";
30
+ var version = "3.0.0-beta.44";
31
31
  var dependencies = {
32
32
  "@google-cloud/precise-date": "^4.0.0",
33
33
  "@opentelemetry/api": "^1.8.0",
@@ -942,7 +942,9 @@ var CommonRunFields = {
942
942
  var RetrieveRunResponse = z.object({
943
943
  ...CommonRunFields,
944
944
  payload: z.any().optional(),
945
+ payloadPresignedUrl: z.string().optional(),
945
946
  output: z.any().optional(),
947
+ outputPresignedUrl: z.string().optional(),
946
948
  schedule: RunScheduleDetails.optional(),
947
949
  attempts: z.array(z.object({
948
950
  id: z.string(),
@@ -4083,7 +4085,7 @@ async function conditionallyExportPacket(packet, pathPrefix, tracer) {
4083
4085
  return packet;
4084
4086
  }
4085
4087
  __name(conditionallyExportPacket, "conditionallyExportPacket");
4086
- function packetRequiresOffloading(packet) {
4088
+ function packetRequiresOffloading(packet, lengthLimit) {
4087
4089
  if (!packet.data) {
4088
4090
  return {
4089
4091
  needsOffloading: false,
@@ -4092,7 +4094,7 @@ function packetRequiresOffloading(packet) {
4092
4094
  }
4093
4095
  const byteSize = Buffer.byteLength(packet.data, "utf8");
4094
4096
  return {
4095
- needsOffloading: byteSize >= OFFLOAD_IO_PACKET_LENGTH_LIMIT,
4097
+ needsOffloading: byteSize >= (lengthLimit ?? OFFLOAD_IO_PACKET_LENGTH_LIMIT),
4096
4098
  size: byteSize
4097
4099
  };
4098
4100
  }