agentreel 0.1.5 → 0.1.6

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 +10 -16
  2. package/package.json +1 -1
package/bin/agentreel.mjs CHANGED
@@ -345,24 +345,18 @@ async function shareFlow(outputPath, title, prompt) {
345
345
  // Use prompt for tweet text if available, otherwise title
346
346
  const tweetBody = prompt || title;
347
347
 
348
- console.error("Uploading video...");
349
- const url = await uploadVideo(outputPath);
350
-
351
348
  const text = `${tweetBody}\n\nMade with agentreel`;
349
+ const tweetText = encodeURIComponent(text);
350
+ const intentURL = `https://twitter.com/intent/tweet?text=${tweetText}`;
352
351
 
353
- if (url) {
354
- openShareURL(url, text);
355
- } else {
356
- console.error("Could not auto-upload. Opening Twitter drag your video into the tweet.");
357
- const tweetText = encodeURIComponent(text);
358
- const intentURL = `https://twitter.com/intent/tweet?text=${tweetText}`;
359
- const openCmd = process.platform === "darwin" ? "open" : "xdg-open";
360
- try {
361
- execFileSync(openCmd, [intentURL], { stdio: "ignore" });
362
- } catch {
363
- console.error(` Tweet link: ${intentURL}`);
364
- }
365
- console.error(` Video: ${resolve(outputPath)}`);
352
+ console.error(`\n Opening Twitter — attach your video to the tweet.`);
353
+ console.error(` Video: ${resolve(outputPath)}\n`);
354
+
355
+ const openCmd = process.platform === "darwin" ? "open" : "xdg-open";
356
+ try {
357
+ execFileSync(openCmd, [intentURL], { stdio: "ignore" });
358
+ } catch {
359
+ console.error(` Link: ${intentURL}`);
366
360
  }
367
361
  }
368
362
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentreel",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Turn Claude Code sessions into viral demo videos",
5
5
  "bin": {
6
6
  "agentreel": "./bin/agentreel.mjs"