feat: 插件管理 — 导入安装 + 统计面板
新增 API: - GET /api/plugins/stats — 统计 (总计/已启用/已停用/安装失败) - POST /api/plugins/import — ZIP上传 或 Git clone 安装 - 自动 pip install -r requirements.txt (子进程隔离) - 自动加载插件 (isolated 模式, 崩溃不影响框架) - 安装失败记录到 _IMPORT_FAILS 前端: - 横版统计卡片 (总数/启用/停用/失败) - ZIP 上传按钮 + Git URL 输入 - 安装状态实时反馈 安全: - 所有端点 panel_auth 保护 - 子进程安装 (pip/git), 超时120s - 仅接受 .zip 文件 - 目录冲突检测 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -101,7 +101,7 @@ commands:
|
||||
permissions:
|
||||
- framework.command.test
|
||||
source: internal
|
||||
last_updated: 28375.06993407
|
||||
last_updated: 29119.596258526
|
||||
plugin_commands:
|
||||
example_plugin:
|
||||
echo: *id001
|
||||
|
||||
Reference in New Issue
Block a user