wrolpi/modules/ai/test
Roland 9ca26af455
ai: list_files tool — browse the media directory tree
New read-only GET /api/ai/files/list lists one directory of the media
directory (directories first, then files with size and guessed
mimetype), paged at 100 entries.  Every entry carries its relative
path for list_files or read_file.  Same guards as read_file via a
shared resolver: no escaping the media directory, and the config
directory is refused and hidden from the root listing.

The agent loop picks the operation up from the spec; library mode
allowlists it.  wrolpi_mcp gains the matching list_files proxy tool.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-12 15:19:49 -06:00
..
__init__.py ai: add the /api/ai blueprint, the read-only LLM tool catalog 2026-09-12 15:19:47 -06:00
test_agent.py ai: the /api/chat agent loop — SSE streaming, modes, tool execution 2026-09-12 15:19:47 -06:00
test_api.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
test_chat_api.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
test_config_catalog.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
test_context.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
test_help_docs.py ai: live-chat fixes from first real-model run 2026-09-12 15:19:48 -06:00
test_lib.py ai: ground the librarian — collection links, retry hints, no source URLs 2026-09-12 15:19:48 -06:00
test_mcp_parity.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
test_service.py ai: package llama-server for all three deployments, with idle unload 2026-09-12 15:19:47 -06:00
test_system_api.py ai: system endpoints — aggregate status, services, logs, disks 2026-09-12 15:19:47 -06:00