mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-06 10:28:53 +00:00
Add a persistent puzzle-piece button beside Show all dismissed that opens Plugin Hub Browse with Welcome selected and any previous search cleared. Preserve this requested filter through the Browse initialization reset. Match and count all plugin tags rather than only the first tag, and keep the Welcome filter visible even before matching plugins are indexed. Clip the welcome background without creating a nested scroll container so block focus and touch reordering scroll the page correctly. Validation: focused Hub and restoration tests passed, along with six welcome composer checks. Live verification covered the Welcome filter, responsive plugin panels, touch reordering, dismissal/restoration, and clean console output. Shared component and extension loaders are unchanged.
Plugin Installer
Install and update Agent Zero plugins from ZIP uploads, Git repositories, or the community Plugin Index surfaced through the Plugin Hub.
What It Does
This plugin provides the built-in installation workflow for third-party plugins. It validates plugin manifests, prevents naming conflicts, installs plugins into usr/plugins/, optionally updates Git-based plugins, and exposes a UI for browsing and installing community plugins.
Main Behavior
- ZIP install
- Accepts an uploaded archive, extracts it safely, locates
plugin.yaml, validates metadata, and moves the plugin intousr/plugins/.
- Accepts an uploaded archive, extracts it safely, locates
- Git install
- Clones a repository to a temporary directory, validates the plugin, then installs it into
usr/plugins/. - Preserves the plugin's thumbnail and downloads a fallback only when none exists. Repository-provided thumbnails update with the plugin through Git.
- Clones a repository to a temporary directory, validates the plugin, then installs it into
- Plugin update
- Updates installed Git-backed custom plugins by rebasing local commits onto upstream, then re-runs installation hooks.
- If local commits or edits conflict, restores the original checkout and shows the conflicting files in the error toast and plugin details.
- Safety checks
- Rejects archives with unsafe paths.
- Rejects missing or invalid
plugin.yamlfiles. - Rejects plugin name conflicts.
- Install hooks and refresh
- Runs the plugin install hook when present and calls
after_plugin_change(...)so the app refreshes plugin state.
- Runs the plugin install hook when present and calls
- Plugin Hub UI
- The web UI store handles browsing Plugin Index entries, showing README content, prompting about third-party plugin risk, and launching install/update actions.
Key Files
- API
api/plugin_install.pydispatches install, update, and index fetch actions.
- Installer logic
helpers/install.pycontains archive extraction, Git install, update, validation, and hook execution.
- Frontend
webui/pluginInstallStore.jsmanages the installer modal state and community index interactions.
Configuration Scope
- Settings sections: none
- Always enabled:
true
Plugin Metadata
- Name:
_plugin_installer - Title:
Plugin Installer - Description: Install plugins from ZIP files, Git repositories, or the community index.