mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-05 07:10:44 +00:00
Add full support for loading web UI extensions from plugins: - Frontend: new extensions loader (js/extensions.js) that loads and caches JS and HTML extensions, calls JS hooks, imports HTML as <x-component> tags, normalizes paths, and replaces the old plugins.js auto-inject logic. - Messages: make setMessages async, introduce extension hooks (set_messages_before_loop / after_loop) and integrate JS extension calls; adjust Scroller usage accordingly. - Components: fix x-component path handling in several templates and components import logic. - Backend: add filters to /api/load_webui_extensions and pass them to plugin helper; update helpers to look for plugin extensions under extensions/python instead of backend. - Plugins helper: extend get_webui_extensions to accept file glob filters, dedupe matches, return relative paths, and improve error logging. - Project config: include plugins and usr/plugins JS files in jsconfig.json. - Add a small test extension file and move several plugin extension files from backend/ to python/ directories. - Minor: reset error_retries earlier in agent message loop to avoid stale retry counts. These changes enable a flexible plugin extension system for both JS and HTML assets, improve caching and path normalization, and wire up backend APIs and helpers to support the new structure. |
||
|---|---|---|
| .. | ||
| agents.py | ||
| api_files_get.py | ||
| api_log_get.py | ||
| api_message.py | ||
| api_reset_chat.py | ||
| api_terminate_chat.py | ||
| backup_create.py | ||
| backup_get_defaults.py | ||
| backup_inspect.py | ||
| backup_preview_grouped.py | ||
| backup_restore.py | ||
| backup_restore_preview.py | ||
| backup_test.py | ||
| banners.py | ||
| chat_create.py | ||
| chat_export.py | ||
| chat_files_path_get.py | ||
| chat_load.py | ||
| chat_remove.py | ||
| chat_reset.py | ||
| csrf_token.py | ||
| ctx_window_get.py | ||
| delete_work_dir_file.py | ||
| download_work_dir_file.py | ||
| edit_work_dir_file.py | ||
| file_info.py | ||
| get_work_dir_files.py | ||
| health.py | ||
| history_get.py | ||
| image_get.py | ||
| load_webui_extensions.py | ||
| logout.py | ||
| mcp_server_get_detail.py | ||
| mcp_server_get_log.py | ||
| mcp_servers_apply.py | ||
| mcp_servers_status.py | ||
| message.py | ||
| message_async.py | ||
| message_queue_add.py | ||
| message_queue_remove.py | ||
| message_queue_send.py | ||
| notification_create.py | ||
| notifications_clear.py | ||
| notifications_history.py | ||
| notifications_mark_read.py | ||
| nudge.py | ||
| pause.py | ||
| poll.py | ||
| projects.py | ||
| rename_work_dir_file.py | ||
| restart.py | ||
| rfc.py | ||
| scheduler_task_create.py | ||
| scheduler_task_delete.py | ||
| scheduler_task_run.py | ||
| scheduler_task_update.py | ||
| scheduler_tasks_list.py | ||
| scheduler_tick.py | ||
| settings_get.py | ||
| settings_set.py | ||
| settings_workdir_file_structure.py | ||
| skills.py | ||
| skills_import.py | ||
| skills_import_preview.py | ||
| subagents.py | ||
| synthesize.py | ||
| transcribe.py | ||
| tunnel.py | ||
| tunnel_proxy.py | ||
| upload.py | ||
| upload_work_dir_files.py | ||