Commit Graph

1680 Commits

Author SHA1 Message Date
SengokuCola
f2aedf7681 remove:emoji插件,修复tool被截断的问题 2026-04-01 17:06:44 +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
DrSmoothl
1f02171a63 Refactor plugin loader and runner to support enhanced manifest structure
- Updated the PluginMeta class to utilize a strongly typed PluginManifest, improving type safety and clarity.
- Refactored dependency extraction logic to streamline the handling of plugin dependencies.
- Modified the PluginLoader to accommodate new manifest versioning and validation processes.
- Enhanced the PluginRunner to work with a dictionary for external available plugins, allowing for version mapping.
- Updated built-in plugins' manifest files to version 2, adding URLs and SDK versioning for better integration and documentation.
- Improved error handling and logging for plugin loading and dependency resolution processes.
2026-03-24 12:14:59 +08:00
DrSmoothl
d13767ee21 feat: Enhance plugin configuration management and SDK integration
- Add support for configuration reload scopes in the plugin runtime.
- Implement validation for SDK plugins to ensure required lifecycle methods are overridden.
- Update the configuration update handling to include scope information.
- Introduce tests for expression auto-check task and NapCat adapter SDK integration.
- Refactor configuration management to support callbacks with variable arguments.
- Improve plugin loading and error handling for configuration updates.
- Ensure that plugins can manage their own configuration updates effectively.
2026-03-24 12:14:58 +08:00
UnCLAS-Prommer
0066224251 fix: remove nc ada 2026-03-24 12:14:41 +08:00
DrSmoothl
89df7ccf6b feat: 添加 NapCat 适配器的入站消息编解码功能,增强插件配置更新逻辑和数据库交互测试 2026-03-24 12:14:28 +08:00
DrSmoothl
baabe4463e feat: add NapCat built-in adapter with configuration, filters, and transport layer
- Implemented configuration parsing for NapCat adapter including server, chat, and filter settings.
- Added message filtering logic to handle inbound chat messages based on user and group lists.
- Developed a transport layer for WebSocket communication with the NapCat server.
- Created a query service for fetching user and group information from the QQ platform.
- Implemented runtime state management to report connection status to the host.
- Added notice handling for various QQ platform events.
2026-03-24 12:14:28 +08:00
DrSmoothl
4e2e7a279e feat: Implement adapter runtime state management and update handling
- Added support for adapter runtime state updates in the PluginRunnerSupervisor.
- Introduced new payload classes: AdapterStateUpdatePayload and AdapterStateUpdateResultPayload for handling state updates.
- Implemented methods to bind and unbind routes based on adapter connection status.
- Enhanced the NapCat adapter to report connection state and manage runtime state.
- Added tests for adapter runtime state synchronization and database session behavior in the statistic module.
- Updated existing methods to ensure proper handling of adapter state and route bindings.
2026-03-24 12:14:28 +08:00
DrSmoothl
780cd4f767 refactor: 更新插件和 RPC 服务器逻辑,增强握手状态管理与配置校验 2026-03-24 12:14:28 +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
DrSmoothl
ca605eb560 移除部分内置插件 2026-03-13 17:42:20 +08:00
DrSmoothl
262efa2302 feat: 优化表情包插件和 TTS 插件的异步调用,简化错误处理逻辑 2026-03-13 16:31:59 +08:00
DrSmoothl
a576313b22 Ruff Format 2026-03-13 11:45:26 +08:00
DrSmoothl
ce8d8dfd0a 重构整个插件系统,尝试恢复可启动性,新增插件系统maibot-plugin-sdk依赖 2026-03-07 19:40:51 +08:00
SengokuCola
7cbc2f1462 remove:移除utils_small模型,统一使用tool_use模型,移除弃用的LLM_judge类型 2025-12-24 19:28:44 +08:00
SengokuCola
b73a748f52 feat:优化think_mode,修复表情包选取bug 2025-12-13 00:12:13 +08:00
Ronifue
9b6ca0e0a5 fix: 修复lpmm_search_knowledge工具中limit参数定义错误 2025-11-30 14:24:51 +08:00
SengokuCola
bf71fe739d fix:emoji使用utils模型而不是replyer 2025-11-20 01:28:16 +08:00
SengokuCola
43754b5c18 feat:优化记忆查询表现 2025-11-18 19:38:45 +08:00
SengokuCola
837ecf702b remove:无用代码 2025-11-10 12:46:27 +08:00
SengokuCola
98c85d8d1d fix:修复私聊记忆 2025-11-09 17:35:43 +08:00
SengokuCola
94405856ff remove:移除relation内容 2025-11-09 13:58:45 +08:00
SengokuCola
a8f4863d2f feat:添加术语推断和术语理解 2025-11-07 02:21:51 +08:00
SengokuCola
3e5058eb0f fix:优化记忆提取,提供细节prompt debug项目 2025-11-03 22:41:21 +08:00
SengokuCola
7660be7076 ref:修改默认推荐模型为v3.2和r1 2025-10-26 23:06:11 +08:00
SengokuCola
c5b9bc4927 better:优化记忆构建和合并 2025-10-25 23:58:58 +08:00
SengokuCola
00c8144d49 better:修改get_memoy tool以处理没有提取到记忆的情况 2025-10-25 22:02:49 +08:00
SengokuCola
bd5fc8969b ref:将make_question从Plugin改为回复前工作;为tool添加chat_id字段 2025-10-25 15:56:17 +08:00
SengokuCola
5ee3d7ea43 feat:为问题总结添加过滤提示词 2025-10-14 13:44:36 +08:00
SengokuCola
a1d84084bf remvoe:移除关系组件 2025-10-14 13:22:31 +08:00
SengokuCola
a3009e0128 fix:修复taget中的图片展示错误的问题 2025-10-05 15:07:08 +08:00
SengokuCola
fe3e15ce32 fix 2025-10-04 21:20:25 +08:00
SengokuCola
5e1479bc85 fix:小Bug 2025-10-04 21:08:53 +08:00
SengokuCola
a647b8fb74 feat:隔离所有记忆和问题 2025-10-04 20:24:46 +08:00
SengokuCola
35c3fe5b10 feat:添加来自困惑内容的主动提问发言 2025-10-04 17:18:43 +08:00
SengokuCola
dbdf650b1d ref:修改了plan的执行记录展示模式,现在每个动作的执行都会被记录 2025-10-02 20:11:44 +08:00
SengokuCola
6a0a07582e ref:彻底移除海马体,优化log 2025-10-02 01:41:38 +08:00
SengokuCola
92e90a0bee feat:添加频率精准控制,移除s4u代码,优化tool返回值 2025-10-02 01:19:05 +08:00
SengokuCola
b2eec7d3b1 fix:修复麦麦好奇和message_api的一个错误 2025-09-30 01:29:10 +08:00
SengokuCola
e2310de6b5 feat:新增麦麦好奇功能,优化记忆构建 2025-09-29 23:46:49 +08:00
SengokuCola
0683f56e23 fix:修复记忆提取的一些问题 2025-09-29 00:22:34 +08:00
SengokuCola
6b25c0295d fix:更改一些参数 2025-09-28 12:45:17 +08:00
SengokuCola
cec2c1830e Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-09-28 02:04:49 +08:00
SengokuCola
0cd39476d8 feat:新的记忆系统,deepthink插件,修复平行动作 2025-09-28 02:03:43 +08:00
墨梓柒
e9a5488b62 Ruff Fix 2025-09-28 00:02:18 +08:00
SengokuCola
0964676bfb fix:表情包管理插件可工作 2025-09-24 17:32:47 +08:00
SengokuCola
22ddaa5b72 fix:修改参数优化 2025-09-23 19:42:45 +08:00
UnCLAS-Prommer
64979332af 删除threshold 2025-09-20 10:52:08 +08:00
SengokuCola
a932ca695a feat:将relation获取变为工具 2025-09-17 21:17:52 +08:00
SengokuCola
3c7e868d6d fix ruff 2025-09-14 17:25:40 +08:00