@openclaw-china/feishu-china 2026.3.22 → 2026.4.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
@@ -5626,9 +5626,10 @@ var CONFIG_FILE_PATH = join(OPENCLAW_HOME, "openclaw.json");
5626
5626
  var ANSI_RESET = "\x1B[0m";
5627
5627
  var ANSI_LINK = "\x1B[1;4;96m";
5628
5628
  var ANSI_BORDER = "\x1B[92m";
5629
+ var QQBOT_CHANNEL_ID = "qqbot-china";
5629
5630
  var CHANNEL_ORDER = [
5630
5631
  "dingtalk",
5631
- "qqbot",
5632
+ QQBOT_CHANNEL_ID,
5632
5633
  "wecom",
5633
5634
  "wecom-app",
5634
5635
  "wecom-kf",
@@ -5642,7 +5643,7 @@ var CHANNEL_DISPLAY_LABELS = {
5642
5643
  "wecom-app": "WeCom App\uFF08\u81EA\u5EFA\u5E94\u7528-\u53EF\u63A5\u5165\u5FAE\u4FE1\uFF09",
5643
5644
  "wecom-kf": "WeCom KF\uFF08\u5FAE\u4FE1\u5BA2\u670D\uFF09",
5644
5645
  "wechat-mp": "WeChat MP\uFF08\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF09",
5645
- qqbot: "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
5646
+ "qqbot-china": "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
5646
5647
  };
5647
5648
  var CHANNEL_GUIDE_LINKS = {
5648
5649
  dingtalk: `${GUIDES_BASE}/dingtalk/configuration.md`,
@@ -5651,7 +5652,7 @@ var CHANNEL_GUIDE_LINKS = {
5651
5652
  "wecom-app": `${GUIDES_BASE}/wecom-app/configuration.md`,
5652
5653
  "wecom-kf": "https://github.com/BytePioneer-AI/openclaw-china/blob/main/extensions/wecom-kf/README.md",
5653
5654
  "wechat-mp": `${GUIDES_BASE}/wechat-mp/configuration.md`,
5654
- qqbot: `${GUIDES_BASE}/qqbot/configuration.md`
5655
+ "qqbot-china": `${GUIDES_BASE}/qqbot/configuration.md`
5655
5656
  };
5656
5657
  var CHINA_CLI_STATE_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-cli-state");
5657
5658
  var PromptCancelledError = class extends Error {
@@ -5853,7 +5854,7 @@ function isChannelConfigured(cfg, channelId) {
5853
5854
  return hasNonEmptyString(channelCfg.clientId) && hasNonEmptyString(channelCfg.clientSecret);
5854
5855
  case "feishu-china":
5855
5856
  return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.appSecret);
5856
- case "qqbot":
5857
+ case "qqbot-china":
5857
5858
  return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.clientSecret);
5858
5859
  case "wecom":
5859
5860
  return hasWecomWsCredentialPair(channelCfg);
@@ -5874,11 +5875,12 @@ function withConfiguredSuffix(cfg, channelId) {
5874
5875
  function mergeChannelConfig(cfg, channelId, patch) {
5875
5876
  const channels = isRecord(cfg.channels) ? { ...cfg.channels } : {};
5876
5877
  const existing = getChannelConfig(cfg, channelId);
5877
- channels[channelId] = {
5878
+ const nextChannelConfig = {
5878
5879
  ...existing,
5879
5880
  ...patch,
5880
5881
  enabled: true
5881
5882
  };
5883
+ channels[channelId] = nextChannelConfig;
5882
5884
  return {
5883
5885
  ...cfg,
5884
5886
  channels
@@ -6255,8 +6257,8 @@ async function configureWechatMp(prompter, cfg) {
6255
6257
  }
6256
6258
  async function configureQQBot(prompter, cfg) {
6257
6259
  section("\u914D\u7F6E QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09");
6258
- showGuideLink("qqbot");
6259
- const existing = getChannelConfig(cfg, "qqbot");
6260
+ showGuideLink(QQBOT_CHANNEL_ID);
6261
+ const existing = getChannelConfig(cfg, QQBOT_CHANNEL_ID);
6260
6262
  const existingAsr = isRecord(existing.asr) ? existing.asr : {};
6261
6263
  const appId = await prompter.askText({
6262
6264
  label: "QQBot appId",
@@ -6293,7 +6295,7 @@ async function configureQQBot(prompter, cfg) {
6293
6295
  required: true
6294
6296
  });
6295
6297
  }
6296
- return mergeChannelConfig(cfg, "qqbot", {
6298
+ return mergeChannelConfig(cfg, QQBOT_CHANNEL_ID, {
6297
6299
  appId,
6298
6300
  clientSecret,
6299
6301
  asr
@@ -6313,7 +6315,7 @@ async function configureSingleChannel(channel, prompter, cfg) {
6313
6315
  return configureWecomKf(prompter, cfg);
6314
6316
  case "wechat-mp":
6315
6317
  return configureWechatMp(prompter, cfg);
6316
- case "qqbot":
6318
+ case "qqbot-china":
6317
6319
  return configureQQBot(prompter, cfg);
6318
6320
  default:
6319
6321
  return cfg;
@@ -6455,7 +6457,7 @@ var SUPPORTED_CHANNELS = [
6455
6457
  "wecom-app",
6456
6458
  "wecom-kf",
6457
6459
  "wechat-mp",
6458
- "qqbot"
6460
+ "qqbot-china"
6459
6461
  ];
6460
6462
  var CHINA_INSTALL_HINT_SHOWN_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-install-hint-shown");
6461
6463
  function isRecord2(value) {