@openclaw-china/qqbot 0.1.12 → 2026.3.2
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 +3 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4229,7 +4229,7 @@ var QQBotConfigSchema = external_exports.object({
|
|
|
4229
4229
|
secretId: optionalCoercedString,
|
|
4230
4230
|
secretKey: optionalCoercedString
|
|
4231
4231
|
}).optional(),
|
|
4232
|
-
markdownSupport: external_exports.boolean().optional().default(
|
|
4232
|
+
markdownSupport: external_exports.boolean().optional().default(true),
|
|
4233
4233
|
dmPolicy: external_exports.enum(["open", "pairing", "allowlist"]).optional().default("open"),
|
|
4234
4234
|
groupPolicy: external_exports.enum(["open", "allowlist", "disabled"]).optional().default("open"),
|
|
4235
4235
|
requireMention: external_exports.boolean().optional().default(true),
|
|
@@ -6674,14 +6674,6 @@ async function configureQQBot(prompter, cfg) {
|
|
|
6674
6674
|
existingValue: toTrimmedString(existing.clientSecret),
|
|
6675
6675
|
required: true
|
|
6676
6676
|
});
|
|
6677
|
-
Ve(
|
|
6678
|
-
"QQ \u7684 Markdown \u4F53\u9A8C\u5F88\u597D\uFF0C\u4F46\u9700\u8981\u5148\u7533\u8BF7\u5F00\u901A\uFF0C\u8BE6\u60C5\u8BF7\u67E5\u770B\u914D\u7F6E\u6587\u6863\u3002",
|
|
6679
|
-
"\u63D0\u793A"
|
|
6680
|
-
);
|
|
6681
|
-
const markdownSupport = await prompter.askConfirm(
|
|
6682
|
-
"\u542F\u7528 Markdown \u652F\u6301",
|
|
6683
|
-
toBoolean(existing.markdownSupport, false)
|
|
6684
|
-
);
|
|
6685
6677
|
const asrEnabled = await prompter.askConfirm(
|
|
6686
6678
|
"\u542F\u7528 ASR\uFF08\u652F\u6301\u5165\u7AD9\u8BED\u97F3\u81EA\u52A8\u8F6C\u6587\u5B57\uFF09",
|
|
6687
6679
|
toBoolean(existingAsr.enabled, false)
|
|
@@ -6710,7 +6702,6 @@ async function configureQQBot(prompter, cfg) {
|
|
|
6710
6702
|
return mergeChannelConfig(cfg, "qqbot", {
|
|
6711
6703
|
appId,
|
|
6712
6704
|
clientSecret,
|
|
6713
|
-
markdownSupport,
|
|
6714
6705
|
asr
|
|
6715
6706
|
});
|
|
6716
6707
|
}
|
|
@@ -7301,7 +7292,7 @@ var qqbotOutbound = {
|
|
|
7301
7292
|
}
|
|
7302
7293
|
const target = parseTarget(to);
|
|
7303
7294
|
const accessToken = await getAccessToken(qqCfg.appId, qqCfg.clientSecret);
|
|
7304
|
-
const markdown = qqCfg.markdownSupport ??
|
|
7295
|
+
const markdown = qqCfg.markdownSupport ?? true;
|
|
7305
7296
|
try {
|
|
7306
7297
|
if (target.kind === "group") {
|
|
7307
7298
|
const result2 = await sendGroupMessage({
|
|
@@ -8494,7 +8485,7 @@ function resolveQQBotAccount(params) {
|
|
|
8494
8485
|
enabled: config?.enabled ?? true,
|
|
8495
8486
|
configured,
|
|
8496
8487
|
appId: credentials?.appId,
|
|
8497
|
-
markdownSupport: config?.markdownSupport ??
|
|
8488
|
+
markdownSupport: config?.markdownSupport ?? true
|
|
8498
8489
|
};
|
|
8499
8490
|
}
|
|
8500
8491
|
var qqbotPlugin = {
|