vargai 0.4.0-alpha57 → 0.4.0-alpha58

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/package.json CHANGED
@@ -70,7 +70,7 @@
70
70
  "zod": "^4.2.1"
71
71
  },
72
72
  "sideEffects": false,
73
- "version": "0.4.0-alpha57",
73
+ "version": "0.4.0-alpha58",
74
74
  "exports": {
75
75
  ".": "./src/index.ts",
76
76
  "./ai": "./src/ai-sdk/index.ts",
@@ -175,7 +175,7 @@ export async function renderPackshot(
175
175
 
176
176
  const basePath = `/tmp/varg-packshot-${Date.now()}.mp4`;
177
177
 
178
- await editly({
178
+ const baseResult = await editly({
179
179
  outPath: basePath,
180
180
  width: ctx.width,
181
181
  height: ctx.height,
@@ -205,7 +205,7 @@ export async function renderPackshot(
205
205
 
206
206
  // Composite button overlay at correct position on base video via backend
207
207
  const baseInput = await resolveInputMaybeUpload(
208
- { type: "file", path: basePath },
208
+ baseResult.output,
209
209
  ctx.backend,
210
210
  );
211
211
  const btnInput = await resolveInputMaybeUpload(btn.output, ctx.backend);
@@ -233,10 +233,10 @@ export async function renderPackshot(
233
233
  return overlayResult.output.path;
234
234
  }
235
235
  // Cloud backend returns URL
236
- ctx.tempFiles.push(basePath);
237
236
  return overlayResult.output.url;
238
237
  }
239
238
 
239
+ if (baseResult.output.type === "url") return baseResult.output.url;
240
240
  ctx.tempFiles.push(basePath);
241
241
  return basePath;
242
242
  }