@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 +2 -2
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/monitor.ts +4 -0
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
|
-
- ✅ **
|
|
17
|
-
- ✅ **File
|
|
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
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
|
// ============================================================================
|