feat: headless gift flow — CLI + agent skill for operating without UI - #62
feat: headless gift flow — CLI + agent skill for operating without UI#62Tar-ive wants to merge 1 commit into
Conversation
Adds a Node.js CLI script that operates the full gift flow without the UI: - generate-link: Creates a swipe challenge invite URL with sender/recipient config - poll: Watches for challenge completion, outputs connection details - bundle: Fetches Maxi's AI-curated gift picks for a completed connection - checkout: Outputs purchase links and totals for one-tap buying Also adds .agents/skills/headless-gift/ skill definition for Devin invocation. Auth model is TBD (admin token works now; Clerk JWT flow not yet wired). Co-Authored-By: Saksham <tarive22@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds a headless CLI mode so an agent (Devin, Claude Code, etc.) can operate the entire gift flow — generate invite link, poll for completion, view Maxi's picks, checkout — without opening the app.
New files:
web/scripts/headless-gift.mjs— Node.js CLI with 4 actions:.agents/skills/headless-gift/SKILL.md— Devin-invocable skill wrapping the aboveAuth model (open question): Currently supports
--admin-token/GIFTMAXXING_ADMIN_TOKENfor agent environments. Clerk JWT CLI login not yet wired — this is a known gap that needs design input before merging.Example:
Link to Devin session: https://calhacks-promptetheus.devinenterprise.com/sessions/3d8a7a08115f45c8938df8f9862f2f84
Requested by: @Tar-ive