Commit Graph

5470 Commits

Author SHA1 Message Date
DrSmoothl
a0c653de45 docs: 更新注释规范和语言规范,强调使用 Google DocStr 格式和简体中文 2026-03-24 12:14:41 +08:00
DrSmoothl
89df7ccf6b feat: 添加 NapCat 适配器的入站消息编解码功能,增强插件配置更新逻辑和数据库交互测试 2026-03-24 12:14:28 +08:00
DrSmoothl
56a6d2fd8c refactor: 优化数据库操作和模型定义,增强表达方式和黑话表的插入逻辑 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
dd20cd4992 refactor: 增强文档注释 2026-03-24 12:14:28 +08:00
DrSmoothl
a1859027ef refactor: 优化颜色映射和别名定义,增强模块一致性 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
75cd50ee0f refactor: 更新能力实现注册和请求处理,增强类型一致性 2026-03-24 12:13:17 +08:00
DrSmoothl
e4850c469f feat: Enhance plugin loading and management
- Added module_name parameter to PluginMeta for better module tracking.
- Improved documentation for PluginMeta and PluginLoader methods.
- Introduced methods for managing loaded plugins: set_loaded_plugin, remove_loaded_plugin, and purge_plugin_modules.
- Enhanced dependency resolution in PluginLoader with resolve_dependencies method.
- Implemented candidate discovery and loading in PluginLoader.
- Added support for plugin reloading with _reload_plugin_by_id in PluginRunner.
- Improved error handling and logging throughout the RPCClient and PluginRunner.
- Added support for handling hook invocations in PluginRunner.
- Refactored plugin registration and unregistration processes for clarity and efficiency.
2026-03-24 12:13:17 +08:00
DrSmoothl
07256182fb refactor(manager): 使用 List 类型替代 list,增强类型一致性 2026-03-24 12:13:17 +08:00
DrSmoothl
04f260e570 实现完整的消息中间层地基,暂未接入实际的消息流 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
3d22657707 refactor: supervisor部分方法重写 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
6cc7e37b1e refactor: 提取部分共同方法,预备supervisor 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
310d7798ba refactor: hook_dispatcher相关的修改 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
593400c0aa bot.py支持gateway的修改 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
17248a4cbc 添加message gateway组件类型 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
32519c688b refactor: event_dispatcher 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
14a0c21cbf refactor: component_registry更易理解 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
ca6fd96d4c refactor: 确认ErrorCode可以继承str,恢复原来设计 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
84a6524bd9 refactor: 移除generation;添加新的ErrorCode;修改ErrorCode的一个名称 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
49b620219d refcator: 重命名policy为authorization;移除envelope的generation(runner不再重载); 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
e1b2ecb5b1 fix: (AI) 更robust的传输 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
3419075599 feat: 添加注释;添加日志颜色自定义 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
668f41431a 移除无用配置 2026-03-24 12:13:17 +08:00
SengokuCola
03ed59e388 更改文件结构 2026-03-24 11:36:26 +08:00
SengokuCola
6a0b902e17 doc:新增英文doc作为默认,修改内容 2026-03-24 01:40:03 +08:00
SengokuCola
f431d78bff feat:优化maisaka 2026-03-24 01:30:36 +08:00
SengokuCola
620f682c38 Update .gitignore 2026-03-23 17:56:37 +08:00
SengokuCola
bfc9781c4f feat:尝试建立hfc逻辑 2026-03-23 17:56:18 +08:00
SengokuCola
e7ca3142e9 feat:修改maisaka 2026-03-23 17:55:39 +08:00
晴猫
84551460e6 fix: 限制 maibot-plugin-sdk 版本范围,避免不兼容更新 2026-03-21 12:22:58 +09:00
晴猫
6a2dc6fceb fix: 修正 .gitignore 中 CLAUDE.md 的注释格式 2026-03-21 12:15:12 +09:00
晴猫
0ecb201ad5 document link and update 2026-03-21 12:13:01 +09:00
DrSmoothl
e66b2eb662 feat: 添加安全静态文件路径解析测试,增强路径遍历保护 2026-03-19 18:05:10 +08:00
DrSmoothl
aa815f0c14 fix: 修正文档中的措辞以增强可读性和一致性 2026-03-17 14:47:51 +08:00
DrSmoothl
33d408d3ea feat: 添加 Caddy 反向代理配置示例及 TLS/SSL 文档 2026-03-17 14:40:51 +08:00
DrSmoothl
28afa6f2c2 refactor: 添加类型注解以增强代码可读性 2026-03-16 23:01:29 +08:00
DrSmoothl
a40d28a409 feat: 添加 EmojiManager 的配置热重载功能及其注销机制 2026-03-16 22:58:53 +08:00
DrSmoothl
0811213db0 feat: enhance background layer handling and uploader functionality
- Introduced automatic overlay opacity and gradient based on layer ID in BackgroundLayer component.
- Added disabled state to BackgroundUploader, preventing actions when disabled.
- Updated component CSS editor to handle disabled state, preventing changes when disabled.
- Modified Header and Layout components to manage background inheritance from the page layer.
- Improved Sidebar and Card components to respect background inheritance and layering.
- Refactored theme management to include default accent color and normalization functions.
- Enhanced AppearanceTab to manage accent color changes with debouncing and validation.
- Added UI feedback for inherited background layers in AppearanceTab.
2026-03-16 22:19:05 +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
DrSmoothl
df088205dd refactor(plugin_loader): 优化插件发现与加载逻辑,使用 Path 类型增强可读性 2026-03-16 08:22:42 +08:00
DrSmoothl
7136deac93 补充 uds 的类型注解 2026-03-16 08:16:01 +08:00
DrSmoothl
7420f84fd0 补充 named pipe 文件的类型注解 2026-03-16 08:03:51 +08:00
DrSmoothl
00c2158f76 feat: 更新 handle_config_reload 方法文档,明确配置热重载的行为和通知机制 2026-03-16 07:49:25 +08:00
UnCLAS-Prommer
6e97bead53 Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev 2026-03-15 23:53:59 +08:00
UnCLAS-Prommer
cab502e727 修复拼写;将str换为路径使其更清晰 2026-03-15 23:48:15 +08:00
DrSmoothl
ef9b0d6d08 feat(plugin_loader): 添加临时 sys.path 入口管理器以支持插件加载 2026-03-15 22:04:33 +08:00