codebase-snapshot 0.11.0 → 0.12.1

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
@@ -8,8 +8,11 @@ All notable changes to `codebase-snapshot`.
8
8
 
9
9
  This package started its public life as `@ankurhalder/codebase-snapshot`, which reached 4.4.1. It
10
10
  moved to the unscoped name and **restarted at 0.9.0**, so the numbers below are not a continuation of
11
- the old line — `0.9.0` is newer than `4.4.1`, not older. 1.0.0 is reserved for when the CLI surface
12
- is settled.
11
+ the old line — `0.9.0` is newer than `4.4.1`, not older.
12
+
13
+ The line stays at **`0.12.x`**. Every change ships as a patch release: there is no `0.13`, and
14
+ `1.0.0` is not planned. A feature that would normally justify a minor bump is released as
15
+ `0.12.<n+1>` with the same rigour; the number is not the promise, the entry below is.
13
16
 
14
17
  Two versions exist on the registry that are not releases, and both are deprecated:
15
18
 
@@ -23,6 +26,69 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
23
26
 
24
27
  ---
25
28
 
29
+ ## 0.12.1
30
+
31
+ Three defects in the facts 0.12.0 printed about a project, found by reading the artifact as the
32
+ model that receives it:
33
+
34
+ - **The README summary leaked markup.** A centred header wraps the first prose in `<p>` with `<br>`
35
+ and `<code>` inside it, and the brief printed the tags. Markup is now removed before the paragraph
36
+ is found, and heading elements are removed whole — after stripping tags, `<h1>Demo</h1>` became
37
+ the line "Demo", which read as the first paragraph and then ended it at the next blank line, so
38
+ the summary of every such README was its own title.
39
+ - **"Most recent releases" listed prose headings.** `CHANGELOG.md` has a `## A note on version
40
+ numbers`; the brief called it a release. Only version-shaped headings count now.
41
+ - **Commit bodies were cut mid-word.** A 400-character `slice` produced bodies ending in "…and the
42
+ bui…", which reads as a truncated file rather than an edited quotation. They are cut at a sentence
43
+ boundary, fall back to a word boundary, and no longer carry the pipes of a quoted markdown table.
44
+
45
+ Also: "The last 1 commits" is "commit", and two lines that wrapped past 100 columns were reflowed.
46
+
47
+ Nothing else changes; no setting, artifact or manifest field is different.
48
+
49
+ Verified: 1 171 tests, 1 163 pass, 0 fail, 8 host skips; lint 225 files; every gate clean at 0.12.1.
50
+ ## 0.12.0
51
+
52
+ The brief stops being only generated. Facts can be proved from the repository; judgement cannot,
53
+ and pretending otherwise produced a document that was accurate and generic.
54
+
55
+ **The owner half (`brief`).** A markdown file with five recognised headings is merged at fixed
56
+ slots:
57
+
58
+ | Heading | Result |
59
+ | :--- | :--- |
60
+ | `## Stakes` | its own section, right after the job |
61
+ | `## The system` | replaces the generated narrative; the measured facts still follow under "What the index records" |
62
+ | `## What came before` | rendered above the generated commit ledger |
63
+ | `## The bar` | replaces the standard |
64
+ | `## Calibration` | replaces the example failures |
65
+
66
+ Any other heading is kept verbatim under **Owner notes** — nothing is dropped because the merge
67
+ did not recognise it. Every owner section is marked in the output as written by the project owner,
68
+ so a reader can tell an assertion from a measurement. Three things are refused because they would
69
+ make the document lie: a heading that redefines a measured section (`Coverage`, `This snapshot`,
70
+ `Attaching this`, `The job`, `What you have`, `What a useful answer contains`, `Your task`), a
71
+ `brief` path that cannot be read, and — indirectly — an edited brief, which no longer matches the
72
+ digest the manifest recorded. A stale brief is the same failure as a stale snapshot.
73
+
74
+ **More facts, for free.** The history section now carries commit bodies, not only subjects: the
75
+ subject says what changed, the body usually says why, and the why is the part a reader can verify.
76
+ A new "What this is" section quotes what the repository says about itself — the `package.json`
77
+ description, the first README paragraph, the two most recent release headings — labelled as the
78
+ project`s own claims rather than evidence. All of it is masked like every other reproduced string.
79
+
80
+ **The job is a setting (`promptTask`).** `audit` (the default) asks for what is still wrong or
81
+ will break, `review` for what a change breaks, `explain` for how a subsystem works. The standard
82
+ and the coverage duty are the same in all three; only the opening section changes. An unknown
83
+ value is a usage error, not a silent fall back.
84
+
85
+ **Upgrading.** Nothing existing changes unless you set `brief` or `promptTask`: the default job is
86
+ the one 0.11.0 shipped, and both settings are omitted from the config digest at their defaults, so
87
+ a snapshot written before this release still validates. New `manifest.config.promptTask` and, when
88
+ configured, `manifest.config.brief: { path, digest }`.
89
+
90
+ Verified: 1 168 tests, 1 160 pass, 0 fail, 8 host skips; lint 225 files; sync-docs, site, link
91
+ check, audit-site, readme-lint and pack-check clean at 0.12.0.
26
92
  ## 0.11.0
27
93
 
28
94
  A minor release: `generate` writes one new artifact and two settings are added. Nothing that
package/README.md CHANGED
@@ -150,7 +150,8 @@ contain.
150
150
  the system map the manifest can prove (layers, load-bearing modules, entry points, indexed
151
151
  surfaces), the recent commit history as claims to verify rather than rediscover, the evidence bar,
152
152
  the coverage owed, and calibration examples. Then the apparatus — this run's parts, partial files
153
- with their missing line ranges, fingerprint, and the attachment arithmetic. A prompt that names
153
+ with their missing line ranges, fingerprint, and the attachment arithmetic. The judgement half
154
+ can come from your own file (`brief`) and the job from `promptTask`. A prompt that names
154
155
  the wrong snapshot is a lie that reads as current, so it is an artifact with a recorded digest and
155
156
  `validate` fails when it is edited.
156
157
  - **Credential files are excluded by default** — `.env`, `*.pem`, `.npmrc`, `id_rsa`, `*.tfstate`
@@ -209,7 +210,7 @@ Everything an agent needs is available as data, and the tool can install its own
209
210
  ```bash
210
211
  npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
211
212
  npx codebase-snapshot skill --install # into .claude/skills + .cursor/rules
212
- npx -y codebase-snapshot@0.11.0 mcp # or serve it over MCP
213
+ npx -y codebase-snapshot@0.12.1 mcp # or serve it over MCP
213
214
  ```
214
215
 
215
216
  An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered
package/SECURITY.md CHANGED
@@ -6,11 +6,11 @@ Only the latest published release receives security fixes.
6
6
 
7
7
  | Version | Supported |
8
8
  | :--- | :--- |
9
- | <!--@majorMinor-->0.11<!--/@majorMinor-->.x | ✅ |
9
+ | <!--@majorMinor-->0.12<!--/@majorMinor-->.x | ✅ |
10
10
  | anything older | ❌ |
11
11
 
12
12
  The number line restarted at 0.9.0 when the package moved to the unscoped `codebase-snapshot` name,
13
- so <!--@majorMinor-->0.11<!--/@majorMinor-->.x is newer than 4.4.1, not older. That is explained in full in the
13
+ so <!--@majorMinor-->0.12<!--/@majorMinor-->.x is newer than 4.4.1, not older. That is explained in full in the
14
14
  [changelog](CHANGELOG.md#a-note-on-version-numbers).
15
15
 
16
16
  ## Reporting a vulnerability