@junjiezhang/openclaw-wecom-plugin 1.0.2 → 1.0.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.
package/dist/accounts.js CHANGED
@@ -49,4 +49,3 @@ export function resolveWeComCredentials({ cfg, accountId, }) {
49
49
  encodingAESKey: wecomCfg.encodingAESKey,
50
50
  };
51
51
  }
52
- //# sourceMappingURL=accounts.js.map
package/dist/bot.js CHANGED
@@ -287,4 +287,3 @@ export async function handleWeComMessage({ cfg, event, runtime, chatHistories, a
287
287
  }
288
288
  }
289
289
  }
290
- //# sourceMappingURL=bot.js.map
package/dist/channel.js CHANGED
@@ -251,4 +251,3 @@ export const wecomPlugin = {
251
251
  },
252
252
  },
253
253
  };
254
- //# sourceMappingURL=channel.js.map
package/dist/client.js CHANGED
@@ -38,4 +38,3 @@ export function clearWeComAccessTokenCache(corpId) {
38
38
  accessTokenCache.clear();
39
39
  }
40
40
  }
41
- //# sourceMappingURL=client.js.map
@@ -76,4 +76,3 @@ export const WeComConfigSchema = z
76
76
  }
77
77
  }
78
78
  });
79
- //# sourceMappingURL=config-schema.js.map
package/dist/dedup.js CHANGED
@@ -36,4 +36,3 @@ export async function tryRecordMessagePersistent(messageId, namespace = "global"
36
36
  },
37
37
  });
38
38
  }
39
- //# sourceMappingURL=dedup.js.map
package/dist/directory.js CHANGED
@@ -63,4 +63,3 @@ export async function getDepartmentUsersWeCom({ cfg, departmentId, fetchChild, a
63
63
  }
64
64
  return (data.userlist ?? []);
65
65
  }
66
- //# sourceMappingURL=directory.js.map
package/dist/index.js CHANGED
@@ -13,4 +13,3 @@ const plugin = {
13
13
  },
14
14
  };
15
15
  export default plugin;
16
- //# sourceMappingURL=index.js.map
package/dist/media.js CHANGED
@@ -61,4 +61,3 @@ export async function saveInboundImage(params) {
61
61
  await fs.promises.writeFile(filePath, buffer);
62
62
  return filePath;
63
63
  }
64
- //# sourceMappingURL=media.js.map
package/dist/monitor.js CHANGED
@@ -230,4 +230,3 @@ export async function monitorWeComProvider(opts) {
230
230
  }
231
231
  };
232
232
  }
233
- //# sourceMappingURL=monitor.js.map
package/dist/outbound.js CHANGED
@@ -21,4 +21,3 @@ export const wecomOutbound = {
21
21
  return { channel: "wecom", ...result };
22
22
  },
23
23
  };
24
- //# sourceMappingURL=outbound.js.map
package/dist/policy.js CHANGED
@@ -62,4 +62,3 @@ export function resolveWeComReplyPolicy(params) {
62
62
  const requireMention = params.groupConfig?.requireMention ?? params.globalConfig?.requireMention ?? false;
63
63
  return { requireMention };
64
64
  }
65
- //# sourceMappingURL=policy.js.map
package/dist/probe.js CHANGED
@@ -4,4 +4,3 @@ export async function probeWeCom(account) {
4
4
  }
5
5
  return { ok: true };
6
6
  }
7
- //# sourceMappingURL=probe.js.map
@@ -54,4 +54,3 @@ export function createWeComReplyDispatcher(params) {
54
54
  markDispatchIdle,
55
55
  };
56
56
  }
57
- //# sourceMappingURL=reply-dispatcher.js.map
package/dist/runtime.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import type { PluginRuntime } from "openclaw/plugin-sdk";
2
+ declare global {
3
+ var __wecomRuntime: PluginRuntime | null | undefined;
4
+ }
2
5
  export declare function setWeComRuntime(next: PluginRuntime): void;
3
6
  export declare function getWeComRuntime(): PluginRuntime;
4
7
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,QAElD;AAED,wBAAgB,eAAe,IAAI,aAAa,CAK/C"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,cAAc,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;CACtD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,QAElD;AAED,wBAAgB,eAAe,IAAI,aAAa,CAK/C"}
package/dist/runtime.js CHANGED
@@ -1,11 +1,9 @@
1
- let runtime = null;
2
1
  export function setWeComRuntime(next) {
3
- runtime = next;
2
+ globalThis.__wecomRuntime = next;
4
3
  }
5
4
  export function getWeComRuntime() {
6
- if (!runtime) {
5
+ if (!globalThis.__wecomRuntime) {
7
6
  throw new Error("WeCom runtime not initialized");
8
7
  }
9
- return runtime;
8
+ return globalThis.__wecomRuntime;
10
9
  }
11
- //# sourceMappingURL=runtime.js.map
package/dist/send.js CHANGED
@@ -58,4 +58,3 @@ export async function sendGroupMessageWeCom({ cfg, chatId, text, accountId, }) {
58
58
  }
59
59
  return { messageId: data.msgid ?? "" };
60
60
  }
61
- //# sourceMappingURL=send.js.map
package/dist/targets.js CHANGED
@@ -13,4 +13,3 @@ export function looksLikeWeComId(raw) {
13
13
  export function formatWeComTarget(userId) {
14
14
  return `user:${userId}`;
15
15
  }
16
- //# sourceMappingURL=targets.js.map
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junjiezhang/openclaw-wecom-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "OpenClaw WeCom (企业微信) channel plugin - Send and receive messages via WeCom",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",