Files
Fu-Jie_openwebui-extensions/plugins/tools/batch-install-plugins/v1.1.0_CN.md

37 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[![](https://img.shields.io/badge/OpenWebUI%20Community-Get%20Plugin-blue?style=for-the-badge)](https://openwebui.com/t/fujie/batch_install_plugins)
## 概述
Batch Install Plugins from GitHub v1.1.0 将原本的安装确认步骤升级为基于 OpenWebUI `execute` 事件的交互式插件选择器。现在,用户可以先在浏览器对话框中查看过滤后的插件列表,取消勾选不想安装的项,然后只安装最终选中的插件子集。
**[📖 README](https://github.com/Fu-Jie/openwebui-extensions/blob/main/plugins/tools/batch-install-plugins/README_CN.md)**
## 亮点
- **交互式选择对话框**:不再只使用基础 confirmation 事件,而是打开带类型筛选、关键词搜索、描述信息和复选框的浏览器对话框
- **多仓库输入**:一次请求支持多个 `owner/repo`,并在对话框中按仓库分组展示
- **选择性安装**:安装循环只会处理用户最终保留勾选的插件
- **仓库上下文**:对话框中会显示当前仓库,并且只展示真正有用的排除信息
- **本地化 UI**:对话框控件已为所有支持语言提供本地化文本
- **工作流不回退**:原有的插件发现、过滤、自动更新和连接回退逻辑保持不变
## 技术说明
- 使用 `__event_call__({"type": "execute"})` 替换安装确认步骤
- 新增仓库解析和多仓库发现聚合流程,再进入过滤与安装阶段
- 返回包含 `confirmed``selected_ids` 的结构化结果
- 将用户交互超时时间延长到 15 分钟900 秒)
- 安装顺序仍与用户传入的仓库顺序和过滤后的候选列表保持一致
## 验证
- 已通过 `python -m py_compile plugins/tools/batch-install-plugins/batch_install_plugins.py` 进行 Python 语法校验
- README 与镜像文档已同步为新的交互式选择流程
## 升级说明
- 不需要新增 Valves
- 现有提示词仍可继续使用
- 安装开始前会新增一个插件选择器步骤
- 现在单次请求就可以把多个仓库合并到同一个选择对话框