@wenbin_wb/dsh-bridge 2.7.0 → 2.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/CHANGELOG.md CHANGED
@@ -4,6 +4,42 @@
4
4
 
5
5
  ---
6
6
 
7
+ ## [v2.8.0] - 2026-08-25
8
+
9
+ ### 📱 移动端体验革新、远程工作区管理与全面安全加固
10
+ - **🗂️ 远程工作区网页选择器**:彻底解决手机/远程设备点击「添加工作区」在电脑端静默弹窗、移动端无感知的痛点;自动唤出响应式底部抽屉/弹窗树形目录浏览器,支持盘符(C/D 盘)与快捷目录直达与手动路径跳转;
11
+ - **🖥️ 本机电脑无感智能分流**:本机电脑(localhost / 127.0.0.1 / Electron 桌面客户端)点击添加工作区直接调用系统原生文件夹选择对话框,仅在移动端/远程访问时呼出网页选择器;
12
+ - **📱 移动端视觉与布局体验深度优化**:
13
+ - **顶部固定导航栏**:会话标题统一提升至顶部导航栏正中央,加粗居中显示,彻底消除顶部空白;
14
+ - **第二行会话工具栏**:智能路由/子代理徽标与 28px 圆形纯图标 Session Log 下载按钮两端规整排列,呼吸感十足;
15
+ - **底部输入框工具栏**:弹性自适应排版,彻底解决移动端与窄屏下权限预设与模型选择器重叠碰撞问题;
16
+ - **🔐 全方位安全审计与深度加固**:
17
+ - **RPC 端点鉴权**:文件树、驱动器与工作区注册 RPC 端点增加 `checkAdminAuth` 管理员认证校验;
18
+ - **路径穿越与系统黑名单**:拦截 `C:\Windows\System32`、`/etc/shadow`、`/root/.ssh` 等敏感目录访问,检测软链接逃逸;
19
+ - **滑动窗口速率限制**:针对文件系统探测接口实施每用户每分钟限流防护;
20
+ - **IM 命令权限拦截**:非管理员用户禁止通过 `/addworkspace` 随意添加工作区。
21
+
22
+ ---
23
+
24
+ ## [v2.7.2] - 2026-08-25
25
+
26
+ ### 🗂️ 远程工作区网页选择器与全平台 `/addworkspace` 指令
27
+ - **🗂️ 远程工作区网页目录选择器**:彻底解决手机/远程设备点击「添加工作区」在电脑端静默弹窗、移动端无感知的痛点;在浏览器内直接呈现高颜值文件夹浏览弹窗;
28
+ - **💾 驱动器与快捷目录一键直达**:智能探测 Windows 盘符 (`C:\`, `D:\` 等) 与常用根目录(桌面、IdeaProjects、Projects 等),支持可视点选与手动路径输入;
29
+ - **🎯 原生点击事件捕获拦截**:在 DOM 捕获阶段拦截原生「添加工作区」/「打开文件夹」按钮点击,无缝转由网页选择器承接;
30
+ - **🤖 IM 机器人 `/addworkspace` 指令**:微信 / QQ / 飞书 / Telegram 全面支持 `/addworkspace <电脑绝对路径>`,随时随地在聊天框添加项目工作区。
31
+
32
+ ---
33
+
34
+ ## [v2.7.1] - 2026-08-25
35
+
36
+ ### 🛠️ Windows 一键升级与自建协议修复
37
+ - **🛠️ 修复 Windows 平台一键升级 `spawn EINVAL` 错误**:适配 Windows 下 `.cmd` 批处理文件派生子进程的执行环境;
38
+ - **🌐 修复自建隧道 WebSocket 诊断协议报错**:自动映射 `ws:`/`wss:` 协议进行端到端探测;
39
+ - **🛡️ 并发防抖与状态优化**:优化多端并发请求与状态重连。
40
+
41
+ ---
42
+
7
43
  ## [v2.7.0] - 2026-08-25
8
44
 
9
45
  ### 📊 运维监控看板、网络诊断与会话重命名
package/README.en.md CHANGED
@@ -36,9 +36,18 @@
36
36
 
37
37
  ## Features
38
38
 
39
- - **🔐 Enterprise Access Security & Admin Guard (v2.5.0 Major Release)**:
39
+ - **🗂️ Web-based Remote Workspace Browser & Multi-Platform Management (v2.8.0 Major)**:
40
+ - **Remote Web Directory Picker**: Resolves the desktop silent popup issue on mobile/remote access; opens a responsive bottom-sheet/modal directory tree browser with drive letters (`C:\`, `D:\`), quick roots (Desktop / Projects), real-time search filtering, and manual path navigation;
41
+ - **Seamless Local Host Fallback**: On local host (`localhost` / `127.0.0.1` / Electron desktop), standard system native folder dialogs are preserved automatically without extra clicks;
42
+ - **IM `/addworkspace <absolute_path>` Command**: Add and immediately switch project workspaces on WeChat, QQ, Feishu, and Telegram with a single command.
43
+ - **📱 Native-grade Mobile UX & Layout Redesign (v2.8.0)**:
44
+ - **Top Centered Dynamic Title**: Prominently centers the active conversation title in the fixed top app bar, eliminating awkward top whitespace;
45
+ - **Spacious 2nd Header Row**: Mode / subagent badge and a 28px circular download icon button neatly aligned on opposite ends;
46
+ - **Adaptive Composer Bottom Bar**: Eliminates button collision and overlapping between permission preset and model selectors on mobile/narrow screens.
47
+ - **🔐 Comprehensive Security Hardening & Audit (v2.8.0)**:
40
48
  - **1st Line of Defense (Visitor Access Guard)**: Auto-injected 256-bit security Token in QR codes for 1-click passwordless login; manual IP/domain visits enforce password verification; granular channel scoping (All / Public Tunnels Only / LAN Only);
41
49
  - **2nd Line of Defense (Admin Console Guard)**: Separated administrator password and visitor password; global console lockout for remote devices to prevent unauthorized configuration changes (Password Unlock / Local Host Only / Open);
50
+ - **File System & RPC Hardening**: Enforces `checkAdminAuth` on all workspace inspection and registration RPC endpoints; system directory blacklist (`C:\Windows\System32`, `/etc/shadow`, `/root/.ssh`); symlink escape detection; sliding-window rate limiting;
42
51
  - **Fail-safe Recovery System (Triple Protection)**: Host machine (`127.0.0.1`) enjoys permanent physical privileges (never locked out) + terminal command `touch ~/.dsh/dsh-bridge/reset-auth` for instant emergency recovery + built-in "Forgot Password" guides;
43
52
  - **Financial-grade Security Engine**: PBKDF2 + SHA-256 salted password hashing, 30-day HttpOnly SameSite session protection, IP brute-force rate limiter (5 failed attempts trigger 60s cooldown).
44
53
  - **📱 PWA Standalone Full-Screen App & Touch Adaptation**: Add to mobile home screen for a 100% standalone native app experience (no browser address bar or bottom navigation); clean header, drawer gestures, and responsive settings cards
@@ -63,6 +72,9 @@
63
72
 
64
73
  | Target | Description | Status |
65
74
  |--------|-------------|--------|
75
+ | **Remote Workspace Picker & Smart Routing** | Web-based directory browser + local native dialog routing + IM `/addworkspace` | ✅ **Completed** (v2.8.0) |
76
+ | **Mobile Layout Redesign & Anti-Collision** | Top centered title + 28px circular download icon + composer adaptive layout | ✅ **Completed** (v2.8.0) |
77
+ | **Comprehensive Security Hardening** | RPC auth + sensitive directory blacklist + symlink escape prevention + rate limiter | ✅ **Completed** (v2.8.0) |
66
78
  | **Mobile & DevOps** | PWA Standalone App + Network Diagnostics + Config Backup/Restore + System Resource Monitor | ✅ **Completed** |
67
79
  | **Session Renaming** | Support `/rename <new title>` across WeChat, QQ, Feishu, Telegram | ✅ **Completed** |
68
80
  | **Tunnel AutoStart & Fixed Domain** | Cloudflare Named Tunnel token mode + autoStart persistence | ✅ **Completed** |
@@ -213,17 +225,20 @@ Deeply tailored for smartphone screens and touch gestures, providing a clean and
213
225
 
214
226
  - **Minimalist Top Navigation**: Left drawer toggle and right `(+)` quick-new session button, keeping the screen clean and content-focused;
215
227
  - **Native Sidebar Drawer**: Full access to DSH session history, workspace folders, search, view options, and session actions;
228
+ - **Remote Workspace Picker**: Tap "Add Workspace" on mobile / remote web to pop up a bottom-sheet directory browser with disk drive switching, breadcrumbs, and one-click workspace switching;
216
229
  - **Fluid Responsive Settings**: Redesigned settings layout with vertical flow, auto-scaling QR codes, and tag badges without cramped word wrapping;
217
230
  - **Touch Gesture Support**: Swipe right from the left edge (<=35px) to open the drawer, swipe left to dismiss, and **long-press on any session item to bring up context actions** (Rename/Fork/Archive).
218
231
 
219
232
  #### Chat & Session Experience
220
233
 
221
234
  <p align="center">
222
- <img src="docs/screenshots/remote-web-mobile.jpg" width="29%" alt="Mobile New Session Home" />
223
- &nbsp;&nbsp;&nbsp;
224
- <img src="docs/screenshots/mobile-chat.jpg" width="29%" alt="Mobile Active Chat View" />
225
- &nbsp;&nbsp;&nbsp;
226
- <img src="docs/screenshots/mobile-drawer.jpg" width="29%" alt="Mobile Native Sidebar Drawer" />
235
+ <img src="docs/screenshots/remote-web-mobile.jpg" width="22%" alt="Mobile New Session Home" />
236
+ &nbsp;&nbsp;
237
+ <img src="docs/screenshots/mobile-chat.jpg" width="22%" alt="Mobile Active Chat View" />
238
+ &nbsp;&nbsp;
239
+ <img src="docs/screenshots/mobile-drawer.jpg" width="22%" alt="Mobile Native Sidebar Drawer" />
240
+ &nbsp;&nbsp;
241
+ <img src="docs/screenshots/mobile-workspace-picker.jpg" width="22%" alt="Mobile Remote Workspace Picker" />
227
242
  </p>
228
243
 
229
244
  #### Remote Access & Plugin Settings Console
@@ -309,7 +324,9 @@ Powered by Tencent's official WeChat ClawBot feature (iLink Bot API). Log in wit
309
324
  | *(Plain text)* | Send to the currently active agent |
310
325
  | `/sessions` (or `/list`) | List sessions (grouped by workspace with titles) |
311
326
  | `/use N` (or `/resume N`) | Switch to / resume session N |
327
+ | `/rename <title>` | Rename the currently active session |
312
328
  | `/workspaces` | List available workspaces |
329
+ | `/addworkspace <path>` | Register a new host directory as workspace |
313
330
  | `/new <prompt>` | Start a new session in the current workspace |
314
331
  | `/new <prompt> @N` (or `@path`) | Start a new session in the specified workspace |
315
332
  | `/stop` | Stop the current task |
@@ -370,10 +387,12 @@ Integrates Tencent's official QQ Bot platform. Supports private chat, group chat
370
387
  | `/new <prompt>` | Start a new session |
371
388
  | `/sessions` (or `/list`) | List sessions (grouped by workspace) |
372
389
  | `/use N` (or `/resume N`) | Switch to / resume session N |
390
+ | `/rename <title>` | Rename the active session |
373
391
  | `/end` | End current session (triggers quick-action buttons) |
374
392
  | `/stop` | Stop the current task |
375
393
  | `/status` | View agent status |
376
394
  | `/workspaces` | List available workspaces |
395
+ | `/addworkspace <path>` | Register a new host directory as workspace |
377
396
  | `/help` | Display all available commands |
378
397
 
379
398
  **Important Notice**
@@ -404,7 +423,7 @@ Connect your enterprise self-built app via Feishu's official WebSocket protocol.
404
423
  - 📜 **Card JSON 2.0 Streaming**: In-place single-card incremental streaming updates, eliminating message bubble fragmentation
405
424
  - 🛡️ **Card 2.0 Interactive Approvals**: Native orange approval card with `[✓ Approve]` / `[✕ Reject]` action buttons for 1-click execution
406
425
  - 📝 **Full Markdown Rendering**: Native support for headings, tables, syntax highlighting, blockquotes, and lists
407
- - 🔄 **Workspace & Session Management**: Table-formatted `/sessions`, `/use N` switching, and `/workspaces` listing
426
+ - 🔄 **Workspace & Session Management**: Table-formatted `/sessions`, `/use N` switching, `/rename` title updating, and `/workspaces` & `/addworkspace` management
408
427
 
409
428
  **Setup Steps**
410
429
 
@@ -422,7 +441,9 @@ Connect your enterprise self-built app via Feishu's official WebSocket protocol.
422
441
  | `/new <prompt> @N` | Create a new session in workspace N |
423
442
  | `/sessions` (or `/list`) | List all sessions in a structured Markdown table |
424
443
  | `/use N` (or `/resume N`) | Switch to/resume session N |
444
+ | `/rename <title>` | Rename currently active session |
425
445
  | `/workspaces` | List all available workspaces |
446
+ | `/addworkspace <path>` | Register a new host directory as workspace |
426
447
  | `/end` | End current session |
427
448
  | `/stop` | Stop currently executing task |
428
449
  | `/status` | View agent status dashboard |
@@ -445,7 +466,7 @@ Connect official Telegram Bot API for real-time private and group interactions.
445
466
  - 🎯 **Native Command Menu (`Menu` Button)**: Automatically registered with `setMyCommands` & `setChatMenuButton`, type `/` or tap `[Menu]` for 1-click command navigation
446
467
  - 🛡️ **Inline Keyboard Interactive Cards**: Permission approvals send `[✓ Approve]` / `[✕ Reject]` buttons for 1-second approval actions
447
468
  - 🖼️ **Multimodal & File Transfers**: Inbound images/files automatically saved and sent to Agent; generated artifacts sent back to Telegram
448
- - 🔄 **Session & Workspace Management**: Manage multiple sessions with `/sessions`, switch with `/use N`, view workspaces with `/workspaces`
469
+ - 🔄 **Session & Workspace Management**: Manage multiple sessions with `/sessions`, switch with `/use N`, `/rename` title, and manage workspaces with `/workspaces` & `/addworkspace`
449
470
 
450
471
  **Quick Start**
451
472
 
@@ -463,7 +484,9 @@ Connect official Telegram Bot API for real-time private and group interactions.
463
484
  | `/new <prompt> @N` | Create a new session in workspace N | Multi-workspace routing |
464
485
  | `/sessions` (or `/list`) | List all sessions | 1-click switch buttons |
465
486
  | `/use N` (or `/resume N`) | Switch to/resume session N | Instant context switch |
487
+ | `/rename <title>` | Rename the currently active session | Real-time title update |
466
488
  | `/workspaces` | List all available workspaces | View workspace paths |
489
+ | `/addworkspace <path>` | Register a new host directory as workspace | Auto-bind and assign index |
467
490
  | `/status` | View agent status dashboard | Refresh/Stop/End buttons |
468
491
  | `/stop` | Stop currently executing task | Immediate abort |
469
492
  | `/end` | End current active session | Quick-start button attached |
package/README.md CHANGED
@@ -36,9 +36,18 @@
36
36
 
37
37
  ## 功能特性
38
38
 
39
- - **🔐 全套访问安全认证与后台防篡改(v2.5.0 重磅)**:
39
+ - **🗂️ 远程工作区网页选择器与全平台管理(v2.8.0 重磅)**:
40
+ - **网页端树形目录选择器**:彻底解决手机/远程设备点击「添加工作区」在电脑端静默弹窗、移动端无感知的痛点;自动唤出响应式底部抽屉/弹窗树形目录浏览器,支持 Windows 盘符(C/D 盘)与常用快捷目录(Desktop / Projects 等)直达、搜索过滤与手动路径跳转;
41
+ - **本机电脑无感智能分流**:电脑本机(`localhost` / `127.0.0.1` / Electron 桌面客户端)点击添加工作区直接调用系统原生文件夹选择对话框,仅在移动端/远程访问时呼出网页选择器;
42
+ - **IM 机器人 `/addworkspace` 指令**:微信 / QQ / 飞书 / Telegram 全面支持 `/addworkspace <电脑绝对路径>`,随时随地在聊天框注册并切换工作区。
43
+ - **📱 移动端原生级视觉与布局体验(v2.8.0 重构)**:
44
+ - **顶部固定导航栏动态居中标题**:顶部导航栏正中加粗单行居中显示当前会话标题,彻底消除顶部留白;
45
+ - **第二行会话工具栏开阔呼吸感**:智能路由模式徽标与 28px 圆形纯图标 Session Log 下载按钮两端规整排列;
46
+ - **底部工具栏防重叠弹性自适应**:彻底解决移动端与窄屏下权限预设与模型选择器重叠碰撞问题。
47
+ - **🔐 全方位安全审计与深度防护(v2.8.0)**:
40
48
  - **第一道防线(外部访问门禁)**:二维码自带专属 Token 扫码一秒免密直入;手动输入 IP 或公网域名强制验证密码;支持「全部防护 / 仅公网 / 仅局域网」精准通道分流;
41
49
  - **第二道防线(管理控制台防篡改)**:独立管理员密码,远程设备进入控制台全局锁定网络配置与 IM 机器人密钥,支持「需密码解锁 / 仅电脑本机管理 / 宽松直管」;
50
+ - **文件系统与 RPC 深度加固**:文件树、驱动器与工作区注册 RPC 端点强制管理员鉴权;核心系统目录黑名单拦截(`C:\Windows\System32`、`/etc/shadow`、`/root/.ssh` 等);软链接逃逸检测;滑动窗口请求限流;
42
51
  - **三重容灾保命体系**:电脑本机(`127.0.0.1`)永久最高物理特权(永不自锁) + 终端 `touch ~/.dsh/dsh-bridge/reset-auth` 一秒救急重置 + 全界面忘记密码求助引导;
43
52
  - **金融级安全引擎**:PBKDF2 + SHA-256 加盐哈希安全存储、30 天 HttpOnly SameSite 会话、单 IP 连续 5 次错误封禁 60 秒防暴力破解。
44
53
  - **📱 PWA 独立全屏 App 与移动端深度适配**:手机浏览器「添加到主屏幕」即可作为 100% 独立原生全屏 App 运行(无浏览器地址栏与底栏);极简顶栏、手势抽屉、防误触与全自适应设置中心
@@ -63,6 +72,9 @@
63
72
 
64
73
  | 目标 | 说明 | 状态 |
65
74
  |------|------|------|
75
+ | **远程工作区网页选择器 & 本机分流** | 网页端树形目录选择器 + 本机原生对话框分流 + IM `/addworkspace` | ✅ **已完成**(v2.8.0) |
76
+ | **移动端视觉重构 & 防重叠** | 居中动态标题 + 28px 下载图标 + 底部工具栏弹性自适应 | ✅ **已完成**(v2.8.0) |
77
+ | **全方位安全加固** | RPC 鉴权 + 敏感路径黑名单 + 软链接防逃逸 + 滑动窗口限流 | ✅ **已完成**(v2.8.0) |
66
78
  | **移动端体验 & 运维监控** | PWA 独立全屏 App + 网络实时诊断 + 配置备份恢复 + 系统监控看板 | ✅ **已完成** |
67
79
  | **会话重命名** | 微信/QQ/飞书/Telegram 支持 `/rename <新标题>` 实时重命名 | ✅ **已完成** |
68
80
  | **公网隧道开机自启 & Token 固定域名** | Cloudflare Named Tunnel Token 模式固定域名 + 隧道状态记忆与开机自启 | ✅ **已完成** |
@@ -213,17 +225,20 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
213
225
 
214
226
  - **极简顶栏布局**:保留左侧菜单抽屉与右侧快速新建会话,顶部无冗余元素干扰,视野开阔通透;
215
227
  - **原生侧边栏抽屉**:完整复用 DSH 原生历史记录与工作区分类,支持搜索、视图选项切换及会话管理,点击会话即刻平滑切换;
228
+ - **远程工作区网页选择器**:在移动端或远程网页点击「添加工作区」自动弹出底部抽屉选择器,支持磁盘盘符、常用目录快捷切换与文件夹层级深入,彻底告别电脑桌面静默弹窗;
216
229
  - **流式自适应设置面板**:重构手机端设置排版,选项与下拉框自适应纵向流式展开,药丸徽标与二维码自适应缩放,彻底解决文字挤压折行;
217
230
  - **手势与触屏友好**:支持屏幕左侧边缘向右滑动唤出抽屉、向左滑动收起,支持**长按任意会话项呼出操作菜单**(重命名/分叉/归档),大圆角输入区完美贴合移动端虚拟键盘。
218
231
 
219
232
  #### 对话与会话管理体验
220
233
 
221
234
  <p align="center">
222
- <img src="docs/screenshots/remote-web-mobile.jpg" width="29%" alt="移动端新会话主页" />
223
- &nbsp;&nbsp;&nbsp;
224
- <img src="docs/screenshots/mobile-chat.jpg" width="29%" alt="移动端已有对话交互" />
225
- &nbsp;&nbsp;&nbsp;
226
- <img src="docs/screenshots/mobile-drawer.jpg" width="29%" alt="移动端原生抽屉侧边栏" />
235
+ <img src="docs/screenshots/remote-web-mobile.jpg" width="22%" alt="移动端新会话主页" />
236
+ &nbsp;&nbsp;
237
+ <img src="docs/screenshots/mobile-chat.jpg" width="22%" alt="移动端已有对话交互" />
238
+ &nbsp;&nbsp;
239
+ <img src="docs/screenshots/mobile-drawer.jpg" width="22%" alt="移动端原生抽屉侧边栏" />
240
+ &nbsp;&nbsp;
241
+ <img src="docs/screenshots/mobile-workspace-picker.jpg" width="22%" alt="移动端远程工作区选择器" />
227
242
  </p>
228
243
 
229
244
  #### 远程访问与插件设置中心
@@ -309,7 +324,9 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
309
324
  | *(普通文本)* | 发给当前活动 agent |
310
325
  | `/sessions`(或 `/list`) | 列出会话(按工作区分组,带标题) |
311
326
  | `/use N`(或 `/resume N`) | 切换到会话 N |
327
+ | `/rename <新标题>` | 重命名当前活动会话 |
312
328
  | `/workspaces` | 列出可用工作区 |
329
+ | `/addworkspace <路径>` | 注册添加新的电脑工作区目录 |
313
330
  | `/new <提示词>` | 新建会话并开始(当前工作区) |
314
331
  | `/new <提示词> @N`(或 `@路径`) | 在指定工作区新建会话 |
315
332
  | `/stop` | 停止当前任务 |
@@ -370,10 +387,12 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
370
387
  | `/new <提示词>` | 新建会话并开始 |
371
388
  | `/sessions`(或 `/list`) | 列出会话(按工作区分组) |
372
389
  | `/use N`(或 `/resume N`) | 切换到/恢复会话 N |
390
+ | `/rename <新标题>` | 重命名当前活动会话 |
373
391
  | `/end` | 结束当前会话(触发快捷按钮) |
374
392
  | `/stop` | 停止当前任务 |
375
393
  | `/status` | 查看 agent 状态 |
376
394
  | `/workspaces` | 列出可用工作区 |
395
+ | `/addworkspace <路径>` | 注册添加新的电脑工作区目录 |
377
396
  | `/help` | 查看全部命令 |
378
397
 
379
398
  **重要提示**
@@ -404,7 +423,7 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
404
423
  - 📜 **Card JSON 2.0 原生流式打字机**:单条卡片原地增量打字机更新,彻底告别气泡拆分碎片化
405
424
  - 🛡️ **Card 2.0 交互卡片审批**:敏感操作触发审批时下发橙色告警卡片,手机/电脑端点击 `[✓ 批准执行]` / `[✕ 拒绝执行]` 按钮一键处理
406
425
  - 📝 **全量 Markdown 渲染**:支持多级标题、表格、代码高亮、引用块与列表
407
- - 🔄 **会话与工作区管理**:支持 `/sessions` 表格化查看、`/use N` 切换、`/workspaces` 查看工作区
426
+ - 🔄 **会话与工作区管理**:支持 `/sessions` 表格化查看、`/use N` 切换、`/rename` 重命名、`/workspaces` 与 `/addworkspace` 调度工作区
408
427
 
409
428
  **使用步骤**
410
429
 
@@ -422,7 +441,9 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
422
441
  | `/new <提示词> @N` | 在指定工作区新建会话 |
423
442
  | `/sessions`(或 `/list`) | 查看所有历史会话(结构化表格排版) |
424
443
  | `/use N`(或 `/resume N`) | 切换到会话 N |
444
+ | `/rename <新标题>` | 重命名当前活动会话 |
425
445
  | `/workspaces` | 列出可用工作区 |
446
+ | `/addworkspace <路径>` | 注册添加新的电脑工作区目录 |
426
447
  | `/end` | 结束当前会话 |
427
448
  | `/stop` | 停止当前任务 |
428
449
  | `/status` | 查看 agent 状态看板 |
@@ -445,7 +466,7 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
445
466
  - 🎯 **原生快捷指令菜单(Menu 按钮)**:自动注册全范围指令,输入 `/` 或点击左下角 `[Menu]` 按钮一键直达常用命令
446
467
  - 🛡️ **Inline Keyboard 交互卡片**:权限审批下发 `[✓ 批准执行]` / `[✕ 拒绝执行]` 按键,一秒点击即时放行
447
468
  - 🖼️ **多模态与文件传输**:支持入站图片/文档自动转存交付 Agent,出站产物文件自动推回 Telegram
448
- - 🔄 **会话与工作区管理**:支持 `/sessions` 列出历史会话、`/use N` 切换、`/workspaces` 调度工作区
469
+ - 🔄 **会话与工作区管理**:支持 `/sessions` 列出历史会话、`/use N` 切换、`/rename` 重命名、`/workspaces` 与 `/addworkspace` 调度工作区
449
470
 
450
471
  **使用步骤**
451
472
 
@@ -463,7 +484,9 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
463
484
  | `/new <提示词> @N` | 在指定工作区新建会话 | 多工作区调度 |
464
485
  | `/sessions`(或 `/list`) | 查看所有会话列表 | 挂载一键切换按键 |
465
486
  | `/use N`(或 `/resume N`) | 切换到会话 N | 快速切换上下文 |
487
+ | `/rename <新标题>` | 重命名当前活动会话 | 实时更新会话标题 |
466
488
  | `/workspaces` | 列出可用工作区 | 查看工作区路径 |
489
+ | `/addworkspace <路径>` | 注册添加新的电脑工作区目录 | 自动绑定并生成快捷序号 |
467
490
  | `/status` | 查看 agent 状态看板 | 挂载刷新/停止/结束按键 |
468
491
  | `/stop` | 停止当前正在运行的任务 | 即刻中断执行 |
469
492
  | `/end` | 结束当前活动会话 | 挂载快捷开始按键 |