@wecom/wecom-openclaw-plugin 2026.3.24 → 2026.3.25-beta.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.md +10 -1
- package/dist/index.cjs.js +127 -72
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +127 -72
- package/dist/index.esm.js.map +1 -1
- package/dist/src/interface.d.ts +2 -0
- package/dist/src/message-sender.d.ts +11 -0
- package/package.json +1 -1
package/dist/src/interface.d.ts
CHANGED
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
|
|
7
7
|
import { type WSClient, type WsFrame } from "@wecom/aibot-node-sdk";
|
|
8
|
+
/** 流式回复超时错误码(>6分钟未更新,服务端拒绝继续流式更新) */
|
|
9
|
+
export declare const STREAM_EXPIRED_ERRCODE = 846608;
|
|
10
|
+
/**
|
|
11
|
+
* 流式回复过期错误
|
|
12
|
+
* 当服务端返回 errcode=846608 时抛出,表示流式消息已超过6分钟无法更新,
|
|
13
|
+
* 调用方需降级为主动发送(sendMessage)方式回复。
|
|
14
|
+
*/
|
|
15
|
+
export declare class StreamExpiredError extends Error {
|
|
16
|
+
readonly errcode = 846608;
|
|
17
|
+
constructor(message?: string);
|
|
18
|
+
}
|
|
8
19
|
/**
|
|
9
20
|
* 发送企业微信回复消息
|
|
10
21
|
* 供 monitor 内部和 channel outbound 使用
|