Commit Graph

131 Commits

Author SHA1 Message Date
A-Dawn
ded5a7478d merge: sync upstream/r-dev and resolve real conflicts 2026-03-24 15:36:26 +08:00
DrSmoothl
85f060621d feat: Add NapCat adapter plugin and enhance message handling
- Introduced a built-in NapCat adapter plugin for MVP message forwarding.
- Implemented core functionalities for connecting to NapCat/OneBot v11 WebSocket service.
- Added message serialization capabilities for WebUI chat routes.
- Enhanced the RegisterPluginPayload to include optional adapter declarations.
- Implemented methods for handling external messages and adapter declarations in the PluginRunner.
- Improved the send_service to inherit platform IO route metadata for outgoing messages.
2026-03-24 12:13:17 +08:00
DawnARC
bd84e500e1 feat:新增记忆测试、检索工具与服务
新增完整的长期记忆支持及测试:引入中文记忆检索提示词、query_long_term_memory 检索工具、记忆服务与记忆流程服务,以及 WebUI 的记忆路由。新增大规模测试套件(包括单元测试与基准/在线测试),覆盖聊天历史摘要、知识获取器、事件(episode)生成、写回机制以及用户画像检索等功能。

更新多个模块以集成记忆检索能力(包括 knowledge fetcher、chat summarizer、memory_retrieval、person_info、config/legacy 迁移以及 WebUI 路由),并移除遗留的 lpmm 知识模块。这些变更完成了记忆运行时的接入,同时为基准测试提供嵌入适配器的 mock,并支持新测试与工具所需的导入与 episode 处理流程。
2026-03-18 21:35:17 +08:00
DrSmoothl
a5a6d2cb26 fix: 修复错误的插件重载机制,改为插件级区分
test: 补充新版本插件系统重载机制的测试
2026-03-16 13:27:10 +08:00
DrSmoothl
e7ac064a80 WebUI 后端类型注解补全,使用全 typing 库类型注解 2026-03-16 13:09:12 +08:00
晴猫
34a8de56c3 feat: 添加静态路径准备和自动构建功能的单元测试 2026-03-15 10:06:59 +09:00
晴猫
267b42001e fix: make bot identity platform-aware 2026-03-15 07:22:08 +09:00
DrSmoothl
292f0a1d7a feat: 增加网络安全功能,验证公共 URL 和适配器配置路径 2026-03-14 22:55:51 +08:00
DrSmoothl
1978b097e3 fix: 增加安全路径解析功能,防止路径穿越请求 2026-03-14 22:22:06 +08:00
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
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