Repository navigation
Add an optional long-form overview text to plugin marketplace entries - #3010
Merged
SawyerHood merged 9 commits intoSep 3, 2026
Merged
SawyerHood merged 9 commits into
SawyerHood merged 9 commits into
Conversation
A v2 marketplace entry can carry an about markdown string. The catalog projects it into search results, the store detail page renders it below the short description through a strict allowlist renderer, and the bb-official generator folds a bundled plugin ABOUT.md into its entry. The submit-a-plugin skill copies an author ABOUT.md into the marketplace about directory. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…very bundled plugin The getbb.app plugin detail page renders the v2 about field through the same markdown allowlist as the app. Every bundled plugin gets an ABOUT.md, which the bb-official generator folds into its entry. Inline code may hold angle brackets in a bundled ABOUT.md. Co-Authored-By: Claude Fable 5.1 <[email protected]>
… the generator inputs The bundled SDK types now carry the marketplace about field, so the published package changes and needs a new version. The bb-official generator task lists plugins/*/ABOUT.md as inputs so a changed file invalidates the cached document. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ary card The long-form file is PLUGIN_OVERVIEW.md in a plugin and overview/<plugin-id>.md in the marketplace, and the entry field is overview. The detail page shows the short description in a Summary card and the long text under its own Overview heading, in the app and on the public site. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…rarchy The description is a larger lead paragraph under the header. Headings inside the overview text render as small uppercase labels, the body is muted, and both blocks cap their line length. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ills Co-Authored-By: Claude Fable 5.1 <[email protected]>
SawyerHood
deleted the
bb/add-about-md-long-form-plugin-descriptions-thr_3w2fgrg66c
branch
September 3, 2026 20:51
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.
Human comments
What was wrong
A marketplace entry could describe a plugin with one short
descriptionfield only. The store detail page had no long-form text below it, so an author had nowhere to explain a plugin in more than a few sentences. The marketplace repository counterpart is get-bb/marketplace#182, which adds theoverview/<plugin-id>.mdfile, the CI validation, and the build step that folds the file text into the v2 document.What changed
packages/domain/src/plugin-marketplace-entry.tsadds the optionaloverviewstring to the v2 entry schema and exportsMARKETPLACE_ABOUT_MAX_CHARS(4000). The v1 schema stays strict and rejects the field.apps/web/public/schemas/marketplace-v2.schema.jsonmirrors the marketplace schema withmaxLength: 4000.packages/server-contract/src/api/plugins.tsadds optionaloverviewto the catalog search result. Omission means the entry has no long-form text, the same waypublishedAtworks. The SDK passes it through, andbb plugin search --jsonreturns it.apps/server/src/services/plugin-catalog/marketplace-manifest.tsaddsentryOverview, which drops a text above the cap with a warning so a third-party marketplace cannot push an oversized string to the client.plugin-catalog-service.tsprojects it into the search result.apps/server/scripts/generate-bb-official-marketplace.tsfoldsplugins/<name>/PLUGIN_OVERVIEW.mdinto a bundled plugin entry, and fails the generator on an empty file, a file above the cap, raw HTML, or an image. No bundled plugin has anPLUGIN_OVERVIEW.mdyet, so the generated document is unchanged.apps/app/src/components/plugin/management/PluginOverviewMarkdown.tsxrenders the text below the short description on the detail page. It usesreact-markdownwithskipHtml, anallowedElementslist (headings, paragraphs, emphasis, strong, strikethrough, code, blockquote, lists, thematic break, links),unwrapDisallowed, and a URL transform plus link component that render any non-https link as plain text. Links open withtarget="_blank"andrel="noopener noreferrer". Images, tables, task lists, and raw HTML never reach the DOM, even when a marketplace skips the CI check.submit-a-pluginskill (SKILL.md,references/marketplace-entry.md,references/pull-request.md) tells the agent to copy an authorPLUGIN_OVERVIEW.mdtooverview/<plugin-id>.md, reference it from the entry, follow the content rules, and commit it. Thebb-cliskill reference andbb guide pluginsmention theoverviewfield in--json.No wire change between the server and the host daemon: catalog data does not cross that boundary, so
HOST_DAEMON_PROTOCOL_VERSIONstays as is. No new public plugin API member.Design decisions, with the measured payload: the text is inline in the manifest, not a CDN fetch. On the 122 current entries, the v2 plugins JSON grows from 96,836 bytes to 600,086 bytes when every entry uses the full cap, and to 287,034 bytes at a realistic 1,500 characters. The worst case is one quarter of a single screenshot cap, and bb fetches the manifest once per two hours.
How you verified
mainwith the new test files copied in and passes here: v2overviewacceptance and v1 rejection inpackages/domain/test/plugin-marketplace-entry.test.ts;entryOverviewcap and warning inmarketplace-manifest.test.ts;overviewprojection and drop-above-cap inplugin-catalog-service.test.ts;readBundledPluginOverviewnormalization and rejections plus the shallow-repo output inbb-official-generator.test.ts; the skill text insubmit-a-plugin.test.ts; the query mapping inplugin-catalog-queries.test.ts; and the hostile-markdown render inPluginOverviewMarkdown.test.tsx, which asserts no script, img, table, input, or non-https anchor reaches the DOM.pnpm exec turbo run typecheck --filter=@bb/domain --filter=@bb/server-contract --filter=@bb/server --filter=@bb/app --filter=@bb/cli --filter=@bb/sdk --filter=@bb/templatespasses.pnpm exec turbo run test --filter=@bb/domain --filter=@bb/server-contractpasses.pnpm exec turbo run test --filter=@bb/server -- test/services/plugin-catalog test/skills/submit-a-plugin.test.ts, the three touched@bb/apptest files, and the@bb/cliplugin catalog output test pass.pnpm exec turbo run lintfor the touched packages passes.overviewtext. The render path is covered by the jsdom test only.Fixes #
Update: public marketplace site and bundled overview files
apps/web/src/marketplace/marketplace-overview.tsxrenders theoverviewfield on the getbb.app plugin detail page, below the screenshots, through the same allowlist as the app component.marketplace-v2.tsaccepts the optional field. The web app addsreact-markdownandremark-gfm.public-marketplace.test.tsxrenders a hostile overview text throughrenderToStaticMarkupand asserts no script, image, or non-https anchor reaches the HTML.plugins/<name>/PLUGIN_OVERVIEW.md(26 files, 781 to 1,687 characters each). Each file passes the marketplace CI check from Add an optional long-form overview file to marketplace entries marketplace#182. The bb-official generator folds them in, and the generated document grows to 44,956 bytes. The generator now strips inline and fenced code before its raw-HTML check, so<host-id>in a command example is accepted.pnpm exec turbo run typecheck test lint --filter=@bb/web, the server plugin-catalog tests against the regenerated document, and the strictcheckOverviewMarkdownfrom the marketplace repository on all 26 files.Update: field renamed to overview, summary card layout
overview, the plugin file isPLUGIN_OVERVIEW.md, and the marketplace file isoverview/<plugin-id>.md. The marketplace side is Add an optional long-form overview file to marketplace entries marketplace#182.PluginSummaryCard,PluginOverviewMarkdown) and on the public site (MarketplaceSummary,MarketplaceOverview). An installed plugin with no catalog entry gets the same Summary card. The detail-page recipe tests were updated from the About label to Summary.