Add Browser Context runtime consumer - #72
Open
brsbl wants to merge 9 commits into
Open
Conversation
…ntime-consumer-thr_p9qmfkggwm # Conflicts: # README.md # package-lock.json
This was referenced Aug 19, 2026
brsbl
marked this pull request as ready for review
August 19, 2026 19:04
This was referenced Aug 19, 2026
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.
Summary
Adds Browser Context as the first consumer of bb's general Browser page-script runtime. Users can select page elements or regions, attach editable comments, stage inspectable composer mentions, and explicitly enable exact-target agent control from the Browser toolbar.
Agent control and persisted state are keyed by the complete Browser identity:
clientId + windowId + tabId + navigationEpoch. Realtime reconnects reconcile missed state without letting stale hydration overwrite newer updates. Screenshots remain preview-only; resolved mention context contains the immutable bounded DOM, React, accessibility, and geometry snapshot.Depends on get-bb/bb#1869 at
dd66e0893and get-bb/bb#1870 atc3fe8ee68. Only this plugin opts into the exact@get-bb/plugin-sdk@0.4.9and matching builder artifacts; the repository default remains unchanged for other plugins.Visual evidence
All captures use the exact core top
c3fe8ee68, the same Browser Core Test Lab fixture, and a 1280×900 desktop dev-app window. The before state has Browser Context disabled; every after state comes from the exact PR heade5628940b.Before — Browser Context disabled; no contributed Browser controls
After — plugin enabled with agent-control and selection actions in the native toolbar
After — exact-target agent control active with the scoped notification in-thread
After — inspectable captured selection with its screenshot and two comments
Validation
npm ciFrozen provenance
c3fe8ee68c5ddfe80b58e4b60bcf4da49bc1e43b@get-bb/plugin-sdk@0.4.9:69a691ae3055be3a416c36eb4588f6e286b265d7687dcd259fc2d1c13b3a91e3bb plugin build@0.39.0:4228738add52171fb1adb7ffa8768a694066cfe2a761c134d2a919640e5383f6BB-Thread-ID: thr_p9qmfkggwm