Add ops mashup generator CLI - #10
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=1prints 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 livecompany_profilesbuildGenerationPromptexecuteImageGeneration— GatewaygenerateImage(defaultopenai/gpt-image-2), sharp variants, publicgeneration-imagesbucket (.png+.card.webp+.detail.webp+.og.jpg)updateGenerationStatus,makeGenerationSlugSnippet,sanitizeVibeTags,getGenerationImagesBucketNouns resolve the same way as the picker (slug, then exact name). Ambiguous names fail with the matching ids.
Invoke the first four pairings
Always pass
--dry-runfirst. Seeyarn generate:mashup --helpand the README.Test notes
yarn generate:mashup --helpdocuments flags and the four examplesyarn test107 passed