codebase-snapshot 0.20.13 → 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 +45 -6
- package/README.md +46 -19
- package/SECURITY.md +2 -2
- package/dist/bin.js +14535 -12036
- package/dist/{chunk-GNVRD7XS.js → chunk-NPCDJBE4.js} +6097 -4425
- package/dist/cli.cjs +11184 -8708
- package/dist/cli.d.cts +94 -2
- package/dist/cli.d.ts +94 -2
- package/dist/cli.js +944 -95
- package/dist/{generate-worker-DMzNbsAW.d.cts → generate-worker-BUNhTXkj.d.cts} +2 -2
- package/dist/{generate-worker-CRMESc0b.d.ts → generate-worker-TUMvHlgz.d.ts} +2 -2
- package/dist/index.cjs +6073 -4423
- package/dist/index.d.cts +281 -63
- package/dist/index.d.ts +281 -63
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +10240 -4315
- 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-DQXKiaXk.d.cts} +50 -2
- package/dist/{types-C5ytHMYz.d.cts → types-DQXKiaXk.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 +126 -25
- package/docs/codebase-token-budget.md +14 -13
- package/docs/contents.md +68 -0
- package/docs/deploy.md +2 -2
- package/docs/faq.md +112 -0
- package/docs/glossary.md +152 -0
- package/docs/guard.md +154 -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 +163 -0
- package/docs/mcp.md +48 -67
- 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/index.d.cts
CHANGED
|
@@ -1,7 +1,184 @@
|
|
|
1
1
|
import * as node_crypto from 'node:crypto';
|
|
2
|
-
import { S as SecretRule, D as DiscoveryMode, a as SkipRecord, J as JsonSummary,
|
|
3
|
-
export {
|
|
4
|
-
|
|
2
|
+
import { E as EdgeProvenance, M as Manifest, T as TrustEnvelope, S as SecretRule, D as DiscoveryMode, a as SkipRecord, J as JsonSummary, b as MarkdownSummary, c as SourceSummary, d as SnapshotConfig, K as KindRule, L as LayerRule, R as ResolvedSnapshotConfig, B as ByteSize, C as CliOptions, e as PartMetadata, F as FileEntry, f as TextEncoding, g as SecretFinding, V as ValidationResult, A as ArtifactSelection } from './types-DQXKiaXk.cjs';
|
|
3
|
+
export { h as BudgetConfig, i as CoverageStatus, j as DeclarationSpan, k as FreshnessStatus, H as HooksConfig, I as ImportBinding, l as InclusionMode, m as IncompleteFile, n as IndexSourceKind, o as ManifestArtifact, p as ManifestConfigSnapshot, q as ManifestIndexes, r as ManifestTotals, s as Mode, O as OutputFormat, t as OwnerBrief, u as PartFileEntry, P as PromptTask, v as ReExportBinding, w as ResolvedArtifacts, x as ResolvedBudgets, y as SecretRuleInput, z as SkipReason, G as SummaryQuality, N as TruncationReason, Q as ValidationDrift } from './types-DQXKiaXk.cjs';
|
|
4
|
+
import ts from 'typescript';
|
|
5
|
+
export { w as workerEntry } from './generate-worker-BUNhTXkj.cjs';
|
|
6
|
+
|
|
7
|
+
declare const DEFAULT_MAX_PROGRAM_FILES = 2500;
|
|
8
|
+
type PrecisionMode = "ts-semantic" | "syntactic-fallback";
|
|
9
|
+
interface TsProgramFile {
|
|
10
|
+
relativePath: string;
|
|
11
|
+
content?: string;
|
|
12
|
+
}
|
|
13
|
+
interface ScopedProgramOptions {
|
|
14
|
+
root: string;
|
|
15
|
+
files: readonly TsProgramFile[];
|
|
16
|
+
maxProgramFiles?: number;
|
|
17
|
+
timeoutMs?: number;
|
|
18
|
+
}
|
|
19
|
+
interface ScopedProgram {
|
|
20
|
+
root: string;
|
|
21
|
+
program: ts.Program | null;
|
|
22
|
+
checker: ts.TypeChecker | null;
|
|
23
|
+
fileCount: number;
|
|
24
|
+
precisionMode: PrecisionMode;
|
|
25
|
+
coverage: "complete" | "partial";
|
|
26
|
+
reasons: string[];
|
|
27
|
+
deadline: number;
|
|
28
|
+
}
|
|
29
|
+
interface SymbolReference {
|
|
30
|
+
path: string;
|
|
31
|
+
line: number;
|
|
32
|
+
column: number;
|
|
33
|
+
name: string;
|
|
34
|
+
isDefinition: boolean;
|
|
35
|
+
confidence: "ts-semantic";
|
|
36
|
+
}
|
|
37
|
+
interface SymbolReferencesOptions extends ScopedProgramOptions {
|
|
38
|
+
symbolName: string;
|
|
39
|
+
targetPath?: string;
|
|
40
|
+
maxResults?: number;
|
|
41
|
+
}
|
|
42
|
+
interface SymbolReferencesResult {
|
|
43
|
+
symbol: string;
|
|
44
|
+
targetPath?: string;
|
|
45
|
+
precisionMode: PrecisionMode;
|
|
46
|
+
coverage: "complete" | "partial";
|
|
47
|
+
truncated: boolean;
|
|
48
|
+
reasons: string[];
|
|
49
|
+
references: SymbolReference[];
|
|
50
|
+
}
|
|
51
|
+
interface PreciseCallersOptions extends ScopedProgramOptions {
|
|
52
|
+
changedFiles: readonly string[];
|
|
53
|
+
changedSymbols: Readonly<Record<string, readonly string[]>>;
|
|
54
|
+
}
|
|
55
|
+
interface PreciseCallersResult {
|
|
56
|
+
precisionMode: PrecisionMode;
|
|
57
|
+
coverage: "complete" | "partial";
|
|
58
|
+
reasons: string[];
|
|
59
|
+
callers: Array<{
|
|
60
|
+
path: string;
|
|
61
|
+
symbol: string;
|
|
62
|
+
references: SymbolReference[];
|
|
63
|
+
}>;
|
|
64
|
+
}
|
|
65
|
+
interface SymbolQueryTarget {
|
|
66
|
+
symbolName: string;
|
|
67
|
+
targetPath?: string;
|
|
68
|
+
}
|
|
69
|
+
interface MultiSymbolReferencesOptions extends ScopedProgramOptions {
|
|
70
|
+
targets: readonly SymbolQueryTarget[];
|
|
71
|
+
maxResults?: number;
|
|
72
|
+
}
|
|
73
|
+
interface MultiSymbolReferencesResult {
|
|
74
|
+
precisionMode: PrecisionMode;
|
|
75
|
+
coverage: "complete" | "partial";
|
|
76
|
+
truncated: boolean;
|
|
77
|
+
reasons: string[];
|
|
78
|
+
results: Array<{
|
|
79
|
+
symbol: string;
|
|
80
|
+
targetPath?: string;
|
|
81
|
+
references: SymbolReference[];
|
|
82
|
+
}>;
|
|
83
|
+
}
|
|
84
|
+
declare function createScopedProgram(options: ScopedProgramOptions): ScopedProgram;
|
|
85
|
+
declare function findMultipleSymbolReferences(options: MultiSymbolReferencesOptions): MultiSymbolReferencesResult;
|
|
86
|
+
declare function findSymbolReferences(options: SymbolReferencesOptions): SymbolReferencesResult;
|
|
87
|
+
declare function resolvePreciseChangedCallers(options: PreciseCallersOptions): PreciseCallersResult;
|
|
88
|
+
|
|
89
|
+
type ImpactBaseKind = "diff" | "paths";
|
|
90
|
+
type ImpactLevel = "direct-symbol" | "file-import" | "type-only" | "reexport" | "namespace-or-cjs";
|
|
91
|
+
interface ImpactBase {
|
|
92
|
+
kind: ImpactBaseKind;
|
|
93
|
+
value: string;
|
|
94
|
+
}
|
|
95
|
+
interface ImpactChangeRequest {
|
|
96
|
+
diff?: string;
|
|
97
|
+
paths?: readonly string[];
|
|
98
|
+
}
|
|
99
|
+
interface ImpactChanges {
|
|
100
|
+
base: ImpactBase;
|
|
101
|
+
paths: string[];
|
|
102
|
+
detail: string;
|
|
103
|
+
}
|
|
104
|
+
interface ImpactChangedFile {
|
|
105
|
+
path: string;
|
|
106
|
+
inSnapshot: boolean;
|
|
107
|
+
deleted: boolean;
|
|
108
|
+
reason?: string;
|
|
109
|
+
}
|
|
110
|
+
interface ImpactAffectedFile {
|
|
111
|
+
path: string;
|
|
112
|
+
distance: number;
|
|
113
|
+
via: string;
|
|
114
|
+
specifier: string;
|
|
115
|
+
confidence?: EdgeProvenance;
|
|
116
|
+
impactKind?: ImpactLevel;
|
|
117
|
+
matchedSymbols?: string[];
|
|
118
|
+
}
|
|
119
|
+
interface ImpactTestFile {
|
|
120
|
+
path: string;
|
|
121
|
+
covers: string[];
|
|
122
|
+
reason: "imports-changed" | "imports-affected";
|
|
123
|
+
}
|
|
124
|
+
interface ImpactUnresolvedImport {
|
|
125
|
+
path: string;
|
|
126
|
+
specifier: string;
|
|
127
|
+
}
|
|
128
|
+
interface ImpactRoute {
|
|
129
|
+
path: string;
|
|
130
|
+
methods: string[];
|
|
131
|
+
}
|
|
132
|
+
interface ImpactReport {
|
|
133
|
+
schemaVersion: 1;
|
|
134
|
+
base: ImpactBase;
|
|
135
|
+
snapshot: {
|
|
136
|
+
manifest: string;
|
|
137
|
+
fingerprint: string;
|
|
138
|
+
generatedAt: string;
|
|
139
|
+
git: {
|
|
140
|
+
commit: string;
|
|
141
|
+
isDirty: boolean;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
changed: ImpactChangedFile[];
|
|
145
|
+
affected: ImpactAffectedFile[];
|
|
146
|
+
tests: ImpactTestFile[];
|
|
147
|
+
unresolved: ImpactUnresolvedImport[];
|
|
148
|
+
routesAffected?: ImpactRoute[];
|
|
149
|
+
prunedByBarrel?: number;
|
|
150
|
+
cycles?: string[][];
|
|
151
|
+
imports?: Record<string, string[]>;
|
|
152
|
+
precise?: {
|
|
153
|
+
references: SymbolReference[];
|
|
154
|
+
coverage: "complete" | "partial";
|
|
155
|
+
reasons: string[];
|
|
156
|
+
};
|
|
157
|
+
trust: TrustEnvelope;
|
|
158
|
+
truncated: boolean;
|
|
159
|
+
limits: {
|
|
160
|
+
depth: number;
|
|
161
|
+
maxResults: number;
|
|
162
|
+
affected: number;
|
|
163
|
+
};
|
|
164
|
+
warnings: string[];
|
|
165
|
+
}
|
|
166
|
+
interface ImpactInput {
|
|
167
|
+
manifest: Manifest;
|
|
168
|
+
cwd: string;
|
|
169
|
+
changes: ImpactChanges;
|
|
170
|
+
manifestPath?: string;
|
|
171
|
+
depth?: number;
|
|
172
|
+
maxResults?: number;
|
|
173
|
+
symbols?: readonly string[];
|
|
174
|
+
changedLines?: ReadonlyMap<string, Array<[number, number]>>;
|
|
175
|
+
includeImports?: boolean;
|
|
176
|
+
includeCycles?: boolean;
|
|
177
|
+
trust?: TrustEnvelope;
|
|
178
|
+
}
|
|
179
|
+
declare function resolveImpactChanges(cwd: string, request: ImpactChangeRequest): ImpactChanges;
|
|
180
|
+
declare function computeImpact(input: ImpactInput): ImpactReport;
|
|
181
|
+
declare function renderImpactText(report: ImpactReport): string;
|
|
5
182
|
|
|
6
183
|
interface GitInfo {
|
|
7
184
|
branch: string;
|
|
@@ -565,7 +742,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
565
742
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
566
743
|
*/
|
|
567
744
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
568
|
-
declare const GENERATOR_VERSION = "0.
|
|
745
|
+
declare const GENERATOR_VERSION = "0.22.0";
|
|
569
746
|
/**
|
|
570
747
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
571
748
|
*
|
|
@@ -1357,92 +1534,81 @@ interface ChangedScope {
|
|
|
1357
1534
|
detail: string;
|
|
1358
1535
|
}
|
|
1359
1536
|
/**
|
|
1360
|
-
*
|
|
1537
|
+
* Rejects a ref that git would read as an option.
|
|
1361
1538
|
*
|
|
1362
|
-
*
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
*
|
|
1539
|
+
* The ref is the one argument a caller can put into `git diff`'s command line, so a value
|
|
1540
|
+
* starting with `-` is a flag injection rather than a revision: `--changed-since=-o/etc/passwd`
|
|
1541
|
+
* reached git as `--output=…`, and a config file — which can be committed by a pull request and
|
|
1542
|
+
* is read by a CI job — is enough to supply one. A leading `-` is never a ref name (git refuses
|
|
1543
|
+
* to create one), so refusing it loses nothing.
|
|
1366
1544
|
*/
|
|
1545
|
+
declare function assertUsableRef(ref: string): void;
|
|
1546
|
+
declare function resolveDiffBase(cwd: string, ref: string): string | null;
|
|
1547
|
+
declare function resolveDiffChangedLines(cwd: string, ref: string, files?: readonly string[]): Map<string, Array<[number, number]>>;
|
|
1367
1548
|
declare function resolveChangedScope(cwd: string, request: ChangedScopeRequest): ChangedScope;
|
|
1368
1549
|
|
|
1369
|
-
/** One `compilerOptions.paths` entry, with its targets already in repository-relative form. */
|
|
1370
1550
|
interface TsconfigPathRule {
|
|
1371
1551
|
pattern: string;
|
|
1372
1552
|
targets: readonly string[];
|
|
1373
1553
|
}
|
|
1374
|
-
/** The `baseUrl`/`paths` shape of the nearest `tsconfig.json`. */
|
|
1375
1554
|
interface TsconfigPaths {
|
|
1376
|
-
/** Repository-relative base directory for non-relative specifiers, or null when unset. */
|
|
1377
1555
|
baseUrl: string | null;
|
|
1556
|
+
pathsBasePath?: string | null;
|
|
1378
1557
|
paths: readonly TsconfigPathRule[];
|
|
1379
1558
|
}
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
* two accounts of one graph.
|
|
1407
|
-
*/
|
|
1559
|
+
interface ConfigPathEntry {
|
|
1560
|
+
configDir: string;
|
|
1561
|
+
baseUrl: string | null;
|
|
1562
|
+
pathsBasePath?: string | null;
|
|
1563
|
+
paths: readonly TsconfigPathRule[];
|
|
1564
|
+
rootDir?: string;
|
|
1565
|
+
outDir?: string;
|
|
1566
|
+
}
|
|
1567
|
+
interface PackageAliasMap {
|
|
1568
|
+
packageDir: string;
|
|
1569
|
+
name?: string;
|
|
1570
|
+
subpathImports: ReadonlyArray<{
|
|
1571
|
+
pattern: string;
|
|
1572
|
+
targets: readonly string[];
|
|
1573
|
+
}>;
|
|
1574
|
+
exportsMap: ReadonlyArray<{
|
|
1575
|
+
subpath: string;
|
|
1576
|
+
targets: readonly string[];
|
|
1577
|
+
}>;
|
|
1578
|
+
rootDir?: string;
|
|
1579
|
+
outDir?: string;
|
|
1580
|
+
}
|
|
1581
|
+
interface WorkspaceResolutionContext {
|
|
1582
|
+
configs: readonly ConfigPathEntry[];
|
|
1583
|
+
packages: readonly PackageAliasMap[];
|
|
1584
|
+
}
|
|
1408
1585
|
interface ImportResolver {
|
|
1409
1586
|
byPath: Map<string, string>;
|
|
1410
1587
|
byPathFolded: Map<string, string>;
|
|
1411
1588
|
byStem: Map<string, string>;
|
|
1412
1589
|
byStemFolded: Map<string, string>;
|
|
1413
|
-
/** Type aliases the graph could resolve, when a tsconfig was supplied. */
|
|
1414
1590
|
tsconfig: TsconfigPaths | null;
|
|
1591
|
+
workspace: WorkspaceResolutionContext | null;
|
|
1415
1592
|
}
|
|
1416
|
-
/** Anything that knows its own repository-relative path; `FileEntry` is the common case. */
|
|
1417
1593
|
interface ImportCandidate {
|
|
1418
1594
|
relativePath: string;
|
|
1419
1595
|
}
|
|
1420
|
-
/** Extra inputs to the resolver. */
|
|
1421
1596
|
interface ImportResolverOptions {
|
|
1422
|
-
/**
|
|
1423
|
-
* Paths that changed but were not included — deleted modules.
|
|
1424
|
-
*
|
|
1425
|
-
* `resolveSpecifier` used to resolve against included files only, so when `a.ts` was deleted,
|
|
1426
|
-
* `import "./a"` in `b.ts` resolved to `null` and `b.ts` was not added as a dependent — the
|
|
1427
|
-
* one file the change was most likely to break. A tombstone makes the edge resolvable without
|
|
1428
|
-
* pretending the file is in the snapshot.
|
|
1429
|
-
*/
|
|
1430
1597
|
extraPaths?: Iterable<string>;
|
|
1431
|
-
/** `baseUrl`/`paths` from the repository's tsconfig, when the caller read one. */
|
|
1432
1598
|
tsconfig?: TsconfigPaths | null;
|
|
1599
|
+
workspace?: WorkspaceResolutionContext | null;
|
|
1600
|
+
cwd?: string;
|
|
1433
1601
|
}
|
|
1602
|
+
interface ResolvedSpecifier {
|
|
1603
|
+
target: string;
|
|
1604
|
+
provenance: EdgeProvenance;
|
|
1605
|
+
}
|
|
1606
|
+
declare function workspaceResolutionFor(cwd: string, files?: readonly (string | ImportCandidate)[]): WorkspaceResolutionContext;
|
|
1607
|
+
declare function tsconfigFromWorkspace(workspace: WorkspaceResolutionContext | null): TsconfigPaths | null;
|
|
1608
|
+
declare function tsconfigPathsFor(cwd: string): TsconfigPaths | null;
|
|
1434
1609
|
declare function buildImportResolver(files: readonly ImportCandidate[], options?: ImportResolverOptions): ImportResolver;
|
|
1435
|
-
|
|
1610
|
+
declare function resolveSpecifierDetailed(fromFile: string, specifier: string, resolver: ImportResolver): ResolvedSpecifier | null;
|
|
1436
1611
|
declare function resolveSpecifier(fromFile: string, specifier: string, resolver: ImportResolver): string | null;
|
|
1437
|
-
/**
|
|
1438
|
-
* True when `imports` — the specifiers one file imports — reach anything in `changedPaths`.
|
|
1439
|
-
*
|
|
1440
|
-
* One hop, and only one hop. The test is against the **changed set**, never against a set that
|
|
1441
|
-
* is being extended while it is tested: doing that walked the graph transitively, so a changed
|
|
1442
|
-
* `a.ts` pulled in `b.ts` (which imports it) and then `c.ts` (which imports `b.ts`), and whether
|
|
1443
|
-
* the two-hop file was included depended on whether its name happened to sort after `b.ts`. The
|
|
1444
|
-
* same repository produced different snapshots depending on file names.
|
|
1445
|
-
*/
|
|
1446
1612
|
declare function importsChangedFile(importerPath: string, imports: readonly string[], changedPaths: ReadonlySet<string>, resolver: ImportResolver): boolean;
|
|
1447
1613
|
|
|
1448
1614
|
/** Import specifiers from text already decoded, or `[]` when the language has no importer. */
|
|
@@ -1497,9 +1663,61 @@ declare function isSkeletonizable(filePath: string): boolean;
|
|
|
1497
1663
|
*/
|
|
1498
1664
|
declare function generateSarifReport(manifest: Manifest, findings: readonly SecretFinding[], rules: readonly SecretRule[], toolVersion: string): string;
|
|
1499
1665
|
|
|
1666
|
+
interface BriefInput {
|
|
1667
|
+
cwd: string;
|
|
1668
|
+
manifest: Manifest;
|
|
1669
|
+
question?: string;
|
|
1670
|
+
changes?: ImpactChanges;
|
|
1671
|
+
diff?: string;
|
|
1672
|
+
diffNotes?: string[];
|
|
1673
|
+
readBody: (relativePath: string) => string | null;
|
|
1674
|
+
secretRules: readonly SecretRule[];
|
|
1675
|
+
maxTokens?: number;
|
|
1676
|
+
linesPerFile?: number;
|
|
1677
|
+
includeTests?: boolean;
|
|
1678
|
+
prComment?: boolean;
|
|
1679
|
+
trust?: TrustEnvelope;
|
|
1680
|
+
depth?: number;
|
|
1681
|
+
maxResults?: number;
|
|
1682
|
+
}
|
|
1683
|
+
interface BriefFile {
|
|
1684
|
+
path: string;
|
|
1685
|
+
reason: string;
|
|
1686
|
+
tokens: number;
|
|
1687
|
+
}
|
|
1688
|
+
interface BriefResult {
|
|
1689
|
+
markdown: string;
|
|
1690
|
+
usedTokens: number;
|
|
1691
|
+
files: BriefFile[];
|
|
1692
|
+
omitted: string[];
|
|
1693
|
+
impact: ImpactReport | null;
|
|
1694
|
+
}
|
|
1695
|
+
declare function buildBrief(input: BriefInput): BriefResult;
|
|
1696
|
+
|
|
1697
|
+
type RunnerKind = "vitest" | "jest" | "node-test" | "none";
|
|
1698
|
+
interface RunnerPlan {
|
|
1699
|
+
kind: RunnerKind;
|
|
1700
|
+
command: string;
|
|
1701
|
+
args: string[];
|
|
1702
|
+
selectedTests: string[];
|
|
1703
|
+
warning?: string;
|
|
1704
|
+
}
|
|
1705
|
+
interface RunnerResult extends RunnerPlan {
|
|
1706
|
+
exitCode: number | null;
|
|
1707
|
+
signal: string | null;
|
|
1708
|
+
skipped: boolean;
|
|
1709
|
+
timedOut: boolean;
|
|
1710
|
+
}
|
|
1711
|
+
declare function planTestRun(cwd: string, input: {
|
|
1712
|
+
changedPaths: readonly string[];
|
|
1713
|
+
testPaths: readonly string[];
|
|
1714
|
+
}): RunnerPlan;
|
|
1715
|
+
declare function runTestPlan(cwd: string, plan: RunnerPlan): RunnerResult;
|
|
1716
|
+
|
|
1500
1717
|
interface GenerateOptions {
|
|
1501
1718
|
/** Compute the full manifest but write nothing to disk. */
|
|
1502
1719
|
dryRun?: boolean;
|
|
1720
|
+
indexOnly?: boolean;
|
|
1503
1721
|
/** Provenance for a tree fetched from a remote, recorded in the manifest and the brief. */
|
|
1504
1722
|
source?: Manifest["source"];
|
|
1505
1723
|
/** Base snapshot for `--delta`: only what changed since it is written, with its dependents. */
|
|
@@ -1588,4 +1806,4 @@ declare function generateSnapshot(configInput?: SnapshotConfig | ResolvedSnapsho
|
|
|
1588
1806
|
/** Promise-returning wrapper for consumers that prefer an async call site. */
|
|
1589
1807
|
declare function generateSnapshotAsync(configInput?: SnapshotConfig | ResolvedSnapshotConfig | null, options?: GenerateOptions): Promise<Manifest>;
|
|
1590
1808
|
|
|
1591
|
-
export { ARTIFACT_NAMES, ArtifactSelection, ByteSize, CHECK_INTERVAL_MS, CONFIG_KEYS, type ChangedScope, type ChangedScopeRequest, CliOptions, type CloneOptions, type CloneResult, DEFAULT_ANSWERS, DEFAULT_SECRET_PATTERNS, DiscoveryMode, type ExplainResult, FAILURE_INTERVAL_MS, FileEntry, type FirstRunFacts, type FirstRunPlan, type FirstRunRefusal, GENERATOR_NAME, GENERATOR_VERSION, type GenerateOptions, HOOK_MARKER, type HeuristicResult, type HookInstallResult, type ImportCandidate, type ImportResolver, type InitDependency, type InitOptions, type InitResult, type InstallKind, JsonSummary, KindRule, LANGUAGE_PROFILES, type LanguageProfile, LayerRule, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, Manifest, type ManifestDiff, MarkdownSummary, PACKAGE_LATEST_URL, PRESETS, type ParsedSource, PartMetadata, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, type RemoteSource, ResolvedSnapshotConfig, SCHEMA_VERSION, SecretFinding, SecretRule, type ServeHandle, type ServeOptions, SkipRecord, SnapshotConfig, SourceSummary, TextEncoding, UP_TO_DATE_INTERVAL_MS, type UpdateCheckOptions, type UpdateNotice, ValidationResult, type WizardAnswers, type ZipEntry, type ZipOptions, anchorForPath, appendGitignoreEntries, assertPublicHost, assertReplaceable, assertServerSafeConfig, assertUsableConfigInput, auditSnapshot, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, cloneRepository, collectFiles, compareManifests, configDigest, countInvalidUtf8Bytes, countLines, crc32, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findSecretInPath, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, gitignorePath, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isPrivateHost, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, makeCloneDirectory, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, parseRemoteSource, partitionFiles, planFirstRun, profileForPath, releaseAbandonedRun, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveLatest, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, tokenAllowedForHost, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, wrapLines, writeZip };
|
|
1809
|
+
export { ARTIFACT_NAMES, ArtifactSelection, ByteSize, CHECK_INTERVAL_MS, CONFIG_KEYS, type ChangedScope, type ChangedScopeRequest, CliOptions, type CloneOptions, type CloneResult, type ConfigPathEntry, DEFAULT_ANSWERS, DEFAULT_MAX_PROGRAM_FILES, DEFAULT_SECRET_PATTERNS, DiscoveryMode, EdgeProvenance, type ExplainResult, FAILURE_INTERVAL_MS, FileEntry, type FirstRunFacts, type FirstRunPlan, type FirstRunRefusal, GENERATOR_NAME, GENERATOR_VERSION, type GenerateOptions, HOOK_MARKER, type HeuristicResult, type HookInstallResult, type ImpactAffectedFile, type ImpactBase, type ImpactChangeRequest, type ImpactChangedFile, type ImpactChanges, type ImpactInput, type ImpactReport, type ImpactTestFile, type ImpactUnresolvedImport, type ImportCandidate, type ImportResolver, type InitDependency, type InitOptions, type InitResult, type InstallKind, JsonSummary, KindRule, LANGUAGE_PROFILES, type LanguageProfile, LayerRule, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, Manifest, type ManifestDiff, MarkdownSummary, type MultiSymbolReferencesOptions, type MultiSymbolReferencesResult, PACKAGE_LATEST_URL, PRESETS, type PackageAliasMap, type ParsedSource, PartMetadata, type PreciseCallersOptions, type PreciseCallersResult, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, type RemoteSource, ResolvedSnapshotConfig, type ResolvedSpecifier, SCHEMA_VERSION, type ScopedProgram, type ScopedProgramOptions, SecretFinding, SecretRule, type ServeHandle, type ServeOptions, SkipRecord, SnapshotConfig, SourceSummary, type SymbolQueryTarget, type SymbolReference, type SymbolReferencesOptions, type SymbolReferencesResult, TextEncoding, TrustEnvelope, type TsProgramFile, type TsconfigPaths, UP_TO_DATE_INTERVAL_MS, type UpdateCheckOptions, type UpdateNotice, ValidationResult, type WizardAnswers, type WorkspaceResolutionContext, type ZipEntry, type ZipOptions, anchorForPath, appendGitignoreEntries, assertPublicHost, assertReplaceable, assertServerSafeConfig, assertUsableConfigInput, assertUsableRef, auditSnapshot, buildBrief, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, cloneRepository, collectFiles, compareManifests, computeImpact, configDigest, countInvalidUtf8Bytes, countLines, crc32, createScopedProgram, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findMultipleSymbolReferences, findSecretInPath, findSymbolReferences, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, gitignorePath, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isPrivateHost, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, makeCloneDirectory, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, parseRemoteSource, partitionFiles, planFirstRun, planTestRun, profileForPath, releaseAbandonedRun, renderConfig, renderDiffText, renderExplainText, renderImpactText, renumberParts, resolveChangedScope, resolveConfig, resolveDiffBase, resolveDiffChangedLines, resolveImpactChanges, resolveLatest, resolvePreciseChangedCallers, resolveSafeOutputDirs, resolveSpecifier, resolveSpecifierDetailed, runInit, runTestPlan, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, tokenAllowedForHost, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigFromWorkspace, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, workspaceResolutionFor, wrapLines, writeZip };
|