@wenbin_wb/dsh-bridge 2.2.5 → 2.2.7

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 CHANGED
@@ -1,27 +1,28 @@
1
1
  # dsh-bridge
2
2
 
3
- English | [简体中文](README.zh-CN.md)
3
+ 简体中文 | [English](README.en.md)
4
4
 
5
5
  ![dsh-bridge banner](docs/banner.jpg)
6
6
 
7
- > Multi-channel remote access plugin for DeepSeek Harness
7
+ > DeepSeek Harness 多通道远程访问插件
8
8
 
9
- Keep using your DeepSeek Harness on the go. Scan a QR code with your phone and keep working from your sofa, another room, or across the world — no need to sit at your desk, no need to be on the same network, and no need to set up your own public server.
9
+ 手机扫个码,人不在电脑前也能继续用 DeepSeek Harness。躺在沙发上、出差在外、跨网访问——都不用守着电脑,也不用自己搭公网服务器,扫码就能在手机/平板或任意设备上接着干。
10
10
 
11
- Seamlessly extend your local DeepSeek Harness to mobile phones, tablets, public networks, and even WeChat. Access your AI assistant anytime, anywhere via QR code scanning, web browsers, or the WeChat Bot.
11
+ 把你本地的 DeepSeek Harness 无缝延伸到手机、平板、公网、甚至微信 / QQ。无论你在哪,都能通过扫码、网页或 IM 机器人,随时调用你的 AI 助手。
12
12
 
13
13
  ---
14
14
 
15
- ## Features
15
+ ## 功能特性
16
16
 
17
- - **LAN Access**: Scan QR code with your smartphone/tablet, direct access on the same Wi-Fi — keep the conversation going from your phone
18
- - **Cloudflare Tunnel**: One-click public internet exposure, connect from anywhere without a public server of your own — keep working even when you're away from home
19
- - **Custom Tunnel**: Connect to your own tunnel server with a fixed domain ([Setup Guide](docs/custom-tunnel.md))
20
- - **WeChat Bot (ClawBot / iLink)**: Scan a QR code to log in a WeChat personal account, then chat with, control, and approve your DeepSeek Harness agents right inside WeChat. **Multi-workspace selection, restart-persistent sessions, grouped session listing with titles, media (image/file/voice) transfer, and permission approvals** — over Tencent's official iLink Bot API, no public server or tunnel required ([Usage Guide](docs/wechat-usage.md))
21
- - **QQ Bot (OpenAPI v2)**: Connect your QQ Bot to receive private/group messages, send Markdown, button keyboards, and rich media. **Full event coverage (C2C / GROUP_AT_MESSAGE_CREATE), auto token refresh, reconnection with backoff, message deduplication** — over Tencent's official QQ Bot OpenAPI v2 ([Usage Guide](docs/qq-usage.md))
22
- - **IM Integration (More Planned)**: WeChat / QQ / Feishu / OpenClaw direct chat integration
23
- - **Security Alerts**: URLs and QR codes with access warnings to prevent accidental sharing
24
- - **Auto Version Check**: Automatic update detection when entering the panel
17
+ - **局域网访问**:手机/平板扫码,同一 Wi-Fi 直接访问,躺着也能在手机上接着聊
18
+ - **Cloudflare 隧道**:一键暴露公网地址,随时随地连接,出差在外、不在家也能接着干,无需自建公网服务器
19
+ - **自建隧道**:连接自己的隧道服务器,获得固定域名([搭建教程](docs/custom-tunnel.md)
20
+ - **微信 BotClawBot / iLink)**:扫码登录微信个人号后,直接在微信里对话、控制 DeepSeek Harness agent。**支持多工作区选择、会话跨重启持久化、按工作区分组查看、媒体(图片/文件/语音)收发、权限审批**——走腾讯官方 iLink Bot API,无需公网([使用说明](docs/wechat-usage.md)
21
+ - **QQ BotOpenAPI v2)**:接入 QQ 机器人,私聊/群聊接收消息,发送 Markdown、按钮键盘和富媒体。**完整事件覆盖(C2C / GROUP_AT_MESSAGE_CREATE)、Token 自动刷新、断线重连、消息去重**——走腾讯官方 QQ Bot OpenAPI v2[使用说明](docs/qq-usage.md)
22
+ - **IM 官方品牌矢量图标**:微信、QQ、飞书、Telegram 官方矢量图标与状态展示,直接在聊天软件里呼唤你的 Agent
23
+ - **极速版本检查与一键升级**:国内高速镜像(npmmirror)优先 + 官方源毫秒级双通道检查,检测到新版本支持**界面一键直接升级**,无需手动打开终端
24
+ - **深色模式深度适配**:完美适配 DeepSeek Harness 设计系统明暗主题切换,二维码自带白底安全垫,暗光下手机扫码 100% 极速识别
25
+ - **安全提示**:URL 和二维码带访问警告,防止误分享
25
26
 
26
27
  ![npm](https://img.shields.io/npm/v/@wenbin_wb/dsh-bridge?label=npm)
27
28
  ![npm downloads](https://img.shields.io/npm/dt/@wenbin_wb/dsh-bridge?label=downloads)
@@ -30,248 +31,248 @@ Seamlessly extend your local DeepSeek Harness to mobile phones, tablets, public
30
31
 
31
32
  ---
32
33
 
33
- ## Roadmap
34
+ ## 开发路线图
34
35
 
35
- | Target | Description | Status |
36
- |--------|-------------|--------|
37
- | **Platform Abstraction** | Platform-agnostic core (sessions / approvals / commands / digest) shared across IM channels | ✅ **Completed** (v2.0.0) |
38
- | **WeChat** | Chat with your Agent directly in WeChat | ✅ Supported (workspaces / persisted sessions / media / approvals) |
39
- | **QQ Bot** | QQ bot integration for group/private chat | ✅ **Completed** (v2.1.0) Markdown / buttons / rich media |
40
- | **Feishu** | Feishu message/bot integration for workplace scenarios | Planned |
41
- | **OpenClaw** | Integration with OpenClaw ecosystem | Planned |
42
- | **Telegram** | Self-hosted IM channel | Planned |
36
+ | 目标 | 说明 | 状态 |
37
+ |------|------|------|
38
+ | **平台抽象层** | 平台无关的核心(会话/审批/命令/digest)跨 IM 渠道复用 | ✅ **已完成**(v2.0.0 |
39
+ | **微信** | 在微信里直接与你的 Agent 对话 | ✅ 已支持(多工作区 / 会话持久化 / 媒体 / 审批) |
40
+ | **QQ Bot** | 接入 QQ 机器人,群聊/私聊唤起 Agent | ✅ **已完成**(v2.1.0)— Markdown / 按钮 / 富媒体 |
41
+ | **飞书** | 飞书消息/机器人集成,办公场景直接调用 | 规划中 |
42
+ | **Telegram** | 适合自托管与海外的 IM 渠道 | 规划中 |
43
+ | **OpenClaw** | OpenClaw 生态打通 | 规划中 |
43
44
 
44
45
  ---
45
46
 
46
- ## Requirements
47
+ ## 环境要求
47
48
 
48
- Before installing the plugin, ensure:
49
+ 安装插件前,请先确保:
49
50
 
50
- 1. **Node.js ≥ 22** (DSH requires `^22.19.0` or `≥ 24.0.0`)
51
- 2. **dsh CLI available**you can run `dsh` command in terminal
51
+ 1. **Node.js ≥ 22** (DSH 要求 `^22.19.0` `≥ 24.0.0`)
52
+ 2. **dsh CLI 可用**能在终端直接运行 `dsh` 命令
52
53
 
53
54
  ```bash
54
- # Check Node version
55
- node -v # Should show v22.19+ or v24+
55
+ # 检查 Node 版本
56
+ node -v # 应显示 v22.19+ v24+
56
57
 
57
- # Check dsh availability
58
+ # 检查 dsh 是否可用
58
59
  dsh --version
59
60
  ```
60
61
 
61
- If `dsh` command is not found, install DSH globally:
62
+ 如果 `dsh` 命令提示"无法识别/找不到",先安装 DSH
62
63
 
63
64
  ```bash
64
65
  npm install -g @deepseek-ai/dsh
65
66
  ```
66
67
 
67
- > Alternative without global install (use `npx`):
68
+ > 若没有全局安装的权限,也可以用 `npx` 方式:
68
69
  > ```bash
69
70
  > npx --yes @deepseek-ai/dsh plugin --profile web add @wenbin_wb/dsh-bridge
70
71
  > ```
71
72
 
72
73
  ---
73
74
 
74
- ## Installation
75
+ ## 安装
75
76
 
76
- ### From npm (Recommended)
77
+ ### npm 安装(推荐)
77
78
 
78
79
  ```bash
79
- # Install latest version
80
+ # 安装最新版
80
81
  dsh plugin --profile web add @wenbin_wb/dsh-bridge
81
82
 
82
- # Or specify version (e.g. 2.2.4)
83
- dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.2.4
83
+ # 或指定版本(如 2.2.6)
84
+ dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.2.6
84
85
  ```
85
86
 
86
- > 💡 **No global install permission?** Use `npx`:
87
+ > 💡 **没有全局安装权限?** 使用 `npx` 方式:
87
88
  > ```bash
88
89
  > npx --yes @deepseek-ai/dsh plugin --profile web add @wenbin_wb/dsh-bridge
89
90
  > ```
90
91
 
91
- ### From source
92
+ ### 从源码安装
92
93
 
93
94
  ```bash
94
95
  git clone https://github.com/wenbin-wb/dsh-bridge.git
95
96
  dsh plugin --profile web add ./dsh-bridge
96
97
  ```
97
98
 
98
- After installation, restart DSH and find "Remote Access" in settings.
99
+ 安装完成后重启 DSH,在设置页找到「远程访问」即可使用。
99
100
 
100
- ### Upgrade to latest
101
+ ### 升级到最新版
101
102
 
102
103
  ```bash
103
- # Force install latest version (recommended)
104
- dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
104
+ # 方式一:在设置页「远程访问」中点击「🚀 一键升级到 vX.X.X」(推荐,全自动)
105
105
 
106
- # Or copy the upgrade command from DSH Web Settings → "Remote Access" → "Version Check"
106
+ # 方式二:终端强制安装最新版
107
+ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
107
108
  ```
108
109
 
109
- > **Note**: `update --latest` may fail to reach the newest major version due to version constraints from already-installed dependencies. Use the `add @latest` command above to force-install the latest version (no need to know the exact version number).
110
+ > **注意**:`update --latest` 可能因已安装依赖的版本约束而无法升级到最新版。用上面的 `add @latest` 命令即可强制安装最新版(无需知道具体版本号)。
110
111
 
111
- #### Still on an old version after upgrading? (pnpm 11 new-version filtering)
112
+ #### 升级后仍是旧版本?(pnpm 11 新版本过滤)
112
113
 
113
- If you upgrade right after a release, `add @latest` may still install an older version. This is caused by **pnpm 11's supply-chain safety mechanism `minimumReleaseAge`** (default: filters versions published less than 24 hours ago) — not a plugin issue.
114
+ 如果你刚发布后立即升级,`add @latest` 可能仍然装到旧版本。这是 **pnpm 11 的供应链安全机制 `minimumReleaseAge`**(默认过滤发布不足 24 小时的新版本)导致的,不是插件问题。
114
115
 
115
- **Solutions** (pick one):
116
+ **解决方法**(任选其一):
116
117
 
117
- 1. **Add `minimumReleaseAge: 0` to your profile's `pnpm-workspace.yaml`**, then run `pnpm install` (recommended, permanent)
118
- 2. **Copy the versioned upgrade command from DSH Web Settings → "Remote Access" → "Version Check"** (works immediately, no waiting)
119
- 3. **Wait 24 hours**: the protection lifts automatically after 1 day
118
+ 1. **直接在 DSH Web 设置页的「远程访问」点击「一键升级」**(自动带具体版本号安装,即刻生效)
119
+ 2. **在 profile `pnpm-workspace.yaml` 添加 `minimumReleaseAge: 0`**,然后重新 `pnpm install`(一劳永逸)
120
+ 3. **等待 24 小时**:发布满 1 天后保护自动解除
120
121
 
121
- After upgrading, restart DSH and **hard-refresh** the browser (Windows: `Ctrl+Shift+R`, macOS: `Cmd+Shift+R`) to clear the cache, then confirm the latest version is shown in settings.
122
+ 升级完成后重启 DSH,并在浏览器**硬刷新**(Windows: `Ctrl+Shift+R`,macOS: `Cmd+Shift+R`)清除缓存,然后确认设置页显示最新版本号。
122
123
 
123
124
  ---
124
125
 
125
- ## Usage
126
+ ## 使用
126
127
 
127
- ### LAN Access
128
+ ### 局域网访问
128
129
 
129
- Automatically enabled after plugin starts, no configuration needed. Open Settings → "Remote Access", scan the QR code with your mobile device.
130
+ 插件启动后自动开启,无需任何配置。打开设置页「远程访问」,用手机扫描二维码即可访问。
130
131
 
131
- ![QR Code Access](docs/screenshots/qr-scan.jpg)
132
+ ![扫码访问](docs/screenshots/qr-scan.jpg)
132
133
 
133
- ### Cloudflare Tunnel
134
+ ### Cloudflare 隧道
134
135
 
135
- 1. Click "Enable" in the Cloudflare Tunnel card
136
- 2. First use will auto-download cloudflared (~30MB) from GitHub
137
- 3. Public URL and QR code appear within seconds
138
- 4. URL changes after each restart; click "Reset Link" to get a new one
136
+ 1. 点击「Cloudflare 隧道」卡片中的「开启」按钮
137
+ 2. 首次使用会自动从 GitHub 下载 cloudflared(约 30MB
138
+ 3. 下载完成后自动启动,几秒内显示公网 URL 和二维码
139
+ 4. 每次重启后 URL 会变化;点「重置链接」可主动获取新 URL
139
140
 
140
- ### Custom Tunnel
141
+ ### 自建隧道
141
142
 
142
- Requires a server with public IP. See [Custom Tunnel Guide](docs/custom-tunnel.md) for detailed setup.
143
+ 需要一台有公网 IP 的服务器。详细搭建步骤见 [自建隧道教程](docs/custom-tunnel.md)
143
144
 
144
- 1. Deploy tunnel server following the guide
145
- 2. Fill in WebSocket address (`wss://...`) and access token in the "Custom Tunnel" card
146
- 3. Click "Save Config" then "Enable"
145
+ 1. 按教程在服务器上部署隧道服务端
146
+ 2. 在「自建隧道」卡片中填写 WebSocket 地址(`wss://...`)和访问令牌
147
+ 3. 点「保存配置」后点「开启」
147
148
 
148
- Config is auto-persisted to `~/.dsh/dsh-bridge/config.json`, no need to re-enter after restart.
149
+ 配置自动持久化,重启后无需重新填写。
149
150
 
150
- ### WeChat Bot (ClawBot / iLink)
151
+ ### 微信 BotClawBot / iLink
151
152
 
152
- Built on Tencent's official WeChat ClawBot feature (iLink Bot API). Scan a QR code to log in a WeChat personal account, then chat with, control, and approve your DeepSeek Harness agents directly in WeChat — all through Tencent's official servers, no public server or tunnel required.
153
+ 基于腾讯官方开放的微信 ClawBot 插件功能(底层 iLink Bot API),扫码登录微信个人号后,即可在微信里直接与你的 DeepSeek Harness agent 对话、控制和审批,全程走腾讯官方服务器,无需公网与隧道。
153
154
 
154
- ![WeChat Chat Example](docs/screenshots/wechat-chat.jpg)
155
+ ![微信对话示例](docs/screenshots/wechat-chat.jpg)
155
156
 
156
- **Highlights**
157
+ **功能亮点**
157
158
 
158
- - 🗂️ **Multi-workspace**: `/workspaces` to list workspaces; `@N` or `@path` to create sessions in a specific project directory
159
- - 💾 **Persistent sessions**: sessions survive DSH restarts — just keep chatting
160
- - 🏷️ **Session titles**: `/sessions` shows sessions grouped by workspace, each with an auto-generated title
161
- - 🖼️ **Media**: send/receive images, files, and voice (auto-transcribed)
162
- - 📝 **Approvals**: sensitive operations approved in WeChat, auto-denied on timeout
163
- - 🔔 **Live status**: heartbeat progress + "typing" indicator, long replies auto-chunked
159
+ - 🗂️ **多工作区**:`/workspaces` 查看工作区,`@N` `@路径` 指定项目目录新建会话
160
+ - 💾 **会话持久化**:重启 DSH 后会话不丢失,直接续聊
161
+ - 🏷️ **会话标题**:`/sessions` 按工作区分组、显示每个会话的标题,一眼可辨
162
+ - 🖼️ **媒体收发**:支持图片/文件/语音(自动转文字)双向传输
163
+ - 📝 **审批问答**:敏感操作在微信里审批,超时自动拒绝
164
+ - 🔔 **状态推送**:任务进行中心跳进度 + "正在输入"指示,长回复自动分条
164
165
 
165
- **Usage**
166
+ **使用步骤**
166
167
 
167
- 1. Open Settings → "Remote Access" → "IM Bots" tab → select "WeChat"
168
- 2. Click "Scan Login" and scan the QR code with WeChat, then confirm
169
- 3. After login, **send the bot your first message to auto-complete allowlist authorization** (one step)
170
- 4. Start issuing commands in WeChat
168
+ 1. 打开设置页「远程访问」→「IM 机器人」→ 选中「微信」
169
+ 2. 点「扫码登录」,用微信扫二维码并按提示确认
170
+ 3. 登录成功后,**向该微信 Bot 发送第一条消息即自动完成白名单授权**(一步到位)
171
+ 4. 之后就可以在微信里下命令了
171
172
 
172
- **Commands in WeChat** (full details in [WeChat Bot Guide](docs/wechat-usage.md))
173
+ **微信里的命令**(完整说明见 [微信 Bot 使用说明](docs/wechat-usage.md)
173
174
 
174
- | Command | What it does |
175
- |---------|--------------|
176
- | *(plain text)* | Routes to the active agent |
177
- | `/sessions` (or `/list`) | List sessions (grouped by workspace, with titles) |
178
- | `/use N` (or `/resume N`) | Switch to session N |
179
- | `/workspaces` | List available workspaces |
180
- | `/new <prompt>` | Create a fresh session and start (current workspace) |
181
- | `/new <prompt> @N` (or `@path`) | Create a session in a specific workspace |
182
- | `/stop` | Cancel the active turn |
183
- | `/end` | End current session |
184
- | `/status` | Agent status + session summary |
185
- | `/yes` `/no` (or `1`/`2`) | Answer a permission request |
186
- | `/start` | Auto-start a session after first scan |
187
- | `/help` | Command list |
175
+ | 命令 | 说明 |
176
+ |------|------|
177
+ | *(普通文本)* | 发给当前活动 agent |
178
+ | `/sessions`(或 `/list`) | 列出会话(按工作区分组,带标题) |
179
+ | `/use N`(或 `/resume N`) | 切换到会话 N |
180
+ | `/workspaces` | 列出可用工作区 |
181
+ | `/new <提示词>` | 新建会话并开始(当前工作区) |
182
+ | `/new <提示词> @N`(或 `@路径`) | 在指定工作区新建会话 |
183
+ | `/stop` | 停止当前任务 |
184
+ | `/end` | 结束当前会话 |
185
+ | `/status` | 查看 agent 状态与会话摘要 |
186
+ | `/yes` `/no`(或 `1`/`2`) | 回应权限审批请求 |
187
+ | `/start` | 首次扫码后自动开始一个会话 |
188
+ | `/help` | 查看全部命令 |
188
189
 
189
- **Security**
190
+ **安全说明**
190
191
 
191
- - Hard allowlist: only allowlisted WeChat users can drive the agent; everyone else is ignored and never fed to the model
192
- - Approvals default to deny: a permission request not answered with `/yes` within the timeout (default 10 min) is auto-rejected
193
- - Credentials are stored via the DSH credential service, never in plain config
194
- - iLink allows exactly **one poller per account** (exclusive lock); coexisting with hermes-agent / OpenClaw causes HTTP 403 drops. **Use a dedicated WeChat account** for the bot
192
+ - 强制白名单:仅白名单内的微信用户能驱动 agent,其他人发的消息会被忽略、绝不喂给模型
193
+ - 审批默认拒绝:权限请求在规定时间(默认 10 分钟)内未回复 `/yes` 则自动拒绝
194
+ - 凭证存于 DSH 凭证服务,不落配置明文
195
+ - 同一微信账号同一时间只允许一个 Bot 轮询(iLink 独占锁);若同时使用 hermes-agent / OpenClaw 会互相 403。**请使用专用微信账号**承载 Bot
195
196
 
196
- > Disclaimer: iLink is Tencent's official open channel but still subject to the WeChat ClawBot Terms of Use, including content filtering and rate limits. Not recommended for mission-critical use.
197
+ > 声明:iLink 为腾讯官方开放通道,仍需遵守《微信 ClawBot 功能使用条款》,腾讯保留内容过滤和限速的权利。不建议用于核心业务。
197
198
 
198
199
  ---
199
200
 
200
- ## QQ Bot (OpenAPI v2)
201
+ ### QQ BotOpenAPI v2
201
202
 
202
- Connect your official QQ Bot for private/group chat (@mention in groups), streaming output, Markdown rendering, message buttons, and rich media (images/files). Built on Tencent's official QQ Bot OpenAPI v2, WebSocket real-time push, auto token refresh, auto-reconnect.
203
+ 接入 QQ 官方机器人,支持单聊/群聊(群聊需 @机器人)、流式输出、Markdown 渲染、消息按钮、富媒体消息(图片/文件)。走腾讯官方 QQ Bot OpenAPI v2WebSocket 实时推送,Token 自动刷新,断线自动重连。
203
204
 
204
- ![QQ Private Chat](docs/screenshots/qq-chat.jpg)
205
+ ![QQ 单聊对话](docs/screenshots/qq-chat.jpg)
205
206
 
206
- ![QQ Group Chat](docs/screenshots/qq-group.jpg)
207
+ ![QQ 群聊对话](docs/screenshots/qq-group.jpg)
207
208
 
208
- **Highlights**
209
+ **功能亮点**
209
210
 
210
- - 💬 **Private + Group Chat**: direct message for private chat, @mention to trigger in groups (first @mention auto-authorizes the group)
211
- - 📝 **Streaming Markdown**: real-time streaming output, code highlighting, tables, lists fully rendered
212
- - 🎯 **Message Buttons**: /end and other commands trigger quick buttons (new session/list/help), requires latest QQ client
213
- - 🖼️ **Rich Media**: send/receive images and files
214
- - 🔄 **Session Management**: multi-session switching, persistence, grouped by workspace
215
- - ✅ **Auto Authorization**: first message in private chat, first @mention in group auto-adds to allowlist
211
+ - 💬 **单聊 + 群聊**:私聊直接对话,群聊 @机器人 触发(首次 @自动授权该群)
212
+ - 📝 **流式 Markdown**:实时流式输出,代码高亮、表格、列表完整渲染
213
+ - 🎯 **消息按钮**:/end 等命令触发快捷按钮(新建会话/列表/帮助),需最新版 QQ 客户端
214
+ - 🖼️ **富媒体**:图片/文件双向传输
215
+ - 🔄 **会话管理**:多会话切换、持久化、按工作区分组
216
+ - ✅ **自动授权**:单聊首次发消息、群聊首次 @机器人 自动加白名单
216
217
 
217
- **Usage**
218
+ **使用步骤**
218
219
 
219
- 1. Go to [QQ Open Platform](https://q.qq.com) to create a bot app, get AppID and ClientSecret
220
- 2. Open Settings → "Remote Access" → "IM Bots" → select "QQ"
221
- 3. Fill in AppID and ClientSecret, click "Save Config" to auto-connect
222
- 4. **Private Chat**: add bot as friend, send first message to auto-authorize
223
- 5. **Group Chat**: invite bot to group, @mention bot to send message (first @mention auto-authorizes the group)
220
+ 1. 前往 [QQ 开放平台](https://q.qq.com) 创建机器人应用,获取 AppID ClientSecret
221
+ 2. 打开设置页「远程访问」→「IM 机器人」→ 选中「QQ
222
+ 3. 填入 AppID ClientSecret,点「保存配置」后自动连接
223
+ 4. **单聊**:添加机器人好友,发送第一条消息自动完成授权
224
+ 5. **群聊**:将机器人拉入群,@机器人 发送消息(首次 @自动授权该群)
224
225
 
225
- **Commands in QQ** (full details in [QQ Bot Guide](docs/qq-usage.md))
226
+ **QQ 里的命令**(完整说明见 [QQ Bot 使用说明](docs/qq-usage.md)
226
227
 
227
- | Command | What it does |
228
- |---------|--------------|
229
- | *(plain text)* | Routes to the active agent |
230
- | `/new <prompt>` | Create new session and start |
231
- | `/sessions` (or `/list`) | List sessions (grouped by workspace) |
232
- | `/use N` (or `/resume N`) | Switch to session N |
233
- | `/end` | End current session (triggers quick buttons) |
234
- | `/stop` | Stop current task |
235
- | `/status` | View agent status |
236
- | `/workspaces` | List available workspaces |
237
- | `/help` | View all commands |
228
+ | 命令 | 说明 |
229
+ |------|------|
230
+ | *(普通文本)* | 发给当前活动 agent |
231
+ | `/new <提示词>` | 新建会话并开始 |
232
+ | `/sessions`(或 `/list`) | 列出会话(按工作区分组) |
233
+ | `/use N`(或 `/resume N`) | 切换到/恢复会话 N |
234
+ | `/end` | 结束当前会话(触发快捷按钮) |
235
+ | `/stop` | 停止当前任务 |
236
+ | `/status` | 查看 agent 状态 |
237
+ | `/workspaces` | 列出可用工作区 |
238
+ | `/help` | 查看全部命令 |
238
239
 
239
- **Important Notes**
240
+ **重要提示**
240
241
 
241
- - **Custom menus / command panels / message buttons require latest QQ client** (2026-08-12 new feature, mobile version priority support)
242
- - API config success but client not showing is normal — update QQ to latest version and try again, or wait for official gradual rollout
243
- - Plain text commands (like `/new` `/sessions` `/help`) work on any version
242
+ - **自定义菜单 / 指令面板 / 消息按钮需要最新版 QQ 客户端**(2026-08-12 新功能,手机版优先支持)
243
+ - API 配置成功但客户端不显示是正常现象——更新 QQ 到最新版再试,或等官方灰度全量开放
244
+ - 纯文字命令(如 `/new` `/sessions` `/help`)在任何版本都完全可用
244
245
 
245
246
  ---
246
247
 
247
- ## Optional Configuration
248
+ ## 可选配置
248
249
 
249
- Plugin works out-of-the-box, no configuration needed. To change proxy port, add to cordis.yml:
250
+ 插件开箱即用,无需配置。如需修改代理端口,在 cordis.yml 中添加:
250
251
 
251
252
  ```yaml
252
253
  - name: '@wenbin_wb/dsh-bridge'
253
254
  config:
254
- port: 3082 # Default 3082
255
+ port: 3082 # 默认 3082
255
256
  ```
256
257
 
257
258
  ---
258
259
 
259
- ## Development
260
+ ## 开发
260
261
 
261
262
  ```bash
262
263
  git clone https://github.com/wenbin-wb/dsh-bridge.git
263
264
  cd dsh-bridge
264
265
  npm install
265
266
 
266
- # Rebuild after modifying client/index.js
267
+ # 修改 client/index.js 后重新构建
267
268
  npm run build:client
268
269
 
269
- # Install to web profile and restart DSH
270
+ # 安装到 web profile 并重启 DSH
270
271
  dsh plugin --profile web add .
271
272
  ```
272
273
 
273
274
  ---
274
275
 
275
- ## License
276
+ ## 许可证
276
277
 
277
278
  MIT © [wenbin-wb](https://github.com/wenbin-wb)