Plugin API
插件 API 用于插件商城、安装状态、配置与插件后端交互。不同插件能力不同,客户端应读取 manifest/能力而不是写死按钮。
核心说明
本页内容按该功能本身整理,不再使用通用占位说明。以下项目均与当前主题直接相关。
安装状态
区分未安装、安装中、已安装、更新可用、失败和需要主机操作等状态。
权限
涉及主机 Docker、挂载或系统服务的插件操作必须经过受控后端执行。
版本
API 返回的插件版本应与商城 manifest 和实际安装目录一致。
卸载
卸载需要明确是否保留配置/数据,并返回可追踪结果。
验证与排查
- 修改或执行前记录当前版本/配置,以便回退。
- 完成后同时检查 UI 状态和后端日志,不只看一个成功提示。
- 如果问题只在单个摄像头/插件出现,先做最小范围对比,避免全局改动。
Plugin API
Plugin APIs cover store metadata, install state, settings and backend interactions. Clients should discover capabilities rather than hardcode actions.
Core behavior
This page is topic-specific rather than a generic placeholder.
Install state
Distinguish not installed, installing, installed, update available and failed states.
Privileges
Host/Docker operations must be mediated by a controlled backend.
Versions
Store manifest, API state and installed version must agree.
Uninstall
Expose keep/remove config semantics and actionable results.
Verification and troubleshooting
- Record the current version/config before changes so rollback is possible.
- Verify both UI state and backend logs after the change.
- If only one camera/plugin is affected, isolate it before making global changes.
Plugin API
La API de plugins cubre tienda, instalación, ajustes y backend; el cliente debe descubrir capacidades.
Comportamiento
Esta página contiene contenido específico del tema, no un texto genérico.
Estado
Distinga no instalado, instalando, instalado, actualización y fallo.
Permisos
Operaciones host/Docker deben pasar por backend controlado.
Versiones
Manifest, API e instalación deben coincidir.
Desinstalar
Defina si conserva configuración/datos.
Verificación y diagnóstico
- Registre versión/configuración antes de cambiar para poder revertir.
- Compruebe UI y logs del backend después.
- Si afecta a una sola cámara/plugin, aíslelo antes de cambios globales.
