Commit Graph

108 Commits

Author SHA1 Message Date
SengokuCola
01ba4f55c2 移除不再使用的聊天总结,移除路径显示配置项,修复回复器错判的一个问题 2026-04-13 18:57:50 +08:00
tcmofashi
8bfe3e7036 Merge pull request #1578 from tcmofashi/rdev
feat: add a subagent frame
2026-04-03 23:26:06 +08:00
tcmofashi
7b9e1cf925 ruff 2026-04-03 23:18:30 +08:00
Dawn ARC
b6db0455c5 Merge branch 'Mai-with-u:r-dev' into r-dev 2026-04-03 21:27:19 +08:00
SengokuCola
ce580d1f8b feat:可以查看转发消息,新增复杂消息,修复表情包缓存,修改bot自己的消息回调msg_id 2026-04-03 20:55:49 +08:00
DawnARC
291420b7c7 merge: 同步 upstream/r-dev 并解决冲突 2026-04-03 19:56:45 +08:00
SengokuCola
fc753f7e9f feat:maisak正确解析图片原始数据,reply信息 2026-04-03 17:22:53 +08:00
DrSmoothl
7d0d429640 feat: Enhance plugin runtime configuration and hook management
- Added `inactive_plugins` field to `RunnerReadyPayload` and `ReloadPluginResultPayload` to track plugins that are not activated due to being disabled or unmet dependencies.
- Introduced `InspectPluginConfigPayload` and `InspectPluginConfigResultPayload` for inspecting plugin configuration metadata.
- Implemented `PluginActivationStatus` enum to better represent plugin activation states.
- Updated `_activate_plugin` method to return activation status and handle inactive plugins accordingly.
- Added hooks for send service to allow modification of messages before and after sending.
- Created new runtime routes for listing hook specifications in the WebUI.
- Refactored plugin configuration handling to utilize runtime inspection for better accuracy and flexibility.
- Enhanced error handling and logging for plugin configuration operations.
2026-04-02 21:16:31 +08:00
A-Dawn
a004c59e1e feat: 添加记忆自动化钩子与回写
在接收和发送消息时注册记忆自动化,并重构人物记忆回写逻辑以使用 memory_service.ingest_text。主要改动如下:

在接收消息时调用 memory_automation_service.on_incoming_message(bot 侧),在发送消息时调用 on_message_sent(send_service 侧),并加入安全的错误处理。
在 person_info 中,用 memory_service.ingest_text 替换手动操作 person.memory_points 的方式;新增 resolve_person_id_for_memory 辅助方法,并为回写计算一个 external_id 指纹。
扩展插件运行时的记忆搜索能力,使其支持 mode、chat_id、person_id、user_id、group_id、时间范围以及 respect_filter 选项。
改进 find_messages 的数据库会话处理,改为使用单一 session,并修复排序和过滤逻辑。
从 KnowledgeFetcher 中移除未使用的 LLMRequest 导入和初始化。
更新术语解释器(jargon explainer)的导入路径,使用新的模块位置。
更新 .gitignore 例外规则,允许特定的 pytest 数据文件被纳入版本控制。
文档小调整:明确人物事实提取规则(将直接使用的 “you” 改写为第三人称)。
2026-03-31 15:49:49 +08:00
DrSmoothl
dc2bf02a42 feat: Introduce unified tooling system for plugins and MCP
- Added a new `tooling` module to define a unified model for tool declarations, invocations, and execution results, facilitating compatibility between plugins, legacy actions, and MCP tools.
- Implemented `ToolProvider` interface for various tool providers including built-in tools, MCP tools, and plugin runtime tools.
- Enhanced `MCPManager` and `MCPConnection` to support unified tool invocation and execution results.
- Updated `ComponentRegistry` and related classes to accommodate the new tool specifications and descriptions.
- Refactored existing components to utilize the new tooling system, ensuring backward compatibility with legacy actions.
- Improved error handling and logging for tool invocations across different providers.
2026-03-30 23:11:56 +08:00
SengokuCola
614d2f43d6 私聊也走maisaka 2026-03-29 15:25:14 +08:00
DrSmoothl
7a460a474d feat: 更新多个文件以使用 SessionMessage 替代 MaiMessage,并调整相关逻辑 2026-03-28 13:39:48 +08:00
DrSmoothl
0a08973c41 feat: Enhance emoji and image management with asynchronous background processing
- Added support for scheduling background tasks to build emoji and image descriptions when not found in cache.
- Improved error handling and logging for emoji and image processing.
- Updated `SessionMessage` processing to allow for optional heavy media analysis and voice transcription.
- Refactored logging messages for better clarity and consistency across various modules.
- Introduced a new function to build outbound log previews for messages, enhancing logging capabilities.
2026-03-26 23:03:47 +08:00
SengokuCola
a5fc4d172d feat:提供原生vlm支持 2026-03-24 20:57:57 +08:00
DrSmoothl
0c508995dd feat: enhance session ID calculation and plugin management
- Updated `calculate_session_id` method in `SessionUtils` to include optional `account_id` and `scope` parameters for more granular session ID generation.
- Added new environment variables in `plugin_runtime` for external plugin dependencies and global configuration snapshots.
- Introduced methods in `RuntimeComponentManagerProtocol` for loading and reloading plugins globally, accommodating external dependencies.
- Enhanced `PluginRunnerSupervisor` to manage external available plugin IDs during plugin reloads.
- Implemented dependency extraction and management in `PluginRuntimeManager` to handle cross-supervisor dependencies.
- Added tests for session ID calculation and message registration in `ChatManager` to ensure correct behavior with new parameters.
2026-03-24 12:14:58 +08:00
DrSmoothl
18a0e7664a Refactor plugin runtime components and enhance message handling
- Removed unused core action mirror functionality from PluginRunnerSupervisor.
- Simplified action and command execution logic in send_service.py.
- Introduced ComponentQueryService for unified component querying in plugin runtime.
- Enhanced message component handling with new binary component support.
- Improved message sequence construction and detection of outbound message flags.
- Updated methods for sending messages to streamline the process and improve readability.
2026-03-24 12:14:41 +08:00
UnCLAS-Prommer
593400c0aa bot.py支持gateway的修改 2026-03-24 12:13:17 +08:00
DrSmoothl
172615f18a WebUI 前端 & 后端超级大重构 2026-03-14 21:06:36 +08:00
DrSmoothl
1d40168c81 优化命令处理逻辑,新增命令消息标记和存储功能 2026-03-14 00:44:30 +08:00
DrSmoothl
a576313b22 Ruff Format 2026-03-13 11:45:26 +08:00
DrSmoothl
0d9eff7001 feat: 更新命令查找逻辑,支持返回匹配的命名捕获组,并优化旧连接请求处理 2026-03-13 10:37:07 +08:00
UnCLAS-Prommer
272d0368b8 注释掉pfc内容,暂时恢复部分代码保证可启动性 2026-03-13 01:02:05 +08:00
DrSmoothl
8f7f31a164 feat: 优化插件调用逻辑,重构命令匹配和事件处理,增强插件管理能力 2026-03-13 00:47:09 +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
baae2df154 feat: 集成新版本插件运行时,支持事件桥接与命令处理 2026-03-06 16:37:56 +08:00
UnCLAS-Prommer
a39ccedb9a 应要求提交上未完成的HFC, expression部分 2026-02-28 21:14:46 +08:00
DrSmoothl
eaef7f0e98 Ruff Format 2026-02-21 16:24:24 +08:00
墨梓柒
7bdd394bf0 将PFC加回来,修复一大堆PFC的神秘报错 2026-01-16 03:36:25 +08:00
墨梓柒
e680a4d1f5 Ruff format 2025-12-13 17:14:09 +08:00
SengokuCola
eb86d3ed43 remove:移除情绪功能 2025-12-07 00:56:06 +08:00
SengokuCola
056a909c77 feat:将是否拦截改为拦截登记 2025-12-03 09:52:23 +08:00
SengokuCola
265d946ebd feat:正确拦截消息 2025-11-26 16:09:44 +08:00
墨梓柒
7839acd25d Ruff fix 2025-11-13 13:24:55 +08:00
xiaoxi68
12bd9f368d fix(bot): 恢复戳一戳正常响应 2025-11-10 19:04:00 +08:00
xiaoxi68
cb5962f739 fix: 撤回通知日志优化并避免二次空日志 2025-10-30 13:22:29 +08:00
exynos
817154a72b 标准化“被@”识别与平台解耦:更改 maim_message 以适配tg等后续平台的视频 2025-10-13 16:00:15 +08:00
SengokuCola
92e90a0bee feat:添加频率精准控制,移除s4u代码,优化tool返回值 2025-10-02 01:19:05 +08:00
SengokuCola
aeeceeb32b fix:修复转义问题 2025-10-02 00:06:50 +08:00
墨梓柒
e9a5488b62 Ruff Fix 2025-09-28 00:02:18 +08:00
UnCLAS-Prommer
a2bbbf263c fix filter 2025-09-24 19:52:55 +08:00
UnCLAS-Prommer
680593d57c fix #1253 2025-09-23 21:02:03 +08:00
magisk317
89fb98c7f4 Fix TypeError in _check_ban_regex by handling NoneType raw_message
- Add None check for text parameter in _check_ban_regex function
- Prevents TypeError when message.raw_message is None
- Fixes issue: expected string or bytes-like object, got 'NoneType'
2025-09-17 11:28:44 +08:00
UnCLAS-Prommer
d560d02761 echo消息处理 2025-09-14 16:17:44 +08:00
UnCLAS-Prommer
ab64eee343 action, command, event_handler易用方法更新,增加语音,混合,转发消息的发送 2025-09-14 00:14:01 +08:00
UnCLAS-Prommer
87529b63e3 添加更多种类的发送类型 2025-09-09 22:34:10 +08:00
UnCLAS-Prommer
b636683fe4 增加了event_handler修改内容的方法 2025-09-07 01:15:21 +08:00
UnCLAS-Prommer
6bbf9ed216 typo 2025-08-22 00:30:41 +08:00
UnCLAS-Prommer
1461338c0c typing fix 2025-08-13 22:51:34 +08:00
SengokuCola
f0fff5a039 fix:person创建和调用区分 2025-08-12 15:15:50 +08:00