mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-31 04:55:58 +00:00
Major refactor of plugin and project helper APIs and add a plugin management UI. Key changes: - Rename project meta helpers from get_project_meta_folder -> get_project_meta and update callers across many modules (projects, memory, skills_import, secrets, subagents, skills). - Overhaul python/helpers/plugins.py: introduce PluginMetadata and PluginListItem (Pydantic), new get_plugins_list/get_enhanced_plugins_list, support for reading plugin config (config.json), enable/disable logic (.enabled/.disabled), get_enabled_plugin_paths(), and helpers to find/read/save plugin assets. Plugin discovery now supports webui/main/config detection. - Use enabled-plugin-aware lookups in subagents, extension loading, and other places (plugins.get_enabled_plugin_paths / get_enhanced_plugins_list used instead of previous list_plugins/get_plugin_paths where appropriate). - Add API endpoint python/api/plugins_list.py to return JSON plugin lists. - Add frontend plugin management UI: web components webui/components/plugins/list/plugin-list.html and pluginListStore.js; wire quick-actions button to open the plugins modal. - Add new webui assets and config pages for example_agent and memory plugins; add plugins/plugin.json metadata for example_agent and memory. - Memory plugin fixes: updated calls to use get_project_meta and adjusted memory path helpers to use project meta layout. - File helper: add read_file_json to read JSON files directly. - run_ui: tightened plugin asset serving security (only serve from plugin webui or plugin extensions/webui), added unified _serve_plugin_asset helper, and load plugin API handlers using enhanced plugin list. - Small fixes: adjustments to parse_prompt/read_prompt/tool lookup to use updated subagents.get_paths signature, extension loader now uses enabled plugin paths, and web UI extensions JS updated to expect string paths. These changes centralize project meta handling, improve plugin discovery and enable/disable behavior, and add a basic plugin management UI and API. |
||
|---|---|---|
| .. | ||
| AlpineStore.js | ||
| api.js | ||
| components.js | ||
| confirmClick.js | ||
| confirmDialog.js | ||
| css.js | ||
| device.js | ||
| extensions.js | ||
| initFw.js | ||
| initializer.js | ||
| manifest.json | ||
| messages.js | ||
| modals.js | ||
| scroller.js | ||
| shortcuts.js | ||
| sleep.js | ||
| speech_browser.js | ||
| sw.js | ||
| time-utils.js | ||
| timeout.js | ||
| transformers@3.0.2.js | ||
| websocket.js | ||