mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 09:28:56 +00:00
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.
24 lines
553 B
Python
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)
|