dsh-lan-guard 0.7.4 → 0.7.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 +33 -0
- package/README.md +8 -6
- package/README.zh.md +8 -6
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.6] — 2026-10-23(适配 DSH 0.2.1-rc.3)
|
|
4
|
+
|
|
5
|
+
插件运行时代码不变;同步兼容声明、开发依赖与发布文档。
|
|
6
|
+
|
|
7
|
+
- `dsh.compatibility.dshReleases` 增加 `0.2.1-rc.3: compatible`;原支持范围 `>=0.1.7-rc.1 <0.3.0` 保持不变。
|
|
8
|
+
- 开发依赖 `dsh-host-webserver`、`dsh-client-connection`、`dsh-scope` 与锁文件同步到 `0.2.1-rc.3`,使用新版真实类型完成检查与自动回归。
|
|
9
|
+
- 两版 README 已全文重新校对:徽章、安装要求、当前发布句、兼容表、10 个已验证版本的完整清单、发版 tag 示例;新版标为 latest,上一版标为 published。
|
|
10
|
+
- 版本门禁新增 EN/ZH 完整兼容清单与 package.json 逐项比对、latest 行与 tag 示例一致性检查;继续校验 npm 实际打包清单。发布后核对 registry latest、tarball 与工作区的文件清单、元数据及 SHA-256。
|
|
11
|
+
- 新版类型检查、23 个测试文件的 386 项用例、构建与打包门禁全部通过;重复构建的 4 个 `lib` 文件 SHA-256 完全一致。
|
|
12
|
+
- 新版 Host 接口与已安装 Client 契约完成兼容审查;Client Inspect 连接超时,手机/浏览器交互、布局与触控验收未完成。本版不把历史版本的端到端实测冒充为 rc.3 实测。
|
|
13
|
+
- 双语发布说明与本 CHANGELOG 随同一发布提交交付;不修改其他工作区插件或 profile 安装状态。
|
|
14
|
+
|
|
15
|
+
## [0.7.5] — 2026-10-17(适配 DSH 0.2.1-rc.2)
|
|
16
|
+
|
|
17
|
+
**代码零改动**,只更新兼容声明、开发依赖与文档;并把「npm 包内容」纳入发版门禁。
|
|
18
|
+
|
|
19
|
+
- `dsh.compatibility.dshReleases` 增加 `0.2.1-rc.2: compatible`。
|
|
20
|
+
- 开发依赖对齐 rc.2:`@deepseek-ai/dsh-host-webserver`、`@deepseek-ai/dsh-client-connection`、`@deepseek-ai/dsh-scope` → `0.2.1-rc.2`;随新宿主包的 peer 要求,`@deepseek-ai/cordis` → `4.0.5`、`@deepseek-ai/schemastery` → `3.18.5`(这两个从 alpha 预发布版转为**稳定版**)。peer 范围未变,仍同时覆盖 alpha 线与 rc 线。
|
|
21
|
+
- README 中英双语:徽章、「已验证的 DeepSeek Harness」、当前版本行、兼容表、已验证清单五处同步到 `0.7.5` / `0.2.1-rc.2`。
|
|
22
|
+
- **门禁扩展**:`scripts/check-versions.mjs` 现在还会跑 `npm pack --dry-run`,校验「`package.json#files` 里列的每个文件确实会被打包」「package.json / 中英 README / CHANGELOG / LICENSE / cordis.patch.yml / lib 三件套都在包里」「包内版本号与仓库一致」。
|
|
23
|
+
- 换用 rc.2 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
|
|
24
|
+
|
|
25
|
+
**核查结果**(rc.2 实测):
|
|
26
|
+
|
|
27
|
+
| 检查 | 结果 |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免标记 |
|
|
30
|
+
| 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
|
|
31
|
+
| 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
|
|
32
|
+
| 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200 |
|
|
33
|
+
| 手机浮轨端到端 | 45 格;按住后依次滑到第 2/2/3/4/6/8/5 轮,标题、跳转按钮、蓝条逐轮一致,0 报错 |
|
|
34
|
+
| 已发布 0.7.4 包与仓库比对 | README 中英 / CHANGELOG 与 `v0.7.4` 逐字一致;`lib/index.js` 哈希一致(构建可复现);文件清单与 `files` 相符 |
|
|
35
|
+
|
|
3
36
|
## [0.7.4] — 2026-10-16(适配 DSH 0.2.1-alpha.5)
|
|
4
37
|
|
|
5
38
|
**代码零改动**,只更新兼容声明、开发依赖与文档。
|
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.1--
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.1--rc.3-4B6BFB" alt="DSH 0.2.1-rc.3">
|
|
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.2.1-
|
|
52
|
+
- Verified DeepSeek Harness: `0.2.1-rc.3` (API review, type checking and automated regression; phone/browser acceptance on rc.3 is pending).
|
|
53
53
|
|
|
54
54
|
Install from npm:
|
|
55
55
|
|
|
@@ -148,10 +148,12 @@ 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.6`**, compatible with DeepSeek Harness **`0.2.1-rc.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.6`** (latest) | **`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. |
|
|
156
|
+
| **`0.7.5`** (published) | **`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` | Keeps up with DSH `0.2.1-rc.2`: compatibility statement only, no code change. |
|
|
155
157
|
| **`0.7.4`** | **`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` | Keeps up with DSH `0.2.1-alpha.5`: compatibility statement only, no code change. |
|
|
156
158
|
| **`0.7.3`** | **`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` | Keeps up with DSH `0.2.1-alpha.4`: compatibility statement only, no code change. |
|
|
157
159
|
| **`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. |
|
|
@@ -177,7 +179,7 @@ Current version: plugin **`0.7.4`**, compatible with DeepSeek Harness **`0.2.1-a
|
|
|
177
179
|
| `0.1.1` | `0.1.7-rc.1` | Documentation release: bilingual user READMEs |
|
|
178
180
|
| `0.1.0` | `0.1.7-rc.1` | First release: gated reverse proxy, self-signed HTTPS, device pairing, settings page, QR access |
|
|
179
181
|
|
|
180
|
-
- 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
|
|
182
|
+
- 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` (10 releases; the rc.3 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.
|
|
181
183
|
- 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).
|
|
182
184
|
- **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).
|
|
183
185
|
- **`0.4.0` verification status**: all three changes carry measurements, not just specs.
|
|
@@ -338,8 +340,8 @@ The client half registers into the official additive `settings.section` seat; th
|
|
|
338
340
|
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:
|
|
339
341
|
|
|
340
342
|
```sh
|
|
341
|
-
git tag v0.
|
|
342
|
-
git push origin v0.
|
|
343
|
+
git tag v0.7.6
|
|
344
|
+
git push origin v0.7.6
|
|
343
345
|
```
|
|
344
346
|
|
|
345
347
|
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.1--
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.1--rc.3-4B6BFB" alt="DSH 0.2.1-rc.3">
|
|
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.2.1-
|
|
52
|
+
- 已验证的 DeepSeek Harness:`0.2.1-rc.3`(接口审查、类型检查与自动回归;rc.3 的手机/浏览器验收待完成)。
|
|
53
53
|
|
|
54
54
|
从 npm 安装:
|
|
55
55
|
|
|
@@ -149,10 +149,12 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
149
149
|
|
|
150
150
|
## 兼容性
|
|
151
151
|
|
|
152
|
-
当前版本:插件 **`0.7.
|
|
152
|
+
当前版本:插件 **`0.7.6`**,兼容 DeepSeek Harness **`0.2.1-rc.3`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
|
|
153
153
|
|
|
154
154
|
| 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
|
|
155
155
|
| --- | --- | --- |
|
|
156
|
+
| **`0.7.6`** (latest) | **`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`,运行时代码不变。仅完成接口、类型与自动检查;手机/浏览器验收待完成。 |
|
|
157
|
+
| **`0.7.5`** (published) | **`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` | 跟上 DSH `0.2.1-rc.2`:只更新兼容声明,代码没动。 |
|
|
156
158
|
| **`0.7.4`** | **`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` | 跟上 DSH `0.2.1-alpha.5`:只更新兼容声明,代码没动。 |
|
|
157
159
|
| **`0.7.3`** | **`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` | 跟上 DSH `0.2.1-alpha.4`:只更新兼容声明,代码没动。 |
|
|
158
160
|
| **`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`:只更新兼容声明,代码没动。 |
|
|
@@ -178,7 +180,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
178
180
|
| `0.1.1` | `0.1.7-rc.1` | 文档版:中英双语用户 README |
|
|
179
181
|
| `0.1.0` | `0.1.7-rc.1` | 首个版本:门禁反向代理、自签 HTTPS、设备配对、设置页、扫码访问 |
|
|
180
182
|
|
|
181
|
-
- 声明范围 `>=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
|
|
183
|
+
- 声明范围 `>=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`(共 10 个版本,rc.3 验证范围见上文)。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
182
184
|
- 本插件用到的宿主/客户端接口:`webServer.register` / `webServer.tapIndex`(indexTaps)、`connection.requestRejection`、`connection.authenticatedUrl`、追加型 `settings.section` seat、`@deepseek-ai/schemastery`,以及 `profileContext`(用于推导默认数据目录)。
|
|
183
185
|
- **破坏性默认值变更(`0.3.2` 起)**:`listenHost` 默认由 `127.0.0.1` 改为 `0.0.0.0`,装完重启一次即可用;`0.3.1` 及更早默认仅回环。门禁与自签 TLS 的默认值未变(未设密码仍拒绝所有设备)。详见 [CHANGELOG](CHANGELOG.md)。
|
|
184
186
|
- **`0.4.0` 的验证状态**:三处改动都做了实测,不只跑用例。
|
|
@@ -339,8 +341,8 @@ pnpm run verify # 类型检查 + 测试 + 构建 + pack dry-run
|
|
|
339
341
|
发版由 tag 驱动。更新 `package.json`、把对应 CHANGELOG 段落移出 `Unreleased`、编写带中英双锚点的 `release-notes/v<版本>.md` 后,推送发版提交与 tag:
|
|
340
342
|
|
|
341
343
|
```sh
|
|
342
|
-
git tag v0.
|
|
343
|
-
git push origin v0.
|
|
344
|
+
git tag v0.7.6
|
|
345
|
+
git push origin v0.7.6
|
|
344
346
|
```
|
|
345
347
|
|
|
346
348
|
发版工作流会校验 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.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",
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
"0.2.1-alpha.1": "compatible",
|
|
76
76
|
"0.2.1-alpha.3": "compatible",
|
|
77
77
|
"0.2.1-alpha.4": "compatible",
|
|
78
|
-
"0.2.1-alpha.5": "compatible"
|
|
78
|
+
"0.2.1-alpha.5": "compatible",
|
|
79
|
+
"0.2.1-rc.2": "compatible",
|
|
80
|
+
"0.2.1-rc.3": "compatible"
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
},
|
|
@@ -96,17 +98,17 @@
|
|
|
96
98
|
"reverse-proxy"
|
|
97
99
|
],
|
|
98
100
|
"devDependencies": {
|
|
99
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
100
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
101
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-
|
|
102
|
-
"@deepseek-ai/schemastery": "3.18.5
|
|
101
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
102
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.3",
|
|
103
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.3",
|
|
104
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
103
105
|
"@types/node": "^26.2.0",
|
|
104
106
|
"@types/qrcode": "^1.5.6",
|
|
105
107
|
"@types/react": "^18.3.31",
|
|
106
108
|
"tsdown": "^0.22.14",
|
|
107
109
|
"typescript": "^7.0.2",
|
|
108
110
|
"vitest": "^4.1.11",
|
|
109
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
111
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.3"
|
|
110
112
|
},
|
|
111
113
|
"packageManager": "pnpm@10.33.1"
|
|
112
114
|
}
|