Trigger.dev tasks for Recoup API integrations.
- Node.js 20.x or later
- pnpm 9.x
Install dependencies:
pnpm iStart the Trigger.dev development server:
pnpm devThis will start the Trigger.dev CLI in development mode, allowing you to:
- Run tasks locally
- Test task executions
- View task logs and debugging information
Deploy to production:
pnpm run deploy:trigger-prod| Task | ID | Trigger | Description |
|---|---|---|---|
customerPromptTask |
customer-prompt-task |
Dynamic schedule | Runs a customer-configured prompt on a schedule, fetching task config and generating a chat response. |
proArtistSocialProfilesScrape |
pro-artist-social-profiles-scrape |
Cron (daily midnight ET) | Scrapes and updates social profiles for all pro-tier artists. |
sendPulsesTask |
send-pulses-task |
Schedule | Generates and sends daily Pulse email digests with artist insights, social stats, and connected-app context. |
runSandboxCommandTask |
run-sandbox-command |
On-demand (schema) | Connects to a Vercel Sandbox, installs Claude Code with Vercel AI Gateway, runs a prompt via Claude Code, snapshots the result, and pushes to GitHub. |
src/tasks/- Task definitions (see table above)src/recoup/- Recoup API client functionssrc/sandboxes/- Vercel Sandbox helpers (Claude Code install, config, GitHub push, snapshots)src/github/- GitHub repo creation and utilitiessrc/chats/- Chat room helperssrc/pulse/- Pulse email formattingsrc/schemas/- Zod schemas for task payloadstypes/- Shared TypeScript typestrigger.config.ts- Trigger.dev configuration