晴猫
0244e5b64e
update: 升级 quick-algo 依赖至 0.1.4
2026-03-14 23:40:10 +09:00
晴猫
d7069c2754
tmp: add to default branch to run
2026-03-13 05:09:17 +09:00
晴猫
fc7b9b61d9
fix: 将日志级别从trace更改为debug
2025-06-11 22:49:25 +09:00
晴猫
4747c151d5
fix
2025-06-11 22:07:33 +09:00
春河晴
6767bd6715
fix: 懒加载单例以修复环境变量加载问题
2025-06-11 17:22:43 +09:00
晴猫
6d1f5be4e1
Merge pull request #1035 from MaiM-with-u/dev-refactor-logger
...
重构日志系统:使用 structlog 替代 loguru
2025-06-11 15:16:12 +08:00
春河晴
61d6672b46
use logger.warning instead of logger.warn
2025-06-11 16:15:24 +09:00
春河晴
21ea8d8fc1
change encoding of requirements.txt to UTF-8
2025-06-11 16:08:18 +09: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
晴猫
a957daa37d
Update ruff.yml
2025-06-10 18:28:29 +09:00
晴猫
83c54bd117
Update ruff.yml
2025-06-10 18:27:24 +09:00
春河晴
a10cc9f485
add a random file to test ruff
2025-06-10 18:23:51 +09:00
晴猫
d36aa552bd
Update ruff.yml
2025-06-10 18:16:28 +09:00
晴猫
edecfc9a7f
Update ruff.yml
2025-06-10 18:15:51 +09:00
晴猫
dd5672aa03
delete empty dir
2025-06-10 09:10:17 +00:00
春河晴
18c40e5810
delete empty dir
2025-06-10 17:32:02 +09:00
春河晴
3e854719ee
ruff
2025-06-10 17:31:05 +09:00
春河晴
b0c553703f
ruff
2025-06-10 16:43:45 +09:00
春河晴
cf39f2fe84
random qa
2025-06-10 16:41:49 +09:00
春河晴
2edece11ea
ruff
2025-06-10 16:18:57 +09:00
春河晴
8d9a88a903
ruff
2025-06-10 16:13:31 +09:00
春河晴
440e8bf7f3
qa: use isoformat instead of strftime
2025-06-10 15:43:20 +09:00
春河晴
1534e99094
qa: 增加显式 return 语句
2025-06-10 15:42:48 +09:00
晴猫
fc374903a2
fix session closed
2025-06-05 17:03:13 +09:00
春河晴
feaf49d265
fix session closed
2025-06-05 17:02:22 +09:00
春河晴
3288051b42
temp fix https://github.com/crate/crate-python/issues/708
2025-06-05 15:52:28 +09:00
春河晴
85d543d555
ruff
2025-06-05 15:49:05 +09:00
春河晴
1461155747
temp fix https://github.com/crate/crate-python/issues/708
2025-06-05 15:44:29 +09:00
春河晴
d4a76e094f
fix too many open files in logger.py
2025-06-05 14:56:20 +09:00
春河晴
969147ffb6
fix too many open files in logger.py
2025-06-05 14:50:30 +09:00
春河晴
af2596d431
add extensions in devcontainer.json
2025-05-09 15:08:21 +09:00
春河晴
8e910748c7
add postCreateCommand in devcontainer.json
2025-05-09 04:36:10 +00:00
春河晴
87c8cc9156
feat: 添加开发容器功能配置,包括tmux和GitHub CLI
2025-05-08 18:57:02 +00:00
春河晴
337c942b1e
update dev container config, add port forwarding
2025-05-08 18:31:41 +00:00
春河晴
4e0b49a574
add dev container config
2025-05-08 15:32:42 +00:00
晴猫
6ff552d921
fix: update message sending to use global API
2025-05-01 17:56:33 +09:00
晴猫
23d69ba90d
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
2025-05-01 16:06:13 +09:00
晴猫
95a025b699
add typing
2025-05-01 14:36:17 +09:00
晴猫 and Claude
de68a6a8ee
fix: 更改 MessageManager 的属性检查方式以防止错误
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-05-01 14:34:59 +09: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
晴猫 and Claude
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
晴猫
3d001da30e
QA: Refactor similarity calculation and improve state management logic
2025-05-01 06:07:59 +09:00
晴猫
2f669c7055
QA: Update requirements and refactor message handling logic etc.
2025-05-01 05:58:18 +09:00
春河晴
121cc6e2ca
LF
2025-04-24 13:53:14 +09:00
春河晴
cefd8aa5b7
add 🍓
2025-04-24 13:53:13 +09:00
春河晴 and Claude
77f70d2fb2
chore: Update .gitignore and remove .DS_Store
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-04-23 16:09:14 +09:00
春河晴 and Claude
9b9dbbd74d
fix: Ensure explicit returns and correct async calls
...
Adds explicit `return None` statements in several functions across different modules to improve code clarity and prevent potential issues where functions might implicitly return None.
Corrects an async call in `Heartflow.deactivate_chat` by adding `await`.
Updates type hints in `heartflow_prompt_builder.py`.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-04-23 15:18:12 +09:00
春河晴
7e26304e94
使用旧式联合体写法以兼容python3.9
2025-04-23 14:39:51 +09:00
春河晴
cbfa8508c6
chore: update README and template.env for better formatting and clarity
2025-04-21 15:56:17 +09:00
春河晴
1e481a7af1
fix: unreachable?
2025-04-21 14:49:14 +09:00
春河晴
13e05adf80
chore: 显式返回None
2025-04-21 14:42:33 +09:00
春河晴
1dd3c62c55
chore: PEP8 naming
2025-04-21 14:32:32 +09:00
春河晴
5d66334776
fix: 修复未解析的饮用
2025-04-21 14:21:08 +09:00
春河晴
388392b9c5
fix: 删除重复的类定义
2025-04-21 14:16:13 +09:00
春河晴 and Claude
dcebdb7a35
fix: 重命名变量以避免与内置函数冲突
...
1. 将 Message 类中的 time 参数重命名为 timestamp,避免与 Python 内置模块 time 冲突
2. 在消息处理相关函数中统一使用 timestamp 变量名称
3. 优化 message_storage 查询条件构建方式
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-04-17 16:23:53 +09:00
春河晴 and Claude
df4e0c8494
fix: 修正函数文档字符串参数错误
...
1. 修正 change_mood.py 中 execute 函数的错误参数
2. 修正 change_relationship.py 中 execute 函数的错误参数
3. 修正 reply_generator.py 中 generate 函数的错误参数
4. 修正 schedule_generator.py 中 get_current_num_task 函数缺少参数
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-04-17 16:12:21 +09:00
春河晴
2e143d5469
PEP8: 函数中的变量应该小写
2025-04-17 16:04:34 +09:00
春河晴
9a38aeafe1
refactor: 使用itertools.combinations简化节点连接逻辑
2025-04-17 15:56:49 +09:00
春河晴
959401f765
refactor: 移除未使用的变量以简化代码逻辑
2025-04-17 15:45:56 +09:00
春河晴
dc96e26ca5
refactor: 将多个方法修改为静态方法以提高代码可读性和一致性
2025-04-17 15:39:49 +09:00
春河晴
73da67fce8
fix: 移除hippocampus模块的错误引用
2025-04-17 15:21:01 +09:00
春河晴
be6699340a
fix: 修正identity_detail的引用以确保正确处理身份细节
2025-04-17 15:20:33 +09:00
春河晴
51af1ef4ce
移除.gitignore重复项目
2025-04-17 15:17:07 +09:00
春河晴
68114993ea
fix: 更新文档和代码中的LLM_request为LLMRequest,优化dockerignore
2025-04-17 15:03:42 +09:00
春河晴
dc2cf843e5
改各种小问题
2025-04-16 17:37:28 +09:00
春河晴
d8d407e404
fix: update ruff action to install the latest version
2025-04-16 16:37:37 +09:00
春河晴
a0b1b1f8d8
fix: 修改is_mentioned_bot_in_message函数,返回类型改为元组并修正回复概率为浮点数
2025-04-16 16:34:33 +09:00
春河晴
328d759ace
fix: 修复正则表达式中的括号匹配,优化统计输出格式
2025-04-16 16:26:15 +09:00
春河晴
a8d48fc6cf
style: 格式化代码,修复不一致的空格和注释,更新ruff action
2025-04-16 16:16:52 +09:00
春河晴
1aad7f4f6e
refactor: 移除MongoDBMessageStorage类中的self.db引用,直接使用db
2025-04-16 15:04:00 +09:00
春河晴
ff09813dbe
refactor: remove unnecessary instance variable in MongoDBMessageStorage
2025-04-16 14:55:14 +09:00
春河晴
58dc9e0840
add CLAUDE.md
2025-04-08 17:32:15 +09:00
春河晴
7840a6080d
ruff reformatted
2025-04-08 15:31:13 +09:00
春河晴
a2c6e41843
fix markdown
2025-03-21 14:05:47 +08:00
春河晴 and Claude
7cad7786cc
style: 代码格式化,修复缩进问题
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-21 13:41:43 +08:00
晴猫
fac1607c5b
Merge pull request #495 from MaiM-with-u/fix-exception-handling
...
代码格式优化与异常处理链修复
2025-03-19 19:30:38 +08:00
春河晴 and Claude
fdc098d0db
优化代码格式和异常处理
...
- 修复异常处理链,使用from语法保留原始异常
- 格式化代码以符合项目规范
- 优化导入模块的顺序
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-19 20:27:34 +09:00
春河晴 and Claude
a829dfdb77
修复异常处理链:在except块中使用from语法保留原始异常
...
- 使用`raise ... from e`语法保留异常链
- 确保异常追踪包含原始错误信息
- 符合Ruff B904规则要求
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-19 20:25:55 +09:00
晴猫
76e9410467
Rename run.sh to run_debian12.sh
...
脚本只支持debian12
2025-03-17 18:24:42 +09:00
晴猫
6611d9b46d
Merge pull request #398 from na10xi27da/relationship
...
关系系统构建与启用(非紧急)
2025-03-17 17:21:48 +08:00
春河晴 and Claude
6c48b08f24
docs: 更新CLAUDE.md,添加项目架构和代码索引指南
...
- 添加Mermaid图表展示项目结构和流程
- 创建关键文件索引表格
- 详细描述记忆系统和聊天系统内部结构
- 增加配置系统概览
- 提供模块依赖关系图表
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-17 15:15:51 +09:00
春河晴 and Claude
9a5bfa3b65
docs: 更新CLAUDE.md为高信息密度项目文档
...
- 添加mermaid系统架构图和模块依赖图
- 添加核心文件索引和类功能表格
- 添加消息处理流程图
- 重组常见修改点便于导航
- 优化文档结构以提高信息密度
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-17 14:59:21 +09:00
晴猫
c39a35f66c
Merge pull request #417 from SaigyoujiYusora/main-fix
...
真一键启动+安装(指本体)
2025-03-16 01:41:28 +08:00
晴猫
d77baf9ac8
fix: 重复获取logger
2025-03-15 17:34:13 +09:00
晴猫
8fbe5d3a82
chore: remove unnecessary whitespaces
2025-03-15 17:17:29 +09:00
春河晴 and Claude
e17f3276a4
fix: 修复utils_model.py潜在问题
...
- 将重复的模型列表提取为类变量
- 修复流式处理中变量未初始化的错误
- 改进错误响应处理的安全性
- 修复类型标注
- 优化重复的条件判断
- 将_init_database改为静态方法
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-14 14:28:56 +09:00
春河晴 and Claude
be7997e1b7
refactor: 改进错误处理和代码格式化
...
- 增强API错误响应解析,添加详细错误日志
- 优化HTTP客户端响应错误处理逻辑
- 规范代码格式,调整函数参数和字典格式
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-03-14 14:08:09 +09:00
晴猫
eb6f166534
Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug
2025-03-14 10:17:43 +09:00
晴猫
2fbfbc4486
fix; 修复解析日程文本时未处理匹配结果的错误
2025-03-14 10:17:41 +09:00
晴猫
e060e66788
fix; 防止解析日程时遇到多余的内容影响解析(比如markdown代码块标记)
2025-03-14 10:09:53 +09:00
晴猫
32c6d7ea55
Merge pull request #349 from ProperSAMA/debug
...
docs(NAS部署指南): 增加HOST的设置,确保maimbot能被napcat访问
2025-03-13 23:20:07 +09:00
晴猫
8a992addeb
Merge pull request #274 from Pocketfans/willing_cycles
...
让回复意愿更加拟人,增加高低回复意愿周期,且增加了一个简单的追问回复功能
2025-03-13 16:02:11 +09:00
晴猫
9aa9475a4d
合并拉取请求 #290
...
feat: Linux 一键部署脚本
2025-03-13 15:14:18 +09:00
晴猫
f33ad38c86
合并拉取请求 #313
...
编写群晖NAS部署指南
2025-03-13 15:12:47 +09:00
晴猫
df89b1269f
合并拉取请求 #326
...
fix: 使用os.path.join代替硬编码路径分隔符
2025-03-13 15:08:06 +09:00
春河晴
c4d1df3d48
chore: 更新.gitignore,添加JetBrains相关文件和目录,移除.env文件
2025-03-13 15:05:32 +09:00
晴猫
c83fbc1529
添加 .pre-commit-config.yaml (这并不会启用hook)
2025-03-13 14:14:56 +09:00
晴猫
778991fcbf
Merge pull request #300 from SengokuCola/ruff-action-patch-debug
...
add ruff action to debug branch
2025-03-13 02:24:14 +09:00