@openclaw-china/dingtalk 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
@@ -6372,9 +6372,10 @@ var CONFIG_FILE_PATH = join(OPENCLAW_HOME, "openclaw.json");
6372
6372
  var ANSI_RESET = "\x1B[0m";
6373
6373
  var ANSI_LINK = "\x1B[1;4;96m";
6374
6374
  var ANSI_BORDER = "\x1B[92m";
6375
+ var QQBOT_CHANNEL_ID = "qqbot-china";
6375
6376
  var CHANNEL_ORDER = [
6376
6377
  "dingtalk",
6377
- "qqbot",
6378
+ QQBOT_CHANNEL_ID,
6378
6379
  "wecom",
6379
6380
  "wecom-app",
6380
6381
  "wecom-kf",
@@ -6388,7 +6389,7 @@ var CHANNEL_DISPLAY_LABELS = {
6388
6389
  "wecom-app": "WeCom App\uFF08\u81EA\u5EFA\u5E94\u7528-\u53EF\u63A5\u5165\u5FAE\u4FE1\uFF09",
6389
6390
  "wecom-kf": "WeCom KF\uFF08\u5FAE\u4FE1\u5BA2\u670D\uFF09",
6390
6391
  "wechat-mp": "WeChat MP\uFF08\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF09",
6391
- qqbot: "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
6392
+ "qqbot-china": "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
6392
6393
  };
6393
6394
  var CHANNEL_GUIDE_LINKS = {
6394
6395
  dingtalk: `${GUIDES_BASE}/dingtalk/configuration.md`,
@@ -6397,7 +6398,7 @@ var CHANNEL_GUIDE_LINKS = {
6397
6398
  "wecom-app": `${GUIDES_BASE}/wecom-app/configuration.md`,
6398
6399
  "wecom-kf": "https://github.com/BytePioneer-AI/openclaw-china/blob/main/extensions/wecom-kf/README.md",
6399
6400
  "wechat-mp": `${GUIDES_BASE}/wechat-mp/configuration.md`,
6400
- qqbot: `${GUIDES_BASE}/qqbot/configuration.md`
6401
+ "qqbot-china": `${GUIDES_BASE}/qqbot/configuration.md`
6401
6402
  };
6402
6403
  var CHINA_CLI_STATE_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-cli-state");
6403
6404
  var PromptCancelledError = class extends Error {
@@ -6599,7 +6600,7 @@ function isChannelConfigured(cfg, channelId) {
6599
6600
  return hasNonEmptyString(channelCfg.clientId) && hasNonEmptyString(channelCfg.clientSecret);
6600
6601
  case "feishu-china":
6601
6602
  return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.appSecret);
6602
- case "qqbot":
6603
+ case "qqbot-china":
6603
6604
  return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.clientSecret);
6604
6605
  case "wecom":
6605
6606
  return hasWecomWsCredentialPair(channelCfg);
@@ -6620,11 +6621,12 @@ function withConfiguredSuffix(cfg, channelId) {
6620
6621
  function mergeChannelConfig(cfg, channelId, patch) {
6621
6622
  const channels = isRecord(cfg.channels) ? { ...cfg.channels } : {};
6622
6623
  const existing = getChannelConfig(cfg, channelId);
6623
- channels[channelId] = {
6624
+ const nextChannelConfig = {
6624
6625
  ...existing,
6625
6626
  ...patch,
6626
6627
  enabled: true
6627
6628
  };
6629
+ channels[channelId] = nextChannelConfig;
6628
6630
  return {
6629
6631
  ...cfg,
6630
6632
  channels
@@ -7001,8 +7003,8 @@ async function configureWechatMp(prompter, cfg) {
7001
7003
  }
7002
7004
  async function configureQQBot(prompter, cfg) {
7003
7005
  section("\u914D\u7F6E QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09");
7004
- showGuideLink("qqbot");
7005
- const existing = getChannelConfig(cfg, "qqbot");
7006
+ showGuideLink(QQBOT_CHANNEL_ID);
7007
+ const existing = getChannelConfig(cfg, QQBOT_CHANNEL_ID);
7006
7008
  const existingAsr = isRecord(existing.asr) ? existing.asr : {};
7007
7009
  const appId = await prompter.askText({
7008
7010
  label: "QQBot appId",
@@ -7039,7 +7041,7 @@ async function configureQQBot(prompter, cfg) {
7039
7041
  required: true
7040
7042
  });
7041
7043
  }
7042
- return mergeChannelConfig(cfg, "qqbot", {
7044
+ return mergeChannelConfig(cfg, QQBOT_CHANNEL_ID, {
7043
7045
  appId,
7044
7046
  clientSecret,
7045
7047
  asr
@@ -7059,7 +7061,7 @@ async function configureSingleChannel(channel, prompter, cfg) {
7059
7061
  return configureWecomKf(prompter, cfg);
7060
7062
  case "wechat-mp":
7061
7063
  return configureWechatMp(prompter, cfg);
7062
- case "qqbot":
7064
+ case "qqbot-china":
7063
7065
  return configureQQBot(prompter, cfg);
7064
7066
  default:
7065
7067
  return cfg;
@@ -7201,7 +7203,7 @@ var SUPPORTED_CHANNELS = [
7201
7203
  "wecom-app",
7202
7204
  "wecom-kf",
7203
7205
  "wechat-mp",
7204
- "qqbot"
7206
+ "qqbot-china"
7205
7207
  ];
7206
7208
  var CHINA_INSTALL_HINT_SHOWN_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-install-hint-shown");
7207
7209
  function isRecord2(value) {