MaiBot/src/config
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
..
__init__.py ConfigBase and Test 2026-01-12 18:20:03 +08:00
config.py 更新 GitHub Actions 工作流,统一使用 ubuntu-24.04 作为运行环境;新增发布 WebUI 产物的工作流 2026-02-15 16:19:13 +08:00
config_base.py feat(webui): enhance ConfigSchemaGenerator with field_docs and UI metadata 2026-02-17 17:05:25 +08:00
config_utils.py 添加文件监视器地基模块,重构模型请求模块使用新版本的配置热重载模块,新增watchfiles依赖 2026-02-14 21:17:24 +08:00
file_watcher.py 添加文件监视器地基模块,重构模型请求模块使用新版本的配置热重载模块,新增watchfiles依赖 2026-02-14 21:17:24 +08:00
legacy_migration.py feat:自动检测并升级旧版配置文件 2026-02-06 23:05:43 +08:00
model_configs.py 解决ConfigBase问题,更严格测试,实际测试 2026-01-15 17:05:23 +08:00
official_configs.py feat(webui): enhance ConfigSchemaGenerator with field_docs and UI metadata 2026-02-17 17:05:25 +08:00