Files
gabrielvidalandClaude Opus 5.5 34a8e4a8eb feat(plugins): an install bridge for the plugin-catalog plugin
A sandboxed frame may now ask the host to install or uninstall a plugin of
the public catalog — never do it itself (form
plugin-catalog-and-public-plugins-repo_al2ibd):

- New operator-only capability `plugins.manage` (in the approval
  fingerprint). aiAgentPlugin.plugins.list() / .install({source}) /
  .uninstall({id}) answer only the operator, and only a plugin of theirs that
  holds it (enabled, approved); anyone else gets a refusal.
- An install source must be `<catalogRepo>#plugins/<id>`; the host validates
  it (refreshed clone), checks the folder holds that id and draws the
  confirmation — name, version, source, every capability, what an update
  replaces — before its own POST /api/plugins/install. An uninstall asks keep
  or delete data and secrets each time. A plugin can't uninstall itself.
- PLUGIN_CATALOG_REPO (plugins/catalog_repo.py, default the public mirror
  gabrielvidal/ai-agent-plugins-public.git), served as `catalogRepo` on
  GET /api/plugins to the operator only.
- Settings → Plugins (operator): All / Installed / Available gives way to
  *Browse the catalog* (the page that opens `plugin-catalog`); promoted hub
  catalog entries wear *For guests*; old ?show=available / ?tab=catalog&kind=
  links redirect to the plugin's page on that shelf; with the plugin off, a
  note offers to install it again. Guests' page unchanged.

Tests: test_plugin_catalog_bridge.py (capability, repo rule, guest kept out),
catalogBridge.test.tsx (refusals, confirm-then-install, cancel, keep/delete).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:07:05 +01:00
..