Skip to content

Add built-in plugin pages to the public marketplace - #4608

Closed
brsbl wants to merge 7 commits into
mainfrom
bb/builtin-plugin-marketplace-pages
Closed

brsbl wants to merge 7 commits into
mainfrom
bb/builtin-plugin-marketplace-pages

Conversation

@brsbl

@brsbl brsbl commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

getbb.app/marketplace only listed community plugins. The plugins that ship with bb (Memory, Tasks, Docs, Theme Preview, Automations, Plugin Guide and others) had no public page, so links like /marketplace/memory returned 404 and search engines couldn't find them.

What changed

In short: every user-facing built-in plugin now has a marketplace page, and a "BB Official" shelf leads /marketplace.

Name collisions with community plugins

Built-in and community plugins share one URL space (/marketplace/<id>), so a built-in can have the same id as a community plugin.

  • The community plugin keeps its URL. The built-in moves to a compact slug with the hyphens removed.
  • The only clash today is provider-usage:
    • /marketplace/provider-usage → the community Provider Usage plugin (unchanged)
    • /marketplace/providerusage → the built-in Provider Usage
  • If the compact slug is also taken, the built-in is left off the site rather than replacing a community page.
  • Install behavior is unchanged. The page URL is web-only; plugin ids and install commands are not renamed.

Pages and shelf

  • "BB Official" shelf first, above New & notable, matching the in-app plugin store. "View all" expands it in place.
  • Cards use the bb mark as the author avatar.
  • Badges follow the shared install rule from Show install counts consistently across the plugin store and marketplace #4791, matching the in-app plugin store:
    • Plugins installed with bb by default say "Built in" on cards and "Included with bb" on detail pages.
    • Opt-in official plugins (Tasks, GitHub, Docs, Memory and others) show their install counts.
  • Detail pages show the right setup step:
    • bb plugin install <name> for official plugins installed on request
    • bb plugin enable <id> for built-ins that are off by default
    • no command for built-ins that are always on
  • "View source" links to get-bb/bb/tree/main/plugins/<name>.
  • Internal and adapter plugins stay unlisted: account-pool, agent-annotations, environment-* checkouts, plugin-api-tester, provider-* adapters.
  • Built-ins join the sitemap automatically.

Data and build

  • apps/web imports the bundled catalog that @bb/server#generate:bb-official-marketplace already generates and merges it into the community manifest after parsing.
  • Only the bundled catalog may use a { bundled: { plugin } } source. The community catalog still accepts git and npm sources only, so a community entry can't present itself as built in.
  • Local SVG icons are served as Vite asset URLs, including when Vite inlines them as data: URLs.
  • @bb/web#build depends on the catalog generator through topo; deploy-web.yml also triggers on plugin overviews, manifests, icons and the registry.

Follow-up, not in this PR

  • Point the in-app "Copy marketplace link" for built-ins at these pages.

How you verified

  • bundled-marketplace.test.ts: collision renaming and the double-collision skip, the unlisted filter, shelf order, category merging, icon fallback, and a drift check that setup commands match the server's plugin registry.
  • marketplace-v2.test.ts: the community catalog rejects bundled sources; the bundled catalog accepts them.
  • public-marketplace.test.tsx: only default-installed bundled plugins render "Built in"; an opt-in one renders its count.
  • Remote CI passed on 8214a08 (31 passed, 3 skipped).
  • Share cards resolve root-relative icon paths against getbb.app before fetching; marketplace-og.test.tsx covers it.
  • Branch web app with local R2 seeded from the production catalog, in headless Chrome for Testing through Browser Automation at 1280×900 @2x:
    • /marketplace: BB Official shelf first (30 plugins); "View all" expands it in place.
    • Built-in badges: always-on and off-by-default plugins say "Built in". The seven opt-in plugins show counts, for example Tasks 1,357 and Memory 546.
    • /marketplace/memory, /simple-notes (bb plugin install docs), /plugin-api-docs (bb plugin enable plugin-api-docs) and /bb-guide (no command) render with the right command and source link.
    • /marketplace/providerusage shows the built-in; /marketplace/provider-usage still shows the community plugin.
    • The bb mark avatar checked in light and dark.

Before: db9777f421 (main) · After: 326dfe3653 · 1280×900 @2x

Before (merge base) After (this branch)
/marketplace before marketplace after marketplace
/marketplace/memory before memory after memory

BB-Thread-ID: thr_9qi6u2gs3z

🤖 Generated with Claude Code

AGENT GENERATED

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T05:43:34.798271Z 2aa97f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2aa97f5874

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +99 to +103
source: z.union([
marketplaceGitSourceSchema,
marketplaceNpmSourceSchema,
marketplaceBundledSourceSchema,
]),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject bundled sources from the fetched catalog

When the fetched R2 manifest contains a { bundled: ... } source, parseMarketplaceV2Manifest now accepts it even though the server's external-marketplace parser explicitly reserves that source for bb-official. withBundledPlugins preserves such community entries, and the UI then labels them “Built in,” links them to the bb repository, and may hide or replace their install command. Keep the fetched-manifest parser limited to Git/npm sources, or add an explicit allowBundled policy used only for the generated catalog.

AGENTS.md reference: AGENTS.md:L13-L13

Useful? React with 👍 / 👎.

Comment on lines +11 to +15
- "apps/server/scripts/generate-bb-official-marketplace.ts"
- "apps/server/src/services/plugins/builtin-registry.ts"
- "plugins/bb-official.json"
- "plugins/*/package.json"
- "plugins/*/PLUGIN_OVERVIEW.md"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Trigger deployment for every bundled-catalog input

In the inspected deploy-web.yml, this path filter omits generator inputs such as packages/domain/src/plugin-catalog-category.ts, packages/domain/src/plugin-id.ts, packages/domain/src/plugin-manifest.ts, and apps/server/src/services/plugin-catalog/bundled-marketplace-paths.ts, all of which are listed under @bb/server#generate:bb-official-marketplace in turbo.json. A merge that only changes a built-in category definition or ID derivation therefore changes the generated web catalog but never starts this deployment, leaving production stale until an unrelated matching change occurs.

Useful? React with 👍 / 👎.

brsbl and others added 4 commits September 30, 2026 22:48
…ketplace-pages

# Conflicts:
#	apps/web/src/marketplace/marketplace-v2.test.ts
#	apps/web/src/marketplace/marketplace-v2.ts
brsbl added a commit that referenced this pull request Oct 3, 2026
…ace (#4791)

## Human comments

## What was wrong

Install badges followed different rules in the in-app plugin store and
on getbb.app. Built-in plugins showed meaningless counts like `✓ 1`,
small community counts showed as raw numbers, and plugins with no data
read "New" on the web but showed a bare icon in the app.

## What changed

The plugin store, getbb.app, and `bb plugin search` now use one rule,
defined once in `@bb/domain/plugin-install-badge`:

| Plugin | Badge |
| --- | --- |
| Installed with bb by default | "Built in" (no icon, no count) |
| 25+ installs, including opt-in official plugins like Tasks | The count
|
| Under 25, published in the last 30 days | Blue "New" on cards |
| Under 25, older than 30 days | The real count |

- Detail pages on both surfaces show only real counts, never "New".
- `bb plugin search` fills its Installs column from the same rule. The
bb plugin guide documents it.
- New & notable cards on getbb.app no longer repeat a "New" badge.
- The marketplace route stamps its render time in loader data, so server
and hydrated badges always match.
- Catalog search results gain an additive `installedByDefault` field,
taken from the bundled registry's `autoInstall`.
- With an older server, the field defaults to `false`, so the app shows
counts instead of "Built in".
- Server-to-daemon wire messages are unchanged.
- `deploy-web.yml` now also redeploys when the shared rule changes.
- #4608 should show "Built in" only for always-on plugins to match this
rule.

## Screenshots

Before: `a8973c67c7` (main) · After: `1ea1321069`, except the web detail
row, captured from `2ddee8568f` · Captured at 2× with live getbb.app
marketplace data and install stats. The other rows look the same on the
final head.

### In-app plugin store

| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| BB Official + New & notable shelves | Desktop · 1440×900 | ![Before:
in-app official
shelf](https://github.com/user-attachments/assets/daef11e1-1ae5-4675-86c7-aceee9b6f22b)
| ![After: in-app official
shelf](https://github.com/user-attachments/assets/892ea970-01db-4e29-b750-bee2614b1932)
|
| BB Official shelf | Mobile · 390×844 | ![Before: in-app official
shelf,
mobile](https://github.com/user-attachments/assets/4fcbe3ef-55aa-4175-a82d-9c0bbf71578a)
| ![After: in-app official shelf,
mobile](https://github.com/user-attachments/assets/0c48bddd-f2d6-4067-8056-312fd0db7c22)
|
| BB Official "View all": opt-in official plugins | Desktop · 1440×900 |
![Before: opt-in official
plugins](https://github.com/user-attachments/assets/c52a36f2-a74d-49ae-a04b-e8dffdccf5bb)
| ![After: opt-in official
plugins](https://github.com/user-attachments/assets/71262bb2-b88a-4048-822b-796c97fcabbe)
|
| Search "sidebar": mixed counts | Desktop · 1440×900 | ![Before: in-app
search](https://github.com/user-attachments/assets/ef0c9180-dd5f-4b8c-bbcc-7af5b239fc79)
| ![After: in-app
search](https://github.com/user-attachments/assets/4353fb16-5fcd-4cf2-a1fa-7e10a8415590)
|
| Low-count card (Radar Sidebar, 3 installs) | Mobile · 390×844 |
![Before: in-app low-count
card](https://github.com/user-attachments/assets/2188d960-b4f4-4e15-8738-cf1122f57d09)
| ![After: in-app low-count
card](https://github.com/user-attachments/assets/30c0c494-52ef-4a37-8617-4ea2c6167967)
|
| Detail, low-count plugin | Desktop · 1440×900 | ![Before: in-app
detail](https://github.com/user-attachments/assets/bfd5d5f6-0f3d-4325-a401-ed0938f8260b)
| ![After: in-app
detail](https://github.com/user-attachments/assets/a7e1bfaf-dd16-43eb-97c7-fcdc44e105a3)
|

### getbb.app marketplace

| Screen / state | Viewport | Before | After |
| --- | --- | --- | --- |
| Landing: New & notable + category shelves | Desktop · 1440×900 |
![Before: web
landing](https://github.com/user-attachments/assets/8e59f5ac-2772-4f2b-bf32-4480b3fadbe4)
| ![After: web
landing](https://github.com/user-attachments/assets/4eaa61a4-6e6c-4a55-a921-ca7e2e38218a)
|
| Landing: New & notable | Mobile · 390×844 | ![Before: web landing,
mobile](https://github.com/user-attachments/assets/2abb1cb1-bdcb-4967-bdd7-62ce10166818)
| ![After: web landing,
mobile](https://github.com/user-attachments/assets/d6368f71-56ff-4f3a-870e-27ed1af65284)
|
| Category: Thread Management | Desktop · 1440×900 | ![Before: web
category](https://github.com/user-attachments/assets/865bcd03-fde2-42b6-a69f-0b0a704cb5a8)
| ![After: web
category](https://github.com/user-attachments/assets/17a432bc-52e1-4a5d-a2b9-24e9f69d3757)
|
| Category: Thread Management | Mobile · 390×844 | ![Before: web
category,
mobile](https://github.com/user-attachments/assets/5952bbfc-c001-4f13-91d7-85869ca6b348)
| ![After: web category,
mobile](https://github.com/user-attachments/assets/d3ba39ac-0848-41b2-b169-ad0e61e3c7df)
|
| Detail, low-count plugin | Desktop · 1440×900 | ![Before: web
detail](https://github.com/user-attachments/assets/b65ad844-b976-46c4-98a6-adba31a82efe)
| ![After: web
detail](https://github.com/user-attachments/assets/d07ff9f6-3523-4656-8a9f-7326daa0ba42)
|

The hero banner on the in-app detail shots rotates on its own, so the
two shots caught different slides.

## How you verified

- Remote CI passed on the final head `117b357` (31 passed, 3 skipped).
- A CLI test checks that `bb plugin search` prints "Built in" and "New".
- `plugin-install-badge.test.ts` covers each branch of the shared rule.
- `public-marketplace.test.tsx` checks that badges follow the route's
render time and that detail pages show no "New".
- A server test checks that `installedByDefault` matches `autoInstall`
for every bundled plugin.
- Chrome for Testing (headless, bb Browser Automation) at 1440×900 and
390×844: badges render as tabled on both surfaces.
- Safari 26.5.2 (macOS, via safaridriver): server and hydrated badges
matched on 89 cards, with no console errors.
- Safari: hard reload and client navigation kept the same badges, and
the detail page shows no "New".

## Follow-ups

- A future-dated `publishedAt` keeps a low-count plugin "New" until 30
days after that date. The fix belongs in `plugin-install-badge.ts`.

BB-Thread-ID: thr_b9xfg54xyy

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
brsbl and others added 2 commits October 2, 2026 21:13
Resolves the conflicts with #4786 (icons moved to marketplace-icons.ts)
and #4791 (shared install badge). Only plugins installed by default now
show "Built in"; opt-in official plugins like Tasks show their install
counts, matching the in-app plugin store.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
marketplaceAssetUrl now keeps root-relative paths for bundled icons, so
the server-rendered share card resolves them against getbb.app before
fetching.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
SawyerHood added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

getbb.app/marketplace only listed community plugins. The plugins that
ship with bb (Memory, Tasks, Docs, Automations, Plugin Guide and others)
had no public page, so links like `/marketplace/memory` returned 404 and
search engines could not find them.

This carries #4608 forward on current `main` with a smaller diff and
three fixes.

## What changed

Every user-facing built-in plugin now has a marketplace page, and a "BB
Official" shelf leads `/marketplace`.

### Pages and shelf

- The "BB Official" shelf comes first, above New & notable. "View all"
expands it in place.
- Cards use the bb mark as the author avatar.
- Badges follow the shared install rule:
- Plugins installed with bb by default say "Built in" on cards and
"Included with bb" on detail pages.
- Opt-in official plugins (Tasks, GitHub, Docs, Memory and others) show
their install counts.
- Detail pages show the right setup step:
  - `bb plugin install <name>` for official plugins installed on request
  - `bb plugin enable <id>` for built-ins that are off by default
  - no command for built-ins that are always on
- "View source" links to `get-bb/bb/tree/main/plugins/<name>`.
- Internal and adapter plugins stay unlisted: account-pool,
agent-annotations, the environment-\* checkouts, plugin-api-tester and
the provider-\* adapters.
- Built-ins join the sitemap and get share cards.

### Ids and URLs

- A built-in's page URL is its plugin id, the same id install counts and
the app use.
- Built-in ids cannot clash with community ids: #4576 moved the one
clash to `bb--provider-usage`, and the marketplace registry rejects
reserved ids.
- `/marketplace/provider-usage` is the community Provider Usage plugin
(unchanged).
  - `/marketplace/bb--provider-usage` is the built-in.
- If a clash ever appears, the community page stays and the built-in is
left off the site.

### Data and build

- `apps/web` imports the bundled catalog that
`@bb/server#generate:bb-official-marketplace` already generates and
merges it into the community manifest after parsing.
- Only the bundled catalog may use a `{ bundled: { plugin } }` source. A
fetched community manifest with one is rejected, so a community entry
cannot present itself as built in.
- Local SVG icons are served as Vite asset URLs, including when Vite
inlines them as `data:` URLs.
- `@bb/web#build` depends on the catalog generator through `topo`.
`deploy-web.yml` also triggers on every generator input and on plugin
icons.

### Differences from #4608

- Removed the compact-slug rename (`/marketplace/providerusage`). It no
longer ran, because the ids no longer clash.
- bb account, bb cloud AI and bb connect rendered the generic puzzle
icon; they now have icons.
- The enable command uses the plugin id instead of the source name.
- The bundled-source check runs after the shared parse instead of
through a second copy of the manifest schema.
- Formatting-only hunks are reverted.

### Things to know

- Adding a bundled plugin that is opt-in or off by default fails
`bundled-marketplace.test.ts` until it is added to the lists in
`bundled-marketplace.ts`. The failure names the plugin.
- A listed built-in whose icon name has no entry in
`marketplace-icons.ts` fails the same test file.
- The deploy job uses a shallow clone, so built-ins have no publish
dates on getbb.app. They sort last under "New" and never show the "New"
badge.
- Provider usage and Modal Sandbox have no overview text yet, so their
Overview section is empty.

## How you verified

- `pnpm exec turbo run build typecheck test lint --filter=@bb/web`
passes on this branch (25 files, 170 tests).
- `bundled-marketplace.test.ts` covers the clash rule, the unlisted
filter, shelf order, category merging, icon fallback, a drift check
against the server's plugin registry, and a check that every listed
built-in has a web icon. Removing two icon entries made that last test
fail and name both plugins.
- `marketplace-v2.test.ts`: the community catalog rejects bundled
sources; the bundled catalog accepts them.
- `public-marketplace.test.tsx`: only default-installed bundled plugins
render "Built in"; an opt-in one renders its count.
- Browser checks in headless Chrome at 1280×900, against a local build
with a local R2 bucket holding a full 327-plugin community catalog and
the live install counts. These ran on a local branch that also carried
#4671; its `apps/web` differs from this PR by one shelf subtitle string.
- `/marketplace`: BB Official shelf first with 30 plugins; "View all"
expands to all 30 and the link disappears.
  - bb account, bb cloud AI and bb connect show their own icons.
- `/marketplace/bb--provider-usage` shows the built-in with "Included
with bb" and no command; `/marketplace/provider-usage` still shows the
community plugin with its install command; `/marketplace/providerusage`
is 404.
- `/marketplace/simple-notes` shows `bb plugin install docs`;
`/marketplace/workflows` shows `bb plugin enable workflows`;
`/marketplace/bb-guide` shows no command.
- Production build under `vite preview`: Plugin Guide and Modal Sandbox
render their SVG icons on the page and on the share card
(`/marketplace/og/<id>`); the sitemap lists the built-in pages; no
console errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

---------

Co-authored-by: brsbl <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
brsbl added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

The Plugin Guide only existed inside bb as the `plugin-api-docs` plugin,
so the upcoming plugins blog post had no public page to link to and
couldn't embed it.

## What changed

- **`/plugin-guide` on getbb.app**
(`apps/web/src/routes/plugin-guide.tsx`): renders the Guide's
`ProductMap` straight from `plugins/plugin-api-docs/src`. The current
slide syncs to `?slide=` (replace navigation, so reload and shared links
open the same map). Plugin names in "Used by" link to that plugin's
source on GitHub (`github.com/get-bb/bb/tree/main/plugins/<dir>`), which
exists for every built-in. Their icons come from
`first-party-plugins.json`, or from the plugin's own SVG logo, read
through its manifest's `bb.branding.icon`, for the five built-ins that
ship one. "Copy for agent" copies a self-contained prompt: what to
build, the surface's SDK symbols, the bb-plugin-authoring skill, and a
link back to the slide. The in-app button copies a mention that only
resolves inside bb. The Guide is client-only and lazy-loaded
(`ClientOnly` + `React.lazy`), because its mobile/desktop layout reads
`matchMedia` on first render and would otherwise mismatch on hydration.
- **The plugin stays forkable.** The Guide's three `@/` imports resolve
through the web's existing `@/` alias to modules the web owns. This is
the same contract a fork uses: `@/` means "the host's registry items".
- `apps/web/src/components/ui/icon.tsx` and `switch.tsx` are one-line
re-exports from `@bb/shared-ui` (new workspace dependency of `@bb/web`).
- `@/lib/utils` already exists in the web; its `cn` is identical to
shared-ui's (`twMerge(clsx(inputs))`).
- No new alias or shim. A future `@/` import the web lacks fails the web
build rather than resolving to the wrong module.
  - `resolveJsonModule` is on for the Guide's JSON fixtures.
- **Theme** (`apps/web/src/components/ui/theme.css`): adds the tokens
the Guide uses, copied from the app theme for light and dark: `muted`,
`timeline-accent`/`file-accent`, `border-hairline`, `border-seam`,
`surface-recessed-solid`, `surface-raised(-solid)`, `sidebar`,
`sidebar-foreground`, `sidebar-accent`, `radius-sm`,
`shadow-xs/md/lift`, `text-2xs`. It also adds `@source` lines for the
Guide and shared-ui's icon/switch. The Guide's stylesheet
(`plugin-guide/plugin-guide.css`) loads only on `/plugin-guide` and on
posts that embed it.
- **Landing CSS can coexist with Tailwind**: `landing.css`'s
`*`/`a`/`code` reset moves into `@layer landing-reset`. Unlayered, it
beat every Tailwind utility (e.g. all `p-*`/`m-*`) on pages that load
both. Pages that load only `landing.css` behave the same.
- **Blog directive** (`apps/web/src/blog/parse-post.ts`,
`post-body.tsx`): a line `component:plugin-guide` or
`component:plugin-guide:<slide-id>` becomes a `{kind:"component",
name:"plugin-guide", slide?}` block. It renders the full carousel
(opening on the app-window "anatomy" slide by default) with an "Open the
full Guide" link. `.post-body` `h2/h3/p/ul/li/li::before/strong/code`
rules now skip `.post-embed` descendants through
`:where(:not(.post-embed *))`. They don't leak into the embed, and their
specificity is unchanged, so existing overrides (lede, ordered lists,
quotes, tweet text) still win.
- **Top-nav Plugins menu** (`apps/web/src/landing/site-chrome.tsx`,
`landing.css`): "Plugins" becomes a dropdown with Marketplace and Plugin
Guide. It uses the same `<details>`/`<summary>` disclosure as the
marketplace category picker. Escape closes it and returns focus;
clicking or tabbing outside closes it. The page you are on is marked
with `aria-current`, and "Plugins" is highlighted on both pages.
- **Discoverability**: a "Plugin Guide" link in the shared site footer,
which appears on the home page, blog, changelog, privacy page,
marketplace and the Guide itself. Also a sitemap entry and a canonical
URL (`https://getbb.app/plugin-guide`, so `?slide=` links count as one
page) for `/plugin-guide`, plus links from `PLUGIN_OVERVIEW.md` and the
`bb-plugin-authoring` skill.
- **Rebuild triggers**: `@bb/web#build`/`#typecheck` inputs and the
`deploy-web.yml` paths now include `plugins/plugin-api-docs/src/**` and
`packages/shared-ui/src/**`.

- **Guide fixture fixes** (`wireframes.tsx`, `product-map.tsx`; also
shown in the in-app Guide):
- Every mobile fixture uses one phone-shaped frame (9:19, same gutter,
390px column), so the slides no longer vary between 362 and 766px tall.
- The + menu, @ typeahead and inline-action popup open from their own
controls, above both the control and its number badge, so neither is
covered.
- On mobile the command palette is a bottom sheet with a drag handle,
matching the app's responsive drawer.
- New-thread actions and the sidebar "Your panel" highlight line up with
their sibling rows.
- The side-panel file tab truncates instead of running into the + and
panel icons.
- On getbb.app, phone-width viewers see only the mobile layout, and the
desktop toggle stays visible but disabled and the slide title and blurb
above the tabs are dropped to save space
(`mobileOnlyOnCompactViewport`). The in-app Guide keeps both its desktop
toggle and its slide header on phones.
- **SDK coverage:**
- Six `*Area.member` names that aren't public exports now use their
importable `PluginBbSdk.*` paths.
- 37 uncovered public exports were added to their cards (for example
`experimental_defineHostEntry`, `defineRpcContract`, `useSettings`,
`BbNavigate.openThreadPanel`, and the testing loaders).
- A new **Provider bridges** backend card covers the `./provider-bridge`
entry points.
- **bb mark in slide titles:** "The bb app window" shows the vector bb
mark (`assets/bb-logo.svg`, inverted in dark mode like the app's
`BbLogo`) instead of italic text. `ProductMap` takes an optional
`brandMark`; without it, the in-app Guide keeps the italic text.
- **Card copy and Used by refresh**
(`plugins/plugin-api-docs/src/surfaces.ts`, `first-party-plugins.json`).
This also changes the in-app Guide.
- **Leads:** every card leads with one of five verbs: **Add** (your UI
inside bb), **Replace** (a bb region or renderer), **Run** (code with no
UI), **Provide** (agents, environments, machines, server access, AI
services) or **Use** (platform building blocks).
- **Length:** each card has 2–4 short bullets that say what a plugin
gets. SDK names and edge-case rules moved out of the visible copy. The
agent reference still carries every symbol. Total copy went from about
6,500 to about 2,000 words.
- **Template test:** `surfaces.test.ts` now enforces the shape: lead
verb, at most 4 bullets, at most 100 characters each, no SDK
identifiers.
- **Used by:** every row was rebuilt from built-in plugin source, and
six missing plugins were added to `first-party-plugins.json`: Agent
Annotations, bb account, BB guide, PDF preview, Theme Preview, Thread
list. Seven surfaces have no built-in user yet, so their row is hidden.

### Screenshots (after; new page)

Card with "Used by" and "Copy for agent" (copied state):

![Full-page panels card with Copy for
agent](https://github.com/user-attachments/assets/a11e149c-a4e9-407e-a88e-a76288f09f3d)

Agent providers card with built-in brand logos:

![Agent providers card with brand
logos](https://github.com/user-attachments/assets/52e4d817-2d82-462f-b5a6-1611db0ee258)

Top nav, before and after (`/blog`, 1440 wide):

**Before**

![Nav before: Plugins
link](https://github.com/user-attachments/assets/37e3bbc7-3fc2-48dc-a1dd-42767117dc59)

**After**

![Nav after: Plugins menu
closed](https://github.com/user-attachments/assets/b5a8640e-b095-4e1e-8acb-5b2975094004)

Plugins menu open on `/plugin-guide`:

![Plugins menu
open](https://github.com/user-attachments/assets/0ce2af85-e6f2-41ad-8415-a69fb5af0eb0)

Mobile (390 wide), before and after:

**Before**

![Mobile nav
before](https://github.com/user-attachments/assets/95dd89b6-e5f3-4cc7-a132-628fe9fada14)

**After**

![Mobile nav after, menu
open](https://github.com/user-attachments/assets/a592e54c-6d67-407d-a328-d643749014c0)

Dark, on the marketplace:

![Plugins menu open in dark
mode](https://github.com/user-attachments/assets/64df38a4-48c0-48b7-a469-7bbf78e38d1a)

Slide title with the bb mark, light and dark:

![Slide title with bb mark,
light](https://github.com/user-attachments/assets/dbc2c0f5-8a31-49e7-bb8c-a128c76bd6c3)

![Slide title with bb mark,
dark](https://github.com/user-attachments/assets/69541a4c-139e-4b91-9081-57d8ce7c0ec8)

Mobile fixtures, one phone frame each (390 wide):

![Mobile command palette as a bottom
sheet](https://github.com/user-attachments/assets/6bd64747-d403-4fbb-827c-8a358b9975b2)

![Mobile
composer](https://github.com/user-attachments/assets/f74910b2-2870-45db-823c-2eee4672c533)

![Mobile new thread actions
aligned](https://github.com/user-attachments/assets/a59aad4b-0c19-483c-bf4c-01f9aa7c8457)

![Mobile settings
page](https://github.com/user-attachments/assets/76f2cec8-5c8f-49fc-a56d-b1a18098ce86)

Desktop app window with "Your panel" hovered (#2) and the truncated file
tab (#14):

![Desktop app
window](https://github.com/user-attachments/assets/63c71acd-93c0-4818-b9e4-7508f162677e)

The + menu opening from the + button, and the @ typeahead with its badge
above it:

![Plus menu anchored to its
button](https://github.com/user-attachments/assets/75082cb3-3e08-422f-97ba-5f63f1c84375)

![Mention typeahead above the
pill](https://github.com/user-attachments/assets/a560670a-3489-4116-8d0f-a8e93c0187ee)

Site footer with the Plugin Guide link:

![Site footer with Plugin Guide
link](https://github.com/user-attachments/assets/ecf9c5d7-5c21-4f34-9eea-8d99e312da85)

Plugin backend with a refreshed card:

![Plugin backend grid with Thread lifecycle events
card](https://github.com/user-attachments/assets/5d261a1c-6fd5-4d88-8977-adbbe20cfc30)


Desktop, light (1440×900 @2x):

![Plugin Guide on getbb.app, desktop
light](https://github.com/user-attachments/assets/5a61cf0c-2a56-4fd8-b81c-744e5d5809f8)

Desktop, dark, with a surface card open showing "Used by" links:

![Plugin Guide desktop dark with
card](https://github.com/user-attachments/assets/36a7ab39-38ee-4cd9-812b-146d7ff16671)

Mobile (390×844 @2x):

![Plugin Guide
mobile](https://github.com/user-attachments/assets/efab1a13-2de9-435f-b325-bbd2966dfe88)

Blog post with `component:plugin-guide` (local draft, not committed):

![Plugin Guide embedded in a blog
post](https://github.com/user-attachments/assets/1954458e-5f7d-462c-a270-3bc2cc5a9915)

In-app Guide on this branch (dev app), phone width: slide title and
blurb kept, desktop toggle enabled:

![In-app Guide at 390
wide](https://github.com/user-attachments/assets/1b52cc26-a740-42b8-8954-e9445cdd9da6)

In-app Guide on this branch, desktop:

![In-app Guide at 1440
wide](https://github.com/user-attachments/assets/2d6cb185-ba99-4f3e-a01f-273648bb9ec6)

## How you verified

- `pnpm exec turbo run build --filter=@bb/web` passes. The client build
emits the Guide chunks, and the Guide CSS contains the new token
utilities (`bg-sidebar`, `text-2xs`, `border-border-hairline`,
`shadow-lift`, …).
- `bb plugin build plugins/plugin-api-docs` passes, and its `app.js`
still uses the host runtime `experimental_Icon`.
- Branch web app (`vite dev`) driven through `bb browser-automation`,
headless Chrome for Testing, 2× device scale:
- `/plugin-guide` at 1440×900: Guide content renders (7 slides, 68
annotation chips). Clicking a slide tab updates `?slide=composer`,
ArrowRight moves to `?slide=home`, and loading `?slide=settings` opens
"Plugin settings page". A chip opens its card, and "Used by" links point
to each plugin's GitHub source with icons. "Copy for agent" shows
"Copied", and the clipboard receives the self-contained prompt; checked
by stubbing `navigator.clipboard.writeText`. Brand logos render, masked
to the text color, on the Agent providers card.
  - Dark scheme via `prefers-color-scheme`: tokens resolve correctly.
- 390×844: mobile slides ("Sidebar" → next → `?slide=app-shell-thread`),
no horizontal overflow.
- Draft post with `component:plugin-guide` and
`component:plugin-guide:composer`: two embeds at the 680px column width,
opening on "The bb app window" and "The composer". Links go to
`/plugin-guide` and `/plugin-guide?slide=composer`. Computed styles show
no `.post-body` leak (Guide `li::before` is `none`, Guide `p` is 13px),
while the post's own list keeps its markers and spacing.
  - No console errors or page errors in any of these runs.
- Plugins menu, in Chrome for Testing at 2×: click opens it; outside
click closes it; Enter opens it; Tab reaches Marketplace then Plugin
Guide; Escape closes it and refocuses "Plugins"; tabbing past the last
item closes it. The current page is marked on `/plugin-guide` and
`/marketplace`. Checked at 390 px (panel stays on screen) and in dark
mode. No console errors. On `/`, the open panel paints above the hero's
"New" callout: hit-testing both rows lands on the links, and clicking
Plugin Guide navigates. The header is lifted with `position: relative;
z-index: 10` because its entrance animation fill can trap the panel's
z-index in Safari and Firefox.
- Real Safari 26.5.2 on macOS (safaridriver): home Plugins menu,
`/plugin-guide` desktop (slides, `?slide=`, all three composer menus,
brand icons, Copy for agent), and 390 and 360 widths. Dark mode wasn't
driven in Safari.
- Existing pages are unchanged. On `/`, `/blog`, both posts,
`/changelog`, `/privacy` and `/marketplace`, every element's computed
margin, padding, color, font, line height, decoration, size and
`::before` were captured, then `landing.css`/`blog.css` were swapped in
place for their `origin/main` form (reset unlayered, no embed
exclusion): 0 differences on every page. The same check flagged the lede
and `<ol>` markers on `/privacy` against an earlier revision of this PR,
which the review caught.
- Parser tests in `parse-post.test.ts` (directive with and without
slide; near-misses stay paragraphs) and the sitemap test run in CI.
- In-app Guide, branch dev app (`pnpm dev`, `plugin-api-docs` enabled),
Chrome for Testing at 2×: at 1440×900 the slide header (italic *bb*,
blurb) and toggle are unchanged; at 390×844 the slide title and blurb
still show, the desktop toggle stays enabled, the phone mock fits at
scale 1 and scrolls fully into view, and nothing overflows sideways. The
web keeps the compact header (title `sr-only`) and serves `<link
rel="canonical" href="https://getbb.app/plugin-guide">` in the SSR HTML.

## Follow-ups (P2, not in this PR)


- Close the Plugins menu on Escape after a mouse open. Safari doesn't
focus the summary on click, so the details-scoped key handler doesn't
fire. Use a document keydown listener. (Nav review, 4fa7844)

- Drop Agent Annotations from "Draft prompt highlighting". It only uses
`replace` and `onSubmitted`, never highlighting. (Card review,
1f09afd)
- Reword the app-wide scripts bullet "Clean up automatically when the
window reloads". bb runs the returned disposer on unmount, which also
happens on plugin reload and disable. (Card review)
- Read `.bb` from the default JSON import in the web brand-icon glob, so
a future plugin manifest without `bb` can't break the web build. (Card
review)

- #4936 (draft, stacked on #4608) switches "Used by" links to the
built-in marketplace pages, falling back to GitHub for built-ins #4608
leaves unlisted.

- Validate `component:plugin-guide:<slide>` ids at parse time. Right now
a typo opens the first slide and the "Open the full Guide" link carries
the bad id (Codex review).
- Add `packages/shared-ui/package.json`, `plugins/*/package.json`,
`plugins/*/icons/*.svg` and `plugins/*/*.svg` to the
`@bb/web#build`/`#typecheck` inputs, and the same plus
`assets/bb-logo.svg` and `pnpm-lock.yaml` to the deploy-web paths. The
brand-icon glob reads every plugin manifest and SVG, so a manifest or
icon change alone neither rebuilds nor redeploys the site. (Slop Cop
architecture, code quality)
- Scan shared-ui's `motion.ts` with Tailwind `@source`. The switch's
transition classes currently survive only because the web's `motion.ts`
has the same string.
- Document, or test, the `@/` modules the web supplies to the Guide
(icon, switch, lib/utils). Today a new `@/` import in the Guide fails
the web build with an error that points at web paths.

- Stop the Guide stylesheet from overriding landing tokens on
`/plugin-guide` and posts that embed it: `theme.css` loads after
`landing.css` and replaces `--font-sans` (drops the size-matched Inter
fallback), `--font-mono` (Fira Code, never loaded on the web),
`--border`, `--state-hover` and `--surface-recessed`. Scope the app
values to the Guide or re-assert landing's after the import. (Slop Cop
architecture, code quality)
- Size the web `PhoneFixture` against
`document.documentElement.clientHeight` instead of `window.innerHeight`,
so collapsing mobile browser toolbars don't rescale the phone mock and
shift the page while scrolling. (Slop Cop performance)
- Build the web "Copy for agent" context from
`pluginSurfaceAgentContext` instead of copied lines, with a web test.
(Slop Cop architecture)
- Test that every theme token the Guide uses is defined in the web
`theme.css`, and that every "Used by" display name resolves to exactly
one plugin manifest. (Slop Cop architecture, code quality)
- Add `resolve.dedupe: ["react", "react-dom"]` to the web Vite config,
and move the Guide's `@source` lines from the shared `theme.css` into
`plugin-guide.css`. (Slop Cop architecture)

BB-Thread: [Public Plugin Guide on
getbb.app](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_ptdzpsxqum)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator

Superseded by #4938, which carries this forward on current main and is now merged.

@SawyerHood SawyerHood closed this Oct 5, 2026
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