@cxyhhhhh/openclaw-qqbot 2.0.0-dev.202607081621 → 2.0.0-dev.202607081648

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.cjs CHANGED
@@ -5015,11 +5015,11 @@ var import_node_os = __toESM(require("os"), 1);
5015
5015
  // src/outbound/outbound-service.ts
5016
5016
  var path3 = __toESM(require("path"), 1);
5017
5017
 
5018
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/QQBot.js
5018
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/QQBot.js
5019
5019
  var fs3 = __toESM(require("fs"), 1);
5020
5020
  var path = __toESM(require("path"), 1);
5021
5021
 
5022
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/types.js
5022
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/types.js
5023
5023
  function resolvePolicy(ctx, path20, explicit, defaultValue) {
5024
5024
  if (explicit !== void 0 && explicit !== null) {
5025
5025
  return explicit;
@@ -5095,7 +5095,7 @@ function createMiddlewareContext(params) {
5095
5095
  return ctx;
5096
5096
  }
5097
5097
 
5098
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/types.js
5098
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/types.js
5099
5099
  var ApiError = class extends Error {
5100
5100
  httpStatus;
5101
5101
  path;
@@ -5128,7 +5128,7 @@ var StreamContentType = {
5128
5128
  MARKDOWN: "markdown"
5129
5129
  };
5130
5130
 
5131
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/format.js
5131
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/format.js
5132
5132
  function formatErrorMessage(err) {
5133
5133
  if (err instanceof Error) {
5134
5134
  let formatted = err.message || err.name || "Error";
@@ -5175,7 +5175,7 @@ function formatFileSize(bytes) {
5175
5175
  return `${(bytes / 1024 / 1024 / 1024).toFixed(2)} GB`;
5176
5176
  }
5177
5177
 
5178
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/api-client.js
5178
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/api-client.js
5179
5179
  var DEFAULT_BASE_URL = "https://api.sgroup.qq.com";
5180
5180
  var DEFAULT_TIMEOUT_MS = 3e4;
5181
5181
  var FILE_UPLOAD_TIMEOUT_MS = 12e4;
@@ -5270,12 +5270,12 @@ var ApiClient = class {
5270
5270
  }
5271
5271
  };
5272
5272
 
5273
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/media-chunked.js
5273
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/media-chunked.js
5274
5274
  var crypto = __toESM(require("crypto"), 1);
5275
5275
  var fs = __toESM(require("fs"), 1);
5276
5276
  var https = __toESM(require("https"), 1);
5277
5277
 
5278
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/retry.js
5278
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/retry.js
5279
5279
  async function withRetry(fn, policy, persistentPolicy, logger) {
5280
5280
  let lastError = null;
5281
5281
  for (let attempt = 0; attempt <= policy.maxRetries; attempt++) {
@@ -5367,7 +5367,7 @@ function buildPartFinishPersistentPolicy(retryTimeoutMs, retryableCodes = PART_F
5367
5367
  var PART_FINISH_RETRYABLE_CODES = /* @__PURE__ */ new Set([40093001]);
5368
5368
  var UPLOAD_PREPARE_FALLBACK_CODE = 40093002;
5369
5369
 
5370
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/routes.js
5370
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/routes.js
5371
5371
  function messagePath(scope, targetId) {
5372
5372
  return scope === "c2c" ? `/v2/users/${targetId}/messages` : `/v2/groups/${targetId}/messages`;
5373
5373
  }
@@ -5404,7 +5404,7 @@ function getNextMsgSeq(_msgId) {
5404
5404
  return (timePart ^ random) % 65536;
5405
5405
  }
5406
5406
 
5407
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/media-chunked.js
5407
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/media-chunked.js
5408
5408
  var UploadDailyLimitExceededError = class extends Error {
5409
5409
  filePath;
5410
5410
  fileSize;
@@ -5663,7 +5663,7 @@ function sleep2(ms) {
5663
5663
  return new Promise((resolve2) => setTimeout(resolve2, ms));
5664
5664
  }
5665
5665
 
5666
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/media.js
5666
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/media.js
5667
5667
  var fs2 = __toESM(require("fs"), 1);
5668
5668
  var MediaApi = class {
5669
5669
  client;
@@ -5744,7 +5744,7 @@ var MediaApi = class {
5744
5744
  }
5745
5745
  };
5746
5746
 
5747
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/messages.js
5747
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/messages.js
5748
5748
  var MessageApi = class {
5749
5749
  client;
5750
5750
  tokenManager;
@@ -5932,7 +5932,7 @@ var MessageApi = class {
5932
5932
  }
5933
5933
  };
5934
5934
 
5935
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/api/token.js
5935
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/api/token.js
5936
5936
  var DEFAULT_TOKEN_BASE_URL = "https://bots.qq.com";
5937
5937
  var TOKEN_PATH = "/app/getAppAccessToken";
5938
5938
  var TokenManager = class {
@@ -6119,7 +6119,7 @@ var import_websocket = __toESM(require_websocket(), 1);
6119
6119
  var import_websocket_server = __toESM(require_websocket_server(), 1);
6120
6120
  var wrapper_default = import_websocket.default;
6121
6121
 
6122
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/gateway/codec.js
6122
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/gateway/codec.js
6123
6123
  function decodeGatewayMessageData(data) {
6124
6124
  if (typeof data === "string") {
6125
6125
  return data;
@@ -6146,7 +6146,7 @@ function readOptionalMessageSceneExt(event) {
6146
6146
  return scene?.ext;
6147
6147
  }
6148
6148
 
6149
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/gateway/constants.js
6149
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/gateway/constants.js
6150
6150
  var INTENTS = {
6151
6151
  GUILDS: 1 << 0,
6152
6152
  GUILD_MEMBERS: 1 << 1,
@@ -6219,7 +6219,7 @@ var GatewayEvent = {
6219
6219
  MESSAGE_REACTION_REMOVE: "MESSAGE_REACTION_REMOVE"
6220
6220
  };
6221
6221
 
6222
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/gateway/event-dispatcher.js
6222
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/gateway/event-dispatcher.js
6223
6223
  var REF_INDEX_KEY = "msg_idx";
6224
6224
  function parseRefIndices(ext, msgType, msgElements) {
6225
6225
  let refMsgIdx;
@@ -6360,7 +6360,7 @@ function dispatchEvent(eventType, data, _accountId, _log) {
6360
6360
  return { action: "raw", type: eventType, data };
6361
6361
  }
6362
6362
 
6363
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/gateway/reconnect.js
6363
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/gateway/reconnect.js
6364
6364
  var ReconnectState = class {
6365
6365
  accountId;
6366
6366
  log;
@@ -6471,7 +6471,7 @@ var ReconnectState = class {
6471
6471
  }
6472
6472
  };
6473
6473
 
6474
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/gateway/gateway-connection.js
6474
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/gateway/gateway-connection.js
6475
6475
  var GatewayConnection = class {
6476
6476
  isAborted = false;
6477
6477
  currentWs = null;
@@ -6729,7 +6729,7 @@ function previewPayload(data) {
6729
6729
  }
6730
6730
  }
6731
6731
 
6732
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/transport/webhook-verify.js
6732
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/transport/webhook-verify.js
6733
6733
  var crypto2 = __toESM(require("crypto"), 1);
6734
6734
  function deriveSeed(botSecret) {
6735
6735
  let seed = botSecret;
@@ -6781,7 +6781,7 @@ function signValidationResponse(params) {
6781
6781
  };
6782
6782
  }
6783
6783
 
6784
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/transport/webhook-server-node.js
6784
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/transport/webhook-server-node.js
6785
6785
  var http = __toESM(require("http"), 1);
6786
6786
  var NodeHttpWebhookServer = class {
6787
6787
  server = null;
@@ -6829,7 +6829,7 @@ var NodeHttpWebhookServer = class {
6829
6829
  }
6830
6830
  };
6831
6831
 
6832
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/transport/webhook.js
6832
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/transport/webhook.js
6833
6833
  var OP_DISPATCH = 0;
6834
6834
  var OP_HTTP_CALLBACK_ACK = 12;
6835
6835
  var OP_VALIDATION = 13;
@@ -6973,7 +6973,7 @@ function getHeader(headers, key) {
6973
6973
  return val;
6974
6974
  }
6975
6975
 
6976
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/file-utils.js
6976
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/file-utils.js
6977
6977
  var MAX_UPLOAD_SIZE = 20 * 1024 * 1024;
6978
6978
  var CHUNKED_UPLOAD_MAX_SIZE = 100 * 1024 * 1024;
6979
6979
  var LARGE_FILE_THRESHOLD = 5 * 1024 * 1024;
@@ -6991,7 +6991,7 @@ function sanitizeFileName(name) {
6991
6991
  return cleaned || "file";
6992
6992
  }
6993
6993
 
6994
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/upload-cache.js
6994
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/upload-cache.js
6995
6995
  var crypto3 = __toESM(require("crypto"), 1);
6996
6996
  var MAX_CACHE_SIZE = 500;
6997
6997
  function computeFileHash(data) {
@@ -7056,7 +7056,7 @@ var UploadCache = class {
7056
7056
  }
7057
7057
  };
7058
7058
 
7059
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/streaming.js
7059
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/streaming.js
7060
7060
  var DEFAULT_THROTTLE_MS = 500;
7061
7061
  var MIN_THROTTLE_MS = 300;
7062
7062
  var MAX_FLUSH_RETRIES = 3;
@@ -7224,7 +7224,7 @@ var StreamSession = class {
7224
7224
  }
7225
7225
  };
7226
7226
 
7227
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/QQBot.js
7227
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/QQBot.js
7228
7228
  var MsgType = {
7229
7229
  /** Plain text. */
7230
7230
  TEXT: 0,
@@ -7912,7 +7912,7 @@ var QQBot = class {
7912
7912
  }
7913
7913
  };
7914
7914
 
7915
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/message-filter.js
7915
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/message-filter.js
7916
7916
  function messageFilter(options = {}) {
7917
7917
  const skipSelfEcho = options.skipSelfEcho ?? true;
7918
7918
  const dedupOpts = options.dedup !== false ? { windowMs: 5e3, maxSize: 1e3, ...options.dedup ?? {} } : null;
@@ -7950,7 +7950,7 @@ function messageFilter(options = {}) {
7950
7950
  };
7951
7951
  }
7952
7952
 
7953
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/content-sanitizer.js
7953
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/content-sanitizer.js
7954
7954
  function contentSanitizer(options = {}) {
7955
7955
  const { stripBotMention = true, stripAllMentions = false, collapseWhitespace = false, parseFaceTags: parseFaceTags2 = false, transform } = options;
7956
7956
  return async (ctx, next) => {
@@ -8045,7 +8045,7 @@ function faceToEmoji(id) {
8045
8045
  return map[id];
8046
8046
  }
8047
8047
 
8048
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/rate-limiter.js
8048
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/rate-limiter.js
8049
8049
  var SlidingWindow = class {
8050
8050
  buckets = /* @__PURE__ */ new Map();
8051
8051
  max;
@@ -8099,7 +8099,7 @@ function rateLimiter(options = {}) {
8099
8099
  };
8100
8100
  }
8101
8101
 
8102
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/concurrency-guard.js
8102
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/concurrency-guard.js
8103
8103
  function concurrencyGuard(options = {}) {
8104
8104
  const strategy = options.strategy ?? "queue";
8105
8105
  const maxQueue = options.maxQueue ?? 3;
@@ -8303,7 +8303,7 @@ function concurrencyGuard(options = {}) {
8303
8303
  return guard;
8304
8304
  }
8305
8305
 
8306
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/mention-gate.js
8306
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/mention-gate.js
8307
8307
  function detectMentionInContent(content, appId) {
8308
8308
  if (!content || !appId)
8309
8309
  return false;
@@ -8359,7 +8359,7 @@ function mentionGate(options = {}) {
8359
8359
  };
8360
8360
  }
8361
8361
 
8362
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/quote-ref.js
8362
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/quote-ref.js
8363
8363
  var MemoryRefIndexStore = class {
8364
8364
  map = /* @__PURE__ */ new Map();
8365
8365
  maxSize;
@@ -8477,7 +8477,7 @@ function buildText(content, attachments) {
8477
8477
  return parts.join("\n") || "[empty message]";
8478
8478
  }
8479
8479
 
8480
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/envelope-formatter.js
8480
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/envelope-formatter.js
8481
8481
  function envelopeFormatter(options = {}) {
8482
8482
  const { historyLimit = 5, includeQuote = true, includeSender = true, format } = options;
8483
8483
  return async (ctx, next) => {
@@ -8549,7 +8549,7 @@ ${parts.join("\n")}
8549
8549
  return sections.join("\n\n");
8550
8550
  }
8551
8551
 
8552
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/slash-command.js
8552
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/slash-command.js
8553
8553
  function slashCommand(options = {}) {
8554
8554
  const prefixes = options.prefixes ?? ["/"];
8555
8555
  const catchErrors = options.catchErrors ?? true;
@@ -8701,7 +8701,7 @@ async function sendCommandResult(ctx, result) {
8701
8701
  }
8702
8702
  }
8703
8703
 
8704
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/history-buffer.js
8704
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/history-buffer.js
8705
8705
  var MemoryHistoryStore = class {
8706
8706
  buffers = /* @__PURE__ */ new Map();
8707
8707
  append(groupKey, entry, limit) {
@@ -8766,7 +8766,7 @@ function historyBuffer(options = {}) {
8766
8766
  return m3;
8767
8767
  }
8768
8768
 
8769
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/typing-indicator.js
8769
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/typing-indicator.js
8770
8770
  var DEFAULT_DURATION_SEC = 60;
8771
8771
  var DEFAULT_KEEPALIVE_INTERVAL_MS = 5e4;
8772
8772
  function typingIndicator(options = {}) {
@@ -8803,7 +8803,7 @@ function typingIndicator(options = {}) {
8803
8803
  };
8804
8804
  }
8805
8805
 
8806
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/middleware/error-handler.js
8806
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/middleware/error-handler.js
8807
8807
  var DEFAULT_FORMAT = (err) => {
8808
8808
  if (err instanceof ApiError) {
8809
8809
  if (err.bizMessage)
@@ -8841,7 +8841,7 @@ function errorHandler(options = {}) {
8841
8841
  };
8842
8842
  }
8843
8843
 
8844
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/storage/kv-store.js
8844
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/storage/kv-store.js
8845
8845
  var import_node_fs = __toESM(require("fs"), 1);
8846
8846
  var import_node_path = __toESM(require("path"), 1);
8847
8847
  var FileKVStore = class {
@@ -8951,7 +8951,7 @@ var FileKVStore = class {
8951
8951
  }
8952
8952
  };
8953
8953
 
8954
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/storage/session-adapter.js
8954
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/storage/session-adapter.js
8955
8955
  function kvSessionPersistence(opts) {
8956
8956
  const prefix = opts.prefix ?? "qqbot:session:";
8957
8957
  const key = `${prefix}${opts.accountId}`;
@@ -11100,10 +11100,10 @@ function buildCommandList(account, opts) {
11100
11100
  // src/middleware/attachment.ts
11101
11101
  var path16 = __toESM(require("path"), 1);
11102
11102
 
11103
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/reply-limiter.js
11103
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/reply-limiter.js
11104
11104
  var DEFAULT_TTL_MS = 60 * 60 * 1e3;
11105
11105
 
11106
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/media-tags.js
11106
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/media-tags.js
11107
11107
  var VALID_TAGS = ["qqimg", "qqvoice", "qqvideo", "qqfile", "qqmedia"];
11108
11108
  var TAG_ALIASES = {
11109
11109
  qq_img: "qqimg",
@@ -11152,30 +11152,30 @@ var SELF_CLOSING_TAG_REGEX = new RegExp("`?" + LEFT_BRACKET + "\\s*(" + TAG_NAME
11152
11152
  var FUZZY_MEDIA_TAG_REGEX = new RegExp("`?" + LEFT_BRACKET + "\\s*(" + TAG_NAME_PATTERN + ")\\s*" + RIGHT_BRACKET + `["']?\\s*([^<\uFF1C<\uFF1E>"'\`]+?)\\s*["']?` + LEFT_BRACKET + "\\s*/?\\s*(?:" + TAG_NAME_PATTERN + ")\\s*" + RIGHT_BRACKET + "`?", "gi");
11153
11153
  var MULTILINE_TAG_CLEANUP = new RegExp("(" + LEFT_BRACKET + "\\s*(?:" + TAG_NAME_PATTERN + ")\\s*" + RIGHT_BRACKET + ")([\\s\\S]*?)(" + LEFT_BRACKET + "\\s*/?\\s*(?:" + TAG_NAME_PATTERN + ")\\s*" + RIGHT_BRACKET + ")", "gi");
11154
11154
 
11155
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/ref-index-store.js
11155
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/ref-index-store.js
11156
11156
  var import_node_fs6 = __toESM(require("fs"), 1);
11157
11157
  var DEFAULT_TTL_MS2 = 7 * 24 * 60 * 60 * 1e3;
11158
11158
 
11159
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/session-store.js
11159
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/session-store.js
11160
11160
  var import_node_fs7 = __toESM(require("fs"), 1);
11161
11161
  var import_node_path7 = __toESM(require("path"), 1);
11162
11162
  var DEFAULT_EXPIRE_MS = 5 * 60 * 1e3;
11163
11163
 
11164
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/text-parsing.js
11164
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/text-parsing.js
11165
11165
  var MAX_FACE_EXT_BYTES = 64 * 1024;
11166
11166
 
11167
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/media-source.js
11167
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/media-source.js
11168
11168
  var fs14 = __toESM(require("fs"), 1);
11169
11169
 
11170
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/image-size.js
11170
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/image-size.js
11171
11171
  var import_node_buffer = require("buffer");
11172
11172
 
11173
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/ffmpeg.js
11173
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/ffmpeg.js
11174
11174
  var import_node_child_process = require("child_process");
11175
11175
  var fs15 = __toESM(require("fs"), 1);
11176
11176
  var path13 = __toESM(require("path"), 1);
11177
11177
 
11178
- // node_modules/.pnpm/@tencent+qqbot-nodejs@0.0.0-dev.8a6be470/node_modules/@tencent/qqbot-nodejs/dist/protocol/utils/audio.js
11178
+ // node_modules/.pnpm/@cxyhhhhh+qqbot-nodejs@1.0.2-dev.202607081646/node_modules/@cxyhhhhh/qqbot-nodejs/dist/protocol/utils/audio.js
11179
11179
  var import_node_child_process2 = require("child_process");
11180
11180
  var fs16 = __toESM(require("fs"), 1);
11181
11181
  var path14 = __toESM(require("path"), 1);