 clown145andSXP-Simon
|
00863ff979
|
feat: 模板预览路由化并增强 Telegram 按钮交互稳定性 (#83)
* feat: 路由化模板预览并完善Telegram交互回退
* fix: 忽略模板预览文档回退的重复编辑异常
* fix: 在回调阶段主动清理并校验模板预览会话过期
* fix: 处理Telegram回调注册在平台热替换场景的重绑与清理
* fix(set_report_template): 删除冗余的检查
---------
Co-authored-by: SXP-Simon <sxp20061207@163.com>
|
2026-02-12 19:02:46 +08:00 |
|
clown145
|
727da8025d
|
fix: 清理TelegramAdapter无用变量并通过lint
|
2026-02-12 15:41:07 +08:00 |
|
SXP-Simon
|
b4eec978fe
|
refactor(Telegram): 重构 Telegram 逻辑并提取消息处理与注册表服务
- 提取消息处理服务及 Telegram 注册表,显著精简主插件逻辑。
- Telegram 群组获取回退逻辑下沉至适配器,移除调度中心硬编码。
- 优化依赖注入机制,使适配器层级可访问插件 KV 存储。
- 修正消息内容定义兼容性并清理冗余代码。
|
2026-02-12 15:41:07 +08:00 |
|
SXP-Simon
|
ced38e6a9e
|
fix: 修复了导致增量分析报告发送失败的几个核心问题:
修复报告分发器初始化错误:
在 AutoScheduler 中,初始化 ReportDispatcher 时漏传了 report_generator,导致在尝试生成报告(图片或文本)时出现 'NoneType' object has no attribute 'generate_image_report' 错误。
已更新 AutoScheduler 的构造函数并正确传递 report_generator。
修复 LLM 分析器在增量模式下的数据结构错误:UserTitleAnalyzer 报错:在增量模式下,用户活动数据被简化存储,导致 UserTitleAnalyzer 找不到 'hours' 键(Error: 'hours')。
补全数据维度:更新了 AnalysisApplicationService 的增量数据转换逻辑,保留了完整的每小时活跃分布 (hours) 和回复数 (reply_count)。
统一字段名:增量模式下使用了 nickname 字段以匹配分析器的预期(之前被错误转为了 name)。
增强容错性:优化了 UserTitleAnalyzer 的逻辑,现在它能安全地处理 hours 缺失或旧版本数据 schema,不再会因为找不到键而崩溃。
修复增量数据合并逻辑:
更新了 IncrementalMergeService,现在它能正确合并多个批次中的每小时发言统计和回复数统计,确保最终生成的报告数据准确。
|
2026-02-11 12:54:02 +08:00 |
|
SXP-Simon
|
472c78e622
|
feat(话题分析): 用户头像引用展示
- TopicAnalyzer: Prompt中包含 [user_id],引导LLM使用ID引用用户
- ReportGenerator: 解析话题详情中的 [uid] 并替换为内联头像HTML
- Templates: 更新所有主题的 topic_item.html 以支持富文本详情展示
- _conf_schema.json: 更新默认 Prompt,指导 LLM 使用 [用户ID] 引用用户
- ReportGenerator: 实现胶囊样式渲染 (头像+昵称),提升视觉体验
|
2026-02-10 20:57:51 +08:00 |
|
SXP-Simon
|
4e0b8fe24b
|
fix(增量分析): 增量分析现已支持按配置开关控制话题/金句分析
|
2026-02-10 19:58:49 +08:00 |
|
SXP-Simon
|
83b82de2bb
|
refactor(增量分析): 从按天存储改为滑动窗口批次架构
- IncrementalBatch: 独立批次实体,每次增量分析产生一个,按批次独立存储到KV
- IncrementalState: 聚合视图,不再持久化,报告时由merge_batches合并产生
- IncrementalStore: 批次索引+数据KV持久化,支持按时间窗口查询和过期清理
- IncrementalMergeService: 新增merge_batches方法,负责批次合并和话题/金句去重
- AnalysisApplicationService: 增量分析存独立批次,最终报告按窗口查询合并
- AutoScheduler: 报告发送后清理2×窗口外的过期批次
- main.py: /增量状态命令改为滑动窗口查询展示
- 消除天然日期隔离问题,24h图表展示完整数据
|
2026-02-10 18:15:46 +08:00 |
|
SXP-Simon
|
bddaf4fef8
|
feat(增量分析): 扩展AnalysisApplicationService支持增量分析和最终报告生成
|
2026-02-10 15:06:40 +08:00 |
|
SXP-Simon
|
f8412559ef
|
fix: 分析器和消息处理
|
2026-02-09 14:15:43 +08:00 |
|
SXP-Simon
|
e1ad6c9fc9
|
fix: 正确的导入各重构模块
|
2026-02-09 13:08:23 +08:00 |
|
SXP-Simon
|
2005f0633f
|
refactor(DDD): 整理架构
|
2026-02-09 12:47:43 +08:00 |
|
SXP-Simon
|
80d74577e7
|
fix(pre-commit): style
|
2026-02-09 01:39:13 +08:00 |
|
SXP-Simon
|
e73fd99e26
|
feat(logger)
|
2026-02-08 23:28:56 +08:00 |
|
SXP-Simon
|
25a6a261b5
|
Refactor: Cleanup commented out code in analysis_orchestrator.py
|
2026-02-08 21:54:34 +08:00 |
|
SXP-Simon
|
ec29304069
|
Refactor: Translate comments and logs to Chinese in application layer
|
2026-02-08 21:53:49 +08:00 |
|
SXP-Simon
|
6f7b20d962
|
fix: 正确注册命令
|
2026-02-08 19:39:50 +08:00 |
|
SXP-Simon
|
0d34a9df3a
|
feat: 添加发送者字段填充,确保向后兼容旧分析器
|
2026-02-08 19:04:51 +08:00 |
|
SXP-Simon
|
e8833be891
|
refactor: translate comments to Chinese and fix hardcoded OneBot format
|
2026-02-08 16:23:32 +08:00 |
|
SXP-Simon
|
39e5d6169d
|
chore: 注释
|
2026-02-08 15:06:33 +08:00 |
|
SXP-Simon
|
7ef58f9d53
|
feat: complete DDD Phase 2 - add domain services, infrastructure layers, and shared components
- domain/value_objects: Add Topic, UserTitle, GoldenQuote, Statistics value objects
- domain/services: Add StatisticsCalculator, ReportGenerator domain services
- domain/exceptions: Add comprehensive domain exception hierarchy
- infrastructure/persistence: Add HistoryRepository for data storage
- infrastructure/llm: Add LLMClient wrapper for AstrBot providers
- infrastructure/config: Add ConfigManager for centralized configuration
- infrastructure/resilience: Add CircuitBreaker, RateLimiter, retry utilities
- application: Add SchedulingService, ReportingService application services
- shared: Add constants and TraceContext for request tracing
All imports verified in Docker container.
|
2026-02-08 14:39:19 +08:00 |
|
SXP-Simon
|
c1d3bf5ece
|
feat: add DDD architecture layers (domain, infrastructure, application)
- Domain layer: UnifiedMessage, PlatformCapabilities, repository interfaces
- Infrastructure layer: PlatformAdapter base, OneBotAdapter, factory
- Application layer: AnalysisOrchestrator, MessageConverter
This provides cross-platform abstraction for group analysis plugin.
|
2026-02-08 14:13:09 +08:00 |
|