DrSmoothl
7f1e79ea28
feat: 添加旧版插件兼容性支持,确保旧版插件能够正常加载
2026-03-10 13:48:24 +08:00
UnCLAS-Prommer
e437468444
final commit
2026-03-10 13:48:24 +08:00
UnCLAS-Prommer
cd81f943e3
炸掉
2026-03-10 13:45:57 +08:00
DrSmoothl
dfa944b368
feat: 添加 _ready_event 以确保文件监视器在启动时准备就绪,优化监控逻辑
2026-03-09 15:04:58 +08:00
DrSmoothl
426cbc6190
feat(test): 在 FileWatcher 中添加 force_polling 参数以增强文件监控功能
2026-03-09 14:42:03 +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
3bbd812bc1
feat: 新增消息转发和混合发送能力,扩展数据库操作能力
2026-03-07 20:17:17 +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
UnCLAS-Prommer
8712fc0d05
移除多余内容
2026-03-06 23:07:31 +08:00
UnCLAS-Prommer
c2b75a03d7
数据库模型字段添加;数据模型添加;utils_message传参控制
2026-03-06 22:45:47 +08:00
DrSmoothl
baae2df154
feat: 集成新版本插件运行时,支持事件桥接与命令处理
2026-03-06 16:37:56 +08:00
DrSmoothl
d5cf4c9b8b
refactor: 添加类型注解以增强代码可读性和类型安全
2026-03-06 12:35:31 +08:00
DrSmoothl
c6afa97060
补全新版插件系统的类型注解
2026-03-06 12:17:00 +08:00
DrSmoothl
1cd366bc09
refactor: 优化代码结构,简化条件判断和异常处理
2026-03-06 12:00:00 +08:00
DrSmoothl
2f21cd00bc
feat: Enhance plugin runtime with new component registry and workflow executor
...
- Introduced `ComponentRegistry` for managing plugin components with support for registration, enabling/disabling, and querying by type and plugin.
- Added `EventDispatcher` to handle event distribution to registered event handlers, supporting both blocking and non-blocking execution.
- Implemented `WorkflowExecutor` to manage a linear workflow execution across multiple stages, including command routing and error handling.
- Created `ManifestValidator` for validating plugin manifests against required fields and version compatibility.
- Updated `RPCClient` to use `MsgPackCodec` for message encoding.
- Enhanced `PluginRunner` to support lifecycle hooks for plugins, including `on_load` and `on_unload`.
- Added sys.path isolation to restrict plugin access to only necessary directories.
2026-03-06 11:55:59 +08:00
DrSmoothl
61dc15a513
feat(plugin-runtime): add plugin isolation IPC infrastructure
...
- Protocol layer: Envelope model with Pydantic schema, MsgPack/JSON codecs, unified error codes
- Transport layer: cross-platform IPC abstraction with 4-byte length-prefixed framing (UDS + TCP fallback)
- Host: RPC server, policy engine, circuit breaker, capability service, supervisor with hot-reload
- Runner: RPC client, plugin loader, process entry point
- Tests: 16 passing tests covering protocol, transport, host, and E2E handshake
2026-03-06 02:01:30 +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
2a33fd1121
refactor(llm): enable hot-reload for model config and client runtime
...
make LLM task config resolution dynamic in LLMRequest
load model clients on demand from latest config
clear client instance cache on config reload
remove stale module-level model_config usage in llm_api
add hot-reload tests for LLM/config watcher flow
2026-03-04 21:56:50 +08:00
DrSmoothl
b3a81754e6
feat(config): harden file watcher hot-reload flow and add test coverage
...
refactor FileWatcher to subscription-based dispatch with path/change filters
add callback timeout, failure cooldown, auto-retry loop, and runtime stats
strengthen ConfigManager hot-reload with throttling, timeout guard, and watcher stats logging
add pytest suites for watcher behavior and config hot-reload edge cases
2026-03-04 21:39:26 +08:00
DrSmoothl
5cccdf6715
feat(llm): 添加响应格式转换功能,支持JSON_SCHEMA输出
2026-03-04 21:11:10 +08:00
UnCLAS-Prommer
81bc25dba8
Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev
2026-03-04 21:06:53 +08:00
UnCLAS-Prommer
d03dc3601e
消息构建器:将消息转换为可读消息;其对应的测试文件
2026-03-04 21:01:51 +08:00
晴猫
46babf7294
添加TODO注释以提醒测试trigger_tracker方法
2026-03-03 02:18:59 +09:00
晴猫
71a5acbac5
优化ReflectTracker逻辑,确保在追踪时表达不为None,简化代码并增强可读性
2026-03-03 02:18:04 +09:00
晴猫
efaff7ac60
实现追踪检查逻辑,添加消息数量和LLM判断,更新表达并持久化到数据库
2026-03-03 02:18:04 +09:00
UnCLAS-Prommer
c16ced765e
适配db的修改;MessageComponent更新
2026-03-02 20:37:15 +08:00
UnCLAS-Prommer
3f93d93b9a
补上default
2026-03-02 20:34:52 +08:00
UnCLAS-Prommer
0751ac5066
Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev
2026-03-02 17:23:45 +08:00
UnCLAS-Prommer
e200b5b581
给Expression系统的一些准备文件
2026-03-02 17:18:13 +08:00
DrSmoothl
416bf36f1a
refactor(database_model): replace Literal with Enum for modified_by field
2026-02-28 22:47:40 +08:00
UnCLAS-Prommer
1e917cc87d
Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev
2026-02-28 21:16:41 +08:00
UnCLAS-Prommer
a39ccedb9a
应要求提交上未完成的HFC, expression部分
2026-02-28 21:14:46 +08:00
DrSmoothl
5f5bdab85d
补全 WebUI 缺失文件
2026-02-28 20:50:04 +08:00
UnCLAS-Prommer
c58da95353
链式调用构建消息
2026-02-28 16:54:38 +08:00
UnCLAS-Prommer
78983c4ed8
expression
2026-02-28 15:57:44 +08:00
UnCLAS-Prommer
b9faed4924
拆分新的utils
2026-02-27 22:07:26 +08:00
UnCLAS-Prommer
e253a2ed2a
分离提及和at必回复
2026-02-27 16:11:47 +08:00
UnCLAS-Prommer
7ef21c516a
一点注释和渲染修改
2026-02-24 16:01:39 +08:00
UnCLAS-Prommer
a8e8f6b7b3
HFC对应修改(部分)
2026-02-24 15:59:35 +08:00
UnCLAS-Prommer
0d07e85434
全新的process方法完成(Message其他部分仍未完成);对应测试;调整部分注释;数据库检索优化
2026-02-23 21:29:17 +08:00
UnCLAS-Prommer
698b8355a4
移除旧文件;补充chat_manager方法
2026-02-22 22:33:54 +08:00
UnCLAS-Prommer
37f8c923c1
ChatSession(原ChatStream)与ChatManager;由于功能简单,测试略
2026-02-22 22:26:28 +08:00
UnCLAS-Prommer
04a5bf3c6d
Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev
2026-02-21 23:50:53 +08:00
UnCLAS-Prommer
8674f50d90
PersonInfo相关提交,添加注释,重命名文件
2026-02-21 23:50:18 +08:00