wrolpi/modules/ai/test
Roland 9f22b09b0a
ai: wrolpi_mcp becomes a thin proxy over /api/ai
Every MCP tool is now one /api/ai call with minimal text rendering;
the formatting, link building, and truncation logic it used to carry
untested lives (tested) in modules/ai.  Tool names are unchanged for
external clients; a source-scan test guards the names and that the
proxy only reaches /api/ai.  New lean blueprint endpoints back the two
tools that had no equivalent: GET archives/{id} (detail + snapshot
history) and GET videos/{id}/comments (paged author lines).  Paged
content is read up to the old 50k-char bound.  get_inventory_items now
takes the inventory slug (inventories are config-only; the old
numeric-id endpoint no longer exists).  This also brings wrolpi_mcp
into version control (venv/ is already gitignored).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-01 20:32:57 -06:00
..
__init__.py ai: add the /api/ai blueprint, the read-only LLM tool catalog 2026-09-01 20:32:55 -06:00
test_agent.py ai: the /api/chat agent loop — SSE streaming, modes, tool execution 2026-09-01 20:32:56 -06:00
test_api.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-01 20:32:57 -06:00
test_chat_api.py ai: the /api/chat agent loop — SSE streaming, modes, tool execution 2026-09-01 20:32:56 -06:00
test_config_catalog.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-01 20:32:56 -06:00
test_help_docs.py ai: help-docs search — Help mode tools 2026-09-01 20:32:56 -06:00
test_lib.py ai: add the /api/ai blueprint, the read-only LLM tool catalog 2026-09-01 20:32:55 -06:00
test_mcp_parity.py ai: wrolpi_mcp becomes a thin proxy over /api/ai 2026-09-01 20:32:57 -06:00
test_service.py ai: package llama-server for all three deployments, with idle unload 2026-09-01 20:32:56 -06:00
test_system_api.py ai: system endpoints — aggregate status, services, logs, disks 2026-09-01 20:32:56 -06:00