agentreel 0.5.0 → 0.6.0

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 CHANGED
@@ -52,6 +52,7 @@ function parseArgs() {
52
52
  else if (a === "--pr") flags.pr = args[++i];
53
53
  else if (a === "--start") flags.start = args[++i];
54
54
  else if (a === "--title" || a === "-t") flags.title = args[++i];
55
+ else if (a === "--subtitle" || a === "-s") flags.subtitle = args[++i];
55
56
  else if (a === "--output" || a === "-o") flags.output = args[++i];
56
57
  else if (a === "--music") flags.music = args[++i];
57
58
  else if (a === "--auth" || a === "-a") flags.auth = args[++i];
@@ -75,6 +76,7 @@ Flags:
75
76
  -c, --cmd <cmd> CLI command to demo
76
77
  -u, --url <url> URL to demo (browser mode)
77
78
  -t, --title <text> video title
79
+ -s, --subtitle <text> video subtitle
78
80
  -o, --output <file> output file (default: agentreel.mp4)
79
81
  -a, --auth <file> Playwright auth state for browser demos
80
82
  -g, --guidelines <t> highlight generation guidelines
@@ -483,6 +485,7 @@ async function main() {
483
485
  console.error(` Type: ${plan.type}, "${plan.description}"`);
484
486
 
485
487
  const title = flags.title || plan.title || pr.title;
488
+ const subtitle = flags.subtitle || plan.description;
486
489
  const demoGuidelines = `[demo] ${plan.guidelines || ""}`.trim();
487
490
 
488
491
  if (plan.type === "browser") {
@@ -498,7 +501,7 @@ async function main() {
498
501
  console.error("Step 2/3: Building highlights...");
499
502
  const highlights = buildBrowserHighlights(clicks, demoGuidelines, demoGuidelines);
500
503
  console.error("Step 3/3: Rendering...");
501
- await render({ title, subtitle: plan.description, highlights, endText: pr.title, endUrl: pr.url, mode: "demo" }, output, flags.music);
504
+ await render({ title, subtitle, highlights, endText: pr.title, endUrl: pr.url, mode: "demo" }, output, flags.music);
502
505
  } finally { stopDevServer(serverProc); }
503
506
  } else {
504
507
  if (!plan.command) { console.error("Error: could not determine command to demo."); process.exit(1); }
@@ -510,7 +513,7 @@ async function main() {
510
513
  const highlights = extractHighlights(outputs, plan.description, demoGuidelines, true);
511
514
  console.error(` ${highlights.length} highlights`);
512
515
  console.error("Step 3/3: Rendering...");
513
- await render({ title, subtitle: plan.description, highlights, endText: plan.command, endUrl: pr.url, mode: "demo" }, output, flags.music);
516
+ await render({ title, subtitle, highlights, endText: plan.command, endUrl: pr.url, mode: "demo" }, output, flags.music);
514
517
  }
515
518
 
516
519
  if (!flags.noShare) await shareFlow(resolve(output), title, plan.description);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentreel",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Turn your apps into demo videos",
5
5
  "bin": {
6
6
  "agentreel": "./bin/agentreel.mjs"
package/src/types.ts CHANGED
@@ -43,7 +43,7 @@ export interface CastProps {
43
43
 
44
44
  export const defaultProps: CastProps = {
45
45
  title: "agentreel",
46
- subtitle: "Turn your apps into viral clips",
46
+ subtitle: undefined,
47
47
  highlights: [
48
48
  {
49
49
  label: "Record",