Skip to content

Add ops mashup generator CLI - #10

Merged
Chinmay-KB merged 1 commit into
mainfrom
cursor/mashup-generator-cli-9c3c
Aug 13, 2026
Merged

Add ops mashup generator CLI#10
Chinmay-KB merged 1 commit into
mainfrom
cursor/mashup-generator-cli-9c3c

Conversation

@Chinmay-KB

Copy link
Copy Markdown
Owner

Ops CLI for shipping mashups through the existing production generate path. Do not generate mashups by clicking the website.

What

yarn generate:mashup --builder ikea --target figma (plus extras / screen type / invented name).

--dry-run / DRY_RUN=1 prints the fully built prompt and skips AI Gateway, upload, and DB insert. No paid image call in CI.

Does not debit Dodo or require a logged-in session. Published rows are owned by --creator-id / GENERATION_OPS_CREATOR_ID / the superadmin user.

Reused (not copied)

  • mergeCompanyPair — Style DNA merge from live company_profiles
  • buildGenerationPrompt
  • executeImageGeneration — Gateway generateImage (default openai/gpt-image-2), sharp variants, public generation-images bucket (.png + .card.webp + .detail.webp + .og.jpg)
  • updateGenerationStatus, makeGenerationSlugSnippet, sanitizeVibeTags, getGenerationImagesBucket

Nouns resolve the same way as the picker (slug, then exact name). Ambiguous names fail with the matching ids.

Invoke the first four pairings

yarn generate:mashup --builder ikea --target figma --invented-name SKISSA \
  --extra-details 'Empty Figma canvas. Microcopy: "Some assembly required." The move tool is an Allen key.'

yarn generate:mashup --builder apple-ios --target tinder --screen-type mobile --invented-name Halo \
  --extra-details 'Tinder deck plus a Personality slider.'

yarn generate:mashup --builder duolingo --target apple-ios --screen-type mobile --invented-name Perch \
  --extra-details 'Lock screen. Streak dying.'

yarn generate:mashup --builder google --target google-gmail --invented-name Burst \
  --extra-details 'Gmail compose with 8× Send.'

Always pass --dry-run first. See yarn generate:mashup --help and the README.

Test notes

  • yarn generate:mashup --help documents flags and the four examples
  • Unit tests cover arg parsing, ambiguous lookup, and dry-run prompt assembly
  • yarn test 107 passed
  • Did not run paid generation in this PR
Open in Web Open in Cursor 

yarn generate:mashup resolves live company_profiles nouns, merges Style DNA,
builds the production prompt, and either dry-runs or publishes through
executeImageGeneration (Gateway + sharp variants + public bucket) without
debiting Dodo credits.

Co-authored-by: Chinmay Kabi <chinmay@blend.to>
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
if-x-built-y Ready Ready Preview Aug 13, 2026 2:15pm

@supabase

supabase Bot commented Aug 13, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project bjsepxonrrnwwxaejkrv because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@Chinmay-KB
Chinmay-KB merged commit 9504379 into main Aug 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants