@wecom/wecom-openclaw-plugin 2026.3.31-beta.2 → 2026.3.31-beta.3

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.
@@ -19,7 +19,6 @@ import * as os from "os";
19
19
  import * as path from "path";
20
20
  import { WSClient, generateReqId, WSAuthFailureError, WSReconnectExhaustedError } from "@wecom/aibot-node-sdk";
21
21
  import { getWeComRuntime } from "./runtime.js";
22
- // @ts-ignore
23
22
  import { getDefaultMediaLocalRoots, resolveStateDir } from "./openclaw-compat.js";
24
23
  import { CHANNEL_ID, THINKING_MESSAGE, MEDIA_IMAGE_PLACEHOLDER, MEDIA_DOCUMENT_PLACEHOLDER, WS_HEARTBEAT_INTERVAL_MS, WS_MAX_RECONNECT_ATTEMPTS, WS_MAX_AUTH_FAILURE_ATTEMPTS, EVENT_ENTER_CHECK_UPDATE, CMD_ENTER_EVENT_REPLY, SCENE_WECOM_OPENCLAW, } from "./const.js";
25
24
  import { parseMessageContent } from "./message-parser.js";
@@ -7,6 +7,8 @@
7
7
  * 本模块在加载时一次性探测 SDK 导出,存在则直接 re-export SDK 版本,
8
8
  * 不存在则导出 fallback 实现。其他模块统一从本文件导入,无需关心底层兼容细节。
9
9
  */
10
+ import { resolveStateDir } from "./state-dir-resolve.js";
11
+ export { resolveStateDir };
10
12
  export declare const DEFAULT_ACCOUNT_ID = "default";
11
13
  /** 与 openclaw plugin-sdk 中 WebMediaResult 兼容的类型 */
12
14
  export type WebMediaResult = {
@@ -11,8 +11,8 @@ import * as fs from "node:fs/promises";
11
11
  import * as path from "node:path";
12
12
  import * as os from "node:os";
13
13
  import { fileURLToPath } from "node:url";
14
- // @ts-ignore
15
- import { resolveStateDir } from "./state-dir-resolve";
14
+ import { resolveStateDir } from "./state-dir-resolve.js";
15
+ export { resolveStateDir };
16
16
  export const DEFAULT_ACCOUNT_ID = "default";
17
17
  const _sdkReady = import("openclaw/plugin-sdk/core")
18
18
  .then((sdk) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wecom/wecom-openclaw-plugin",
3
- "version": "2026.3.31-beta.2",
3
+ "version": "2026.3.31-beta.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",