mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-10 01:18:29 +00:00
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.
11 lines
400 B
Python
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)
|