Skip to content

Commit 5dd30f9

Browse files
committed
chore: bump version to 4.19.3
1 parent a53a1ca commit 5dd30f9

4 files changed

Lines changed: 87 additions & 3 deletions

File tree

astrbot/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.19.2"
1+
__version__ = "4.19.3"

astrbot/core/config/default.py

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
77

8-
VERSION = "4.19.2"
8+
VERSION = "4.19.3"
99
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
1010

1111
WEBHOOK_SUPPORTED_PLATFORMS = [
@@ -343,11 +343,16 @@ class ChatProviderTemplate(TypedDict):
343343
"id": "wecom_ai_bot",
344344
"type": "wecom_ai_bot",
345345
"enable": True,
346+
"wecom_ai_bot_connection_mode": "webhook",
346347
"wecomaibot_init_respond_text": "",
347348
"wecomaibot_friend_message_welcome_text": "",
348349
"wecom_ai_bot_name": "",
349350
"msg_push_webhook_url": "",
350351
"only_use_webhook_url_to_send": False,
352+
"long_connection_bot_id": "",
353+
"long_connection_secret": "",
354+
"long_connection_ws_url": "wss://openws.work.weixin.qq.com",
355+
"long_connection_heartbeat_interval": 30,
351356
"token": "",
352357
"encoding_aes_key": "",
353358
"unified_webhook_mode": True,
@@ -732,6 +737,13 @@ class ChatProviderTemplate(TypedDict):
732737
"type": "string",
733738
"hint": "请务必填写正确,否则无法使用一些指令。",
734739
},
740+
"wecom_ai_bot_connection_mode": {
741+
"description": "企业微信智能机器人连接模式",
742+
"type": "string",
743+
"options": ["webhook", "long_connection"],
744+
"labels": ["Webhook 回调", "长连接"],
745+
"hint": "Webhook 回调模式需要配置 Token/EncodingAESKey。长连接模式需要配置 BotID/Secret。",
746+
},
735747
"wecomaibot_init_respond_text": {
736748
"description": "企业微信智能机器人初始响应文本",
737749
"type": "string",
@@ -752,6 +764,38 @@ class ChatProviderTemplate(TypedDict):
752764
"type": "bool",
753765
"hint": "启用后,企业微信智能机器人的所有回复都改为通过消息推送 Webhook 发送。消息推送 Webhook 支持更多的消息类型(如图片、文件等)。",
754766
},
767+
"long_connection_bot_id": {
768+
"description": "长连接 BotID",
769+
"type": "string",
770+
"hint": "企业微信智能机器人长连接模式凭证 BotID。",
771+
"condition": {
772+
"wecom_ai_bot_connection_mode": "long_connection",
773+
},
774+
},
775+
"long_connection_secret": {
776+
"description": "长连接 Secret",
777+
"type": "string",
778+
"hint": "企业微信智能机器人长连接模式凭证 Secret。",
779+
"condition": {
780+
"wecom_ai_bot_connection_mode": "long_connection",
781+
},
782+
},
783+
"long_connection_ws_url": {
784+
"description": "长连接 WebSocket 地址",
785+
"type": "string",
786+
"hint": "默认值为 wss://openws.work.weixin.qq.com,一般无需修改。",
787+
"condition": {
788+
"wecom_ai_bot_connection_mode": "long_connection",
789+
},
790+
},
791+
"long_connection_heartbeat_interval": {
792+
"description": "长连接心跳间隔",
793+
"type": "int",
794+
"hint": "长连接模式心跳间隔(秒),建议 30 秒。",
795+
"condition": {
796+
"wecom_ai_bot_connection_mode": "long_connection",
797+
},
798+
},
755799
"lark_bot_name": {
756800
"description": "飞书机器人的名字",
757801
"type": "string",

changelogs/v4.19.3.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## What's Changed
2+
3+
### 新增
4+
5+
- 新增技能 ZIP 批量上传能力 ([#5804](https://github.com/AstrBotDevs/AstrBot/pull/5804))。
6+
7+
### 修复
8+
9+
- 修复 MCP Server 配置异常时可能导致崩溃的问题 ([#5666](https://github.com/AstrBotDevs/AstrBot/pull/5666), [#5673](https://github.com/AstrBotDevs/AstrBot/pull/5673))。
10+
- 修复钉钉适配器文本消息被忽略、无法主动发送文件的问题 ([#5921](https://github.com/AstrBotDevs/AstrBot/pull/5921))。
11+
- 修复钉钉适配器无法接收图片与文件的问题 ([#5920](https://github.com/AstrBotDevs/AstrBot/pull/5920))。
12+
- fix(provider): handle MiniMax ThinkingBlock when max_tokens reached ([#5913](https://github.com/AstrBotDevs/AstrBot/pull/5913))。
13+
- 修复 OpenRouter `api_base` 配置错误的问题 ([#5911](https://github.com/AstrBotDevs/AstrBot/pull/5911))。
14+
- 修复插件市场中按展示名搜索已安装插件不生效的问题 ([#5806](https://github.com/AstrBotDevs/AstrBot/pull/5806), [#5811](https://github.com/AstrBotDevs/AstrBot/pull/5811))。
15+
- 修复仅图片响应未应用 `reply_with_quote``reply_with_mention` 的问题 ([#5219](https://github.com/AstrBotDevs/AstrBot/pull/5219))。
16+
- 修复 `RegexFilter` 使用 `re.match` 导致匹配范围不正确的问题 ([#5368](https://github.com/AstrBotDevs/AstrBot/pull/5368))。
17+
- 修复桌面运行环境检测依赖 frozen Python 的问题 ([#5859](https://github.com/AstrBotDevs/AstrBot/pull/5859))。
18+
- 修复通过“创建新配置”创建平台机器人后找不到 pipeline scheduler 的问题 ([#5776](https://github.com/AstrBotDevs/AstrBot/pull/5776))。
19+
20+
---
21+
22+
## What's Changed (EN)
23+
24+
### New Features
25+
26+
- Added batch upload support for multiple skill ZIP files ([#5804](https://github.com/AstrBotDevs/AstrBot/pull/5804)).
27+
28+
### Bug Fixes
29+
30+
- Fixed potential crash on malformed MCP server config ([#5666](https://github.com/AstrBotDevs/AstrBot/pull/5666), [#5673](https://github.com/AstrBotDevs/AstrBot/pull/5673)).
31+
- Fixed DingTalk adapter issue where text messages were ignored and files could not be sent proactively ([#5921](https://github.com/AstrBotDevs/AstrBot/pull/5921)).
32+
- Fixed DingTalk adapter issue where image and file messages could not be received ([#5920](https://github.com/AstrBotDevs/AstrBot/pull/5920)).
33+
- Fixed incorrect OpenRouter `api_base` configuration ([#5911](https://github.com/AstrBotDevs/AstrBot/pull/5911)).
34+
- Fixed searching installed plugins by display name in extensions ([#5806](https://github.com/AstrBotDevs/AstrBot/pull/5806), [#5811](https://github.com/AstrBotDevs/AstrBot/pull/5811)).
35+
- Fixed image-only responses not applying `reply_with_quote` and `reply_with_mention` ([#5219](https://github.com/AstrBotDevs/AstrBot/pull/5219)).
36+
- Fixed `RegexFilter` using `re.match` instead of `re.search` for expected matching behavior ([#5368](https://github.com/AstrBotDevs/AstrBot/pull/5368)).
37+
- Fixed desktop runtime detection requiring frozen Python ([#5859](https://github.com/AstrBotDevs/AstrBot/pull/5859)).
38+
- Fixed missing pipeline scheduler after creating a platform bot via "create new config" ([#5776](https://github.com/AstrBotDevs/AstrBot/pull/5776)).
39+
- fix(provider): handle MiniMax ThinkingBlock when max_tokens reached ([#5913](https://github.com/AstrBotDevs/AstrBot/pull/5913))
40+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "AstrBot"
3-
version = "4.19.2"
3+
version = "4.19.3"
44
description = "Easy-to-use multi-platform LLM chatbot and development framework"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)