refactor(chat): 重构HeartFChatting为模块化架构

将原本超长的heartFC_chat.py拆分为6个功能内聚的子模块:
- hfc_context:上下文数据容器
- cycle_tracker:循环状态记录
- energy_manager:能量值独立管理
- proactive_thinker:主动思考逻辑抽离
- cycle_processor:单次循环处理器
- response_handler / normal_mode_handler:响应策略

删除冗余常量、错误样板及旧逻辑;大幅减少类体积;降低耦合度,提升可维护性。
This commit is contained in:
minecraft1024a
2025-08-21 14:27:12 +08:00
parent 43563925e8
commit 9c3b750328
9 changed files with 927 additions and 1199 deletions

View File

@@ -322,7 +322,7 @@ class ScheduleManager:
now = datetime.now().time()
# 修复:应该获取列表的第一个元素
first_item = self.today_schedule
first_item = self.today_schedule[0]
last_item = self.today_schedule[-1]
for item in [first_item, last_item]: