dsh-wsl-tool 1.10.11 → 1.10.12
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/PUBLISHING.md +16 -0
- package/README.md +11 -1
- package/README.zh-CN.md +7 -1
- package/package.json +4 -1
package/PUBLISHING.md
CHANGED
|
@@ -117,6 +117,22 @@ both that the entry stays relative and that it resolves.
|
|
|
117
117
|
artifact, not just the metadata. Scripted requests to `npmjs.com`'s HTML hit a
|
|
118
118
|
Cloudflare challenge; the registry API is the source of truth.
|
|
119
119
|
|
|
120
|
+
Two things make a published release look unpublished, so rule them out before
|
|
121
|
+
believing a negative:
|
|
122
|
+
|
|
123
|
+
- **A green run is not proof that npm was published.** The `Publish to npm`
|
|
124
|
+
step exits 0 with a warning when `NPM_TOKEN` is absent, so the run stays
|
|
125
|
+
green while npm is skipped. Ask the jobs API whether the step really ran —
|
|
126
|
+
a real run has `started_at`; a skipped one has `conclusion: skipped` and no
|
|
127
|
+
timestamp — and ask the registry what actually handles the version
|
|
128
|
+
(`time[<version>]` on the packument).
|
|
129
|
+
|
|
130
|
+
- **A failing `npm whoami` says nothing about the release.** A stale token in
|
|
131
|
+
`~/.npmrc` only means that machine cannot publish by hand; CI has its own
|
|
132
|
+
credential. Release state lives in the three artifacts — the tag's commit,
|
|
133
|
+
the release asset, and the registry tarball — so compare their bytes rather
|
|
134
|
+
than your credentials.
|
|
135
|
+
|
|
120
136
|
Expect the registry's caches to lag a publish by minutes, and to lag
|
|
121
137
|
*inconsistently*: the full packument, the abbreviated (install) packument,
|
|
122
138
|
`/-/package/<name>/dist-tags` and the tarball URL each cache separately, so one
|
package/README.md
CHANGED
|
@@ -128,7 +128,17 @@ forever.
|
|
|
128
128
|
|
|
129
129
|
## Compatibility
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
The manifest declares the DSH it needs — `"engines": { "dsh": ">=0.1.7-rc.2" }` —
|
|
132
|
+
which is the floor this section documents. The plugin market reads that
|
|
133
|
+
declaration from the published manifest and shows it as a requirement on the
|
|
134
|
+
entry (`DSH >=0.1.7-rc.2`), warning before an install or update onto an older
|
|
135
|
+
host; DSH itself ignores `engines`, so the declaration is advice, not a gate.
|
|
136
|
+
The `-rc.2` is load-bearing: `>=0.1.7` alone excludes the `0.1.7-rc.2` release
|
|
137
|
+
this line was verified on, and the market would then report the plugin as
|
|
138
|
+
incompatible with its own verified host.
|
|
139
|
+
|
|
140
|
+
Verified against DSH **0.1.7-rc.2** (earlier releases of this plugin were verified
|
|
141
|
+
on 0.1.5-rc.2): the tool schemas
|
|
132
142
|
pass DSH's own `assertSupportedJsonSchema`, the subprocess seam is exercised
|
|
133
143
|
against the real provider rather than a shim, and the background-job path is
|
|
134
144
|
checked against the real job registry, including the session-id ownership fence
|
package/README.zh-CN.md
CHANGED
|
@@ -109,7 +109,13 @@ launcher: WSL 版本: 2.6.3.0 · 内核版本: 6.6.87.2-1 · WSLg 版本: 1.0.71
|
|
|
109
109
|
|
|
110
110
|
## 兼容性
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
清单里声明了它需要的 DSH —— `"engines": { "dsh": ">=0.1.7-rc.2" }`,也就是本节记录的
|
|
113
|
+
下限。插件市场会从已发布的清单读取这条声明,在条目上标成要求(`DSH >=0.1.7-rc.2`),并在
|
|
114
|
+
装到更老的宿主上之前给出提醒;DSH 自身不读 `engines`,所以它是提示而不是门禁。那个
|
|
115
|
+
`-rc.2` 不能省:只写 `>=0.1.7` 会把本条验证过的 `0.1.7-rc.2` 排除掉,市场于是会把插件
|
|
116
|
+
判成与它自己验证过的宿主不兼容。
|
|
117
|
+
|
|
118
|
+
已在 DSH **0.1.7-rc.2** 上验证(本插件的更早版本曾在 0.1.5-rc.2 上验证):工具 schema 通过 DSH 自己的
|
|
113
119
|
`assertSupportedJsonSchema`;subprocess 接缝是跑在**真实 provider** 上而非替身;后台任务
|
|
114
120
|
路径跑在**真实 job 注册表**上,包含 0.1.7 收紧的「会话 id 属主围栏」。这套检查就是
|
|
115
121
|
`test/real-seam.mjs`,约一分钟即可重验一个新宿主——升级后把它指向新的 DSH 安装即可:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-wsl-tool",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.12",
|
|
4
4
|
"description": "WSL tools for DSH: run Linux commands (fresh shell per call, exit codes and signals, timeouts, truncated output spilled to a file, optional stdin), convert Windows↔WSL paths, report the WSL environment (kernel, systemd, docker, drives), send long builds to background jobs, and guard destructive commands. A left-sidebar panel switches each capability; an opt-in patch points the sidebar terminal at WSL. WSL calls run below the DSH sandbox.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"optional": true
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"dsh": ">=0.1.7-rc.2"
|
|
23
|
+
},
|
|
21
24
|
"license": "MIT",
|
|
22
25
|
"repository": {
|
|
23
26
|
"type": "git",
|