feat(plugins): per-agent tool toggles, plugin reload, UI assets, and tool catalog - #387
Merged
Merged
Conversation
…tool catalog
- Add server-wide plugin enable/disable (PATCH /plugins/{id}) and a
reload endpoint to pick up CLI installs without a full restart.
- Serve read-only plugin UI assets with traversal checks.
- Persist per-agent plugin tool enable flags and hot-sync the harness
denylist so disables take effect on the next turn (no full reload).
- Add a tool catalog and plugin market UI plus a tool settings API.
- Ship demo plugins: ui-card, server-status, bilibili-anime.
- Update i18n bundles and API docs.
Co-Authored-By: CodeBuddy <noreply@codebuddy.ai>
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.
Summary
PATCH /api/plugins/{id}; disabled plugins are unloaded from the registry so their tools/skills/hooks are unavailable to all agents.POST /api/plugins/reloadto pick up CLIoctop plugin installwhileoctop runis already up, without a full restart.GET /api/plugins/{id}/ui/{file_path}(authenticated, traversal-checked).config.pluginswith harness denylist hot-sync, so a tool disable takes effect on the next model turn without a full agent reload./api/agents/{id}/tools).ui-card,server-status,bilibili-anime.docs/api.md) refresh.Test plan
tests/unit/agents/test_tool_catalog.py,tests/unit/agents/test_plugin_tool_defaults.py, expandedtest_plugin_manager.py,test_plugins.py,test_agent_manager.py.tests/integration/test_plugin_tool_disable.py,tests/integration/test_tool_settings_api.py.make all(format + lint + mypy + dashboard build) anduv run pytest(full suite).🤖 Generated with CodeBuddy