@henryxiaoyang/wechat-access-unqclawed 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/index.ts +2 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -201,7 +201,8 @@ const tencentAccessPlugin = {
201
201
 
202
202
  // 写入 openclaw.json(统一存储)
203
203
  try {
204
- const fullCfg = runtime.config?.loadConfig?.() ?? cfg;
204
+ const wRuntime = getWecomRuntime();
205
+ const fullCfg = wRuntime.config.loadConfig();
205
206
  const channels = { ...(fullCfg.channels ?? {}) } as Record<string, any>;
206
207
  channels["wechat-access-unqclawed"] = {
207
208
  ...(channels["wechat-access-unqclawed"] ?? {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryxiaoyang/wechat-access-unqclawed",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "OpenClaw 微信通路插件 — 扫码登录 + AGP WebSocket 双向通信",
6
6
  "author": "HenryXiaoYang",