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/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-D5XYzksd.cjs';
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-D5XYzksd.js';
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. */