@tencent-connect/openclaw-qqbot 1.6.0 → 1.6.1

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.
@@ -207,7 +207,7 @@ export const qqbotPlugin = {
207
207
  deliveryMode: "direct",
208
208
  chunker: chunkText,
209
209
  chunkerMode: "markdown",
210
- textChunkLimit: 2000,
210
+ textChunkLimit: 20000,
211
211
  sendText: async ({ to, text, accountId, replyToId, cfg }) => {
212
212
  console.log(`[qqbot:channel] sendText called — accountId=${accountId}, to=${to}, replyToId=${replyToId}, text.length=${text?.length ?? 0}`);
213
213
  console.log(`[qqbot:channel] sendText text preview: ${text?.slice(0, 100)}${(text?.length ?? 0) > 100 ? "..." : ""}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencent-connect/openclaw-qqbot",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -253,3 +253,12 @@ elif [ -n "$APPID" ] || [ -n "$SECRET" ]; then
253
253
  echo ""
254
254
  echo "⚠️ --appid 和 --secret 必须同时提供"
255
255
  fi
256
+
257
+ # [5/5] 重启 gateway 使新版本生效
258
+ echo ""
259
+ echo "[重启] 重启 gateway 使新版本生效..."
260
+ if $CMD gateway restart 2>&1; then
261
+ echo " ✅ gateway 已重启"
262
+ else
263
+ echo " ⚠️ gateway 重启失败,请手动执行: $CMD gateway restart"
264
+ fi
package/src/channel.ts CHANGED
@@ -232,7 +232,7 @@ export const qqbotPlugin: ChannelPlugin<ResolvedQQBotAccount> = {
232
232
  deliveryMode: "direct",
233
233
  chunker: chunkText,
234
234
  chunkerMode: "markdown",
235
- textChunkLimit: 2000,
235
+ textChunkLimit: 20000,
236
236
  sendText: async ({ to, text, accountId, replyToId, cfg }) => {
237
237
  console.log(`[qqbot:channel] sendText called — accountId=${accountId}, to=${to}, replyToId=${replyToId}, text.length=${text?.length ?? 0}`);
238
238
  console.log(`[qqbot:channel] sendText text preview: ${text?.slice(0, 100)}${(text?.length ?? 0) > 100 ? "..." : ""}`);