Files
agent-zero/plugins/_document_query/hooks.py
T
Alessandro Frau d6d9f0507d Register Document Query from its skill
Let loaded skills declare callable schemas and bind them through plugin extensions using normal scoped skill resolution. Use the same binding for native tool declarations, Tool Access, and dispatch.

Move Document Query behind the skill registration and remove both standalone entry points. Preserve saved denials, destination permissions, and the existing indexing, worker, and streaming backend.
2026-11-24 21:49:00 +01:00

24 lines
553 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)