codebase-snapshot 0.12.15 → 0.13.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +933 -3
  2. package/README.md +14 -3
  3. package/SECURITY.md +2 -2
  4. package/dist/bin.js +9884 -6034
  5. package/dist/{chunk-FZB2FTHF.js → chunk-BOJYZQFB.js} +7651 -747
  6. package/dist/chunk-NESEHOPU.js +266 -0
  7. package/dist/cli.cjs +9930 -6127
  8. package/dist/cli.d.cts +115 -2
  9. package/dist/cli.d.ts +115 -2
  10. package/dist/cli.js +389 -8
  11. package/dist/{generate-worker-BK4uJx7Z.d.cts → generate-worker-B79yGkQO.d.cts} +16 -0
  12. package/dist/{generate-worker-BK4uJx7Z.d.ts → generate-worker-B79yGkQO.d.ts} +16 -0
  13. package/dist/index.cjs +7389 -680
  14. package/dist/index.d.cts +145 -6
  15. package/dist/index.d.ts +145 -6
  16. package/dist/index.js +1 -1
  17. package/dist/mcp.cjs +3335 -1075
  18. package/dist/mcp.d.cts +86 -4
  19. package/dist/mcp.d.ts +86 -4
  20. package/dist/mcp.js +2 -2
  21. package/dist/{types-c0tLF2WC.d.cts → types-CbD8yQRZ.d.cts} +145 -1
  22. package/dist/{types-c0tLF2WC.d.ts → types-CbD8yQRZ.d.ts} +145 -1
  23. package/docs/agent.md +1 -1
  24. package/docs/benchmarks.md +80 -0
  25. package/docs/budget.md +59 -0
  26. package/docs/cli.md +41 -4
  27. package/docs/configuration.md +27 -0
  28. package/docs/delta.md +50 -0
  29. package/docs/deploy.md +75 -0
  30. package/docs/health.md +13 -0
  31. package/docs/mcp.md +112 -11
  32. package/docs/migration.md +68 -0
  33. package/docs/output.md +9 -3
  34. package/docs/remote.md +60 -0
  35. package/docs/security-review.md +117 -0
  36. package/docs/serve.md +66 -0
  37. package/docs/signing.md +61 -0
  38. package/docs/slice.md +57 -0
  39. package/docs/tools.md +161 -0
  40. package/docs/troubleshooting.md +63 -0
  41. package/docs/vs-repomix.md +1 -1
  42. package/docs/workspace.md +93 -0
  43. package/package.json +1 -1
  44. package/dist/chunk-EPAXW6QJ.js +0 -3749
package/README.md CHANGED
@@ -210,13 +210,13 @@ Everything an agent needs is available as data, and the tool can install its own
210
210
  ```bash
211
211
  npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
212
212
  npx codebase-snapshot skill --install # into .claude/skills + .cursor/rules
213
- npx -y codebase-snapshot@0.12.15 mcp # or serve it over MCP
213
+ npx -y codebase-snapshot@0.13.0 mcp # or serve it over MCP
214
214
  ```
215
215
 
216
216
  An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered
217
217
  workflow, and produce a validated snapshot unaided — that path is covered by a test.
218
218
 
219
- The MCP server exposes nine tools — status, health, plan, generate, validate, locate, dependents, read, explain — plus
219
+ The MCP server exposes 24 tools — status, health, entrypoints, neighbors, routes, cycles, stats, search, review, symbol, diff_context, context, query, plan_for, plan, generate, validate, locate, dependents, read, explain — plus
220
220
  `snapshot://` resources and two prompts. Its reads come from the snapshot rather than the working
221
221
  tree, so an excluded file stays excluded and a redacted value stays redacted, and
222
222
  `snapshot_validate` answers the question an agent otherwise cannot ask: is the context I was given
@@ -270,9 +270,20 @@ others.
270
270
  | [Configuration](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/configuration.md) | Every setting, all 25 presets, budgets, hooks, secrets |
271
271
  | [Snapshot output](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/output.md) | Directory layout and the full manifest schema |
272
272
  | [Health audit](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/health.md) | Leak, integrity and token audit of a generated snapshot |
273
+ | [In the browser](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/serve.md) | `serve`: a local page to generate, preview and download a snapshot |
274
+ | [Remote repositories](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/remote.md) | `--remote`: a shallow, SSRF-safe clone with recorded provenance |
275
+ | [Delta packs](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/delta.md) | `--delta`: only what changed since a base snapshot, with its importers |
276
+ | [Task slices](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/slice.md) | `--slice`: only what the planner picks for a question, at a token budget |
277
+ | [Signed snapshots](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/signing.md) | `--sign`: an Ed25519 signature over the manifest, verified by health |
278
+ | [Benchmarks](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/benchmarks.md) | Reproducible token and time numbers for the three modes |
279
+ | [Security review](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/security-review.md) | Threat model, controls, tests and residual risks |
280
+ | [Deploy](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/deploy.md) | Container, compose and systemd, with the token requirement |
281
+ | [Migrating](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/migration.md) | What changed from 0.12.14 to 0.17.0, and the two behaviour changes |
282
+ | [Workspaces](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/workspace.md) | `--workspace`: one snapshot per member, plus the index |
283
+ | [Token budget](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/budget.md) | `--budget-tokens`: whole files chosen to fit a limit, not torn to fit a part |
273
284
  | [The brief](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/brief.md) | The half of PROMPT.md only you can write, and what is refused |
274
285
  | [AI agents](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/agent.md) | The contract, the skill, what an agent should avoid |
275
- | [MCP server](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/mcp.md) | nine tools, resources, both protocol eras |
286
+ | [MCP server](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/mcp.md) | 24 tools, resources, both protocol eras |
276
287
  | [Troubleshooting](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/troubleshooting.md) | Every message and what to do about it |
277
288
  | [Changelog](https://github.com/ankurhalder/codebase-snapshot/blob/main/CHANGELOG.md) | Release history and breaking changes |
278
289
 
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.12<!--/@majorMinor-->.x | ✅ |
9
+ | <!--@majorMinor-->0.13<!--/@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.12<!--/@majorMinor-->.x is newer than 4.4.1, not older. That is explained in full in the
13
+ so <!--@majorMinor-->0.13<!--/@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