dsh-lan-guard 0.7.0 → 0.7.2
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/CHANGELOG.md +31 -0
- package/README.md +17 -14
- package/README.zh.md +17 -14
- package/package.json +11 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.2] — 2026-10-15(适配 DSH 0.2.1-alpha.3)
|
|
4
|
+
|
|
5
|
+
**代码零改动**,只更新兼容声明、开发依赖与文档。
|
|
6
|
+
|
|
7
|
+
- `dsh.compatibility.dshReleases` 增加 `0.2.1-alpha.3: compatible`。
|
|
8
|
+
- 开发依赖对齐 alpha.3 宿主包:`@deepseek-ai/dsh-host-webserver`、`@deepseek-ai/dsh-client-connection` → `0.2.1-alpha.3`,连带 `@deepseek-ai/cordis` → `4.0.5-alpha.2`、`@deepseek-ai/schemastery` → `3.18.5-alpha.2`,并补 `@deepseek-ai/dsh-scope`(`dsh-client-connection` 的 peer 要求)。
|
|
9
|
+
- peer 范围放宽到接纳官方随包分发的预发布版:`@deepseek-ai/cordis ^4.0.4 || >=4.0.5-alpha.1 <4.1.0`、`@deepseek-ai/schemastery ^3.18.4 || >=3.18.5-alpha.1 <4.0.0`。
|
|
10
|
+
- 换用 alpha.3 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
|
|
11
|
+
|
|
12
|
+
**为什么不需要改代码**(alpha.3 实测):
|
|
13
|
+
|
|
14
|
+
| 检查 | 结果 |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免警告 |
|
|
17
|
+
| 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
|
|
18
|
+
| 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
|
|
19
|
+
| 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200、客户端包加载 200 |
|
|
20
|
+
| 手机浮轨端到端 | 42 格、按住出卡片(标题/摘要正确)、滑动换轮、蓝条高亮、官方气泡隐藏,0 报错 |
|
|
21
|
+
|
|
22
|
+
## [0.7.1] — 2026-10-07(文档版:README 与发布说明改成人话)
|
|
23
|
+
|
|
24
|
+
功能与 `0.7.0` 完全相同,代码零改动。
|
|
25
|
+
|
|
26
|
+
**为什么发这一版**:npm 页面展示的是已发布包里的 README,改仓库文档不会影响 npm 页面,只有发一个新版本才能把新文档送上去。
|
|
27
|
+
|
|
28
|
+
**改了什么**:
|
|
29
|
+
|
|
30
|
+
- README 的兼容性表整列重写:`0.7.0` 那格从 815 字节(塞满 `focus()`、`position:fixed`、实测数值、测试条数)压到 67 字,同病的 `0.5.0`~`0.3.3` 一并收成一两句;补上此前漏记的 `0.6.0` 一行。
|
|
31
|
+
- 历次发布说明(`v0.1.0`~`v0.6.0`)全部重写:从 1373~6839 字降到 646~1141 字,每版 2–4 条要点,只讲用户能感知的变化;兼容版本号逐个对照各 tag 的 `package.json` 声明。
|
|
32
|
+
- 工程细节(根因、标识符、实测数据、测试条数)依旧只留在本文件里。
|
|
33
|
+
|
|
3
34
|
## [0.7.0] — 2026-10-07(手机端轮次浮轨:修掉 iPhone Chrome 错位,并做出 PC 同款「按住后滑动连续预览」)
|
|
4
35
|
|
|
5
36
|
三件事,都只围绕 `mobileTurnRail`(默认关),不动官方逻辑:
|
package/README.md
CHANGED
|
@@ -148,23 +148,26 @@ The plugin reads its config from its Cordis entry. **Every key has a usable defa
|
|
|
148
148
|
|
|
149
149
|
## Compatibility
|
|
150
150
|
|
|
151
|
-
Current version: plugin **`0.7.
|
|
151
|
+
Current version: plugin **`0.7.2`**, compatible with DeepSeek Harness **`0.2.1-alpha.3`**. Each row below is one plugin release: the DSH versions it was verified against, and what that release did.
|
|
152
152
|
|
|
153
153
|
| Plugin | Verified DeepSeek Harness | What this version is |
|
|
154
154
|
| --- | --- | --- |
|
|
155
|
-
| **`0.7.
|
|
156
|
-
| **`0.
|
|
157
|
-
| **`0.
|
|
158
|
-
| **`0.
|
|
159
|
-
| **`0.
|
|
160
|
-
| **`0.4.
|
|
161
|
-
| **`0.4.
|
|
162
|
-
| **`0.4.
|
|
163
|
-
| **`0.4.
|
|
164
|
-
| **`0.
|
|
165
|
-
| **`0.
|
|
166
|
-
| **`0.
|
|
167
|
-
| **`0.3.
|
|
155
|
+
| **`0.7.2`** | **`0.2.1-alpha.3`**, `0.2.1-alpha.1`, `0.2.0-rc.2`, `0.2.0-rc.1`, `0.1.7-rc.2` | Keeps up with DSH `0.2.1-alpha.3`: compatibility statement only, no code change. |
|
|
156
|
+
| **`0.7.1`** | **`0.2.1-alpha.1`**, `0.2.0-rc.2`, `0.2.0-rc.1`, `0.1.7-rc.2` | Documentation release: the README and past release notes were rewritten in plain language. Behaviour is identical to 0.7.0. |
|
|
157
|
+
| **`0.7.0`** | **`0.2.1-alpha.1`**, `0.2.0-rc.2`, `0.2.0-rc.1`, `0.1.7-rc.2` | The phone turn rail finally works: no more drifting card, and previews follow your finger while you hold and slide (off by default). Blank pages after a restart are fixed too. |
|
|
158
|
+
| **`0.6.0`** | **`0.2.1-alpha.1`**, **`0.2.0-rc.2`**, `0.2.0-rc.1`, `0.1.7-rc.2` | Fixed "you can see the rail but not its content" on a phone: holding a tick for ~0.3s now opens a card with that turn's prompt and reply. |
|
|
159
|
+
| **`0.5.0`** | **`0.2.1-alpha.1`**, **`0.2.0-rc.2`**, `0.2.0-rc.1`, `0.1.7-rc.2` | Keeps up with the new DSH release (declaration only) and adds the phone turn rail, off by default. |
|
|
160
|
+
| **`0.4.6`** | **`0.2.0-rc.2`**, **`0.2.0-rc.1`**, `0.1.7-rc.2` | Keeps up with DSH 0.2.0-rc.2: declaration only, plus confirmation that the old mobile scroll compensation is no longer needed. |
|
|
161
|
+
| **`0.4.5`** | **`0.2.0-rc.1`**, `0.1.7-rc.2` | Fixes long sessions that still would not scroll when the transcript hydrated a beat late and the fix stopped early. |
|
|
162
|
+
| **`0.4.4`** | **`0.2.0-rc.1`**, `0.1.7-rc.2` | Fixes iOS sessions opening away from the newest message and barely dragging. |
|
|
163
|
+
| **`0.4.3`** | **`0.2.0-rc.1`**, `0.1.7-rc.2`, `0.1.7-rc.1` | A different approach: repair the mobile height chain instead of patching the content layer, and drop the self-made back-to-bottom button. |
|
|
164
|
+
| **`0.4.2`** | `0.1.7-rc.2` | Brings back DSH's own back-to-bottom button and fixes the grey sidebar it fought with. |
|
|
165
|
+
| **`0.4.1`** | `0.1.7-rc.2` | The first mobile scroll fix: it only acts on pages that really cannot scroll, and adds the ?lgdiag=1 report. |
|
|
166
|
+
| **`0.4.0`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | The phone connection stops dropping (the proxy answers DSH's heartbeats), plus a disconnect watchdog and a connection check-up. |
|
|
167
|
+
| **`0.3.6`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | Add a workspace over LAN, and fix remote device management and a few UI problems. |
|
|
168
|
+
| **`0.3.5`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | http on the TLS port now redirects to https and logs it, and deleting a device no longer locks the browser out. |
|
|
169
|
+
| **`0.3.4`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | LAN devices can use DSH's own settings pages (on by default; it unlocks the UI and grants no new permissions). |
|
|
170
|
+
| **`0.3.3`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | Both first-visit steps are explained up front, expired links can sign in again, and the block-list wording matches the code. |
|
|
168
171
|
| **`0.3.2`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | Install and go: LAN-facing default + derived `dataDir`; Liquid Glass settings page at official sizes; single-line scrolling access URL |
|
|
169
172
|
| **`0.3.1`** | **`0.1.7-rc.2`**, `0.1.7-rc.1` | Verification release for `0.1.7-rc.2`: no code change, only compatibility metadata |
|
|
170
173
|
| `0.3.0` | `0.1.7-rc.1` | Device approval and permanent blocking; fixed the blank page when opening a shared `?auth=` link |
|
package/README.zh.md
CHANGED
|
@@ -149,23 +149,26 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
149
149
|
|
|
150
150
|
## 兼容性
|
|
151
151
|
|
|
152
|
-
当前版本:插件 **`0.7.
|
|
152
|
+
当前版本:插件 **`0.7.2`**,兼容 DeepSeek Harness **`0.2.1-alpha.3`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
|
|
153
153
|
|
|
154
154
|
| 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
|
|
155
155
|
| --- | --- | --- |
|
|
156
|
-
| **`0.7.
|
|
157
|
-
| **`0.
|
|
158
|
-
| **`0.
|
|
159
|
-
| **`0.
|
|
160
|
-
| **`0.
|
|
161
|
-
| **`0.4.
|
|
162
|
-
| **`0.4.
|
|
163
|
-
| **`0.4.
|
|
164
|
-
| **`0.4.
|
|
165
|
-
| **`0.
|
|
166
|
-
| **`0.
|
|
167
|
-
| **`0.
|
|
168
|
-
| **`0.3.
|
|
156
|
+
| **`0.7.2`** | **`0.2.1-alpha.3`**、`0.2.1-alpha.1`、`0.2.0-rc.2`、`0.2.0-rc.1`、`0.1.7-rc.2` | 跟上 DSH `0.2.1-alpha.3`:只更新兼容声明,代码没动。 |
|
|
157
|
+
| **`0.7.1`** | **`0.2.1-alpha.1`**、`0.2.0-rc.2`、`0.2.0-rc.1`、`0.1.7-rc.2` | 文档版:README 和历史发布说明改成人话,功能与 0.7.0 完全相同。 |
|
|
158
|
+
| **`0.7.0`** | **`0.2.1-alpha.1`**、`0.2.0-rc.2`、`0.2.0-rc.1`、`0.1.7-rc.2` | 手机端轮次浮轨终于好用:卡片不再跑偏,预览跟着手指走,按住刻度上下滑动就能看每一轮在说什么(默认关闭)。顺带修掉重启后手机白屏的问题。 |
|
|
159
|
+
| **`0.6.0`** | **`0.2.1-alpha.1`**、**`0.2.0-rc.2`**、`0.2.0-rc.1`、`0.1.7-rc.2` | 手机上「看得见刻度、看不到内容」的问题:改成按住刻度约 0.3 秒弹出卡片,显示那一轮的提问和回复摘要。 |
|
|
160
|
+
| **`0.5.0`** | **`0.2.1-alpha.1`**、**`0.2.0-rc.2`**、`0.2.0-rc.1`、`0.1.7-rc.2` | 跟上新版 DSH(只改兼容声明);新增手机端轮次浮轨,默认关闭。 |
|
|
161
|
+
| **`0.4.6`** | **`0.2.0-rc.2`**、**`0.2.0-rc.1`**、`0.1.7-rc.2` | 跟上 DSH 0.2.0-rc.2:只更新兼容声明,并确认旧的手机滚动补偿已经不需要了。 |
|
|
162
|
+
| **`0.4.5`** | **`0.2.0-rc.1`**、`0.1.7-rc.2` | 修长会话里正文晚一步加载时被判成「已经正常」、结果仍然滑不动的问题。 |
|
|
163
|
+
| **`0.4.4`** | **`0.2.0-rc.1`**、`0.1.7-rc.2` | 修 iOS 上打开会话不在最新、手指几乎拖不动的问题。 |
|
|
164
|
+
| **`0.4.3`** | **`0.2.0-rc.1`**、`0.1.7-rc.2`、`0.1.7-rc.1` | 换个修法:改移动端高度链,不再给内容层打补丁,并撤掉自建的「回到底部」按钮。 |
|
|
165
|
+
| **`0.4.2`** | `0.1.7-rc.2` | 找回官方自带的「回到底部」按钮,并修掉它和全屏遮罩打架、侧边栏发灰的问题。 |
|
|
166
|
+
| **`0.4.1`** | `0.1.7-rc.2` | 第一版手机滚动修复:只在真的滑不动的页面上动手,正常页面不碰;新增 ?lgdiag=1 诊断。 |
|
|
167
|
+
| **`0.4.0`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 手机长连接不再轻易掉线(代理替页面回心跳),并加入断线看门狗和连接体检。 |
|
|
168
|
+
| **`0.3.6`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 局域网下也能添加工作区,并修远程设备管理和几处界面问题。 |
|
|
169
|
+
| **`0.3.5`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 用 http 访问 TLS 端口会跳到 https 并留日志;删掉设备后旧 cookie 不再把浏览器锁死。 |
|
|
170
|
+
| **`0.3.4`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 局域网设备也能用官方设置页(默认开启,只是解锁界面,不新增权限)。 |
|
|
171
|
+
| **`0.3.3`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 首次访问的两道关提前说明;失效链接页可以重新登录;拉黑说明与实现对齐。 |
|
|
169
172
|
| **`0.3.2`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 装完即用:默认对外监听 + `dataDir` 自动推导;设置页液体玻璃与官方尺寸;访问地址改为单行滚动 |
|
|
170
173
|
| **`0.3.1`** | **`0.1.7-rc.2`**、`0.1.7-rc.1` | 针对 `0.1.7-rc.2` 的验证版:代码零改动,只更新兼容元数据 |
|
|
171
174
|
| `0.3.0` | `0.1.7-rc.1` | 设备批准与永久拉黑;修掉打开分享的 `?auth=` 链接时的空白页 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lan-guard",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "DSH web plugin: expose the official desktop Web UI to the local network through a gated reverse proxy, without touching DSH's own loopback binding.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"selfsigned": "^5.5.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@deepseek-ai/cordis": "^4.0.4",
|
|
29
|
+
"@deepseek-ai/cordis": "^4.0.4 || >=4.0.5-alpha.1 <4.1.0",
|
|
30
30
|
"@deepseek-ai/dsh-client-connection": ">=0.1.7-rc.1 <0.3.0",
|
|
31
31
|
"@deepseek-ai/dsh-host-webserver": ">=0.1.7-rc.1 <0.3.0",
|
|
32
|
-
"@deepseek-ai/schemastery": "^3.18.4"
|
|
32
|
+
"@deepseek-ai/schemastery": "^3.18.4 || >=3.18.5-alpha.1 <4.0.0"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"0.1.7-rc.1": "compatible",
|
|
72
72
|
"0.2.0-rc.1": "compatible",
|
|
73
73
|
"0.2.0-rc.2": "compatible",
|
|
74
|
-
"0.2.1-alpha.1": "compatible"
|
|
74
|
+
"0.2.1-alpha.1": "compatible",
|
|
75
|
+
"0.2.1-alpha.3": "compatible"
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
},
|
|
@@ -92,16 +93,17 @@
|
|
|
92
93
|
"reverse-proxy"
|
|
93
94
|
],
|
|
94
95
|
"devDependencies": {
|
|
95
|
-
"@deepseek-ai/cordis": "4.0.5-alpha.
|
|
96
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-alpha.
|
|
97
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.
|
|
98
|
-
"@deepseek-ai/schemastery": "3.18.5-alpha.
|
|
96
|
+
"@deepseek-ai/cordis": "4.0.5-alpha.2",
|
|
97
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-alpha.3",
|
|
98
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.3",
|
|
99
|
+
"@deepseek-ai/schemastery": "3.18.5-alpha.2",
|
|
99
100
|
"@types/node": "^26.2.0",
|
|
100
101
|
"@types/qrcode": "^1.5.6",
|
|
101
102
|
"@types/react": "^18.3.31",
|
|
102
103
|
"tsdown": "^0.22.14",
|
|
103
104
|
"typescript": "^7.0.2",
|
|
104
|
-
"vitest": "^4.1.11"
|
|
105
|
+
"vitest": "^4.1.11",
|
|
106
|
+
"@deepseek-ai/dsh-scope": "0.2.1-alpha.3"
|
|
105
107
|
},
|
|
106
108
|
"packageManager": "pnpm@10.33.1"
|
|
107
109
|
}
|