@openclaw/qqbot 2026.5.4-beta.1 → 2026.5.4-beta.3

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
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-BJfhwrPg.js";
2
2
  import { a as resolveQQBotAccount, i as resolveDefaultQQBotAccountId, n as applyQQBotAccountConfig, r as listQQBotAccountIds, t as DEFAULT_ACCOUNT_ID } from "./config-D6545NkC.js";
3
- import { t as qqbotPlugin } from "./channel-YUxl6Z0S.js";
3
+ import { t as qqbotPlugin } from "./channel-CC2YO9fj.js";
4
4
  import { C as debugLog, L as formatErrorMessage, S as debugError, o as getAccessToken } from "./sender-p-B14eLG.js";
5
5
  import { t as qqbotSetupPlugin } from "./channel.setup-ByCRAe5H.js";
6
- import { r as getFrameworkCommands, t as getRequestContext } from "./request-context-C-VU3Sf9.js";
6
+ import { r as getFrameworkCommands, t as getRequestContext } from "./request-context-Cjwx7OwW.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
  /**
@@ -544,7 +544,7 @@ function buildFrameworkSlashContext({ ctx, account, from, commandName }) {
544
544
  accountId: account.accountId,
545
545
  appId: account.appId,
546
546
  accountConfig: account.config,
547
- commandAuthorized: true,
547
+ commandAuthorized: ctx.isAuthorizedSender,
548
548
  queueSnapshot: { ...DEFAULT_QUEUE_SNAPSHOT }
549
549
  };
550
550
  }
@@ -626,6 +626,7 @@ function registerQQBotFrameworkCommands(api) {
626
626
  for (const cmd of getFrameworkCommands()) api.registerCommand({
627
627
  name: cmd.name,
628
628
  description: cmd.description,
629
+ channels: ["qqbot"],
629
630
  requireAuth: true,
630
631
  acceptsArgs: true,
631
632
  handler: async (ctx) => {
@@ -344,7 +344,7 @@ function clearAccountCredentials(cfg, accountId) {
344
344
  //#region extensions/qqbot/src/channel.ts
345
345
  let _gatewayModulePromise;
346
346
  function loadGatewayModule() {
347
- _gatewayModulePromise ??= import("./gateway-C78cdZZC.js");
347
+ _gatewayModulePromise ??= import("./gateway-Cs3-_on9.js");
348
348
  return _gatewayModulePromise;
349
349
  }
350
350
  const EXEC_APPROVAL_COMMAND_RE = /\/approve(?:@[^\s]+)?\s+[A-Za-z0-9][A-Za-z0-9._:-]*\s+(?:allow-once|allow-always|always|deny)\b/i;
@@ -1,2 +1,2 @@
1
- import { t as qqbotPlugin } from "./channel-YUxl6Z0S.js";
1
+ import { t as qqbotPlugin } from "./channel-CC2YO9fj.js";
2
2
  export { qqbotPlugin };
@@ -6,7 +6,7 @@ import { t as toGatewayAccount } from "./narrowing-BoieBTIU.js";
6
6
  import { B as StreamInputState, C as debugLog, E as getNextMsgSeq, I as formatDuration, L as formatErrorMessage, N as getImageMimeType, P as getMaxUploadSize, R as StreamContentType, S as debugError, a as createRawInputNotifyFn, b as withTokenRetry, c as getMessageApi, d as initSender, f as onMessageSent, g as sendText, h as sendMedia$1, i as clearTokenCache, j as formatFileSize, k as downloadFile, l as getPluginUserAgent, m as sendInputNotify, n as acknowledgeInteraction, o as getAccessToken, p as registerAccount, r as buildDeliveryTarget, s as getGatewayUrl, t as accountToCreds, u as initApiConfig, v as startBackgroundTokenRefresh, w as debugWarn, x as openLocalFile, y as stopBackgroundTokenRefresh, z as StreamInputMode } from "./sender-p-B14eLG.js";
7
7
  import { n as getQQBotRuntimeForEngine, t as getQQBotRuntime } from "./runtime-BJAS3eXW.js";
8
8
  import { a as getHomeDir, c as getQQBotMediaDir, d as isLocalPath, f as isWindows, i as checkSilkWasmAvailable, m as resolveQQBotPayloadLocalFilePath, o as getQQBotDataDir, p as normalizePath$1, s as getQQBotDataPath, u as getTempDir } from "./target-parser-Y0prnrXD.js";
9
- import { a as getPluginVersion, i as getFrameworkVersion, n as runWithRequestContext, o as initCommands, s as matchSlashCommand } from "./request-context-C-VU3Sf9.js";
9
+ import { a as getPluginVersion, i as getFrameworkVersion, n as runWithRequestContext, o as initCommands, s as matchSlashCommand } from "./request-context-Cjwx7OwW.js";
10
10
  import * as fs$1 from "node:fs";
11
11
  import fs from "node:fs";
12
12
  import * as os$1 from "node:os";
@@ -782,8 +782,8 @@ function lc(s) {
782
782
  * Slash command registry.
783
783
  *
784
784
  * Maintains two maps:
785
- * - `commands` — pre-dispatch commands (requireAuth: false)
786
- * - `frameworkCommands` — auth-gated commands (requireAuth: true)
785
+ * - `commands` — QQBot message-flow commands
786
+ * - `frameworkCommands` — auth-gated commands that are safe on the framework surface
787
787
  */
788
788
  var SlashCommandRegistry = class {
789
789
  constructor() {
@@ -796,7 +796,7 @@ var SlashCommandRegistry = class {
796
796
  this.commands.set(key, cmd);
797
797
  if (cmd.requireAuth) this.frameworkCommands.set(key, cmd);
798
798
  }
799
- /** Return all auth-gated commands for framework registration. */
799
+ /** Return all commands that may be registered on the framework surface. */
800
800
  getFrameworkCommands() {
801
801
  return Array.from(this.frameworkCommands.values()).map((cmd) => ({
802
802
  name: cmd.name,
@@ -856,8 +856,8 @@ function initCommands(port) {
856
856
  initSlashCommandDeps(port);
857
857
  }
858
858
  /**
859
- * Return all commands that require authorization, for registration with the
860
- * framework via api.registerCommand() in registerFull().
859
+ * Return commands that may be registered with the framework via
860
+ * api.registerCommand() in registerFull().
861
861
  */
862
862
  function getFrameworkCommands() {
863
863
  return registry.getFrameworkCommands();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/qqbot",
3
- "version": "2026.5.4-beta.1",
3
+ "version": "2026.5.4-beta.3",
4
4
  "private": false,
5
5
  "description": "OpenClaw QQ Bot channel plugin",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "mpg123-decoder": "^1.0.3",
14
14
  "silk-wasm": "^3.7.1",
15
15
  "ws": "^8.20.0",
16
- "zod": "^4.4.1"
16
+ "zod": "^4.4.3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@openclaw/plugin-sdk": "workspace:*",
@@ -21,7 +21,7 @@
21
21
  "openclaw": "workspace:*"
22
22
  },
23
23
  "peerDependencies": {
24
- "openclaw": ">=2026.5.4-beta.1"
24
+ "openclaw": ">=2026.5.4-beta.3"
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.4-beta.1"
53
+ "pluginApi": ">=2026.5.4-beta.3"
54
54
  },
55
55
  "build": {
56
- "openclawVersion": "2026.5.4-beta.1"
56
+ "openclawVersion": "2026.5.4-beta.3"
57
57
  },
58
58
  "release": {
59
59
  "publishToClawHub": true,