@openclaw-china/wecom-app 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 +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5663,9 +5663,10 @@ var CONFIG_FILE_PATH = join(OPENCLAW_HOME, "openclaw.json");
|
|
|
5663
5663
|
var ANSI_RESET = "\x1B[0m";
|
|
5664
5664
|
var ANSI_LINK = "\x1B[1;4;96m";
|
|
5665
5665
|
var ANSI_BORDER = "\x1B[92m";
|
|
5666
|
+
var QQBOT_CHANNEL_ID = "qqbot-china";
|
|
5666
5667
|
var CHANNEL_ORDER = [
|
|
5667
5668
|
"dingtalk",
|
|
5668
|
-
|
|
5669
|
+
QQBOT_CHANNEL_ID,
|
|
5669
5670
|
"wecom",
|
|
5670
5671
|
"wecom-app",
|
|
5671
5672
|
"wecom-kf",
|
|
@@ -5679,7 +5680,7 @@ var CHANNEL_DISPLAY_LABELS = {
|
|
|
5679
5680
|
"wecom-app": "WeCom App\uFF08\u81EA\u5EFA\u5E94\u7528-\u53EF\u63A5\u5165\u5FAE\u4FE1\uFF09",
|
|
5680
5681
|
"wecom-kf": "WeCom KF\uFF08\u5FAE\u4FE1\u5BA2\u670D\uFF09",
|
|
5681
5682
|
"wechat-mp": "WeChat MP\uFF08\u5FAE\u4FE1\u516C\u4F17\u53F7\uFF09",
|
|
5682
|
-
qqbot: "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
|
|
5683
|
+
"qqbot-china": "QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09"
|
|
5683
5684
|
};
|
|
5684
5685
|
var CHANNEL_GUIDE_LINKS = {
|
|
5685
5686
|
dingtalk: `${GUIDES_BASE}/dingtalk/configuration.md`,
|
|
@@ -5688,7 +5689,7 @@ var CHANNEL_GUIDE_LINKS = {
|
|
|
5688
5689
|
"wecom-app": `${GUIDES_BASE}/wecom-app/configuration.md`,
|
|
5689
5690
|
"wecom-kf": "https://github.com/BytePioneer-AI/openclaw-china/blob/main/extensions/wecom-kf/README.md",
|
|
5690
5691
|
"wechat-mp": `${GUIDES_BASE}/wechat-mp/configuration.md`,
|
|
5691
|
-
qqbot: `${GUIDES_BASE}/qqbot/configuration.md`
|
|
5692
|
+
"qqbot-china": `${GUIDES_BASE}/qqbot/configuration.md`
|
|
5692
5693
|
};
|
|
5693
5694
|
var CHINA_CLI_STATE_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-cli-state");
|
|
5694
5695
|
var PromptCancelledError = class extends Error {
|
|
@@ -5890,7 +5891,7 @@ function isChannelConfigured(cfg, channelId) {
|
|
|
5890
5891
|
return hasNonEmptyString(channelCfg.clientId) && hasNonEmptyString(channelCfg.clientSecret);
|
|
5891
5892
|
case "feishu-china":
|
|
5892
5893
|
return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.appSecret);
|
|
5893
|
-
case "qqbot":
|
|
5894
|
+
case "qqbot-china":
|
|
5894
5895
|
return hasNonEmptyString(channelCfg.appId) && hasNonEmptyString(channelCfg.clientSecret);
|
|
5895
5896
|
case "wecom":
|
|
5896
5897
|
return hasWecomWsCredentialPair(channelCfg);
|
|
@@ -5911,11 +5912,12 @@ function withConfiguredSuffix(cfg, channelId) {
|
|
|
5911
5912
|
function mergeChannelConfig(cfg, channelId, patch) {
|
|
5912
5913
|
const channels = isRecord(cfg.channels) ? { ...cfg.channels } : {};
|
|
5913
5914
|
const existing = getChannelConfig(cfg, channelId);
|
|
5914
|
-
|
|
5915
|
+
const nextChannelConfig = {
|
|
5915
5916
|
...existing,
|
|
5916
5917
|
...patch,
|
|
5917
5918
|
enabled: true
|
|
5918
5919
|
};
|
|
5920
|
+
channels[channelId] = nextChannelConfig;
|
|
5919
5921
|
return {
|
|
5920
5922
|
...cfg,
|
|
5921
5923
|
channels
|
|
@@ -6292,8 +6294,8 @@ async function configureWechatMp(prompter, cfg) {
|
|
|
6292
6294
|
}
|
|
6293
6295
|
async function configureQQBot(prompter, cfg) {
|
|
6294
6296
|
section("\u914D\u7F6E QQBot\uFF08QQ \u673A\u5668\u4EBA\uFF09");
|
|
6295
|
-
showGuideLink(
|
|
6296
|
-
const existing = getChannelConfig(cfg,
|
|
6297
|
+
showGuideLink(QQBOT_CHANNEL_ID);
|
|
6298
|
+
const existing = getChannelConfig(cfg, QQBOT_CHANNEL_ID);
|
|
6297
6299
|
const existingAsr = isRecord(existing.asr) ? existing.asr : {};
|
|
6298
6300
|
const appId = await prompter.askText({
|
|
6299
6301
|
label: "QQBot appId",
|
|
@@ -6330,7 +6332,7 @@ async function configureQQBot(prompter, cfg) {
|
|
|
6330
6332
|
required: true
|
|
6331
6333
|
});
|
|
6332
6334
|
}
|
|
6333
|
-
return mergeChannelConfig(cfg,
|
|
6335
|
+
return mergeChannelConfig(cfg, QQBOT_CHANNEL_ID, {
|
|
6334
6336
|
appId,
|
|
6335
6337
|
clientSecret,
|
|
6336
6338
|
asr
|
|
@@ -6350,7 +6352,7 @@ async function configureSingleChannel(channel, prompter, cfg) {
|
|
|
6350
6352
|
return configureWecomKf(prompter, cfg);
|
|
6351
6353
|
case "wechat-mp":
|
|
6352
6354
|
return configureWechatMp(prompter, cfg);
|
|
6353
|
-
case "qqbot":
|
|
6355
|
+
case "qqbot-china":
|
|
6354
6356
|
return configureQQBot(prompter, cfg);
|
|
6355
6357
|
default:
|
|
6356
6358
|
return cfg;
|
|
@@ -6492,7 +6494,7 @@ var SUPPORTED_CHANNELS = [
|
|
|
6492
6494
|
"wecom-app",
|
|
6493
6495
|
"wecom-kf",
|
|
6494
6496
|
"wechat-mp",
|
|
6495
|
-
"qqbot"
|
|
6497
|
+
"qqbot-china"
|
|
6496
6498
|
];
|
|
6497
6499
|
var CHINA_INSTALL_HINT_SHOWN_KEY = /* @__PURE__ */ Symbol.for("@openclaw-china/china-install-hint-shown");
|
|
6498
6500
|
function isRecord2(value) {
|