@wecom/wecom-openclaw-plugin 2026.3.20 → 2026.3.24-beta.0
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 +19 -1
- package/dist/index.cjs.js +21 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/src/channel.d.ts +1 -1
- package/dist/src/dm-policy.d.ts +1 -1
- package/dist/src/group-policy.d.ts +2 -1
- package/dist/src/interface.d.ts +2 -1
- package/dist/src/media-handler.d.ts +2 -1
- package/dist/src/message-sender.d.ts +1 -1
- package/dist/src/onboarding.d.ts +2 -2
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as openclaw_plugin_sdk from 'openclaw/plugin-sdk';
|
|
2
|
+
import { OpenClawPluginApi } from 'openclaw/plugin-sdk/core';
|
|
2
3
|
|
|
3
4
|
declare const plugin: {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
6
7
|
description: string;
|
|
7
|
-
configSchema:
|
|
8
|
+
configSchema: openclaw_plugin_sdk.OpenClawPluginConfigSchema;
|
|
8
9
|
register(api: OpenClawPluginApi): void;
|
|
9
10
|
};
|
|
10
11
|
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DEFAULT_ACCOUNT_ID, formatPairingApproveHint, emptyPluginConfigSchema } from 'openclaw/plugin-sdk/core';
|
|
2
2
|
import * as os$1 from 'os';
|
|
3
3
|
import * as path$1 from 'path';
|
|
4
4
|
import { generateReqId, WSClient, WSAuthFailureError, WSReconnectExhaustedError } from '@wecom/aibot-node-sdk';
|
|
@@ -9,7 +9,10 @@ import * as os from 'node:os';
|
|
|
9
9
|
import os__default from 'node:os';
|
|
10
10
|
import { fileURLToPath } from 'node:url';
|
|
11
11
|
import { fileTypeFromBuffer } from 'file-type';
|
|
12
|
+
import { readJsonFileWithFallback, writeJsonFileAtomically } from 'openclaw/plugin-sdk/json-store';
|
|
13
|
+
import { withFileLock } from 'openclaw/plugin-sdk/infra-runtime';
|
|
12
14
|
import { readFileSync } from 'node:fs';
|
|
15
|
+
import { addWildcardAllowFrom } from 'openclaw/plugin-sdk/setup';
|
|
13
16
|
|
|
14
17
|
let runtime = null;
|
|
15
18
|
function setWeComRuntime(r) {
|
|
@@ -31,7 +34,7 @@ function getWeComRuntime() {
|
|
|
31
34
|
* 本模块在加载时一次性探测 SDK 导出,存在则直接 re-export SDK 版本,
|
|
32
35
|
* 不存在则导出 fallback 实现。其他模块统一从本文件导入,无需关心底层兼容细节。
|
|
33
36
|
*/
|
|
34
|
-
const _sdkReady = import('openclaw/plugin-sdk')
|
|
37
|
+
const _sdkReady = import('openclaw/plugin-sdk/core')
|
|
35
38
|
.then((sdk) => {
|
|
36
39
|
const exports$1 = {};
|
|
37
40
|
if (typeof sdk.loadOutboundMediaFromUrl === "function") {
|