dsh-log-contract 0.3.38 → 0.3.39
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/bin/dsh-log-contract.mjs +1 -1
- package/package.json +2 -8
package/bin/dsh-log-contract.mjs
CHANGED
|
@@ -340,7 +340,7 @@ function cmdCheck(args) {
|
|
|
340
340
|
// findings 需要源码输入,故只在 `error-contract` 子命令产出;此处只给规则清单。
|
|
341
341
|
payload.errorContract = { family: 'error-expression', rules: ERROR_CONTRACT_RULES.map((r) => ({ id: r.id, severity: r.severity, title: r.title, layer: r.layer, target: r.target, falsePositiveRisk: r.falsePositiveRisk })), note: '静态规则目录;源码扫描用 error-contract 子命令' };
|
|
342
342
|
// IDENTITY 段(schemaVersion 3 · additive):版本同一性(判据 −1:跑的东西是不是你以为的那个)。
|
|
343
|
-
// ⛔ 只给诊断,不进 ok/退出码;登记表缺失(npm
|
|
343
|
+
// ⛔ 只给诊断,不进 ok/退出码;登记表缺失(npm 安装包不含该 JSON)⇒ ok:null(unverifiable)。
|
|
344
344
|
const identity = checkIdentity({ root: packageRoot() });
|
|
345
345
|
payload.identity = { ...identity, rules: IDENTITY_RULES.map((r) => ({ id: r.id, severity: r.severity, title: r.title, layer: r.layer })) };
|
|
346
346
|
if (notAssessable) payload.notAssessable = result.notAssessable;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-log-contract",
|
|
3
3
|
"description": "日志契约守护 — DSH session log contract guard: offline health check (CLI) + pre-write validation for DeepSeek Harness session logs",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.39",
|
|
5
5
|
"packageManager": "pnpm@11.7.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -29,14 +29,8 @@
|
|
|
29
29
|
"README.zh.md"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"check": "node scripts/
|
|
32
|
+
"check": "node scripts/gen-contracts-doc.mjs --check",
|
|
33
33
|
"test": "vitest run",
|
|
34
|
-
"prepublishOnly": "node scripts/pre-publish.mjs --release && node scripts/check-pkg-meta.mjs && node internal/scripts/prepublish-gate.mjs && pnpm check && pnpm test",
|
|
35
|
-
"surface:check": "node scripts/check-external-surface.mjs",
|
|
36
|
-
"review:check": "node scripts/check-review-record.mjs",
|
|
37
|
-
"release:check": "node scripts/check-release-discipline.mjs && node scripts/check-external-surface.mjs && node scripts/check-review-record.mjs",
|
|
38
|
-
"release": "node scripts/release.mjs",
|
|
39
|
-
"gate": "node internal/scripts/gate.mjs",
|
|
40
34
|
"identity:register": "node scripts/identity-register.mjs"
|
|
41
35
|
},
|
|
42
36
|
"keywords": [
|