Files
agent-zero/plugins/_document_query/hooks.py
T
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00

22 lines
551 B
Python

"""Dependencies are installed only when the sandbox is first used."""
def install():
return True
def ensure_dependencies(raise_on_error=True):
return True
def disable():
from plugins._document_query.helpers.sandbox import worker
worker.stop()
def uninstall():
from plugins._document_query.helpers.sandbox import worker
worker.stop()
from helpers.sandbox import get_manager
manager = get_manager()
if (manager.config.instances_dir / worker.name / 'metadata.json').exists():
manager.delete(worker.name)