feat(qqbot): 流式消息输出与架构重构

**流式消息**
- 新增 StreamSender 类,支持流式消息分片发送
- 实现消息队列异步处理,防止阻塞心跳
- 支持 C2C/Group 流式消息

**架构重构**
- 移除 clawdbot/moltbot 旧配置,统一为 qqbot
- 新增 upgrade-and-run.sh 一键升级脚本
- 重构 api/channel/gateway/outbound 模块
- 新增富媒体消息发送接口
This commit is contained in:
rianli
2026-01-31 19:49:27 +08:00
parent 35cb5ec1d6
commit 50422aac14
16 changed files with 2933 additions and 1501 deletions

View File

@@ -1,17 +1,14 @@
{
"name": "qqbot",
"version": "1.2.3",
"name": "@openclaw/qqbot",
"version": "2026.1.31",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"clawdbot": {
"extensions": ["./index.ts"]
},
"moltbot": {
"extensions": ["./index.ts"]
},
"description": "OpenClaw QQ Bot channel plugin with streaming message support",
"openclaw": {
"extensions": ["./index.ts"]
"extensions": [
"./index.ts"
]
},
"scripts": {
"build": "tsc || true",
@@ -27,11 +24,9 @@
"devDependencies": {
"@types/node": "^20.0.0",
"@types/ws": "^8.5.0",
"typescript": "^5.0.0"
"typescript": "^5.9.3"
},
"peerDependencies": {
"clawdbot": "*",
"moltbot": "*",
"openclaw": "*"
}
}