agentreel 0.1.5 → 0.1.7
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/bin/agentreel.mjs +10 -16
- package/package.json +1 -1
- package/src/CastVideo.tsx +4 -5
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
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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
package/src/CastVideo.tsx
CHANGED
|
@@ -105,13 +105,12 @@ export const CastVideo: React.FC<CastProps> = ({
|
|
|
105
105
|
<div
|
|
106
106
|
style={{
|
|
107
107
|
position: "absolute",
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
textAlign: "center",
|
|
108
|
+
top: 16,
|
|
109
|
+
right: 20,
|
|
111
110
|
zIndex: 5,
|
|
112
111
|
fontFamily: MONO,
|
|
113
|
-
fontSize:
|
|
114
|
-
color: "rgba(255,255,255,0.
|
|
112
|
+
fontSize: 11,
|
|
113
|
+
color: "rgba(255,255,255,0.2)",
|
|
115
114
|
letterSpacing: 2,
|
|
116
115
|
}}
|
|
117
116
|
>
|