mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-22 00:00:50 +00:00
Adds allowed_dirs config field to BuiltinToolConfig. ReadFileTool now rejects reads outside the configured base directories after canonicalize(), blocking both path traversal and symlink attacks. Logs a warning when allowed_dirs is empty. Threads config through register_all so constructors receive per-tool settings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>