codebase-snapshot 0.17.0 → 0.19.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 +669 -0
- package/README.md +4 -3
- package/SECURITY.md +2 -2
- package/dist/bin.js +529 -275
- package/dist/{chunk-PDLN24ZZ.js → chunk-RTWSGQ3U.js} +378 -163
- package/dist/{chunk-VI3JLKPX.js → chunk-TQXTKDFD.js} +3 -3
- package/dist/cli.cjs +425 -174
- package/dist/cli.d.cts +2 -2
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +42 -4
- package/dist/{generate-worker-B79yGkQO.d.cts → generate-worker-C6Z1I0XS.d.cts} +3 -0
- package/dist/{generate-worker-B79yGkQO.d.ts → generate-worker-C6Z1I0XS.d.ts} +3 -0
- package/dist/index.cjs +337 -122
- package/dist/index.d.cts +27 -9
- package/dist/index.d.ts +27 -9
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +316 -98
- package/dist/mcp.d.cts +22 -2
- package/dist/mcp.d.ts +22 -2
- package/dist/mcp.js +2 -2
- package/dist/{types-Cr5H2Y3t.d.cts → types-Drw1J0e0.d.cts} +8 -0
- package/dist/{types-Cr5H2Y3t.d.ts → types-Drw1J0e0.d.ts} +8 -0
- package/docs/agent.md +2 -2
- package/docs/answer.md +3 -0
- package/docs/benchmarks.md +4 -2
- package/docs/cli.md +39 -10
- package/docs/configuration.md +1 -1
- package/docs/deploy.md +2 -2
- package/docs/health.md +29 -18
- package/docs/mcp.md +16 -14
- package/docs/output.md +5 -3
- package/docs/security-review.md +2 -2
- package/docs/serve.md +20 -4
- package/docs/signing.md +3 -1
- package/docs/tools.md +13 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -192,6 +192,7 @@ to trust it.
|
|
|
192
192
|
| `explain <path>` | Why one path is included, which part it lands in, or why it was skipped. |
|
|
193
193
|
| `diff <a> <b>` | Compare two snapshots. |
|
|
194
194
|
| `describe` | The machine-readable contract (`--format json`). |
|
|
195
|
+
| `update` | Ask npm whether a newer release exists; exit `1` if it does. |
|
|
195
196
|
| `skill` | Print or install the agent skill. |
|
|
196
197
|
| `mcp` | Serve the repository to an MCP client over stdio. |
|
|
197
198
|
|
|
@@ -210,14 +211,14 @@ Everything an agent needs is available as data, and the tool can install its own
|
|
|
210
211
|
```bash
|
|
211
212
|
npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
|
|
212
213
|
npx codebase-snapshot skill --install # into .claude/skills + .cursor/rules
|
|
213
|
-
npx -y codebase-snapshot@0.
|
|
214
|
+
npx -y codebase-snapshot@0.19.0 mcp # or serve it over MCP
|
|
214
215
|
```
|
|
215
216
|
|
|
216
217
|
An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered
|
|
217
218
|
workflow, and produce a validated snapshot unaided — that path is covered by a test.
|
|
218
219
|
|
|
219
|
-
The MCP server exposes 26 tools — status, health, entrypoints, neighbors, routes, cycles,
|
|
220
|
-
`snapshot://` resources and
|
|
220
|
+
The MCP server exposes 26 tools — status, health, budget, history, tests, workspace, entrypoints, neighbors, routes, cycles, search, stats, review, diff_context, symbol, context, query, plan_for, answer, plan, generate, validate, locate, dependents, read and explain — plus
|
|
221
|
+
`snapshot://` resources and seven prompts. Its reads come from the snapshot rather than the working
|
|
221
222
|
tree, so an excluded file stays excluded and a redacted value stays redacted, and
|
|
222
223
|
`snapshot_validate` answers the question an agent otherwise cannot ask: is the context I was given
|
|
223
224
|
still true?
|
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.19<!--/@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.19<!--/@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
|