codebase-snapshot 0.21.0 → 0.22.1
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 +28 -2
- package/README.md +35 -21
- package/SECURITY.md +2 -2
- package/dist/bin.js +2239 -1063
- package/dist/{chunk-TDPYLX7X.js → chunk-7AAXOTKS.js} +1499 -724
- package/dist/cli.cjs +2359 -1189
- package/dist/cli.d.cts +20 -2
- package/dist/cli.d.ts +20 -2
- package/dist/cli.js +556 -161
- package/dist/{generate-worker-D56JeXwx.d.cts → generate-worker-BUNhTXkj.d.cts} +1 -1
- package/dist/{generate-worker-DakxZs-l.d.ts → generate-worker-TUMvHlgz.d.ts} +1 -1
- package/dist/index.cjs +1474 -710
- package/dist/index.d.cts +182 -180
- package/dist/index.d.ts +182 -180
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +875 -346
- package/dist/mcp.d.cts +7 -4
- package/dist/mcp.d.ts +7 -4
- package/dist/mcp.js +1 -1
- package/dist/{types-D5XYzksd.d.ts → types-DQXKiaXk.d.cts} +1 -1
- package/dist/{types-D5XYzksd.d.cts → types-DQXKiaXk.d.ts} +1 -1
- package/docs/about.md +3 -2
- package/docs/agent.md +2 -1
- package/docs/cli.md +53 -26
- package/docs/contents.md +2 -0
- package/docs/deploy.md +10 -4
- package/docs/guard.md +197 -0
- package/docs/impact.md +3 -2
- package/docs/mcp-server-for-codebase.md +12 -4
- package/docs/mcp.md +9 -5
- package/docs/security-review.md +3 -2
- package/docs/troubleshooting.md +2 -2
- package/package.json +1 -1
package/docs/security-review.md
CHANGED
|
@@ -48,8 +48,9 @@ untrusted input can arrive.
|
|
|
48
48
|
|
|
49
49
|
A `snapshot.config.ts` is code. The CLI runs it because the user invoked the repository's own
|
|
50
50
|
command; the **MCP server and the web page refuse it** and say so. A repository fetched with
|
|
51
|
-
`--remote` is treated
|
|
52
|
-
|
|
51
|
+
`--remote` is treated more strictly still: **none of its configuration is applied** — not JSON,
|
|
52
|
+
not JavaScript — because a fetched repository is not a trusted one. Only the clone and the
|
|
53
|
+
built-in defaults decide what that run scans.
|
|
53
54
|
|
|
54
55
|
### MCP over HTTP
|
|
55
56
|
|
package/docs/troubleshooting.md
CHANGED
|
@@ -42,7 +42,7 @@ problem, and for an option the command does not take it also names the commands
|
|
|
42
42
|
❌ --watch does not apply to `report` and was not applied. It is accepted by: `generate`.
|
|
43
43
|
❌ --cwd does not apply to `describe` and was not applied. It is accepted by: `generate`, `validate`, `report`, `impact`, `brief`, `explain`, `init`, `setup`, `skill`, `mcp`, `health`, `serve`.
|
|
44
44
|
❌ --max-part-bytes does not apply to `report` and was not applied. It is accepted by: `generate`, `validate`, `init`, `setup`.
|
|
45
|
-
❌ Unknown --mode "bogus". Expected one of: generate, validate, check, report, impact, brief, init, setup, explain, diff, describe, skill, mcp, health, update, serve.
|
|
45
|
+
❌ Unknown --mode "bogus". Expected one of: generate, validate, check, report, impact, guard, brief, init, setup, explain, diff, describe, skill, mcp, health, update, serve.
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Nothing is silently ignored — that is the point of the message. The per-option `Applies to`
|
|
@@ -62,7 +62,7 @@ there, as are `--skeleton`, `--sarif` and `--max-part-tokens`. `--mode` names th
|
|
|
62
62
|
| `--no-install only applies to \`setup\`, or to \`generate --autopilot\`.` | The install only happens during a setup. Drop the flag, or add `--autopilot`. |
|
|
63
63
|
| `--preset does not apply to \`generate\` and was not applied. It is accepted by: \`init\`, \`setup\`. To scope a run, set include/excludePatterns/preset in snapshot.config.ts (or run \`codebase-snapshot init\` to generate one).` | `--preset`, `--include`, `--exclude`, `--yes` and `--force` configure `init` and `setup`, which write them into the config. Set them at generation time in `snapshot.config.ts` instead. |
|
|
64
64
|
| `--skip-artifacts does not apply to \`report\` and was not applied. It is accepted by: \`generate\`, \`validate\`, \`init\`, \`setup\`.` | `report` reads the manifest and prints it, so the generation settings are rejected there. Run `generate` with the artifact selection you want. |
|
|
65
|
-
| `Unknown --mode "bogus". Expected one of: generate, validate, check, report, impact, brief, init, setup, explain, diff, describe, skill, mcp, health, update, serve.` | `--mode` names the command the run uses; every command is an accepted name. Pass the command positionally unless a wrapper builds the argument list. |
|
|
65
|
+
| `Unknown --mode "bogus". Expected one of: generate, validate, check, report, impact, guard, brief, init, setup, explain, diff, describe, skill, mcp, health, update, serve.` | `--mode` names the command the run uses; every command is an accepted name. Pass the command positionally unless a wrapper builds the argument list. |
|
|
66
66
|
| `--install does not apply to \`generate\` and was not applied. It is accepted by: \`skill\`.` | `--install` and `--target` configure `skill` only. |
|
|
67
67
|
| `--cwd directory does not exist: …` / `--cwd is not a directory: …` | Point `--cwd` at an existing repository directory. |
|
|
68
68
|
| `--out-dir requires a value (received an empty string).` | An unset shell variable expanded to nothing. Quote it or drop the flag. Every string option rejects `""` rather than silently using the default. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-snapshot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"mcpName": "io.github.ankurhalder/codebase-snapshot",
|
|
5
5
|
"description": "LLM codebase context you can verify: turn a repository into budgeted Markdown with a manifest of every included and skipped file, secret redaction, drift validation, and 7 MCP tools for Claude, ChatGPT, Cursor and CI.",
|
|
6
6
|
"keywords": [
|