@wenbin_wb/dsh-bridge 1.0.6 → 1.0.8

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.
Files changed (3) hide show
  1. package/README.md +65 -55
  2. package/README.zh-CN.md +143 -0
  3. package/package.json +13 -3
package/README.md CHANGED
@@ -1,133 +1,143 @@
1
1
  # dsh-bridge
2
2
 
3
+ [中文文档](README.zh-CN.md)
4
+
3
5
  ![dsh-bridge banner](docs/banner.jpg)
4
6
 
5
- > DeepSeek Harness 多通道远程访问插件
7
+ > Multi-channel remote access plugin for DeepSeek Harness
8
+
9
+ Seamlessly extend your local DeepSeek Harness to mobile phones, tablets, public networks, and even IM chat apps. Access your AI assistant anytime, anywhere via QR code scanning, web browsers, or future integrations with WeChat/QQ/Feishu.
6
10
 
7
- 把你本地的 DeepSeek Harness 无缝延伸到手机、平板、公网、甚至 IM 聊天软件。无论你在哪,都能通过扫码、网页或未来的微信/QQ/飞书,随时调用你的 AI 助手。
11
+ ---
8
12
 
9
- DSH 设置页新增「远程访问」面板,开箱即用地获得:
13
+ ## Features
10
14
 
11
- - **局域网访问**:手机扫码,同一 Wi-Fi 直接访问
12
- - **Cloudflare 隧道**:一键暴露公网地址,随时随地连接
13
- - **自建隧道**:连接自己的隧道服务器,获得固定域名
14
- - **IM 集成(规划中)**:微信 / QQ / 飞书 / OpenClaw,直接在聊天软件里呼唤你的 Agent
15
+ - **LAN Access**: Scan QR code with your smartphone/tablet, direct access on the same Wi-Fi
16
+ - **Cloudflare Tunnel**: One-click public internet exposure, connect from anywhere
17
+ - **Custom Tunnel**: Connect to your own tunnel server with a fixed domain ([Setup Guide](docs/custom-tunnel.md))
18
+ - **IM Integration (Planned)**: WeChat / QQ / Feishu / OpenClaw direct chat integration
19
+ - **Security Alerts**: URLs and QR codes with access warnings to prevent accidental sharing
20
+ - **Auto Version Check**: Automatic update detection when entering the panel
15
21
 
16
22
  ![npm](https://img.shields.io/npm/v/@wenbin_wb/dsh-bridge?label=npm)
17
23
  ![npm downloads](https://img.shields.io/npm/dt/@wenbin_wb/dsh-bridge?label=downloads)
18
24
  ![npm license](https://img.shields.io/npm/l/@wenbin_wb/dsh-bridge?label=license)
19
25
  ![Node](https://img.shields.io/badge/node-%3E%3D22-brightgreen)
20
26
 
21
- ## 功能
22
-
23
- - **局域网访问**:自动检测本机 IP,生成二维码,同一 Wi-Fi 下的设备直接扫码访问
24
- - **Cloudflare 隧道**:一键获取公网地址,自动下载 cloudflared(无需手动安装),重启后 URL 会变化
25
- - **自建隧道**:WebSocket 反向隧道,连接自己部署的隧道服务器,可获得固定域名
26
- - **安全提示**:URL 和二维码带访问警告,防止误分享
27
- - **版本检查**:进入面板自动检测是否有新版本
27
+ ---
28
28
 
29
29
  ## Roadmap
30
30
 
31
- 除了现有的三种访问方式,正在规划:
31
+ | Target | Description | Status |
32
+ |--------|-------------|--------|
33
+ | **WeChat** | Chat with your Agent directly in WeChat | Planned |
34
+ | **QQ Bot** | QQ bot integration for group/private chat | Planned |
35
+ | **Feishu** | Feishu message/bot integration for workplace scenarios | Planned |
36
+ | **OpenClaw** | Integration with OpenClaw ecosystem | Planned |
37
+ | **Telegram** | Self-hosted IM channel | Planned |
32
38
 
33
- | 目标 | 说明 | 状态 |
34
- |------|------|------|
35
- | **微信** | 在微信里直接与你的 Agent 对话 | 规划中 |
36
- | **QQ Bot** | 接入 QQ 机器人,群聊/私聊唤起 Agent | 规划中 |
37
- | **飞书** | 飞书消息/机器人集成,办公场景直接调用 | 规划中 |
38
- | **OpenClaw** | 与 OpenClaw 生态打通 | 规划中 |
39
- | **Telegram** | 适合自托管的 IM 渠道 | 规划中 |
39
+ ---
40
40
 
41
- ## 环境要求
41
+ ## Requirements
42
42
 
43
- 安装插件前,请先确保:
43
+ Before installing the plugin, ensure:
44
44
 
45
- 1. **Node.js ≥ 22**(DSH 要求 `^22.19.0` `≥ 24.0.0`)
46
- 2. **dsh CLI 可用**——即能在终端直接运行 `dsh` 命令
45
+ 1. **Node.js ≥ 22** (DSH requires `^22.19.0` or `≥ 24.0.0`)
46
+ 2. **dsh CLI available** — you can run `dsh` command in terminal
47
47
 
48
48
  ```bash
49
- # 检查 Node 版本
50
- node -v # 应显示 v22.19+ v24+
49
+ # Check Node version
50
+ node -v # Should show v22.19+ or v24+
51
51
 
52
- # 检查 dsh 是否可用
52
+ # Check dsh availability
53
53
  dsh --version
54
54
  ```
55
55
 
56
- 如果 `dsh` 命令提示"无法识别/找不到",说明它没有全局安装,先安装 DSH
56
+ If `dsh` command is not found, install DSH globally:
57
57
 
58
58
  ```bash
59
59
  npm install -g @deepseek-ai/dsh
60
60
  ```
61
61
 
62
- > 若没有全局安装的权限,也可以用 `npx` 方式(无需全局安装):
62
+ > Alternative without global install (use `npx`):
63
63
  > ```bash
64
64
  > npx --yes @deepseek-ai/dsh plugin --profile web add @wenbin_wb/dsh-bridge
65
65
  > ```
66
66
 
67
- ## 安装
67
+ ---
68
+
69
+ ## Installation
68
70
 
69
- npm 安装:
71
+ ### From npm
70
72
 
71
73
  ```bash
72
74
  dsh plugin --profile web add @wenbin_wb/dsh-bridge
73
75
  ```
74
76
 
75
- 从源码安装:
77
+ ### From source
76
78
 
77
79
  ```bash
78
80
  git clone https://github.com/wenbin-wb/dsh-bridge.git
79
81
  dsh plugin --profile web add ./dsh-bridge
80
82
  ```
81
83
 
82
- 安装完成后重启 DSH,在设置页找到「远程访问」即可使用。
84
+ After installation, restart DSH and find "Remote Access" in settings.
83
85
 
84
- ## 使用
86
+ ---
85
87
 
86
- ### 局域网访问
88
+ ## Usage
87
89
 
88
- 插件启动后自动开启,无需任何配置。打开设置页「远程访问」,用手机扫描二维码即可访问。
90
+ ### LAN Access
89
91
 
90
- ### Cloudflare 隧道
92
+ Automatically enabled after plugin starts, no configuration needed. Open Settings → "Remote Access", scan the QR code with your mobile device.
91
93
 
92
- 点击「Cloudflare 隧道」卡片中的「开启」按钮:
93
- 1. 首次使用会自动从 GitHub 下载 cloudflared(约 30MB),需要能访问 GitHub
94
- 2. 下载完成后自动启动,几秒内显示公网 URL 和二维码
95
- 3. 每次重启后 URL 会变化;点「重置链接」可主动获取新 URL
94
+ ### Cloudflare Tunnel
96
95
 
97
- ### 自建隧道
96
+ 1. Click "Enable" in the Cloudflare Tunnel card
97
+ 2. First use will auto-download cloudflared (~30MB) from GitHub
98
+ 3. Public URL and QR code appear within seconds
99
+ 4. URL changes after each restart; click "Reset Link" to get a new one
98
100
 
99
- 需要一台有公网 IP 的服务器。详细搭建步骤见 [自建隧道教程](docs/custom-tunnel.md)。
101
+ ### Custom Tunnel
100
102
 
101
- 1. 按教程在服务器上部署隧道服务端
102
- 2. 在「自建隧道」卡片中填写 WebSocket 地址(`wss://...`)和访问令牌
103
- 3. 点「保存配置」后点「开启」
103
+ Requires a server with public IP. See [Custom Tunnel Guide](docs/custom-tunnel.md) for detailed setup.
104
104
 
105
- 配置自动持久化到 `~/.dsh/dsh-bridge/config.json`,重启后无需重新填写。
105
+ 1. Deploy tunnel server following the guide
106
+ 2. Fill in WebSocket address (`wss://...`) and access token in the "Custom Tunnel" card
107
+ 3. Click "Save Config" then "Enable"
106
108
 
107
- ## 可选配置
109
+ Config is auto-persisted to `~/.dsh/dsh-bridge/config.json`, no need to re-enter after restart.
108
110
 
109
- 插件开箱即用,无需配置。如需修改代理端口,在 cordis.yml 中添加:
111
+ ---
112
+
113
+ ## Optional Configuration
114
+
115
+ Plugin works out-of-the-box, no configuration needed. To change proxy port, add to cordis.yml:
110
116
 
111
117
  ```yaml
112
118
  - name: dsh-bridge
113
119
  config:
114
- port: 3082 # 默认 3082
120
+ port: 3082 # Default 3082
115
121
  ```
116
122
 
117
- ## 开发
123
+ ---
124
+
125
+ ## Development
118
126
 
119
127
  ```bash
120
128
  git clone https://github.com/wenbin-wb/dsh-bridge.git
121
129
  cd dsh-bridge
122
130
  npm install
123
131
 
124
- # 修改 client/index.js 后重新构建
132
+ # Rebuild after modifying client/index.js
125
133
  npm run build:client
126
134
 
127
- # 安装到 web profile 并重启 DSH
135
+ # Install to web profile and restart DSH
128
136
  dsh plugin --profile web add .
129
137
  ```
130
138
 
139
+ ---
140
+
131
141
  ## License
132
142
 
133
143
  MIT © [wenbin-wb](https://github.com/wenbin-wb)
@@ -0,0 +1,143 @@
1
+ # dsh-bridge
2
+
3
+ [English](README.md)
4
+
5
+ ![dsh-bridge banner](docs/banner.jpg)
6
+
7
+ > DeepSeek Harness 多通道远程访问插件
8
+
9
+ 把你本地的 DeepSeek Harness 无缝延伸到手机、平板、公网、甚至 IM 聊天软件。无论你在哪,都能通过扫码、网页或未来的微信/QQ/飞书,随时调用你的 AI 助手。
10
+
11
+ ---
12
+
13
+ ## 功能特性
14
+
15
+ - **局域网访问**:手机/平板扫码,同一 Wi-Fi 直接访问
16
+ - **Cloudflare 隧道**:一键暴露公网地址,随时随地连接
17
+ - **自建隧道**:连接自己的隧道服务器,获得固定域名([搭建教程](docs/custom-tunnel.md))
18
+ - **IM 集成(规划中)**:微信 / QQ / 飞书 / OpenClaw,直接在聊天软件里呼唤你的 Agent
19
+ - **安全提示**:URL 和二维码带访问警告,防止误分享
20
+ - **版本检查**:进入面板自动检测是否有新版本
21
+
22
+ ![npm](https://img.shields.io/npm/v/@wenbin_wb/dsh-bridge?label=npm)
23
+ ![npm downloads](https://img.shields.io/npm/dt/@wenbin_wb/dsh-bridge?label=downloads)
24
+ ![npm license](https://img.shields.io/npm/l/@wenbin_wb/dsh-bridge?label=license)
25
+ ![Node](https://img.shields.io/badge/node-%3E%3D22-brightgreen)
26
+
27
+ ---
28
+
29
+ ## 开发路线图
30
+
31
+ | 目标 | 说明 | 状态 |
32
+ |------|------|------|
33
+ | **微信** | 在微信里直接与你的 Agent 对话 | 规划中 |
34
+ | **QQ Bot** | 接入 QQ 机器人,群聊/私聊唤起 Agent | 规划中 |
35
+ | **飞书** | 飞书消息/机器人集成,办公场景直接调用 | 规划中 |
36
+ | **OpenClaw** | 与 OpenClaw 生态打通 | 规划中 |
37
+ | **Telegram** | 适合自托管的 IM 渠道 | 规划中 |
38
+
39
+ ---
40
+
41
+ ## 环境要求
42
+
43
+ 安装插件前,请先确保:
44
+
45
+ 1. **Node.js ≥ 22** (DSH 要求 `^22.19.0` 或 `≥ 24.0.0`)
46
+ 2. **dsh CLI 可用** — 能在终端直接运行 `dsh` 命令
47
+
48
+ ```bash
49
+ # 检查 Node 版本
50
+ node -v # 应显示 v22.19+ 或 v24+
51
+
52
+ # 检查 dsh 是否可用
53
+ dsh --version
54
+ ```
55
+
56
+ 如果 `dsh` 命令提示"无法识别/找不到",先安装 DSH:
57
+
58
+ ```bash
59
+ npm install -g @deepseek-ai/dsh
60
+ ```
61
+
62
+ > 若没有全局安装的权限,也可以用 `npx` 方式:
63
+ > ```bash
64
+ > npx --yes @deepseek-ai/dsh plugin --profile web add @wenbin_wb/dsh-bridge
65
+ > ```
66
+
67
+ ---
68
+
69
+ ## 安装
70
+
71
+ ### 从 npm 安装
72
+
73
+ ```bash
74
+ dsh plugin --profile web add @wenbin_wb/dsh-bridge
75
+ ```
76
+
77
+ ### 从源码安装
78
+
79
+ ```bash
80
+ git clone https://github.com/wenbin-wb/dsh-bridge.git
81
+ dsh plugin --profile web add ./dsh-bridge
82
+ ```
83
+
84
+ 安装完成后重启 DSH,在设置页找到「远程访问」即可使用。
85
+
86
+ ---
87
+
88
+ ## 使用
89
+
90
+ ### 局域网访问
91
+
92
+ 插件启动后自动开启,无需任何配置。打开设置页「远程访问」,用手机扫描二维码即可访问。
93
+
94
+ ### Cloudflare 隧道
95
+
96
+ 1. 点击「Cloudflare 隧道」卡片中的「开启」按钮
97
+ 2. 首次使用会自动从 GitHub 下载 cloudflared(约 30MB)
98
+ 3. 下载完成后自动启动,几秒内显示公网 URL 和二维码
99
+ 4. 每次重启后 URL 会变化;点「重置链接」可主动获取新 URL
100
+
101
+ ### 自建隧道
102
+
103
+ 需要一台有公网 IP 的服务器。详细搭建步骤见 [自建隧道教程](docs/custom-tunnel.md)。
104
+
105
+ 1. 按教程在服务器上部署隧道服务端
106
+ 2. 在「自建隧道」卡片中填写 WebSocket 地址(`wss://...`)和访问令牌
107
+ 3. 点「保存配置」后点「开启」
108
+
109
+ 配置自动持久化,重启后无需重新填写。
110
+
111
+ ---
112
+
113
+ ## 可选配置
114
+
115
+ 插件开箱即用,无需配置。如需修改代理端口,在 cordis.yml 中添加:
116
+
117
+ ```yaml
118
+ - name: dsh-bridge
119
+ config:
120
+ port: 3082 # 默认 3082
121
+ ```
122
+
123
+ ---
124
+
125
+ ## 开发
126
+
127
+ ```bash
128
+ git clone https://github.com/wenbin-wb/dsh-bridge.git
129
+ cd dsh-bridge
130
+ npm install
131
+
132
+ # 修改 client/index.js 后重新构建
133
+ npm run build:client
134
+
135
+ # 安装到 web profile 并重启 DSH
136
+ dsh plugin --profile web add .
137
+ ```
138
+
139
+ ---
140
+
141
+ ## 许可证
142
+
143
+ MIT © [wenbin-wb](https://github.com/wenbin-wb)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenbin_wb/dsh-bridge",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "DSH 多渠道接入桥:局域网二维码、自建隧道、机器人集成",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -40,9 +40,19 @@
40
40
  "dsh",
41
41
  "dsh-plugin",
42
42
  "remote",
43
+ "remote-access",
43
44
  "tunnel",
44
- "qr",
45
- "bot"
45
+ "cloudflare",
46
+ "mobile",
47
+ "smartphone",
48
+ "tablet",
49
+ "qr-code",
50
+ "qrcode",
51
+ "websocket",
52
+ "bot",
53
+ "wechat",
54
+ "qq",
55
+ "feishu"
46
56
  ],
47
57
  "dsh": {
48
58
  "bundle": {