run_command 是否走沙箱只看执行环境,而 read_file/write_file/edit_file 是 进程内文件操作不走 OS 沙箱,唯一防线是 FileManager._ensure_host_access 的授权路径检查,但它不知道执行环境,导致完全访问权限(direct)下仍按 授权列表拦截。现 FileManager 同步 host_execution_mode,direct 时与 run_command 语义对齐直接放行,sandbox 模式检查保持不变。 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| crud_mixin.py | ||
| list_mixin.py | ||
| patch_mixin.py | ||
| path_mixin.py | ||
| read_mixin.py | ||
| replace_mixin.py | ||