@openclaw/qqbot 2026.5.14-beta.2 → 2026.5.16-beta.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/api.js CHANGED
@@ -1,9 +1,9 @@
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-DTQUASKu.js";
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-DekhyR4u.js";
2
2
  import { c as listQQBotAccountIds, l as resolveDefaultQQBotAccountId, o as DEFAULT_ACCOUNT_ID, s as applyQQBotAccountConfig, u as resolveQQBotAccount } from "./config-schema-BE5YP0NG.js";
3
- import { t as qqbotPlugin } from "./channel-nG7HntSR.js";
3
+ import { t as qqbotPlugin } from "./channel-CsKOF-PJ.js";
4
4
  import { C as debugError, l as getAccessToken, w as debugLog, z as formatErrorMessage } from "./runtime-BFcYWYuk.js";
5
5
  import { t as qqbotSetupPlugin } from "./channel.setup-D_8Ryfln.js";
6
- import { r as getFrameworkCommands, t as getRequestContext } from "./request-context-DiWgzdpn.js";
6
+ import { r as getFrameworkCommands, t as getRequestContext } from "./request-context-FhYx1qjS.js";
7
7
  import { callGatewayTool } from "openclaw/plugin-sdk/agent-harness-runtime";
8
8
  //#region extensions/qqbot/src/engine/tools/channel-api.ts
9
9
  /**
@@ -374,7 +374,7 @@ function createQQBotApprovalCapability() {
374
374
  },
375
375
  load: async () => {
376
376
  ensurePlatformAdapter();
377
- return (await import("./handler-runtime-DMMHU4NC.js")).qqbotApprovalNativeRuntime;
377
+ return (await import("./handler-runtime-CsNYWx6E.js")).qqbotApprovalNativeRuntime;
378
378
  }
379
379
  })
380
380
  });
@@ -826,7 +826,7 @@ function looksLikeQQBotTarget(id) {
826
826
  //#region extensions/qqbot/src/channel.ts
827
827
  let gatewayModulePromise;
828
828
  function loadGatewayModule() {
829
- gatewayModulePromise ??= import("./gateway-Bz_nu9BP.js");
829
+ gatewayModulePromise ??= import("./gateway-pvpMZ-Sn.js");
830
830
  return gatewayModulePromise;
831
831
  }
832
832
  function createQQBotSendReceipt(params) {
@@ -844,7 +844,7 @@ function createQQBotSendReceipt(params) {
844
844
  async function sendQQBotText(params) {
845
845
  await loadGatewayModule();
846
846
  const account = resolveQQBotAccount(params.cfg, params.accountId);
847
- const { sendText } = await import("./outbound-DTQUASKu.js").then((n) => n.t);
847
+ const { sendText } = await import("./outbound-DekhyR4u.js").then((n) => n.t);
848
848
  const result = await sendText({
849
849
  to: params.to,
850
850
  text: params.text,
@@ -866,7 +866,7 @@ async function sendQQBotText(params) {
866
866
  async function sendQQBotMedia(params) {
867
867
  await loadGatewayModule();
868
868
  const account = resolveQQBotAccount(params.cfg, params.accountId);
869
- const { sendMedia } = await import("./outbound-DTQUASKu.js").then((n) => n.t);
869
+ const { sendMedia } = await import("./outbound-DekhyR4u.js").then((n) => n.t);
870
870
  const result = await sendMedia({
871
871
  to: params.to,
872
872
  text: params.text ?? "",
@@ -1,2 +1,2 @@
1
- import { t as qqbotPlugin } from "./channel-nG7HntSR.js";
1
+ import { t as qqbotPlugin } from "./channel-CsKOF-PJ.js";
2
2
  export { qqbotPlugin };
@@ -1,9 +1,9 @@
1
- import { E as setOutboundAudioPort, _ as sendVoice, c as isMediaPayload, g as sendVideoMsg, h as sendPhoto, l as parseQQBotPayload, m as sendDocument, o as encodePayloadForCron, r as sendMedia, s as isCronReminderPayload, u as normalizeMediaTags, v as resolveUserFacingMediaError, w as DEFAULT_MEDIA_SEND_ERROR } from "./outbound-DTQUASKu.js";
1
+ import { E as setOutboundAudioPort, _ as sendVoice, c as isMediaPayload, g as sendVideoMsg, h as sendPhoto, l as parseQQBotPayload, m as sendDocument, o as encodePayloadForCron, r as sendMedia, s as isCronReminderPayload, u as normalizeMediaTags, v as resolveUserFacingMediaError, w as DEFAULT_MEDIA_SEND_ERROR } from "./outbound-DekhyR4u.js";
2
2
  import { c as getPlatformAdapter, i as normalizeOptionalString, n as normalizeLowercaseStringOrEmpty, o as readStringField, s as sanitizeFileName, t as asOptionalObjectRecord } from "./string-normalize-C46CS-F1.js";
3
3
  import { f as resolveAccountBase, h as setBridgeLogger, p as ensurePlatformAdapter } from "./config-schema-BE5YP0NG.js";
4
- import { C as parseApprovalButtonData, a as getQQBotDataDir, d as isWindows, f as normalizePath$1, h as authorizeQQBotApprovalAction, i as getHomeDir, l as getTempDir, m as toGatewayAccount, o as getQQBotDataPath, p as resolveQQBotPayloadLocalFilePath, r as checkSilkWasmAvailable, s as getQQBotMediaDir, u as isLocalPath } from "./channel-nG7HntSR.js";
4
+ import { C as parseApprovalButtonData, a as getQQBotDataDir, d as isWindows, f as normalizePath$1, h as authorizeQQBotApprovalAction, i as getHomeDir, l as getTempDir, m as toGatewayAccount, o as getQQBotDataPath, p as resolveQQBotPayloadLocalFilePath, r as checkSilkWasmAvailable, s as getQQBotMediaDir, u as isLocalPath } from "./channel-CsKOF-PJ.js";
5
5
  import { B as StreamContentType, C as debugError, D as getNextMsgSeq, F as getImageMimeType, H as StreamInputState, I as getMaxUploadSize, N as formatFileSize, R as formatDuration, S as withTokenRetry, T as debugWarn, V as StreamInputMode, _ as sendInputNotify, a as acknowledgeInteraction, b as startBackgroundTokenRefresh, c as createRawInputNotifyFn, d as getMessageApi, f as getPluginUserAgent, g as registerAccount, h as onMessageSent, i as accountToCreds, j as downloadFile, k as openLocalFile, l as getAccessToken, m as initSender, n as getQQBotRuntimeForEngine, o as buildDeliveryTarget, p as initApiConfig, s as clearTokenCache, t as getQQBotRuntime, u as getGatewayUrl, v as sendMedia$1, w as debugLog, x as stopBackgroundTokenRefresh, y as sendText, z as formatErrorMessage } from "./runtime-BFcYWYuk.js";
6
- import { a as getPluginVersion, i as getFrameworkVersion, n as runWithRequestContext, o as initCommands, s as matchSlashCommand } from "./request-context-DiWgzdpn.js";
6
+ import { a as getPluginVersion, i as getFrameworkVersion, n as runWithRequestContext, o as initCommands, s as matchSlashCommand } from "./request-context-FhYx1qjS.js";
7
7
  import * as fs$1 from "node:fs";
8
8
  import fs from "node:fs";
9
9
  import * as os$1 from "node:os";
@@ -21,7 +21,7 @@ import { Buffer as Buffer$1 } from "node:buffer";
21
21
  import { fileURLToPath } from "node:url";
22
22
  import { createChannelIngressResolver, defineStableChannelIngressIdentity } from "openclaw/plugin-sdk/channel-ingress-runtime";
23
23
  import { resolveInboundMentionDecision } from "openclaw/plugin-sdk/channel-mention-gating";
24
- import { buildPendingHistoryContextFromMap, clearHistoryEntriesIfEnabled, recordPendingHistoryEntryIfEnabled } from "openclaw/plugin-sdk/reply-history";
24
+ import { createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
25
25
  //#region extensions/qqbot/src/engine/group/activation.ts
26
26
  function resolveGroupActivation(params) {
27
27
  const fallback = params.configRequireMention ? "mention" : "always";
@@ -6290,16 +6290,14 @@ function asSdkMap(map) {
6290
6290
  function createSdkHistoryAdapter() {
6291
6291
  return {
6292
6292
  recordPendingHistoryEntry(params) {
6293
- return recordPendingHistoryEntryIfEnabled({
6294
- historyMap: asSdkMap(params.historyMap),
6293
+ return createChannelHistoryWindow({ historyMap: asSdkMap(params.historyMap) }).record({
6295
6294
  historyKey: params.historyKey,
6296
6295
  entry: params.entry,
6297
6296
  limit: params.limit
6298
6297
  });
6299
6298
  },
6300
6299
  buildPendingHistoryContext(params) {
6301
- return buildPendingHistoryContextFromMap({
6302
- historyMap: asSdkMap(params.historyMap),
6300
+ return createChannelHistoryWindow({ historyMap: asSdkMap(params.historyMap) }).buildPendingContext({
6303
6301
  historyKey: params.historyKey,
6304
6302
  limit: params.limit,
6305
6303
  currentMessage: params.currentMessage,
@@ -6308,8 +6306,7 @@ function createSdkHistoryAdapter() {
6308
6306
  });
6309
6307
  },
6310
6308
  clearPendingHistory(params) {
6311
- clearHistoryEntriesIfEnabled({
6312
- historyMap: asSdkMap(params.historyMap),
6309
+ createChannelHistoryWindow({ historyMap: asSdkMap(params.historyMap) }).clear({
6313
6310
  historyKey: params.historyKey,
6314
6311
  limit: params.limit
6315
6312
  });
@@ -1,5 +1,5 @@
1
1
  import { m as getBridgeLogger, p as ensurePlatformAdapter, u as resolveQQBotAccount } from "./config-schema-BE5YP0NG.js";
2
- import { S as buildPluginApprovalText, _ as matchesQQBotApprovalAccount, b as buildApprovalKeyboard, g as isQQBotExecApprovalClientEnabled, v as resolveQQBotExecApprovalConfig, w as resolveApprovalTarget, x as buildExecApprovalText, y as shouldHandleQQBotExecApprovalRequest } from "./channel-nG7HntSR.js";
2
+ import { S as buildPluginApprovalText, _ as matchesQQBotApprovalAccount, b as buildApprovalKeyboard, g as isQQBotExecApprovalClientEnabled, v as resolveQQBotExecApprovalConfig, w as resolveApprovalTarget, x as buildExecApprovalText, y as shouldHandleQQBotExecApprovalRequest } from "./channel-CsKOF-PJ.js";
3
3
  import { d as getMessageApi, i as accountToCreds } from "./runtime-BFcYWYuk.js";
4
4
  import { resolveApprovalRequestSessionConversation } from "openclaw/plugin-sdk/approval-native-runtime";
5
5
  import { createChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-runtime";
@@ -1,5 +1,5 @@
1
1
  import { i as normalizeOptionalString, n as normalizeLowercaseStringOrEmpty, s as sanitizeFileName } from "./string-normalize-C46CS-F1.js";
2
- import { a as getQQBotDataDir, f as normalizePath, n as parseTarget$1, p as resolveQQBotPayloadLocalFilePath, s as getQQBotMediaDir, u as isLocalPath } from "./channel-nG7HntSR.js";
2
+ import { a as getQQBotDataDir, f as normalizePath, n as parseTarget$1, p as resolveQQBotPayloadLocalFilePath, s as getQQBotMediaDir, u as isLocalPath } from "./channel-CsKOF-PJ.js";
3
3
  import { A as checkFileSize, C as debugError, E as UploadDailyLimitExceededError, F as getImageMimeType, I as getMaxUploadSize, L as readFileAsync, M as fileExistsAsync, N as formatFileSize, O as UPLOAD_PREPARE_FALLBACK_CODE, P as getFileTypeName, T as debugWarn, i as accountToCreds, j as downloadFile, p as initApiConfig, v as sendMedia$1, w as debugLog, y as sendText$1, z as formatErrorMessage } from "./runtime-BFcYWYuk.js";
4
4
  import { pathExistsSync, resolveLocalPathFromRootsSync } from "openclaw/plugin-sdk/security-runtime";
5
5
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { a as getQQBotDataDir, c as getQQBotMediaPath, d as isWindows, i as getHomeDir } from "./channel-nG7HntSR.js";
1
+ import { a as getQQBotDataDir, c as getQQBotMediaPath, d as isWindows, i as getHomeDir } from "./channel-CsKOF-PJ.js";
2
2
  import { w as debugLog } from "./runtime-BFcYWYuk.js";
3
3
  import fs from "node:fs";
4
4
  import path from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qqbot",
3
- "version": "2026.5.14-beta.2",
3
+ "version": "2026.5.16-beta.2",
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.14-beta.2"
24
+ "openclaw": ">=2026.5.16-beta.2"
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.14-beta.2"
53
+ "pluginApi": ">=2026.5.16-beta.2"
54
54
  },
55
55
  "build": {
56
- "openclawVersion": "2026.5.14-beta.2"
56
+ "openclawVersion": "2026.5.16-beta.2"
57
57
  },
58
58
  "release": {
59
59
  "publishToClawHub": true,