codebase-snapshot 0.11.0 → 0.12.0
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 +42 -0
- package/README.md +3 -2
- package/SECURITY.md +2 -2
- package/dist/bin.js +679 -328
- package/dist/{chunk-5ZOXHBTW.js → chunk-5FPYVWP3.js} +21 -1
- package/dist/{chunk-NJ75RVHO.js → chunk-6HXDYIJS.js} +675 -373
- package/dist/cli.cjs +819 -475
- package/dist/cli.d.cts +11 -1
- package/dist/cli.d.ts +11 -1
- package/dist/cli.js +25 -3
- package/dist/index.cjs +670 -368
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +140 -1
- package/dist/mcp.js +2 -2
- package/dist/{types-DGWw3SH2.d.cts → types-c0tLF2WC.d.cts} +51 -1
- package/dist/{types-DGWw3SH2.d.ts → types-c0tLF2WC.d.ts} +51 -1
- package/docs/cli.md +5 -3
- package/docs/configuration.md +55 -0
- package/docs/mcp.md +3 -3
- package/docs/output.md +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,48 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
+
## 0.12.0
|
|
27
|
+
|
|
28
|
+
The brief stops being only generated. Facts can be proved from the repository; judgement cannot,
|
|
29
|
+
and pretending otherwise produced a document that was accurate and generic.
|
|
30
|
+
|
|
31
|
+
**The owner half (`brief`).** A markdown file with five recognised headings is merged at fixed
|
|
32
|
+
slots:
|
|
33
|
+
|
|
34
|
+
| Heading | Result |
|
|
35
|
+
| :--- | :--- |
|
|
36
|
+
| `## Stakes` | its own section, right after the job |
|
|
37
|
+
| `## The system` | replaces the generated narrative; the measured facts still follow under "What the index records" |
|
|
38
|
+
| `## What came before` | rendered above the generated commit ledger |
|
|
39
|
+
| `## The bar` | replaces the standard |
|
|
40
|
+
| `## Calibration` | replaces the example failures |
|
|
41
|
+
|
|
42
|
+
Any other heading is kept verbatim under **Owner notes** — nothing is dropped because the merge
|
|
43
|
+
did not recognise it. Every owner section is marked in the output as written by the project owner,
|
|
44
|
+
so a reader can tell an assertion from a measurement. Three things are refused because they would
|
|
45
|
+
make the document lie: a heading that redefines a measured section (`Coverage`, `This snapshot`,
|
|
46
|
+
`Attaching this`, `The job`, `What you have`, `What a useful answer contains`, `Your task`), a
|
|
47
|
+
`brief` path that cannot be read, and — indirectly — an edited brief, which no longer matches the
|
|
48
|
+
digest the manifest recorded. A stale brief is the same failure as a stale snapshot.
|
|
49
|
+
|
|
50
|
+
**More facts, for free.** The history section now carries commit bodies, not only subjects: the
|
|
51
|
+
subject says what changed, the body usually says why, and the why is the part a reader can verify.
|
|
52
|
+
A new "What this is" section quotes what the repository says about itself — the `package.json`
|
|
53
|
+
description, the first README paragraph, the two most recent release headings — labelled as the
|
|
54
|
+
project`s own claims rather than evidence. All of it is masked like every other reproduced string.
|
|
55
|
+
|
|
56
|
+
**The job is a setting (`promptTask`).** `audit` (the default) asks for what is still wrong or
|
|
57
|
+
will break, `review` for what a change breaks, `explain` for how a subsystem works. The standard
|
|
58
|
+
and the coverage duty are the same in all three; only the opening section changes. An unknown
|
|
59
|
+
value is a usage error, not a silent fall back.
|
|
60
|
+
|
|
61
|
+
**Upgrading.** Nothing existing changes unless you set `brief` or `promptTask`: the default job is
|
|
62
|
+
the one 0.11.0 shipped, and both settings are omitted from the config digest at their defaults, so
|
|
63
|
+
a snapshot written before this release still validates. New `manifest.config.promptTask` and, when
|
|
64
|
+
configured, `manifest.config.brief: { path, digest }`.
|
|
65
|
+
|
|
66
|
+
Verified: 1 168 tests, 1 160 pass, 0 fail, 8 host skips; lint 225 files; sync-docs, site, link
|
|
67
|
+
check, audit-site, readme-lint and pack-check clean at 0.12.0.
|
|
26
68
|
## 0.11.0
|
|
27
69
|
|
|
28
70
|
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.
|
|
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.
|
|
213
|
+
npx -y codebase-snapshot@0.12.0 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.
|
|
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.
|
|
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
|