@openclaw/qqbot 2026.5.10-beta.3 → 2026.5.10-beta.4
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/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as recordMessageReply, E as setOutboundAudioPort, S as getMessageReplyStats, T as OUTBOUND_ERROR_CODES, _ as sendVoice, a as sendText, b as checkMessageReplyLimit, d as buildMediaTarget, f as parseTarget, g as sendVideoMsg, h as sendPhoto, i as sendProactiveMessage, m as sendDocument, n as sendCronMessage, p as resolveOutboundMediaPath, r as sendMedia, v as resolveUserFacingMediaError, w as DEFAULT_MEDIA_SEND_ERROR, x as getMessageReplyConfig, y as MESSAGE_REPLY_LIMIT } from "./outbound-BLWish89.js";
|
|
2
2
|
import { a as resolveQQBotAccount, i as resolveDefaultQQBotAccountId, n as applyQQBotAccountConfig, r as listQQBotAccountIds, t as DEFAULT_ACCOUNT_ID } from "./config-BT8KP_H1.js";
|
|
3
|
-
import { t as qqbotPlugin } from "./channel-
|
|
3
|
+
import { t as qqbotPlugin } from "./channel-CmK-n3Oz.js";
|
|
4
4
|
import { L as formatErrorMessage, S as debugLog, o as getAccessToken, x as debugError } from "./sender-BrpzCcXA.js";
|
|
5
5
|
import { t as qqbotSetupPlugin } from "./channel.setup-D_GS95Pk.js";
|
|
6
6
|
import { r as getFrameworkCommands, t as getRequestContext } from "./request-context-BwSBFANU.js";
|
|
@@ -345,7 +345,7 @@ function clearAccountCredentials(cfg, accountId) {
|
|
|
345
345
|
//#region extensions/qqbot/src/channel.ts
|
|
346
346
|
let gatewayModulePromise;
|
|
347
347
|
function loadGatewayModule() {
|
|
348
|
-
gatewayModulePromise ??= import("./gateway-
|
|
348
|
+
gatewayModulePromise ??= import("./gateway-Bbsd8-ne.js");
|
|
349
349
|
return gatewayModulePromise;
|
|
350
350
|
}
|
|
351
351
|
function createQQBotSendReceipt(params) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as qqbotPlugin } from "./channel-
|
|
1
|
+
import { t as qqbotPlugin } from "./channel-CmK-n3Oz.js";
|
|
2
2
|
export { qqbotPlugin };
|
|
@@ -17,6 +17,7 @@ import * as path$1 from "node:path";
|
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import { mimeTypeFromFilePath } from "openclaw/plugin-sdk/media-mime";
|
|
19
19
|
import { resolveRuntimeServiceVersion } from "openclaw/plugin-sdk/cli-runtime";
|
|
20
|
+
import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
20
21
|
import WebSocket from "ws";
|
|
21
22
|
import { resolveAmbientNodeProxyAgent } from "openclaw/plugin-sdk/extension-shared";
|
|
22
23
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -373,6 +374,25 @@ async function runDiagnostics() {
|
|
|
373
374
|
return report;
|
|
374
375
|
}
|
|
375
376
|
//#endregion
|
|
377
|
+
//#region extensions/qqbot/src/engine/gateway/active-cfg.ts
|
|
378
|
+
function createActiveCfgProvider(options) {
|
|
379
|
+
const loader = options.load ?? defaultGatewayCfgLoader;
|
|
380
|
+
const fallback = options.fallback;
|
|
381
|
+
return { getActiveCfg() {
|
|
382
|
+
return resolveActiveCfg(loader, fallback);
|
|
383
|
+
} };
|
|
384
|
+
}
|
|
385
|
+
function resolveActiveCfg(loader, fallback) {
|
|
386
|
+
try {
|
|
387
|
+
return loader();
|
|
388
|
+
} catch {
|
|
389
|
+
return fallback;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
function defaultGatewayCfgLoader() {
|
|
393
|
+
return getRuntimeConfig();
|
|
394
|
+
}
|
|
395
|
+
//#endregion
|
|
376
396
|
//#region extensions/qqbot/src/engine/access/sender-match.ts
|
|
377
397
|
/**
|
|
378
398
|
* QQBot sender normalization and allowlist matching.
|
|
@@ -5978,6 +5998,7 @@ async function startGateway$1(ctx) {
|
|
|
5978
5998
|
const groupChatEnabled = groupOpts.enabled;
|
|
5979
5999
|
const groupHistories = groupChatEnabled ? /* @__PURE__ */ new Map() : void 0;
|
|
5980
6000
|
const sessionStoreReader = groupChatEnabled ? groupOpts.sessionStoreReader ?? createNodeSessionStoreReader() : void 0;
|
|
6001
|
+
const activeCfgProvider = createActiveCfgProvider({ fallback: ctx.cfg });
|
|
5981
6002
|
const handleMessage = async (event) => {
|
|
5982
6003
|
log?.info(`Processing message from ${event.senderId}: ${event.content}`, {
|
|
5983
6004
|
accountId: account.accountId,
|
|
@@ -5991,9 +6012,10 @@ async function startGateway$1(ctx) {
|
|
|
5991
6012
|
accountId: account.accountId,
|
|
5992
6013
|
direction: "inbound"
|
|
5993
6014
|
});
|
|
6015
|
+
const activeCfg = activeCfgProvider.getActiveCfg();
|
|
5994
6016
|
const inbound = await buildInboundContext(event, {
|
|
5995
6017
|
account,
|
|
5996
|
-
cfg:
|
|
6018
|
+
cfg: activeCfg,
|
|
5997
6019
|
log,
|
|
5998
6020
|
runtime,
|
|
5999
6021
|
startTyping: (ev) => startTypingForEvent(ev, account, log),
|
|
@@ -6031,7 +6053,7 @@ async function startGateway$1(ctx) {
|
|
|
6031
6053
|
chatType: event.type
|
|
6032
6054
|
}, () => dispatchOutbound(inbound, {
|
|
6033
6055
|
runtime,
|
|
6034
|
-
cfg:
|
|
6056
|
+
cfg: activeCfg,
|
|
6035
6057
|
account,
|
|
6036
6058
|
log
|
|
6037
6059
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/qqbot",
|
|
3
|
-
"version": "2026.5.10-beta.
|
|
3
|
+
"version": "2026.5.10-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OpenClaw QQ Bot channel plugin",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"openclaw": "workspace:*"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"openclaw": ">=2026.5.10-beta.
|
|
24
|
+
"openclaw": ">=2026.5.10-beta.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependenciesMeta": {
|
|
27
27
|
"openclaw": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"minHostVersion": ">=2026.4.10"
|
|
51
51
|
},
|
|
52
52
|
"compat": {
|
|
53
|
-
"pluginApi": ">=2026.5.10-beta.
|
|
53
|
+
"pluginApi": ">=2026.5.10-beta.4"
|
|
54
54
|
},
|
|
55
55
|
"build": {
|
|
56
|
-
"openclawVersion": "2026.5.10-beta.
|
|
56
|
+
"openclawVersion": "2026.5.10-beta.4"
|
|
57
57
|
},
|
|
58
58
|
"release": {
|
|
59
59
|
"publishToClawHub": true,
|