dsh-hashcheck 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -41,4 +41,14 @@ Exit codes: `0` clean, `1` findings, `2` usage or read error. In CI, gate on the
41
41
 
42
42
  Deterministic by construction: paths are sorted and normalized to forward slashes, no timestamps or mtimes enter the digest, so the same tree produces the same manifest on macOS, Linux and Windows.
43
43
 
44
+ ## What it decides
45
+
46
+ 一次交付的字节是否与清单一致:`build` 对文件树产出排序归一的 SHA-256 清单,`verify` 对着清单逐个校验,报告哪些文件动了、哪些是新增、哪些消失了。
47
+
48
+ ## Honest scope
49
+
50
+ 这是防篡改证据,不是验收意见:它证明**字节动没动**,不能证明改动是改进还是破坏。清单不含时间戳与 mtime,同一棵树在 macOS/Linux/Windows 产出同一份清单。
51
+
52
+ Part of [dsh-verify-kit](https://github.com/zjukop3/dsh-verify-kit): generic deliverable defects, each one verb, each runnable without DSH.
53
+
44
54
  MIT.
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Deliverable hash manifest",
4
+ "description": "SHA-256 manifests for delivered files: build once, verify anywhere, and say exactly which bytes moved instead of 'looks fine'."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "交付文件校验清单(SHA-256 manifest)",
4
+ "description": "交付前生成 SHA-256 清单,验收时逐文件比对:哪个文件改了、哪个丢了、哪个没进清单。出口码 0/1/2 可接 CI。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "dsh-hashcheck",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "SHA-256 manifests for delivered files: build once, verify anywhere, and say exactly which bytes moved instead of 'looks fine'.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
9
- "./package.json": "./package.json"
9
+ "./package.json": "./package.json",
10
+ "./locale/*.json": "./locale/*.json"
10
11
  },
11
12
  "bin": {
12
13
  "dsh-hashcheck": "./bin/cli.js"
@@ -25,7 +26,8 @@
25
26
  "bin",
26
27
  "cordis.patch.yml",
27
28
  "README.md",
28
- "LICENSE"
29
+ "LICENSE",
30
+ "locale"
29
31
  ],
30
32
  "keywords": [
31
33
  "dsh",