Commit Graph

27 Commits

Author SHA1 Message Date
DrSmoothl
172615f18a WebUI 前端 & 后端超级大重构 2026-03-14 21:06:36 +08:00
DrSmoothl
a576313b22 Ruff Format 2026-03-13 11:45:26 +08:00
DrSmoothl
186073f13b feat: 添加递归转换函数以处理 TOML 文档,优化配置数据验证 2026-03-07 23:24:07 +08:00
DrSmoothl
d3a4e3f3e7 feat: 优先读取插件的 config_schema.json,提供富 UI 元数据支持 2026-03-07 22:31:44 +08:00
DrSmoothl
0451a7fef4 优化认证检查逻辑,确保加载状态显示在正确位置;更新配置验证逻辑,使用深拷贝确保数据完整性 2026-03-07 21:52:23 +08:00
DrSmoothl
4565bd94b4 修复统计数据 API 中的数据库查询方法,优化性能和准确性 2026-03-07 21:18:36 +08:00
DrSmoothl
fe5cab9c41 修复 webui 明暗切换问题 2026-03-07 20:59:18 +08:00
DrSmoothl
ce8d8dfd0a 重构整个插件系统,尝试恢复可启动性,新增插件系统maibot-plugin-sdk依赖 2026-03-07 19:40:51 +08:00
DrSmoothl
2e3dd44ee9 Refactor chat stream handling to use BotChatSession
- Updated imports and references from ChatStream to BotChatSession across multiple files.
- Adjusted method signatures and internal logic to accommodate the new session management.
- Ensured compatibility with existing functionality while improving code clarity and maintainability.
2026-03-07 00:57:37 +08:00
DrSmoothl
6378bb2052 fix Ruff 2026-02-21 16:29:30 +08:00
DrSmoothl
eaef7f0e98 Ruff Format 2026-02-21 16:24:24 +08:00
DrSmoothl
f66e25b1a7 fix(webui): fix missing imports and create toml_utils module
- Create src/common/toml_utils.py with TOML utility functions
- Fix APIAdapterConfig → ModelConfig in config.py (4 locations)
- Fix git_mirror_service import path in plugin.py
- Fix emoji.py type annotations and unused imports
- Fix jargon.py comment (ChatStreams → ChatSession)
- All routers now import successfully
- Zero Peewee remnants verified across src/webui/
2026-02-17 20:19:37 +08:00
DrSmoothl
7255cc5602 fix(webui): remove references to deleted Expression fields
- 移除 ExpressionUpdateRequest 中的 checked/rejected/require_unchecked 字段
- 移除更新逻辑中的 setattr
- 添加 chat_id → session_id 映射
2026-02-17 19:58:29 +08:00
DrSmoothl
390d1daefd refactor(webui): migrate jargon routes from Peewee to SQLModel
- 完全迁移到 SQLModel
- chat_id → session_id 映射
- ChatStreams → ChatSession 替代
- 移除 is_global 字段
- 使用 group_id 替代 group_name
2026-02-17 19:58:21 +08:00
DrSmoothl
7da0811b5c refactor(webui): migrate emoji routes from Peewee to SQLModel
- 完全迁移到 SQLModel,所有 DB 操作使用 get_db_session()
- 字段映射:image_hash → emoji_hash
- datetime 时间戳转换
- 移除 format/usage_count 字段
2026-02-17 19:58:14 +08:00
DrSmoothl
16b16d2ca6 重构绝大部分模块以适配新版本的数据库和数据模型,修复缺少依赖问题,更新 pyproject 2026-02-13 20:39:11 +08:00
DrSmoothl
60f76e4d4e 添加对 peewee 的旧数据库的兼容层,初步重构插件的 database API 2026-02-09 22:44:56 +08:00
UnCLAS-Prommer
77725ba9d8 逐步适配新的config 2026-01-15 23:51:19 +08:00
墨梓柒
ffafbf0a26 WebUI后端整体重构 2026-01-13 07:24:27 +08:00
墨梓柒
ea420f9f59 添加认证依赖和请求频率限制模块,增强安全性和防止API滥用 2025-12-14 19:39:56 +08:00
SengokuCola
34129bafad fix:ruff 2025-12-02 16:04:18 +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
墨梓柒
3935ce817e Ruff Fix & format 2025-11-29 14:38:42 +08:00
墨梓柒
d134c85072 优化重启功能,添加延迟重启任务以确保响应已发送 2025-11-22 21:16:18 +08:00
墨梓柒
44f427dc64 Ruff fix 2025-11-19 23:35:14 +08:00
墨梓柒
9eb893e831 feat: 添加系统控制路由,支持重启和状态查询功能 2025-11-19 22:58:53 +08:00