dsh-lan-guard 0.7.9 → 0.7.10
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 +10 -0
- package/README.md +9 -8
- package/README.zh.md +9 -8
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.10] — 2026-11-04(适配 DSH 0.2.2-rc.1)
|
|
4
|
+
|
|
5
|
+
- 兼容声明新增 `0.2.2-rc.1`,支持范围仍为 `>=0.1.7-rc.1 <0.3.0`;DSH 开发依赖与 scope 同步 rc.1,Cordis 4.1.0、Schemastery 3.19.0,现有 peer 范围已覆盖,无需放宽或豁免。
|
|
6
|
+
- 对照 alpha.3,webserver、connection、scope、Cordis、Schemastery 的非 map 构建与类型文件逐字节一致,核心宿主接口契约不变。
|
|
7
|
+
- 运行时源码不变;新版依赖下构建的 `lib/index.js`、`index.d.ts`、`client.js`、`client.js.map` 与已发布 0.7.9 包逐字节一致。
|
|
8
|
+
- rc.1 类型检查、23 个测试文件 / 390 项用例通过;当前 rc.1 实例的代理首页、页面补丁注入、管理配置与设备接口只读检查正常。
|
|
9
|
+
- 两版 README 徽章、当前版本、兼容表、14 个历史验证版本清单、发布 tag 示例同步 0.7.10 / 0.2.2-rc.1;双语 Release 与 npm 包内容一并检查。
|
|
10
|
+
- npm 渠道核对(2026-11-04):next=0.2.2-rc.1、alpha=0.2.2-alpha.3、latest=0.2.1-rc.5;不声明 0.2.1-rc.5 已验证。
|
|
11
|
+
- 本次未重做浏览器交互、完整 LAN/WebSocket、手机触摸/锁屏/语音验收,不沿用 alpha.3 的浏览器测量作为 rc.1 实测;不修改 profile、其他插件或自动安装重启。
|
|
12
|
+
|
|
3
13
|
## [0.7.9] — 2026-11-03(适配 DSH 0.2.2-alpha.3)
|
|
4
14
|
|
|
5
15
|
- 修复 alpha.3 窄屏 transformed sidebar 把远程目录弹层裁成侧栏宽度的问题:使用原生 `dialog.showModal()` 进入浏览器顶层,DOM 仍归原 slot/React 所有,卸载关闭、Escape 交给 owner,busy 时不取消。
|
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.2.2--
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.2--rc.1-4B6BFB" alt="DSH 0.2.2-rc.1">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">English | <a href="README.zh.md">中文</a></p>
|
|
@@ -49,8 +49,8 @@ Requirements:
|
|
|
49
49
|
|
|
50
50
|
- DeepSeek Harness with a Web profile
|
|
51
51
|
- Node.js 20 or newer
|
|
52
|
-
- Verified DeepSeek Harness: `0.2.2-
|
|
53
|
-
- Registry channels checked on 2026-11-
|
|
52
|
+
- Verified DeepSeek Harness: `0.2.2-rc.1` (API review, current dependency type checks and automated regression; read-only checks on the running rc.1 instance confirm the proxy entry, index injection and management endpoints. Browser interaction, full LAN/WebSocket and phone acceptance have not been repeated for rc.1; the alpha.3 browser measurements belong to the previous release).
|
|
53
|
+
- Registry channels checked on 2026-11-04: `next` = `0.2.2-rc.1`, `alpha` = `0.2.2-alpha.3`, `latest` = `0.2.1-rc.5`. This release verifies `0.2.2-rc.1`; `0.2.1-rc.5` is not included in the verified list.
|
|
54
54
|
|
|
55
55
|
Install from npm:
|
|
56
56
|
|
|
@@ -149,11 +149,12 @@ The plugin reads its config from its Cordis entry. **Every key has a usable defa
|
|
|
149
149
|
|
|
150
150
|
## Compatibility
|
|
151
151
|
|
|
152
|
-
Current version: plugin **`0.7.
|
|
152
|
+
Current version: plugin **`0.7.10`**, compatible with DeepSeek Harness **`0.2.2-rc.1`**. Each row below is one plugin release: the DSH versions it was verified against, and what that release did.
|
|
153
153
|
|
|
154
154
|
| Plugin | Verified DeepSeek Harness | What this version is |
|
|
155
155
|
| --- | --- | --- |
|
|
156
|
-
| **`0.7.
|
|
156
|
+
| **`0.7.10`** (latest) | **`0.2.2-rc.1`**; earlier verified releases listed below | Compatibility release for rc.1 with Cordis 4.1.0 / Schemastery 3.19.0 development dependencies; no runtime source changes. |
|
|
157
|
+
| **`0.7.9`** (published) | **`0.2.2-alpha.3`**; earlier verified releases listed below | Fixes the remote directory picker being clipped by alpha.3's mobile sidebar drawer; updates compatibility metadata and development dependencies. Corrects stale security and mobile-rail descriptions in both READMEs. |
|
|
157
158
|
| **`0.7.8`** (published) | **`0.2.2-alpha.2`**, `0.2.1-rc.4`, `0.2.1-rc.3`, `0.2.1-rc.2`, `0.2.1-alpha.5`, `0.2.1-alpha.4`, `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`, `0.1.7-rc.1` | Keeps up with DSH `0.2.2-alpha.2`: the new UI localises the turn navigator's label into eight languages, so the phone rail now finds it without depending on copy (with a structural fallback for languages added later); the rest is compatibility statements and docs. |
|
|
158
159
|
| **`0.7.7`** (published) | **`0.2.1-rc.4`**, `0.2.1-rc.3`, `0.2.1-rc.2`, `0.2.1-alpha.5`, `0.2.1-alpha.4`, `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`, `0.1.7-rc.1` | Keeps up with DSH `0.2.1-rc.4`: this upstream release only bumps version strings, and the host interfaces and types are byte-identical to rc.3; no plugin runtime code changed. |
|
|
159
160
|
| **`0.7.6`** (published) | **`0.2.1-rc.3`**, `0.2.1-rc.2`, `0.2.1-alpha.5`, `0.2.1-alpha.4`, `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`, `0.1.7-rc.1` | Compatibility release for DSH `0.2.1-rc.3`; no runtime code change. API/type/automated checks only; phone/browser acceptance pending. |
|
|
@@ -183,7 +184,7 @@ Current version: plugin **`0.7.9`**, compatible with DeepSeek Harness **`0.2.2-a
|
|
|
183
184
|
| `0.1.1` | `0.1.7-rc.1` | Documentation release: bilingual user READMEs |
|
|
184
185
|
| `0.1.0` | `0.1.7-rc.1` | First release: gated reverse proxy, self-signed HTTPS, device pairing, settings page, QR access |
|
|
185
186
|
|
|
186
|
-
- 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`, `0.2.1-alpha.1`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.2-alpha.2`, `0.2.2-alpha.3` (
|
|
187
|
+
- 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`, `0.2.1-alpha.1`, `0.2.1-alpha.3`, `0.2.1-alpha.4`, `0.2.1-alpha.5`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.2-alpha.2`, `0.2.2-alpha.3`, `0.2.2-rc.1` (14 releases; the `0.2.2-rc.1` verification scope is described above). 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.
|
|
187
188
|
- **New in 0.2.2, evaluated**: the per-Peer `webserver/index-inject` emit, `resource` routes and `readResource` are all new; this plugin does not use them — the first only affects fallback rendering, and the other two expose no client socket, while the gate and the "local only" policy depend on the remote address. What it *did* adopt is the multi-language UI: the phone rail now recognises all eight DSH languages, with a structural fallback for any language added later.
|
|
188
189
|
- 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).
|
|
189
190
|
- **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).
|
|
@@ -345,8 +346,8 @@ The client half registers into the official additive `settings.section` seat; th
|
|
|
345
346
|
Releases are tag-driven. Update `package.json`, move the matching CHANGELOG section out of `Unreleased`, write `release-notes/v<version>.md` with both language anchors, then push the release commit and tag:
|
|
346
347
|
|
|
347
348
|
```sh
|
|
348
|
-
git tag v0.7.
|
|
349
|
-
git push origin v0.7.
|
|
349
|
+
git tag v0.7.10
|
|
350
|
+
git push origin v0.7.10
|
|
350
351
|
```
|
|
351
352
|
|
|
352
353
|
The release workflow checks that the tag matches the `package.json` version and that the notes carry both anchors, then runs `pnpm run verify`, packs the plugin, publishes through npm trusted publishing (OIDC), and creates a GitHub Release with the tarball attached.
|
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.2.2--
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.2--rc.1-4B6BFB" alt="DSH 0.2.2-rc.1">
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center"><a href="README.md">English</a> | 中文</p>
|
|
@@ -49,8 +49,8 @@ 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.2.2-
|
|
53
|
-
- 2026-11-
|
|
52
|
+
- 已验证的 DeepSeek Harness:`0.2.2-rc.1`(接口审查、新版依赖类型检查与自动回归;另在运行 rc.1 的实例上只读核对代理入口、页面注入与管理接口。本次未重新进行 rc.1 浏览器交互、完整 LAN/WebSocket 与手机实机验收;alpha.3 的浏览器测量属于上一版验证)。
|
|
53
|
+
- 2026-11-04 核对 npm 渠道:`next` 为 `0.2.2-rc.1`,`alpha` 为 `0.2.2-alpha.3`,`latest` 为 `0.2.1-rc.5`。本次验证 `0.2.2-rc.1`;`0.2.1-rc.5` 不在已验证清单内。
|
|
54
54
|
|
|
55
55
|
从 npm 安装:
|
|
56
56
|
|
|
@@ -150,11 +150,12 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
150
150
|
|
|
151
151
|
## 兼容性
|
|
152
152
|
|
|
153
|
-
当前版本:插件 **`0.7.
|
|
153
|
+
当前版本:插件 **`0.7.10`**,兼容 DeepSeek Harness **`0.2.2-rc.1`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
|
|
154
154
|
|
|
155
155
|
| 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
|
|
156
156
|
| --- | --- | --- |
|
|
157
|
-
| **`0.7.
|
|
157
|
+
| **`0.7.10`** (latest) | **`0.2.2-rc.1`**;此前验证版本见下方清单 | rc.1 兼容版本,开发依赖同步 Cordis 4.1.0 / Schemastery 3.19.0;运行时源码不变。 |
|
|
158
|
+
| **`0.7.9`** (published) | **`0.2.2-alpha.3`**;此前验证版本见下方清单 | 修复 alpha.3 手机侧栏抽屉裁剪远程目录弹层的问题;同步兼容声明与开发依赖;校正两版 README 中过时的安全边界与手机浮轨说明。 |
|
|
158
159
|
| **`0.7.8`** (published) | **`0.2.2-alpha.2`**、`0.2.1-rc.4`、`0.2.1-rc.3`、`0.2.1-rc.2`、`0.2.1-alpha.5`、`0.2.1-alpha.4`、`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`、`0.1.7-rc.1` | 跟上 DSH `0.2.2-alpha.2`:新版界面把轮次导航的标签译成 8 种语言,手机浮轨改成不依赖文案的定位(并为将来新增语言留了结构化兜底);其余是兼容声明与文档。 |
|
|
159
160
|
| **`0.7.7`** (published) | **`0.2.1-rc.4`**、`0.2.1-rc.3`、`0.2.1-rc.2`、`0.2.1-alpha.5`、`0.2.1-alpha.4`、`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`、`0.1.7-rc.1` | 跟上 DSH `0.2.1-rc.4`:上游这次只改版本号,宿主接口与类型与 rc.3 逐字节一致;插件运行时代码不变。 |
|
|
160
161
|
| **`0.7.6`** (published) | **`0.2.1-rc.3`**、`0.2.1-rc.2`、`0.2.1-alpha.5`、`0.2.1-alpha.4`、`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`、`0.1.7-rc.1` | 跟上 DSH `0.2.1-rc.3`,运行时代码不变。仅完成接口、类型与自动检查;手机/浏览器验收待完成。 |
|
|
@@ -184,7 +185,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
184
185
|
| `0.1.1` | `0.1.7-rc.1` | 文档版:中英双语用户 README |
|
|
185
186
|
| `0.1.0` | `0.1.7-rc.1` | 首个版本:门禁反向代理、自签 HTTPS、设备配对、设置页、扫码访问 |
|
|
186
187
|
|
|
187
|
-
- 声明范围 `>=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`、`0.2.1-alpha.1`、`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4`、`0.2.2-alpha.2`、`0.2.2-alpha.3`(共
|
|
188
|
+
- 声明范围 `>=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`、`0.2.1-alpha.1`、`0.2.1-alpha.3`、`0.2.1-alpha.4`、`0.2.1-alpha.5`、`0.2.1-rc.2`、`0.2.1-rc.3`、`0.2.1-rc.4`、`0.2.2-alpha.2`、`0.2.2-alpha.3`、`0.2.2-rc.1`(共 14 个版本,`0.2.2-rc.1` 验证范围见上文)。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
188
189
|
- **0.2.2 新能力评估**:`webserver/index-inject` 的 per-Peer 注入、`resource` 路由与 `readResource` 都是 0.2.2 新增;本插件没有采用 —— 前者只影响 fallback 渲染,后两者拿不到客户端地址,而门禁和「仅本机」策略依赖远端地址。真正用上的是多语言:手机浮轨现在识别 DSH 全部 8 种界面语言,并对将来新增语言保留结构化兜底。
|
|
189
190
|
- 本插件用到的宿主/客户端接口:`webServer.register` / `webServer.tapIndex`(indexTaps)、`connection.requestRejection`、`connection.authenticatedUrl`、追加型 `settings.section` seat、`@deepseek-ai/schemastery`,以及 `profileContext`(用于推导默认数据目录)。
|
|
190
191
|
- **破坏性默认值变更(`0.3.2` 起)**:`listenHost` 默认由 `127.0.0.1` 改为 `0.0.0.0`,装完重启一次即可用;`0.3.1` 及更早默认仅回环。门禁与自签 TLS 的默认值未变(未设密码仍拒绝所有设备)。详见 [CHANGELOG](CHANGELOG.md)。
|
|
@@ -346,8 +347,8 @@ pnpm run verify # 类型检查 + 测试 + 构建 + pack dry-run
|
|
|
346
347
|
发版由 tag 驱动。更新 `package.json`、把对应 CHANGELOG 段落移出 `Unreleased`、编写带中英双锚点的 `release-notes/v<版本>.md` 后,推送发版提交与 tag:
|
|
347
348
|
|
|
348
349
|
```sh
|
|
349
|
-
git tag v0.7.
|
|
350
|
-
git push origin v0.7.
|
|
350
|
+
git tag v0.7.10
|
|
351
|
+
git push origin v0.7.10
|
|
351
352
|
```
|
|
352
353
|
|
|
353
354
|
发版工作流会校验 tag 与 `package.json` 版本一致、要求发布说明含中英双锚点,然后运行 `pnpm run verify`、打包插件、通过 npm trusted publishing(OIDC)发布,并创建附带 tarball 的 GitHub Release。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lan-guard",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
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",
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
"0.2.1-rc.3": "compatible",
|
|
81
81
|
"0.2.1-rc.4": "compatible",
|
|
82
82
|
"0.2.2-alpha.2": "compatible",
|
|
83
|
-
"0.2.2-alpha.3": "compatible"
|
|
83
|
+
"0.2.2-alpha.3": "compatible",
|
|
84
|
+
"0.2.2-rc.1": "compatible"
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
},
|
|
@@ -101,17 +102,17 @@
|
|
|
101
102
|
"reverse-proxy"
|
|
102
103
|
],
|
|
103
104
|
"devDependencies": {
|
|
104
|
-
"@deepseek-ai/cordis": "4.0
|
|
105
|
-
"@deepseek-ai/dsh-client-connection": "0.2.2-
|
|
106
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.2-
|
|
107
|
-
"@deepseek-ai/schemastery": "3.
|
|
105
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
106
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
|
|
108
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
108
109
|
"@types/node": "^26.2.0",
|
|
109
110
|
"@types/qrcode": "^1.5.6",
|
|
110
111
|
"@types/react": "^18.3.31",
|
|
111
112
|
"tsdown": "^0.22.14",
|
|
112
113
|
"typescript": "^7.0.2",
|
|
113
114
|
"vitest": "^4.1.11",
|
|
114
|
-
"@deepseek-ai/dsh-scope": "0.2.2-
|
|
115
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1"
|
|
115
116
|
},
|
|
116
117
|
"packageManager": "pnpm@10.33.1"
|
|
117
118
|
}
|