feat: 扩展主题界面适配与 Agent 服务工具

This commit is contained in:
2026-09-09 21:44:21 +08:00
parent 76909f3e84
commit e5d144056c
26 changed files with 703 additions and 92 deletions
+5
View File
@@ -2,6 +2,7 @@ from dataclasses import dataclass
from app.agent import AgentRuntime, PermissionManager, PermissionPolicy, ToolRegistry
from app.agent.builtin_tools import register_builtin_tools
from app.agent.service_tools import register_service_tools
from app.contracts import ModelCapability, ProviderConfig, ProviderType
from app.config import BACKEND_DIR, get_settings
from app.extensions import PluginRuntime, SkillRuntime
@@ -71,6 +72,10 @@ def build_container() -> ApplicationContainer:
plugins = InstalledRuntime(plugins, 'plugin', settings.data_dir)
plugins.restore()
# These tools depend on the fully constructed Plugin runtime. Register them
# before loading Skills so Skill dependency checks see the complete catalog.
register_service_tools(tools, plugins)
mcp_servers = McpServerRegistry(
tools,
credentials,