@zaofan/dsh-qqbot 0.6.0 → 0.8.0
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 +17 -0
- package/README_EN.md +17 -0
- package/client/qqbot-settings.js +1385 -28
- package/dist/api/group-admin.d.ts +13 -0
- package/dist/api/group-admin.d.ts.map +1 -1
- package/dist/api/group-admin.js +23 -0
- package/dist/api/group-admin.js.map +1 -1
- package/dist/channel-tools.d.ts.map +1 -1
- package/dist/channel-tools.js +58 -1
- package/dist/channel-tools.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/features/chat-ledger.d.ts.map +1 -1
- package/dist/features/chat-ledger.js +54 -3
- package/dist/features/chat-ledger.js.map +1 -1
- package/dist/features/qq-approval.d.ts +43 -1
- package/dist/features/qq-approval.d.ts.map +1 -1
- package/dist/features/qq-approval.js +167 -17
- package/dist/features/qq-approval.js.map +1 -1
- package/dist/features/qq-user-questions.d.ts +69 -0
- package/dist/features/qq-user-questions.d.ts.map +1 -0
- package/dist/features/qq-user-questions.js +214 -0
- package/dist/features/qq-user-questions.js.map +1 -0
- package/dist/features/session-registry.d.ts +51 -0
- package/dist/features/session-registry.d.ts.map +1 -0
- package/dist/features/session-registry.js +95 -0
- package/dist/features/session-registry.js.map +1 -0
- package/dist/gateway/bootstrap.d.ts.map +1 -1
- package/dist/gateway/bootstrap.js +88 -1
- package/dist/gateway/bootstrap.js.map +1 -1
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/session/session-manager.js +9 -14
- package/dist/session/session-manager.js.map +1 -1
- package/dist/transport/outbound-buffer.d.ts +2 -0
- package/dist/transport/outbound-buffer.d.ts.map +1 -1
- package/dist/transport/outbound-buffer.js.map +1 -1
- package/package.json +6 -3
- package/settings-host.js +962 -5
- package/voice-convert.mjs +45 -0
package/README.md
CHANGED
|
@@ -34,6 +34,23 @@
|
|
|
34
34
|
**🖥️ 不用碰配置文件,全在设置面板点**
|
|
35
35
|
机器人怎么回、能发什么图、什么时候主动说话、每个号用什么人格——都在一个面板里改,保存即生效(账号增减才需重启)。
|
|
36
36
|
|
|
37
|
+
### ✨ v0.8.0 本版新增
|
|
38
|
+
|
|
39
|
+
**💬 悬浮球「QQ 聊天视图」**
|
|
40
|
+
点开设置面板右下角的悬浮球 → 「💬 聊天」:选一个群或私聊,像 QQ 一样回放它和机器人的会话记录——头像+气泡(群友左、机器人右蓝)、图片可点开放大、视频/本地视频可播放、语音带播放条(QQ SILK 语音纯 JS 转 mp3,零系统依赖)、文件显示下载卡片。注入/工具/流式/历史打包等噪音自动滤除;群延迟聚合打包进来的连发会**自动拆成独立气泡**;上滑加载更早消息。
|
|
41
|
+
|
|
42
|
+
**📎 聊天与发送合一 + 本机媒体直发**
|
|
43
|
+
聊天窗底部就是输入栏:发文字、插图、发文件全在一处。支持 bbcode `[MEDIA:图片|本机路径或链接]` 直接发本机文件;📷插图 / 📎文件 按钮与粘贴、拖拽图片都会自动包成 MEDIA;发送中按钮锁定+进度提示,可勾选把发送写进「用户代发」上下文。聊天记录里出现本机路径的图片/音频/视频,也能直接预览或播放。
|
|
44
|
+
|
|
45
|
+
**🚚 大文件不再卡回合**
|
|
46
|
+
≥5MB 的文件(视频/压缩包…)自动改**后台分片上传**:立即返回、不阻塞对话,完成/失败会把「后台任务」结果写回会话;dock 的文件选择器也改为流式上传(≤300MB),选大文件直接发。
|
|
47
|
+
|
|
48
|
+
**🖌️ 预设人格编辑器**
|
|
49
|
+
Web 设置②区新增「✏️ 人格」按钮:直接浏览并编辑账号当前人格的预设文件(presets/files API,仅带 QQ 工具标记的副本可写,≤200KB 原子写)。
|
|
50
|
+
|
|
51
|
+
**🪄 悬浮球面板体验**
|
|
52
|
+
dock 展开后可按住头部拖动位置(双击头部复位自动贴球)、新增 ⛶ 全屏按钮(全屏时上下栏固定、仅消息区滚动)、图片放大灯箱关闭不再误收起面板。
|
|
53
|
+
|
|
37
54
|
### 📸 效果展示
|
|
38
55
|
|
|
39
56
|
图①:dsh 运行后台——思考过程、工具调用、Token 用量一目了然(配合「回复闸门 reply_gate」可让机器人自主判断该开口还是静默吃瓜);
|
package/README_EN.md
CHANGED
|
@@ -21,6 +21,23 @@ This repo is an enhanced fork of [@tencent-connect/dsh-qqbot](https://github.com
|
|
|
21
21
|
- **🧹 Messy library? Let the AI tidy it** — ask *"which stickers still lack tags or descriptions"* and it lists them, then tags and describes them itself.
|
|
22
22
|
- **🖥️ No config-file surgery** — reply pacing, sticker gates, scheduled wake-ups, and per-bot personas are all editable in the settings panel; saving applies live (only adding/removing bots needs a restart).
|
|
23
23
|
|
|
24
|
+
### ✨ What's new in v0.8.0
|
|
25
|
+
|
|
26
|
+
**💬 Floating-dock QQ chat view**
|
|
27
|
+
Open the floating dock in the settings panel → "💬 聊天" tab: pick a group or DM and replay its conversation with the bot in a QQ-style UI — avatars + bubbles (members left, bot right in blue), images zoom on click, videos (including local files) play inline, voice messages get a play bar (QQ SILK audio is converted to MP3 in pure JS — zero system dependencies), files render as downloadable cards. Injected context, tool noise, streaming chunks and history-packaging markers are filtered out automatically; multi-message history packs are **split back into individual bubbles**; scrolling up loads older messages.
|
|
28
|
+
|
|
29
|
+
**📎 Chat & send unified + local media**
|
|
30
|
+
The composer lives right below the chat history: text, images and files all send from one box. bbcode `[MEDIA:image|local-path-or-url]` sends local files directly; the 📷 / 📎 buttons and paste/drag of an image auto-wrap it into a MEDIA token; the send button locks while sending with progress feedback, and sends can be written into the session as a "relay" user message. Local absolute paths that appear in chat (images / audio / video) are previewed or played right in the dock.
|
|
31
|
+
|
|
32
|
+
**🚚 Big files no longer block a turn**
|
|
33
|
+
Local files ≥5MB (videos, archives…) switch to **background chunked upload**: the call returns immediately, and completion/failure is written back into the session as a "background task" notice; the dock file picker now streams files up to 300MB straight through.
|
|
34
|
+
|
|
35
|
+
**🖌️ Preset persona editor**
|
|
36
|
+
The Web settings "②" area gains a ✏️ button to browse and edit the preset files of the active persona (presets/files API; only persona copies flagged with QQ tools are writable; ≤200KB atomic writes).
|
|
37
|
+
|
|
38
|
+
**🪄 Floating-dock UX**
|
|
39
|
+
While expanded, drag the panel by its header (double-click the header to snap back to the ball); a ⛶ fullscreen toggle fixes header/footer and lets only the message list scroll; closing the image lightbox no longer collapses the dock.
|
|
40
|
+
|
|
24
41
|
### 📸 Showcase
|
|
25
42
|
|
|
26
43
|
Left: the dsh runtime backend — reasoning, tool calls and token usage are fully visible (paired with the `reply_gate` gate tool, the bot decides on its own whether to speak or stay silently idle);
|