refactor(tools): route file operations through scoped execution

This commit is contained in:
Xubin Ren committed 2026-11-14 22:09:21 +08:00
1 parent c539da9269
commit d2e03d23a0
16 files changed
+721 -513

No files matched your search

+6
View File
@@ -119,6 +119,12 @@ IMPORT_RULES = (
("nanobot.execution",),
(*_ADAPTERS, "nanobot.agent", "nanobot.session"),
),
ImportRule(
"file-tool-execution",
("nanobot.agent.tools.filesystem", "nanobot.agent.tools.apply_patch",
"nanobot.agent.tools.search", "nanobot.utils.file_edit_events"),
("nanobot.security", "nanobot.agent.tools.path_utils", "os", "shutil", "glob"),
),
ImportRule(
"websocket-transport",
("nanobot.channels.websocket.runtime",),