@openclaw-china/wecom 0.1.26 → 0.1.28

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/index.js CHANGED
@@ -5629,7 +5629,7 @@ ${l}
5629
5629
  }
5630
5630
  }
5631
5631
  } }).prompt();
5632
- var PROJECT_REPO = "https://github.com/BytePioneer-AI/moltbot-china";
5632
+ var PROJECT_REPO = "https://github.com/BytePioneer-AI/openclaw-china";
5633
5633
  var GUIDES_BASE = "https://github.com/BytePioneer-AI/openclaw-china/tree/main/doc/guides";
5634
5634
  var OPENCLAW_HOME = join(homedir(), ".openclaw");
5635
5635
  var DEFAULT_PLUGIN_PATH = join(OPENCLAW_HOME, "extensions");
@@ -6290,7 +6290,7 @@ function registerChinaSetupCli(api, opts) {
6290
6290
  }
6291
6291
 
6292
6292
  // ../../packages/shared/src/cli/install-hint.ts
6293
- var PROJECT_REPO2 = "https://github.com/BytePioneer-AI/moltbot-china";
6293
+ var PROJECT_REPO2 = "https://github.com/BytePioneer-AI/openclaw-china";
6294
6294
  var INSTALL_SETUP_COMMAND = "openclaw china setup";
6295
6295
  var START_GATEWAY_COMMAND = "openclaw gateway --port 18789 --verbose";
6296
6296
  var ANSI_RESET2 = "\x1B[0m";
@@ -8372,6 +8372,25 @@ var wecomPlugin = {
8372
8372
  webhookPath: path5,
8373
8373
  lastStartAt: Date.now()
8374
8374
  });
8375
+ try {
8376
+ await new Promise((resolve3) => {
8377
+ if (ctx.abortSignal?.aborted) {
8378
+ resolve3();
8379
+ return;
8380
+ }
8381
+ if (!ctx.abortSignal) {
8382
+ return;
8383
+ }
8384
+ ctx.abortSignal.addEventListener("abort", () => resolve3(), { once: true });
8385
+ });
8386
+ } finally {
8387
+ const current = unregisterHooks.get(ctx.accountId);
8388
+ if (current === unregister) {
8389
+ unregisterHooks.delete(ctx.accountId);
8390
+ }
8391
+ unregister();
8392
+ ctx.setStatus?.({ accountId: ctx.accountId, running: false, lastStopAt: Date.now() });
8393
+ }
8375
8394
  },
8376
8395
  stopAccount: async (ctx) => {
8377
8396
  const unregister = unregisterHooks.get(ctx.accountId);