feat: add multi-repository batch install support

This commit is contained in:
fujie
2026-03-16 15:03:15 +08:00
parent 743c1503ce
commit ec225bf713
11 changed files with 278 additions and 128 deletions

View File

@@ -9,6 +9,7 @@ Batch Install Plugins from GitHub v1.1.0 upgrades the install confirmation step
## Highlights
- **Interactive Selection Dialog**: Opens a checkbox-based browser dialog with type filters, keyword search, and visible plugin descriptions
- **Multi-Repository Input**: Accepts multiple `owner/repo` values in one request and groups the dialog by repository
- **Selective Installation**: The install loop now runs only for the plugins the user keeps selected
- **Repository Context**: Displays the current repository and only shows useful exclusion information inside the dialog
- **Localized UI**: Dialog controls are localized for all supported languages
@@ -17,9 +18,10 @@ Batch Install Plugins from GitHub v1.1.0 upgrades the install confirmation step
## Technical Notes
- Replaced the install confirmation step with `__event_call__({"type": "execute"})`
- Added a repository parser plus multi-repository discovery fan-out before filtering and installation
- Returns a structured payload containing `confirmed` and `selected_ids`
- Preserves the existing 120-second timeout for user interaction
- Keeps installation ordering aligned with the filtered candidate list
- Keeps installation ordering aligned with the requested repository order and filtered candidate list
## Validation
@@ -31,3 +33,4 @@ Batch Install Plugins from GitHub v1.1.0 upgrades the install confirmation step
- No new Valves are required
- Existing prompts continue to work
- Users now get a plugin picker before installation begins
- One request can now merge multiple repositories into the same selection dialog