wrolpi/modules/ai
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
..
test ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
__init__.py ai: package llama-server for all three deployments, with idle unload 2026-09-12 15:19:47 -06:00
agent.py ai: the /api/chat agent loop — SSE streaming, modes, tool execution 2026-09-12 15:19:47 -06:00
api.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
catalog.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
chat.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
config.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
conftest.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-12 15:19:47 -06:00
context.py ai: ground answers in a live library map, budget the context 2026-09-12 15:19:49 -06:00
controller_client.py ai: package llama-server for all three deployments, with idle unload 2026-09-12 15:19:47 -06:00
downloader.py ai: ai.yaml config, model catalog, and the GGUF downloader 2026-09-12 15:19:47 -06:00
errors.py ai: system endpoints — aggregate status, services, logs, disks 2026-09-12 15:19:47 -06:00
help_docs.py ai: live-chat fixes from first real-model run 2026-09-12 15:19:48 -06:00
lib.py ai: ground the librarian — collection links, retry hints, no source URLs 2026-09-12 15:19:48 -06:00
modes.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
schema.py ai: list_files tool — browse the media directory tree 2026-09-12 15:19:49 -06:00
service.py ai: package llama-server for all three deployments, with idle unload 2026-09-12 15:19:47 -06:00