Commit Graph

368 Commits

Author SHA1 Message Date
SengokuCola
cecc58a9e7 feat:使用url阅览图片,标记表情包类消息 2026-04-01 16:21:30 +08:00
SengokuCola
5b92942194 feat:修改图片展示模式,合并no_reply和stop 2026-04-01 14:26:03 +08:00
SengokuCola
503a257d66 remove:无用配置 2026-04-01 13:06:01 +08:00
DrSmoothl
5ac088ded8 feat: 更新配置版本至 8.4.0,新增工具筛选相关字段和方法 2026-03-31 00:03:49 +08:00
DrSmoothl
42dbd5462a feat(mcp_module): add hooks, host LLM bridge, and models for MCP integration
- Introduced MCPHostCallbacks for optional host capabilities like sampling and logging.
- Implemented MCPHostLLMBridge to handle MCP Sampling requests and bridge to LLM service.
- Created models for structured data conversion between MCP SDK and internal data models, including tool content items, prompts, and resources.
- Enhanced error handling and logging for better traceability during sampling operations.
2026-03-30 23:51:05 +08:00
DrSmoothl
abb1d071b1 feat: 重构 MCP 配置管理,移除旧配置文件,更新为使用全局配置 2026-03-30 23:32:13 +08:00
SengokuCola
82bbf0fd52 remove:移除tool_use模型,修复Jargon提取问题,修改统计为tool统计 2026-03-29 16:26:34 +08:00
SengokuCola
5876f246c0 feat:重新启用表达学习黑话学习,黑话使用和表达使用 2026-03-29 14:39:07 +08:00
SengokuCola
c545b24966 feat:优化maisak循环逻辑,分离接受和处理,移除冗余config.py 2026-03-28 15:23:38 +08:00
DrSmoothl
777d4cb0d2 feat: Enhance OpenAI compatibility and introduce unified LLM service data models
- Refactored model fetching logic to support various authentication methods for OpenAI-compatible APIs.
- Introduced new data models for LLM service requests and responses to standardize interactions across layers.
- Added an adapter base class for unified request execution across different providers.
- Implemented utility functions for building OpenAI-compatible client configurations and request overrides.
2026-03-26 16:15:42 +08:00
SengokuCola
a5fc4d172d feat:提供原生vlm支持 2026-03-24 20:57:57 +08:00
SengokuCola
6cfc92e66f feat:添加maisaka接管回复逻辑 2026-03-24 18:11:15 +08:00
SengokuCola
418a05effd Merge branch 'r-dev' of https://github.com/Mai-with-u/MaiBot into r-dev 2026-03-24 15:42:03 +08:00
SengokuCola
37f45d48c5 feat:maisaka使用主程序的message格式,优化逻辑,移除冗余模块 2026-03-24 15:41:58 +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
310d7798ba refactor: hook_dispatcher相关的修改 2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
668f41431a 移除无用配置 2026-03-24 12:13:17 +08:00
SengokuCola
e7ca3142e9 feat:修改maisaka 2026-03-23 17:55:39 +08:00
DrSmoothl
a576313b22 Ruff Format 2026-03-13 11:45:26 +08:00
DrSmoothl
f3270d4d41 feat: 添加插件运行时配置类,增强会话令牌管理和插件目录支持 2026-03-13 00:11:00 +08:00
春河晴
27d334df08 i18n: wire startup and config messages 2026-03-12 17:24:37 +09:00
SengokuCola
664f900f43 ref:让MaiSaka使用麦麦原有的pompt系统,配置系统 2026-03-11 21:25:35 +08:00
SengokuCola
8f13c4804b remove:移除表达反思功能 2026-03-11 20:52:54 +08:00
SengokuCola
045bd5e183 remove:移除传统记忆模式,默认开启lpmm模式 2026-03-11 18:20:34 +08:00
SengokuCola
788de70450 remove:移除做梦功能 2026-03-11 14:49:37 +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
b056ad2c34 feat: 添加动态 Tab 分组支持,优化配置界面 UI 元数据 2026-03-07 23:13:04 +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
UnCLAS-Prommer
b9faed4924 拆分新的utils 2026-02-27 22:07:26 +08:00
UnCLAS-Prommer
e253a2ed2a 分离提及和at必回复 2026-02-27 16:11:47 +08:00
DrSmoothl
eaef7f0e98 Ruff Format 2026-02-21 16:24:24 +08:00
DrSmoothl
ed27217c94 feat(config): add UI metadata to all Bot config sections
- BotConfig: 5/5 fields (100%)
- ChatConfig: 9/9 fields (100%)
- PersonalityConfig: 8/8 fields (100%)
- MemoryConfig: 9/9 fields (100%)
- ExpressionConfig: 13/13 fields (100%)
- WebUIConfig: 8/8 fields (100%)
- DatabaseConfig: 1/1 fields (100%)

All user-facing fields now have x-widget and x-icon metadata.
Complex fields marked as 'custom' for Hook rendering.

Completes Task 9 of webui-config-visualization-refactor plan.
2026-02-17 17:35:18 +08:00
DrSmoothl
bae87d122b feat(config): add UI metadata to ModelConfig fields
Add json_schema_extra UI metadata to all Model-related configuration classes:
- APIProvider (7 fields): name, base_url, api_key, client_type, max_retry, timeout, retry_interval
- ModelInfo (8 fields): model_identifier, name, api_provider, price_in, price_out, temperature, max_tokens, force_stream_mode, extra_params
- TaskConfig (5 fields): model_list, max_tokens, temperature, slow_threshold, selection_strategy
- ModelTaskConfig (9 fields): utils, replyer, vlm, voice, tool_use, planner, embedding, lpmm_entity_extract, lpmm_rdf_build

Pattern: Field(default=..., [ge/le constraints], json_schema_extra={x-widget, x-icon, [step]})
Widget types: input, slider, switch, select, custom (for complex types)
Constraints mapped: ge/le to minValue/maxValue in Schema output (Task 1d)

All 30 user-facing fields now have complete metadata coverage:
- x-widget: rendering hint for frontend
- x-icon: icon identifier from lucide-react
- Constraints: ge, le for numeric validation

Verification:
✓ All classes import successfully
✓ 100% metadata coverage on user-facing fields
✓ Config instance creation works
✓ Backward compatible with existing validation

Relates to: Task 12 (Wave 3) of webui-config-visualization-refactor
2026-02-17 17:25:48 +08:00
DrSmoothl
5879164bfe feat(config): add UI metadata to remaining ChatConfig fields (Wave 2)
- plan_reply_log_max_per_chat: input widget + file-text icon
- llm_quote: switch widget + quote icon
- enable_talk_value_rules: switch widget + settings icon
- talk_value_rules: custom widget + list icon

All ChatConfig fields now have json_schema_extra metadata for complete UI visualization support.
2026-02-17 17:09:07 +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
1631774452 feat(config): add UI metadata to ChatConfig sample fields 2026-02-17 16:49:49 +08:00
DrSmoothl
0dccc23e76 更新 GitHub Actions 工作流,统一使用 ubuntu-24.04 作为运行环境;新增发布 WebUI 产物的工作流 2026-02-15 16:19:13 +08:00
UnCLAS-Prommer
6db889580d 方便消息格式检查的property 2026-02-14 23:52:58 +08:00
DrSmoothl
dc36542403 添加文件监视器地基模块,重构模型请求模块使用新版本的配置热重载模块,新增watchfiles依赖 2026-02-14 21:17:24 +08:00
UnCLAS-Prommer
b9f3c17e14 合并到远程 2026-02-13 13:41:58 +08:00
SengokuCola
3a5fd9d3e3 feat:自动检测并升级旧版配置文件 2026-02-06 23:05:43 +08:00
UnCLAS-Prommer
4dbe919cfe 移除.env文件 2026-02-05 16:16:44 +08:00
UnCLAS-Prommer
c15b77907e Prompt管理器与测试;调整部分方法名称 2026-01-20 14:00:15 +08:00
UnCLAS-Prommer
3a66bfeac1 恢复可用性 2026-01-16 23:03:45 +08:00
墨梓柒
7bdd394bf0 将PFC加回来,修复一大堆PFC的神秘报错 2026-01-16 03:36:25 +08:00
UnCLAS-Prommer
77725ba9d8 逐步适配新的config 2026-01-15 23:51:19 +08:00
UnCLAS-Prommer
c8b4366501 忘了引入webui了 2026-01-15 17:24:06 +08:00
UnCLAS-Prommer
b6fb74e8c8 补上webui config 2026-01-15 17:17:21 +08:00
UnCLAS-Prommer
7c23c6466b 怎么重复了一块配置 2026-01-15 17:14:23 +08:00