Soulter
59df244173
improve
2025-10-23 21:20:41 +08:00
Soulter
65bc5efa19
feat: 集成知识库管理器,优化知识库上下文注入流程,移除冗余代码
2025-10-22 21:59:00 +08:00
Soulter
f8a4b54165
fix: 修复插件指令注解为联合类型时处理异常的问题 ( #2925 )
...
* fix: 修复插件指令注解为联合类型时处理异常的问题
* fix: 修复参数类型检查以支持 typing.Union
* Update astrbot/core/star/filter/command.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update astrbot/core/star/filter/command.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix: 修复参数类型检查以支持 typing.Union 的处理逻辑
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-01 21:46:49 +08:00
Soulter
8a9a044f95
fix: 修复注册指令组指令时的 Pyright 类型检查提示 ( #2923 )
2025-10-01 20:03:04 +08:00
Soulter
7a47598538
fix: 修复指令无法使用的问题
...
fixes : #2897
2025-09-27 23:35:35 +08:00
Soulter
c2a34475f1
feat: 支持删除指定会话以及部分会话管理优化 ( #2895 )
...
* feat: add toast notification system with snackbar component
* feat: add session deletion functionality
* feat: support batch operations for updating session persona, provider, LLM, and TTS statuses
fix : #2263
* feat: 修复对话状态关闭,删除对话管理库会导致对话无法恢复
fixes : #2309
2025-09-27 20:36:30 +08:00
Soulter
09d1f96603
fix: 修复 /alter_cmd 指令无法控制指令组、子指令组和子指令组下子指令的问题 ( #2873 )
...
* fix: revert changes in command_group.py at 782c036 to fix command group permission check
* fix: 不传递 GroupCommand handler
* perf: alter_cmd 指令支持对子指令、指令组进行配置
* chore: remove test commands and subcommands from test_group
* chore: add cache for complete command names list in CommandFilter and CommandGroupFilter
---------
Co-authored-by: Dt8333 <25431943+Dt8333@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-09-26 14:16:50 +08:00
Soulter
1542ea3e03
fix: context.get_provider_by_id issue
2025-09-22 17:22:50 +08:00
Soulter
80a86f5b1b
fix: 修复 astrbot.core.star 等包下的 type checking error ( #2787 )
...
* fix: 修复 astrbot.core.star 等包下的 type checking error
* refactor: improve type checking and annotations
* chore: ruff format
2025-09-21 18:10:04 +08:00
PaloMiku
824c0f6667
feat: 新增 Misskey 平台适配器 ( #2774 )
...
* feat: add Misskey platform adapter
* fix: 修复 Misskey 配置项的大小写问题
* feat: 添加消息链序列化功能和可见性解析逻辑
* chore: 删除损坏的 Misskey 平台适配器工具函数文件
* docs: 更新 Misskey 消息适配器设置描述信息
* feat: Misskey 单用户连续上下文对话支持
* feat: 为 Astrbot 添加 Misskey 平台适配器的 ID 配置
* feat: 重构 Misskey 平台适配器,提取通用工具函数并优化消息处理逻辑
* refactor: 清理 Misskey 平台适配器和 API 代码,移除冗余注释
* fix: 修复了使用中和使用者反馈的多个问题
* fix: 修改提及格式,确保提及在新行开始,提升帖子美观和易读性。
* feat: 添加默认可见性和本地仅限设置,优化 Misskey 平台适配器的配置
* fix: 更新 Misskey 平台适配器配置,使用前缀以防止和其他适配器未来可能的冲突问题
* chore: rename 'misskey' to 'Misskey' in config
* feat: Misskey 适配器添加聊天消息响应功能,重构接收和发送逻辑为 Websockets 处理
* fix: 增强 Misskey WebSocket 消息日志输出
* refactor: 优化 Misskey 适配器的消息处理和日志输出
* fix: 增强 Misskey WebSocket 重连接逻辑
* feat: 增强 Misskey 适配器的消息处理,支持房间消息和相关功能,重构通用函数,清理代码重复冗余
* fix: 不屏蔽唤醒前缀对默认 LLM 的唤醒
* fix: 透传所有的群聊消息事件
* fix: 修复 message_type
* perf: 实现 send_streaming 以支援流式请求
* docs(README): update README.md
* fix: super().send(message) 被忽略
* fix: 修正 session 结构
: 作为分隔符可能会导致 umo 组装出现问题
---------
Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com >
Co-authored-by: Soulter <905617992@qq.com >
2025-09-18 23:34:41 +08:00
anka
0cc65513a5
Revert "fix: parameter type/default handling in CommandFilter"
2025-09-16 20:01:05 +08:00
手瓜一十雪
9519f1e8e2
fix: parameter type/default handling in CommandFilter
...
Adjusts logic to prioritize type annotations over default values when setting handler_params in CommandFilter. This ensures that parameter types are correctly inferred when available.
2025-09-16 11:49:27 +08:00
Soulter
39a7a0d960
fix: revert "feat: 兼容指令名和第一个参数之间没有空格的情况 ( #2650 )" for command issue
...
This reverts commit 9bfa726107 .
2025-09-14 19:31:15 +08:00
Soulter
7740e1e131
ci: add ci stage of code format checking ( #2750 )
...
* style: ruff format
* ci(dashboard-ci): ensure GitHub Release action only runs on push events
* ci(code-format): ruff format and ruff check
2025-09-14 18:05:58 +08:00
Zhalslar
9bfa726107
feat: 兼容指令名和第一个参数之间没有空格的情况 ( #2650 )
...
插件中@filter.command的指令在用户输入“命令+参数” 无空格隔开时无法处理,但只要稍微改动几行代码就可以兼容
2025-09-12 15:40:37 +08:00
anka
9431efc6d1
feat: 增加 on_platform_loaded 钩子以在消息平台适配器实例化完成后触发 ( #2651 )
...
* feat⚒️ : 增加平台加载时的钩子
* fix: 补充api
* fix: 只捕获Exception
2025-09-09 08:44:37 +08:00
anka
d98cf16a4c
feat: 增加根据qq号/群号主动发送消息的封装, 增加事件构造 ( #2629 )
...
* feat: 增加根据qq号/群号主动发送消息的封装, 增加事件构造
* fix: 增加不支持平台提示, 修正文档字符串
* chore: lint
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-09-07 17:04:29 +08:00
RC-CHN
b31b520c7c
feat: 支持管理 T2I 模版 ( #2638 )
...
* feat:添加t2i模板管理后端api,移除config.py中重复功能
* feat: 添加T2I模板管理功能前端,支持模板的创建、应用和重置
* refactor: 修复错误的保存逻辑,将t2i注册时打印路由信息部分移到基类实现
* remove:移除了路由注册时的打印
* chore: format code
* fix: update input variant from solo to outlined for better UI consistency
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-09-07 00:14:28 +08:00
shangxue
17aee086a3
feat: 添加 Satori 协议适配器支持 ( #2633 )
...
* Create satori_adapter.py
* Add files via upload
* Update default.py
* Update manager.py
* Update platform_adapter_type.py
* Update PlatformPage.vue
* Add files via upload
* Update default.py
* Update manager.py
* Update platform_adapter_type.py
* Update PlatformPage.vue
* Add files via upload
* Update default.py
* chore: format code
* feat: 修复 Image, Audio 的解析,修复 message_str 的解析
* perf: 增强鲁棒性
* feat: 添加 Satori 配置项描述,移除适配器默认配置
---------
Co-authored-by: Soulter <905617992@qq.com >
2025-09-06 23:52:00 +08:00
Soulter
69aaf09ac8
chore: 修复当自动更新 webchat title 时,history 被重置的问题
2025-08-24 00:23:08 +08:00
Soulter
cfd05a8d17
chore: clean code
2025-08-23 21:46:59 +08:00
Soulter
d2df4d0cce
Feature: 支持在配置文件配置可用的插件组 ( #2505 )
...
* feat: 增加可用插件集合配置项
* remove: 旧版平台可用性配置
已经基于多配置文件实现。
* feat: 应用配置文件插件可用性配置
* perf: hoist if from if
2025-08-20 15:25:41 +08:00
Soulter
64bcbc9fc0
refactor: 重构 SharedPreference 类并采用数据库存储替换 json 存储 ( #2482 )
2025-08-18 19:12:26 +08:00
Soulter
1df49d1d6f
refactor: 重构 Function Tool 管理并初步引入 Multi Agent 及 Agent Handsoff 机制 ( #2454 )
...
* stage
* refactor: 重构 Function Tool 管理并引入 multi agent handsoff 机制
- Updated `star_request.py` to use the global `call_handler` instead of context-specific calls.
- Modified `entities.py` to remove the dependency on `FunctionToolManager` and streamline the function tool handling.
- Refactored `func_tool_manager.py` to simplify the `FunctionTool` class and its methods, removing deprecated code and enhancing clarity.
- Adjusted `provider.py` to align with the new function tool structure, removing unnecessary type unions.
- Enhanced `star_handler.py` to support agent registration and tool association, introducing `RegisteringAgent` for better encapsulation.
- Updated `star_manager.py` to handle tool registration for agents, ensuring proper binding of handlers.
- Revised `main.py` in the web searcher package to utilize the new agent registration system for web search tools.
* chore: websearch
* perf: 减少嵌套
* chore: 移除未使用的 mcp 导入
2025-08-17 10:57:25 +08:00
Soulter
cf64e6c231
Merge remote-tracking branch 'origin/master' into releases/4.0.0
2025-08-14 13:36:19 +08:00
Soulter
0759a11a85
fix: 修复 stage 在不同 pipeline 中被重复使用的问题和 persona 相关问题
2025-08-13 13:13:04 +08:00
Soulter
369eab18ab
Refactor: 重构配置文件管理,以支持更灵活的、会话粒度的(基于 umo part)配置文件隔离 ( #2328 )
...
* refactor: 重构配置文件管理,以支持更灵活的、基于 umo part 的配置文件隔离
* Refactor: 重构配置前端页面,新增数个配置项 (#2331 )
* refactor: 重构配置前端页面,新增数个配置项
* feat: 完善多配置文件结构
* perf: 系统配置入口
* fix: normal config item list not display
* fix: 修复 axios 请求中的上下文引用问题
2025-08-13 09:18:49 +08:00
你们的饺子
d5a53a89eb
fix: 修复插件的 terminate 无法被正常调用的问题 ( #2352 )
2025-08-12 21:41:19 +08:00
Soulter
b1e3018b6b
Improve: 引入全新的人格管理模式以及重构函数工具管理器 ( #2305 )
...
* feat: add persona management
* refactor: 重构函数工具管理器,引入 ToolSet,并让 Persona 支持绑定 Tools
* feat: 更新 Persona 工具选择逻辑,支持全选和指定工具的切换
* feat: 更新 BaseDatabase 中的 persona 方法返回类型,支持返回 None
2025-08-04 00:56:26 +08:00
Soulter
87f05fce66
Fix: 当多个相同消息平台实例部署时上下文可能混乱(共享) ( #2298 )
...
* perf: update astrbot event session format, using platfrom id to ensure uniqueness
fixes : #1000
* fix: 更新 MessageSession 类以使用 platform_id 作为唯一标识符,并调整相关方法以确保一致性
* fix: 更新 MessageSession 文档以明确 platform_id 的赋值规则,并调整 get_platform 和 get_platform_inst 方法的返回类型
2025-08-02 21:38:55 +08:00
Soulter
2f33e0b873
chore: remove adapters of wechat personal account
2025-07-23 10:51:42 +08:00
Soulter
d7fd616470
style: code quality
2025-07-21 17:04:29 +08:00
Soulter
3ccbef141e
perf: extension ui
2025-07-21 15:16:49 +08:00
Soulter
c88fdaf353
Merge pull request #1949 from advent259141/Astrbot_session_manage
...
[Feature] 支持在 WebUI 上管理会话
2025-07-13 17:23:52 +08:00
advent259141
a15444ee8c
移除了mcp会话级的启停,增加了批量设置的选项,对相关问题进行了修复
2025-07-13 00:15:21 +08:00
Gao Jinzhe
25b75e05e4
Merge branch 'AstrBotDevs:master' into Astrbot_session_manage
2025-07-12 22:25:20 +08:00
sheffey
7cbaed8c6c
fix: add status checking for embedding model providers
2025-07-11 18:36:40 +08:00
Raven95676
4dace7c5d8
chore: format code
2025-07-11 11:23:53 +08:00
Soulter
81649f053b
perf: improve log
2025-07-10 10:58:56 +08:00
Raven95676
e5bde50f2d
fix: 提升兼容性,并尽可能避免数据竞争
2025-07-09 22:39:30 +08:00
Raven95676
0321e00b0d
perf: 移除nh3
2025-07-09 20:32:14 +08:00
advent259141
7cfbc4ab8f
增加了针对整个会话启停的开关
2025-07-09 11:58:52 +08:00
Soulter
e57deb873c
perf: add fallback for missing 'desc' in plugin metadata and improve error logging
2025-07-09 10:47:03 +08:00
Gao Jinzhe
0f692b1608
Merge branch 'master' into Astrbot_session_manage
2025-07-09 10:13:51 +08:00
Soulter
ab599dceed
Merge branch 'master' into deprecate/register_star-decorator
2025-07-08 11:52:33 +08:00
Soulter
4c37604445
perf: only output deprecation warning once for @register_star decorator
2025-07-08 11:50:55 +08:00
Soulter
575289e5bc
feat: complete platform adapter types and update mapping
2025-07-08 11:39:42 +08:00
Raven95676
e1bed60f1f
fix: adjust timing of adding to star_registry
2025-07-04 16:13:10 +08:00
Raven95676
edbb856023
refactor: deprecate register_star decorator
2025-07-04 15:54:23 +08:00
Raven95676
98d3ab646f
chore: convert some methods to static
2025-07-04 15:07:14 +08:00