Commit Graph

50 Commits

Author SHA1 Message Date
晴空
a14e5b84c1 Implement utility functions for plugin config handling
Added utility functions for normalizing dotted keys and coercing types in plugin configuration.
2025-12-06 22:45:38 +08:00
墨梓柒
6680afaa4a feat: 更新 token 处理逻辑,清除 Cookie 并要求用户重新登录;保留 first_setup_completed 状态 2025-12-03 11:31:13 +08:00
墨梓柒
f8446e6bf7 Merge pull request #1398 from Ronifue/dev
fix: 修复保存toml时的空行累计bug和注释丢失问题
2025-12-03 10:50:58 +08:00
SengokuCola
7f66d5588d better:优化表达方式提取的token消耗 2025-12-03 00:21:02 +08:00
Ronifue
940e4a5f6b Merge branch 'dev' of https://github.com/Ronifue/MaiBot into dev 2025-12-02 16:21:04 +08:00
Ronifue
dd73030919 fix: 简化逻辑 2025-12-02 16:20:44 +08:00
Lofu
07bc84d21f Merge branch 'Mai-with-u:dev' into dev 2025-12-02 16:11:58 +08:00
SengokuCola
34129bafad fix:ruff 2025-12-02 16:04:18 +08:00
Ronifue
2b7559b8cc fix: 修复保存toml时偶发的空行累计bug和注释丢失问题 2025-12-02 16:00:05 +08:00
墨梓柒
b79ee9855c feat: 添加黑话管理路由,支持黑话的增删改查功能 2025-12-02 13:46:16 +08:00
墨梓柒
2f61df1cc5 feat: 增强虚拟身份模式支持,添加群 ID 处理和历史记录管理 2025-12-01 23:30:01 +08:00
墨梓柒
bf831e9004 Merge pull request #1390 from Ronifue/dev
fix & feat: 修复、修正一些问题
2025-11-30 18:07:53 +08:00
墨梓柒
11f79a73cb feat: 增强缩略图生成逻辑,支持后台异步生成并返回生成状态 2025-11-30 18:02:16 +08:00
墨梓柒
50acd8d847 feat: 添加缩略图缓存管理功能,包括生成、清理和统计接口 2025-11-30 17:31:54 +08:00
墨梓柒
c790dcb705 feat: Enhance authentication mechanism to support token retrieval from both Cookie and Header
- Added a new auth module to manage authentication-related functions.
- Updated existing routes in expression_routes, person_routes, plugin_routes, and routes to utilize the new authentication methods.
- Implemented CORS middleware in webui_server for development environment support.
- Introduced functions to set and clear authentication cookies.
- Enhanced token verification to prioritize Cookie over Header for improved security and flexibility.
2025-11-30 15:53:39 +08:00
Ronifue
2db6399910 fix: 修正logger 2025-11-29 20:40:07 +08:00
Ronifue
11aeb906ac fix: 修复WebUI重启后无法使用Ctrl+C停止Maibot的问题 2025-11-29 19:59:23 +08:00
Ronifue
f68b9aa109 feat: 对自动化处理的toml进行格式化,以及修复通知消息导致的报错 2025-11-29 15:53:33 +08:00
墨梓柒
3935ce817e Ruff Fix & format 2025-11-29 14:38:42 +08:00
墨梓柒
d7932595e8 feat: 使用 tomlkit 替换 toml,增强配置文件的读取和写入功能,保留注释和格式 2025-11-29 14:24:10 +08:00
墨梓柒
17279c4326 feat: 添加表情包上传和批量上传功能,支持文件类型验证和哈希检查 2025-11-29 02:12:49 +08:00
墨梓柒
321c784434 feat: 增强插件配置管理,添加配置 Schema 和更新接口 2025-11-29 00:01:25 +08:00
墨梓柒
e06a35fe81 feat: 添加提供商连接测试接口,支持通过 URL 和名称验证连接状态 2025-11-28 15:27:58 +08:00
墨梓柒
c78e17406c feat: 添加 WebUI 聊天室功能,包括消息广播和历史记录管理 2025-11-28 14:18:15 +08:00
墨梓柒
2f87519faa feat:修改模型列表获取错误处理,统一使用502状态码响应 2025-11-26 23:02:04 +08:00
墨梓柒
0a0fb8ee55 feat:添加模型列表获取API路由 2025-11-26 22:42:46 +08:00
墨梓柒
1806d802c9 feat:为表情包列表接口添加排序功能 2025-11-26 19:22:51 +08:00
墨梓柒
1bcd37b206 feat:增加聊天名称获取功能和聊天列表接口 2025-11-26 18:30:51 +08:00
墨梓柒
513182067d feat: 优化任务调度和插件管理,支持路径规范化及插件 ID 自动生成 2025-11-24 21:29:04 +08:00
墨梓柒
d134c85072 优化重启功能,添加延迟重启任务以确保响应已发送 2025-11-22 21:16:18 +08:00
墨梓柒
72a159b2d7 添加知识库图谱可视化 API 路由,并在 WebUI 服务器中注册相关路由 2025-11-22 15:48:05 +08:00
墨梓柒
ad16c4afe9 修改表情包情感字段类型,直接返回字符串,移除 JSON 解析逻辑 2025-11-20 20:55:31 +08:00
墨梓柒
4284e0f860 添加独立的 WebUI 服务器支持,重构相关配置和启动逻辑 2025-11-20 19:01:10 +08:00
墨梓柒
948978631d 添加获取和更新麦麦主程序配置原始 TOML 内容的接口 2025-11-20 15:45:56 +08:00
墨梓柒
c393044052 添加适配器配置管理接口,包括获取、保存和读取适配器配置路径及内容的功能 2025-11-20 15:05:51 +08:00
墨梓柒
d7fccfe634 feat: 添加批量删除功能至表情包、表达方式和人物信息管理 API 2025-11-20 01:18:12 +08:00
墨梓柒
44f427dc64 Ruff fix 2025-11-19 23:35:14 +08:00
墨梓柒
9eb893e831 feat: 添加系统控制路由,支持重启和状态查询功能 2025-11-19 22:58:53 +08:00
墨梓柒
d56cb375ec feat: 添加获取表情包缩略图的 API 路由 2025-11-19 16:21:49 +08:00
墨梓柒
74f9beb231 feat: 添加首次配置状态管理功能,支持获取、标记完成和重置配置状态 2025-11-19 14:59:31 +08:00
墨梓柒
4141c25fdd feat: add WebSocket plugin progress notification module and integrate with plugin management routes
- Implemented a WebSocket endpoint for broadcasting plugin loading progress.
- Created functions to update and broadcast progress status to connected clients.
- Integrated progress updates into plugin management routes for operations like fetching, cloning, installing, uninstalling, and updating plugins.
- Added error handling and logging for progress updates and WebSocket connections.
2025-11-18 22:54:25 +08:00
墨梓柒
43e0c9a4ad feat: 添加 WebSocket 日志推送功能,支持实时日志监控和历史日志加载 2025-11-18 00:38:30 +08:00
墨梓柒
4e03cfac2a feat: 添加人物信息、表达方式和表情包管理 API 路由 2025-11-17 21:04:29 +08:00
墨梓柒
9d37bbcba4 feat: 自动检测并设置静态文件的 MIME 类型以支持生产模式 2025-11-17 18:19:27 +08:00
墨梓柒
060ce5d55b refactor: 优化日志系统关闭流程,使用 print 替代 logger 输出,确保在关闭后仍能记录信息
feat: 添加服务器关闭时的超时处理,避免 shutdown 持续挂起
fix: 更新生产模式设置,使用 Starlette 的 FileResponse 处理静态文件
2025-11-17 17:51:29 +08:00
墨梓柒
6307d92acc feat: 添加统计数据API路由以支持统计信息的获取 2025-11-17 15:43:11 +08:00
墨梓柒
ab1ef9536b feat: 添加递归合并字典的辅助函数以保留注释和格式 2025-11-17 12:59:02 +08:00
墨梓柒
ed12fac50e fix: 修复日志记录器名称和更新配置节接口参数类型 2025-11-17 12:06:42 +08:00
墨梓柒
1c1d8fd3af feat: 添加配置管理API路由和配置架构 2025-11-17 00:09:17 +08:00
墨梓柒
cae61281a0 feat: 添加 WebUI 模块及相关 API 路由和 Token 管理功能 2025-11-14 23:31:53 +08:00