@wenbin_wb/dsh-bridge 2.5.5 → 2.6.1

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.en.md CHANGED
@@ -41,6 +41,7 @@
41
41
  - **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);
42
42
  - **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
43
  - **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
+ - **📱 Mobile Browser & Touch Adaptation**: Specially crafted layout for smartphone viewports. Clean header with drawer & quick-new button, touch gestures, and responsive settings cards without text-wrapping issues
44
45
  - **LAN Access**: Scan QR code with your smartphone/tablet, direct access on the same Wi-Fi — keep the conversation going from your phone
45
46
  - **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
46
47
  - **Custom Tunnel**: Connect to your own tunnel server with a fixed domain ([Setup Guide](docs/custom-tunnel.md))
@@ -103,8 +104,8 @@ npm install -g @deepseek-ai/dsh
103
104
  # Install the latest version
104
105
  dsh plugin --profile web add @wenbin_wb/dsh-bridge
105
106
 
106
- # Or install a specific version (e.g. 2.5.5)
107
- dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.5.5
107
+ # Or install a specific version (e.g. 2.6.1)
108
+ dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.6.1
108
109
  ```
109
110
 
110
111
  > 💡 **No global install permission?** Use `npx`:
@@ -199,6 +200,39 @@ Go to Settings -> "Remote Access" -> "**Security**" tab to enable enterprise-gra
199
200
 
200
201
  ---
201
202
 
203
+ ### 📱 Mobile Browser & Touch Adaptation
204
+
205
+ Deeply tailored for smartphone screens and touch gestures, providing a clean and intuitive mobile experience via LAN or public tunnels without installing extra client apps:
206
+
207
+ - **Minimalist Top Navigation**: Left drawer toggle and right `(+)` quick-new session button, keeping the screen clean and content-focused;
208
+ - **Native Sidebar Drawer**: Full access to DSH session history, workspace folders, search, view options, and session actions;
209
+ - **Fluid Responsive Settings**: Redesigned settings layout with vertical flow, auto-scaling QR codes, and tag badges without cramped word wrapping;
210
+ - **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).
211
+
212
+ #### Chat & Session Experience
213
+
214
+ <p align="center">
215
+ <img src="docs/screenshots/remote-web-mobile.jpg" width="29%" alt="Mobile New Session Home" />
216
+ &nbsp;&nbsp;&nbsp;
217
+ <img src="docs/screenshots/mobile-chat.jpg" width="29%" alt="Mobile Active Chat View" />
218
+ &nbsp;&nbsp;&nbsp;
219
+ <img src="docs/screenshots/mobile-drawer.jpg" width="29%" alt="Mobile Native Sidebar Drawer" />
220
+ </p>
221
+
222
+ #### Remote Access & Plugin Settings Console
223
+
224
+ <p align="center">
225
+ <img src="docs/screenshots/mobile-settings-lan.jpg" width="22%" alt="LAN Access Console" />
226
+ &nbsp;&nbsp;
227
+ <img src="docs/screenshots/mobile-settings-tunnel.jpg" width="22%" alt="Public Tunnel Settings" />
228
+ &nbsp;&nbsp;
229
+ <img src="docs/screenshots/mobile-settings-im.jpg" width="22%" alt="IM Bot Platforms" />
230
+ &nbsp;&nbsp;
231
+ <img src="docs/screenshots/mobile-settings-security.jpg" width="22%" alt="Global Access Security" />
232
+ </p>
233
+
234
+ ---
235
+
202
236
  ### LAN Access
203
237
 
204
238
  Automatically active when the plugin starts, zero configuration needed. Open Settings -> "Remote Access", and scan the QR code with your phone.
@@ -207,20 +241,19 @@ Automatically active when the plugin starts, zero configuration needed. Open Set
207
241
 
208
242
  ### Cloudflare Tunnel
209
243
 
210
- 1. Click the "Start" button in the "Cloudflare Tunnel" card
211
- 2. On first use, cloudflared (~30MB) will be automatically downloaded from GitHub
212
- 3. Once downloaded, it starts automatically and displays a public URL and QR code within seconds
213
- 4. The URL changes on each restart; click "Reset URL" to request a new URL
244
+ Supports both **Quick Tunnel (zero config)** and **Cloudflare Token Named Tunnel (fixed domain)**, with optional automatic start on DSH boot:
214
245
 
215
- ![Public Tunnel Settings](docs/screenshots/tunnel-access.jpg)
246
+ - **Mode 1: Instant Quick Tunnel (Default)**
247
+ 1. Click the "Start" button in the "Cloudflare Tunnel" card;
248
+ 2. On first use, cloudflared (~30MB) will be automatically downloaded from GitHub;
249
+ 3. Displays a public URL and QR code within seconds (changes on restart or click "Reset URL").
216
250
 
217
- <details>
218
- <summary>📱 Click to expand mobile browser public access screenshot</summary>
219
- <br/>
220
- <p align="center">
221
- <img src="docs/screenshots/remote-web-mobile.jpg" width="340" alt="Mobile Public Access Demo" />
222
- </p>
223
- </details>
251
+ - **Mode 2: Cloudflare Token Named Tunnel (Permanent Fixed Domain · 100% Free)**
252
+ 1. Create a free tunnel on the [Cloudflare Zero Trust Console](https://one.dash.cloudflare.com/) and bind your custom domain (e.g. `dsh.yourdomain.com`);
253
+ 2. Expand the **"⚙️ Advanced: Fixed Domain (Cloudflare Token)"** form at the bottom of the card, enter your domain and Tunnel Token, then save;
254
+ 3. Check **"Auto-start with DSH"** — the tunnel will automatically recover on DSH restarts with a **permanently fixed URL**!
255
+
256
+ ![Public Tunnel Settings](docs/screenshots/tunnel-access.jpg)
224
257
 
225
258
  ### Custom Tunnel
226
259
 
package/README.md CHANGED
@@ -41,6 +41,7 @@
41
41
  - **第二道防线(管理控制台防篡改)**:独立管理员密码,远程设备进入控制台全局锁定网络配置与 IM 机器人密钥,支持「需密码解锁 / 仅电脑本机管理 / 宽松直管」;
42
42
  - **三重容灾保命体系**:电脑本机(`127.0.0.1`)永久最高物理特权(永不自锁) + 终端 `touch ~/.dsh/dsh-bridge/reset-auth` 一秒救急重置 + 全界面忘记密码求助引导;
43
43
  - **金融级安全引擎**:PBKDF2 + SHA-256 加盐哈希安全存储、30 天 HttpOnly SameSite 会话、单 IP 连续 5 次错误封禁 60 秒防暴力破解。
44
+ - **📱 移动端与触控交互深度适配**:针对手机端排版与触控操作深度优化。极简轻量顶栏、快速新建、滑动手势抽屉,以及全自适应设置中心(彻底告别文字挤压折行)
44
45
  - **局域网访问**:手机/平板扫码,同一 Wi-Fi 直接访问,躺着也能在手机上接着聊
45
46
  - **Cloudflare 隧道**:一键暴露公网地址,随时随地连接,出差在外、不在家也能接着干,无需自建公网服务器
46
47
  - **自建隧道**:连接自己的隧道服务器,获得固定域名([搭建教程](docs/custom-tunnel.md))
@@ -103,8 +104,8 @@ npm install -g @deepseek-ai/dsh
103
104
  # 安装最新版
104
105
  dsh plugin --profile web add @wenbin_wb/dsh-bridge
105
106
 
106
- # 或指定版本(如 2.5.5
107
- dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.5.5
107
+ # 或指定版本(如 2.6.1
108
+ dsh plugin --profile web add @wenbin_wb/dsh-bridge@2.6.1
108
109
  ```
109
110
 
110
111
  > 💡 **没有全局安装权限?** 使用 `npx` 方式:
@@ -199,6 +200,39 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
199
200
 
200
201
  ---
201
202
 
203
+ ### 📱 移动端与触控交互深度适配
204
+
205
+ 针对手机端屏幕与触控操作进行深度优化,手机扫码或公网访问时,无需额外配置即可获得流畅自然的交互体验:
206
+
207
+ - **极简顶栏布局**:保留左侧菜单抽屉与右侧快速新建会话,顶部无冗余元素干扰,视野开阔通透;
208
+ - **原生侧边栏抽屉**:完整复用 DSH 原生历史记录与工作区分类,支持搜索、视图选项切换及会话管理,点击会话即刻平滑切换;
209
+ - **流式自适应设置面板**:重构手机端设置排版,选项与下拉框自适应纵向流式展开,药丸徽标与二维码自适应缩放,彻底解决文字挤压折行;
210
+ - **手势与触屏友好**:支持屏幕左侧边缘向右滑动唤出抽屉、向左滑动收起,支持**长按任意会话项呼出操作菜单**(重命名/分叉/归档),大圆角输入区完美贴合移动端虚拟键盘。
211
+
212
+ #### 对话与会话管理体验
213
+
214
+ <p align="center">
215
+ <img src="docs/screenshots/remote-web-mobile.jpg" width="29%" alt="移动端新会话主页" />
216
+ &nbsp;&nbsp;&nbsp;
217
+ <img src="docs/screenshots/mobile-chat.jpg" width="29%" alt="移动端已有对话交互" />
218
+ &nbsp;&nbsp;&nbsp;
219
+ <img src="docs/screenshots/mobile-drawer.jpg" width="29%" alt="移动端原生抽屉侧边栏" />
220
+ </p>
221
+
222
+ #### 远程访问与插件设置中心
223
+
224
+ <p align="center">
225
+ <img src="docs/screenshots/mobile-settings-lan.jpg" width="22%" alt="局域网访问控制台" />
226
+ &nbsp;&nbsp;
227
+ <img src="docs/screenshots/mobile-settings-tunnel.jpg" width="22%" alt="公网隧道配置" />
228
+ &nbsp;&nbsp;
229
+ <img src="docs/screenshots/mobile-settings-im.jpg" width="22%" alt="IM 机器人矩阵" />
230
+ &nbsp;&nbsp;
231
+ <img src="docs/screenshots/mobile-settings-security.jpg" width="22%" alt="全局访问安全认证" />
232
+ </p>
233
+
234
+ ---
235
+
202
236
  ### 局域网访问
203
237
 
204
238
  插件启动后自动开启,无需任何配置。打开设置页「远程访问」,用手机扫描二维码即可访问。
@@ -207,20 +241,19 @@ dsh plugin --profile web add @wenbin_wb/dsh-bridge@latest
207
241
 
208
242
  ### Cloudflare 隧道
209
243
 
210
- 1. 点击「Cloudflare 隧道」卡片中的「开启」按钮
211
- 2. 首次使用会自动从 GitHub 下载 cloudflared(约 30MB)
212
- 3. 下载完成后自动启动,几秒内显示公网 URL 和二维码
213
- 4. 每次重启后 URL 会变化;点「重置链接」可主动获取新 URL
244
+ 支持**免登录临时隧道**与**专属 Token 固定域名隧道**双模式,支持随 DSH 启动自动开启:
214
245
 
215
- ![公网隧道配置](docs/screenshots/tunnel-access.jpg)
246
+ - **模式 1:极速免登录临时隧道(默认)**
247
+ 1. 直接点击「Cloudflare 隧道」卡片中的「开启」按钮;
248
+ 2. 首次使用会自动从 GitHub 下载 cloudflared(约 30MB);
249
+ 3. 几秒内自动生成公网 URL 和二维码,点「重置链接」可随时换新。
216
250
 
217
- <details>
218
- <summary>📱 点击展开手机公网访问 DeepSeek Harness 效果截图</summary>
219
- <br/>
220
- <p align="center">
221
- <img src="docs/screenshots/remote-web-mobile.jpg" width="340" alt="手机公网访问 DeepSeek Harness 效果" />
222
- </p>
223
- </details>
251
+ - **模式 2:Cloudflare Token 固定域名(永久不变,完全免费)**
252
+ 1. [Cloudflare Zero Trust 控制台](https://one.dash.cloudflare.com/) 免费创建 Tunnel 并绑定域名(如 `dsh.yourdomain.com`);
253
+ 2. 展开卡片底部的 **「⚙️ 高级配置:固定域名 (Cloudflare Token)」**,填入自定义域名与 Tunnel Token 并保存;
254
+ 3. 勾选 **「随 DSH 启动自动开启」**,每次 DSH 重启即可自动恢复隧道,**URL 永久固定不变**!
255
+
256
+ ![公网隧道配置](docs/screenshots/tunnel-access.jpg)
224
257
 
225
258
  ### 自建隧道
226
259