feat(composer): plugin-contributed @ mentions in the picker (#43) - #86814
feat(composer): plugin-contributed @ mentions in the picker (#43)#86814BowmanStephen wants to merge 1 commit into
Conversation
…arch#43) The composer's @ autocomplete only knew files/URLs/git refs — bot roster names were invisible, so users had to type the exact profile handle blind. Bot Mode (Hermes-Bot-Mode issue NousResearch#43) wants roster bots offered alongside file references. New contribution surface: - composer.mentions data area + ComposerMentionProvider/Entry types (resolve(ctx) -> entries with text/display/meta/group), following the proven microActions registry pattern - useAtCompletions accepts mentionEntries and merges matches into the @ picker payload, grouped by the provider's group label - mention items are tagged metadata.mention so the mid-message trigger keeps them alongside skills (bots are legitimate inline references) - exported from @hermes/plugin-sdk Companion plugin PR registers the roster as a Bots group, excluding the active profile. Tests: 3 new (mention rides alongside paths, display-name filter, mention metadata tag). 342 composer/sdk tests pass, tsc clean.
feat(composer): plugin-contributed @ mentions in the picker (#43) No blocking issues found. A few minor observations:
|
Problem
The composer's
@autocomplete only offered files/URLs/git refs — bot roster names were invisible, so users had to type the exact profile handle blind (Hermes-Bot-Mode issue #43).Change
A new
composer.mentionscontribution surface, following the provenmicroActionsregistry pattern:ComposerMentionProvider/ComposerMentionEntry—resolve(ctx)returns entries withtext(inserted on pick),display,meta, and optionalgroup(rendered as a section header, e.g. "Bots").useAtCompletionsacceptsmentionEntriesand merges matches into the@picker payload alongsidecomplete.pathresults, grouped by the provider's label.metadata.mentionso the mid-message trigger keeps them alongside skills — a bot name is a legitimate inline reference, like a skill.@hermes/plugin-sdk.The companion Hermes-Bot-Mode PR registers the roster as a Bots group (active profile excluded).
Tests
3 new in
use-at-completions.test.ts: mention rides alongside path completions, display-name filtering, mention metadata tag. 342 composer/sdk tests pass,tsc --noEmitclean.