dsh-standards 1.6.7 → 1.6.8

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,3 +1,21 @@
1
+ ## 1.6.8 — 2026-11-07
2
+
3
+ ### Added
4
+
5
+ - `conformance.schema.json`:`subject.source`(`package`/`registry`/`unknown`,可选加性)与 `checks[].howToEnable` 显式放行;`subject` 仍 `additionalProperties:false`,其余未知键照旧被拒。registry 报告(`dsh.plugin.json`,1.6.7 起输出 `source=registry`)现在可整份通过 schema。
6
+ - 离线包 `publish/dsh-standards-offline-1.6.8.tgz`:1001037 B,64 文件,sha256 `2265d0cfb81d6e93a92cd3b10919d8d83f9d6ffd795f2cbedc701f8808f9e59d`;内层 npm tarball `dsh-standards-1.6.8.tgz`(911,278 B,sha256 `1e50195619cfe59caf5b0c26b82038d9556a07336038e5a2f18a9944ac55cbf1`)。
7
+
8
+ ### Changed
9
+
10
+ - `publish/sidecar.json` 50 条按 1.6.7 代码重建(`checker=1.6.7`,sha `da6eeac`):每包 ENTRY + security 两份报告,均显式 `--host-version 0.2.1-rc.5`,使 C-2 有判定而非 NA(不传时 1.6.7 默认把 C-2.1/C-2.2 记 NA/partial,实测 50/50)。50 个 tarball sha256 与 1.6.6 侧车逐条一致。
11
+ - C-2 相对 1.6.6 侧车:0 条 NA;ENTRY 口径 34 PASS / 16 WARN(1.6.6 侧车那 14 项是 ds-c 口径,7 条 C-2.1 FAIL 在 ENTRY 语义下记 WARN,security 块仍记 16 FAIL);`dsh-session-superagent@0.10.4` 由 WARN→PASS(显式 host 0.2.1-rc.5 命中其声明;旧构建的占位默认 0.2.2-alpha.2 不命中)。
12
+
13
+ ### Verified
14
+
15
+ - `npm test` 313/313。
16
+ - 102 份报告(50 ENTRY + 50 security + 2 registry)对 1.6.8 schema 全部 VALID;`source=sidebar`、未知 subject 键均被拒。
17
+ - `unshare -rn` 内 `npm install --offline` 离线包内 tarball,`dsh-levels 40-checker/fixtures/good --format json` exit 0、ENTRY `recognized`/`static`。
18
+
1
19
  ## 1.6.7 — 2026-11-07
2
20
 
3
21
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-standards",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "DSH plugin standards and conformance checks: ENTRY/FLOW checks plus BOOST guidance. Non-official; no certification or ranking.",
5
5
  "type": "module",
6
6
  "main": "40-checker/src/index.mjs",
@@ -110,6 +110,7 @@
110
110
  },
111
111
  "subject": {
112
112
  "type": "object",
113
+ "description": "What was scanned. `source` is additive (1.6.8): it names the input layout, and only a registry layout (`dsh.plugin.json`, no package.json) emits it today. It stays optional so reports produced before 1.6.7 still validate.",
113
114
  "additionalProperties": false,
114
115
  "required": [
115
116
  "mode",
@@ -169,6 +170,14 @@
169
170
  "path": {
170
171
  "type": "string",
171
172
  "minLength": 1
173
+ },
174
+ "source": {
175
+ "enum": [
176
+ "package",
177
+ "registry",
178
+ "unknown"
179
+ ],
180
+ "description": "Additive (1.6.8): input layout that produced this report. `registry` = a sidebar-style registry tree read through --registry-dir or auto-detected dsh.plugin.json (no package.json); `package` = the ordinary package.json path; `unknown` is reserved for inputs that declare neither. Optional: builds before 1.6.7 omit it, so consumers must not require it, and subject remains additionalProperties:false for every other key."
172
181
  }
173
182
  }
174
183
  },
@@ -377,6 +386,10 @@
377
386
  "advisory": {
378
387
  "type": "boolean",
379
388
  "description": "True when the check is reported but never moves the verdict."
389
+ },
390
+ "howToEnable": {
391
+ "type": "string",
392
+ "description": "Additive (1.6.7): the command/flag that would let an NA or partial check run. Optional; omitted when the check already ran in full. Without it a registry report (DSC-01 partial, no package.json) would be rejected by additionalProperties:false."
380
393
  }
381
394
  }
382
395
  },