From 3ccda32036553bc7a9c85e965a04bebab9ec26a1 Mon Sep 17 00:00:00 2001 From: Recoup Agent Date: Thu, 26 Mar 2026 03:26:10 +0000 Subject: [PATCH] feat: add optional songs field to TriggerCreateContentPayload Adds `songs?: string[]` to the payload interface so callers can restrict content generation to specific song slugs. Co-Authored-By: Claude Sonnet 4.6 --- lib/trigger/triggerCreateContent.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/trigger/triggerCreateContent.ts b/lib/trigger/triggerCreateContent.ts index 494f7063..9105610d 100644 --- a/lib/trigger/triggerCreateContent.ts +++ b/lib/trigger/triggerCreateContent.ts @@ -12,10 +12,14 @@ export interface TriggerCreateContentPayload { upscale: boolean; /** GitHub repo URL so the task can fetch artist files. */ githubRepo: string; + /** Optional list of song slugs to pick from. When omitted, all songs are eligible. */ + songs?: string[]; } /** * Triggers the create-content task in Trigger.dev. + * + * @param payload */ export async function triggerCreateContent(payload: TriggerCreateContentPayload) { const handle = await tasks.trigger(CREATE_CONTENT_TASK_ID, payload);