dsh-lan-guard 0.4.5 → 0.4.6
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 +24 -0
- package/README.md +5 -4
- package/README.zh.md +5 -4
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.6] — 2026-10-01(兼容 DeepSeek Harness `0.2.0-rc.2`)
|
|
4
|
+
|
|
5
|
+
**结论:仅声明,零代码。** `0.2.0-rc.1 → 0.2.0-rc.2` 之间,本插件用到的宿主接口面没有发生任何变化:
|
|
6
|
+
|
|
7
|
+
| 本插件用到的接口 | `0.2.0-rc.2` 状态 |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `webServer.register(route)` / `webServer.tapIndex(transform)` | 签名不变 |
|
|
10
|
+
| `connection.authenticatedUrl(baseUrl)` / `connection.requestRejection(request)` | 签名不变 |
|
|
11
|
+
| `slots.inject` / `slots.register`、`settings.section` seat | 不变 |
|
|
12
|
+
|
|
13
|
+
**依据**:上游 `0.2.0-rc.1..0.2.0-rc.2` 的 diff 中,`packages/host/webserver`、`packages/client/connection`、`packages/client/ui-slots`、`packages/client/ui-settings`、`packages/client/ui-layout` **只有 `package.json` 里的版本号改动**;唯一一处源码改动在 `packages/client/ui-renderer/src/client/scoped-slots.tsx`(把 `nextAncestors` 提到 `useMemo` 里,修 React hooks 调用顺序),与本插件无关。`devDependencies` 里的两个宿主包已升到 `0.2.0-rc.2`,类型检查与 **359** 个用例全部通过。
|
|
14
|
+
|
|
15
|
+
**移动端裁剪补偿在 `0.2.0-rc.2` 上不再介入**:`0.2.0-rc.1` 那个「官方滚动层内部有一层 `overflow:hidden` 且高度被锁死」的回归已被上游修掉。
|
|
16
|
+
|
|
17
|
+
| | `0.2.0-rc.1`(0.4.4/0.4.5 实测) | `0.2.0-rc.2`(本次实测) |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| 滚动层内部被裁的层 | 1(`EvIC1a_frame`,796 高) | **0** |
|
|
20
|
+
| 官方滚动层 client / scroll | 668 / 1004 | 736 / 93079 |
|
|
21
|
+
| 可滚范围 | **336px** | **92343px** |
|
|
22
|
+
|
|
23
|
+
`?lgdiag=1` 的诊断日志同步印证:补偿脚本的每一轮都落在 `clipping=0` → `ineffective -> reverted (stock page)` 或 `official scroll layer works`,**从不写入任何内联样式**(`html` 上只剩 `color-scheme`,`#root` 为空)。因此 `mobileScrollFix` 保留、默认仍开:它在 `0.2.0-rc.2` 上零副作用,在 `0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1` 上仍是必需的。
|
|
24
|
+
|
|
25
|
+
**窄屏右侧栏在 `0.2.0-rc.2` 上验证正常**(iPhone 视口 390×844):点会话头部的「展开右侧栏」后按钮消失、面板铺满视口,可见面积 **100%**、屏幕正中命中面板内部;`http://127.0.0.1:3080/` 直连与经代理的 `https://<主机>:3081/` 逐项一致。
|
|
26
|
+
|
|
3
27
|
## [0.4.5] — 2026-09-29(长会话延迟挂载时,裁剪补偿不再提前收工)
|
|
4
28
|
|
|
5
29
|
**现象**:0.4.4 之后,部分长会话在手机上依旧「只有一小段、拖不到底」,而同一条会话在宽屏/桌面完全正常。
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://github.com/idoall/dsh-lan-guard/actions/workflows/ci.yml"><img src="https://github.com/idoall/dsh-lan-guard/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/dsh-lan-guard"><img src="https://img.shields.io/npm/v/dsh-lan-guard?label=npm&color=CB3837" alt="npm version"></a>
|
|
8
8
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0F172A" alt="MIT"></a>
|
|
9
|
-
<img src="https://img.shields.io/badge/DSH-0.
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.0--rc.2-4B6BFB" alt="DSH 0.2.0-rc.2">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">English | <a href="README.zh.md">中文</a></p>
|
|
@@ -49,7 +49,7 @@ Requirements:
|
|
|
49
49
|
|
|
50
50
|
- DeepSeek Harness with a Web profile
|
|
51
51
|
- Node.js 20 or newer
|
|
52
|
-
- Verified DeepSeek Harness: `0.
|
|
52
|
+
- Verified DeepSeek Harness: `0.2.0-rc.2`
|
|
53
53
|
|
|
54
54
|
Install from npm:
|
|
55
55
|
|
|
@@ -147,10 +147,11 @@ The plugin reads its config from its Cordis entry. **Every key has a usable defa
|
|
|
147
147
|
|
|
148
148
|
## Compatibility
|
|
149
149
|
|
|
150
|
-
Current version: plugin **`0.4.
|
|
150
|
+
Current version: plugin **`0.4.6`**; compatible with DeepSeek Harness **`0.2.0-rc.2`** (declaration only, zero code) — that release fixed the `0.2.0-rc.1` transcript-clipping regression, so the mobile clip compensation no longer engages (it stays for older releases).
|
|
151
151
|
|
|
152
152
|
| Plugin | Verified DeepSeek Harness | What this version is |
|
|
153
153
|
| --- | --- | --- |
|
|
154
|
+
| **`0.4.6`** | **`0.2.0-rc.2`**, **`0.2.0-rc.1`**, `0.1.7-rc.2` | Verification release for `0.2.0-rc.2`: zero code changes, compatibility metadata only (`dsh.compatibility.dshReleases` gains `0.2.0-rc.2`), plus both host devDependencies raised to `0.2.0-rc.2` and the type check and full suite re-run. Upstream changed only version numbers between `rc.1` and `rc.2` (the sole source edit is a hooks-ordering fix in `ui-renderer`, unrelated to this plugin), so the plugin runs on `rc.2` unchanged; measurements also confirm the mobile clip compensation now has nothing to act on (clipped layers 1 → **0**, scroll range 336px → **92343px**; every polling round reverts wholesale and writes no inline style) |
|
|
154
155
|
| **`0.4.5`** | **`0.2.0-rc.1`**, `0.1.7-rc.2` | Long transcripts hydrate after the official scroller has already picked up a small scroll range; the mobile clip compensation treated that intermediate state as healthy and stopped, so a late `overflow:hidden` layer was never released (measured on device: 336px of scroll range with 1 clipped layer inside the scroller). It now keeps looking inside the existing polling window and releases the late layer — 336px → 6889px, 1 clipped layer → 0, official "back to bottom" still on screen |
|
|
155
156
|
| **`0.4.4`** | **`0.2.0-rc.1`**, `0.1.7-rc.2` | iOS session scrolling on DSH `0.2.0-rc.1`: an inner `overflow:hidden` layer with a locked height clipped the conversation (measured on device: 21083px of content behind a 336px scroll range), so a session did not open at the newest message and barely dragged. `mobileScrollFix` now grows that inner layer and drops its scroll-container role, restoring 20675px — verified on device with the composer still pinned and the official "back to bottom" button back in place |
|
|
156
157
|
| **`0.4.3`** | **`0.2.0-rc.1`**, `0.1.7-rc.2`, `0.1.7-rc.1` | Direction change: fix the mobile **height chain** instead of patching `overflow` — a definite height for `html/body/#root`, `100dvh` on the shell and `min-height:0` along the clipping chain, self-checked and reverted wholesale when the official scroll layer still does not scroll; removes the self-made "back to bottom" button and every `overflow-y`/`-webkit-overflow-scrolling` patch; declares DSH `0.2.0-rc.1` and widens the `dsh`/peer ranges to `<0.3.0` |
|
|
@@ -168,7 +169,7 @@ Current version: plugin **`0.4.5`**; the mobile clip compensation no longer give
|
|
|
168
169
|
| `0.1.1` | `0.1.7-rc.1` | Documentation release: bilingual user READMEs |
|
|
169
170
|
| `0.1.0` | `0.1.7-rc.1` | First release: gated reverse proxy, self-signed HTTPS, device pairing, settings page, QR access |
|
|
170
171
|
|
|
171
|
-
- Declared range `>=0.1.7-rc.1 <0.3.0` (`dsh.engines.dsh`); verified releases: `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`. DSH versions not listed are **unverified** — verify them yourself before use. The upper bound was widened from `<0.2.0` in `0.4.3` because profile load refuses a bundle whose range excludes the running release, and a plain `<0.2.0` would exclude the `0.2.0` stable.
|
|
172
|
+
- Declared range `>=0.1.7-rc.1 <0.3.0` (`dsh.engines.dsh`); verified releases: `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`. DSH versions not listed are **unverified** — verify them yourself before use. The upper bound was widened from `<0.2.0` in `0.4.3` because profile load refuses a bundle whose range excludes the running release, and a plain `<0.2.0` would exclude the `0.2.0` stable.
|
|
172
173
|
- Host/client interfaces this plugin uses: `webServer.register` / `webServer.tapIndex` (indexTaps), `connection.requestRejection`, `connection.authenticatedUrl`, the additive `settings.section` seat, `@deepseek-ai/schemastery`, and `profileContext` (for deriving the default data directory).
|
|
173
174
|
- **Breaking default change (from `0.3.2`)**: `listenHost` now defaults to `0.0.0.0` instead of `127.0.0.1`, so one restart after install is enough; `0.3.1` and earlier default to loopback only. The gate and self-signed TLS defaults are unchanged (with no password the gate still refuses every device). See the [CHANGELOG](CHANGELOG.md).
|
|
174
175
|
- **`0.4.0` verification status**: all three changes carry measurements, not just specs.
|
package/README.zh.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://github.com/idoall/dsh-lan-guard/actions/workflows/ci.yml"><img src="https://github.com/idoall/dsh-lan-guard/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/dsh-lan-guard"><img src="https://img.shields.io/npm/v/dsh-lan-guard?label=npm&color=CB3837" alt="npm 版本"></a>
|
|
8
8
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0F172A" alt="MIT"></a>
|
|
9
|
-
<img src="https://img.shields.io/badge/DSH-0.
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.0--rc.2-4B6BFB" alt="DSH 0.2.0-rc.2">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center"><a href="README.md">English</a> | 中文</p>
|
|
@@ -49,7 +49,7 @@ DSH 的 Web 界面只监听 `127.0.0.1`,而官方明确拒绝绑定 `0.0.0.0`
|
|
|
49
49
|
|
|
50
50
|
- 带 Web profile 的 DeepSeek Harness
|
|
51
51
|
- Node.js 20 或更新
|
|
52
|
-
- 已验证的 DeepSeek Harness:`0.
|
|
52
|
+
- 已验证的 DeepSeek Harness:`0.2.0-rc.2`
|
|
53
53
|
|
|
54
54
|
从 npm 安装:
|
|
55
55
|
|
|
@@ -147,10 +147,11 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
147
147
|
|
|
148
148
|
## 兼容性
|
|
149
149
|
|
|
150
|
-
当前版本:插件 **`0.4.
|
|
150
|
+
当前版本:插件 **`0.4.6`**;兼容 DeepSeek Harness **`0.2.0-rc.2`**(仅声明,零代码)——该版本修掉了 `0.2.0-rc.1` 的会话裁剪回归,移动端裁剪补偿因此不再介入(保留以兼容旧版本)。
|
|
151
151
|
|
|
152
152
|
| 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
|
|
153
153
|
| --- | --- | --- |
|
|
154
|
+
| **`0.4.6`** | **`0.2.0-rc.2`**、**`0.2.0-rc.1`**、`0.1.7-rc.2` | 针对 `0.2.0-rc.2` 的验证版:代码零改动,只更新兼容元数据(`dsh.compatibility.dshReleases` 补 `0.2.0-rc.2`),并把两个宿主 devDependency 升到 `0.2.0-rc.2` 后重跑类型检查与全部用例。上游在 `rc.1 → rc.2` 之间只动了版本号(唯一源码改动是 `ui-renderer` 的 hooks 顺序修复,与本插件无关),因此本插件在 `rc.2` 上零改动可用;同时实测确认移动端裁剪补偿在 `rc.2` 上已无作用对象(被裁层 1 → **0**,可滚范围 336px → **92343px**,脚本每轮自检后整体撤销、不写任何内联样式) |
|
|
154
155
|
| **`0.4.5`** | **`0.2.0-rc.1`**、`0.1.7-rc.2` | 长会话的正文是在官方滚动层拿到少量可滚范围**之后**才挂载的,旧逻辑把这个中间态当成「已正常」收工,晚出现的 `overflow:hidden` 层再也没人放行(真机实测:可滚范围 336px、滚动层内部仍有 1 层被裁)。现在改为在既有轮询窗口内继续侦测并放行迟到的裁剪层:可滚范围 336px → 6889px,被裁层 1 → 0,官方「回到底部」仍在屏内 |
|
|
155
156
|
| **`0.4.4`** | **`0.2.0-rc.1`**、`0.1.7-rc.2` | 修好 DSH `0.2.0-rc.1` 上的 iOS 会话滚动:官方滚动层内部有一层 `overflow:hidden` 且高度锁死,把会话内容裁掉(真机实测:21083px 的内容只换来 336px 可滚范围),表现为打开会话不在最新、手指几乎拖不动。`mobileScrollFix` 现在让该层长高并脱离滚动容器身份,可滚范围恢复到 20675px;真机验收同时确认输入框仍吸底、官方「回到底部」按钮回到原位 |
|
|
156
157
|
| **`0.4.3`** | **`0.2.0-rc.1`**、`0.1.7-rc.2`、`0.1.7-rc.1` | 方向修正:不再给内容层打 `overflow` 补丁,改修移动端**高度链**——给 `html/body/#root` 确定高度、shell 用 `100dvh`、沿被裁层补 `min-height:0`,并自检「官方滚动层真的能滚」否则整体回退;移除自建「回到底部」按钮与全部 `overflow-y`/`-webkit-overflow-scrolling` 补丁;声明 DSH `0.2.0-rc.1` 并把 `dsh`/peer 范围放宽到 `<0.3.0` |
|
|
@@ -168,7 +169,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
168
169
|
| `0.1.1` | `0.1.7-rc.1` | 文档版:中英双语用户 README |
|
|
169
170
|
| `0.1.0` | `0.1.7-rc.1` | 首个版本:门禁反向代理、自签 HTTPS、设备配对、设置页、扫码访问 |
|
|
170
171
|
|
|
171
|
-
- 声明范围 `>=0.1.7-rc.1 <0.3.0`(`dsh.engines.dsh`);已验证版本:`0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
172
|
+
- 声明范围 `>=0.1.7-rc.1 <0.3.0`(`dsh.engines.dsh`);已验证版本:`0.1.7-rc.1`、`0.1.7-rc.2`、`0.2.0-rc.1`、`0.2.0-rc.2`。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
172
173
|
- 本插件用到的宿主/客户端接口:`webServer.register` / `webServer.tapIndex`(indexTaps)、`connection.requestRejection`、`connection.authenticatedUrl`、追加型 `settings.section` seat、`@deepseek-ai/schemastery`,以及 `profileContext`(用于推导默认数据目录)。
|
|
173
174
|
- **破坏性默认值变更(`0.3.2` 起)**:`listenHost` 默认由 `127.0.0.1` 改为 `0.0.0.0`,装完重启一次即可用;`0.3.1` 及更早默认仅回环。门禁与自签 TLS 的默认值未变(未设密码仍拒绝所有设备)。详见 [CHANGELOG](CHANGELOG.md)。
|
|
174
175
|
- **`0.4.0` 的验证状态**:三处改动都做了实测,不只跑用例。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lan-guard",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
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",
|
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
"dshReleases": {
|
|
70
70
|
"0.1.7-rc.2": "compatible",
|
|
71
71
|
"0.1.7-rc.1": "compatible",
|
|
72
|
-
"0.2.0-rc.1": "compatible"
|
|
72
|
+
"0.2.0-rc.1": "compatible",
|
|
73
|
+
"0.2.0-rc.2": "compatible"
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
},
|
|
@@ -91,8 +92,8 @@
|
|
|
91
92
|
],
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
94
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
95
|
-
"@deepseek-ai/dsh-host-webserver": "0.
|
|
95
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
|
|
96
97
|
"@deepseek-ai/schemastery": "^3.18.4",
|
|
97
98
|
"@types/node": "^26.2.0",
|
|
98
99
|
"@types/qrcode": "^1.5.6",
|