dsh-plugin-wsl-env 0.21.0 → 0.23.0
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 +119 -0
- package/CONTRIBUTING.md +7 -3
- package/README.md +11 -9
- package/SUPPORT.md +1 -1
- package/client.js +153 -33
- package/cordis.patch.yml +13 -4
- package/docs/AGENT-PROTOCOL-V7.md +4 -4
- package/docs/API.md +12 -2
- package/docs/ARCHITECTURE.md +59 -19
- package/docs/CONFIGURATION.md +44 -13
- package/docs/CONFIGURATION.zh.md +44 -8
- package/docs/DIAGNOSTICS.md +41 -1
- package/docs/DIAGNOSTICS.zh.md +34 -2
- package/docs/LIMITATIONS.md +42 -17
- package/docs/LIMITATIONS.zh.md +47 -12
- package/docs/MIGRATION.md +1 -1
- package/docs/PEER-PARITY.md +8 -7
- package/docs/QUICKSTART.md +16 -8
- package/docs/QUICKSTART.zh.md +22 -4
- package/docs/README.zh.md +19 -10
- package/docs/RELEASING.md +8 -3
- package/docs/REQUIREMENTS.zh.md +11 -6
- package/docs/ROADMAP-1.0.md +12 -11
- package/docs/ROADMAP.md +10 -8
- package/docs/UPSTREAM-FILE-REFERENCE-SEAM.md +3 -2
- package/docs/UPSTREAM-FSIO-EXPORT.md +8 -9
- package/docs/UPSTREAM-SERVICE-SWAP.md +9 -5
- package/docs/UPSTREAM-TERMINAL-TITLE.md +9 -8
- package/docs/VALUE.zh.md +5 -5
- package/docs/root-fs-routing.md +26 -19
- package/lib/agent-confined.d.ts +2 -2
- package/lib/agent-confined.js +0 -1
- package/lib/agent-exec.d.ts +2 -11
- package/lib/agent-protocol.d.ts +6 -5
- package/lib/agent.d.ts +5 -5
- package/lib/auto-preset.d.ts +4 -3
- package/lib/bwrap.d.ts +2 -1
- package/lib/client-host.d.ts +1 -1
- package/lib/client-host.js +1 -1
- package/lib/cwd-prompt-tool.d.ts +4 -20
- package/lib/cwd-prompt.d.ts +11 -10
- package/lib/distro-route.d.ts +3 -2
- package/lib/doctor-live.d.ts +2 -1
- package/lib/fs-routing.d.ts +29 -1
- package/lib/fs-routing.js +30 -3
- package/lib/fs-substrate.d.ts +0 -1
- package/lib/fs-substrate.js +0 -1
- package/lib/fsio-agent.d.ts +3 -21
- package/lib/fsio-agent.js +2 -4
- package/lib/git-exec.d.ts +3 -2
- package/lib/git-route.d.ts +4 -2
- package/lib/git-route.js +4 -2
- package/lib/index.d.ts +20 -10
- package/lib/index.js +128 -12
- package/lib/listing.d.ts +2 -1
- package/lib/messages.d.ts +82 -1
- package/lib/messages.js +94 -1
- package/lib/native-agent.d.ts +3 -2
- package/lib/paths.d.ts +2 -1
- package/lib/picker.d.ts +1 -14
- package/lib/picker.js +1 -2
- package/lib/preflight.d.ts +5 -4
- package/lib/probe-cache.d.ts +2 -1
- package/lib/sandbox-core.d.ts +2 -11
- package/lib/sandbox-core.js +1 -1
- package/lib/sandbox.d.ts +0 -1
- package/lib/sandbox.js +0 -4
- package/lib/search-exec.d.ts +2 -1
- package/lib/session-runtime.d.ts +3 -2
- package/lib/shell-env.d.ts +3 -2
- package/lib/shell.d.ts +1 -1
- package/lib/shell.js +1 -1
- package/lib/subprocess.d.ts +1 -1
- package/lib/update-check.d.ts +3 -3
- package/lib/wsl-doctor-command.d.ts +133 -0
- package/lib/wsl-doctor-command.js +381 -0
- package/lib/wsl-doctor-tool.d.ts +101 -16
- package/lib/wsl-doctor-tool.js +290 -22
- package/lib/wsl.d.ts +3 -2
- package/locale/doctor/en.json +30 -0
- package/locale/doctor/zh.json +30 -0
- package/package.json +29 -31
- package/scripts/bootstrap-import.sh +189 -0
- package/scripts/doctor.mjs +569 -141
- package/scripts/open-wsl-vscode.ps1 +36 -0
- package/examples/preset-wsl-session-sandbox.cordis.patch.yml +0 -178
package/docs/LIMITATIONS.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Limitations
|
|
2
2
|
|
|
3
|
-
_
|
|
3
|
+
_本页是权威版本;英文译本见 [LIMITATIONS](LIMITATIONS.md)。_
|
|
4
4
|
|
|
5
5
|
插件不做什么,以及为什么。写进文档的限制是设计边界;
|
|
6
6
|
没写进文档的迟早会变成 bug 报告。每一条都说明限制本身和补救方法;
|
|
@@ -16,7 +16,8 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
16
16
|
新文件需要可执行时请 `chmod`。
|
|
17
17
|
- **agent 不在时,文件操作关闭(fail closed)** —— 报 `FS_IO_ERROR`,指明
|
|
18
18
|
substrate,并附带恢复路径。一次崩溃可用一次重建;重建耗尽后进入有界复活
|
|
19
|
-
(2/4/8 s
|
|
19
|
+
(2/4/8 s),共三次尝试;第 4 次死亡才永久退出,直到应用重启。没有回退
|
|
20
|
+
I/O——这是有意为之。
|
|
20
21
|
- **变更守卫不是原子的比较并交换。** 创建使用不可替换的 link;覆盖在 rename 前
|
|
21
22
|
会重新校验版本。不匹配时返回 `FS_STALE_VERSION`,但检查与 rename 之间发生的
|
|
22
23
|
变更仍可能被覆盖。
|
|
@@ -77,8 +78,9 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
77
78
|
[COMPATIBILITY.md](COMPATIBILITY.md#scope-decisions))。`auto` 仍会选择
|
|
78
79
|
包内二进制;`native` 在准备失败时拒绝;`shell` 强制使用 shell agent。
|
|
79
80
|
- **会话 runtime 需要 systemd 和带 linger 的 user manager** —— 否则在
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
第一条命令时被拒绝并给出补救方法;把 `sessionSandbox` 设为 `auto`
|
|
82
|
+
(无 systemd 时即按命令形态)或 `false` 保留旧的按命令形态。应用硬崩溃
|
|
83
|
+
可能留下过期的 `dsh-wsl-*.scope`;预检会在下一个
|
|
82
84
|
WSL 会话时清扫过期 scope(从不清扫其他活跃会话的)。
|
|
83
85
|
- **沙箱不管辖 WSL interop** —— 上报为 `enforcement: partial`。
|
|
84
86
|
`maskWindowsDrive` 和 `interopVisibility` 收窄 `/mnt` 但不是关闭;即使是
|
|
@@ -92,9 +94,10 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
92
94
|
发行版/工作目录错误跟随应用的语言设置
|
|
93
95
|
([CONFIGURATION.zh.md](CONFIGURATION.zh.md#消息语言));`fs-decisions`
|
|
94
96
|
中的 `FS_*` 拒绝文本与 fsio 复刻保持逐字节英文,因为工具层按这些字符串
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
匹配。独立的 `scripts/doctor.mjs` 只本地化其固定骨架——裁决、状态标记、
|
|
98
|
+
汇总、提示——经自带 catalog 按检测到的 Windows 区域设置渲染
|
|
99
|
+
(`--locale <标签>` / `DSH_WSL_DOCTOR_LOCALE` 可覆盖);逐项检查的标题、
|
|
100
|
+
详情与修复保持英文,因为修复文本携带可复制的命令;`--json` 保持语言无关。
|
|
98
101
|
- 会话中途被删除的工作区目录会以 runner 错误失败;插件不会重建它。
|
|
99
102
|
配置的 `cwd` 不存在时,报错会指明该目录。
|
|
100
103
|
|
|
@@ -128,6 +131,28 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
128
131
|
的信任状态** —— 装了 Windows git 时,WSL 变更审查需要那份
|
|
129
132
|
`safe.directory` 白名单(见下文"终端")。
|
|
130
133
|
|
|
134
|
+
## doctor 的裁决与补救边界
|
|
135
|
+
|
|
136
|
+
doctor 的 `verdict` 在生效配置(应用加载的 profile 层叠加在随包 preset
|
|
137
|
+
之上)下给出——但它是对机器与配置的裁决,不是对某个会话的:**policy** 与
|
|
138
|
+
**data** 类的错误码(见 [DIAGNOSTICS.zh.md](DIAGNOSTICS.zh.md#地图))是
|
|
139
|
+
逐次调用的决策,doctor 无法预知,`ready` 也不为它们背书。
|
|
140
|
+
|
|
141
|
+
**无法解析出发行版时,`/wsl-doctor` 仍会按配置全量扫描。** 命令从会话工作
|
|
142
|
+
目录取发行版;会话开在 Windows 文件夹上、或 cwd 无法解析时,目标交给生效
|
|
143
|
+
配置,而随包预设的 `auto` 会逐个检查所有已安装发行版——在开发机上实测八个
|
|
144
|
+
发行版约 4 分钟,而收窄到单个发行版只需数秒。不想要这个结果就传
|
|
145
|
+
`--distro <名称>`(CLI 的 `--all` 是同一件事的显式写法)。handler 给未收窄
|
|
146
|
+
的运行设 60 秒时限(已解析出发行版时 120 秒),让它带着收窄提示收尾,而不是
|
|
147
|
+
一直显示「执行中」直到命令面的整个预算耗尽。
|
|
148
|
+
|
|
149
|
+
doctor 只读取和报告,从不改写用户或发行版所有的文件。`.wslconfig`、
|
|
150
|
+
`/etc/wsl.conf`、WSL1 转换和发行版安装只以补救命令的形式出现——补救文本
|
|
151
|
+
携带确切的命令;可自动修复的集合仅限安全且可逆的部分(过期 scope、
|
|
152
|
+
`--install` 加确认后的可选软件包、以及同一道确认门后的 Windows git
|
|
153
|
+
`safe.directory` 白名单)。裁决从不升级沙箱的安全声明:
|
|
154
|
+
`enforcement: partial` 不受影响。
|
|
155
|
+
|
|
131
156
|
## 会话启动建议
|
|
132
157
|
|
|
133
158
|
- **DSH 0.2.1 没有会话 UI 通知接缝。** `wsl-preflight` 的失败进入宿主日志
|
|
@@ -161,11 +186,15 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
161
186
|
应用。两个替代方案:doctor 的 `git.win-safe` 探针可报告该状态;而
|
|
162
187
|
**没有** Windows git 的机器什么都不用做——提供者把发现请求路由进
|
|
163
188
|
发行版,并把输出转写成 UNC 形式。
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
189
|
+
- **多目录 `GIT_*` 值会被转写而不是跳过——Windows 形态的列表会译坏。**
|
|
190
|
+
git 环境转写对每个 `GIT_*` 值无条件套用单值翻译,列表被折叠进首个盘符的
|
|
191
|
+
挂载点(`C:\a;D:\b` 变成 `/mnt/c/a;D:/b`);只有 POSIX 形态的冒号列表
|
|
192
|
+
(`/a:/b`)原样透传(当前没有调用方设置列表值)。
|
|
193
|
+
- **NEW 标签页的标题显示 `WSL`**,无论它实际运行什么——控制器是在
|
|
194
|
+
`spawnTerminal` 返回之后(即提供者的改写已经执行完之后)才按 composition
|
|
195
|
+
的 profile 盖上 `title: shell.name`,且从不回读启动真正运行的程序
|
|
196
|
+
(spawn spec 没有 display-name 字段),插件因此无法纠正这个默认值
|
|
197
|
+
([UPSTREAM-TERMINAL-TITLE.md](UPSTREAM-TERMINAL-TITLE.md))。
|
|
169
198
|
菜单附带宿主候选(`powershell`、`cmd`):手动选择的 shell 会以自身命名;
|
|
170
199
|
双击重命名也可行。
|
|
171
200
|
- **发行版终端空闲时确实会被回收** —— 通过常驻 agent 对被标记的进程计数
|
|
@@ -191,3 +220,9 @@ Windows 侧 share 后端(`substrate: "share"`)在启动时被拒绝;WSL
|
|
|
191
220
|
宿主带着 `ELECTRON_RUN_AS_NODE=1` 运行,启动器会继承它,于是
|
|
192
221
|
`Code.exe` 以 Node 身份启动并以退出码 1 结束。不属于本仓库管:
|
|
193
222
|
[UPSTREAM-OPEN-IN-APP.md](UPSTREAM-OPEN-IN-APP.md)。
|
|
223
|
+
- **WSL 文件可以正常打开,但预览里的相对 Markdown 图片不再渲染** ——
|
|
224
|
+
路由的 `processPath` 现在返回 UNC 宿主拼写,这是
|
|
225
|
+
`session.openWorkspacePath` / `workspacePathApplications` 校验所要求的形态
|
|
226
|
+
(issue #37);客户端 `fileMediaUrl` 拒绝 `\\` 开头的路径,因此 Markdown
|
|
227
|
+
预览中的相对图片无法解析。聊天侧因 cwd 本就是 UNC,此前已有同一缺口。
|
|
228
|
+
GUI change feed、`stat.absolutePath` 与预览头部的路径标签的 UNC 形态也源于同一拼写。
|
package/docs/MIGRATION.md
CHANGED
|
@@ -74,7 +74,7 @@ shows the composed value.
|
|
|
74
74
|
| Gate | How | Runs where |
|
|
75
75
|
|---|---|---|
|
|
76
76
|
| Config docs and CHANGELOG current | review the diff; `lint:links` covers cross-references | CI |
|
|
77
|
-
| `pnpm test` | style, links, syntax, build freshness, tsc,
|
|
77
|
+
| `pnpm test` | style, links, requirement citations, doc consistency, syntax, build freshness, tsc, 48 unit files | CI (Node 22/24, Ubuntu + Windows) |
|
|
78
78
|
| `pnpm run test:coverage` | lines 85 / branches 84 / functions 70 | CI (Node 24, Ubuntu) |
|
|
79
79
|
| Peer line tested | `peer-canary` workflow resolves `next` and runs the scratch upgrade | CI schedule/manual |
|
|
80
80
|
| Packed install/upgrade/uninstall | `pnpm run e2e:install` (temp `DSH_HOME`, 0.17.1 → current over the peer raise, marker) | manual, this machine (10/10 on 2026-11-06; the origin moved 0.11.0 → 0.17.1 because dsh 0.2.2-rc.1 rightly rejects the exact-pin era) |
|
package/docs/PEER-PARITY.md
CHANGED
|
@@ -20,8 +20,9 @@ file records the verification against the real peers.
|
|
|
20
20
|
Every replicated string survived verbatim; the fsio **read path** holds end
|
|
21
21
|
to end and the **edit path** carries the same two declared divergences, listed
|
|
22
22
|
at the end. The release also added a `FS_ERROR_CODES` const export with two
|
|
23
|
-
new codes (`FS_PATCH_MISMATCH`, `FS_SAME_TARGET`)
|
|
24
|
-
|
|
23
|
+
new codes (`FS_PATCH_MISMATCH`, `FS_SAME_TARGET`). The plugin serves those
|
|
24
|
+
operations for real over protocol v7 — see the new-peer-operations section
|
|
25
|
+
at the end.
|
|
25
26
|
`dsh-bash-local@0.2.2-rc.1`'s `lib/index.js` is byte-identical to
|
|
26
27
|
`0.2.1-rc.3`'s (only manifests and locale files changed), so its references
|
|
27
28
|
stand. `dsh-fs@0.2.2-rc.1` still has no `./invariant` export subpath; this
|
|
@@ -40,10 +41,10 @@ file records the verification against the real peers.
|
|
|
40
41
|
|
|
41
42
|
```sh
|
|
42
43
|
mkdir -p /tmp/peer-audit && cd /tmp/peer-audit
|
|
43
|
-
npm pack @deepseek-ai/dsh-fs-local@0.2.
|
|
44
|
-
openssl dgst -sha512 -binary deepseek-ai-dsh-fs-local-0.2.
|
|
45
|
-
tar xzf deepseek-ai-dsh-fs-local-0.2.
|
|
46
|
-
wc -l package/lib/index.js # expect
|
|
44
|
+
npm pack @deepseek-ai/dsh-fs-local@0.2.2-rc.1 @deepseek-ai/dsh-fs@0.2.2-rc.1 --pack-destination .
|
|
45
|
+
openssl dgst -sha512 -binary deepseek-ai-dsh-fs-local-0.2.2-rc.1.tgz | base64 -w0
|
|
46
|
+
tar xzf deepseek-ai-dsh-fs-local-0.2.2-rc.1.tgz # -> package/lib/index.js
|
|
47
|
+
wc -l package/lib/index.js # expect 1048
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
The tarballs this audit compared, by content — the same values
|
|
@@ -102,7 +103,7 @@ declared extensions, listed at the end.
|
|
|
102
103
|
2. **Per-stream truncation flags.** The EXEC frame carries an output budget;
|
|
103
104
|
the RES line reports which streams the agent cut, surfaced as honest
|
|
104
105
|
`truncated` flags. The collect-budget/spill machinery of the shell peer,
|
|
105
|
-
`@deepseek-ai/dsh-bash-local@0.2.
|
|
106
|
+
`@deepseek-ai/dsh-bash-local@0.2.2-rc.1` (`lib/index.js:30`, `:110`), is the
|
|
106
107
|
spill-file path we deliberately do not run.
|
|
107
108
|
3. **The transport around the ops** (ACK, KILL, the confined resident) is
|
|
108
109
|
protocol this package owns; the peer has no agent.
|
package/docs/QUICKSTART.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Quickstart
|
|
2
2
|
|
|
3
|
-
*
|
|
3
|
+
*The Chinese version ([QUICKSTART.zh](QUICKSTART.zh.md)) is authoritative; this page is its English translation.*
|
|
4
4
|
|
|
5
5
|
Steps from a Windows + WSL 2 machine to a working WSL session.
|
|
6
6
|
This page is the entry point; every claim links to the document that owns it.
|
|
@@ -23,12 +23,14 @@ supplies the WSL environment.
|
|
|
23
23
|
| systemd + Linger (for the session runtime) | `node <plugin>/scripts/doctor.mjs` (installed) or `pnpm run doctor` (checkout) | `[boot] systemd=true` in `/etc/wsl.conf`, `wsl --shutdown`, then `loginctl enable-linger "$USER"`; or set `sessionSandbox: auto`/`false` |
|
|
24
24
|
| Node `^22.19.0` or `>=24.0.0` | only needed for source/development work | not needed inside the distro to use the published plugin |
|
|
25
25
|
|
|
26
|
-
No terminal at hand?
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
No terminal at hand? Three ways without one: the **WSL 诊断** button in the
|
|
27
|
+
composer opens a menu (quick, full, or one section) and drops a `/wsl-doctor`
|
|
28
|
+
command that runs host-side and renders in the UI — no model turn, no tokens;
|
|
29
|
+
in a session, ask for a diagnosis and the model runs the `wsl_doctor` tool
|
|
30
|
+
(mounted by this plugin), the verdict landing in the transcript; and the
|
|
31
|
+
session-start preflight announces the same verdict on every session start.
|
|
32
|
+
`DSH_WSL_DOCTOR` additionally carries a ready-to-run command for the doctor
|
|
33
|
+
script itself (`sh -c "$DSH_WSL_DOCTOR --json"`).
|
|
32
34
|
|
|
33
35
|
The doctor (`scripts/doctor.mjs`, or `pnpm run doctor` from a checkout) checks
|
|
34
36
|
the environment and ends in a verdict: `ready` means the first command should
|
|
@@ -37,7 +39,13 @@ remedy. It reads the distro's WSL mode from `wsl.exe -l -v` itself, so no
|
|
|
37
39
|
separate version check is needed. Doctor is read-only unless you pass `--fix`
|
|
38
40
|
(stale scopes, and the Windows git trust after a confirmation) or
|
|
39
41
|
`--fix --install` (packages, after a confirmation); `--bundle <path>` writes
|
|
40
|
-
the diagnostic file a setup report attaches
|
|
42
|
+
the diagnostic file a setup report attaches (`--redact` strips the paths
|
|
43
|
+
from it). A run can be scoped — `--quick` probes the first-command
|
|
44
|
+
prerequisites only (~10 s), `--sections <list>` (comma-separated) runs the
|
|
45
|
+
named sections — or widened with `--all` to every installed distro; the
|
|
46
|
+
report itemizes every check with an explicit status marker, grouped by
|
|
47
|
+
distro. The fixed skeleton renders in the host's language
|
|
48
|
+
(`--locale <tag>` or `DSH_WSL_DOCTOR_LOCALE` overrides the detection).
|
|
41
49
|
|
|
42
50
|
## 2. Install
|
|
43
51
|
|
package/docs/QUICKSTART.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Quickstart
|
|
2
2
|
|
|
3
|
-
_
|
|
3
|
+
_本页是权威版本;英文译本见 [QUICKSTART](QUICKSTART.md)。_
|
|
4
4
|
|
|
5
5
|
从一台 Windows + WSL 2 机器到可用的 WSL 会话,只需以下步骤。
|
|
6
6
|
本页是入口;每条说明都链接到负责该主题的文档。
|
|
@@ -22,10 +22,24 @@ _本文是 [QUICKSTART](QUICKSTART.md) 的中文译本,以英文版为准。_
|
|
|
22
22
|
| systemd + Linger(会话 runtime 需要) | `node <plugin>/scripts/doctor.mjs`(已安装)或 `pnpm run doctor`(检出目录) | 在 `/etc/wsl.conf` 设置 `[boot] systemd=true`,`wsl --shutdown`,然后 `loginctl enable-linger "$USER"`;或设置 `sessionSandbox: auto`/`false` |
|
|
23
23
|
| Node `^22.19.0` 或 `>=24.0.0` | 仅源码/开发工作需要 | 使用已发布的插件时,发行版内不需要 Node |
|
|
24
24
|
|
|
25
|
+
手边没有终端?有三条不依赖终端的路:composer 里的 **WSL 诊断** 按钮打开菜单
|
|
26
|
+
(quick、full 或单个分区),投下一条 `/wsl-doctor` 命令——宿主侧执行、直接在
|
|
27
|
+
UI 渲染,不进模型对话、零 token;在会话里请求诊断,模型会运行本插件挂载的
|
|
28
|
+
`wsl_doctor` 工具,判定落在对话里;会话启动预检在每次会话打开时通报同样的
|
|
29
|
+
判定。`DSH_WSL_DOCTOR` 还携带一条现成命令,可在发行版内执行 doctor 脚本本身
|
|
30
|
+
(`sh -c "$DSH_WSL_DOCTOR --json"`)。
|
|
31
|
+
|
|
25
32
|
doctor(`scripts/doctor.mjs`,或在检出目录中运行 `pnpm run doctor`)会检查
|
|
26
|
-
|
|
27
|
-
`wsl.exe -l -v`
|
|
28
|
-
`--fix
|
|
33
|
+
环境并以裁决收尾:`ready` 表示首条命令应能成功;`blocked` 会列明待修项,
|
|
34
|
+
每项附可复制的处理办法。发行版的 WSL 模式由 doctor 自己从 `wsl.exe -l -v`
|
|
35
|
+
读取,无需单独确认。doctor 默认只读,除非传入 `--fix`(清理过期 scope,以及
|
|
36
|
+
确认后的 Windows git 信任)或 `--fix --install`(安装软件包,需确认);
|
|
37
|
+
`--bundle <路径>` 写出可附加到问题报告的诊断文件(`--redact`
|
|
38
|
+
将其中的路径脱敏)。运行可以收窄范围——`--quick` 只探首条命令的前置项
|
|
39
|
+
(约 10 秒),`--sections <分区清单>`(逗号分隔)只运行指定分区——
|
|
40
|
+
或用 `--all` 扩展到每个已装发行版;报告按 distro 分组逐项列出每个检查,
|
|
41
|
+
带显式状态标记。固定骨架按宿主语言渲染(`--locale <标签>` 或
|
|
42
|
+
`DSH_WSL_DOCTOR_LOCALE` 可覆盖检测)。
|
|
29
43
|
|
|
30
44
|
## 2. 安装
|
|
31
45
|
|
|
@@ -92,6 +106,10 @@ Remote-WSL 扩展。
|
|
|
92
106
|
[doctor](CONFIGURATION.md) 和[故障排查表](../README.md#troubleshooting)
|
|
93
107
|
覆盖了常见情况。
|
|
94
108
|
|
|
109
|
+
首次写入说明:沙箱会在会话策略尚未授予的写入前请求许可——提示会写明命令
|
|
110
|
+
与目标,允许一次是安全的。在发行版内执行 `loginctl enable-linger <用户>`
|
|
111
|
+
可以避免非 lingering 的 user manager 造成的重复弹窗。
|
|
112
|
+
|
|
95
113
|
下面的探针会实时运行随包的、由内核强制的 bwrap profile——
|
|
96
114
|
工作区内的写入生效,测试性的区外写入被以 `EROFS` 拒绝,
|
|
97
115
|
严格 profile 则把 `/mnt` 完全隐藏
|
package/docs/README.zh.md
CHANGED
|
@@ -12,6 +12,8 @@ Harness 进程仍在 Windows 上。命令执行、shell 脚本和文件访问都
|
|
|
12
12
|
|
|
13
13
|
仅支持 Windows + WSL 2。
|
|
14
14
|
|
|
15
|
+
**刚接触?** 从 [docs/QUICKSTART.zh.md](QUICKSTART.zh.md) 开始:前置条件、常用配方与兼容性表。
|
|
16
|
+
|
|
15
17
|
## 需要这个插件吗?
|
|
16
18
|
|
|
17
19
|
如果 harness 本身可以跑在发行版里,更简单的做法是**不用**这个插件:把 CLI 装在
|
|
@@ -45,7 +47,7 @@ Windows 上的编程工具要在 WSL 项目中工作,有三条路:把整个
|
|
|
45
47
|
- **发行版内没有服务。** 没有辅助服务、没有守护进程、没有监听端口。唯一持久化的内容是 `~/.cache/dsh-wsl/agent/` 下按内容寻址的原生 agent 副本。
|
|
46
48
|
- **默认有沙箱。** 受限命令在发行版内的 `bubblewrap` 中运行。缺少 `bubblewrap` 时命令直接失败,不会脱箱运行。
|
|
47
49
|
- **按会话生效。** 打开发行版文件夹的会话获得发行版环境;打开 Windows 文件夹的会话保留 Windows 工具。两者可同时运行在一个 harness 进程中。
|
|
48
|
-
- **与 GUI 集成。** 文件夹选择器列出已安装的发行版,终端在发行版内打开 shell,模型能看到监听端口。
|
|
50
|
+
- **与 GUI 集成。** 文件夹选择器列出已安装的发行版,终端在发行版内打开 shell,模型能看到监听端口。composer 里的诊断按钮以 `/wsl-doctor` 命令运行环境诊断——宿主侧执行,不进模型对话;会话启动预检在每次会话打开时通报环境判定。
|
|
49
51
|
|
|
50
52
|
### 为什么是 Linux,而不是 PowerShell
|
|
51
53
|
|
|
@@ -75,7 +77,7 @@ Windows 上的编程工具要在 WSL 项目中工作,有三条路:把整个
|
|
|
75
77
|
|
|
76
78
|
- Windows 10 或 11,启用 WSL 2,并至少有一个发行版。
|
|
77
79
|
- 发行版内安装 `bubblewrap`,必需。
|
|
78
|
-
- 默认的会话沙箱需要 systemd:在 `/etc/wsl.conf` 设置 `[boot] systemd=true`,重启 WSL,然后执行一次 `loginctl enable-linger "$USER"`。没有 systemd 时,在 `wsl-shell` 和 `wsl-fs`
|
|
80
|
+
- 默认的会话沙箱需要 systemd:在 `/etc/wsl.conf` 设置 `[boot] systemd=true`,重启 WSL,然后执行一次 `loginctl enable-linger "$USER"`。没有 systemd 时,在 `wsl-shell` 和 `wsl-fs` 上把 `sessionSandbox` 设为 `auto`(可用时仍用 scope,否则每条命令单独约束)或显式 `false`。
|
|
79
81
|
- 可选:`ripgrep` 用于搜索,`git` 用于变更快照,`inotify-tools` 用于文件监视。
|
|
80
82
|
|
|
81
83
|
发行版内不需要 Node.js。
|
|
@@ -109,9 +111,11 @@ dsh --profile wsl # 启动
|
|
|
109
111
|
wsl.exe -d <发行版> -u root -- apt-get install -y bubblewrap
|
|
110
112
|
```
|
|
111
113
|
|
|
112
|
-
在插件检出目录中,`pnpm run doctor` 是一键环境体检:Windows/WSL
|
|
114
|
+
在插件检出目录中,`pnpm run doctor` 是一键环境体检:Windows/WSL 版本、每个发行版的 WSL 模式、`.wslconfig` 与 `/etc/wsl.conf` 交叉核对、磁盘、时钟与 DNS、bubblewrap 可用性、systemd / user manager / Linger、可选工具、peer 版本、agent 缓存、新 agent 握手、三条证明链路完好的冒烟腿(帧 I/O、受限围栏、批量 substrate)、残留会话 scope、已知的 profile 补丁与废弃键陷阱,以及 registry 上是否存在更新的稳定版。报告逐项列出每个检查——按 distro 分组,每项带显式状态标记,失败项下附可复制的处理办法——并以裁决收尾:`ready`(首条命令应能成功)或 `blocked`(列明待修项),按生效配置计算。运行可以收窄范围:`--quick` 只探首条命令的前置项(约 10 秒),`--sections <分区清单>`(逗号分隔)只运行指定分区,且范围化报告会把未运行的检查显式列为跳过项。`--json` 供脚本使用,`--fix` 会复核它修过的项(安装包需要 `--fix --install` 并显式确认),`--all` 检查每个已装发行版,`--bundle <路径>` 写出可附加到问题报告的诊断文件(`--redact` 将路径脱敏)。固定骨架按宿主语言渲染——从 Windows 区域设置检测,可用 `--locale <标签>` 或 `DSH_WSL_DOCTOR_LOCALE` 覆盖;`--json` 保持语言无关。同一份报告经三个入口给出:本 CLI、`/wsl-doctor` 命令(composer 按钮——宿主侧执行,不进模型对话)、以及 `wsl_doctor` 模型工具(进程内采集,合并常驻 agent 的实时状态)。`DSH_WSL_DOCTOR` 还携带一条现成命令(`sh -c "$DSH_WSL_DOCTOR --json"`),可在发行版内直接重放 doctor。`pnpm run diagnose` 是 CLI 的只读别名。`pnpm run bootstrap <发行版>` 仍是较窄的工具安装助手。
|
|
115
|
+
|
|
116
|
+
插件大约每天自行检查一次更新(启动后 2–10 分钟内首查),方式是询问应用的插件管理器——它从不自行联网。当存在更新的稳定版时,每个发行版会话中受管的 `DSH_WSL_PLUGIN_UPDATE` 变量会携带该事实;补丁配置里的 `wsl-update-check.enabled: false` 可关闭该检查,`DSH_UPDATE_REGISTRIES` 覆盖 doctor 的按需检查询问哪些 registry(逗号分隔,留空可让气隙机器跳过)。升级保持手动,因为 harness 没有热重载:重新安装(Plugins 页面或 `add` 命令),然后重启。
|
|
113
117
|
|
|
114
|
-
|
|
118
|
+
卸载:在 Plugins 页面移除,或在 CLI 发行版执行 `dsh plugin --profile wsl remove dsh-plugin-wsl-env`;之后可删除 `~/.cache/dsh-wsl`。如果你为了恢复预览在 profile 里加过 `workspace-files-wsl` 的临时覆盖,升级后请删掉:插件不再挂载该行。
|
|
115
119
|
|
|
116
120
|
## 使用
|
|
117
121
|
|
|
@@ -131,18 +135,20 @@ wsl.exe -d <发行版> -u root -- apt-get install -y bubblewrap
|
|
|
131
135
|
|---|---|---|---|
|
|
132
136
|
| `wsl-shell` | `distro` | `''` | 发行版模式;空/`auto` 跟随工作区,`default` 强制 WSL 默认 |
|
|
133
137
|
| | `sandbox` | `true` | 用 `bubblewrap` 约束命令 |
|
|
134
|
-
| | `sessionSandbox` |
|
|
138
|
+
| | `sessionSandbox` | `false`;随包 `true` | 会话命令跑在同一个 systemd user scope 中 |
|
|
135
139
|
| | `agentBackend` | `auto` | 发行版内 agent:`auto`、`native` 或 `shell` |
|
|
136
140
|
| | `maskWindowsDrive` | `false` | 让受限命令看不到 `/mnt` |
|
|
137
141
|
| `wsl-fs` | `distro` | `''` | 发行版模式;空/`auto` 跟随每个目标路径 |
|
|
138
142
|
| | `restrictToDistro` | `true` | 固定发行版(`default` 或名字)时拒绝属于其他发行版的路径 |
|
|
139
143
|
| | `sandbox` | `true` | 按策略检查受限写入 |
|
|
140
|
-
| | `sessionSandbox` |
|
|
144
|
+
| | `sessionSandbox` | `false`;随包 `true` | 受限写入跑在会话 runtime 中 |
|
|
141
145
|
| | `substrate` | `agent` | 发行版内 agent;`share` 在启动时被拒绝 |
|
|
142
146
|
| `directory-picker-wsl` | `includeHostHome` | `true` | 同时列出 Windows 家目录 |
|
|
143
147
|
| `subprocess-wsl` | `distro` | `''` | 发行版模式;空/`auto` 跟随启动目录 |
|
|
148
|
+
| `wsl-preflight` | `distro` | `''` | 环境检查探测的发行版;空/`auto` 跟随会话工作区 |
|
|
149
|
+
| | `startup` | `true` | 插件加载时预先运行同一组检查,让判定在任何会话打开之前就出现在日志里 |
|
|
144
150
|
|
|
145
|
-
`wsl-shell` 和 `wsl-fs` 位于随包的 `wsl` preset 中,按 id 覆盖无效。要改就覆盖整个 `preset-wsl` 行;配方和其余键见 [docs/CONFIGURATION.md](CONFIGURATION.md)。[`cordis.patch.yml`](../cordis.patch.yml) 是随包值的注释参考。
|
|
151
|
+
`fs-routing` 是根级 `ctx.fs` 调用的顶层路由:它的发行版设置独立于 `wsl-fs`,也是按 id 在顶层补丁中覆盖的行。`wsl-shell` 和 `wsl-fs` 位于随包的 `wsl` preset 中,按 id 覆盖无效。要改就覆盖整个 `preset-wsl` 行;配方和其余键见 [docs/CONFIGURATION.md](CONFIGURATION.md)。[`cordis.patch.yml`](../cordis.patch.yml) 是随包值的注释参考。
|
|
146
152
|
|
|
147
153
|
## 架构
|
|
148
154
|
|
|
@@ -183,7 +189,7 @@ wsl preset(每个会话)
|
|
|
183
189
|
| 现象 | 处理 |
|
|
184
190
|
|---|---|
|
|
185
191
|
| 每条命令都报 `SANDBOX_UNAVAILABLE` | 在发行版内安装 `bubblewrap`,或设置 `sandbox: false` |
|
|
186
|
-
| 会话在第一条命令前就被拒绝 | 运行 `pnpm run doctor`;启用 systemd 和 linger
|
|
192
|
+
| 会话在第一条命令前就被拒绝 | 运行 `pnpm run doctor`;启用 systemd 和 linger,或把 `wsl-shell`、`wsl-fs` 上的 `sessionSandbox` 设为 `auto` 或 `false` |
|
|
187
193
|
| 发行版内 `glob`、`grep` 很慢 | 运行 `pnpm run bootstrap <发行版>`,使用打印的安装命令安装 `ripgrep` |
|
|
188
194
|
| `dsh plugin add` 没有输出,或 Plugins 页面装完没有日志 | 以 profile 的 `package.json` 与 `dsh.profile.bundles` 为准:列出插件即安装成功 |
|
|
189
195
|
| 对 `wsl-shell`/`wsl-fs` 的 profile 补丁不生效 | 这些行嵌套在 `preset-wsl` 里。运行 `pnpm run preset --check <补丁>`;它会失败并输出需要粘贴的完整块 |
|
|
@@ -196,7 +202,7 @@ wsl preset(每个会话)
|
|
|
196
202
|
```bash
|
|
197
203
|
pnpm install # 开发依赖
|
|
198
204
|
pnpm run build # 从 src/ 生成 lib/(lib/ 提交进仓)
|
|
199
|
-
pnpm test #
|
|
205
|
+
pnpm test # 风格、链接、需求引用、文档一致性、语法、构建一致性、类型、单元测试
|
|
200
206
|
pnpm run test:coverage # 带覆盖率阈值的单元测试
|
|
201
207
|
pnpm run sync:windows # 更新应用加载的 Windows 侧副本
|
|
202
208
|
```
|
|
@@ -210,9 +216,12 @@ pnpm run sync:windows # 更新应用加载的 Windows 侧副本
|
|
|
210
216
|
| 文档 | 内容 |
|
|
211
217
|
|---|---|
|
|
212
218
|
| [docs/QUICKSTART.md](QUICKSTART.md) | 首次运行、常用配方、兼容性 |
|
|
219
|
+
| [docs/PERFORMANCE.md](PERFORMANCE.md) | ext4 agent 对比 9p 的实测延迟与复现方法 |
|
|
220
|
+
| [docs/MIGRATION.md](MIGRATION.md) | 从早期版本升级、发布门槛 |
|
|
221
|
+
| [docs/COMPATIBILITY.md](COMPATIBILITY.md) | 已测的 Windows/WSL/发行版矩阵与范围决定 |
|
|
222
|
+
| [docs/API.md](API.md) | 包的子路径导出一览 |
|
|
213
223
|
| [docs/CONFIGURATION.md](CONFIGURATION.md) | 所有配置键及覆盖方法 |
|
|
214
224
|
| [docs/ARCHITECTURE.md](ARCHITECTURE.md) | 服务、路径路由、沙箱、错误码 |
|
|
215
|
-
| [docs/PERFORMANCE.md](PERFORMANCE.md) | ext4 agent 对比 9p 的实测延迟与复现方法 |
|
|
216
225
|
| [docs/LIMITATIONS.md](LIMITATIONS.md) | 插件不做的事 |
|
|
217
226
|
| [docs/ROADMAP.md](ROADMAP.md) | 当前计划和推迟项 |
|
|
218
227
|
| [docs/ROADMAP-1.0.md](ROADMAP-1.0.md) | 1.0 与生态优化计划 |
|
package/docs/RELEASING.md
CHANGED
|
@@ -68,7 +68,9 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md) for individual probes, prerequisites,
|
|
|
68
68
|
and optional performance probes not included in the suite.
|
|
69
69
|
|
|
70
70
|
`npm publish` runs the `prepublishOnly` script, which is `pnpm test`. The local
|
|
71
|
-
gates therefore run again during the release step.
|
|
71
|
+
gates therefore run again during the release step. (The release workflow
|
|
72
|
+
publishes with `--ignore-scripts` for exactly this reason — its Gates step has
|
|
73
|
+
already run the chain; a hand-run publish keeps the hook.)
|
|
72
74
|
|
|
73
75
|
## 4. Commit and tag
|
|
74
76
|
|
|
@@ -96,8 +98,11 @@ this order:
|
|
|
96
98
|
3. Asks the registry whether this version is already published, and skips the
|
|
97
99
|
upload when it is. Re-pushing the same tag therefore does not publish again —
|
|
98
100
|
it only gets you as far as the GitHub Release.
|
|
99
|
-
4. Publishes with `npm publish --provenance --access public`.
|
|
100
|
-
signed attestation tying the tarball to this workflow run
|
|
101
|
+
4. Publishes with `npm publish --provenance --access public --ignore-scripts`.
|
|
102
|
+
That attaches a signed attestation tying the tarball to this workflow run
|
|
103
|
+
and this commit. `--ignore-scripts` skips the `prepublishOnly` hook: the
|
|
104
|
+
Gates step has already run the full chain, and npm would otherwise re-run
|
|
105
|
+
it a second time. A hand-run publish keeps the hook as its safety net.
|
|
101
106
|
5. Creates the GitHub Release, with notes taken from the changelog section by
|
|
102
107
|
`scripts/changelog-section.mjs`.
|
|
103
108
|
|
package/docs/REQUIREMENTS.zh.md
CHANGED
|
@@ -6,7 +6,9 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
|
|
|
6
6
|
第二份「当前状态陈述」——每条需求的权威正文仍在所指向的文档里,本文只回答
|
|
7
7
|
三个问题:**有哪些需求、在哪里规定、靠什么验证**。
|
|
8
8
|
|
|
9
|
-
**基线**:本文核对于 `main` 2026-10-19(基线 0.12.0
|
|
9
|
+
**基线**:本文核对于 `main` 2026-10-19(基线 0.12.0);0.22.0(2026-11-08)
|
|
10
|
+
复核了 doctor 与更新检查线(新增 R26–R28,R20 的测试文件数随发版刷新),
|
|
11
|
+
其余条目仍以上次全表核验为准。每次发版,或 CI 配置、
|
|
10
12
|
覆盖率阈值等可核验项变更后,本表须重新核验;一切以仓库现状为准。
|
|
11
13
|
|
|
12
14
|
维护规则与 [PARITY.md](PARITY.md) 的纪律一致:需求变更与登记表改动进同一笔
|
|
@@ -38,25 +40,28 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
|
|
|
38
40
|
| R4 | GUI 终端按会话路由:WSL 目录会话得发行版 shell,Windows 目录会话得 PowerShell(`hostSessions`) | ARCHITECTURE「Why the terminal provider is app-level」;LIMITATIONS 终端诸条 | ①②③⑤:路由判定、无目录启动落发行版、idle/busy/unknown 三态回收(`unknown` 必须暂停回收)逐项规定;tab 标题极限给出根因、上游提案与用户缓解 | `terminal.test.mjs`(terminalRoute 判定)、`terminal-activity.test.mjs`;probe:terminal | tab 标题读 `WSL`(UPSTREAM-TERMINAL-TITLE);host 终端 unknown 不回收——均为已声明边界 |
|
|
39
41
|
| R5 | 目录选择器列出已装发行版及其层级 | README「Install」;CONFIGURATION `directory-picker-wsl` 行 | ①②③⑤:根级列表、`includeHostHome`/`maxEntries`/`preferredDistro`、常驻 out 时 one-shot 回退;换行符文件名极限的边界论证闭合(`/` 不可能出现在名字里) | `listing.test.mjs`(`maxEntries` 封顶、行解析);probe:picker | `preferredDistro` 决定的根级 `path`/`home` 领位、`includeHostHome` 的排序姿态:单测与探针都没有断言(探针只查成员构成与截断旗标) |
|
|
40
42
|
| R6 | 端口可见性:`DSH_WSL_PORTS` 按节奏经常驻 agent 刷新 | README「Using it」;CONFIGURATION「`wsl-shell-env`」表 | ①⑤:机制(`/proc/net/tcp{,6}` 扫描)、`portsRefreshMs` 默认 10s、与 WSL2 localhost 转发的关系(平台行为)成文 | `ports.test.mjs`(解析层) | 轮询使常驻 agent 永不闲置回收(OI-4,已入 LIMITATIONS) |
|
|
41
|
-
| R7 | 模型可见的发行版事实与 WSLENV 政策:受管 `DSH_*` 前缀准入,`PATH` 刻意不转发 | README「Using it」「Recipes」 | ①②③:两个 Windows 路径变量带 `/p` 翻译、`PATH` 不转发的理由成文;传输环境钉死 essentials+`DSH_*`+过滤后 WSLENV;shell 解析失败则省略事实而非报假值(宁可缺报不误报) | `terminal.test.mjs`(`/p` 翻译)、`agent.test.mjs`(传输环境 WSLENV 钉死为受管项)、`provider.test.mjs
|
|
43
|
+
| R7 | 模型可见的发行版事实与 WSLENV 政策:受管 `DSH_*` 前缀准入,`PATH` 刻意不转发 | README「Using it」「Recipes」 | ①②③:两个 Windows 路径变量带 `/p` 翻译、`PATH` 不转发的理由成文;传输环境钉死 essentials+`DSH_*`+过滤后 WSLENV;shell 解析失败则省略事实而非报假值(宁可缺报不误报) | `terminal.test.mjs`(`/p` 翻译)、`agent.test.mjs`(传输环境 WSLENV 钉死为受管项)、`provider.test.mjs`(探针失败重试、不钉占位符)、`shell-env.test.mjs`(假 `wsl.exe` 下挂载/清扫/resolve 双路径与 doctorFact/windowsToPosix) | 已闭合(原残差:`lib/shell-env.js` 无单测、覆盖率报告不含该模块):`test:coverage` 实测该模块 行 97.7%/分支 83.6%/函数 92.9%,逐模块地板(85/70/60)达标,`coverage-allowlist` 豁免已撤;未覆盖项仅为需在驻 agent 的端口扫描成功臂(探针层) |
|
|
42
44
|
| R8 | 权限三档(read-only / workspace-write / danger-full-access)与提权提议流 | README「Sandbox」表;ARCHITECTURE「Error codes」 | ①②:三档行为逐档成表;模型可见两行前缀逐字给出;`FS_SANDBOX_DENIED` 可提权而 `FS_OUTSIDE_DISTRO` 不可,且区分理由明文(宽权限开不出另一个发行版) | `fs-decisions.test.mjs`、`provider.test.mjs`、`fsio-agent.test.mjs`(分类) | — |
|
|
43
45
|
| R9 | bubblewrap 沙箱:与 Linux runner 同参数、fail-closed、`enforcement: partial` 诚实上报 | ARCHITECTURE「Sandbox」全节;SECURITY「Sandbox enforcement is `partial` by design」 | ①②③⑤⑥:选型依据(ACL 令牌触不到 WSL)、探针失败不缓存、interop 洞 + `maskWindowsDrive` 收窄及其自身极限(binfmt 按内容分发)、完全关闭唯一路径(`wsl.conf`)、`sandbox: false` 退出——行为到边界到逃生门完整成链 | `sandbox.test.mjs`、`probe-cache.test.mjs`;probe:sandbox、probe:sandbox-off | interop 使 enforcement 恒为 partial——已声明的设计边界 |
|
|
44
46
|
| R10 | 文件搜索跑发行版自身的 rg,绝不跨 9p share | PARITY「Contract audit」第 2 条;LIMITATIONS「glob 和 grep」条 | ①②③:拦截点与参数逐字转发成文;缺 rg 浮出 exit 127 附 bootstrap 指引;grep 回退被拒绝且理由明文(不读 `.gitignore`,非 rg 替身) | `search-route.test.mjs`、`search-exec.test.mjs` | — |
|
|
45
47
|
| R11 | watch():inotify 优先(无界目录),轮询回退;粗粒度失效 | PARITY「Contract audit」第 1 条;LIMITATIONS watch 两条 | ①②③:契约向上追溯到宿主接缝(`changed()` 无载荷 → 粗粒度失效即可);inotify 递归且 0.5s 合并、文件/限深/无 inotify-tools 回退轮询;更旧 mtime 盲区只属轮询路径、`watchMaxDepth` 旋钮、目标消失响亮报错成文 | `watcher.test.mjs`;probe:watch(无 inotify 时 7/7;装 inotify-tools 后盲区检查改为期望事件) | 轮询回退的 mtime 盲区已声明;inotify 路径依赖发行版的 inotify-tools |
|
|
46
|
-
| R12 | share 基座退役:携带 `substrate: "share"` 的 profile 在 boot 被拒并附迁移 | README/CONFIGURATION/LIMITATIONS 三处一致 | ①②⑤:旧值处置与用户所见成文,迁移指引内嵌 | `fs-decisions.test.mjs`(拒绝消息与迁移指引文案) | boot 期拒绝分支无测试(构造器调 `shareSubstrateRefusal`,`src/index.ts:
|
|
47
|
-
| R13 | 会话级 systemd scope:命令共享后台进程/真实 `/tmp`/`ps`,scope 随会话结束停止;systemd + linger 缺失时预检带修复拒绝 | ADR 0001;README/CONFIGURATION/LIMITATIONS 的 `sessionSandbox` 条 | ①②③⑤:scope 生命周期(agent 为主进程、refcount、dispose stop)、`sessionSandbox: false`
|
|
48
|
+
| R12 | share 基座退役:携带 `substrate: "share"` 的 profile 在 boot 被拒并附迁移 | README/CONFIGURATION/LIMITATIONS 三处一致 | ①②⑤:旧值处置与用户所见成文,迁移指引内嵌 | `fs-decisions.test.mjs`(拒绝消息与迁移指引文案) | boot 期拒绝分支无测试(构造器调 `shareSubstrateRefusal`,`src/index.ts:1595`):`fs.boot.test.mjs` 只以 `sandbox: true` 启动该行,仓内没有构造 `substrate: "share"` profile 的测试 |
|
|
49
|
+
| R13 | 会话级 systemd scope:命令共享后台进程/真实 `/tmp`/`ps`,scope 随会话结束停止;systemd + linger 缺失时预检带修复拒绝 | ADR 0001;README/CONFIGURATION/LIMITATIONS 的 `sessionSandbox` 条 | ①②③⑤:scope 生命周期(agent 为主进程、refcount、dispose stop)、`sessionSandbox: false` 退出与 `auto` 回退、systemd/linger/systemd-run 四项预检与缓存策略成文;`/tmp` 与后台进程的保真边界限定在 runtime 开时 | `session-scope.test.mjs`、`session-runtime.test.mjs`、`provider.test.mjs`;真机会话验证(active scope、跨命令后台/`/tmp`、会话结束 0 units) | 硬崩溃可能留下 stale scope(启动清扫未随发,入 LIMITATIONS);受限写入已共享 runtime,读仍走无约束共享 agent,根级 fs-routing 不持有 session runtime |
|
|
48
50
|
| R14 | bootstrap:bwrap/ripgrep 等的就地体检与安装 | README「Install」「Troubleshooting」;CONFIGURATION | ①②⑤:`--install` 与只读体检两式、体检对象、错误消息补救指引成文 | 0.7.4 起脚本随包(`files` 收录,补救指引在 npm 安装下可用) | 脚本本身无 CI 腿(真机排错路径覆盖) |
|
|
49
51
|
| R15 | 错误码方言:每个 `FS_*` 码给出抛出者、含义、解除条件;`wsl.exe` 自身失败显式收编 | ARCHITECTURE「Error codes」表 | ①②:逐码三列成表;两类历史隐形失败(UTF-16 stdout、cwd 回退 exit 0)收编;`FS_OUTSIDE_DISTRO` 独立成码的理由明文 | `fs-decisions.test.mjs`、`fsio-agent.test.mjs`、`fs-substrate.test.mjs`、`provider.test.mjs`(断言码与消息) | — |
|
|
50
52
|
| R16 | 对端 parity 合同:fsio 文本机制逐字节复刻钉死的对端版本 | PEER-PARITY 全文 | ①④⑥:钉版、验证方法(npm pack 逐函数比对)、验证日期、刻意分歧逐条声明、bump 钉版即重跑的维护规则 | `fsio-agent.test.mjs`(distro 内半区 canary);对端比对为手动方法 | 钉版升级后需重跑比对(维护规则) |
|
|
51
53
|
| R17 | 常驻 agent 协议:ACK 计时看门狗、只读帧才重放、逐流输出上限、sha256 部署校验、租约存活、进程组两段杀 | CHANGELOG 0.3.0/0.6.0/0.7.3;PARITY Phase 1/Phase 3 | ①②④:每条健壮性属性有规格出处与实证记录;「EXEC/变异 FS 帧禁止盲重发」是写明的不变量 | `agent-protocol.test.mjs`(HELLO 版本+摘要)、`agent.test.mjs`、`agent-exec.test.mjs`(truncated 旗标)、`agent-fs-script.test.mjs`;probe:agent、probe:exec | — |
|
|
52
54
|
| R18 | 配置面:每键默认值成文;层组合语义(整行替换、不深合并、后层胜) | CONFIGURATION;`cordis.patch.yml` 头注 | ⑤:随发键成表、未列表键点名;覆盖方式的正确心智模型(整行替换)成文 | `composition.test.mjs`(层组合);`style.mjs`(`files` 契约) | — |
|
|
53
55
|
| R19 | 非目标集:不做什么与为什么 | LIMITATIONS 开篇原则;PARITY「Not applicable」 | ③:已知极限入册;不适用项「记下来免得像遗漏」 | —(文档性) | — |
|
|
54
|
-
| R20 | 验证策略:三层(fake → 真脚本过真线 → 真机探针)+ CI 矩阵 + 覆盖率阈值 | ARCHITECTURE「Test layers」;README「Development」 | ④:CI 在 Node 22/24 × Linux/Windows 上跑 `pnpm test`,`pnpm run test:coverage` 只在 Node 24 上跑(门槛旗标需 Node 22.8);Node 20 有意排除(`engines` 下限);覆盖率阈值 85/84/70(行/分支/函数),测量集合覆盖 `test/` 下
|
|
56
|
+
| R20 | 验证策略:三层(fake → 真脚本过真线 → 真机探针)+ CI 矩阵 + 覆盖率阈值 | ARCHITECTURE「Test layers」;README「Development」 | ④:CI 在 Node 22/24 × Linux/Windows 上跑 `pnpm test`,`pnpm run test:coverage` 只在 Node 24 上跑(门槛旗标需 Node 22.8);Node 20 有意排除(`engines` 下限);覆盖率阈值 85/84/70(行/分支/函数),测量集合覆盖 `test/` 下 48 个测试文件,且 `lib/*.js` 必须逐个实测或带理由豁免 | `pnpm test`、`pnpm run test:coverage`;CI(ci.yml) | 真机验证依赖 Windows 和可用的 WSL 发行版;非功能无量化目标(OI-1) |
|
|
55
57
|
| R21 | 安全过程:范围内外、响应时限、partial 属设计边界、凭据政策 | SECURITY 全文 | ②③⑥:范围、3/10/30 个工作日时限(标注「目标非合同」)、partial 定性、凭据零容忍成文 | —(过程性) | — |
|
|
56
58
|
| R22 | 支持矩阵:Windows 10/11 + WSL2 + Node `^22.19.0 \|\| >=24.0.0` + peer 版本范围 | SUPPORT 全文 | ⑥:支持与不受支持清单、peer 范围及精确开发依赖成文;Node 20 在范围外(理由见 SUPPORT,`engines` 为准) | `peerDependencies`、`devDependencies` 与 `engines`(`package.json`);CI 矩阵(ci.yml) | 新 peer 版本仍需验证 |
|
|
57
59
|
| R23 | 根平面 `ctx.fs` 按坐标路由:发行版 UNC 由发行版内 agent 服务(inotify 或轮询 watch),盘符路径留在宿主;接替随发的 `fs-sandbox` 行 | README「Architecture」;ARCHITECTURE「The root-plane filesystem takeover」;CONFIGURATION `fs-routing` 行;root-fs-routing.md(设计) | ①②③⑤:路由判定与接替理由(写围栏在根平面无消费者)成文;`distro` 的 `auto`/`default`/pin 三态、每个 UNC 目标由自身 distro 服务、pin 下拒外来路径,以及 `distroCwd`/`restrictToDistro`/`sandbox`/`maskWindowsDrive`/`watchMaxDepth` 逐键成表,且自成一行、不与会话级行联动;`sandbox` 失败关闭成文 | `fs-routing.test.mjs`(纯谓词与路径助手)、`provider.test.mjs`(per-distro substrate/worldPath) | 类本体无单测(需 DSH peers 与实机);由组合测试与真机探针覆盖 |
|
|
58
60
|
| R24 | GUI 文件树与预览在发行版内服务:沿用随包 `workspace-files` 行(server/client 成对),经根级 `fs-routing` 读写 distro UNC;盘符 scope 交宿主 | README「Architecture」;ARCHITECTURE「The root-plane filesystem takeover」;CONFIGURATION `workspace-files` 行 | ①②③⑤:沿用官方 server/client,浏览器 `file` provider 不丢,预览可用;路由与宿主/发行版 scope 成文;容量键由官方行承载、可覆盖;较直连多 4–6 次往返及其取舍在 LIMITATIONS 成文 | `fs-routing.test.mjs`、组合测试(`workspace-files` 保持启用、接管行不存在) | — |
|
|
59
61
|
| R25 | 安装/卸载/升级流:四步安装、幂等陷阱及补救、ES 模块重启须知 | README「Install」「Troubleshooting」 | ①③:每步预期输出、`add` 幂等性陷阱的补救(先 remove 再 add)、pnpm UNC 链接极限成文 | 人工步骤,无自动化(依赖真实 dsh CLI + Windows) | 无自动化守护 |
|
|
62
|
+
| R26 | 诊断三入口同一份逐项报告:独立 CLI、`/wsl-doctor` UI 命令(宿主侧、不进模型历史)、`wsl_doctor` 模型工具(进程内合并常驻状态);报告按 distro 分组逐项带显式状态标记与失败修复;`--quick`/`--sections`(工具侧 `depth`/`section`)收窄范围且未运行项显式列为跳过 | DIAGNOSTICS「The surfaces」;README「Install」;CONFIGURATION「Diagnose configuration and refusals」 | ①②④:三入口的分工与边界成文;范围化报告携带 `scope`、`--fix` 要求完整运行成文;逐项化与跳过行的形态由 parity 测试钉住 | `wsl-doctor-tool.test.mjs`(digest/渲染/CHECK_CATALOG parity)、`wsl-doctor-command.test.mjs`(语法/handler/子进程面)、`doctor.test.mjs`(CLI 采集) | 真机多 distro 报告依赖实机;报告形态的宿主渲染(命令面 UI)无单测 |
|
|
63
|
+
| R27 | doctor CLI 独立性:不加载 peer 依赖与宿主服务,插件运行时本身损坏时仍可诊断;固定骨架本地化(Windows 区域设置检测,`--locale`/`DSH_WSL_DOCTOR_LOCALE` 覆盖),逐项事实保持英文,`--json` 语言无关 | DIAGNOSTICS「The surfaces」;CONFIGURATION「Message language」;LIMITATIONS「消息本地化」条 | ①②④:peer-free 内联与防漂移对拍成文;catalog 键 parity 与占位符行为有测试 | `doctor.test.mjs`(inlining parity、locale catalog、检测与覆盖) | 语言检测需 Windows registry(非 Windows 上回退英文,`run` 不抛错) |
|
|
64
|
+
| R28 | 每日更新检查经宿主插件管理器委托,不自取;事实进 `DSH_WSL_PLUGIN_UPDATE`;`wsl-update-check.enabled: false` 可关闭 | README「Install」;CONFIGURATION `wsl-update-check` 行 | ①②⑤:委托路径、TTL、关闭开关成文 | `update-check.test.mjs` | doctor 的按需 registry 查询独立于此行(`DSH_UPDATE_REGISTRIES` 控制,气隙可跳过) |
|
|
60
65
|
|
|
61
66
|
登记覆盖面:上表登记 README 与 docs/ 中对外成文的行为承诺(含随发的服务面)。
|
|
62
67
|
**有意未接线**的模块不设条目——`lib/file-reference-wsl.js`(`@` 补全的发行版侧
|
|
@@ -72,7 +77,7 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
|
|
|
72
77
|
| OI-1 | 非功能无量化目标:冷启动上界、常驻 agent 内存上界、watch 通知延迟上界均无规定 | 决策待定(开发工具语境可辩护,企业语境缺口) | 本表 R20 残差 |
|
|
73
78
|
| OI-2 | 真机回归(协议/基座/沙箱的最高风险面)仅手动探针;CI runner 无 WSL distro | 环境受限决策,已如实记录 | ARCHITECTURE「Test layers」 |
|
|
74
79
|
| OI-3 | 默认翻转(substrate、协议 v3→v4)无灰度、无遥测;迁移安全押在 boot 拒绝与响亮错误上 | OSS 取舍,企业语境缺口 | CHANGELOG 0.3.0 / 0.7.3 |
|
|
75
|
-
| OI-4 | 端口轮询经共享 agent 使常驻进程永不闲置回收(LIMITATIONS 已记);工程修复=移出共享 agent 或改 one-shot | 工程项 | `lib/shell-env.js:
|
|
80
|
+
| OI-4 | 端口轮询经共享 agent 使常驻进程永不闲置回收(LIMITATIONS 已记);工程修复=移出共享 agent 或改 one-shot | 工程项 | `lib/shell-env.js:173`(端口扫描)、`:190`(刷新计时器) |
|
|
76
81
|
| OI-5 | 发布后无目录 fsync,shell agent 忽略 `sync -f` 失败;机器崩溃可能丢失数据或目录项(见 LIMITATIONS) | 工程项 | `agent/wsl-agent.sh`、`agent/native/spike/src/main.rs` |
|
|
77
82
|
|
|
78
83
|
OI-7 已解决(2026-10-19):`test/fs-routing.test.mjs` 已进入 `test:unit` 与
|
package/docs/ROADMAP-1.0.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Roadmap 1.0: the WSL plugin the DSH ecosystem should have
|
|
2
2
|
|
|
3
|
-
Status: working plan, last refreshed 2026-11-
|
|
3
|
+
Status: working plan, last refreshed 2026-11-09 against `0.22.0` (the WSL-316 doctor loop and the 0.21/0.22 GUI/localization line; the §2 area tables remain the 0.15.0 baseline and are explicitly historical).
|
|
4
4
|
The 0.12.0 baseline that motivated the plan is kept below as history.
|
|
5
5
|
Audience: maintainers and contributors. This is a plan, not a release promise.
|
|
6
6
|
The short version: **from "the only WSL plugin" to "the default WSL plugin"** —
|
|
@@ -44,20 +44,21 @@ North-star metrics:
|
|
|
44
44
|
| Real-machine probe suite | 100% on Tier 1, nightly |
|
|
45
45
|
| Known documentation drift | 0 |
|
|
46
46
|
|
|
47
|
-
## 2.
|
|
47
|
+
## 2. The 0.15.0 baseline
|
|
48
48
|
|
|
49
49
|
> WSL-101 landed on 2026-10-19: the distro follows the workspace and the
|
|
50
50
|
> per-distro caches are in place. 0.15.0 (2026-10-27) shipped the compatibility
|
|
51
51
|
> matrix, container legs, qemu aarch64, doctor, preset helper, and
|
|
52
52
|
> `interopVisibility`. The table that *motivated* the plan is frozen as the
|
|
53
|
-
> 0.12.0 baseline; the 0.15.0 row
|
|
53
|
+
> 0.12.0 baseline; the 0.15.0 row records the state at that point. Current
|
|
54
|
+
> status lives in the release notes and the WSL-316 section below.
|
|
54
55
|
|
|
55
|
-
### 0.15.0 (
|
|
56
|
+
### 0.15.0 baseline (historical)
|
|
56
57
|
|
|
57
|
-
| Area | Strong
|
|
58
|
+
| Area | Strong at 0.15.0 | Remaining gap |
|
|
58
59
|
|---|---|---|
|
|
59
60
|
| Execution | Native agent default; systemd session scope; `distro: auto` coordinate routing; concurrent distros | Physical aarch64 WSL (out of scope); non-systemd real-machine session probe unrun |
|
|
60
|
-
| Files | in-distro agent substrate, root-plane `fs-routing` in unit+coverage, kernel-enforced confined writes; protocol v7 `FSB` batch (0.
|
|
61
|
+
| Files | in-distro agent substrate, root-plane `fs-routing` in unit+coverage, kernel-enforced confined writes; protocol v7 `FSB` batch (0.19.0) serves the GUI preview's stat+list+read shape in one round trip | `@` completion still 9p until the upstream `FileReferenceTraversal` seam; the preview's remaining round trips (open/patch) are one per op by design |
|
|
61
62
|
| Sandbox | `bubblewrap`, fail-closed, `enforcement: partial`, `interopVisibility` / `maskWindowsDrive` | Plugin keys do not disable WSL interop; distro `[interop] enabled=false` must be configured separately |
|
|
62
63
|
| Onboarding | `doctor`, `bootstrap` / `bootstrap-import`, session preflight, `profile-preset` helper | Clean-machine first-run timing still unmeasured; session UI has no toast seam |
|
|
63
64
|
| Configuration | Every shipped key documented; nested `preset-wsl` rows edited through the helper | An id patch of `wsl-shell` / `wsl-fs` still only warns |
|
|
@@ -131,7 +132,7 @@ correct once configured" and "the plugin is correct on first contact".
|
|
|
131
132
|
| [P1.1](#wsl-201--sessionsandbox-auto) | `sessionSandbox: auto` for distros without systemd | Non-systemd distro runs the first command under per-command bwrap and reports the narrower scope; explicit `true` still refuses | M |
|
|
132
133
|
| [P1.2](#wsl-202--compatibility-matrix-and-aarch64) | Compatibility matrix and real validation | Tier 1 (Ubuntu/Debian, systemd, x86_64) green; aarch64 spike runs under qemu; Tier 2 status documented | L |
|
|
133
134
|
| [P1.3](#wsl-203--installupgradeuninstall-e2e) | Install/upgrade/uninstall E2E | Temporary `DSH_HOME`, packed tarball, profile install (Plugins page or `dsh plugin add`), `--dump-config` where the CLI exists, remove; upgrade from the previous minor | M |
|
|
134
|
-
| [P1.4](#wsl-204
|
|
135
|
+
| [P1.4](#wsl-204---references-seam) | `@` references seam | Measure the 9p cost; land the upstream `FileReferenceTraversal` seam or a declared, tested fallback | L |
|
|
135
136
|
| [P1.5](#wsl-205--lsp-provider-spike) | LSP provider spike | A documented plan and prototype for `ctx.lsp` over fs + subprocess, conditional on the desktop composition mounting LSP | M |
|
|
136
137
|
| [P1.6](#wsl-206--gui-preview-performance) | GUI preview performance | Baseline measured; p95 <= 1s/MiB for a representative page; v6 only if the measurement justifies it | M |
|
|
137
138
|
| [P1.7](#wsl-207--agent-recovery-and-status) | Agent recovery and status | In-flight death recovers within 2s or fails with a named state; `doctor`/status shows agent and scope health | M |
|
|
@@ -167,7 +168,7 @@ may move if the compatibility matrix exposes a higher-severity failure.
|
|
|
167
168
|
|---|---|---|---|
|
|
168
169
|
| Time to first command | Not systematically measured | p50 <= 5 min, p90 <= 15 min | Ten clean-machine runs |
|
|
169
170
|
| Tier 1 first-run success | Not measured | >= 95% | Compatibility matrix |
|
|
170
|
-
| Real-machine probes |
|
|
171
|
+
| Real-machine probes | 17 with `--include-fs` (16 base scripts plus `run.sh`; suite grew to 17 on 2026-11-06); nightly on the self-hosted Windows+WSL runner since 0.15.0 (cron 21:30 UTC, hosted runners skip green) | 100% green on the nightly run | CI `probes` job history |
|
|
171
172
|
| FS single-op p95 | ~22ms host round trip | <= 30ms | `fs-queue.mjs` |
|
|
172
173
|
| 16 concurrent reads p95 | 2.4-8.2ms | <= 20ms | `fs-queue.mjs` |
|
|
173
174
|
| GUI preview p95 | Backend 63.5 ms/MiB (service round trips on top) | <= 1s/MiB | `probe:gui-preview` |
|
|
@@ -370,7 +371,7 @@ remedy for `no-systemd`, `no-user-manager`, `no-systemd-run` and `no-linger`
|
|
|
370
371
|
(`sessionSandbox: false` on the row skips the session half). The advisory is
|
|
371
372
|
logged **and** published as a session-scoped `wsl-preflight` runtime-context
|
|
372
373
|
entry, so it is visible in the session transcript rather than only in the app
|
|
373
|
-
log. DSH 0.2.1 has no toast/banner seam; the exact ask was filed as
|
|
374
|
+
log. DSH 0.2.2-rc.1 still has no toast/banner seam; the exact ask was filed as
|
|
374
375
|
[#10263](https://github.com/deepseek-ai/deepseek-harness/discussions/10263) and is recorded in
|
|
375
376
|
[UPSTREAM-SESSION-NOTICE.md](UPSTREAM-SESSION-NOTICE.md), and
|
|
376
377
|
[LIMITATIONS.md](LIMITATIONS.md#session-start-advisories) records the boundary.
|
|
@@ -606,7 +607,7 @@ agent queue; the service-level round-trip count remains qualitative.
|
|
|
606
607
|
|
|
607
608
|
**Status:** implemented (2026-10-19): a resident that spends its one rebuild
|
|
608
609
|
enters a bounded revival (2/4/8 s backoff, one fresh transport and one rebuild
|
|
609
|
-
per attempt); after three
|
|
610
|
+
per attempt); after three revivals the fourth death is permanent and names the restart
|
|
610
611
|
remedy. `WslAgent.status()` exposes state, pid, lastError, deaths and pending.
|
|
611
612
|
`pnpm run doctor` probes a fresh shell resident (`agent.handshake`: pid,
|
|
612
613
|
protocol, script digest) and reports the agent cache and live/stale
|
|
@@ -829,7 +830,7 @@ release gate; full probe suite.
|
|
|
829
830
|
**Priority:** P2 · **Size:** L · **Labels:** `area:onboarding`,
|
|
830
831
|
`type:feature`, `priority:P2`
|
|
831
832
|
|
|
832
|
-
**Status:** implemented on the plugin side (2026-11-07); the app-closed probe suite legs and the GUI-session closed-loop leg are on the maintainer checklist — the real-machine record is [2026-11-07 doctor real-machine](https://github.com/Big-Dao/dsh-plugin-wsl-env/blob/main/docs/superpowers/probe-runs/2026-11-07-doctor-real-machine.md). Designed and implemented the same day. The initial three
|
|
833
|
+
**Status:** implemented on the plugin side (2026-11-07); the app-closed probe suite legs and the GUI-session closed-loop leg are on the maintainer checklist — the real-machine record is [2026-11-07 doctor real-machine](https://github.com/Big-Dao/dsh-plugin-wsl-env/blob/main/docs/superpowers/probe-runs/2026-11-07-doctor-real-machine.md). Designed and implemented the same day; 0.21–0.22 then added the itemized per-distro digest, the `/wsl-doctor` command, the `wsl_doctor` tool and CLI/OS-locale localization. The initial three
|
|
833
834
|
check groups (`distro.wsl-mode`, `config.wslconfig`, `distro.wsl-conf-*`) were
|
|
834
835
|
filed in [issue #35](https://github.com/Big-Dao/dsh-plugin-wsl-env/issues/35)
|
|
835
836
|
from the competitive triage (gaps #2/#3/#4). A commercial-doctor review added
|
package/docs/ROADMAP.md
CHANGED
|
@@ -23,7 +23,7 @@ section.
|
|
|
23
23
|
| A7 | native shared read agent (protocol v5 at the time); 16 concurrent shared reads 2.4–4.1 ms at the A7 measurement; shell remains the fallback |
|
|
24
24
|
| A8 | aarch64 18-check under qemu-user in CI (built binary and committed `linux-aarch64` artifact); physical aarch64 WSL out of scope, see COMPATIBILITY.md |
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Step details
|
|
27
27
|
|
|
28
28
|
### A7 — native shared read agent (v5) — done
|
|
29
29
|
|
|
@@ -34,13 +34,13 @@ shell as the fallback:
|
|
|
34
34
|
|
|
35
35
|
- **selection:** `shell` forces the shell; otherwise the shared agent tries
|
|
36
36
|
the packaged binary for the distro's architecture (or the dev override).
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
In `auto`, shared reads fall back to the shell when native preparation fails;
|
|
38
|
+
`agentBackend: native` refuses instead;
|
|
39
39
|
- **preparation:** `ensureNativeBackend` once per distro (cache/digest/exec
|
|
40
|
-
probe); the `WslAgent` with `expectedDigest` and `signalable: false`;
|
|
41
|
-
preparation or HELLO failure the shell agent
|
|
42
|
-
the
|
|
43
|
-
- **surface:** the
|
|
40
|
+
probe); the `WslAgent` with `expectedDigest` and `signalable: false`; in
|
|
41
|
+
`auto`, a preparation or HELLO failure lets the shell agent serve the reads;
|
|
42
|
+
`native` reports the failure instead;
|
|
43
|
+
- **surface:** the six FS ops of that era and `dsh-fs` side
|
|
44
44
|
channel; the
|
|
45
45
|
`fs-substrate`/`DistroFs` parse is unchanged; the A2 differential covers the
|
|
46
46
|
records;
|
|
@@ -49,7 +49,7 @@ shell as the fallback:
|
|
|
49
49
|
concurrent shared reads at **2.4-4.1 ms** (from 342-614 ms; later reruns
|
|
50
50
|
span 2.4-8.2 ms); the first start
|
|
51
51
|
pays the ensure/cache cost (~70 ms once). The shell still serves the reads
|
|
52
|
-
under `agentBackend: shell
|
|
52
|
+
under `agentBackend: shell`, and under `auto` after a native failure.
|
|
53
53
|
|
|
54
54
|
### A8 — aarch64 functional validation — done
|
|
55
55
|
|
|
@@ -59,6 +59,8 @@ and the committed `agent/native/linux-aarch64/dsh-wsl-agent`. Physical
|
|
|
59
59
|
aarch64 WSL is out of scope (COMPATIBILITY.md). The native-session probe on
|
|
60
60
|
real aarch64 hardware is not planned.
|
|
61
61
|
|
|
62
|
+
## Next
|
|
63
|
+
|
|
62
64
|
### A9 — maintenance
|
|
63
65
|
|
|
64
66
|
- Release A7 as a minor (0.11.0) through the tag workflow — done;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Status: measured and deferred (2026-10-19; checked against a
|
|
4
4
|
`dsh-v0.2.1-rc.2`-era upstream — the checked version was not recorded at
|
|
5
|
-
the time. Plugin-side behavior re-verified 2026-11-02 against the
|
|
6
|
-
|
|
5
|
+
the time. Plugin-side behavior re-verified 2026-11-02 against the peer floor
|
|
6
|
+
then in force, `>=0.2.1-rc.3`; the floor has since moved to `>=0.2.2-rc.1` in
|
|
7
|
+
`package.json`). Online check 2026-11-06: upstream `v0.2.2-rc.1` (2026-11-04) still mounts no
|
|
7
8
|
`FileReferenceTraversal`; the interface lives in open discussion
|
|
8
9
|
[#10264](https://github.com/deepseek-ai/deepseek-harness/discussions/10264) with no implementation. The `@` completion in
|
|
9
10
|
`@deepseek-ai/dsh-file-reference-local` walks the workspace with
|