feat: pass songs param from Slack bot to content creation

Merged
RE
8mo ago
+178-10

Summary

  • Adds songs field to the AI prompt parser schema (contentPromptFlagsSchema) so the agent extracts song names from natural-language Slack mentions
  • Passes extracted songs array from registerOnNewMention handler through to triggerCreateContent payload
  • When a user says "make a lipsync video for the hiccups song", the songs array is now included in the API request

Test plan

  • Added test: parseContentPrompt extracts songs when mentioned in prompt
  • Added test: parseContentPrompt returns undefined songs when not mentioned
  • Added test: registerOnNewMention passes songs to triggerCreateContent
  • Added test: registerOnNewMention omits songs when not specified
  • All 29 tests pass
  • Manual: tag the content bot in Slack with "make a lipsync video for the hiccups song" and verify the songs array appears in the Trigger.dev task payload

Closes REC-38

šŸ¤– Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Content prompts now accept optional song entries so users can mention song names in their requests.
  • Refactor

    • Caption-length options centralized into a shared constant to ensure consistent "short/medium/long" choices across the app.
  • Validation

    • Song input validation improved: provided song entries must be non-empty strings; the field can still be omitted.