@wecom/wecom-openclaw-plugin 2026.3.25-beta.0 → 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.
@@ -33,6 +33,8 @@ export interface MessageState {
33
33
  mediaErrorSummary?: string;
34
34
  /** deliver 回调是否被调用过(用于区分"核心无回复"和"核心回复了空内容") */
35
35
  deliverCalled?: boolean;
36
+ /** 流式回复是否已过期(errcode 846608,>6分钟),需降级为主动发送 */
37
+ streamExpired?: boolean;
36
38
  }
37
39
  /**
38
40
  * WebSocket 请求消息基础格式
@@ -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 使用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wecom/wecom-openclaw-plugin",
3
- "version": "2026.3.25-beta.0",
3
+ "version": "2026.3.25-beta.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",