Skip to content

Fix plugin API audit and Plugin Guide drift found in the marketplace audit - #7207

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-plugin-api-audit-doc-drift-thr_4bcek8vaf5
Nov 6, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-plugin-api-audit-doc-drift-thr_4bcek8vaf5

Conversation

@ymichael

@ymichael ymichael commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The 2026-11-06 marketplace audit (§3.3) found three drifts. I checked each against the code and the 423 cloned marketplace repos:

  • experimental_ImageLightbox is a public @get-bb/plugin-sdk/app export, shipped in Ship bb's composer as the bundled Composer plugin #6122. Neither doc named it. The composer entry mentioned "the image lightbox" only in passing, and surfaces.ts did not list it.
  • experimental_useSidebarThreads was described as having no consumers. It appears in the sources of 79 repos (bb-office among them), and 29 of those replace the thread list.
  • experimental_newThreadPanelAction was "deferred until an external plugin adopts it". 16 repos register it, taskboard among them. The entry also still compared the slot to the retired threadPanelAction.

A sweep of every public entry point's bundled types turned up more of the same:

  • Six more stale consumer claims: NewThreadComposer, useCodeTheme, usePluginId, useQuestionFormHost, VoiceInputTextarea, and host signals/watches. Worktree and Project checkout use host signals in-repo.
  • A gap that was already fixed but still listed as open: the sidebar draft indicator, closed by useSidebarThreadDraft in Give plugin thread lists the per-row client state bb's rows read #4025.
  • About 35 prefixed SDK members not named in api_to_audit.md, and about 60 prefixed value exports missing from surfaces.ts.

What changed

docs/api_to_audit.md

  • New experimental_ImageLightbox entry: behavior, core callers, outside callers and stabilization items.
  • The composer entry now names each of its host components.
  • Updated consumer counts in the nine entries above. The newThreadPanelAction entry now says item 5 can proceed and compares the slot against experimental_tab. The useSidebarThreads entry marks item 5 as decided.
  • Named the remaining prefixed members:
    • the provider-bridge testing kit
    • the native-roots Zod schemas
    • ExperimentalHostRpcContext.experimental_paths / emitSignal / watch
    • test-harness members: RPC invalidation, renderSlot's experimental_rpcContract and experimental_fixedTabTarget, and the internal tunnel fakes

plugins/plugin-api-docs/src/surfaces.ts

  • apiSymbols additions:
    • the composer and host-component exports, including the lightbox
    • the provider-bridge toolkit, presentation builders and testing kit
    • experimental_makePanelController and the unprefixed testing fixtures
    • PLUGIN_CLI_OUTPUT_MAX_BYTES
    • PluginAppSlots.experimental_newThreadPanelAction

Left out on purpose:

  • The ~150 unprefixed provider-bridge wire schemas. The provider-bridge authoring entry covers that subpath.
  • definePluginApp, the entry point every surface uses.

No SDK source, wire or CLI changes.

How you verified

  • Rebuilt the bundled types (turbo run build:types --filter=@get-bb/plugin-sdk) and walked every non-internal entry point's exports with the TypeScript checker. Every experimental_/internal_DO_NOT_USE_ identifier in the public declarations now appears in api_to_audit.md. Every prefixed value export, and every root/app/testing value export except definePluginApp, now appears in surfaces.ts.
  • Consumer counts come from grep -rlw over the audit's marketplace clones. The search excluded node_modules, dist, vendored tooling, .d.ts, tests and Markdown. I spot-checked the hits for real call sites, and analyzer string tables don't count as registrations.
  • turbo run test typecheck --filter=bb-plugin-plugin-api-docs passed (75 tests). The SDK's provider-bridge-scheduled-removals test, which reads api_to_audit.md, passed. oxfmt --check is clean on both files.

AGENT GENERATED

🤖 Generated with Claude Code

…audit

- Add an api_to_audit.md entry for experimental_ImageLightbox (shipped in
  #6122) and list it, with the other composer host components, in the
  Plugin Guide surfaces.
- Replace stale "no consumers" claims with counts from the 2026-11-06
  marketplace audit: useSidebarThreads (79 repos), newThreadPanelAction
  (16, which unblocks item 5), NewThreadComposer, useCodeTheme,
  usePluginId, useQuestionFormHost, VoiceInputTextarea, and host
  signals/watches.
- Mark the sidebar draft-indicator gap as closed by useSidebarThreadDraft
  (#4025), and point newThreadPanelAction at experimental_tab instead of
  the retired threadPanelAction.
- Name every remaining prefixed public SDK member in api_to_audit.md and
  every prefixed value export in surfaces.ts (provider-bridge toolkit and
  testing kit, native-roots schemas, host context members, test-harness
  members).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit bdb2a18 into main Nov 6, 2026
51 checks passed
@ymichael
ymichael deleted the bb/fix-plugin-api-audit-doc-drift-thr_4bcek8vaf5 branch November 6, 2026 23:40
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.

1 participant