Skip to content

Default mashup CLI insert to draft; add --publish - #11

Merged
Chinmay-KB merged 1 commit into
mainfrom
cursor/mashup-cli-draft-default-6d77
Aug 13, 2026
Merged

Default mashup CLI insert to draft; add --publish#11
Chinmay-KB merged 1 commit into
mainfrom
cursor/mashup-cli-draft-default-6d77

Conversation

@Chinmay-KB

@Chinmay-KB Chinmay-KB commented Aug 13, 2026

Copy link
Copy Markdown
Owner

TL;DR

yarn generate:mashup no longer inserts a published row. Default listing is visibility=draft + moderation_status=visible (existing schema / feed filters). Pass --publish only after reviewing the image.

Burst (id 47) is out of scope here — XProd is unpublishing that row separately. This PR does not touch production data, generate images, or hit AI Gateway.

Why

Chinmay never publishes a mashup until he has reviewed the image. The CLI previously hardcoded visibility: "published", which shipped Burst live by mistake.

Public feed, sitemap, and locker all require visibility = published and moderation_status = visible. Draft is the existing unlisted value (generations_visibility_ck: draft | published). No new enum.

Mapping

Flag visibility moderation_status Public feed / sitemap / locker
default (no --publish) draft visible hidden
--publish published visible listed
--dry-run (no insert) unchanged: print prompt, skip Gateway / upload / DB

--publish is documented in --help.

Files

  • src/lib/ops/mashup-cli.ts--publish parse + mashupListingFields()
  • src/lib/ops/mashup-run.ts — insert uses those listing fields
  • scripts/generate-mashup.ts — draft vs published output
  • src/lib/ops/__tests__/mashup-cli.test.ts — default is not published; help includes --publish
  • README.md — ops CLI docs

Test plan

  • yarn test src/lib/ops/__tests__/mashup-cli.test.ts (17 passed)
  • yarn generate:mashup --help includes --publish
  • No image generation / AI Gateway / Dodo debit in this PR
Open in Web Open in Cursor 

Keep yarn generate:mashup off the public feed unless Chinmay
passes --publish after reviewing the image. Uses existing
visibility=draft (not a new enum). --dry-run is unchanged.

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:51pm

@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 ae71973 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