dsh-lan-guard 0.7.4 → 0.7.5
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 +21 -0
- package/README.md +5 -4
- package/README.zh.md +5 -4
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.5] — 2026-10-17(适配 DSH 0.2.1-rc.2)
|
|
4
|
+
|
|
5
|
+
**代码零改动**,只更新兼容声明、开发依赖与文档;并把「npm 包内容」纳入发版门禁。
|
|
6
|
+
|
|
7
|
+
- `dsh.compatibility.dshReleases` 增加 `0.2.1-rc.2: compatible`。
|
|
8
|
+
- 开发依赖对齐 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 线。
|
|
9
|
+
- README 中英双语:徽章、「已验证的 DeepSeek Harness」、当前版本行、兼容表、已验证清单五处同步到 `0.7.5` / `0.2.1-rc.2`。
|
|
10
|
+
- **门禁扩展**:`scripts/check-versions.mjs` 现在还会跑 `npm pack --dry-run`,校验「`package.json#files` 里列的每个文件确实会被打包」「package.json / 中英 README / CHANGELOG / LICENSE / cordis.patch.yml / lib 三件套都在包里」「包内版本号与仓库一致」。
|
|
11
|
+
- 换用 rc.2 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
|
|
12
|
+
|
|
13
|
+
**核查结果**(rc.2 实测):
|
|
14
|
+
|
|
15
|
+
| 检查 | 结果 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免标记 |
|
|
18
|
+
| 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
|
|
19
|
+
| 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
|
|
20
|
+
| 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200 |
|
|
21
|
+
| 手机浮轨端到端 | 45 格;按住后依次滑到第 2/2/3/4/6/8/5 轮,标题、跳转按钮、蓝条逐轮一致,0 报错 |
|
|
22
|
+
| 已发布 0.7.4 包与仓库比对 | README 中英 / CHANGELOG 与 `v0.7.4` 逐字一致;`lib/index.js` 哈希一致(构建可复现);文件清单与 `files` 相符 |
|
|
23
|
+
|
|
3
24
|
## [0.7.4] — 2026-10-16(适配 DSH 0.2.1-alpha.5)
|
|
4
25
|
|
|
5
26
|
**代码零改动**,只更新兼容声明、开发依赖与文档。
|
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.2-4B6BFB" alt="DSH 0.2.1-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.2.1-
|
|
52
|
+
- Verified DeepSeek Harness: `0.2.1-rc.2`
|
|
53
53
|
|
|
54
54
|
Install from npm:
|
|
55
55
|
|
|
@@ -148,10 +148,11 @@ 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.5`**, compatible with DeepSeek Harness **`0.2.1-rc.2`**. 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.5`** | **`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
156
|
| **`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
157
|
| **`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
158
|
| **`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 +178,7 @@ Current version: plugin **`0.7.4`**, compatible with DeepSeek Harness **`0.2.1-a
|
|
|
177
178
|
| `0.1.1` | `0.1.7-rc.1` | Documentation release: bilingual user READMEs |
|
|
178
179
|
| `0.1.0` | `0.1.7-rc.1` | First release: gated reverse proxy, self-signed HTTPS, device pairing, settings page, QR access |
|
|
179
180
|
|
|
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`. 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
|
+
- 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`. 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
182
|
- 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
183
|
- **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
184
|
- **`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.2.1--
|
|
9
|
+
<img src="https://img.shields.io/badge/DSH-0.2.1--rc.2-4B6BFB" alt="DSH 0.2.1-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.2.1-
|
|
52
|
+
- 已验证的 DeepSeek Harness:`0.2.1-rc.2`
|
|
53
53
|
|
|
54
54
|
从 npm 安装:
|
|
55
55
|
|
|
@@ -149,10 +149,11 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
149
149
|
|
|
150
150
|
## 兼容性
|
|
151
151
|
|
|
152
|
-
当前版本:插件 **`0.7.
|
|
152
|
+
当前版本:插件 **`0.7.5`**,兼容 DeepSeek Harness **`0.2.1-rc.2`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
|
|
153
153
|
|
|
154
154
|
| 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
|
|
155
155
|
| --- | --- | --- |
|
|
156
|
+
| **`0.7.5`** | **`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
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` | 跟上 DSH `0.2.1-alpha.5`:只更新兼容声明,代码没动。 |
|
|
157
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` | 跟上 DSH `0.2.1-alpha.4`:只更新兼容声明,代码没动。 |
|
|
158
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` | 跟上 DSH `0.2.1-alpha.3`:只更新兼容声明,代码没动。 |
|
|
@@ -178,7 +179,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
178
179
|
| `0.1.1` | `0.1.7-rc.1` | 文档版:中英双语用户 README |
|
|
179
180
|
| `0.1.0` | `0.1.7-rc.1` | 首个版本:门禁反向代理、自签 HTTPS、设备配对、设置页、扫码访问 |
|
|
180
181
|
|
|
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`。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
182
|
+
- 声明范围 `>=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`。未列入的 DSH 版本属**未验证**,请自行验证后再使用。上界在 `0.4.3` 从 `<0.2.0` 放宽:profile 加载会拒绝范围不含运行版本的 bundle,而裸的 `<0.2.0` 恰好排除 `0.2.0` 正式版。
|
|
182
183
|
- 本插件用到的宿主/客户端接口:`webServer.register` / `webServer.tapIndex`(indexTaps)、`connection.requestRejection`、`connection.authenticatedUrl`、追加型 `settings.section` seat、`@deepseek-ai/schemastery`,以及 `profileContext`(用于推导默认数据目录)。
|
|
183
184
|
- **破坏性默认值变更(`0.3.2` 起)**:`listenHost` 默认由 `127.0.0.1` 改为 `0.0.0.0`,装完重启一次即可用;`0.3.1` 及更早默认仅回环。门禁与自签 TLS 的默认值未变(未设密码仍拒绝所有设备)。详见 [CHANGELOG](CHANGELOG.md)。
|
|
184
185
|
- **`0.4.0` 的验证状态**:三处改动都做了实测,不只跑用例。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lan-guard",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
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,8 @@
|
|
|
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"
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
},
|
|
@@ -96,17 +97,17 @@
|
|
|
96
97
|
"reverse-proxy"
|
|
97
98
|
],
|
|
98
99
|
"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
|
|
100
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
101
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.1-rc.2",
|
|
103
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
103
104
|
"@types/node": "^26.2.0",
|
|
104
105
|
"@types/qrcode": "^1.5.6",
|
|
105
106
|
"@types/react": "^18.3.31",
|
|
106
107
|
"tsdown": "^0.22.14",
|
|
107
108
|
"typescript": "^7.0.2",
|
|
108
109
|
"vitest": "^4.1.11",
|
|
109
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
110
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.2"
|
|
110
111
|
},
|
|
111
112
|
"packageManager": "pnpm@10.33.1"
|
|
112
113
|
}
|