Commit Graph

350 Commits

Author SHA1 Message Date
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
UnCLAS-Prommer
9186d14100 解决ConfigBase问题,更严格测试,实际测试 2026-01-15 17:05:23 +08:00
UnCLAS-Prommer
fd46d8a302 Merge branch 'dev' into r-dev 2026-01-12 22:44:43 +08:00
UnCLAS-Prommer
13f095f231 使用Sourcery的Test,修复测出来的Bug 2026-01-12 21:48:54 +08:00
SengokuCola
ccc9af57b8 ref:记忆检索不再基于问题,而是基于上下文;添加一些调试用配置 2026-01-12 19:05:07 +08:00
UnCLAS-Prommer
207dc460cb ConfigBase and Test 2026-01-12 18:20:03 +08:00
SengokuCola
87d4c7c38a remove:移除Planner问题配置项 2026-01-12 00:37:50 +08:00
SengokuCola
a8c25cdc15 feat:wait可被打断,不推荐修改私聊planner 2026-01-06 22:40:46 +08:00
SengokuCola
71a85667e3 feat:可选,由llm执行回复 2025-12-31 00:43:08 +08:00
SengokuCola
67c24f84cd feat:日志上线数量可更改 2025-12-31 00:07:55 +08:00
SengokuCola
a6e1a0e7d3 feat:可添加的评估标准 2025-12-27 17:48:28 +08:00
SengokuCola
f92136bffc feat;模型选择现在可以使用完全随机的策略
Update model_config_template.toml
2025-12-27 17:34:26 +08:00
SengokuCola
99665e7918 feat:新增自动表达优化功能,优化表达方式的提取 2025-12-27 17:20:11 +08:00
墨梓柒
fe75dad3bb feat:添加对Optional类型的安全检查,禁止多类型Union 2025-12-24 21:59:54 +08:00
墨梓柒
e1c03608c2 feat:支持Union/Optional类型的字段转换,增强配置加载的灵活性 2025-12-24 21:57:35 +08:00
SengokuCola
7cbc2f1462 remove:移除utils_small模型,统一使用tool_use模型,移除弃用的LLM_judge类型 2025-12-24 19:28:44 +08:00
SengokuCola
a3c3fcf518 remove:无用模型 2025-12-24 18:53:15 +08:00
SengokuCola
0852af49f9 feat;优化了记忆检索的速度和token消耗(将question提出交给planenr) 2025-12-24 18:43:32 +08:00
墨梓柒
a13f605977 更新 WebUI 配置,移除 host 和 port 字段,改为从环境变量读取;更新配置模板版本至 7.2.5,并添加相关说明。 2025-12-20 12:35:15 +08:00