Skip to content

feat(plugins): support built-in composer mentions - #2684

Open
smsunarto wants to merge 2 commits into
get-bb:mainfrom
smsunarto:claude/composer-mentions-cubic-fixes
Open

feat(plugins): support built-in composer mentions#2684
smsunarto wants to merge 2 commits into
get-bb:mainfrom
smsunarto:claude/composer-mentions-cubic-fixes

Conversation

@smsunarto

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

The public plugin composer API only accepted provider-owned mentions. Plugins could not insert BB-owned thread, project, section, or path mentions while letting BB resolve canonical labels and selected-environment targets.

What changed

  • Added typed BB-owned composer mention inputs and host-side canonical resolution.
  • Added selected-environment path validation and thread-section lookup support.
  • Updated the plugin API audit map and authoring docs.
  • Hardened concurrent insertion, invalid mention rejection, and async error reporting.
  • No host-daemon protocol change.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/server-contract --filter=@bb/sdk --filter=@get-bb/plugin-sdk --filter=@bb/app --filter=@bb/server (9 tasks passed)
  • Focused app composer tests: 53 passed.
  • Focused server, SDK, and plugin SDK tests: 79, 50, and 48 passed.

AGENT GENERATED

fix(plugins): log unawaited insertMention failures (cubic iteration 4)

fix(plugins): reject invalid provider mentions and drop forbidden comments (cubic iteration 3)

fix(plugins): guard mention insertion race and unknown kinds (cubic iteration 2)
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