Add plugin entry: model-presets - #138
Merged
Merged
Conversation
Contributor
Reviewed and merged. We security-reviewed the source at the exact tag your entry resolves to, installed it from that entry into a dev build of BB 0.40, and confirmed it loads and runs. Thanks for the submission — nice work. |
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 the plugin does
Model Presets adds a "Preset" control to bb's built-in New thread composer. A preset bundles provider, model, effort (reasoning level), speed (service tier, where the provider supports it), and custom thread instructions. Applying one sets the composer's selection; the plugin's
bb.agents.configurehook appends the preset's instructions to threads started with it (only when the thread actually runs the preset's provider + model). A configurable shortcut (default Mod+Shift+L) opens the menu and1–9picks a preset. Presets are managed from the menu, the plugin's Settings section, and abb model-presetsCLI.Source
v0.1.0(commitc528e2d), entry range^0.1.0model-presets(packagebb-plugin-model-presets), enginesbb >=0.40,bbPluginSdk >=0.4.21Plugin checks
tsc -p tsconfig.jsoncleanvitest run: 7 tests pass (RPC, thread linking/instruction injection, reload persistence, CLI, shortcut validation) using@get-bb/plugin-sdk/testingbb plugin buildsucceeds; installed and exercised live against bb 0.40.0Marketplace checks
npm run buildandnpm run checkpass locallyicons/Notes for reviewers
bb.storage.kv.bb.promptbox.*) and dispatchesstorageevents, since the plugin SDK exposes no setter for the composer's model selection. This is documented in the README as an internal-contract dependency.keydownlistener for the shortcut; it only acts while the New thread composer action is mounted.