@dsh-mobile/mobile-remote 3.4.0 → 3.4.1-beta.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/README.md +2 -2
- package/lib/config.js +3 -1
- package/package.json +4 -7
package/README.md
CHANGED
|
@@ -155,9 +155,9 @@ npx @deepseek-ai/dsh web
|
|
|
155
155
|
# breakReminder: { enabled: false } # 连续工作 2 小时的休息提醒。默认:App 里有这个开关(发过 breakReminder)才提醒;true = 不看 App 也提醒,false = 这台电脑永不提醒
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
### P2P
|
|
158
|
+
### P2P 直连(测试中)
|
|
159
159
|
|
|
160
|
-
手机与电脑之间可以尝试建立 WebRTC
|
|
160
|
+
手机与电脑之间可以尝试建立 WebRTC 直连(数据通道),不经中继转发流量,免费。从 3.4.1 起电脑端的 `werift` 随插件安装(约多 22 MB),`p2p.enabled` 默认打开,不用另外配置;要关掉就在上面的 `config` 里加 `p2p: { enabled: false }`(可选 `stun: ["stun:stun.cloudflare.com:3478"]`)。只有开了 P2P 的 App 才会发起直连,已发布的 App 不受影响。手机要用带中继地址的二维码配对(信令走中继房间,不需要订阅)。werift 万一加载失败,插件照常工作,只是不提供 P2P,`/bootstrap` 的 `features` 里也不会有 `p2p`。握手用的 offer / answer / 候选地址只经端到端加密的信令连接传输,不写日志;数据通道里会再跑一遍全新的 Noise 加密会话,只认已配对的手机。不涉及 TURN 中转:直连不成功时手机仍走原来的路径。
|
|
161
161
|
|
|
162
162
|
## 桌面设置页入口(客户端模块)
|
|
163
163
|
|
package/lib/config.js
CHANGED
|
@@ -184,9 +184,11 @@ export const Config = z.object({
|
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
|
|
187
|
+
|
|
188
|
+
|
|
187
189
|
p2p: z
|
|
188
190
|
.object({
|
|
189
|
-
enabled: z.boolean().default(
|
|
191
|
+
enabled: z.boolean().default(true),
|
|
190
192
|
stun: z.array(z.string()).default(["stun:stun.cloudflare.com:3478"]),
|
|
191
193
|
})
|
|
192
194
|
.default({}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-mobile/mobile-remote",
|
|
3
|
-
"version": "3.4.0",
|
|
3
|
+
"version": "3.4.1-beta.0",
|
|
4
4
|
"description": "DSH Mobile:把 DeepSeek Harness 变成随身控制台——手机远程发消息派活、看进度、收通知、审批决策、管理会话;配套 Flutter App(Android、iPhone / iPad)",
|
|
5
5
|
"homepage": "https://dsh.claud.ing/",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"dsh": ">=0.2.1-rc.2 <0.4.0-0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"qrcode": "^1.5.4"
|
|
58
|
+
"qrcode": "^1.5.4",
|
|
59
|
+
"werift": "0.27.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
62
|
"@deepseek-ai/dsh-credentials": ">=0.2.1-rc.2 <0.4.0",
|
|
@@ -63,15 +64,11 @@
|
|
|
63
64
|
"@deepseek-ai/dsh-sandbox-policy": ">=0.2.1-rc.2 <0.4.0",
|
|
64
65
|
"@deepseek-ai/dsh-scope": ">=0.2.1-rc.2 <0.4.0",
|
|
65
66
|
"@deepseek-ai/schemastery": ">=3.18.1",
|
|
66
|
-
"dsh-codex-connect": ">=0.1.0-alpha.4.5"
|
|
67
|
-
"werift": "0.27.0"
|
|
67
|
+
"dsh-codex-connect": ">=0.1.0-alpha.4.5"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"dsh-codex-connect": {
|
|
71
71
|
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"werift": {
|
|
74
|
-
"optional": true
|
|
75
72
|
}
|
|
76
73
|
},
|
|
77
74
|
"publishConfig": {
|