mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-05 15:31:08 +00:00
Add frontend cache and integrate with extensions
Introduce a reusable frontend cache (webui/js/cache.js) with area-based storage, glob clearing, and enable toggles. Integrate the cache into webui/js/extensions.js (add/get/clear cache usage, define JS/HTML cache area keys, make imported JS extension defaults variadic) and adjust the HTML import/loading flow and MutationObserver callback wiring. Update webui/js/messages.js to support async message handlers (typedef allowing Promise results), make getMessageHandler async and consult extensions for custom handlers, and await setMessage/setMessage handler results. Also remove an unused DockerContainerManager import from python/tools/code_execution_tool.py.
This commit is contained in:
parent
983aa7a321
commit
83d369e7a0
4 changed files with 166 additions and 28 deletions
|
|
@ -7,7 +7,6 @@ from python.helpers import files, rfc_exchange, projects, runtime, settings
|
|||
from python.helpers.print_style import PrintStyle
|
||||
from python.helpers.shell_local import LocalInteractiveSession
|
||||
from python.helpers.shell_ssh import SSHInteractiveSession
|
||||
from python.helpers.docker import DockerContainerManager
|
||||
from python.helpers.strings import truncate_text as truncate_text_string
|
||||
from python.helpers.messages import truncate_text as truncate_text_agent
|
||||
import re
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue