@largezhou/ddingtalk 1.4.0-beta.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -13,8 +13,8 @@ OpenClaw DingTalk channel plugin, using Stream mode to connect enterprise robots
13
13
  - ✅ **Text Messages**: Send and receive text messages
14
14
  - ✅ **Markdown Reply**: Robot replies in Markdown format
15
15
  - ✅ **Image Messages**: Receive images from users, send local/remote images
16
- - ✅ **Voice, Video, File, Rich Text**: Receive voice, video, file, and rich text messages from users
17
- - ✅ **File Reply**: Support replying with files; audio, video, etc. are sent as files uniformly
16
+ - ✅ **Audio & Video Messages**: Send and receive voice and video messages
17
+ - ✅ **File Messages**: Send and receive files, including rich text messages
18
18
  - ✅ **Active Message Push**: Supports active message pushing, configurable for reminders or scheduled tasks
19
19
  - ✅ **OpenClaw Commands**: Supports official OpenClaw commands such as /new, /compact
20
20
 
package/README.md CHANGED
@@ -13,8 +13,8 @@ OpenClaw 钉钉(DingTalk)渠道插件,使用 Stream 模式接入企业机
13
13
  - ✅ **文本消息收发**:接收和发送文本消息
14
14
  - ✅ **Markdown 回复**:机器人回复 Markdown 格式
15
15
  - ✅ **图片消息收发**:接收用户发送的图片,支持发送本地/远程图片
16
- - ✅ **语音、视频、文件、图文混排**:接收用户发送语音、视频、文件、图文混排消息
17
- - ✅ **回复文件**:支持回复文件,音频、视频等统一按文件发送
16
+ - ✅ **音视频消息**:支持接收和发送语音、视频消息
17
+ - ✅ **文件消息**:支持接收和发送文件,以及图文混排消息
18
18
  - ✅ **主动推送消息**:支持主动推送消息,可以配置提醒或定时任务
19
19
  - ✅ **支持 OpenClaw 命令**:支持 /new、/compact 等 OpenClaw 官方命令
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@largezhou/ddingtalk",
3
- "version": "1.4.0-beta.1",
3
+ "version": "1.4.1",
4
4
  "description": "OpenClaw DingTalk (钉钉) channel plugin",
5
5
  "main": "index.ts",
6
6
  "type": "module",
package/src/monitor.ts CHANGED
@@ -693,10 +693,14 @@ export function monitorDingTalkProvider(options: MonitorOptions): MonitorResult
693
693
  });
694
694
 
695
695
  // 创建钉钉 Stream 客户端
696
+ // keepAlive: true 启用 WebSocket ping/pong 心跳检测(每 8s),
697
+ // 当连接"半死不活"(TCP 未关闭但数据已无法传输)时能主动检测到并 terminate,
698
+ // 配合 autoReconnect(默认 true)触发自动重连,避免长时间静默断连。
696
699
  const client = new DWClient({
697
700
  clientId,
698
701
  clientSecret,
699
702
  debug: false,
703
+ keepAlive: true,
700
704
  });
701
705
 
702
706
  // ============================================================================