dsh-plugin-wsl-env 0.26.0 → 0.26.1
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 +58 -0
- package/README.md +54 -157
- package/SUPPORT.md +2 -2
- package/SUPPORT.zh.md +2 -2
- package/docs/ARCHITECTURE.md +13 -4
- package/docs/ARCHITECTURE.zh.md +10 -3
- package/docs/CONFIGURATION.md +5 -8
- package/docs/CONFIGURATION.zh.md +4 -6
- package/docs/DIAGNOSTICS.md +16 -0
- package/docs/DIAGNOSTICS.zh.md +11 -0
- package/docs/MIGRATION.md +4 -1
- package/docs/MIGRATION.zh.md +4 -1
- package/docs/PEER-PARITY.md +16 -0
- package/docs/QUICKSTART.md +20 -14
- package/docs/QUICKSTART.zh.md +17 -15
- package/docs/README.zh.md +58 -145
- package/docs/RELEASING.md +2 -2
- package/docs/REQUIREMENTS.zh.md +1 -1
- package/docs/ROADMAP-1.0.md +1 -1
- package/docs/VALUE.md +27 -0
- package/docs/VALUE.zh.md +27 -0
- package/docs/screenshots/with-plugin.png +0 -0
- package/docs/screenshots/with-plugin.svg +59 -0
- package/docs/screenshots/with-plugin.zh.png +0 -0
- package/docs/screenshots/with-plugin.zh.svg +56 -0
- package/docs/screenshots/without-plugin.png +0 -0
- package/docs/screenshots/without-plugin.svg +50 -0
- package/docs/screenshots/without-plugin.zh.png +0 -0
- package/docs/screenshots/without-plugin.zh.svg +45 -0
- package/lib/doctor-report.js +8 -1
- package/lib/peer-versions.d.ts +53 -0
- package/lib/peer-versions.js +137 -0
- package/lib/update-check.d.ts +2 -2
- package/lib/update-check.js +2 -2
- package/lib/wsl-doctor-command.js +2 -1
- package/package.json +9 -2
- package/scripts/doctor.mjs +127 -9
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="940" height="640" viewBox="0 0 940 640" font-family="-apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif">
|
|
2
|
+
<defs>
|
|
3
|
+
<marker id="arrow2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
4
|
+
<path d="M0,0 L10,5 L0,10 z" fill="#64748B"/>
|
|
5
|
+
</marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="940" height="640" fill="#FFFFFF"/>
|
|
8
|
+
|
|
9
|
+
<text x="470" y="34" text-anchor="middle" font-size="17" font-weight="600" fill="#111827">有本插件——一个会话,两半执行</text>
|
|
10
|
+
<text x="470" y="56" text-anchor="middle" font-size="12.5" fill="#6B7280">界面与模型调用留在 Windows;命令与文件在发行版内运行</text>
|
|
11
|
+
|
|
12
|
+
<rect x="40" y="78" width="860" height="280" rx="10" fill="#EFF6FF" stroke="#93C5FD" stroke-width="1.5"/>
|
|
13
|
+
<text x="56" y="102" font-size="12" font-weight="700" fill="#1D4ED8" letter-spacing="0.5">WINDOWS 宿主</text>
|
|
14
|
+
|
|
15
|
+
<rect x="60" y="114" width="820" height="100" rx="8" fill="#FFFFFF" stroke="#60A5FA"/>
|
|
16
|
+
<text x="76" y="138" font-size="13" font-weight="700" fill="#1E3A8A">DeepSeek Harness Desktop</text>
|
|
17
|
+
<text x="76" y="160" font-size="12.5" fill="#374151">GUI——对话 · 文件树 · 预览 · 终端面板</text>
|
|
18
|
+
<text x="76" y="180" font-size="12.5" fill="#374151">模型调用(LLM API 流量)</text>
|
|
19
|
+
<text x="76" y="200" font-size="12.5" fill="#374151">配置与会话状态——<tspan font-family="ui-monospace, Consolas, monospace" font-size="12">%USERPROFILE%\.dsh</tspan></text>
|
|
20
|
+
|
|
21
|
+
<rect x="60" y="230" width="820" height="108" rx="8" fill="#DBEAFE" stroke="#60A5FA"/>
|
|
22
|
+
<text x="76" y="254" font-size="13" font-weight="700" fill="#1E40AF">dsh-plugin-wsl-env——宿主半边</text>
|
|
23
|
+
<text x="76" y="278" font-size="12" fill="#1E3A8A" font-family="ui-monospace, Consolas, monospace">fs-routing: \wsl.localhost\… → 发行版 · C:\… → 宿主</text>
|
|
24
|
+
<text x="76" y="298" font-size="12.5" fill="#1E3A8A">auto-preset:会话打开发行版目录时自动绑定 wsl preset</text>
|
|
25
|
+
<text x="76" y="318" font-size="12.5" fill="#1E3A8A">发行版选择器 · doctor 宿主侧探针 · Windows 目录会话保持不变</text>
|
|
26
|
+
|
|
27
|
+
<line x1="470" y1="366" x2="470" y2="414" stroke="#64748B" stroke-width="2" marker-start="url(#arrow2)" marker-end="url(#arrow2)"/>
|
|
28
|
+
<text x="486" y="390" font-size="12.5" font-weight="700" fill="#374151">经 wsl.exe 的 stdio 管道——整个会话一次</text>
|
|
29
|
+
<rect x="150" y="376" width="250" height="22" rx="11" fill="#DCFCE7"/>
|
|
30
|
+
<text x="275" y="391" text-anchor="middle" font-size="11.5" font-weight="700" fill="#15803D">无端口 · 无服务 · 零监听</text>
|
|
31
|
+
|
|
32
|
+
<rect x="40" y="422" width="860" height="188" rx="10" fill="#F0FDF4" stroke="#86EFAC" stroke-width="1.5"/>
|
|
33
|
+
<text x="56" y="446" font-size="12" font-weight="700" fill="#15803D" letter-spacing="0.5">WSL 2 发行版(LINUX 虚机)</text>
|
|
34
|
+
<text x="76" y="470" font-size="13" font-weight="700" fill="#166534">常驻 agent</text>
|
|
35
|
+
<text x="180" y="470" font-size="12" fill="#374151" font-family="ui-monospace, Consolas, monospace">~/.cache/dsh-wsl/agent/(内容寻址,此外无任何持久物)</text>
|
|
36
|
+
|
|
37
|
+
<rect x="60" y="484" width="266" height="104" rx="8" fill="#FFFFFF" stroke="#BBF7D0"/>
|
|
38
|
+
<text x="76" y="508" font-size="12.5" font-weight="700" fill="#166534">命令</text>
|
|
39
|
+
<text x="76" y="530" font-size="11.5" fill="#374151">纯 POSIX——不带 wsl.exe 前缀;</text>
|
|
40
|
+
<text x="76" y="548" font-size="11.5" fill="#374151">登录 shell:PATH、nvm、cargo、rc</text>
|
|
41
|
+
<text x="76" y="566" font-size="11.5" fill="#374151">每条命令一道 bubblewrap 围栏</text>
|
|
42
|
+
|
|
43
|
+
<rect x="337" y="484" width="266" height="104" rx="8" fill="#FFFFFF" stroke="#BBF7D0"/>
|
|
44
|
+
<text x="353" y="508" font-size="12.5" font-weight="700" fill="#166534">文件</text>
|
|
45
|
+
<text x="353" y="530" font-size="11.5" fill="#374151">ext4 原生语义</text>
|
|
46
|
+
<text x="353" y="548" font-size="11.5" fill="#374151">发行版自己的 rg · watch</text>
|
|
47
|
+
<text x="353" y="566" font-size="11.5" fill="#374151">git 变更快照</text>
|
|
48
|
+
|
|
49
|
+
<rect x="614" y="484" width="266" height="104" rx="8" fill="#FFFFFF" stroke="#BBF7D0"/>
|
|
50
|
+
<text x="630" y="508" font-size="12.5" font-weight="700" fill="#166534">会话 runtime</text>
|
|
51
|
+
<text x="630" y="530" font-size="11.5" fill="#374151">一个 systemd user scope——环境与</text>
|
|
52
|
+
<text x="630" y="548" font-size="11.5" fill="#374151">后台状态跨命令保持;dev server</text>
|
|
53
|
+
<text x="630" y="566" font-size="11.5" fill="#374151">存活 · 端口 → DSH_WSL_PORTS</text>
|
|
54
|
+
|
|
55
|
+
<text x="470" y="628" text-anchor="middle" font-size="12" fill="#6B7280">路径决定归属:发行版目录的会话在这里运行,盘符目录的会话留在 Windows——同一进程</text>
|
|
56
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="940" height="580" viewBox="0 0 940 580" font-family="-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif">
|
|
2
|
+
<defs>
|
|
3
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
4
|
+
<path d="M0,0 L10,5 L0,10 z" fill="#64748B"/>
|
|
5
|
+
</marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="940" height="580" fill="#FFFFFF"/>
|
|
8
|
+
|
|
9
|
+
<text x="470" y="34" text-anchor="middle" font-size="17" font-weight="600" fill="#111827">DSH Desktop for Windows — without the plugin</text>
|
|
10
|
+
<text x="470" y="56" text-anchor="middle" font-size="12.5" fill="#6B7280">both modes lack a POSIX execution environment — Windows workspaces get CMD / PowerShell, WSL workspaces get wsl.exe wrappers</text>
|
|
11
|
+
|
|
12
|
+
<!-- Windows host -->
|
|
13
|
+
<rect x="40" y="78" width="860" height="322" rx="10" fill="#EFF6FF" stroke="#93C5FD" stroke-width="1.5"/>
|
|
14
|
+
<text x="56" y="102" font-size="12" font-weight="700" fill="#1D4ED8" letter-spacing="0.5">WINDOWS HOST</text>
|
|
15
|
+
|
|
16
|
+
<rect x="60" y="114" width="820" height="104" rx="8" fill="#FFFFFF" stroke="#60A5FA"/>
|
|
17
|
+
<text x="76" y="138" font-size="13" font-weight="700" fill="#1E3A8A">DeepSeek Harness Desktop</text>
|
|
18
|
+
<text x="76" y="160" font-size="12.5" fill="#374151">GUI — chat · file tree · previews · terminal panel</text>
|
|
19
|
+
<text x="76" y="180" font-size="12.5" fill="#374151">model calls (LLM API traffic)</text>
|
|
20
|
+
<text x="76" y="200" font-size="12.5" fill="#374151">profiles & session state — <tspan font-family="ui-monospace, Consolas, monospace" font-size="12">%USERPROFILE%\.dsh</tspan></text>
|
|
21
|
+
|
|
22
|
+
<!-- pain A: native Windows execution -->
|
|
23
|
+
<rect x="60" y="234" width="402" height="152" rx="8" fill="#FEF2F2" stroke="#FCA5A5"/>
|
|
24
|
+
<text x="76" y="258" font-size="13" font-weight="700" fill="#B91C1C">Windows workspace: commands run in CMD / PowerShell</text>
|
|
25
|
+
<text x="76" y="284" font-size="11.5" fill="#7F1D1D">✗ the model’s training corpus is POSIX-first —</text>
|
|
26
|
+
<text x="76" y="306" font-size="11.5" fill="#7F1D1D">✗ its CMD / PowerShell output is error-prone</text>
|
|
27
|
+
<text x="76" y="328" font-size="11.5" fill="#7F1D1D">✗ nvm, cargo, pyenv, rc files never apply</text>
|
|
28
|
+
<text x="76" y="352" font-size="11.5" fill="#B91C1C" font-weight="700">the model’s best language is not spoken here</text>
|
|
29
|
+
|
|
30
|
+
<!-- pain B: the wsl.exe workaround -->
|
|
31
|
+
<rect x="478" y="234" width="402" height="152" rx="8" fill="#FFFBEB" stroke="#FCD34D"/>
|
|
32
|
+
<text x="494" y="258" font-size="13" font-weight="700" fill="#B45309">WSL workspace: wrap each call in wsl.exe</text>
|
|
33
|
+
<text x="494" y="284" font-size="11.5" fill="#92400E">✗ the wsl.exe prefix on every command line</text>
|
|
34
|
+
<text x="494" y="306" font-size="11.5" fill="#92400E">✗ each call is an isolated space — environment,</text>
|
|
35
|
+
<text x="508" y="324" font-size="11.5" fill="#92400E">cwd and process state don’t carry across</text>
|
|
36
|
+
<text x="494" y="348" font-size="11.5" fill="#92400E">✗ multi-step scripts break at the seams</text>
|
|
37
|
+
<text x="494" y="372" font-size="11.5" fill="#B45309" font-weight="700">stateful work does not survive the wrapping</text>
|
|
38
|
+
|
|
39
|
+
<!-- the 9p bridge -->
|
|
40
|
+
<line x1="470" y1="404" x2="470" y2="460" stroke="#64748B" stroke-width="2" marker-end="url(#arrow)"/>
|
|
41
|
+
<text x="486" y="422" font-size="12" fill="#374151" font-family="ui-monospace, Consolas, monospace">file tools read \wsl.localhost\ubuntu\…</text>
|
|
42
|
+
<text x="486" y="442" font-size="12" fill="#6B7280">9p share — a slow round trip per read / write / search,</text>
|
|
43
|
+
<text x="486" y="460" font-size="12" fill="#6B7280">no native Linux file semantics</text>
|
|
44
|
+
|
|
45
|
+
<!-- distro -->
|
|
46
|
+
<rect x="40" y="468" width="860" height="88" rx="10" fill="#F0FDF4" stroke="#86EFAC" stroke-width="1.5"/>
|
|
47
|
+
<text x="56" y="492" font-size="12" font-weight="700" fill="#15803D" letter-spacing="0.5">WSL 2 DISTRO (LINUX VM)</text>
|
|
48
|
+
<text x="76" y="516" font-size="12.5" fill="#374151">the project lives here: ext4 · the distro’s rg · git hooks · dev servers</text>
|
|
49
|
+
<text x="76" y="538" font-size="12" fill="#9CA3AF">the one place the model’s scripts run well — and execution never gets there</text>
|
|
50
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="940" height="580" viewBox="0 0 940 580" font-family="-apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif">
|
|
2
|
+
<defs>
|
|
3
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
4
|
+
<path d="M0,0 L10,5 L0,10 z" fill="#64748B"/>
|
|
5
|
+
</marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="940" height="580" fill="#FFFFFF"/>
|
|
8
|
+
|
|
9
|
+
<text x="470" y="34" text-anchor="middle" font-size="17" font-weight="600" fill="#111827">DSH Desktop for Windows —— 没有本插件时</text>
|
|
10
|
+
<text x="470" y="56" text-anchor="middle" font-size="12.5" fill="#6B7280">两种模式都没有 POSIX 执行环境:Windows 工作区落在 CMD / PowerShell,WSL 工作区靠 wsl.exe 逐条包装</text>
|
|
11
|
+
|
|
12
|
+
<rect x="40" y="78" width="860" height="322" rx="10" fill="#EFF6FF" stroke="#93C5FD" stroke-width="1.5"/>
|
|
13
|
+
<text x="56" y="102" font-size="12" font-weight="700" fill="#1D4ED8" letter-spacing="0.5">WINDOWS 宿主</text>
|
|
14
|
+
|
|
15
|
+
<rect x="60" y="114" width="820" height="104" rx="8" fill="#FFFFFF" stroke="#60A5FA"/>
|
|
16
|
+
<text x="76" y="138" font-size="13" font-weight="700" fill="#1E3A8A">DeepSeek Harness Desktop</text>
|
|
17
|
+
<text x="76" y="160" font-size="12.5" fill="#374151">GUI——对话 · 文件树 · 预览 · 终端面板</text>
|
|
18
|
+
<text x="76" y="180" font-size="12.5" fill="#374151">模型调用(LLM API 流量)</text>
|
|
19
|
+
<text x="76" y="200" font-size="12.5" fill="#374151">配置与会话状态——<tspan font-family="ui-monospace, Consolas, monospace" font-size="12">%USERPROFILE%\.dsh</tspan></text>
|
|
20
|
+
|
|
21
|
+
<rect x="60" y="234" width="402" height="152" rx="8" fill="#FEF2F2" stroke="#FCA5A5"/>
|
|
22
|
+
<text x="76" y="258" font-size="13" font-weight="700" fill="#B91C1C">Windows 工作区:命令运行在 CMD / PowerShell</text>
|
|
23
|
+
<text x="76" y="284" font-size="11.5" fill="#7F1D1D">✗ 模型训练语料以 POSIX 为主——</text>
|
|
24
|
+
<text x="76" y="306" font-size="11.5" fill="#7F1D1D">✗ 生成的 CMD / PowerShell 脚本容易出错</text>
|
|
25
|
+
<text x="76" y="328" font-size="11.5" fill="#7F1D1D">✗ nvm、cargo、pyenv 与 rc 文件全部不生效</text>
|
|
26
|
+
<text x="76" y="352" font-size="11.5" fill="#B91C1C" font-weight="700">模型最擅长的语言,在这里行不通</text>
|
|
27
|
+
|
|
28
|
+
<rect x="478" y="234" width="402" height="152" rx="8" fill="#FFFBEB" stroke="#FCD34D"/>
|
|
29
|
+
<text x="494" y="258" font-size="13" font-weight="700" fill="#B45309">WSL 工作区:每条命令套一层 wsl.exe</text>
|
|
30
|
+
<text x="494" y="284" font-size="11.5" fill="#92400E">✗ 每行命令都要带 wsl.exe 前缀</text>
|
|
31
|
+
<text x="494" y="306" font-size="11.5" fill="#92400E">✗ 每次调用都是孤立空间——环境、cwd 与</text>
|
|
32
|
+
<text x="508" y="324" font-size="11.5" fill="#92400E">进程状态无法跨调用保持</text>
|
|
33
|
+
<text x="494" y="348" font-size="11.5" fill="#92400E">✗ 多步脚本在接缝处断掉</text>
|
|
34
|
+
<text x="494" y="372" font-size="11.5" fill="#B45309" font-weight="700">有状态的工作撑不过这层包装</text>
|
|
35
|
+
|
|
36
|
+
<line x1="470" y1="404" x2="470" y2="460" stroke="#64748B" stroke-width="2" marker-end="url(#arrow)"/>
|
|
37
|
+
<text x="486" y="422" font-size="12" fill="#374151" font-family="ui-monospace, Consolas, monospace">文件工具读取 \wsl.localhost\ubuntu\…</text>
|
|
38
|
+
<text x="486" y="442" font-size="12" fill="#6B7280">9p 共享——每次读 / 写 / 搜索一个慢往返,</text>
|
|
39
|
+
<text x="486" y="460" font-size="12" fill="#6B7280">没有原生的 Linux 文件语义</text>
|
|
40
|
+
|
|
41
|
+
<rect x="40" y="468" width="860" height="88" rx="10" fill="#F0FDF4" stroke="#86EFAC" stroke-width="1.5"/>
|
|
42
|
+
<text x="56" y="492" font-size="12" font-weight="700" fill="#15803D" letter-spacing="0.5">WSL 2 发行版(LINUX 虚机)</text>
|
|
43
|
+
<text x="76" y="516" font-size="12.5" fill="#374151">项目在这里:ext4 · 发行版自己的 rg · git hooks · dev server</text>
|
|
44
|
+
<text x="76" y="538" font-size="12" fill="#9CA3AF">模型脚本唯一跑得好的地方——执行却从未到达</text>
|
|
45
|
+
</svg>
|
package/lib/doctor-report.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { sharedAgent } from "./agent-shared.js";
|
|
2
2
|
import { mergeAutoPresetSeam, mergeLiveResidentStatus } from "./doctor-live.js";
|
|
3
|
+
import { withHostPeerVersions } from "./peer-versions.js";
|
|
3
4
|
import { spawn } from "node:child_process";
|
|
4
5
|
import { fileURLToPath } from "node:url";
|
|
5
6
|
import { dirname, join } from "node:path";
|
|
@@ -147,9 +148,15 @@ export async function doctorReport(distro, options) {
|
|
|
147
148
|
// The stdout is parsed regardless; only a run that produced no versioned
|
|
148
149
|
// report rejects.
|
|
149
150
|
const timeoutMs = options?.timeoutMs ?? DOCTOR_TIMEOUT_MS;
|
|
151
|
+
// The child inherits this process's environment either way; the overlay adds
|
|
152
|
+
// the peer set this host actually resolved, which the child cannot look up
|
|
153
|
+
// itself (a separate Node process has no profile interception).
|
|
154
|
+
const env = withHostPeerVersions(options?.envPath === undefined
|
|
155
|
+
? process.env
|
|
156
|
+
: { ...process.env, PATH: `${options.envPath}:${process.env.PATH ?? ""}` });
|
|
150
157
|
const run = await runDoctorProcess(argv, {
|
|
151
158
|
timeoutMs,
|
|
152
|
-
|
|
159
|
+
env,
|
|
153
160
|
...(options?.signal === undefined ? {} : { signal: options.signal }),
|
|
154
161
|
});
|
|
155
162
|
let report;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** The private env contract between an in-app spawner and `scripts/doctor.mjs`. */
|
|
2
|
+
export declare const DOCTOR_PEERS_ENV = "DSH_WSL_DOCTOR_PEERS";
|
|
3
|
+
/**
|
|
4
|
+
* The version declared by the nearest `package.json` above a resolved file.
|
|
5
|
+
*
|
|
6
|
+
* Exported for the coverage suite: the walk's two failure arms (a malformed
|
|
7
|
+
* manifest, and the filesystem root) are not reachable with real peers.
|
|
8
|
+
* @param file - one resolved module file.
|
|
9
|
+
* @returns the version, or undefined when no readable manifest declares one.
|
|
10
|
+
*/
|
|
11
|
+
export declare function versionAbove(file: string): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve one peer's version the way this process loads it.
|
|
14
|
+
*
|
|
15
|
+
* Exported for the coverage suite: a peer that does not export
|
|
16
|
+
* `./package.json` exercises the entry-file fallback.
|
|
17
|
+
*
|
|
18
|
+
* `require.resolve` runs through the host's profile resolution when there is
|
|
19
|
+
* one, so a linked plugin sees the installation's copies and a plain process
|
|
20
|
+
* sees whatever `node_modules` it would actually import. The package's
|
|
21
|
+
* `./package.json` export is preferred because it names the version directly;
|
|
22
|
+
* a package that does not export it still resolves by its entry file.
|
|
23
|
+
*
|
|
24
|
+
* @param require - the anchored resolver.
|
|
25
|
+
* @param name - the peer package.
|
|
26
|
+
* @returns the resolved version, or undefined when the peer is absent.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolvedPeerVersion(require: NodeJS.Require, name: string): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The peer versions this process resolves.
|
|
31
|
+
*
|
|
32
|
+
* Deliberately uncached: a harness upgrade or a plugin-manager reload changes
|
|
33
|
+
* the answer, and one doctor spawn costs one small resolve per peer.
|
|
34
|
+
*
|
|
35
|
+
* @returns a name → version map; empty when the manifest or the peers are
|
|
36
|
+
* unreadable.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolvedPeerVersions(): Record<string, string>;
|
|
39
|
+
/**
|
|
40
|
+
* Overlay the resolved peer set on one doctor child environment.
|
|
41
|
+
*
|
|
42
|
+
* The variable is set even when the map is empty: its **presence** is what
|
|
43
|
+
* tells the doctor that an in-app process already attempted resolution, so a
|
|
44
|
+
* peer missing from the map means "the host could not resolve it" and must be
|
|
45
|
+
* reported as unchecked — not looked up again in the plugin's physical tree,
|
|
46
|
+
* which may hold a stale copy. Absent means the standalone CLI, which has no
|
|
47
|
+
* host resolution and keeps its own lookup.
|
|
48
|
+
*
|
|
49
|
+
* @param env - the base environment (normally a copy of `process.env`).
|
|
50
|
+
* @param versions - the map; defaults to {@link resolvedPeerVersions}.
|
|
51
|
+
* @returns the child environment to spawn with.
|
|
52
|
+
*/
|
|
53
|
+
export declare function withHostPeerVersions(env: NodeJS.ProcessEnv, versions?: Record<string, string>): NodeJS.ProcessEnv;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The peer set the spawning host process resolved, handed to the doctor CLI.
|
|
3
|
+
*
|
|
4
|
+
* The doctor is a separate process on purpose (see `scripts/doctor.mjs`), and
|
|
5
|
+
* a separate Node process resolves bare imports with Node's own lookup only.
|
|
6
|
+
* That is the wrong answer for a linked plugin: the host installs a profile
|
|
7
|
+
* resolution that projects a linked plugin's declared peers onto the
|
|
8
|
+
* installation's single copies, so the doctor's `createRequire` from the
|
|
9
|
+
* plugin directory can land on an unrelated `node_modules` above the mirror
|
|
10
|
+
* (or on nothing at all) while the plugin itself loads the host's copies.
|
|
11
|
+
* This module reads what the plugin process actually resolves — the same
|
|
12
|
+
* `createRequire` lookup, already intercepted by the host when one is
|
|
13
|
+
* installed — and passes it to the child in {@link DOCTOR_PEERS_ENV}. The
|
|
14
|
+
* variable's presence, not its size, is the signal: the map can be partial or
|
|
15
|
+
* empty (a peer the host could not resolve), and the doctor still treats it as
|
|
16
|
+
* authoritative instead of looking the missing peer up again beside the
|
|
17
|
+
* plugin. The standalone CLI, which has no host and therefore no variable,
|
|
18
|
+
* keeps its own lookup and reports peers it cannot see as unchecked.
|
|
19
|
+
*
|
|
20
|
+
* This is a TypeScript source built to `lib/peer-versions.js`; edit THIS file
|
|
21
|
+
* and run `pnpm run build` — the artifact under `lib/` is generated, and
|
|
22
|
+
* `pnpm test` fails when it drifts.
|
|
23
|
+
*
|
|
24
|
+
* @module dsh-plugin-wsl-env/peer-versions
|
|
25
|
+
*/
|
|
26
|
+
import { readFileSync } from "node:fs";
|
|
27
|
+
import { createRequire } from "node:module";
|
|
28
|
+
import { dirname, join } from "node:path";
|
|
29
|
+
import { fileURLToPath } from "node:url";
|
|
30
|
+
/** The private env contract between an in-app spawner and `scripts/doctor.mjs`. */
|
|
31
|
+
export const DOCTOR_PEERS_ENV = "DSH_WSL_DOCTOR_PEERS";
|
|
32
|
+
/** The installed plugin root (`lib/`'s parent), the anchor for its own manifest. */
|
|
33
|
+
const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
34
|
+
/**
|
|
35
|
+
* The peer names this package declares, in manifest order.
|
|
36
|
+
* @returns the names; an unreadable manifest lists none.
|
|
37
|
+
*/
|
|
38
|
+
function peerNames() {
|
|
39
|
+
try {
|
|
40
|
+
// The manifest is this package's own file; the shape is the declaration it ships.
|
|
41
|
+
const manifest = JSON.parse(readFileSync(join(ROOT, "package.json"), "utf8"));
|
|
42
|
+
return Object.keys(manifest.peerDependencies ?? {});
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The version declared by the nearest `package.json` above a resolved file.
|
|
50
|
+
*
|
|
51
|
+
* Exported for the coverage suite: the walk's two failure arms (a malformed
|
|
52
|
+
* manifest, and the filesystem root) are not reachable with real peers.
|
|
53
|
+
* @param file - one resolved module file.
|
|
54
|
+
* @returns the version, or undefined when no readable manifest declares one.
|
|
55
|
+
*/
|
|
56
|
+
export function versionAbove(file) {
|
|
57
|
+
let directory = dirname(file);
|
|
58
|
+
for (;;) {
|
|
59
|
+
try {
|
|
60
|
+
// A peer's manifest is its declaration file; only the version string is read.
|
|
61
|
+
const manifest = JSON.parse(readFileSync(join(directory, "package.json"), "utf8"));
|
|
62
|
+
return typeof manifest.version === "string" ? manifest.version : undefined;
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
const parent = dirname(directory);
|
|
66
|
+
if (parent === directory)
|
|
67
|
+
return undefined;
|
|
68
|
+
directory = parent;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Resolve one peer's version the way this process loads it.
|
|
74
|
+
*
|
|
75
|
+
* Exported for the coverage suite: a peer that does not export
|
|
76
|
+
* `./package.json` exercises the entry-file fallback.
|
|
77
|
+
*
|
|
78
|
+
* `require.resolve` runs through the host's profile resolution when there is
|
|
79
|
+
* one, so a linked plugin sees the installation's copies and a plain process
|
|
80
|
+
* sees whatever `node_modules` it would actually import. The package's
|
|
81
|
+
* `./package.json` export is preferred because it names the version directly;
|
|
82
|
+
* a package that does not export it still resolves by its entry file.
|
|
83
|
+
*
|
|
84
|
+
* @param require - the anchored resolver.
|
|
85
|
+
* @param name - the peer package.
|
|
86
|
+
* @returns the resolved version, or undefined when the peer is absent.
|
|
87
|
+
*/
|
|
88
|
+
export function resolvedPeerVersion(require, name) {
|
|
89
|
+
try {
|
|
90
|
+
return versionAbove(require.resolve(`${name}/package.json`));
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
// Fall through to the entry file; not every package exports its manifest.
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
return versionAbove(require.resolve(name));
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The peer versions this process resolves.
|
|
104
|
+
*
|
|
105
|
+
* Deliberately uncached: a harness upgrade or a plugin-manager reload changes
|
|
106
|
+
* the answer, and one doctor spawn costs one small resolve per peer.
|
|
107
|
+
*
|
|
108
|
+
* @returns a name → version map; empty when the manifest or the peers are
|
|
109
|
+
* unreadable.
|
|
110
|
+
*/
|
|
111
|
+
export function resolvedPeerVersions() {
|
|
112
|
+
const require = createRequire(join(ROOT, "package.json"));
|
|
113
|
+
const versions = {};
|
|
114
|
+
for (const name of peerNames()) {
|
|
115
|
+
const version = resolvedPeerVersion(require, name);
|
|
116
|
+
if (version !== undefined)
|
|
117
|
+
versions[name] = version;
|
|
118
|
+
}
|
|
119
|
+
return versions;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Overlay the resolved peer set on one doctor child environment.
|
|
123
|
+
*
|
|
124
|
+
* The variable is set even when the map is empty: its **presence** is what
|
|
125
|
+
* tells the doctor that an in-app process already attempted resolution, so a
|
|
126
|
+
* peer missing from the map means "the host could not resolve it" and must be
|
|
127
|
+
* reported as unchecked — not looked up again in the plugin's physical tree,
|
|
128
|
+
* which may hold a stale copy. Absent means the standalone CLI, which has no
|
|
129
|
+
* host resolution and keeps its own lookup.
|
|
130
|
+
*
|
|
131
|
+
* @param env - the base environment (normally a copy of `process.env`).
|
|
132
|
+
* @param versions - the map; defaults to {@link resolvedPeerVersions}.
|
|
133
|
+
* @returns the child environment to spawn with.
|
|
134
|
+
*/
|
|
135
|
+
export function withHostPeerVersions(env, versions = resolvedPeerVersions()) {
|
|
136
|
+
return { ...env, [DOCTOR_PEERS_ENV]: JSON.stringify(versions) };
|
|
137
|
+
}
|
package/lib/update-check.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The plugin's update check: notice when a newer release exists, stop there.
|
|
3
3
|
*
|
|
4
|
-
* Upgrading today means re-installing by hand (Plugins page
|
|
5
|
-
*
|
|
4
|
+
* Upgrading today means re-installing by hand (the Plugins page) and the
|
|
5
|
+
* harness's own plugin-manager already answers
|
|
6
6
|
* "which versions exist and do they fit this DSH" — `listVersions` resolves
|
|
7
7
|
* dist-tags, deprecation, and the `engines.dsh`/peer compatibility of every
|
|
8
8
|
* candidate against the running DSH. This service makes that answer arrive
|
package/lib/update-check.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The plugin's update check: notice when a newer release exists, stop there.
|
|
3
3
|
*
|
|
4
|
-
* Upgrading today means re-installing by hand (Plugins page
|
|
5
|
-
*
|
|
4
|
+
* Upgrading today means re-installing by hand (the Plugins page) and the
|
|
5
|
+
* harness's own plugin-manager already answers
|
|
6
6
|
* "which versions exist and do they fit this DSH" — `listVersions` resolves
|
|
7
7
|
* dist-tags, deprecation, and the `engines.dsh`/peer compatibility of every
|
|
8
8
|
* candidate against the running DSH. This service makes that answer arrive
|
|
@@ -31,6 +31,7 @@ import { spawn } from "node:child_process";
|
|
|
31
31
|
import { dirname, resolve } from "node:path";
|
|
32
32
|
import { fileURLToPath } from "node:url";
|
|
33
33
|
import { distroOfUnc } from "./distro-route.js";
|
|
34
|
+
import { withHostPeerVersions } from "./peer-versions.js";
|
|
34
35
|
import { digestReport, renderDigest, SECTIONS } from "./wsl-doctor-tool.js";
|
|
35
36
|
import { mergeAutoPresetSeam } from "./doctor-live.js";
|
|
36
37
|
export const name = "wsl-doctor-command";
|
|
@@ -133,7 +134,7 @@ export function parseDoctorInput(rawInput) {
|
|
|
133
134
|
export function runDoctorCli(argv, signal, timeoutMs = DOCTOR_CLI_TIMEOUT_MS) {
|
|
134
135
|
return new Promise((resolvePromise, rejectPromise) => {
|
|
135
136
|
const child = spawn(process.execPath, [DOCTOR_SCRIPT, ...argv], {
|
|
136
|
-
env: { ...process.env, ELECTRON_RUN_AS_NODE: "1" },
|
|
137
|
+
env: withHostPeerVersions({ ...process.env, ELECTRON_RUN_AS_NODE: "1" }),
|
|
137
138
|
windowsHide: true,
|
|
138
139
|
stdio: ["ignore", "pipe", "pipe"],
|
|
139
140
|
signal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-wsl-env",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "在 WSL 的 Linux 实例中打开项目工作区,在对应 Linux 空间中进行命令执行、运行 shell 脚本和文件访问,以获得全套 Linux Shell 工具链收益,并通过 bubblewrap 对命令进行沙箱隔离",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -8,7 +8,13 @@
|
|
|
8
8
|
"dsh-plugin",
|
|
9
9
|
"cordis",
|
|
10
10
|
"wsl",
|
|
11
|
-
"
|
|
11
|
+
"wsl2",
|
|
12
|
+
"windows",
|
|
13
|
+
"linux",
|
|
14
|
+
"deepseek",
|
|
15
|
+
"ai-agent",
|
|
16
|
+
"coding-agent",
|
|
17
|
+
"bubblewrap"
|
|
12
18
|
],
|
|
13
19
|
"type": "module",
|
|
14
20
|
"types": "./lib/client-host.d.ts",
|
|
@@ -149,6 +155,7 @@
|
|
|
149
155
|
"docs/README.zh.md",
|
|
150
156
|
"docs/QUICKSTART.md",
|
|
151
157
|
"docs/screenshots/*.png",
|
|
158
|
+
"docs/screenshots/*.svg",
|
|
152
159
|
"docs/PERFORMANCE.md",
|
|
153
160
|
"docs/COMPATIBILITY.md",
|
|
154
161
|
"docs/CONFIGURATION.md",
|
package/scripts/doctor.mjs
CHANGED
|
@@ -802,21 +802,113 @@ function comparePrerelease(left, right) {
|
|
|
802
802
|
return 0;
|
|
803
803
|
}
|
|
804
804
|
|
|
805
|
+
/** The private env contract: the peer set the spawning host process resolved. */
|
|
806
|
+
const HOST_PEERS_ENV = "DSH_WSL_DOCTOR_PEERS";
|
|
807
|
+
|
|
808
|
+
/** Per-directory peer declarations, read once per doctor run. */
|
|
809
|
+
const peerDeclarations = new Map();
|
|
810
|
+
|
|
805
811
|
/**
|
|
806
|
-
*
|
|
812
|
+
* The peer names one package project declares.
|
|
813
|
+
*
|
|
814
|
+
* The host's linked-plugin resolution applies a peer declaration at the first
|
|
815
|
+
* ancestor `node_modules` position whose project declares the name; the
|
|
816
|
+
* physical copy there is the one that position owns. A `node_modules`
|
|
817
|
+
* directory with no manifest above it (the stale tree a harness upgrade
|
|
818
|
+
* leaves behind) declares nothing and has no vote.
|
|
819
|
+
*
|
|
820
|
+
* @param {string} directory - the project directory that owns one `node_modules`.
|
|
821
|
+
* @returns {Set<string>} its declared peer names; empty when the manifest is absent.
|
|
822
|
+
*/
|
|
823
|
+
function declaredPeers(directory) {
|
|
824
|
+
let peers = peerDeclarations.get(directory);
|
|
825
|
+
if (peers === undefined) {
|
|
826
|
+
try {
|
|
827
|
+
const manifest = /** @type {{ peerDependencies?: Record<string, string> }} */ (JSON.parse(readFileSync(join(directory, "package.json"), "utf8")));
|
|
828
|
+
peers = new Set(Object.keys(manifest.peerDependencies ?? {}));
|
|
829
|
+
} catch {
|
|
830
|
+
peers = new Set();
|
|
831
|
+
}
|
|
832
|
+
peerDeclarations.set(directory, peers);
|
|
833
|
+
}
|
|
834
|
+
return peers;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* The directory of one peer as the plugin's own package tree carries it.
|
|
839
|
+
*
|
|
840
|
+
* Scoped to the first ancestor position that declares the peer. That mirrors
|
|
841
|
+
* the runtime's projection rule and keeps a copy from a `node_modules` above
|
|
842
|
+
* the plugin (an old installation tree, or a hoisted workspace) from being
|
|
843
|
+
* reported as the plugin's peer set. When the declaring position has no
|
|
844
|
+
* copy, the peer is not installed with the plugin — the standalone process
|
|
845
|
+
* cannot see whether the runtime projects an installation copy, so it reports
|
|
846
|
+
* that as unchecked rather than failed.
|
|
847
|
+
*
|
|
848
|
+
* @param {string} packageName - the peer package.
|
|
849
|
+
* @param {string} [root] - the plugin root; defaults to this script's root.
|
|
850
|
+
* @returns the package directory, or undefined when the plugin does not carry it.
|
|
851
|
+
*/
|
|
852
|
+
export function peerPackageDir(packageName, root = ROOT) {
|
|
853
|
+
const require = createRequire(join(root, "package.json"));
|
|
854
|
+
for (const searchPath of require.resolve.paths(packageName) ?? []) {
|
|
855
|
+
if (!declaredPeers(dirname(searchPath)).has(packageName)) continue;
|
|
856
|
+
const candidate = join(searchPath, packageName);
|
|
857
|
+
return existsSync(join(candidate, "package.json")) ? candidate : undefined;
|
|
858
|
+
}
|
|
859
|
+
return undefined;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Read the installed version of one peer, or undefined when absent.
|
|
807
864
|
* @param {string} packageName - the peer package.
|
|
808
865
|
* @returns {string | undefined} the installed version.
|
|
809
866
|
*/
|
|
810
867
|
function installedPeer(packageName) {
|
|
811
|
-
const
|
|
868
|
+
const directory = peerPackageDir(packageName);
|
|
869
|
+
if (directory === undefined) return undefined;
|
|
812
870
|
try {
|
|
813
|
-
const manifest = /** @type {{ version?: string }} */ (JSON.parse(readFileSync(
|
|
871
|
+
const manifest = /** @type {{ version?: string }} */ (JSON.parse(readFileSync(join(directory, "package.json"), "utf8")));
|
|
814
872
|
return manifest.version;
|
|
815
873
|
} catch {
|
|
816
874
|
return undefined;
|
|
817
875
|
}
|
|
818
876
|
}
|
|
819
877
|
|
|
878
|
+
/**
|
|
879
|
+
* The peer versions the spawning host process resolved, or undefined when
|
|
880
|
+
* this run is the standalone CLI.
|
|
881
|
+
*
|
|
882
|
+
* Presence of the variable is the signal: the in-app spawners always set it,
|
|
883
|
+
* even when the map is empty or partial, because a JSON object can only carry
|
|
884
|
+
* the peers that resolved. A missing peer then means "the host could not
|
|
885
|
+
* resolve it" and is reported unchecked — never looked up again in the
|
|
886
|
+
* plugin's physical tree, which may hold a stale copy from an older
|
|
887
|
+
* installation. A malformed value is treated as absent: it cannot come from
|
|
888
|
+
* {@link withHostPeerVersions}, so the standalone lookup is the honest
|
|
889
|
+
* fallback.
|
|
890
|
+
*
|
|
891
|
+
* @returns the name → version map, or undefined when the variable is absent
|
|
892
|
+
* or unparseable.
|
|
893
|
+
*/
|
|
894
|
+
function hostPeerVersions() {
|
|
895
|
+
const raw = process.env[HOST_PEERS_ENV];
|
|
896
|
+
if (raw === undefined || raw.length === 0) return undefined;
|
|
897
|
+
let parsed;
|
|
898
|
+
try {
|
|
899
|
+
parsed = JSON.parse(raw);
|
|
900
|
+
} catch {
|
|
901
|
+
return undefined;
|
|
902
|
+
}
|
|
903
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) return undefined;
|
|
904
|
+
/** @type {Record<string, string>} */
|
|
905
|
+
const versions = {};
|
|
906
|
+
for (const [name, version] of Object.entries(parsed)) {
|
|
907
|
+
if (typeof version === "string" && version.length > 0) versions[name] = version;
|
|
908
|
+
}
|
|
909
|
+
return versions;
|
|
910
|
+
}
|
|
911
|
+
|
|
820
912
|
/**
|
|
821
913
|
* The install remedy for one distro and family.
|
|
822
914
|
* @param {string} distro - the distro name.
|
|
@@ -1765,17 +1857,43 @@ async function main(options) {
|
|
|
1765
1857
|
}
|
|
1766
1858
|
|
|
1767
1859
|
// ---- peers ---------------------------------------------------------------
|
|
1860
|
+
// The host runtime projects a linked plugin's declared peers onto the
|
|
1861
|
+
// installation's single copies, so the spawning in-app process hands its
|
|
1862
|
+
// resolved set over. When that variable is present it is authoritative even
|
|
1863
|
+
// if partial or empty: a peer it omits could not be resolved by the host,
|
|
1864
|
+
// and falling back to this process's own lookup would report a stale copy
|
|
1865
|
+
// beside the plugin. Only the standalone CLI, with no variable at all,
|
|
1866
|
+
// looks in the plugin's tree; there, a peer nobody can see is unchecked
|
|
1867
|
+
// rather than failed, because the runtime may project an installation copy.
|
|
1768
1868
|
const peers = Object.entries(manifest.peerDependencies ?? {});
|
|
1869
|
+
const hostPeers = hostPeerVersions();
|
|
1769
1870
|
const badPeers = [];
|
|
1770
1871
|
const unknownPeers = [];
|
|
1872
|
+
const uncheckedPeers = [];
|
|
1873
|
+
let matchedPeers = 0;
|
|
1771
1874
|
for (const [name, range] of peers) {
|
|
1772
|
-
const installed = installedPeer(name);
|
|
1773
|
-
if (installed === undefined)
|
|
1774
|
-
|
|
1775
|
-
|
|
1875
|
+
const installed = hostPeers === undefined ? installedPeer(name) : hostPeers[name];
|
|
1876
|
+
if (installed === undefined) {
|
|
1877
|
+
uncheckedPeers.push(name);
|
|
1878
|
+
continue;
|
|
1879
|
+
}
|
|
1880
|
+
const satisfied = peerSatisfied(installed, range);
|
|
1881
|
+
if (satisfied === false) badPeers.push(`${name}: ${installed} (want ${range})`);
|
|
1882
|
+
else if (satisfied === undefined) unknownPeers.push(`${name}: ${installed} (range ${range} unchecked)`);
|
|
1883
|
+
else matchedPeers += 1;
|
|
1884
|
+
}
|
|
1885
|
+
if (badPeers.length === 0) {
|
|
1886
|
+
const hostNote = hostPeers === undefined ? "" : " (host runtime)";
|
|
1887
|
+
const unknownNote = unknownPeers.length > 0 ? `; ${unknownPeers.length} unrecognized range` : "";
|
|
1888
|
+
const uncheckedNote = uncheckedPeers.length > 0
|
|
1889
|
+
? (hostPeers === undefined
|
|
1890
|
+
? `; ${uncheckedPeers.length} not visible to this process (the runtime projects peers from the installation)`
|
|
1891
|
+
: `; ${uncheckedPeers.length} not resolved by the host runtime`)
|
|
1892
|
+
: "";
|
|
1893
|
+
check("peers.versions", "ok", "Peer versions", `${matchedPeers} pinned peer(s) match${hostNote}${unknownNote}${uncheckedNote}`);
|
|
1894
|
+
} else {
|
|
1895
|
+
check("peers.versions", "fail", "Peer versions", badPeers.join("; "), "install the peer set this plugin pins (pnpm install in the plugin, or reinstall/upgrade it against this harness); see docs/PEER-PARITY.md");
|
|
1776
1896
|
}
|
|
1777
|
-
if (badPeers.length === 0) check("peers.versions", "ok", "Peer versions", `${peers.length} pinned peer(s) match${unknownPeers.length > 0 ? `; ${unknownPeers.length} unchecked` : ""}`);
|
|
1778
|
-
else check("peers.versions", "fail", "Peer versions", badPeers.join("; "), "install the peer set this plugin pins (pnpm install in the plugin, or reinstall/upgrade it against this harness); see docs/PEER-PARITY.md");
|
|
1779
1897
|
|
|
1780
1898
|
phase("surveys");
|
|
1781
1899
|
// ---- effective configuration (verdict inputs, reported) ------------------
|