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