Files
db9cb78a86 feat(plugin): enforce declared LangBot compatibility on install (LANG-695) (#3165)
* feat(plugin): enforce declared LangBot compatibility on install

Co-authored-by: multica-agent <github@multica.ai>

* test(marketplace): route package downloads with version queries

Co-authored-by: multica-agent <github@multica.ai>

* test(plugin): verify compatibility fields across workspace APIs

Co-authored-by: multica-agent <github@multica.ai>

* fix(plugin): clarify compatibility validation and install errors

Co-authored-by: multica-agent <github@multica.ai>

* feat(web): plugin LangBot version compatibility in WebUI

- Send langbot_version on every Space marketplace plugin request and
  install/offer compatible_version (falls back to latest_version on
  older Space) in the market, Runner and Knowledge Engine pickers.
- Update hints (installed list, sidebar, detail) compare against
  compatible_version, so an update this Core cannot install is never
  offered.
- Space one-click install links resolve a compatible version: keep a
  compatible requested version, switch to compatible_version with a
  notice, or block when no release is compatible.
- Local upload preview shows the declared range and requires an
  explicit acknowledgement before "Install anyway" sends
  allow_incompatible=true.
- GitHub installs rejected with plugin_incompatible_langbot_version
  show the same confirmation in the task dialog and resubmit with the
  flag.
- Installed plugin cards and detail warn when the declared range
  excludes this Core; plugins keep running.

Refs LANG-697

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(web): tidy installed plugin cards and incompatible install dialog

- Installed plugin cards drop the "undeclared permissions" badge and
  show pending permission confirmation as a compact shield indicator
  in the card's top-right slot instead of stacked badges.
- The incompatible GitHub install dialog puts Close and Install anyway
  in a single action row.

Refs LANG-697

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(web): let marketplace detail mocks accept langbot_version query

Marketplace detail requests now carry ?langbot_version=, so exact-path
route globs in the wizard and pipeline-migration smoke specs no longer
matched and the install flows stalled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(web): update plugin-permissions spec for compact card shield

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:20:50 +08:00
..