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/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`**
|
|
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`**
|
|
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.
|
|
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",
|