@moonquake2004/dsh-doctor 0.4.23 → 0.4.24

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.
Files changed (2) hide show
  1. package/dsh-doctor.mjs +7 -4
  2. package/package.json +1 -1
package/dsh-doctor.mjs CHANGED
@@ -241,8 +241,11 @@ function resolveProfile(name) {
241
241
 
242
242
  /* ================= env ================= */
243
243
  /** v1 词汇表 r5(#1719/#2259)node 语义:pass = 满足 ^22.19.0 || >=24.0.0,其余 warn——无民间 fail 阈值。
244
- * 注(2026-09 更正):该范围来自 v1 词汇表对齐,**不是**从某个 package.json 读来的;
245
- * 已发布的 `@deepseek-ai/dsh@0.1.5-rc.1` **不含 engines 字段**,此前文案写"root package.json engines"属出处误引。 */
244
+ * 出处(2026-09 两次更正后的准确版本,由社区 @ciceroyang 核实、我们复核):
245
+ * 该范围**确实声明在 manifest 里** —— 仓库根 `package.json` 的 `engines.node`,
246
+ * 即 `@deepseek-ai/dsh-root`(`private: true`,非发布包)。**没有任何已发布包继承它**,
247
+ * 所以 registry 查不到、npm 安装时既不校验也不警告;这正是社区里"没有 engines"印象的由来。
248
+ * 我们内置的范围与之一致(等于官方声明值),但它是**手写维护**的:上游改动时需同步。 */
246
249
  function nodeInSupportedRange(v) {
247
250
  const m = /^v?(\d+)\.(\d+)\.(\d+)/.exec(String(v));
248
251
  if (!m) return false;
@@ -266,8 +269,8 @@ function checkEnv() {
266
269
  const version = String(nv.stdout).trim();
267
270
  const supported = nodeInSupportedRange(version);
268
271
  report('env', 'E3-node', supported,
269
- supported ? `node ${version}(满足 v1 词汇表支持范围 ^22.19.0 || >=24.0.0;该版本未发布 engines 字段,#2259)` : `node ${version} 不在支持范围(^22.19.0 || >=24.0.0,v1 词汇表)——会话日志读取等能力受限`,
270
- supported ? undefined : '升级 node 到 ^22.19.0 或 >=24.0.0(v1 词汇表范围,见 #2259)');
272
+ supported ? `node ${version}(满足声明范围 ^22.19.0 || >=24.0.0——出处为仓库根私有 workspace package.json 的 engines,#2259)` : `node ${version} 不在支持范围(^22.19.0 || >=24.0.0,v1 词汇表)——会话日志读取等能力受限`,
273
+ supported ? undefined : '升级 node 到 ^22.19.0 或 >=24.0.0(仓库根 engines 声明的范围,见 #2259)');
271
274
  }
272
275
 
273
276
  // E12:运行时 zstd 稳定性(#6651 的运行时线索)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonquake2004/dsh-doctor",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "Offline diagnostic for DeepSeek Harness — 28 built-in + 5 catalog checks across env/profile/session (Layer A checks-as-data), self-update (Layer B), and a semi-automatic LLM observer (Layer C, --observe); Doctor panel in web UI settings.",
5
5
  "main": "lib/index.js",
6
6
  "files": [