agentreel 0.1.4 → 0.1.5

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 (2) hide show
  1. package/bin/agentreel.mjs +12 -19
  2. package/package.json +1 -1
package/bin/agentreel.mjs CHANGED
@@ -306,17 +306,8 @@ async function renderVideo(props, output, musicPath) {
306
306
 
307
307
  // ── Upload + Share ──────────────────────────────────────────
308
308
 
309
- async function uploadVideo(filePath) {
310
- try {
311
- const result = execFileSync("curl", [
312
- "-s",
313
- "-H", "Authorization: Client-ID 546c25a59c58ad7",
314
- "-F", `video=@${filePath}`,
315
- "https://api.imgur.com/3/upload",
316
- ], { timeout: 120000 });
317
- const data = JSON.parse(result.toString());
318
- if (data.data?.link) return data.data.link;
319
- } catch { /* fall through */ }
309
+ // Video upload placeholder — will add agentreel.dev hosting later
310
+ async function uploadVideo(_filePath) {
320
311
  return null;
321
312
  }
322
313
 
@@ -347,25 +338,27 @@ function askYesNo(question) {
347
338
  });
348
339
  }
349
340
 
350
- async function shareFlow(outputPath, title) {
341
+ async function shareFlow(outputPath, title, prompt) {
351
342
  const shouldShare = await askYesNo("Share to Twitter? [Y/n] ");
352
343
  if (!shouldShare) return;
353
344
 
345
+ // Use prompt for tweet text if available, otherwise title
346
+ const tweetBody = prompt || title;
347
+
354
348
  console.error("Uploading video...");
355
349
  const url = await uploadVideo(outputPath);
356
350
 
351
+ const text = `${tweetBody}\n\nMade with agentreel`;
352
+
357
353
  if (url) {
358
- const text = `${title}\n\nMade with agentreel`;
359
354
  openShareURL(url, text);
360
355
  } else {
361
- // No upload worked — open Twitter with just the text, user attaches video manually
362
356
  console.error("Could not auto-upload. Opening Twitter — drag your video into the tweet.");
363
- const text = `${title}\n\nMade with agentreel`;
364
357
  const tweetText = encodeURIComponent(text);
365
358
  const intentURL = `https://twitter.com/intent/tweet?text=${tweetText}`;
366
- const cmd = process.platform === "darwin" ? "open" : "xdg-open";
359
+ const openCmd = process.platform === "darwin" ? "open" : "xdg-open";
367
360
  try {
368
- execFileSync(cmd, [intentURL], { stdio: "ignore" });
361
+ execFileSync(openCmd, [intentURL], { stdio: "ignore" });
369
362
  } catch {
370
363
  console.error(` Tweet link: ${intentURL}`);
371
364
  }
@@ -430,7 +423,7 @@ async function main() {
430
423
  }, output, flags.music);
431
424
 
432
425
  if (!noShare) {
433
- await shareFlow(resolve(output), videoTitle);
426
+ await shareFlow(resolve(output), videoTitle, prompt);
434
427
  }
435
428
  return;
436
429
  }
@@ -461,7 +454,7 @@ async function main() {
461
454
  }, output, flags.music);
462
455
 
463
456
  if (!noShare) {
464
- await shareFlow(resolve(output), videoTitle);
457
+ await shareFlow(resolve(output), videoTitle, prompt);
465
458
  }
466
459
  return;
467
460
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentreel",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Turn Claude Code sessions into viral demo videos",
5
5
  "bin": {
6
6
  "agentreel": "./bin/agentreel.mjs"