DrSmoothl
186073f13b
feat: 添加递归转换函数以处理 TOML 文档,优化配置数据验证
2026-03-07 23:24:07 +08:00
DrSmoothl
b056ad2c34
feat: 添加动态 Tab 分组支持,优化配置界面 UI 元数据
2026-03-07 23:13:04 +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
34bd115fa1
efactor(network): centralize port validation and enforce strict configured ports
...
add a shared port checker utility for availability and conflict detection
migrate WebUI, message server, and additional API server to use the new module
fail fast with clear error hints when a configured port is occupied (no auto-increment)
2026-03-04 22:14:53 +08:00
DrSmoothl
5f5bdab85d
补全 WebUI 缺失文件
2026-02-28 20:50:04 +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
0ea18a4edc
fix minssing files
2026-02-17 19:04:54 +08:00
DrSmoothl
278a084c23
feat(webui): enhance ConfigSchemaGenerator with field_docs and UI metadata
...
- Add AttrDocBase.get_class_field_docs() classmethod for class-level field docs extraction
- Merge json_schema_extra (x-widget, x-icon, step) into schema output
- Map Pydantic constraints (ge/le) to minValue/maxValue for frontend compatibility
- Add ge=0, le=1 constraints to ChatConfig.talk_value for validation
Completes Task 1 (including subtasks 1a, 1b, 1c, 1d) of webui-config-visualization-refactor plan.
2026-02-17 17:05:25 +08:00
DrSmoothl
19c9c5a39a
feat(webui): use get_class_field_docs for schema field descriptions
2026-02-17 16:58:59 +08:00
DrSmoothl
0dccc23e76
更新 GitHub Actions 工作流,统一使用 ubuntu-24.04 作为运行环境;新增发布 WebUI 产物的工作流
2026-02-15 16:19:13 +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
UnCLAS-Prommer
0cf17bce01
Merge branch 'dev' into r-dev
2026-01-15 17:21:56 +08:00
墨梓柒
ffafbf0a26
WebUI后端整体重构
2026-01-13 07:24:27 +08:00
墨梓柒
37589ebdfb
feat: 添加段落内容加载功能及相关配置
2026-01-13 00:42:49 +08:00
UnCLAS-Prommer
afb993e481
remove webui
2026-01-12 18:25:19 +08:00
墨梓柒
ce7b954f68
feat: 添加Bot名称字段到年度报告数据模型,并在生成报告时获取Bot名称
2025-12-31 01:36:06 +08:00
墨梓柒
a22c378be0
feat: 更新社交网络数据模型,调整群组和用户统计为TOP5,优化深夜回复内容处理
2025-12-31 01:24:59 +08:00
墨梓柒
c3da65c259
feat: 更新年度报告数据模型,添加深夜回复和最喜欢的回复统计
2025-12-31 00:56:25 +08:00
SengokuCola
67c24f84cd
feat:日志上线数量可更改
2025-12-31 00:07:55 +08:00
墨梓柒
ce674f3422
添加表达方式的最后修改来源字段,并在AI检查和LLM判断时进行标记
2025-12-29 21:10:24 +08:00
SengokuCola
e1482977b1
Revert "Helm chart"
2025-12-28 00:07:03 +08:00
SengokuCola
5474d666dd
Merge pull request #1464 from Mai-with-u/helm-chart
...
Helm chart
2025-12-28 00:00:21 +08:00
墨梓柒
d6dde4a7d5
feat:新增API
2025-12-27 21:52:36 +08:00
墨梓柒
3696c298f8
feat:新增获取本地已安装插件 README 文件的 API
2025-12-27 21:00:07 +08:00
墨梓柒
4c7dcbf078
WebUI c4857f2c3c386af00b4ac2dbb165657d46b9c06d
2025-12-27 20:16:05 +08:00
墨梓柒
dff932fd86
feat:为规划器和回复器日志添加搜索功能
2025-12-24 14:01:56 +08:00
墨梓柒
ade25d4717
feat:添加规划器和回复器监控API路由
2025-12-23 23:13:05 +08:00
SengokuCola
e126d4bfff
Merge branch 'dev'
2025-12-21 16:59:10 +08:00
墨梓柒
a13f605977
更新 WebUI 配置,移除 host 和 port 字段,改为从环境变量读取;更新配置模板版本至 7.2.5,并添加相关说明。
2025-12-20 12:35:15 +08:00
墨梓柒
35c16d2bf3
fix: 修复日志信息格式,统一 IPv6 本地访问提示
2025-12-19 16:51:57 +08:00
墨梓柒
849ffb06dc
feat: 更新 WebUI 服务器配置,支持 IPv4 和 IPv6 地址显示
2025-12-19 16:51:14 +08:00
墨梓柒
3231995ebd
feat: 增强 WebUI 配置,支持防爬虫和安全 Cookie 设置
2025-12-19 00:44:22 +08:00
墨梓柒
e46e93e0b6
feat: 添加插件原始配置的获取和更新接口,支持配置文件备份
2025-12-18 14:02:16 +08:00
墨梓柒
48f2d1c33c
feat: 增强 Cookie 设置日志,提供 HTTPS 配置建议
2025-12-16 13:19:47 +08:00
墨梓柒
a5880522e7
feat: 增强认证 Cookie 设置,支持协议检测和跳过注释行
2025-12-16 13:04:37 +08:00
墨梓柒
4482be7142
feat: 更新认证 Cookie 设置和状态检查日志记录
2025-12-16 12:50:13 +08:00
墨梓柒
74a2f4346a
Ruff Format
2025-12-14 21:39:09 +08:00
陈曦
debc39bacf
bug:修复前端认证错误处理401导致无法登录的问题
...
修改 get_ws_token 的行为:当认证缺失或已过期时,返回 HTTP 200 且 success=False,而不是 401。这样可以避免用户停留在登录页面时,前端因收到 401 而不必要地刷新页面。
2025-12-14 21:27:04 +08:00