@jerryliang122/openclaw-qqbot 1.0.0 → 1.0.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/README.md +2 -13
- package/README.zh.md +2 -13
- package/dist/index.cjs +9371 -9414
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -5
- package/index.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/adapter/pairing.ts +14 -1
- package/src/adapter/webhook.ts +16 -3
- package/src/commands/bot-approve.ts +2 -2
- package/src/commands/bot-group-always.ts +1 -1
- package/src/commands/bot-help.ts +1 -1
- package/src/commands/bot-streaming.ts +1 -1
- package/src/commands/bot-version.ts +1 -12
- package/src/commands/config-util.ts +8 -0
- package/src/commands/index.ts +49 -14
- package/src/dispatch/dispatch.ts +1 -1
- package/src/features/approval-capability.ts +19 -6
- package/src/features/credential-backup.ts +8 -3
- package/src/features/history-store.ts +8 -1
- package/src/features/quota-manager.ts +5 -2
- package/src/features/typing-refresh.ts +9 -1
- package/src/gateway/event-handlers.ts +36 -12
- package/src/gateway/lifecycle.ts +10 -6
- package/src/gateway/qqbot-gateway.ts +24 -1
- package/src/middleware/access-control.ts +3 -1
- package/src/middleware/secret-capture.ts +5 -3
- package/src/outbound/debounce.ts +19 -2
- package/src/outbound-adapter.ts +10 -1
- package/src/setup/finalize.ts +3 -2
- package/src/tools/platform.ts +8 -0
- package/src/tools/secret-input.ts +8 -0
- package/src/types-plugin.ts +1 -0
- package/src/types.ts +0 -5
- package/src/typing-lifecycle.ts +9 -4
- package/skills/qqbot-upgrade/SKILL.md +0 -56
- package/src/commands/bot-upgrade.ts +0 -56
- package/src/features/update-checker.ts +0 -166
package/README.md
CHANGED
|
@@ -46,7 +46,6 @@ Scan to join the QQ group chat
|
|
|
46
46
|
| 🌐 **Dual Transport** | WebSocket (default) or Webhook (HTTP callback) — switch via config |
|
|
47
47
|
| 🖼️ **Rich Media** | Send & receive images, voice, video, and files |
|
|
48
48
|
| 🎙️ **Voice (STT/TTS)** | Speech-to-text transcription & text-to-speech replies |
|
|
49
|
-
| 🔄 **Update Check** | `/bot-upgrade` checks the npm registry for new versions and links the upgrade guide |
|
|
50
49
|
| ⏰ **Scheduled Push** | Proactive message delivery via scheduled tasks |
|
|
51
50
|
| 🔗 **URL Support** | Direct URL sending in private chat (no restrictions) |
|
|
52
51
|
| ⌨️ **Typing Indicator** | "Bot is typing..." status shown in real-time |
|
|
@@ -194,16 +193,6 @@ Shows framework version, plugin version, and a direct link to the official repos
|
|
|
194
193
|
|
|
195
194
|
<img width="360" src="docs/images/slash-help.jpg" alt="Help Demo" />
|
|
196
195
|
|
|
197
|
-
#### `/bot-upgrade` — Version Check & Upgrade Guide
|
|
198
|
-
|
|
199
|
-
> **You**: `/bot-upgrade`
|
|
200
|
-
>
|
|
201
|
-
> **QQBot**: 📌 Current: v1.0.0 / 🆕 New version available / 📖 Upgrade guide link
|
|
202
|
-
|
|
203
|
-
Checks the installed version against the npm registry (`@jerryliang122/openclaw-qqbot`) and returns a link to the upgrade guide (repo CHANGELOG by default; override with `channels.qqbot.upgradeUrl`). Actual upgrading is done on the host via `openclaw plugins install` — see [Getting Started](#-getting-started).
|
|
204
|
-
|
|
205
|
-
<img width="360" src="docs/images/hot-update.jpg" alt="Upgrade Demo" />
|
|
206
|
-
|
|
207
196
|
#### `/bot-logs` — Log Export
|
|
208
197
|
|
|
209
198
|
> **You**: `/bot-logs`
|
|
@@ -218,9 +207,9 @@ Exports the last ~2000 lines of gateway logs as a file for quick troubleshooting
|
|
|
218
207
|
|
|
219
208
|
All commands support a `?` suffix to show usage:
|
|
220
209
|
|
|
221
|
-
> **You**: `/bot-
|
|
210
|
+
> **You**: `/bot-ping ?`
|
|
222
211
|
>
|
|
223
|
-
> **QQBot**: 📖 /bot-
|
|
212
|
+
> **QQBot**: 📖 /bot-ping usage: …
|
|
224
213
|
|
|
225
214
|
#### `/bot-approve` — Approval Configuration
|
|
226
215
|
|
package/README.zh.md
CHANGED
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
| 🌐 **双传输模式** | WebSocket(默认)或 Webhook(HTTP 回调)— 配置切换 |
|
|
45
45
|
| 🖼️ **富媒体消息** | 支持图片、语音、视频、文件的收发 |
|
|
46
46
|
| 🎙️ **语音能力 (STT/TTS)** | 语音转文字自动转录 & 文字转语音回复 |
|
|
47
|
-
| 🔄 **版本检查** | 私聊发送 `/bot-upgrade` 检查 npm 新版本并附升级指引 |
|
|
48
47
|
| ⏰ **定时推送** | 支持定时任务触发后主动推送消息 |
|
|
49
48
|
| 🔗 **URL 无限制** | 私聊可直接发送 URL |
|
|
50
49
|
| ⌨️ **输入状态** | 实时显示"Bot 正在输入中…"状态 |
|
|
@@ -192,16 +191,6 @@ AI 可直接发送视频,支持本地文件和公网 URL。
|
|
|
192
191
|
|
|
193
192
|
<img width="360" src="docs/images/slash-help.jpg" alt="Help 演示" />
|
|
194
193
|
|
|
195
|
-
#### `/bot-upgrade` — 版本检查与升级指引
|
|
196
|
-
|
|
197
|
-
> **你**:`/bot-upgrade`
|
|
198
|
-
>
|
|
199
|
-
> **QQBot**:📌当前版本 v1.0.0 / 🆕发现新版本 / 📖升级指引链接
|
|
200
|
-
|
|
201
|
-
对比 npm registry(`@jerryliang122/openclaw-qqbot`)上的最新版本,并返回升级指引链接(默认指向仓库 CHANGELOG,可用 `channels.qqbot.upgradeUrl` 覆盖)。实际升级在主机上通过 `openclaw plugins install` 完成,见[快速开始](#-快速开始)。
|
|
202
|
-
|
|
203
|
-
<img width="360" src="docs/images/hot-update.jpg" alt="升级检查演示" />
|
|
204
|
-
|
|
205
194
|
#### `/bot-logs` — 日志导出
|
|
206
195
|
|
|
207
196
|
> **你**:`/bot-logs`
|
|
@@ -216,9 +205,9 @@ AI 可直接发送视频,支持本地文件和公网 URL。
|
|
|
216
205
|
|
|
217
206
|
所有指令都支持 `?` 后缀查看用法说明:
|
|
218
207
|
|
|
219
|
-
> **你**:`/bot-
|
|
208
|
+
> **你**:`/bot-ping ?`
|
|
220
209
|
>
|
|
221
|
-
> **QQBot**:📖 /bot-
|
|
210
|
+
> **QQBot**:📖 /bot-ping 用法:…
|
|
222
211
|
|
|
223
212
|
#### `/bot-approve` — 审批配置管理
|
|
224
213
|
|