Commit Graph

279 Commits

Author SHA1 Message Date
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
SengokuCola
ccbdc6ffe0 frrr 2025-05-01 01:41:30 +08:00
SengokuCola
6db8dc01d5 feat:采用直接输出法构建动作planner 2025-05-01 01:21:48 +08:00
SengokuCola
09b1807132 better:优化表情包处理,优化logger显示 2025-04-30 18:16:38 +08:00
github-actions[bot]
46efe44d58 🤖 自动格式化代码 [skip ci] 2025-04-29 15:35:57 +00:00
墨梓柒
894fe8463c logger add init style 2025-04-29 23:35:41 +08:00
github-actions[bot]
412efe79d2 🤖 自动格式化代码 [skip ci] 2025-04-27 16:22:32 +00:00
墨梓柒
12b03ecb8d 重构跨多个模块的日志配置
- 将“get_module_logger”替换为新模块“logger_manager”中的“get_logger”,以实现一致的日志设置。
- 移除了单独的日志配置设置,转而采用集中式日志管理。
- 更新了多个文件中的日志初始化方法,包括“config.py”、“change_mood.py”、“change_relationship.py”等,以简化日志记录实践。
- 引入“logger_manager.py”,用于根据模块特定的样式处理日志配置。
2025-04-28 00:22:05 +08:00