codebase-snapshot 0.14.0 → 0.15.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 +95 -0
- package/README.md +1 -1
- package/SECURITY.md +2 -2
- package/dist/bin.js +84 -8
- package/dist/{chunk-7WSZUMT6.js → chunk-4OHQULCV.js} +1 -1
- package/dist/{chunk-2YNQ42B3.js → chunk-KHHUC6UT.js} +78 -8
- package/dist/cli.cjs +84 -8
- package/dist/cli.d.cts +11 -1
- package/dist/cli.d.ts +11 -1
- package/dist/cli.js +9 -3
- package/dist/index.cjs +78 -8
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +78 -8
- package/dist/mcp.js +2 -2
- package/dist/{types-CbD8yQRZ.d.cts → types-5G2Q6tWP.d.cts} +4 -0
- package/dist/{types-CbD8yQRZ.d.ts → types-5G2Q6tWP.d.ts} +4 -0
- package/docs/benchmarks.md +54 -9
- package/docs/cli.md +6 -4
- package/docs/deploy.md +2 -2
- package/docs/mcp.md +4 -4
- package/docs/tools.md +3 -1
- package/package.json +1 -1
package/docs/mcp.md
CHANGED
|
@@ -10,7 +10,7 @@ walk — that the client sees.
|
|
|
10
10
|
## Start it
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npx -y codebase-snapshot@0.
|
|
13
|
+
npx -y codebase-snapshot@0.15.0 mcp
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The server serves the directory it was started in. `--cwd <path>` points it elsewhere, and that
|
|
@@ -25,7 +25,7 @@ Claude Desktop and Cursor:
|
|
|
25
25
|
"mcpServers": {
|
|
26
26
|
"codebase-snapshot": {
|
|
27
27
|
"command": "npx",
|
|
28
|
-
"args": ["-y", "codebase-snapshot@0.
|
|
28
|
+
"args": ["-y", "codebase-snapshot@0.15.0", "mcp", "--cwd", "/absolute/path/to/repo"]
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -34,7 +34,7 @@ Claude Desktop and Cursor:
|
|
|
34
34
|
Claude Code registers the same thing from a shell:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.
|
|
37
|
+
claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.15.0 mcp --cwd /absolute/path/to/repo
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
On Windows, wrap the command as `cmd /c npx` with the same arguments — `npx` is a `.cmd` shim
|
|
@@ -43,7 +43,7 @@ there, and clients that spawn without a shell cannot execute it directly.
|
|
|
43
43
|
## Over HTTP, for clients that cannot spawn a process
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
npx -y codebase-snapshot@0.
|
|
46
|
+
npx -y codebase-snapshot@0.15.0 mcp --http --port 4789
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
This is the Streamable HTTP shape: POST one JSON-RPC message (or an array) to `/mcp` and read
|
package/docs/tools.md
CHANGED
|
@@ -52,7 +52,9 @@ Every tool is read-only unless it says **writes**. Cost is the class `tools/list
|
|
|
52
52
|
```json
|
|
53
53
|
{ "name": "snapshot_locate", "arguments": { "query": "src/mcp/tools.ts", "by": "path" } }
|
|
54
54
|
```
|
|
55
|
-
- **`snapshot_symbol`** — medium, read-only. A symbol by name: defining file, kind, signature
|
|
55
|
+
- **`snapshot_symbol`** — medium, read-only. A symbol by name: defining file, kind, signature,
|
|
56
|
+
and — unless `references: false` — the call sites where the name appears, with line numbers.
|
|
57
|
+
|
|
56
58
|
the exports that reference it.
|
|
57
59
|
```json
|
|
58
60
|
{ "name": "snapshot_symbol", "arguments": { "name": "generateSnapshot" } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-snapshot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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",
|