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.
- package/CHANGELOG.md +33 -6
- package/README.md +41 -19
- package/SECURITY.md +2 -2
- package/dist/bin.js +12482 -10348
- package/dist/{chunk-GNVRD7XS.js → chunk-TDPYLX7X.js} +6062 -4438
- package/dist/cli.cjs +11759 -9645
- package/dist/cli.d.cts +76 -2
- package/dist/cli.d.ts +76 -2
- package/dist/cli.js +549 -14
- package/dist/{generate-worker-DMzNbsAW.d.cts → generate-worker-D56JeXwx.d.cts} +2 -2
- package/dist/{generate-worker-CRMESc0b.d.ts → generate-worker-DakxZs-l.d.ts} +2 -2
- package/dist/index.cjs +6037 -4435
- package/dist/index.d.cts +281 -63
- package/dist/index.d.ts +281 -63
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +10231 -4354
- package/dist/mcp.d.cts +13 -7
- package/dist/mcp.d.ts +13 -7
- package/dist/mcp.js +1 -1
- package/dist/{types-C5ytHMYz.d.ts → types-D5XYzksd.d.cts} +50 -2
- package/dist/{types-C5ytHMYz.d.cts → types-D5XYzksd.d.ts} +50 -2
- package/docs/about.md +86 -0
- package/docs/agent.md +28 -6
- package/docs/answer.md +99 -48
- package/docs/benchmarks.md +34 -34
- package/docs/brief.md +80 -81
- package/docs/cli.md +100 -25
- package/docs/codebase-token-budget.md +14 -13
- package/docs/contents.md +66 -0
- package/docs/deploy.md +2 -2
- package/docs/faq.md +112 -0
- package/docs/glossary.md +152 -0
- package/docs/health.md +1 -1
- package/docs/how-to-feed-a-repo-to-claude.md +6 -0
- package/docs/impact.md +102 -0
- package/docs/install.md +4 -3
- package/docs/llm-codebase-context.md +166 -0
- package/docs/mcp-server-for-codebase.md +155 -0
- package/docs/mcp.md +43 -66
- package/docs/migration.md +83 -90
- package/docs/output.md +1 -3
- package/docs/security-review.md +8 -8
- package/docs/slice.md +1 -1
- package/docs/tools.md +159 -185
- package/docs/troubleshooting.md +11 -11
- package/docs/vs-code2prompt.md +7 -0
- package/docs/vs-gitingest.md +7 -0
- package/docs/vs-repomix.md +10 -1
- package/docs/workspace.md +1 -1
- 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-
|
|
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-
|
|
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. */
|