feat: 添加插件运行时模块的颜色映射和别名支持

This commit is contained in:
DrSmoothl
2026-03-13 01:18:55 +08:00
parent dc47fe93d8
commit a685cfd9bf

View File

@@ -52,6 +52,17 @@ MODULE_COLORS: Dict[str, Tuple[str, Optional[str], bool]] = {
"base_plugin": ("#ff5f00", None, False),
"base_command": ("#ff8700", None, False),
"component_registry": ("#ffaf00", None, False),
"plugin_runtime.integration": ("#d75f00", None, False),
"plugin_runtime.host.supervisor": ("#ff5f00", None, False),
"plugin_runtime.host.rpc_server": ("#ff8700", None, False),
"plugin_runtime.host.component_registry": ("#ffaf00", None, False),
"plugin_runtime.host.capability_service": ("#ffd700", None, False),
"plugin_runtime.host.event_dispatcher": ("#87d700", None, False),
"plugin_runtime.host.workflow_executor": ("#5fd7af", None, False),
"plugin_runtime.runner.main": ("#d787ff", None, False),
"plugin_runtime.runner.rpc_client": ("#8787ff", None, False),
"plugin_runtime.runner.manifest_validator": ("#5fafff", None, False),
"plugin_runtime.runner.plugin_loader": ("#00afaf", None, False),
"stream_api": ("#ffd700", None, False),
"config_api": ("#ffff00", None, False),
"heartflow_api": ("#afff00", None, False),
@@ -125,6 +136,17 @@ MODULE_ALIASES = {
"config": "配置",
"main": "主程序",
"chat_history_summarizer": "聊天概括器",
"plugin_runtime.integration": "IPC插件系统",
"plugin_runtime.host.supervisor": "插件监督器",
"plugin_runtime.host.rpc_server": "插件RPC服务",
"plugin_runtime.host.component_registry": "插件组件注册",
"plugin_runtime.host.capability_service": "插件能力服务",
"plugin_runtime.host.event_dispatcher": "插件事件分发",
"plugin_runtime.host.workflow_executor": "插件工作流",
"plugin_runtime.runner.main": "插件运行器",
"plugin_runtime.runner.rpc_client": "插件RPC客户端",
"plugin_runtime.runner.manifest_validator": "插件清单校验",
"plugin_runtime.runner.plugin_loader": "插件加载器",
}
RESET_COLOR = "\033[0m"