agent-zero/plugins/_commands/tests/conftest.py
Alessandro 9c9a4e00ca Add built-in slash commands plugin
Introduce the _commands plugin with command storage, picker UI, bundled canonical command pack, and legacy migration into the built-in namespace.

Polish the Web UI picker behavior, hide WebUI-only-inappropriate commands from the popover, make /models always open model configuration, and add regression coverage for command CRUD, plugin discovery, migration, canonical names, hidden commands, and picker flows.
2026-07-09 16:00:30 +02:00

11 lines
400 B
Python

# tests/conftest.py
import sys
from pathlib import Path
# Ensure A0 framework root is first in sys.path so that
# `from helpers import ...` resolves to A0's helpers/, not
# the Commands plugin's local helpers/ directory.
a0_root = str(Path(__file__).resolve().parents[3]) # tests/ → _commands → plugins → a0
while a0_root in sys.path:
sys.path.remove(a0_root)
sys.path.insert(0, a0_root)