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
package/dist/cli.d.cts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-
|
|
1
|
+
import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-DQXKiaXk.cjs';
|
|
2
|
+
|
|
3
|
+
/** The hook hosts this command can shape output for. */
|
|
4
|
+
type GuardClient = "claude" | "copilot" | "codex" | "raw";
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* The machine-readable description of this tool.
|
|
@@ -125,7 +128,7 @@ interface AgentContract {
|
|
|
125
128
|
/** Builds the contract document. Cheap enough to call on every `describe`. */
|
|
126
129
|
declare function buildAgentContract(): AgentContract;
|
|
127
130
|
|
|
128
|
-
type Command = "generate" | "validate" | "health" | "report" | "impact" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
|
|
131
|
+
type Command = "generate" | "validate" | "health" | "report" | "impact" | "guard" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
|
|
129
132
|
declare const CLI_OPTIONS: {
|
|
130
133
|
readonly cwd: {
|
|
131
134
|
readonly type: "string";
|
|
@@ -229,6 +232,15 @@ declare const CLI_OPTIONS: {
|
|
|
229
232
|
readonly paths: {
|
|
230
233
|
readonly type: "string";
|
|
231
234
|
};
|
|
235
|
+
readonly hook: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
};
|
|
238
|
+
readonly changed: {
|
|
239
|
+
readonly type: "boolean";
|
|
240
|
+
};
|
|
241
|
+
readonly "max-chars": {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
};
|
|
232
244
|
readonly depth: {
|
|
233
245
|
readonly type: "string";
|
|
234
246
|
};
|
|
@@ -466,6 +478,12 @@ interface ParsedInvocation {
|
|
|
466
478
|
diff?: string;
|
|
467
479
|
/** `impact`: explicit repository-relative paths to treat as the change. */
|
|
468
480
|
paths?: string[];
|
|
481
|
+
/** `guard`: shape the response for this hook host instead of printing a report. */
|
|
482
|
+
hook?: GuardClient;
|
|
483
|
+
/** `guard`: compare the working tree with HEAD when no --hook is given. */
|
|
484
|
+
changed: boolean;
|
|
485
|
+
/** `guard`: cap on the model-facing hook text. */
|
|
486
|
+
maxChars?: number;
|
|
469
487
|
/** `impact`: reverse-import hops to follow. */
|
|
470
488
|
depth?: number;
|
|
471
489
|
/** `impact`: cap on affected files. */
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-
|
|
1
|
+
import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-DQXKiaXk.js';
|
|
2
|
+
|
|
3
|
+
/** The hook hosts this command can shape output for. */
|
|
4
|
+
type GuardClient = "claude" | "copilot" | "codex" | "raw";
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* The machine-readable description of this tool.
|
|
@@ -125,7 +128,7 @@ interface AgentContract {
|
|
|
125
128
|
/** Builds the contract document. Cheap enough to call on every `describe`. */
|
|
126
129
|
declare function buildAgentContract(): AgentContract;
|
|
127
130
|
|
|
128
|
-
type Command = "generate" | "validate" | "health" | "report" | "impact" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
|
|
131
|
+
type Command = "generate" | "validate" | "health" | "report" | "impact" | "guard" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
|
|
129
132
|
declare const CLI_OPTIONS: {
|
|
130
133
|
readonly cwd: {
|
|
131
134
|
readonly type: "string";
|
|
@@ -229,6 +232,15 @@ declare const CLI_OPTIONS: {
|
|
|
229
232
|
readonly paths: {
|
|
230
233
|
readonly type: "string";
|
|
231
234
|
};
|
|
235
|
+
readonly hook: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
};
|
|
238
|
+
readonly changed: {
|
|
239
|
+
readonly type: "boolean";
|
|
240
|
+
};
|
|
241
|
+
readonly "max-chars": {
|
|
242
|
+
readonly type: "string";
|
|
243
|
+
};
|
|
232
244
|
readonly depth: {
|
|
233
245
|
readonly type: "string";
|
|
234
246
|
};
|
|
@@ -466,6 +478,12 @@ interface ParsedInvocation {
|
|
|
466
478
|
diff?: string;
|
|
467
479
|
/** `impact`: explicit repository-relative paths to treat as the change. */
|
|
468
480
|
paths?: string[];
|
|
481
|
+
/** `guard`: shape the response for this hook host instead of printing a report. */
|
|
482
|
+
hook?: GuardClient;
|
|
483
|
+
/** `guard`: compare the working tree with HEAD when no --hook is given. */
|
|
484
|
+
changed: boolean;
|
|
485
|
+
/** `guard`: cap on the model-facing hook text. */
|
|
486
|
+
maxChars?: number;
|
|
469
487
|
/** `impact`: reverse-import hops to follow. */
|
|
470
488
|
depth?: number;
|
|
471
489
|
/** `impact`: cap on affected files. */
|