codebase-snapshot 0.21.0 → 0.22.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 +14 -2
- package/README.md +9 -4
- package/SECURITY.md +2 -2
- package/dist/bin.js +974 -609
- package/dist/{chunk-TDPYLX7X.js → chunk-NPCDJBE4.js} +49 -1
- package/dist/cli.cjs +1065 -703
- package/dist/cli.d.cts +20 -2
- package/dist/cli.d.ts +20 -2
- package/dist/cli.js +415 -101
- 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 +49 -1
- package/dist/index.d.cts +180 -180
- package/dist/index.d.ts +180 -180
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +49 -1
- package/dist/mcp.d.cts +2 -2
- package/dist/mcp.d.ts +2 -2
- 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/cli.md +41 -15
- package/docs/contents.md +2 -0
- package/docs/deploy.md +2 -2
- package/docs/guard.md +154 -0
- package/docs/mcp-server-for-codebase.md +10 -2
- package/docs/mcp.md +9 -5
- package/package.json +1 -1
|
@@ -4512,7 +4512,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
4512
4512
|
|
|
4513
4513
|
// src/version.ts
|
|
4514
4514
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
4515
|
-
var GENERATOR_VERSION = "0.
|
|
4515
|
+
var GENERATOR_VERSION = "0.22.0";
|
|
4516
4516
|
var SCHEMA_VERSION = "3.0.0";
|
|
4517
4517
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
4518
4518
|
function isOurGeneratorName(name) {
|
|
@@ -16373,6 +16373,25 @@ var COMMAND_OPTION_SCOPE = {
|
|
|
16373
16373
|
"help",
|
|
16374
16374
|
"version"
|
|
16375
16375
|
],
|
|
16376
|
+
guard: [
|
|
16377
|
+
"hook",
|
|
16378
|
+
"changed",
|
|
16379
|
+
"max-chars",
|
|
16380
|
+
"diff",
|
|
16381
|
+
"paths",
|
|
16382
|
+
"depth",
|
|
16383
|
+
"max-results",
|
|
16384
|
+
"no-cache",
|
|
16385
|
+
"no-live",
|
|
16386
|
+
"cwd",
|
|
16387
|
+
"out-dir",
|
|
16388
|
+
"no-config",
|
|
16389
|
+
"format",
|
|
16390
|
+
"mode",
|
|
16391
|
+
"no-update-check",
|
|
16392
|
+
"help",
|
|
16393
|
+
"version"
|
|
16394
|
+
],
|
|
16376
16395
|
brief: [
|
|
16377
16396
|
"diff",
|
|
16378
16397
|
"paths",
|
|
@@ -16525,6 +16544,7 @@ var COMMAND_ORDER = [
|
|
|
16525
16544
|
"health",
|
|
16526
16545
|
"report",
|
|
16527
16546
|
"impact",
|
|
16547
|
+
"guard",
|
|
16528
16548
|
"brief",
|
|
16529
16549
|
"explain",
|
|
16530
16550
|
"update",
|
|
@@ -16747,6 +16767,13 @@ function buildAgentContract() {
|
|
|
16747
16767
|
positionals: [],
|
|
16748
16768
|
exits: [0, 1, 2]
|
|
16749
16769
|
},
|
|
16770
|
+
{
|
|
16771
|
+
name: "guard",
|
|
16772
|
+
aliases: [],
|
|
16773
|
+
summary: "Check whether a change is complete: untouched consumers, candidate tests, affected routes, and a trust stamp, in one small report. With --hook <claude|copilot|codex|raw>, read one hook payload from stdin and emit the host-shaped additionalContext, or an empty object when there is nothing to say. Defaults to the working tree against HEAD.",
|
|
16774
|
+
positionals: [],
|
|
16775
|
+
exits: [0, 1, 2]
|
|
16776
|
+
},
|
|
16750
16777
|
{
|
|
16751
16778
|
name: "brief",
|
|
16752
16779
|
aliases: [],
|
|
@@ -16908,6 +16935,27 @@ function buildAgentContract() {
|
|
|
16908
16935
|
appliesTo: optionAppliesTo("include-cycles"),
|
|
16909
16936
|
summary: "impact only: include import cycles in the impacted subgraph."
|
|
16910
16937
|
},
|
|
16938
|
+
{
|
|
16939
|
+
flag: "--hook",
|
|
16940
|
+
type: "string",
|
|
16941
|
+
default: "unset",
|
|
16942
|
+
appliesTo: optionAppliesTo("hook"),
|
|
16943
|
+
summary: "guard only: read one hook payload from stdin and shape the response for claude, copilot, codex, or raw. Fail-open: an error returns an empty object and a stderr note."
|
|
16944
|
+
},
|
|
16945
|
+
{
|
|
16946
|
+
flag: "--changed",
|
|
16947
|
+
type: "boolean",
|
|
16948
|
+
default: false,
|
|
16949
|
+
appliesTo: optionAppliesTo("changed"),
|
|
16950
|
+
summary: "guard only: check the working tree against HEAD. This is the default when --hook is not given."
|
|
16951
|
+
},
|
|
16952
|
+
{
|
|
16953
|
+
flag: "--max-chars",
|
|
16954
|
+
type: "number",
|
|
16955
|
+
default: 1200,
|
|
16956
|
+
appliesTo: optionAppliesTo("max-chars"),
|
|
16957
|
+
summary: "guard only: cap on the model-facing hook text (minimum 200, maximum 10000)."
|
|
16958
|
+
},
|
|
16911
16959
|
{
|
|
16912
16960
|
flag: "--copy",
|
|
16913
16961
|
type: "boolean",
|