Repository navigation
feat(bridge): add list_skills frame and drop protocol versioning - #1071
Merged
Merged
Conversation
The opentask sidepanel needs the agent's skills to power a "/" autocomplete. Expose them over the extension bridge with a new list_skills -> skills frame: the CLI returns SkillsService.List() (already merged across project/.agents/ user/plugin/catalog with precedence), each tagged with its scope, so the panel mirrors what the TUI offers instead of re-resolving sources itself. Also removes the unused protocol_version handshake field - it was written into browser_hello_ack but never read by the extension or branched on by the CLI. New frames are additive and forward-compatible (unknown types are ignored). Relates to inference-gateway/opentask#150.
3 tasks
Contributor
|
🎉 This PR is included in version 0.174.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
Adds a
list_skills→skillsframe to the browser-extension bridge so the opentask sidepanel can offer a/skills autocomplete, and removes the unusedprotocol_versionhandshake field.Why
The sidepanel (inference-gateway/opentask#150) needs the agent's available skills to power a caret-anchored
/dropdown. The extension is MV3 and can't read the filesystem, and the CLI already discovers and merges skills across all scopes (project,.agents,user,plugin,catalog) with precedence. So the CLI is the right place to source them — the panel just renders whatList()returns, exactly what the TUI's own/autocomplete offers.Changes
extension_bridge.go: newlist_skillsinbound →sendSkillListreplies with askillsframe mappingSkillsService.List()to{name (DisplayName), description, scope}. Wired a nilableskills domain.SkillsServiceinto the bridge (guarded, likenotifier/repo).container.go: load the skills service before building the bridge.protocol_versionwas written intobrowser_hello_ackbut never read by the extension or branched on by the CLI. The new frame is additive and forward-compatible (unknown frame types are already ignored by contract), so no version bump is needed.docs/browser-extension-protocol.md: documents the Skills frame; dropsprotocol_versionand the historical version tags.list_skillsround-trip (name/scope/plugin display name) + nil-service empty case, using the counterfeiterFakeSkillsService.Verified
go build,go test ./internal/services ./internal/container,gofmt,go vet,golangci-lint(0 issues),markdownlint— all clean.Pairs with the opentask sidepanel PR (renders this over the panel's
/menu). Relates to inference-gateway/opentask#150.