codebase-snapshot 0.20.13 → 0.21.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +33 -6
  2. package/README.md +41 -19
  3. package/SECURITY.md +2 -2
  4. package/dist/bin.js +12482 -10348
  5. package/dist/{chunk-GNVRD7XS.js → chunk-TDPYLX7X.js} +6062 -4438
  6. package/dist/cli.cjs +11759 -9645
  7. package/dist/cli.d.cts +76 -2
  8. package/dist/cli.d.ts +76 -2
  9. package/dist/cli.js +549 -14
  10. package/dist/{generate-worker-DMzNbsAW.d.cts → generate-worker-D56JeXwx.d.cts} +2 -2
  11. package/dist/{generate-worker-CRMESc0b.d.ts → generate-worker-DakxZs-l.d.ts} +2 -2
  12. package/dist/index.cjs +6037 -4435
  13. package/dist/index.d.cts +281 -63
  14. package/dist/index.d.ts +281 -63
  15. package/dist/index.js +1 -1
  16. package/dist/mcp.cjs +10231 -4354
  17. package/dist/mcp.d.cts +13 -7
  18. package/dist/mcp.d.ts +13 -7
  19. package/dist/mcp.js +1 -1
  20. package/dist/{types-C5ytHMYz.d.ts → types-D5XYzksd.d.cts} +50 -2
  21. package/dist/{types-C5ytHMYz.d.cts → types-D5XYzksd.d.ts} +50 -2
  22. package/docs/about.md +86 -0
  23. package/docs/agent.md +28 -6
  24. package/docs/answer.md +99 -48
  25. package/docs/benchmarks.md +34 -34
  26. package/docs/brief.md +80 -81
  27. package/docs/cli.md +100 -25
  28. package/docs/codebase-token-budget.md +14 -13
  29. package/docs/contents.md +66 -0
  30. package/docs/deploy.md +2 -2
  31. package/docs/faq.md +112 -0
  32. package/docs/glossary.md +152 -0
  33. package/docs/health.md +1 -1
  34. package/docs/how-to-feed-a-repo-to-claude.md +6 -0
  35. package/docs/impact.md +102 -0
  36. package/docs/install.md +4 -3
  37. package/docs/llm-codebase-context.md +166 -0
  38. package/docs/mcp-server-for-codebase.md +155 -0
  39. package/docs/mcp.md +43 -66
  40. package/docs/migration.md +83 -90
  41. package/docs/output.md +1 -3
  42. package/docs/security-review.md +8 -8
  43. package/docs/slice.md +1 -1
  44. package/docs/tools.md +159 -185
  45. package/docs/troubleshooting.md +11 -11
  46. package/docs/vs-code2prompt.md +7 -0
  47. package/docs/vs-gitingest.md +7 -0
  48. package/docs/vs-repomix.md +10 -1
  49. package/docs/workspace.md +1 -1
  50. package/package.json +8 -2
package/dist/cli.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-C5ytHMYz.cjs';
1
+ import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-D5XYzksd.cjs';
2
2
 
3
3
  /**
4
4
  * The machine-readable description of this tool.
@@ -125,7 +125,7 @@ interface AgentContract {
125
125
  /** Builds the contract document. Cheap enough to call on every `describe`. */
126
126
  declare function buildAgentContract(): AgentContract;
127
127
 
128
- type Command = "generate" | "validate" | "health" | "report" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
128
+ type Command = "generate" | "validate" | "health" | "report" | "impact" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
129
129
  declare const CLI_OPTIONS: {
130
130
  readonly cwd: {
131
131
  readonly type: "string";
@@ -223,6 +223,57 @@ declare const CLI_OPTIONS: {
223
223
  readonly "changed-since": {
224
224
  readonly type: "string";
225
225
  };
226
+ readonly diff: {
227
+ readonly type: "string";
228
+ };
229
+ readonly paths: {
230
+ readonly type: "string";
231
+ };
232
+ readonly depth: {
233
+ readonly type: "string";
234
+ };
235
+ readonly "max-results": {
236
+ readonly type: "string";
237
+ };
238
+ readonly "no-cache": {
239
+ readonly type: "boolean";
240
+ };
241
+ readonly "no-live": {
242
+ readonly type: "boolean";
243
+ };
244
+ readonly "tests-paths": {
245
+ readonly type: "boolean";
246
+ };
247
+ readonly run: {
248
+ readonly type: "boolean";
249
+ };
250
+ readonly precise: {
251
+ readonly type: "boolean";
252
+ };
253
+ readonly "include-imports": {
254
+ readonly type: "boolean";
255
+ };
256
+ readonly "include-cycles": {
257
+ readonly type: "boolean";
258
+ };
259
+ readonly copy: {
260
+ readonly type: "boolean";
261
+ };
262
+ readonly out: {
263
+ readonly type: "string";
264
+ };
265
+ readonly "max-tokens": {
266
+ readonly type: "string";
267
+ };
268
+ readonly "lines-per-file": {
269
+ readonly type: "string";
270
+ };
271
+ readonly "include-tests": {
272
+ readonly type: "boolean";
273
+ };
274
+ readonly "with-mcp": {
275
+ readonly type: "boolean";
276
+ };
226
277
  readonly "with-dependents": {
227
278
  readonly type: "boolean";
228
279
  };
@@ -351,6 +402,21 @@ interface ParsedInvocation {
351
402
  include?: string;
352
403
  exclude?: string;
353
404
  yes: boolean;
405
+ noCache: boolean;
406
+ noLive: boolean;
407
+ testsPaths: boolean;
408
+ runTests: boolean;
409
+ precise: boolean;
410
+ includeImports: boolean;
411
+ includeCycles: boolean;
412
+ copy: boolean;
413
+ out?: string;
414
+ maxTokens?: number;
415
+ linesPerFile?: number;
416
+ includeTestsOnly: boolean;
417
+ withMcp: boolean;
418
+ markdown: boolean;
419
+ prComment: boolean;
354
420
  force: boolean;
355
421
  /** `generate` only: set the project up without prompting, then generate. */
356
422
  autopilot: boolean;
@@ -396,6 +462,14 @@ interface ParsedInvocation {
396
462
  installHook?: boolean;
397
463
  /** Only files changed since this git ref. */
398
464
  changedSince?: string;
465
+ /** `impact`: compare the working tree against this git ref. */
466
+ diff?: string;
467
+ /** `impact`: explicit repository-relative paths to treat as the change. */
468
+ paths?: string[];
469
+ /** `impact`: reverse-import hops to follow. */
470
+ depth?: number;
471
+ /** `impact`: cap on affected files. */
472
+ maxResults?: number;
399
473
  /** Only files staged for the next commit. */
400
474
  staged?: boolean;
401
475
  /** With the two above: also include the files that import a changed one. */
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-C5ytHMYz.js';
1
+ import { O as OutputFormat, P as PromptTask, D as DiscoveryMode, C as CliOptions, R as ResolvedSnapshotConfig } from './types-D5XYzksd.js';
2
2
 
3
3
  /**
4
4
  * The machine-readable description of this tool.
@@ -125,7 +125,7 @@ interface AgentContract {
125
125
  /** Builds the contract document. Cheap enough to call on every `describe`. */
126
126
  declare function buildAgentContract(): AgentContract;
127
127
 
128
- type Command = "generate" | "validate" | "health" | "report" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
128
+ type Command = "generate" | "validate" | "health" | "report" | "impact" | "brief" | "init" | "setup" | "explain" | "diff" | "describe" | "skill" | "mcp" | "update" | "serve";
129
129
  declare const CLI_OPTIONS: {
130
130
  readonly cwd: {
131
131
  readonly type: "string";
@@ -223,6 +223,57 @@ declare const CLI_OPTIONS: {
223
223
  readonly "changed-since": {
224
224
  readonly type: "string";
225
225
  };
226
+ readonly diff: {
227
+ readonly type: "string";
228
+ };
229
+ readonly paths: {
230
+ readonly type: "string";
231
+ };
232
+ readonly depth: {
233
+ readonly type: "string";
234
+ };
235
+ readonly "max-results": {
236
+ readonly type: "string";
237
+ };
238
+ readonly "no-cache": {
239
+ readonly type: "boolean";
240
+ };
241
+ readonly "no-live": {
242
+ readonly type: "boolean";
243
+ };
244
+ readonly "tests-paths": {
245
+ readonly type: "boolean";
246
+ };
247
+ readonly run: {
248
+ readonly type: "boolean";
249
+ };
250
+ readonly precise: {
251
+ readonly type: "boolean";
252
+ };
253
+ readonly "include-imports": {
254
+ readonly type: "boolean";
255
+ };
256
+ readonly "include-cycles": {
257
+ readonly type: "boolean";
258
+ };
259
+ readonly copy: {
260
+ readonly type: "boolean";
261
+ };
262
+ readonly out: {
263
+ readonly type: "string";
264
+ };
265
+ readonly "max-tokens": {
266
+ readonly type: "string";
267
+ };
268
+ readonly "lines-per-file": {
269
+ readonly type: "string";
270
+ };
271
+ readonly "include-tests": {
272
+ readonly type: "boolean";
273
+ };
274
+ readonly "with-mcp": {
275
+ readonly type: "boolean";
276
+ };
226
277
  readonly "with-dependents": {
227
278
  readonly type: "boolean";
228
279
  };
@@ -351,6 +402,21 @@ interface ParsedInvocation {
351
402
  include?: string;
352
403
  exclude?: string;
353
404
  yes: boolean;
405
+ noCache: boolean;
406
+ noLive: boolean;
407
+ testsPaths: boolean;
408
+ runTests: boolean;
409
+ precise: boolean;
410
+ includeImports: boolean;
411
+ includeCycles: boolean;
412
+ copy: boolean;
413
+ out?: string;
414
+ maxTokens?: number;
415
+ linesPerFile?: number;
416
+ includeTestsOnly: boolean;
417
+ withMcp: boolean;
418
+ markdown: boolean;
419
+ prComment: boolean;
354
420
  force: boolean;
355
421
  /** `generate` only: set the project up without prompting, then generate. */
356
422
  autopilot: boolean;
@@ -396,6 +462,14 @@ interface ParsedInvocation {
396
462
  installHook?: boolean;
397
463
  /** Only files changed since this git ref. */
398
464
  changedSince?: string;
465
+ /** `impact`: compare the working tree against this git ref. */
466
+ diff?: string;
467
+ /** `impact`: explicit repository-relative paths to treat as the change. */
468
+ paths?: string[];
469
+ /** `impact`: reverse-import hops to follow. */
470
+ depth?: number;
471
+ /** `impact`: cap on affected files. */
472
+ maxResults?: number;
399
473
  /** Only files staged for the next commit. */
400
474
  staged?: boolean;
401
475
  /** With the two above: also include the files that import a changed one. */