dsh-lan-guard 0.7.1 → 0.7.3

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 CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.3] — 2026-10-16(适配 DSH 0.2.1-alpha.4)
4
+
5
+ **代码零改动**,只更新兼容声明、开发依赖与文档。
6
+
7
+ - `dsh.compatibility.dshReleases` 增加 `0.2.1-alpha.4: compatible`。
8
+ - 开发依赖对齐 alpha.4 宿主包:`@deepseek-ai/dsh-host-webserver`、`@deepseek-ai/dsh-client-connection`、`@deepseek-ai/dsh-scope` → `0.2.1-alpha.4`。
9
+ - 换用 alpha.4 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
10
+
11
+ **核查结果**(alpha.4 实测):
12
+
13
+ | 检查 | 结果 |
14
+ | --- | --- |
15
+ | `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免警告 |
16
+ | 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
17
+ | 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
18
+ | 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200 |
19
+ | 手机浮轨端到端 | 14 格;按住第 1 轮后依次滑到第 2/3/5/8/4 轮,浮窗标题与跳转按钮逐轮跟随、蓝条跟随,0 报错 |
20
+
21
+ ## [0.7.2] — 2026-10-15(适配 DSH 0.2.1-alpha.3)
22
+
23
+ **代码零改动**,只更新兼容声明、开发依赖与文档。
24
+
25
+ - `dsh.compatibility.dshReleases` 增加 `0.2.1-alpha.3: compatible`。
26
+ - 开发依赖对齐 alpha.3 宿主包:`@deepseek-ai/dsh-host-webserver`、`@deepseek-ai/dsh-client-connection` → `0.2.1-alpha.3`,连带 `@deepseek-ai/cordis` → `4.0.5-alpha.2`、`@deepseek-ai/schemastery` → `3.18.5-alpha.2`,并补 `@deepseek-ai/dsh-scope`(`dsh-client-connection` 的 peer 要求)。
27
+ - peer 范围放宽到接纳官方随包分发的预发布版:`@deepseek-ai/cordis ^4.0.4 || >=4.0.5-alpha.1 <4.1.0`、`@deepseek-ai/schemastery ^3.18.4 || >=3.18.5-alpha.1 <4.0.0`。
28
+ - 换用 alpha.3 的 `.d.ts` 后类型检查与 **386** 项用例全绿,构建与打包通过。
29
+
30
+ **为什么不需要改代码**(alpha.3 实测):
31
+
32
+ | 检查 | 结果 |
33
+ | --- | --- |
34
+ | `dsh --profile web --dump-config` | exit 0,插件在合成树里,无拒载/豁免警告 |
35
+ | 用到的宿主接口 | `webServer.register` / `tapIndex`、`connection.authenticatedUrl` / `requestRejection`、settings 分区:全在 |
36
+ | 注入依赖的官方 DOM | 浮轨 `nav` + `button[data-index]` + `markPreview`/`markActive`、侧栏 `data-row-key`:全在 |
37
+ | 运行态 | 注入标记齐、首页带 `cache-control: no-store`、`/config` 与 `/devices` 200、客户端包加载 200 |
38
+ | 手机浮轨端到端 | 42 格、按住出卡片(标题/摘要正确)、滑动换轮、蓝条高亮、官方气泡隐藏,0 报错 |
39
+
3
40
  ## [0.7.1] — 2026-10-07(文档版:README 与发布说明改成人话)
4
41
 
5
42
  功能与 `0.7.0` 完全相同,代码零改动。
package/README.md CHANGED
@@ -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.1`**, compatible with DeepSeek Harness **`0.2.1-alpha.1`**. Each row below is one plugin release: the DSH versions it was verified against, and what that release did.
151
+ Current version: plugin **`0.7.3`**, compatible with DeepSeek Harness **`0.2.1-alpha.4`**. 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.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
+ | **`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. |
155
157
  | **`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. |
156
158
  | **`0.7.0`** | **`0.2.1-alpha.1`**, `0.2.0-rc.2`, `0.2.0-rc.1`, `0.1.7-rc.2` | The phone turn rail finally works: no more drifting card, and previews follow your finger while you hold and slide (off by default). Blank pages after a restart are fixed too. |
157
159
  | **`0.6.0`** | **`0.2.1-alpha.1`**, **`0.2.0-rc.2`**, `0.2.0-rc.1`, `0.1.7-rc.2` | Fixed "you can see the rail but not its content" on a phone: holding a tick for ~0.3s now opens a card with that turn's prompt and reply. |
package/README.zh.md CHANGED
@@ -149,10 +149,12 @@ dsh plugin --profile web add "link:$(pwd)"
149
149
 
150
150
  ## 兼容性
151
151
 
152
- 当前版本:插件 **`0.7.1`**,兼容 DeepSeek Harness **`0.2.1-alpha.1`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
152
+ 当前版本:插件 **`0.7.3`**,兼容 DeepSeek Harness **`0.2.1-alpha.4`**。下表每行是一个插件版本:它验证过哪些 DSH 版本,以及那一版做了什么。
153
153
 
154
154
  | 插件 | 已验证的 DeepSeek Harness | 这个版本是什么 |
155
155
  | --- | --- | --- |
156
+ | **`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
+ | **`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`:只更新兼容声明,代码没动。 |
156
158
  | **`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 完全相同。 |
157
159
  | **`0.7.0`** | **`0.2.1-alpha.1`**、`0.2.0-rc.2`、`0.2.0-rc.1`、`0.1.7-rc.2` | 手机端轮次浮轨终于好用:卡片不再跑偏,预览跟着手指走,按住刻度上下滑动就能看每一轮在说什么(默认关闭)。顺带修掉重启后手机白屏的问题。 |
158
160
  | **`0.6.0`** | **`0.2.1-alpha.1`**、**`0.2.0-rc.2`**、`0.2.0-rc.1`、`0.1.7-rc.2` | 手机上「看得见刻度、看不到内容」的问题:改成按住刻度约 0.3 秒弹出卡片,显示那一轮的提问和回复摘要。 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lan-guard",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
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",
@@ -26,10 +26,10 @@
26
26
  "selfsigned": "^5.5.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@deepseek-ai/cordis": "^4.0.4",
29
+ "@deepseek-ai/cordis": "^4.0.4 || >=4.0.5-alpha.1 <4.1.0",
30
30
  "@deepseek-ai/dsh-client-connection": ">=0.1.7-rc.1 <0.3.0",
31
31
  "@deepseek-ai/dsh-host-webserver": ">=0.1.7-rc.1 <0.3.0",
32
- "@deepseek-ai/schemastery": "^3.18.4"
32
+ "@deepseek-ai/schemastery": "^3.18.4 || >=3.18.5-alpha.1 <4.0.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -71,7 +71,9 @@
71
71
  "0.1.7-rc.1": "compatible",
72
72
  "0.2.0-rc.1": "compatible",
73
73
  "0.2.0-rc.2": "compatible",
74
- "0.2.1-alpha.1": "compatible"
74
+ "0.2.1-alpha.1": "compatible",
75
+ "0.2.1-alpha.3": "compatible",
76
+ "0.2.1-alpha.4": "compatible"
75
77
  }
76
78
  }
77
79
  },
@@ -92,16 +94,17 @@
92
94
  "reverse-proxy"
93
95
  ],
94
96
  "devDependencies": {
95
- "@deepseek-ai/cordis": "4.0.5-alpha.1",
96
- "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.1",
97
- "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.1",
98
- "@deepseek-ai/schemastery": "3.18.5-alpha.1",
97
+ "@deepseek-ai/cordis": "4.0.5-alpha.2",
98
+ "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.4",
99
+ "@deepseek-ai/dsh-host-webserver": "0.2.1-alpha.4",
100
+ "@deepseek-ai/schemastery": "3.18.5-alpha.2",
99
101
  "@types/node": "^26.2.0",
100
102
  "@types/qrcode": "^1.5.6",
101
103
  "@types/react": "^18.3.31",
102
104
  "tsdown": "^0.22.14",
103
105
  "typescript": "^7.0.2",
104
- "vitest": "^4.1.11"
106
+ "vitest": "^4.1.11",
107
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.4"
105
108
  },
106
109
  "packageManager": "pnpm@10.33.1"
107
110
  }