feat(规划): 引入统一的规划系统并重构组件
本次提交引入了一个全新的统一规划系统,取代了独立的日程和月度计划模块。这一变更集中了配置并解耦了职责,以提高可维护性和清晰度。 核心逻辑现在被分解为专门的组件: - PlanManager: 处理日常日程和月度目标的所有数据库交互,取代了已-删除的 monthly_plan_db.py。 - ScheduleLLMGenerator: 封装了与 LLM 交互以生成日程的逻辑,将此职责从 ScheduleManager 中移除。 - MonthlyPlanManager: 现在作为核心 PlanManager 的简化接口。 这次架构性的大修通过将数据持久化和 LLM 生成逻辑从主调度逻辑中抽象出来,简化了整体设计。 重大变更: bot_config.toml 中的配置已被迁移。移除了 [schedule] 和 [monthly_plan_system] 部分。所有相关设置现在必须在新的 [planning_system] 部分下进行配置。
This commit is contained in:
@@ -443,6 +443,12 @@ MODULE_COLORS = {
|
||||
"manifest_utils": "\033[38;5;39m", # 蓝色
|
||||
"schedule_manager": "\033[38;5;27m", # 深蓝色
|
||||
"monthly_plan_manager": "\033[38;5;171m",
|
||||
"plan_manager": "\033[38;5;171m",
|
||||
"llm_generator": "\033[38;5;171m",
|
||||
"schedule_bridge": "\033[38;5;171m",
|
||||
"sleep_manager": "\033[38;5;171m",
|
||||
"official_configs": "\033[38;5;171m",
|
||||
"mmc_com_layer": "\033[38;5;67m",
|
||||
# 聊天和多媒体扩展
|
||||
"chat_voice": "\033[38;5;87m", # 浅青色
|
||||
"typo_gen": "\033[38;5;123m", # 天蓝色
|
||||
@@ -564,8 +570,14 @@ MODULE_ALIASES = {
|
||||
"dependency_config": "依赖配置",
|
||||
"dependency_manager": "依赖管理",
|
||||
"manifest_utils": "清单工具",
|
||||
"schedule_manager": "计划管理",
|
||||
"monthly_plan_manager": "月度计划",
|
||||
"schedule_manager": "规划系统-日程表管理",
|
||||
"monthly_plan_manager": "规划系统-月度计划",
|
||||
"plan_manager": "规划系统-计划管理",
|
||||
"llm_generator": "规划系统-LLM生成",
|
||||
"schedule_bridge": "计划桥接",
|
||||
"sleep_manager": "睡眠管理",
|
||||
"official_configs": "官方配置",
|
||||
"mmc_com_layer": "MMC通信层",
|
||||
# 聊天和多媒体扩展
|
||||
"chat_voice": "语音处理",
|
||||
"typo_gen": "错字生成",
|
||||
|
||||
Reference in New Issue
Block a user