dsh-mobile 0.1.0-alpha.18 → 0.1.0-alpha.19
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 +9 -7
- package/README.md +10 -8
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<p align="center">Secure, live LAN access to DeepSeek Harness from a phone.</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://www.npmjs.com/package/dsh-mobile"><img src="https://img.shields.io/npm/v/dsh-mobile?label=npm&color=CB3837" alt="npm version"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/dsh-mobile"><img src="https://img.shields.io/npm/v/dsh-mobile?tag=alpha&label=npm&color=CB3837" alt="npm version"></a>
|
|
11
11
|
<a href="https://github.com/saya-ch/dsh-mobile/actions/workflows/ci.yml"><img src="https://github.com/saya-ch/dsh-mobile/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
12
12
|
<a href="https://github.com/saya-ch/dsh-mobile/releases"><img src="https://img.shields.io/badge/Android-10%2B-3DDC84?logo=android&logoColor=white" alt="Android 10+"></a>
|
|
13
13
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-0F172A" alt="Apache-2.0"></a>
|
|
@@ -26,7 +26,7 @@ DSH Mobile provides a dedicated phone layout that composes the native DeepSeek H
|
|
|
26
26
|
With an installed `dsh` command:
|
|
27
27
|
|
|
28
28
|
```powershell
|
|
29
|
-
dsh plugin --profile web add dsh-mobile
|
|
29
|
+
dsh plugin --profile web add dsh-mobile@alpha
|
|
30
30
|
dsh plugin --profile web exec dsh-mobile setup
|
|
31
31
|
dsh --profile web
|
|
32
32
|
```
|
|
@@ -35,27 +35,29 @@ From a DeepSeek Harness source checkout:
|
|
|
35
35
|
|
|
36
36
|
```powershell
|
|
37
37
|
corepack enable; pnpm install
|
|
38
|
-
pnpm dsh plugin --profile web add dsh-mobile
|
|
38
|
+
pnpm dsh plugin --profile web add dsh-mobile@alpha
|
|
39
39
|
pnpm dsh plugin --profile web exec dsh-mobile setup
|
|
40
40
|
pnpm dsh --profile web
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
`setup`
|
|
43
|
+
`setup` automatically selects and remembers the current LAN. Wi-Fi, hotspot, and IP changes normally recover automatically; use `--address 192.168.x.x` only when automatic selection fails.
|
|
44
44
|
|
|
45
|
-
Open **Mobile** in the lower-left DeepSeek Harness sidebar, enable
|
|
45
|
+
Open **Mobile Access** in the lower-left DeepSeek Harness sidebar, enable it, and select **Create and copy key**. In the Android app, tap **Scan**, select the computer, and enter the key. The paired device remains trusted until it is revoked, expires, or its app data is cleared.
|
|
46
46
|
|
|
47
47
|
## Connection options
|
|
48
48
|
|
|
49
49
|
| Client | Best for | Notes |
|
|
50
50
|
| --- | --- | --- |
|
|
51
51
|
| Android app | Everyday use | Automatic discovery, no browser chrome, private certificate pinning |
|
|
52
|
-
| Mobile browser | Temporary or cross-platform access | Open the HTTPS origin shown by
|
|
52
|
+
| Mobile browser | Temporary or cross-platform access | Open the HTTPS origin shown by Mobile Access |
|
|
53
53
|
|
|
54
54
|
Discovery uses mDNS/NSD, UDP announcements and queries, plus HTTPS probing. It publishes only the device name, address, port, protocol version, and stable `instanceId`. Keys and device tokens are never discoverable. IP changes do not require another Android pairing.
|
|
55
55
|
|
|
56
|
+
For a browser's first connection, open pairing on the computer, generate a key, then visit `/mobile-access/pair` on the shown HTTPS origin and enter the 43-character pairing code after the key's final dot. The browser stores a revocable device credential after pairing.
|
|
57
|
+
|
|
56
58
|
## Mobile UI
|
|
57
59
|
|
|
58
|
-
Phones use a dedicated layout shell
|
|
60
|
+
Phones use a dedicated layout shell, so the main layout no longer depends on the desktop three-column DOM. Native feature components retain a small mobile adaptation layer. You can freely redesign the page structure and extend its interactions through **Customize from DeepSeek Harness**. By default, the session sidebar becomes a drawer, details open as an overlay, settings use a single-column layout, and the native composer is adapted for touch. Adding a Workspace browses computer folders inside the phone page. Images can come from the phone or the computer.
|
|
59
61
|
|
|
60
62
|
The Android app is a thin Kotlin WebView shell and contains no frontend copy.
|
|
61
63
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<p align="center">在手机上安全、实时地使用电脑中的 DeepSeek Harness。</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://www.npmjs.com/package/dsh-mobile"><img src="https://img.shields.io/npm/v/dsh-mobile?label=npm&color=CB3837" alt="npm 版本"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/dsh-mobile"><img src="https://img.shields.io/npm/v/dsh-mobile?tag=alpha&label=npm&color=CB3837" alt="npm 版本"></a>
|
|
11
11
|
<a href="https://github.com/saya-ch/dsh-mobile/actions/workflows/ci.yml"><img src="https://github.com/saya-ch/dsh-mobile/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
12
12
|
<a href="https://github.com/saya-ch/dsh-mobile/releases"><img src="https://img.shields.io/badge/Android-10%2B-3DDC84?logo=android&logoColor=white" alt="Android 10+"></a>
|
|
13
13
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-0F172A" alt="Apache-2.0"></a>
|
|
@@ -40,7 +40,7 @@ DSH Mobile 提供专属移动端布局入口,并直接组合 DeepSeek Harness
|
|
|
40
40
|
已经安装 `dsh` 命令:
|
|
41
41
|
|
|
42
42
|
```powershell
|
|
43
|
-
dsh plugin --profile web add dsh-mobile
|
|
43
|
+
dsh plugin --profile web add dsh-mobile@alpha
|
|
44
44
|
dsh plugin --profile web exec dsh-mobile setup
|
|
45
45
|
dsh --profile web
|
|
46
46
|
```
|
|
@@ -49,17 +49,17 @@ dsh --profile web
|
|
|
49
49
|
|
|
50
50
|
```powershell
|
|
51
51
|
corepack enable; pnpm install
|
|
52
|
-
pnpm dsh plugin --profile web add dsh-mobile
|
|
52
|
+
pnpm dsh plugin --profile web add dsh-mobile@alpha
|
|
53
53
|
pnpm dsh plugin --profile web exec dsh-mobile setup
|
|
54
54
|
pnpm dsh --profile web
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
`setup`
|
|
57
|
+
`setup` 会自动选择并记住当前局域网。切换 Wi-Fi、热点或 IP 后通常会自动恢复;仅在自动选择失败时使用 `--address 192.168.x.x`。
|
|
58
58
|
|
|
59
59
|
启动后:
|
|
60
60
|
|
|
61
|
-
1. 在 DeepSeek Harness
|
|
62
|
-
2.
|
|
61
|
+
1. 在 DeepSeek Harness 左下角打开“移动访问”,确认功能已开启。
|
|
62
|
+
2. 点击“生成并复制密钥”。
|
|
63
63
|
3. Android App 点击“扫描”,选择电脑并输入密钥。
|
|
64
64
|
4. 配对完成后会建立持久设备信任,以后打开 App 无需重复输入。
|
|
65
65
|
|
|
@@ -70,15 +70,17 @@ pnpm dsh --profile web
|
|
|
70
70
|
| 方式 | 适合场景 | 说明 |
|
|
71
71
|
| --- | --- | --- |
|
|
72
72
|
| Android App | 日常使用 | 自动发现、无浏览器栏、App 内私有证书固定 |
|
|
73
|
-
| 手机浏览器 | 临时或跨平台访问 |
|
|
73
|
+
| 手机浏览器 | 临时或跨平台访问 | 打开“移动访问”卡片显示的 HTTPS 地址 |
|
|
74
74
|
|
|
75
75
|
Android 同时使用 mDNS/NSD、UDP 公告、主动 UDP 查询和 HTTPS 探测发现 DeepSeek Harness。发现只广播设备名、地址、端口、协议版本和稳定 `instanceId`,不会广播密钥或令牌。
|
|
76
76
|
|
|
77
77
|
App 配对后保存可撤销的设备凭据和私有证书信任;Wi-Fi、热点或 DHCP 导致 IP 变化时不需要重新配对。手机浏览器不能使用 App 的私有信任,因此需要浏览器本身信任该 HTTPS 证书。
|
|
78
78
|
|
|
79
|
+
新浏览器首次访问时,在电脑端开启配对并生成密钥,然后打开 HTTPS 地址中的 `/mobile-access/pair`,输入密钥最后一个点号后的 43 位配对码。配对完成后,浏览器会保存可撤销的设备凭据。
|
|
80
|
+
|
|
79
81
|
## 移动端界面
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
手机端使用插件自带的独立布局外壳,主布局不再依赖桌面三栏 DOM;原生功能组件保留少量移动端适配。你也可以通过“自定义移动布局与功能”继续调整页面结构并扩展交互:
|
|
82
84
|
|
|
83
85
|
- 左上角打开工作区与会话抽屉。
|
|
84
86
|
- 对话、轨迹、工具详情和 Session log 保持原有能力。
|