dsh-lan-guard 0.7.3 → 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 +40 -0
- package/README.md +6 -4
- package/README.zh.md +6 -4
- package/package.json +11 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
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
|
+
|
|
24
|
+
## [0.7.4] — 2026-10-16(适配 DSH 0.2.1-alpha.5)
|
|
25
|
+
|
|
26
|
+
**代码零改动**,只更新兼容声明、开发依赖与文档。
|
|
27
|
+
|
|
28
|
+
- `dsh.compatibility.dshReleases` 增加 `0.2.1-alpha.5: compatible`。
|
|
29
|
+
- 开发依赖对齐 alpha.5 宿主包:`@deepseek-ai/dsh-host-webserver`、`@deepseek-ai/dsh-client-connection`、`@deepseek-ai/dsh-scope` → `0.2.1-alpha.5`。
|
|
30
|
+
- **补齐此前几版漏改的 README 版本号**:顶部徽章 `DSH-…`、正文「已验证的 DeepSeek Harness」、底部「已验证版本」清单——这三处自 `0.5.0` 起一直停在 `0.2.1-alpha.1`,中英两个 README 都已改为 `0.2.1-alpha.5`,清单补齐 `alpha.3`/`alpha.4`/`alpha.5`。
|
|
31
|
+
- 换用 alpha.5 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
|
|
32
|
+
|
|
33
|
+
**核查结果**(alpha.5 实测):
|
|
34
|
+
|
|
35
|
+
| 检查 | 结果 |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免警告 |
|
|
38
|
+
| 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
|
|
39
|
+
| 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
|
|
40
|
+
| 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200 |
|
|
41
|
+
| 手机浮轨端到端 | 45 格;按住第 1 格后依次滑到第 2/3/4/6/8/5/3 轮,浮窗标题与跳转按钮逐轮跟随、蓝条跟随,0 报错 |
|
|
42
|
+
|
|
3
43
|
## [0.7.3] — 2026-10-16(适配 DSH 0.2.1-alpha.4)
|
|
4
44
|
|
|
5
45
|
**代码零改动**,只更新兼容声明、开发依赖与文档。
|
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,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.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. |
|
|
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. |
|
|
155
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. |
|
|
156
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. |
|
|
157
159
|
| **`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. |
|
|
@@ -176,7 +178,7 @@ Current version: plugin **`0.7.3`**, compatible with DeepSeek Harness **`0.2.1-a
|
|
|
176
178
|
| `0.1.1` | `0.1.7-rc.1` | Documentation release: bilingual user READMEs |
|
|
177
179
|
| `0.1.0` | `0.1.7-rc.1` | First release: gated reverse proxy, self-signed HTTPS, device pairing, settings page, QR access |
|
|
178
180
|
|
|
179
|
-
- 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`. 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.
|
|
180
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).
|
|
181
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).
|
|
182
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,12 @@ 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`:只更新兼容声明,代码没动。 |
|
|
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`:只更新兼容声明,代码没动。 |
|
|
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` | 跟上 DSH `0.2.1-alpha.4`:只更新兼容声明,代码没动。 |
|
|
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` | 跟上 DSH `0.2.1-alpha.3`:只更新兼容声明,代码没动。 |
|
|
158
160
|
| **`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 完全相同。 |
|
|
@@ -177,7 +179,7 @@ dsh plugin --profile web add "link:$(pwd)"
|
|
|
177
179
|
| `0.1.1` | `0.1.7-rc.1` | 文档版:中英双语用户 README |
|
|
178
180
|
| `0.1.0` | `0.1.7-rc.1` | 首个版本:门禁反向代理、自签 HTTPS、设备配对、设置页、扫码访问 |
|
|
179
181
|
|
|
180
|
-
- 声明范围 `>=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`。未列入的 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` 正式版。
|
|
181
183
|
- 本插件用到的宿主/客户端接口:`webServer.register` / `webServer.tapIndex`(indexTaps)、`connection.requestRejection`、`connection.authenticatedUrl`、追加型 `settings.section` seat、`@deepseek-ai/schemastery`,以及 `profileContext`(用于推导默认数据目录)。
|
|
182
184
|
- **破坏性默认值变更(`0.3.2` 起)**:`listenHost` 默认由 `127.0.0.1` 改为 `0.0.0.0`,装完重启一次即可用;`0.3.1` 及更早默认仅回环。门禁与自签 TLS 的默认值未变(未设密码仍拒绝所有设备)。详见 [CHANGELOG](CHANGELOG.md)。
|
|
183
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",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"test:unit": "vitest run",
|
|
47
47
|
"clean": "rm -rf lib coverage .tmp",
|
|
48
48
|
"prepack": "pnpm run build",
|
|
49
|
-
"verify": "pnpm run test && pnpm run build && pnpm pack --dry-run"
|
|
49
|
+
"verify": "pnpm run test && pnpm run build && node scripts/check-versions.mjs && pnpm pack --dry-run",
|
|
50
|
+
"check:versions": "node scripts/check-versions.mjs"
|
|
50
51
|
},
|
|
51
52
|
"dsh": {
|
|
52
53
|
"manifestVersion": 1,
|
|
@@ -73,7 +74,9 @@
|
|
|
73
74
|
"0.2.0-rc.2": "compatible",
|
|
74
75
|
"0.2.1-alpha.1": "compatible",
|
|
75
76
|
"0.2.1-alpha.3": "compatible",
|
|
76
|
-
"0.2.1-alpha.4": "compatible"
|
|
77
|
+
"0.2.1-alpha.4": "compatible",
|
|
78
|
+
"0.2.1-alpha.5": "compatible",
|
|
79
|
+
"0.2.1-rc.2": "compatible"
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
},
|
|
@@ -94,17 +97,17 @@
|
|
|
94
97
|
"reverse-proxy"
|
|
95
98
|
],
|
|
96
99
|
"devDependencies": {
|
|
97
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
98
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
99
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.1-
|
|
100
|
-
"@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",
|
|
101
104
|
"@types/node": "^26.2.0",
|
|
102
105
|
"@types/qrcode": "^1.5.6",
|
|
103
106
|
"@types/react": "^18.3.31",
|
|
104
107
|
"tsdown": "^0.22.14",
|
|
105
108
|
"typescript": "^7.0.2",
|
|
106
109
|
"vitest": "^4.1.11",
|
|
107
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
110
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.2"
|
|
108
111
|
},
|
|
109
112
|
"packageManager": "pnpm@10.33.1"
|
|
110
113
|
}
|