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/docs/tools.md CHANGED
@@ -59,7 +59,10 @@ Every tool is read-only unless it says **writes**. Cost is the class `tools/list
59
59
  ```json
60
60
  { "name": "snapshot_symbol", "arguments": { "name": "generateSnapshot" } }
61
61
  ```
62
- - **`snapshot_routes`** — cheap, read-only. Every route the summaries recorded, with file and part.
62
+ - **`snapshot_routes`**
63
+ > Records the **path** with the method for framework route registration (`GET /health`). A
64
+ > method-only handler (`export async function GET()` in Next.js) has no literal path to record and
65
+ > is reported as the method alone. — cheap, read-only. Every route the summaries recorded, with file and part.
63
66
  ```json
64
67
  { "name": "snapshot_routes", "arguments": { "pattern": "users" } }
65
68
  ```
@@ -115,7 +118,10 @@ Every tool is read-only unless it says **writes**. Cost is the class `tools/list
115
118
 
116
119
  ## Reviewing a change
117
120
 
118
- - **`snapshot_review`** — expensive, read-only. Is the snapshot current, what does the health audit
121
+ - **`snapshot_review`**
122
+ > Validates with the settings the manifest recorded, not with a bare config file: a snapshot
123
+ > generated with `--token-tree`, `--include-diffs`, `--remove-empty-lines` or a pack is current
124
+ > if the files are, and the review says so instead of telling you to regenerate. — expensive, read-only. Is the snapshot current, what does the health audit
119
125
  say, what do the given paths contain, and which route methods do they touch?
120
126
  ```json
121
127
  { "name": "snapshot_review", "arguments": { "paths": ["src/mcp/tools.ts"] } }
@@ -151,12 +157,17 @@ Every tool is read-only unless it says **writes**. Cost is the class `tools/list
151
157
  ```json
152
158
  { "name": "snapshot_generate", "arguments": { "tokenTree": true, "pack": "xml" } }
153
159
  ```
160
+ It also takes `only` and `ignore` arrays — the CLI's per-run narrowing — which enter the config
161
+ digest, so `snapshot_validate` takes the same arrays to compare like with like.
154
162
  It can also narrow: `slice` with `sliceTokens`, or `budgetTokens` (not both — the tool refuses
155
163
  the pair, as the CLI does).
156
164
  ```json
157
165
  { "name": "snapshot_generate", "arguments": { "slice": "how is auth done", "sliceTokens": 20000 } }
158
166
  ```
159
167
  - **`snapshot_validate`** — medium, read-only. Drift check: files changed or deleted since the
168
+ snapshot, part damage, bookkeeping, **and the settings the manifest recorded** — a snapshot
169
+ generated with `tokenTree`, `includeDiffs`, `removeEmptyLines` or `skeleton` validates clean
170
+ without re-passing the flags, while a changed config file is still drift.
160
171
  snapshot, part hashes, bookkeeping. A selection snapshot is not second-guessed, and says so.
161
172
  ```json
162
173
  { "name": "snapshot_validate", "arguments": {} }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-snapshot",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Create a codebase snapshot an LLM can read: budgeted Markdown parts for Claude, ChatGPT and Cursor, a manifest of every included and skipped file, secret redaction, and validate, which fails when the snapshot drifts. Local CLI and MCP server.",
5
5
  "keywords": [
6
6
  "codebase-snapshot",