dsh-trajectory-traceview-plus 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.3 — 2026-11-24
4
+
5
+ ### Fixed
6
+
7
+ - **搜索框里的 `↑` / `↓` 导航原来根本不存在。** README §7 的快捷键表从存在起就写着这一行,而两条处理路径都跳过了它:面板级处理器遇到 `input` 目标直接 `return`,搜索框级处理器只认 `Enter` / `Escape`。于是浏览器查找最自然的两个键按下去毫无反应。现在补上(复用「下一个 / 上一个命中」按钮本来就调用的 `gotoMatch`,行为含环形回绕一致)。
8
+ - **README §10 的安全声明失准。** 原文写「不写入任何存储」,实际每个会话会往 `sessionStorage` 写一条 `dstv:view:1:<会话键>` = `{ revealed, query }`,用于宿主重新挂载面板时不把你打回「总览 + 空搜索框」。现已逐条写明:键名、内容、只在本标签页、为空时删除、存储被禁用时不抛错,并明确提示**搜索框里的文字会留在本标签页的 sessionStorage 里**。
9
+
10
+ ### Added
11
+
12
+ - **README §7 的每个键现在都有断言**(浏览器探针 13 → 15 组 / 47 → 69 条):空格播放+暂停、PageUp/PageDown 单调前进且可回退、`/` 与 `f` 都聚焦搜索框、`r` 双向切换且只在有请求的站点生效、`↑`/`↓` 计数器必须变化、`Enter` / `Shift+Enter` 方向相反、`Esc` 清空。
13
+ - **新门禁 `shortcut-check`**(CI 9 项 / 本地 8 步):README §7 每一行列出的键都必须在 `probe.js` 里出现。单向——探针测表外的键不算错。带反向自检:一个都没匹配上直接红,防止映射表失效后门禁永远绿。
14
+ - **探针新增 `storage` 组**:至多一条视图状态键、字段只能是 `revealed` / `query`、`query` ≤200 字符、`localStorage` 仍为空。
15
+ - **smoke 新增 `SEC1` / `SEC2`**:`src/` 不得出现 `document.cookie =`、`localStorage` 写、`IndexedDB`、`sendBeacon`、`fetch(`、`XMLHttpRequest`、`WebSocket`;同时 `sessionStorage.setItem` 必须仍存在(否则说明功能被删而文档没改)。
16
+
17
+ ### Changed
18
+
19
+ - `readme-numbers` 现在也核对**安装命令里写死的版本号**是否等于 `package.json`——改版本忘改 README 会直接红。
20
+ - `release-status` 的 npm 行拆成两个事实(元数据 + tarball 可下载),并新增第 5 行 `npm @latest`(advisory):`@latest` 被 pnpm 的供应链延迟挡住时打印「published X h ago, clears in ~Y h」而不是含糊的「self-heals」。
21
+ - 新增 `scripts/guard-check.mjs`:用已知复杂度的输入验证 P1 性能守卫还能不能分辨线性/二次。
22
+
23
+ ### Notes
24
+
25
+ 0.11.0 / 0.11.1 / 0.11.2 的 `lib/` 逐字节相同;**0.11.3 是这三个版本之后第一次真正的运行时代码变更**(`↑`/`↓` 搜索导航)。
26
+
27
+ ## 0.11.2 — 2026-11-24
28
+
29
+ `release-status` 增加第 4 个外部环节的检查:**tarball 是否真的可下载**。
30
+
31
+ ### Why
32
+
33
+ 0.11.1 发布后,packument 的 `versions`、`dist-tags.latest`、`time`、`dist.shasum` 全部正确,
34
+ 但 `…-0.11.1.tgz` 返回 **HTTP 404** 约两分钟——`dsh plugin add pkg@0.11.1` 直接失败。
35
+
36
+ `npm view` 只读元数据、从不下载 tarball,所以对这个窗口完全失明;而这个窗口正是
37
+ 真实安装器会命中的那个。带个 cache-buster 立刻 200,说明是 CDN 把 404 缓存住了。
38
+
39
+ ### Added
40
+
41
+ - `release-status.mjs` 的 npm 行拆成两个事实:元数据存在 + tarball 可下载。失败时区分
42
+ 「没发布」与「发布了但字节还没到位」——后者是安全失败(装不上,而不是装错版本)。
43
+ - 故意**不加 cache-buster**:加了会绕开正是过期的那个缓存,从而隐藏真实安装器会踩的坑。
44
+
45
+ ### Changed
46
+
47
+ - 发布清单第 12 步从「三处对齐」改为「四处对齐(tag / Release / npm 元数据 / tarball)」。
48
+
49
+ ### Notes
50
+
51
+ 0.11.0 / 0.11.1 / 0.11.2 三者**运行时代码完全相同**(`lib/` 逐字节一致)。这三次发版
52
+ 修的都只是「用户能不能正确装上」这件事。
53
+
3
54
  ## 0.11.1 — 2026-11-24
4
55
 
5
56
  修正 **0.11.0 已发布包内文档的错误**:那份 README 会让读者装错东西。
package/README.en.md CHANGED
@@ -115,7 +115,9 @@ dsh-trajectory-traceview-plus/ # repo root (directory name == npm package name
115
115
  │ ├── doc-ref-check.mjs # DESIGN.md §x.y references resolve
116
116
  │ ├── doc-heading-check.mjs # headings must be valid Markdown (space after #)
117
117
  │ ├── readme-numbers.mjs # README numbers match the code (computed, not typed)
118
- │ ├── release-status.mjs # are tag / GitHub Release / npm all on this version? (network; not in CI)
118
+ │ ├── release-status.mjs # tag / Release / npm metadata / tarball / @latest resolution (network; not in CI)
119
+ │ ├── guard-check.mjs # feed the P1 growth guard known complexities; does it still tell them apart? (timing; not in CI)
120
+ │ ├── shortcut-check.mjs # every key in README §7 must be exercised by the probe (in CI)
119
121
  │ ├── browser-check.mjs # real-browser assertions (needs agent-browser)
120
122
  │ └── browser-harness.mjs / bench-fold.mjs
121
123
  ├── docs/ # DESIGN.md (why each change) / PROVENANCE.md (generated)
@@ -131,20 +133,22 @@ dsh-trajectory-traceview-plus/ # repo root (directory name == npm package name
131
133
  Install from npm (recommended — **pin the exact version**):
132
134
 
133
135
  ```powershell
134
- dsh plugin --profile web add dsh-trajectory-traceview-plus@0.11.1
136
+ dsh plugin --profile web add dsh-trajectory-traceview-plus@0.11.3
135
137
  ```
136
138
 
137
- > **Why not `@latest`**: `dsh plugin` forwards to pnpm, and **pnpm 12 ships a supply-chain delay** (`minimumReleaseAge`): a version that is too new is not selected by `@latest`, and pnpm **silently falls back to the previous release** — no warning at all. Right after 0.11.0 was published, `pnpm add pkg@latest` installed 0.10.0, which the newer DSH hosts skip entirely. An exact version has no such ambiguity (verified with both cold and warm caches).
139
+ > **Why not `@latest`**: `dsh plugin` forwards to pnpm, and **pnpm 12 ships a supply-chain delay** (`minimumReleaseAge`, default **1440 minutes = 24 hours**): a version published less than a day ago is not selected by `@latest`, and pnpm **silently falls back to the previous release** — no warning at all. Right after 0.11.0 was published, `pnpm add pkg@latest` installed 0.10.0, which the newer DSH hosts skip entirely. An exact version has no such ambiguity (verified with both cold and warm caches).
140
+ >
141
+ > The boundary was measured: `--config.minimumReleaseAge=300` (5 h) still resolves the new version, `1440` resolves back to the old one; the default has been `1440` since pnpm v11 ([docs](https://pnpm.io/settings/dependency-resolution#minimumreleaseage)). In other words, **during the first day after anyone publishes, `@latest` hands out the previous release** — that is the package manager's supply-chain policy, not a bug in this plugin.
138
142
  >
139
143
  > Related: this package's early `0.0.0-stage` has malformed metadata (no `size` field), so resolving `@latest` against a cold cache fails outright (`numeric field was not a number`). Pinning the version avoids that path.
140
144
 
141
145
  Install from GitHub (**always pin the tag**):
142
146
 
143
147
  ```powershell
144
- dsh plugin --profile web add "github:MisonL/dsh-trajectory-traceview-plus#v0.11.1"
148
+ dsh plugin --profile web add "github:MisonL/dsh-trajectory-traceview-plus#v0.11.3"
145
149
  ```
146
150
 
147
- > **Why the `#v0.11.1` matters**: a `github:` spec without a ref installs the **default branch HEAD**, not any released version. This repository keeps committing after a release (v0.11.0 was followed by five docs/scripts commits), so an unpinned install can hand you different code tomorrow while still reporting version 0.11.0. Pinning the tag is what makes "installed" and "released" the same code.
151
+ > **Why the `#v0.11.3` matters**: a `github:` spec without a ref installs the **default branch HEAD**, not any released version. This repository keeps committing after a release (v0.11.0 was followed by five docs/scripts commits), so an unpinned install can hand you different code tomorrow while still reporting version 0.11.0. Pinning the tag is what makes "installed" and "released" the same code.
148
152
 
149
153
  Then **restart `dsh web`** to take effect.
150
154
 
@@ -219,8 +223,13 @@ Open any session with an AI execution trace → a "Trace View" tab appears next
219
223
  ## 10. Security & compliance
220
224
 
221
225
  - **Read-only**: only renders the `TrajectorySnapshot` the session view already produced; no business-DOM mutation, no file modification or deletion, no host route, no network access.
222
- - **Local data**: everything is processed inside the browser; the raw request is rebuilt only when you open its panel, and nothing is written to storage.
223
- - **No persistence**: nothing written to localStorage / cookies; uninstalling leaves no trace.
226
+ - **Local data**: everything is processed inside the browser; the raw request is rebuilt only when you open its panel, and nothing is ever uploaded anywhere.
227
+ - **The one write: two pieces of view state in `sessionStorage`.** So that a host remount does not drop you back to "overview with an empty search box", each conversation gets one entry `dstv:view:1:<sessionKey>` holding `{ revealed, query }` — how far the window was expanded (a number) and the search text (≤200 chars).
228
+ - **This tab only** (sessionStorage, not localStorage): never shared across tabs or windows, gone when the tab closes.
229
+ - **Removed, not blanked**: when both fields are empty the key is deleted rather than left behind.
230
+ - **Works with storage disabled**: every access is inside `try/catch`, so a host that blocks storage behaves exactly as before and never throws.
231
+ - Note: the search box text is part of that entry — **if you typed something sensitive into the search box it stays in this tab's sessionStorage** until the tab closes or the query is cleared.
232
+ - **No persistence**: nothing written to localStorage / cookies / IndexedDB; no server, no telemetry; uninstalling leaves no trace.
224
233
 
225
234
  ## 11. Development & build
226
235
 
@@ -235,8 +244,8 @@ node scripts/provenance.mjs
235
244
  Editing `src/` without rebuilding makes `--check` fail and the smoke suite report `BUILD1`. `lib/index.js` (host half) is a no-op stub; `lib/client.js` is a classic script (`window.__ModuleLoader__.load`) served directly by the client module system.
236
245
 
237
246
  ```powershell
238
- npm run check # 7 steps: build --check / provenance --check / version-check
239
- # doc-ref-check / doc-heading-check / smoke / readme-numbers
247
+ npm run check # 8 steps: build --check / provenance --check / version-check / doc-ref-check
248
+ # doc-heading-check / smoke / readme-numbers / shortcut-check
240
249
  npm test # smoke only
241
250
  ```
242
251
 
@@ -245,7 +254,7 @@ The tests run the helper region against mock snapshots covering: tree building /
245
254
  **What needs a real browser** (`react-dom/server` cannot see scroll, focus, clipboard, intervals or layout):
246
255
 
247
256
  ```powershell
248
- node scripts/browser-check.mjs # builds the harness; 47 assertions over 13 recorded groups
257
+ node scripts/browser-check.mjs # builds the harness; 69 assertions over 15 recorded groups
249
258
  node scripts/browser-check.mjs --shots # saves screenshots and adds 1 more group / 2 assertions: 375px overflow (14 total)
250
259
  ```
251
260
 
@@ -307,12 +316,12 @@ node scripts/provenance.mjs # 4. refresh the provenance list (rerun
307
316
  npm run check # 5. the 7 local gates; all green before going further
308
317
  git add -A; git commit -m "..." # 6.
309
318
  git push origin main # 7.
310
- git tag -a v0.11.1 -m "..." # 8.
311
- git push origin v0.11.1 # 9.
319
+ git tag -a v0.11.3 -m "..." # 8.
320
+ git push origin v0.11.3 # 9.
312
321
  npm publish # 10. runs prepublishOnly -> the whole check again
313
- gh release create v0.11.1 --notes-file … # 11. the badge reads the Release, not the tag
322
+ gh release create v0.11.3 --notes-file … # 11. the badge reads the Release, not the tag
314
323
 
315
- node scripts/release-status.mjs # 12. do all three agree? (tag / Release / npm)
324
+ node scripts/release-status.mjs # 12. do all four agree? (tag / Release / npm metadata / tarball)
316
325
  ```
317
326
 
318
327
  **Step 10 is the easiest to miss and it fails silently.** After `git push` and `git tag` the repo looks "released" — but the registry still serves the old version, so `npm i <name>@latest` hands people the old package. That happened here once: tag and Release both present, npm still on the previous release (§13.47).
@@ -325,6 +334,6 @@ Three things guard the release, and all live in CI (`.github/workflows/check.yml
325
334
  - version / tag disagreement — `node scripts/version-check.mjs` fails (`F1`)
326
335
  - a missing `CHANGELOG.md` entry for the version (`F2`), or a version that goes backwards relative to an existing tag (`F3`)
327
336
 
328
- CI runs those 8 gates plus an install step (`npm ci --include=dev`): `build-client --check`, `node --check lib/client.js`, `provenance --check`, `version-check`, `doc-ref-check`, `doc-heading-check`, smoke, readme-numbers. `npm run check` runs 7 of them locally (build, provenance, version-check, doc-ref-check, doc-heading-check, smoke, readme-numbers) — everything but `node --check lib/client.js`; run `browser-check` too before releasing — see §11.
337
+ CI runs those 9 gates plus an install step (`npm ci --include=dev`): `build-client --check`, `node --check lib/client.js`, `provenance --check`, `version-check`, `doc-ref-check`, `doc-heading-check`, smoke, readme-numbers, shortcut-check. `npm run check` runs 8 of them locally (build, provenance, version-check, doc-ref-check, doc-heading-check, smoke, readme-numbers, shortcut-check) — everything but `node --check lib/client.js`; run `browser-check` too before releasing — see §11.
329
338
 
330
339
  **Those numbers have a gate of their own**: `readme-numbers` derives the true values from `check.yml`, `package.json` and `test/browser/probe.js`, then checks both READMEs against them. A number written down twice will eventually disagree with itself (§13.37).
package/README.md CHANGED
@@ -109,7 +109,7 @@ dsh-trajectory-traceview-plus/ # 仓库根(目录名 = npm 包名)
109
109
  ├── CHANGELOG.md # 发布记录(version-check 会核对版本条目)
110
110
  ├── screenshot/ # 效果截图(README「效果预览」用)
111
111
  ├── .github/workflows/
112
- │ └── check.yml # CI:8 项门禁(本地命令的同序复现)
112
+ │ └── check.yml # CI:9 项门禁(本地命令的同序复现)
113
113
  ├── src/ # 浏览器端源码(lib/client.js 由它生成,不要手改产物)
114
114
  ├── scripts/
115
115
  │ ├── build-client.mjs # src/ -> lib/client.js
@@ -118,7 +118,9 @@ dsh-trajectory-traceview-plus/ # 仓库根(目录名 = npm 包名)
118
118
  │ ├── doc-ref-check.mjs # docs/DESIGN.md 的 §x.y 引用不断链
119
119
  │ ├── doc-heading-check.mjs # 标题必须是合法 Markdown(# 后要有空格)
120
120
  │ ├── readme-numbers.mjs # README 里的数字与代码一致(数出来,不手写)
121
- │ ├── release-status.mjs # 查 tag / GitHub Release / npm 三处是否都有这一版(需联网,不进 CI)
121
+ │ ├── release-status.mjs # 查 tag / Release / npm 元数据 / tarball / @latest 解析(需联网,不进 CI)
122
+ │ ├── guard-check.mjs # 用已知复杂度验证 P1 性能守卫是否还能分辨线性/二次(测时间,不进 CI)
123
+ │ ├── shortcut-check.mjs # README §7 的每个键在 probe 里都得有断言(进 CI)
122
124
  │ ├── browser-check.mjs # 真浏览器断言(需 agent-browser)
123
125
  │ └── browser-harness.mjs / bench-fold.mjs
124
126
  ├── docs/ # DESIGN.md(每处改动的原因)/ PROVENANCE.md(自动生成)
@@ -134,13 +136,19 @@ dsh-trajectory-traceview-plus/ # 仓库根(目录名 = npm 包名)
134
136
  从 npm 安装(推荐,**写死版本号**):
135
137
 
136
138
  ```powershell
137
- dsh plugin --profile web add dsh-trajectory-traceview-plus@0.11.1
139
+ dsh plugin --profile web add dsh-trajectory-traceview-plus@0.11.3
138
140
  ```
139
141
 
140
142
  > **为什么不用 `@latest`**:`dsh plugin` 底层是 pnpm,而 **pnpm 12 有供应链延迟保护**
141
- > (`minimumReleaseAge`):太新的版本不会被 `@latest` 选中,pnpm 会**静默退回上一个版本**
142
- > ——不打任何警告。0.11.0 刚发布时实测 `pnpm add pkg@latest` 装到的是 0.10.0,
143
- > 而那版本在新宿主上会被跳过。写死版本号就没有这个歧义(冷/热缓存实测都能装到 0.11.0)。
143
+ > (`minimumReleaseAge`,默认 **1440 分钟 = 24 小时**):发布不满一天的版本不会被
144
+ > `@latest` 选中,pnpm 会**静默退回上一个版本**——不打任何警告。
145
+ > 0.11.0 刚发布时实测 `pnpm add pkg@latest` 装到的是 0.10.0,而那版本在新宿主上会被跳过。
146
+ > 写死版本号就没有这个歧义(冷/热缓存实测都能装到指定版本)。
147
+ >
148
+ > 这个值有一条实测边界:`--config.minimumReleaseAge=300`(5 小时)仍解析到新版本,
149
+ > `1440` 解析回旧版;pnpm v11 起默认就是 `1440`([官方文档](https://pnpm.io/settings/dependency-resolution#minimumreleaseage))。
150
+ > 也就是说**别人发版后第一天内,`@latest` 拿到的永远是上一版**——这不是本插件的 bug,
151
+ > 是包管理器的供应链策略。
144
152
  >
145
153
  > 顺带:本包的 `0.0.0-stage` 那个早期测试版本元数据残缺(缺 `size` 字段),
146
154
  > 冷缓存下走 `@latest` 解析时 pnpm 会因此直接失败(`numeric field was not a number`)。
@@ -149,10 +157,10 @@ dsh plugin --profile web add dsh-trajectory-traceview-plus@0.11.1
149
157
  从 GitHub 安装(**必须带 tag**):
150
158
 
151
159
  ```powershell
152
- dsh plugin --profile web add "github:MisonL/dsh-trajectory-traceview-plus#v0.11.1"
160
+ dsh plugin --profile web add "github:MisonL/dsh-trajectory-traceview-plus#v0.11.3"
153
161
  ```
154
162
 
155
- > **为什么必须带 `#v0.11.1`**:`github:` 规格不带 ref 时装的是**默认分支的 HEAD**,
163
+ > **为什么必须带 `#v0.11.3`**:`github:` 规格不带 ref 时装的是**默认分支的 HEAD**,
156
164
  > 不是任何发布版本。而这个仓库在发版后还会继续提交(本轮 v0.11.0 之后就有 5 个
157
165
  > 文档/脚本提交),所以"不带 ref"装到的东西**明天可能是另一个样子**,而版本号
158
166
  > 仍写着 0.11.0。带 tag 才能让"装到的"和"发布过的"是同一份代码。
@@ -230,8 +238,14 @@ dsh plugin --profile web add "G:\path\to\dsh-trajectory-traceview-plus"
230
238
  ## 10. 安全与合规
231
239
 
232
240
  - **只读**:只读取会话视图已生成的 `TrajectorySnapshot` 快照并渲染;不修改 DOM 业务结构、不修改 / 删除任何文件、无宿主路由、不访问网络。
233
- - **本地数据**:所有数据均在浏览器内处理;原始请求只在主动打开面板时才重建,不写入任何存储。
234
- - **无持久化**:不写 localStorage / cookie;卸载即无痕。
241
+ - **本地数据**:所有数据均在浏览器内处理;原始请求只在主动打开面板时才重建,不会上传到任何地方。
242
+ - **唯一的写入:`sessionStorage` 里两条视图状态**。为了在宿主重新挂载面板时不把你打回「总览 + 空搜索框」,每个会话存一条
243
+ `dstv:view:1:<会话键>`,内容是 `{ revealed, query }`——已展开到哪个位置(数字)和搜索框里的文字(≤200 字符)。
244
+ - **只在本标签页内**(sessionStorage 不是 localStorage):不跨标签、不跨窗口,关闭标签页即消失。
245
+ - **删除即消失**:两项都为空时这条键会被**移除**,不留空壳。
246
+ - **存储被禁用也能用**:所有访问都在 `try/catch` 里,宿主禁用存储时行为与之前完全一致,不抛错。
247
+ - 注意:搜索框里的文字会被写进去,**如果你在搜索框里输入过敏感内容,它会留在本标签页的 sessionStorage 里**,直到关标签页或清空搜索。
248
+ - **无持久化**:不写 localStorage / cookie / IndexedDB;没有服务端、没有埋点;卸载即无痕。
235
249
 
236
250
  ## 11. 开发与自测
237
251
 
@@ -246,8 +260,8 @@ node scripts/provenance.mjs
246
260
  改了 `src/`却忘了重建时,`--check`会失败,`test/smoke.test.cjs`也会报 `BUILD1`。`lib/index.js`(宿主半部)是无操作桩;`lib/client.js`是经典脚本(`window.__ModuleLoader__.load`),由客户端模块系统直接服务。
247
261
 
248
262
  ```powershell
249
- npm run check # 7 步:build --check / provenance --check / version-check
250
- # doc-ref-check / doc-heading-check / smoke / readme-numbers
263
+ npm run check # 8 步:build --check / provenance --check / version-check / doc-ref-check
264
+ # doc-heading-check / smoke / readme-numbers / shortcut-check
251
265
  npm test # 只跑 smoke
252
266
  ```
253
267
 
@@ -256,7 +270,7 @@ npm test # 只跑 smoke
256
270
  **需要真实浏览器的部分**(`react-dom/server` 测不到滚动、焦点、剪贴板、定时器、响应式):
257
271
 
258
272
  ```powershell
259
- node scripts/browser-check.mjs # 起 harness,跑 47 条断言 / 记录 13 组观测
273
+ node scripts/browser-check.mjs # 起 harness,跑 69 条断言 / 记录 15 组观测
260
274
  node scripts/browser-check.mjs --shots # 另存截图,并另加 1 组 / 2 条断言(375px 溢出,共 14 组)
261
275
  ```
262
276
 
@@ -320,15 +334,15 @@ MIT。原版 © [AFAP](https://github.com/AFAP/dsh-trajectory-traceview);本
320
334
  # 1-3 改内容
321
335
  # 改 package.json 的 version、补 CHANGELOG.md 的版本条目
322
336
  node scripts/provenance.mjs # 4. 刷新来源清单(新增/改名文件后必须重跑)
323
- npm run check # 5. 7 步门禁,全绿再往下
337
+ npm run check # 5. 8 步门禁,全绿再往下
324
338
  git add -A; git commit -m "..." # 6.
325
339
  git push origin main # 7.
326
- git tag -a v0.11.1 -m "..." # 8.
327
- git push origin v0.11.1 # 9.
340
+ git tag -a v0.11.3 -m "..." # 8.
341
+ git push origin v0.11.3 # 9.
328
342
  npm publish # 10. 触发 prepublishOnly → 再跑一遍 check
329
- gh release create v0.11.1 --notes-file … # 11. 徽章读的是 Release,不是 tag
343
+ gh release create v0.11.3 --notes-file … # 11. 徽章读的是 Release,不是 tag
330
344
 
331
- node scripts/release-status.mjs # 12. 三处对齐了吗?(tag / Release / npm)
345
+ node scripts/release-status.mjs # 12. 四处对齐了吗?(tag / Release / npm 元数据 / tarball)
332
346
  ```
333
347
 
334
348
  **第 10 步最容易漏,而且不会有任何报错**:`git push` + `git tag` 之后仓库看起来"发布完了",但 registry 上还是旧版本。任何人 `npm i <包名>@latest` 拿到的都是旧包。这个仓就发生过一次——tag 和 Release 都在,npm 还停在上一版(§13.47)。
@@ -343,12 +357,12 @@ node scripts/release-status.mjs # 12. 三处对齐了吗?(tag / Rel
343
357
  - 版本号相对已有 tag 倒退 → 同上(`F3`)
344
358
 
345
359
  这些检查都在 CI 里跑(`.github/workflows/check.yml`),push 到 main 和提 PR 时自动执行。
346
- 门禁本身是 8 项:`build-client --check`、`node --check lib/client.js`、`provenance --check`、
347
- `version-check`、`doc-ref-check`、`doc-heading-check`、smoke、readme-numbers
360
+ 门禁本身是 9 项:`build-client --check`、`node --check lib/client.js`、`provenance --check`、
361
+ `version-check`、`doc-ref-check`、`doc-heading-check`、smoke、readme-numbers、shortcut-check
348
362
  (前面还有一步 `npm ci --include=dev` 装依赖)。
349
363
 
350
- 本地 `npm run check` 跑其中 7 步(`build-client --check`、`provenance --check`、`version-check`、
351
- `doc-ref-check`、`doc-heading-check`、smoke、readme-numbers)——只差 CI 里的
364
+ 本地 `npm run check` 跑其中 8 步(`build-client --check`、`provenance --check`、`version-check`、
365
+ `doc-ref-check`、`doc-heading-check`、smoke、readme-numbers、shortcut-check)——只差 CI 里的
352
366
  `node --check lib/client.js`,够用于日常提交;发布前再按 §11 把 `browser-check` 也跑一遍。
353
367
 
354
368
  **这些数字本身也有门禁**:`readme-numbers` 直接从 `check.yml`、`package.json` 和