Commit Graph

336 Commits (20c9cbad3ee4017fa504d2944f5facc71ff82bca)

Author SHA1 Message Date
cuckoo711 939f17890a refactor(database): 重构数据库初始化和字段检查逻辑
- 添加对 MySQL 数据库的支持
- 优化字段检查和添加逻辑,处理 NOT NULL 字段和默认值
- 改进错误处理和日志记录
- 调整表和字段操作的 SQL 语句以适应不同数据库类型
2025-08-07 11:22:01 +08:00
cuckoo711 b6f5831785 feat(database): 添加MySQL支持并重构数据库配置
- 新增DataBaseConfig类用于集中管理数据库配置
- 重构数据库初始化逻辑,支持SQLite和MySQL两种数据库类型
- 为数据库表添加表前缀支持,便于多实例部署
- 更新数据库模型字段类型和长度限制
- 在配置模板中添加数据库配置节
2025-08-07 10:55:48 +08:00
UnCLAS-Prommer 1e5db5d7e1
正确使用lpmm构建prompt 2025-08-03 19:52:31 +08:00
Afan 3e780c4417
把所有的深蓝色的日志都改成浅蓝色,(可能是个人差了)看起来或许会更加舒服一点......(应该会舒服一点吧,总之我感觉看起来是这样的) 2025-07-31 14:29:46 +08:00
SengokuCola 2aec68bd3d fixruff
Update heartflow_message_processor.py
2025-07-25 13:53:10 +08:00
SengokuCola a02ea61386 fix ruff 2025-07-24 05:00:30 +08:00
SengokuCola 6c91b95314 better:新增log前缀映射,优化emoji的显示,加强了emoji的识别 2025-07-24 04:54:47 +08:00
SengokuCola 6c9c94d719 better:优化一些颜色和Logger
better:优化logger
2025-07-24 04:04:03 +08:00
SengokuCola b4a92ee5d5 feat:为表达添加创建时间 2025-07-24 00:36:53 +08:00
UnCLAS-Prommer f2c901bc98 typing 2025-07-20 18:14:53 +08:00
UnCLAS-Prommer 1aa2734d62 typing fix 2025-07-17 00:10:41 +08:00
SengokuCola 5c97bcf083 feat:更好的配置文件更新,表达方式迁移到数据库 2025-07-16 18:13:02 +08:00
SengokuCola 4aff3c8005 feat:测试性的新辅助记忆系统 2025-07-16 16:11:56 +08:00
SengokuCola d67cffd953 fix ruff 2025-07-16 00:22:07 +08:00
SengokuCola a150aa7b2b feat:noreply不考虑command 2025-07-15 21:37:32 +08:00
SengokuCola 5ec0d42cde feat:添加新的message类为s4u服务,添加s4u config,添加sc和gift的解析,修复关系构建的一些问题 2025-07-15 17:04:30 +08:00
UnCLAS-Prommer 3961fb7542 fix typo, refactor memory_system 2025-07-13 10:31:18 +08:00
UnCLAS-Prommer f890722c3d Merge branch 'dev' into plugin 2025-07-13 01:28:48 +08:00
github-actions[bot] 2d39cefce0 🤖 自动格式化代码 [skip ci] 2025-07-12 16:21:28 +00:00
UnCLAS-Prommer 7ef0bfb7c8 完成所有类型注解的修复 2025-07-13 00:19:54 +08:00
SengokuCola 8fae6272bc feat:normal可以一种简洁的方式切换到focus 2025-07-12 16:12:30 +08:00
SengokuCola a0efb89d98 feat:将normal抽象为循环 2025-07-11 21:51:47 +08:00
SengokuCola 375f28242a fix:优化no——reply计算 2025-07-11 11:44:13 +08:00
SengokuCola f17f5cf46c feat:修改log,优化关系构建逻辑,节省token, 2025-07-08 02:04:31 +08:00
SengokuCola 26e14bd6b7 better:优化log显示,不显示杂乱信息 2025-07-07 20:01:03 +08:00
SengokuCola 1365099fd4 remove:冗余的sbhf代码和focus代码 2025-07-06 20:14:09 +08:00
SengokuCola 498d72384f feat:统一normal和focus的动作调整,emoji统一可选随机激活或llm激活 2025-07-06 18:36:14 +08:00
SengokuCola b3a93d16e6 fix - 优化normal_chat代码,采用和focus一致的关系构建,优化log,添加超时检查,允许normal使用llm激活 2025-07-06 17:02:36 +08:00
github-actions[bot] 324b294b5f 🤖 自动格式化代码 [skip ci] 2025-07-01 11:33:16 +00:00
SengokuCola 9b3251f8ec feat:增加了reply_to新message属性,优化prompt,切割 2025-07-01 15:22:04 +08:00
github-actions[bot] 5757fef0f5 🤖 自动格式化代码 [skip ci] 2025-06-22 09:19:09 +00:00
SengokuCola 396cb9822b Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-06-22 17:18:33 +08:00
SengokuCola ce50f59c0a fix:统计和person_info现已成为异步,巨爽 2025-06-22 17:13:43 +08:00
github-actions[bot] da69db9efd 🤖 自动格式化代码 [skip ci] 2025-06-22 08:40:44 +00:00
SengokuCola ca47144fd9 fix:将人格表达和remote请求改为异步,不阻塞启动主线程 2025-06-22 16:39:21 +08:00
SengokuCola 853a0a8548 fix:修改恼人action红色 2025-06-22 14:57:22 +08:00
SengokuCola 248161a754 feat:添加熟悉度和关系值 2025-06-21 16:22:29 +08:00
SengokuCola 5ef6be3be2 fix:优化关系构建频率 2025-06-16 18:17:19 +08:00
github-actions[bot] 40c5763864 🤖 自动格式化代码 [skip ci] 2025-06-16 05:48:17 +00:00
SengokuCola 3951a3a39a better:优化单个logger体积 2025-06-16 13:46:50 +08:00
github-actions[bot] fd06e8b58f 🤖 自动格式化代码 [skip ci] 2025-06-15 14:08:08 +00:00
SengokuCola bc2d5370d2 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-06-15 22:07:31 +08:00
SengokuCola 11bd8e0fdf fix:用时间戳标记log 2025-06-15 22:07:25 +08:00
github-actions[bot] b2f09957e8 🤖 自动格式化代码 [skip ci] 2025-06-15 14:02:46 +00:00
SengokuCola 2af181813e fix:忍无可忍直接修改log命名方式,避免重命名 2025-06-15 22:02:28 +08:00
github-actions[bot] 4f258f0870 🤖 自动格式化代码 [skip ci] 2025-06-15 13:31:01 +00:00
SengokuCola ef0973739a fix:再次尝试修复log占用 2025-06-15 21:30:05 +08:00
SengokuCola 222d4114fc feat:提供更多统计数据 2025-06-15 20:34:37 +08:00
github-actions[bot] c96963ce6a 🤖 自动格式化代码 [skip ci] 2025-06-15 05:46:13 +00:00
SengokuCola a9a0ce0447 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-06-15 13:45:49 +08:00
SengokuCola 11c36ef9e3 fix:修复循环异常思索 2025-06-15 13:44:21 +08:00
github-actions[bot] a733020228 🤖 自动格式化代码 [skip ci] 2025-06-15 05:14:57 +00:00
SengokuCola 83ae078d6e fix:修复日志占用和文件层级 2025-06-15 13:14:39 +08:00
UnCLAS-Prommer 24168aa291 logger类型注解 2025-06-15 02:20:16 +08:00
UnCLAS-Prommer 661fe60cf7 fix #1034 2025-06-15 00:55:43 +08:00
SengokuCola 751a46da7b feat:为normal加入了关系的构建和使用 2025-06-14 21:17:35 +08:00
github-actions[bot] e744de2178 🤖 自动格式化代码 [skip ci] 2025-06-14 11:21:15 +00:00
SengokuCola 790642afd6 fix:修复发送api打字时间,现已成为可选参数。修复可能存在的回复图片问题,为数据库缺失字段提供警告 2025-06-14 19:21:02 +08:00
SengokuCola e4e14550c7 修复sql小问题 2025-06-14 17:19:20 +08:00
SengokuCola b957e482e8 fix:移除b64 2025-06-14 16:04:07 +08:00
SengokuCola e15a9b29ff better:优化了图片展示形式 2025-06-14 15:03:09 +08:00
SengokuCola 1a1a48508d fix:修复零散小问题 2025-06-14 11:41:41 +08:00
github-actions[bot] e6f93d7dbe 🤖 自动格式化代码 [skip ci] 2025-06-12 15:58:26 +00:00
SengokuCola 247645f8b5 update logger 2025-06-12 23:56:58 +08:00
SengokuCola 3e53c8a326 Update logger.py 2025-06-12 23:49:08 +08:00
SengokuCola 09e7c41983 fix:betterlog 2025-06-12 23:43:59 +08:00
github-actions[bot] 0448a8d641 🤖 自动格式化代码 [skip ci] 2025-06-12 15:21:15 +00:00
SengokuCola 433560fe6d fix:正确调用模式动作 2025-06-12 23:20:30 +08:00
github-actions[bot] 9b4fa2155e 🤖 自动格式化代码 [skip ci] 2025-06-12 12:30:00 +00:00
SengokuCola 745d762dbb feat:可配置log,解决可读性问题 2025-06-12 20:13:47 +08:00
github-actions[bot] b3287bda46 🤖 自动格式化代码 [skip ci] 2025-06-12 06:15:46 +00:00
SengokuCola 4504ded37d feat:暂时为日志加上保存功能 2025-06-12 14:15:28 +08:00
春河晴 302240478c
update logger configuration 2025-06-11 15:48:59 +09:00
春河晴 7b4e7b94f8
use structlog instead of loguru 2025-06-11 15:17:08 +09:00
春河晴 8d9a88a903
ruff 2025-06-10 16:13:31 +09:00
SengokuCola bc0fba5634 feat:最新最好的关系系统 2025-06-08 23:49:45 +08:00
SengokuCola e032f44643 feat:重写关系模块的逻辑和关系结构 2025-06-07 01:03:00 +08:00
晴猫 fc374903a2
fix session closed 2025-06-05 17:03:13 +09:00
春河晴 3288051b42
temp fix https://github.com/crate/crate-python/issues/708 2025-06-05 15:52:28 +09:00
春河晴 d4a76e094f
fix too many open files in logger.py 2025-06-05 14:56:20 +09:00
SengokuCola b2fe4863a8 better:将印象拆分,麦麦可以总结多方面特点 2025-06-05 11:27:57 +08:00
SengokuCola 5946633dcd fix:修复logger 2025-06-04 21:38:48 +08:00
SengokuCola 8c713a436c feat:将action记录存到数据库,并显示到prompt中 2025-06-04 18:14:16 +08:00
tcmofashi aa56c3e1a3 fix: 修复神秘none bug以及ruff 2025-06-04 12:56:31 +08:00
SengokuCola 615685791f 删除无效字段防止报错 2025-06-03 20:33:40 +08:00
SengokuCola c1b8ec8912 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-06-03 18:16:49 +08:00
tcmofashi 103ab0ff8e fix: ruff 2025-06-03 16:09:17 +08:00
SengokuCola 0bea30c052 fix:修改配置文件模型名,移除message_buffer 2025-06-03 13:41:30 +08:00
SengokuCola 14893ede27 fix:修复人格表达生成太固定的问题 2025-06-03 00:45:54 +08:00
github-actions[bot] 243d5184e6 🤖 自动格式化代码 [skip ci] 2025-06-02 13:15:04 +00:00
SengokuCola 4bf290d55f fix:修复遥测,打字时间,图像识别 2025-06-02 17:46:17 +08:00
SengokuCola d6b360dd22 fix:修复遥测报错层级 2025-06-02 12:41:59 +08:00
SengokuCola 27c8389b36 1 2025-05-29 22:46:36 +08:00
SengokuCola 75416a7a6a feat:可以自定义连续回复次数 2025-05-29 22:45:07 +08:00
github-actions[bot] 8f03be10be 🤖 自动格式化代码 [skip ci] 2025-05-28 14:42:38 +00:00
SengokuCola cd41dcb4cb better:继续优化 2025-05-28 22:42:25 +08:00
SengokuCola 6e39965c56 better:优化logger显示 2025-05-28 22:24:08 +08:00
墨梓柒 460c7fb75a
更新迁移脚本,支持断点续传和批量导入,更新数据库模型,允许群聊信息字段为可选(null=True) 2025-05-28 20:51:38 +08:00
SengokuCola bc489861d3 feat:为normal_chat提供选项,有效控制回复频率 2025-05-28 20:41:46 +08:00
SengokuCola 41f97a0bf1 feat:允许command设置展示名称,而非指令原文,添加处理器超时,NormalChat转换清理 2025-05-28 13:49:19 +08:00
SengokuCola 890a7b6505 feat:修复了action变更,修改了默认配置,提升版本号 2025-05-27 12:41:23 +08:00
tcmofashi 5536c5bf76 feat: 新增maim_message配置,支持wss,tcp模式,支持token 2025-05-23 18:10:37 +08:00
tcmofashi aa74329e6e fix: ruff pass 2025-05-23 13:24:29 +08:00
tcmofashi cddcc10a52 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-05-23 12:14:31 +08:00
Oct-autumn 86b777fe4d
fix: 心跳403Error时炸心跳任务 2025-05-21 15:57:23 +08:00
SengokuCola 25d9032e62 better:重整配置,分离表达,聊天模式区分
重整配置文件路径,添加更多配置选项
分离了人设表达方式和学习到的表达方式
将聊天模式区分为normal focus和auto
2025-05-20 22:42:16 +08:00
SengokuCola 93e98a77e8 fix:启动遥测服务 2025-05-19 20:51:21 +08:00
tcmofashi 75eeea8d92 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-05-18 21:17:22 +08:00
SengokuCola 49c2bc854c refactor:重构聊天状态切换模式,移除限额,精简切换逻辑 2025-05-18 18:15:38 +08:00
UnCLAS-Prommer 7973318f4c ruff 2025-05-17 17:35:00 +08:00
SengokuCola e6cd2a8e8f feat:添加海马体支持 2025-05-17 14:46:01 +08:00
SengokuCola b4f6db0767 Merge branch 'new-storage' into plugin 2025-05-16 21:14:16 +08:00
SengokuCola 00f02b6f38 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into new-storage 2025-05-16 21:03:40 +08:00
github-actions[bot] 335c62c50f 🤖 自动格式化代码 [skip ci] 2025-05-16 09:35:00 +00:00
墨梓柒 e4f7c1fe62 优化数据库初始化逻辑,确保数据库连接有效并检查表及字段的存在性 2025-05-16 17:34:43 +08:00
墨梓柒 b698d17a76 重命名表情包和图像模型中的哈希字段,统一为 emoji_hash 和 image_description_hash,以提高代码一致性 2025-05-16 17:08:30 +08:00
Oct-autumn 021e7f1a97
refactor: 重构配置模块 2025-05-16 16:50:53 +08:00
SengokuCola 456def4f9c feat:增加了工作记忆 2025-05-16 16:13:12 +08:00
github-actions[bot] 9965997139 🤖 自动格式化代码 [skip ci] 2025-05-15 11:04:04 +00:00
墨梓柒 a18524ce61 更新消息存储和查询逻辑,支持MongoDB风格的操作符,修改消息ID字段类型为TextField 2025-05-15 19:03:47 +08:00
github-actions[bot] 4c2cfd5c73 🤖 自动格式化代码 [skip ci] 2025-05-15 02:24:38 +00:00
墨梓柒 2be0130d23 重构消息存储逻辑,使用Peewee模型存储消息和撤回消息,添加时间戳处理 2025-05-15 10:24:25 +08:00
墨梓柒 224c1e3fb7
Update src/common/message_repository.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-15 10:10:46 +08:00
墨梓柒 a88b04ab0b
Update src/common/message_repository.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-15 10:10:30 +08:00
墨梓柒 a242a4cb7a
Update src/common/database/database_model.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2025-05-15 10:09:18 +08:00
tcmofashi cb0cbfe84d fix: 为maim_message添加logger 2025-05-15 07:36:07 +08:00
github-actions[bot] fb6094d269 🤖 自动格式化代码 [skip ci] 2025-05-14 15:11:33 +00:00
墨梓柒 2051b011b1 feat: 添加数据库表创建和初始化功能,确保模型表存在 2025-05-14 23:04:22 +08:00
墨梓柒 b84cc9240a 重构数据库交互以使用 Peewee ORM
- 更新数据库连接和模型定义,以便使用 Peewee for SQLite。
- 在消息存储和检索功能中,用 Peewee ORM 查询替换 MongoDB 查询。
- 为 Messages、ThinkingLog 和 OnlineTime 引入了新的模型,以方便结构化数据存储。
- 增强了数据库操作的错误处理和日志记录。
- 删除了过时的 MongoDB 集合管理代码。
- 通过利用 Peewee 内置的查询和数据操作方法来提升性能。
2025-05-14 22:53:21 +08:00
墨梓柒 df897a0f42 feat: 更新数据库模型,添加个人信息存储模型 2025-05-14 20:40:57 +08:00
墨梓柒 b66534120f feat: 添加图像和在线时长记录模型,扩展数据库结构 2025-05-14 20:24:45 +08:00
墨梓柒 88ab2bcaf4 feat: 重构数据库模型,添加基础模型和多个数据表定义 2025-05-14 20:16:46 +08:00
墨梓柒 307d5a73a6 feat: 重构数据库导入路径,移除旧的数据库模块并添加新的数据库实现 2025-05-14 19:42:53 +08:00
SengokuCola e603a00a5f feat:拆分HFC组件,为插件做准备 2025-05-14 14:24:52 +08:00
SengokuCola fed71bccad fix:调整目录结构,优化hfc prompt,移除日程,移除动态和llm判断willing模式, 2025-05-13 18:37:55 +08:00
墨梓柒 47b3e1af28 feat: 添加系统基本信息接口,包含操作系统、Python版本、CPU和内存使用情况 2025-05-11 17:12:39 +08:00
SengokuCola 5b1e5aa50e Update logger.py 2025-05-08 18:54:49 +08:00
墨梓柒 54eaff8cf2 fix: 修正日志存储地址,改为绝对路径 2025-05-07 00:27:48 +08:00
SengokuCola 08d07dc3bd Feat:让启动器使用api,修改gui设计 2025-05-05 13:18:12 +08:00
SengokuCola 2ace6cc415 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-05-05 11:32:21 +08:00
SengokuCola 49a34581c3 feat:新增flet启动器 2025-05-04 18:02:46 +08:00
github-actions[bot] aa86387f36 🤖 自动格式化代码 [skip ci] 2025-05-03 17:45:14 +00:00
墨梓柒 80ff6e8154 feat: 添加API服务器日志样式配置 2025-05-04 01:43:44 +08:00
墨梓柒 edda834538 fix: 移除Traceback函数中的 show_locals 参数以简化错误追踪 2025-05-02 12:01:05 +08:00
github-actions[bot] c88a73597a 🤖 自动格式化代码 [skip ci] 2025-05-01 19:18:37 +00:00
墨梓柒 9cf62f983e feat:为多个模块添加丰富的追踪信息以增强调试能力 2025-05-02 03:18:24 +08:00
晴猫 45c64208b4
refactor: Clean up unused variables and improve code readability 2025-05-01 07:24:52 +09:00
晴猫 e4959f0386
ruff fix 2025-05-01 07:07:13 +09:00
晴猫 263e8d196a fix: Update type hints to use newer Python syntax
- Replace Dict, List, Optional with dict, list,  < /dev/null |  None syntax
- Fix abstract method implementation in message.py
- Improve type annotations and function return types
- Remove unreachable code in get_current_task_tool.py
- Refactor HTML elements to use style attributes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-01 06:55:05 +09:00
晴猫 2f669c7055
QA: Update requirements and refactor message handling logic etc. 2025-05-01 05:58:18 +09:00