Rumio
|
11524bcb04
|
♻️ refactor: 统一图片渲染架构并引入通用UI组件系统 (#2019)
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* ♻️ refactor: 统一图片渲染架构并引入通用UI组件系统
🎨 **渲染服务重构**
- 统一图片渲染入口,引入主题系统支持
- 优化Jinja2环境管理,支持主题覆盖和插件命名空间
- 新增UI缓存机制和主题重载功能
✨ **通用UI组件系统**
- 新增 zhenxun.ui 模块,提供数据模型和构建器
- 引入BaseBuilder基类,支持链式调用
- 新增多种UI构建器:InfoCard, Markdown, Table, Chart, Layout等
- 新增通用组件:Divider, Badge, ProgressBar, UserInfoBlock
🔄 **插件迁移**
- 迁移9个内置插件至新渲染系统
- 移除各插件中分散的图片生成工具
- 优化数据处理和渲染逻辑
💥 **Breaking Changes**
- 移除旧的图片渲染接口和模板路径
- TEMPLATE_PATH 更名为 THEMES_PATH
- 插件需适配新的RendererService和zhenxun.ui模块
* ✅ test(check): 更新自检插件测试中的渲染服务模拟
* ♻️ refactor(renderer): 将缓存文件名哈希算法切换到 SHA256
* ♻️ refactor(shop): 移除商店HTML图片生成模块
* 🚨 auto fix by pre-commit hooks
---------
Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
2025-08-15 16:34:37 +08:00 |
|
Rumio
|
7c153721f0
|
♻️ refactor!: 重构LLM服务架构并统一Pydantic兼容性处理 (#2002)
检查bot是否运行正常 / bot check (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
* ♻️ refactor(pydantic): 提取 Pydantic 兼容函数到独立模块
* ♻️ refactor!(llm): 重构LLM服务,引入现代化工具和执行器架构
🏗️ **架构变更**
- 引入ToolProvider/ToolExecutable协议,取代ToolRegistry
- 新增LLMToolExecutor,分离工具调用逻辑
- 新增BaseMemory抽象,解耦会话状态管理
🔄 **API重构**
- 移除:analyze, analyze_multimodal, pipeline_chat
- 新增:generate_structured, run_with_tools
- 重构:chat, search, code变为无状态调用
🛠️ **工具系统**
- 新增@function_tool装饰器
- 统一工具定义到ToolExecutable协议
- 移除MCP工具系统和mcp_tools.json
---------
Co-authored-by: webjoin111 <455457521@qq.com>
|
2025-08-04 23:36:12 +08:00 |
|
HibiKier
|
d218c569d4
|
✨ 格式化db_context (#1980)
* ✨ 格式化db_context
* 🔥 移除旧db-context
* ⚡ 添加旧版本兼容
|
2025-07-15 17:08:42 +08:00 |
|
Rumio
|
46a0768a45
|
✨ feat(llm): 新增LLM模型管理插件并增强API密钥管理 (#1972)
🔧 新增功能:
- LLM模型管理插件 (builtin_plugins/llm_manager/)
• llm list - 查看可用模型列表 (图片格式)
• llm info - 查看模型详细信息 (Markdown图片)
• llm default - 管理全局默认模型
• llm test - 测试模型连通性
• llm keys - 查看API Key状态 (表格图片,含健康度/成功率/延迟)
• llm reset-key - 重置API Key失败状态
🏗️ 架构重构:
- 会话管理: AI/AIConfig 类迁移至独立的 session.py
- 类型定义: TaskType 枚举移至 types/enums.py
- API增强:
• chat() 函数返回完整 LLMResponse,支持工具调用
• 新增 generate() 函数用于一次性响应生成
• 统一API调用核心方法 _perform_api_call,返回使用的API密钥
🚀 密钥管理增强:
- 详细状态跟踪: 健康度、成功率、平均延迟、错误信息、建议操作
- 状态持久化: 启动时加载,关闭时自动保存密钥状态
- 智能冷却策略: 根据错误类型设置不同冷却时间
- 延迟监控: with_smart_retry 记录API调用延迟并更新统计
Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
|
2025-07-14 22:39:17 +08:00 |
|
Rumio
|
fcb385cf01
|
♻️ refactor(scheduler): 重构定时任务服务架构并增强用户体验 (#1967)
**架构重构**
- 拆分为 Service、Repository、Adapter 三层架构,提升模块化
- 统一 APScheduler Job ID 生成方式,优化 ScheduleTargeter 逻辑
**新增功能**
- 支持定时任务时区配置
- 新增"运行中"任务状态显示
- 为"所有群组"任务增加随机延迟,分散并发压力
**用户体验优化**
- 重构操作反馈消息,提供详细的成功提示卡片
- 优化任务查看命令的筛选逻辑
- 统一删除、暂停、恢复、执行、更新操作的响应格式
Co-authored-by: webjoin111 <455457521@qq.com>
|
2025-07-10 22:20:08 +08:00 |
|
ChthollyWn
|
a6ddb726d3
|
新增插件智能模式适配 (#1850)
* 新增插件智能模式适配
* 🚨 auto fix by pre-commit hooks
* 更改类名,命名更清晰
* 🎨 添加模块化参数
* 🎨 AI模块化修改
* 🩹 道具调用修复
* 🩹 修复商品使用前检测
* ✨ retry增加参数适配
* ✨ 修改道具使用函数参数传递
* ✨ 捕获道具无法使用异常
* 🐛 添加依赖require
* 🐛 修复插件使用问题
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
|
2025-02-24 09:28:53 +08:00 |
|
HibiKier
|
73d2ed444e
|
➖ Add fastapi dependency and remove nonebot-plugin-userinfo
|
2025-01-10 12:19:11 +08:00 |
|
HibiKier
|
35014e4048
|
重构webui适配 (#1801)
* ♻️ 使用Uninfo重构PlatformUtils基础方法
* 🩹 优化插件加载与模块格式转换逻辑
* 🚑 修复商店道具无法使用
* 🚑 修复道具无法正常使用
* 🔧 增加Bot状态管理及模块禁用功能
* 🎨 优化Web UI代码结构,修改target方法
* 🚨 auto fix by pre-commit hooks
* 🎨 添加菜单API及优化异常处理
* 🐛 优化菜单API及模型结构,修复WebUi插件列表Api
* 📝 更新仓库readme
* 🚨 add mdlint file
* 📝 Add help chapter.
* 🐛 修复优化AuthChecker逻辑
* 🐛 优化数据库API,移除冗余导入及修正SQL_DICT引用
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: BalconyJH <balconyjh@gmail.com>
|
2024-12-25 12:03:49 +08:00 |
|
HibiKier
|
3d3a2a5f7f
|
✨ 部分功能适配QQ BOT (#1701)
|
2024-10-18 18:57:55 +08:00 |
|
HibiKier
|
131200a28e
|
init🎉: 首次提交
|
2024-02-04 04:18:54 +08:00 |
|