Commit Graph

2199 Commits

Author SHA1 Message Date
liuwei
867f00435c feat: improve quoted message rendering in dashboard 2026-04-07 17:35:03 +08:00
liuwei
3d56b3895a harden xiaoniu defenses and directed cooldowns 2026-04-07 17:26:13 +08:00
liuwei
02bde14d52 improve xiaoniu reply chunk splitting 2026-04-07 16:48:00 +08:00
liuwei
9545664318 relax xiaoniu reply planner gating 2026-04-07 16:31:29 +08:00
liuwei
c8a7958e2b move xiaoniu runtime logs to debug 2026-04-07 16:25:34 +08:00
liuwei
96432039cc add retry for xiaoniu api requests 2026-04-07 16:17:58 +08:00
liuwei
2b6deff4ba filter invalid xiaoniu model echoes 2026-04-07 16:06:52 +08:00
liuwei
271954cfbb adjust xiaoniu runtime config 2026-04-07 16:04:33 +08:00
liuwei
58faa4322c fix xiaoniu mention gating and vector memory config 2026-04-07 16:00:31 +08:00
liuwei
fabcb92f3f use richer member memory in xiaoniu replies 2026-04-07 15:47:32 +08:00
liuwei
0ac08c45c0 tune xiaoniu address style by group 2026-04-07 15:38:52 +08:00
liuwei
a29b625bc6 refine xiaoniu natural name mentions 2026-04-07 15:37:01 +08:00
liuwei
19d2938870 improve xiaoniu recipient cues and name-prefixed replies 2026-04-07 15:32:38 +08:00
liuwei
9e95b805ec require directed questions for xiaoniu replies 2026-04-07 15:21:45 +08:00
liuwei
5ca9a8d1d9 tune xiaoniu low-frequency social interjections 2026-04-07 14:52:38 +08:00
liuwei
5a02121ace allow multi-part replies for xiaoniu qa responses 2026-04-07 14:39:41 +08:00
liuwei
42feb29a40 add dota2 match history boundary for xiaoniu 2026-04-07 14:12:48 +08:00
liuwei
daf5170008 tune xiaoniu mention reply behavior 2026-04-07 14:09:31 +08:00
liuwei
acf3177571 use latest group image for xiaoniu image followups 2026-04-07 14:00:08 +08:00
liuwei
7c12738967 add multimodal quote handling for xiaoniu bot 2026-04-07 13:51:15 +08:00
liuwei
61edbbe987 fix: simplify emoji message display in dashboard 2026-04-07 13:29:35 +08:00
liuwei
389e4db37e fix: improve dashboard action button visibility 2026-04-07 13:18:08 +08:00
liuwei
7cdda82e39 feat: add dashboard restart action and improve text button contrast 2026-04-07 13:14:13 +08:00
liuwei
4423f64272 feat: improve friend circle like state handling 2026-04-07 13:08:12 +08:00
liuwei
dd8c5b1829 feat: improve friend circle media and detail rendering 2026-04-07 13:04:19 +08:00
liuwei
2938a6b056 fix: normalize dashboard nav path matching 2026-04-07 12:56:48 +08:00
liuwei
684a22b3a6 fix: repair friend circle dashboard template 2026-04-07 12:55:34 +08:00
liuwei
e8ed0d4799 feat: add dashboard friend circle management 2026-04-07 12:50:50 +08:00
liuwei
d507cdf88d improve xiaoniu group awareness and solver suppression 2026-04-07 12:27:53 +08:00
liuwei
faa5d68eb0 increase xiaoniu prompt context window to 30 messages 2026-04-07 12:21:51 +08:00
liuwei
1996df7b99 add group-aware persona bias for xiaoniu bot 2026-04-07 12:10:47 +08:00
liuwei
d6abb1cc23 tighten xiaoniu reply triggers for direct mentions only 2026-04-07 11:50:30 +08:00
liuwei
8476149a2d tune xiaoniu reply brevity and flow thresholds 2026-04-07 11:36:02 +08:00
liuwei
d616846098 refactor ai_auto_response into xiaoniu group bot 2026-04-07 11:15:29 +08:00
liuwei
1c052a7d16 fix(message_summary): format workflow token usage 2026-04-07 10:17:20 +08:00
liuwei
e4082f6085 fix(message_summary): stop rendering failed workflow output 2026-04-07 10:02:22 +08:00
liuwei
acc1e7f20b feat(message_summary): switch to streaming workflow 2026-04-07 09:55:17 +08:00
liuwei
51fe971cda feat(ai): clean reasoning content from replies 2026-04-07 09:23:48 +08:00
liuwei
496463c442 chore: remove temp gitlinks 2026-04-07 09:11:07 +08:00
liuwei
2a0cbb4e56 feat(message_summary): default to streaming mode 2026-04-07 09:10:24 +08:00
liuwei
a9e8b71685 恢复群总结结果自动入库能力
- 重新新增群总结数据库操作类并自动建表 t_message_summary
- 在群总结插件初始化时接入总结入库数据库对象
- 定时总结成功发送后自动写入数据库,保留文本结果、图片路径和消息数量
- 失败提醒不入库,避免脏数据进入总结表
2026-04-03 11:37:42 +08:00
liuwei
16c7100958 为定时群总结提示增加自动撤回
- 为定时总结开始提示增加自动撤回能力
- 为定时总结失败提示增加自动撤回能力
- 新增统一的文本发送并登记撤回辅助方法
- 定时任务场景下自动懒初始化撤回器,避免提醒消息长期留在群里
2026-04-03 09:08:31 +08:00
liuwei
87da8e3b5c 为群总结生成增加三次重试机制
- Dify 请求失败时不再立即返回失败
- 群总结生成过程最多重试 3 次
- 增加 2 秒、4 秒递增等待,降低偶发错误影响
- 仅在三次都失败后才返回生成总结失败结果
- 补充重试次数与等待时间日志,便于排查总结异常
2026-04-03 09:04:03 +08:00
liuwei
ff421a1b4b Revert "Reapply "完善表情资产后台能力并补充群总结落库""
This reverts commit 079f363382.
2026-04-03 08:52:59 +08:00
liuwei
8206cad38d Revert "优化表情异步补处理的参数提取与下载重试"
This reverts commit 4d2e841fb3.
2026-04-03 08:52:59 +08:00
liuwei
4d2e841fb3 优化表情异步补处理的参数提取与下载重试
- 对表情 XML 先做 HTML 实体还原,避免下载地址中的 & 影响请求
- 优先使用 XML 节点提取 aeskey、md5、len 和多种下载地址,正则作为补充兜底
- 异步补处理时按 encrypturl、cdnurl、thumburl 顺序重试下载
- 所有地址失败时记录业务告警,避免无意义异常栈刷屏
2026-04-03 08:46:30 +08:00
liuwei
079f363382 Reapply "完善表情资产后台能力并补充群总结落库"
This reverts commit 57bb46bb21.
2026-04-02 17:55:21 +08:00
liuwei
57bb46bb21 Revert "完善表情资产后台能力并补充群总结落库"
This reverts commit 2a54650a6f.
2026-04-02 17:54:35 +08:00
liuwei
2a54650a6f 完善表情资产后台能力并补充群总结落库
- 新增表情资产表,支持表情文件落盘后的资产沉淀、查询与发送时间回写
- 将表情下载从消息主链路中移出,改为后台定时批处理,降低同步入库阻塞风险
- 抽取通用 CDN 下载与 base64 落盘能力,统一图片与表情文件处理方式
- 在后台通讯录聊天窗口增加表情资产面板,支持查看资产并直接选择发送表情
- 新增后台表情资产接口,支持按群过滤最近表情素材
- 优化消息列表中的表情消息展示,支持在后台直接预览表情图片
- 启动时不再同步补偿历史表情,统一交由定时任务处理,避免影响系统稳定性
- 新增群总结落库表,支持将每日总结写入数据库,便于后续知识库提取与复用
- 将定时总结结果写入数据库,保留总结文本、周期信息、消息数量和元数据
2026-04-02 17:52:17 +08:00
liuwei
a4b87f4c7a 优化成员画像工作流调用稳定性并禁止写入兜底垃圾数据
- 将 member_context 的 Dify workflow 调用响应模式切换为 streaming,提高长耗时工作流的连接稳定性
- 将成员画像工作流请求超时时间从 60 秒提升到 240 秒,适配当前群日批量提取任务的实际耗时
- 扩展 DifyClient,支持 workflow streaming 响应解析,在流式场景下尽量提取最终输出或增量文本
- 调整群日画像提取逻辑,AI 未返回成员有效结构化结果时不再写入 fallback 通用数据,而是直接跳过,等待下次任务重试
- 调整周/月周期摘要生成逻辑,AI 未返回有效结果时不再使用本地兜底拼装摘要,避免写入低质量周期画像
- 删除成员日摘要和周期摘要对应的 fallback 生成逻辑,彻底阻断这类无意义垃圾画像继续入库
- 新增跳过日志,明确标记哪些成员或周期摘要因为未提取到有效 AI 结果而未入库,便于后续诊断稳定性问题
2026-04-02 14:40:34 +08:00