refactor: route agent tool settings through runtime

This commit is contained in:
jxxghp
2026-08-23 02:51:25 +08:00
parent 41ee5aacdc
commit 05d4ca79e7
7 changed files with 25 additions and 16 deletions
@@ -9,19 +9,15 @@
"root": "app"
},
"settings_imports": {
"count": 93,
"count": 89,
"files": [
"app/adapters/system/fsproxy.py",
"app/agent/skills/registry.py",
"app/agent/tools/impl/_plugin_tool_utils.py",
"app/agent/tools/impl/_terminal_session.py",
"app/agent/tools/impl/add_download_tasks.py",
"app/agent/tools/impl/create_agent_task.py",
"app/agent/tools/impl/query_agent_tasks.py",
"app/agent/tools/impl/recognize_media.py",
"app/agent/tools/impl/scrape_metadata.py",
"app/agent/tools/impl/search_web.py",
"app/agent/tools/impl/send_voice_message.py",
"app/agent/tools/impl/update_agent_task.py",
"app/cli.py",
"app/db/base.py",
+8 -6
View File
@@ -13,8 +13,8 @@
"runtime_to_db": [],
"workflow_to_db": []
},
"edge_count": 6419,
"edge_sha256": "91e14e6acb6220fccd8ac3e2df899303f4e4fe6532c92079378d4b350be4d06e",
"edge_count": 6421,
"edge_sha256": "808e0a96b5cce123d86ce90ae4538258c6cc817a6204dc06346888c4f69d344b",
"edges": [
"app -> app.runtime",
"app -> app.runtime.compat",
@@ -404,13 +404,15 @@
"app.agent.skills.registry -> app.agent",
"app.agent.skills.registry -> app.agent.skills",
"app.agent.skills.registry -> app.agent.skills.metadata",
"app.agent.skills.registry -> app.application",
"app.agent.skills.registry -> app.application.configuration",
"app.agent.skills.registry -> app.foundation",
"app.agent.skills.registry -> app.foundation.singleton",
"app.agent.skills.registry -> app.foundation.url",
"app.agent.skills.registry -> app.runtime",
"app.agent.skills.registry -> app.runtime.cache",
"app.agent.skills.registry -> app.runtime.config",
"app.agent.skills.registry -> app.runtime.log",
"app.agent.skills.registry -> app.runtime.settings",
"app.agent.tools.base -> app.agent",
"app.agent.tools.base -> app.agent.callback",
"app.agent.tools.base -> app.agent.policy",
@@ -566,7 +568,7 @@
"app.agent.tools.impl._plugin_tool_utils -> app.application.plugin.runtime",
"app.agent.tools.impl._plugin_tool_utils -> app.application.scheduling",
"app.agent.tools.impl._plugin_tool_utils -> app.runtime",
"app.agent.tools.impl._plugin_tool_utils -> app.runtime.config",
"app.agent.tools.impl._plugin_tool_utils -> app.runtime.settings",
"app.agent.tools.impl._plugin_tool_utils -> app.schemas",
"app.agent.tools.impl._plugin_tool_utils -> app.schemas.plugin",
"app.agent.tools.impl._plugin_tool_utils -> app.schemas.types",
@@ -582,8 +584,8 @@
"app.agent.tools.impl._terminal_session -> app.agent.tools.impl",
"app.agent.tools.impl._terminal_session -> app.agent.tools.impl._command_safety",
"app.agent.tools.impl._terminal_session -> app.runtime",
"app.agent.tools.impl._terminal_session -> app.runtime.config",
"app.agent.tools.impl._terminal_session -> app.runtime.log",
"app.agent.tools.impl._terminal_session -> app.runtime.settings",
"app.agent.tools.impl._torrent_search_utils -> app.agent",
"app.agent.tools.impl._torrent_search_utils -> app.agent.tools",
"app.agent.tools.impl._torrent_search_utils -> app.agent.tools.impl",
@@ -1313,8 +1315,8 @@
"app.agent.tools.impl.send_voice_message -> app.agent.tools.base",
"app.agent.tools.impl.send_voice_message -> app.agent.tools.tags",
"app.agent.tools.impl.send_voice_message -> app.runtime",
"app.agent.tools.impl.send_voice_message -> app.runtime.config",
"app.agent.tools.impl.send_voice_message -> app.runtime.log",
"app.agent.tools.impl.send_voice_message -> app.runtime.settings",
"app.agent.tools.impl.send_voice_message -> app.schemas",
"app.agent.tools.impl.send_voice_message -> app.schemas.message",
"app.agent.tools.impl.switch_persona -> app.agent",