Repository navigation
Add Playgrounds - #405
Merged
brsbl merged 28 commits intoOct 12, 2026
Merged
Add Playgrounds#405
Conversation
Vendor @get-bb/plugin-sdk 0.6.37 from the npm registry and bundle packages/plugin-build from get-bb/bb 4c87fdec7b (the commit that published SDK 0.6.37, bb-app 0.46.0) as bb plugin build 0.46.0. Rebuild the tracked plugin artifacts, regenerate the lockfile, and run the persisted-scaffold compatibility job against bb 0.46.0. Bump the marketplace plugins whose release bundles change with the new builder, since published version tags never move: Ambient 0.1.13, Context Katamari 0.1.6, Thread Organizer 0.1.15. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports Playgrounds from get-bb/bb #5293/#5314 as a regular plugin (id playgrounds): native and sandboxed HTML playgrounds with shared live state, agent read/drive commands, a strict frame CSP, copy-on-fork with content stored once, and side chats sharing their thread's playground. Adds a private library: Save to library under any playground keeps it with its inputs; the Playgrounds page reopens, renames, and removes saved playgrounds; publish --saved and an @-mention provider bring one back into a thread. Nothing is shared between users. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit c9932ff.
The repo-wide SDK 0.6.37 upgrade (reverted above) broke the types of 13 plugins that use composer APIs SDK 0.6 no longer exports. Keep every other plugin on the shared SDK 0.5.9 and bb plugin build 0.43.4, and let a plugin pin its own SDK: vendor/get-bb-plugin-sdk-<version>.tgz plus vendor/sdk-provenance.json. check-repository verifies the pinned archive's digest and the plugin's SDK floor against its own pin, and artifact validation checks the floor the same way. Playgrounds gets its frame URL prefix from the server (bb.pluginId) instead of experimental_usePluginId, which the shared builder's runtime shim does not export, and needs bb 0.46 or newer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
SDK 0.6.37 needs zod 4.6, which npm hoisted over the repository's zod 4.4.3 and changed other plugins' committed bundles. Nest zod 4.6.5 under Playgrounds so every other plugin keeps building identically. Include docs/ in the package files so the catalog screenshots ship. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 10, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Playgrounds stands on its own; the Anatomy authoring skill, drawing kit, and explainers return in the next layer of the stack. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Playgrounds stands on its own; Save to library, the Playgrounds page, publish --saved, the saved-playground mention, and their tests and docs return in the next layer of the stack. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The card design guidelines move into the authoring-skills layer, where they join Anatomy as one authoring system. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Input saves wait up to 300 ms (plus 100 ms for HTML frames), so reloading right after an edit dropped it. On pagehide, flush the frame's batched state and send any pending save as a keepalive request to the plugin's RPC route. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…its wrapping Cards saved before the rename call window.answer and use --ia-* tokens and .ia-* classes. The frame now aliases window.answer to window.playground and, when a card names the old kit, includes the same kit under those names. Native number fields no longer break a unit such as GB across two lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
marked this pull request as ready for review
October 12, 2026 21:32
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.
What was wrong
Playgrounds (formerly Interactive Answers) was being added to bb as a bundled plugin (get-bb/bb #5293, #5314). It won't ship with bb; it belongs in this repo as a regular plugin people install themselves.
What changed
Adds
plugins/playgrounds(plugin idplaygrounds), with everything from #5293/#5314 except bb-core registration:state/watch/actions/do, and script output is wrapped as untrusted data.watch.playground, CLIbb playgrounds, directive::playground{id}, skillplaygrounds.vendor/, using the mechanism from Let a plugin pin its own plugin SDK #415. zod 4.6.5 is nested under the plugin, so other plugins build identically. Requires bb 0.46 or newer.bb.pluginId), because the shared builder doesn't exportexperimental_usePluginId.window.answerand use--ia-*tokens and.ia-*classes. The frame aliaseswindow.answerand serves the same kit under the old names when a card uses them. The original Pocket synth renders unchanged.GBno longer break across two lines.bb plugin install git:https://github.com/brsbl/bb-plugins.git@plugin/playgrounds --yes. The README tells users of the old Interactive Answers copy to uninstall it first.The private library and the Anatomy authoring skill are later layers of this stack.
How you verified
7bc8d6aa7(dev app, Codex 6-Astra Medium, each thread in a clean workspace):do; tic-tac-toe where the agent answered my move withdo play; a synth the agent played after I enabled sound.d11ab1dc7found no P0 or P1.Screenshot
New plugin, so there is no before state.
Follow-ups (P2, not in this PR)
zod ^4.6.5so the nested copy can't be re-hoisted.BB-Thread: Interactive Answers as a built-in plugin
🤖 Generated with Claude Code