Skip to content

feat(bridge): add list_skills frame and drop protocol versioning - #1071

Merged
edenreich merged 4 commits into
mainfrom
feat/list-skills-bridge-frame
Aug 17, 2026
Merged

edenreich merged 4 commits into
mainfrom
feat/list-skills-bridge-frame

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

What

Adds a list_skills → skills frame to the browser-extension bridge so the opentask sidepanel can offer a / skills autocomplete, and removes the unused protocol_version handshake 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 what List() returns, exactly what the TUI's own / autocomplete offers.

Changes

  • extension_bridge.go: new list_skills inbound → sendSkillList replies with a skills frame mapping SkillsService.List() to {name (DisplayName), description, scope}. Wired a nilable skills domain.SkillsService into the bridge (guarded, like notifier/repo).
  • container.go: load the skills service before building the bridge.
  • Removed protocol versioning: protocol_version was written into browser_hello_ack but 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; drops protocol_version and the historical version tags.
  • Tests: list_skills round-trip (name/scope/plugin display name) + nil-service empty case, using the counterfeiter FakeSkillsService.

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.

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.
@edenreich edenreich moved this from Todo to QA in 2026 Aug 17, 2026
@edenreich
edenreich merged commit 5a749cc into main Aug 17, 2026
1 check passed
@edenreich
edenreich deleted the feat/list-skills-bridge-frame branch August 17, 2026 12:58
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.174.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Aug 17, 2026
@edenreich edenreich moved this from QA to Done in 2026 Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant