codebase-snapshot 0.20.5 → 0.20.7

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
@@ -30,6 +30,71 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
30
30
 
31
31
  ---
32
32
 
33
+ ## 0.20.7
34
+
35
+ **Discovery release: the npm metadata now points at the documentation site and describes the
36
+ package in the words people actually search for. No runtime behavior changed.**
37
+
38
+ - The npm homepage is the docs site, not the GitHub README. The README still links both.
39
+ - The description leads with "repository", "Markdown", "manifest", "redaction", "validation" and
40
+ "MCP server", and adds the broad discovery keywords `repository-context`, `ai-context`,
41
+ `codebase-context`, `code-to-prompt` and `llm-tools`.
42
+ - Three page-metadata outliers were trimmed: the home and tools descriptions are under 160
43
+ characters, and the `snapshot_answer` title is under 60.
44
+ - This is also the first GitHub Release since 0.17.0, so the repository's latest release and
45
+ npm's latest version now agree.
46
+
47
+ ## 0.20.6
48
+
49
+ **The third 0.20 audit verified forty reported defects and fixed every one that reproduced, with a
50
+ regression for each security boundary.**
51
+
52
+ Ownership and confinement:
53
+
54
+ - A marker is evidence only when it describes the bytes on disk: the recorded manifest digest and
55
+ every recorded file digest are checked, and every file at every depth must be in the inventory.
56
+ A marker that names a directory but omits a file inside it no longer hides that file.
57
+ - `explain` no longer uses `existsSync` as a symlink oracle, reads staged bytes for `--staged`,
58
+ and drops included-only fields from a skipped answer.
59
+ - Overview, health, validator, workspace-index, hook, gitignore and delta reads all use canonical
60
+ containment; `.gitignore` is replaced atomically and refuses links; `.git` file fallbacks are
61
+ canonicalised; `WORKSPACE.json` stores relative member paths and refuses duplicate basenames.
62
+ - `serve` checks allowed roots before existence probes, generates in a worker, runs on a rate
63
+ limit, caps zip output, and refuses a remote checkout's config instead of executing its rules.
64
+ `health --all-members` confines the paths it reads from the index.
65
+
66
+ Secrets and parsing:
67
+
68
+ - Dockerfile `ENV` and `ARG` assignments are case-insensitive and keep values containing `|` or
69
+ `<`; an ellipsis no longer exempts any value that merely contains `...`.
70
+ - `id_rsa.example.pem` and `.env.example.local` stay sensitive; only a known data extension may
71
+ follow a template marker.
72
+ - SARIF paths are masked by the path rules and URI-encoded.
73
+ - A regex with a bounded or optional inner quantifier, or with flags inherited from a nested
74
+ group, is refused instead of being allowed to backtrack catastrophically.
75
+ - Signature records must name the fingerprint inside the manifest they verify.
76
+
77
+ Protocol and correctness:
78
+
79
+ - `SNAPSHOT_TOKEN` is read from the environment, so the Docker entrypoint no longer puts it in
80
+ argv; network-bind metrics require the bearer token; SSE sessions and session ids are bounded;
81
+ async request handlers have rejection handlers; cancellations are delivered at capacity.
82
+ - The MCP worker refuses executable configs and accepts a config already loaded on the parent
83
+ thread; `snapshot_plan` is cancellable and `snapshot_search` enforces a cumulative byte budget.
84
+ - `serve` and `mcp` report the real tool count; `update` is in the command order; `describe` and
85
+ `skill` accept `--no-update-check`; the hook validates the outDir it recorded.
86
+ - Hard-clipped parts fail generation instead of shipping a manifest that cannot describe them;
87
+ section-truncation notices are no longer counted as content; the monolith labels bodies `full`
88
+ and does not copy `emptyLinesRemoved`; XML replaces XML 1.0-illegal controls; control-byte
89
+ blobs are binary even when one byte is invalid UTF-8; CR-only files and BOM package.json files
90
+ parse; cache keys include the repository-relative path; the ownership ledger records the same
91
+ path the marker looks up.
92
+ - Token and selection tables are one line per row, sorted by code unit, and the token total no
93
+ longer claims to equal the manifest total. Zip timestamps are UTC.
94
+
95
+ Verified with `npm run verify` (1,433 tests, 1,421 passed, 0 failed, 12 skipped) and
96
+ `npm run verify:deep` (health 95/100; the one warning is the known documentation-path example).
97
+
33
98
  ## 0.20.5
34
99
 
35
100
  **The second 0.20 audit found twelve regressions and bypasses left by the first hardening pass.
package/README.md CHANGED
@@ -211,7 +211,7 @@ Everything an agent needs is available as data, and the tool can install its own
211
211
  ```bash
212
212
  npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
213
213
  npx codebase-snapshot skill --install # into .claude/skills + .cursor/rules
214
- npx -y codebase-snapshot@0.20.5 mcp # or serve it over MCP
214
+ npx -y codebase-snapshot@0.20.6 mcp # or serve it over MCP
215
215
  ```
216
216
 
217
217
  An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered