From d5583f580482d2c86ad875e04434bc90daafe417 Mon Sep 17 00:00:00 2001 From: Sidney Swift <158200036+sidneyswift@users.noreply.github.com> Date: Wed, 25 Mar 2026 23:29:50 -0400 Subject: [PATCH] feat: add --songs flag to recoup content create command Accepts comma-separated song slugs (e.g. --songs hiccups,adhd) to restrict which songs the content pipeline picks from. Made-with: Cursor --- src/commands/content/createCommand.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/content/createCommand.ts b/src/commands/content/createCommand.ts index 9738a24..7806189 100644 --- a/src/commands/content/createCommand.ts +++ b/src/commands/content/createCommand.ts @@ -14,6 +14,7 @@ export const createCommand = new Command("create") .option("--caption-length ", "Caption length: short, medium, long", "short") .option("--upscale", "Upscale image and video for higher quality") .option("--batch ", "Generate multiple videos in parallel", "1") + .option("--songs ", "Comma-separated song slugs to pick from (e.g. hiccups,adhd)") .option("--json", "Output as JSON") .action(async opts => { try { @@ -22,6 +23,10 @@ export const createCommand = new Command("create") throw new Error("--caption-length must be one of: short, medium, long"); } + const songs: string[] | undefined = opts.songs + ? (opts.songs as string).split(",").map((s: string) => s.trim()).filter(Boolean) + : undefined; + const data = await post("/api/content/create", { artist_account_id: opts.artist, template: opts.template, @@ -29,6 +34,7 @@ export const createCommand = new Command("create") caption_length: opts.captionLength, upscale: !!opts.upscale, batch, + ...(songs && { songs }), }); if (opts.json) {