@henryxiaoyang/wechat-access-unqclawed 1.1.0-beta.21 → 1.1.0-beta.23

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
@@ -9288,7 +9288,8 @@ var tencentAccessPlugin = {
9288
9288
  const accounts = cfg.channels?.["wechat-access-unqclawed"]?.accounts;
9289
9289
  const account = accounts?.[accountId ?? "default"];
9290
9290
  return account ?? { accountId: accountId ?? "default" };
9291
- }
9291
+ },
9292
+ resolveAllowFrom: () => ["*"]
9292
9293
  },
9293
9294
  // 认证适配器:提示用户使用 CLI
9294
9295
  auth: {
@@ -9431,19 +9432,8 @@ var tencentAccessPlugin = {
9431
9432
  }).then((clawParams) => {
9432
9433
  log2?.info(`[wechat-access] Claw workspace \u6CE8\u518C\u6210\u529F, channel=${clawParams.channel}`);
9433
9434
  client.subscribeChannel(clawParams.channel, clawParams.subscriptionToken);
9434
- const sessionId = cbApi.buildSessionId();
9435
- return cbApi.wechatkfUnbind(sessionId).catch(() => {
9436
- }).then(
9437
- () => cbApi.wechatkfGetLink(sessionId)
9438
- );
9439
- }).then((linkResult) => {
9440
- if (linkResult.success && linkResult.url) {
9441
- log2?.info(`[wechat-access] \u5FAE\u4FE1\u5BA2\u670D\u7ED1\u5B9A\u94FE\u63A5: ${linkResult.url}`);
9442
- } else {
9443
- log2?.info(`[wechat-access] \u5FAE\u4FE1\u5BA2\u670D\u7ED1\u5B9A\u94FE\u63A5\u83B7\u53D6\u5931\u8D25: ${linkResult.message ?? "\u672A\u77E5"}`);
9444
- }
9445
9435
  }).catch((e) => {
9446
- log2?.warn(`[wechat-access] Claw workspace \u6CE8\u518C\u6216\u7ED1\u5B9A\u94FE\u63A5\u83B7\u53D6\u5931\u8D25: ${e instanceof Error ? e.message : String(e)}`);
9436
+ log2?.warn(`[wechat-access] Claw workspace \u6CE8\u518C\u5931\u8D25: ${e instanceof Error ? e.message : String(e)}`);
9447
9437
  });
9448
9438
  },
9449
9439
  onDisconnected: (reason) => {
@@ -9654,22 +9644,11 @@ var index = {
9654
9644
  userInfo
9655
9645
  };
9656
9646
  await writeChannelConfig({ loginMode: "workbuddy", workbuddy: wbCreds });
9657
- const sessionId = cbApi.buildSessionId();
9658
- try {
9659
- const linkResult = await cbApi.wechatkfGetLink(sessionId);
9660
- if (linkResult.success && linkResult.url) {
9661
- console.log("\n" + "=".repeat(64));
9662
- console.log("\u8BF7\u5728\u5FAE\u4FE1\u4E2D\u6253\u5F00\u4EE5\u4E0B\u94FE\u63A5\u7ED1\u5B9A\u5FAE\u4FE1\u5BA2\u670D\u53F7\uFF08\u7ED1\u5B9A\u540E\u624D\u6709\u5BF9\u8BDD\u5165\u53E3\uFF09\uFF1A");
9663
- console.log("");
9664
- console.log(linkResult.url);
9665
- console.log("=".repeat(64));
9666
- }
9667
- } catch {
9668
- }
9669
9647
  const nickname = String(userInfo.nickName ?? userInfo.nickname ?? "\u7528\u6237");
9670
9648
  console.log(`
9671
9649
  WorkBuddy \u767B\u5F55\u6210\u529F! \u6B22\u8FCE ${nickname}`);
9672
- console.log("token \u5DF2\u4FDD\u5B58\uFF0C\u8BF7\u8FD0\u884C openclaw gateway restart \u751F\u6548\u3002");
9650
+ console.log("\u8BF7\u8FD0\u884C openclaw gateway restart \u542F\u52A8\u901A\u8DEF\u3002");
9651
+ console.log("\u9996\u6B21\u4F7F\u7528\u8BF7\u5728 gateway \u542F\u52A8\u540E\u8FD0\u884C openclaw wechat bind \u83B7\u53D6\u5FAE\u4FE1\u5BA2\u670D\u7ED1\u5B9A\u94FE\u63A5\u3002");
9673
9652
  } catch (err) {
9674
9653
  console.error(`
9675
9654
  WorkBuddy \u767B\u5F55\u5931\u8D25: ${err instanceof Error ? err.message : String(err)}`);