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.
Files changed (51) hide show
  1. package/CHANGELOG.md +45 -6
  2. package/README.md +46 -19
  3. package/SECURITY.md +2 -2
  4. package/dist/bin.js +14535 -12036
  5. package/dist/{chunk-GNVRD7XS.js → chunk-NPCDJBE4.js} +6097 -4425
  6. package/dist/cli.cjs +11184 -8708
  7. package/dist/cli.d.cts +94 -2
  8. package/dist/cli.d.ts +94 -2
  9. package/dist/cli.js +944 -95
  10. package/dist/{generate-worker-DMzNbsAW.d.cts → generate-worker-BUNhTXkj.d.cts} +2 -2
  11. package/dist/{generate-worker-CRMESc0b.d.ts → generate-worker-TUMvHlgz.d.ts} +2 -2
  12. package/dist/index.cjs +6073 -4423
  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 +10240 -4315
  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-DQXKiaXk.d.cts} +50 -2
  21. package/dist/{types-C5ytHMYz.d.cts → types-DQXKiaXk.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 +126 -25
  28. package/docs/codebase-token-budget.md +14 -13
  29. package/docs/contents.md +68 -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/guard.md +154 -0
  34. package/docs/health.md +1 -1
  35. package/docs/how-to-feed-a-repo-to-claude.md +6 -0
  36. package/docs/impact.md +102 -0
  37. package/docs/install.md +4 -3
  38. package/docs/llm-codebase-context.md +166 -0
  39. package/docs/mcp-server-for-codebase.md +163 -0
  40. package/docs/mcp.md +48 -67
  41. package/docs/migration.md +83 -90
  42. package/docs/output.md +1 -3
  43. package/docs/security-review.md +8 -8
  44. package/docs/slice.md +1 -1
  45. package/docs/tools.md +159 -185
  46. package/docs/troubleshooting.md +11 -11
  47. package/docs/vs-code2prompt.md +7 -0
  48. package/docs/vs-gitingest.md +7 -0
  49. package/docs/vs-repomix.md +10 -1
  50. package/docs/workspace.md +1 -1
  51. package/package.json +8 -2
package/dist/index.d.ts 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, M as MarkdownSummary, b as SourceSummary, c as SnapshotConfig, K as KindRule, L as LayerRule, R as ResolvedSnapshotConfig, B as ByteSize, C as CliOptions, d as PartMetadata, F as FileEntry, T as TextEncoding, e as SecretFinding, V as ValidationResult, f as Manifest, A as ArtifactSelection } from './types-C5ytHMYz.js';
3
- export { g as BudgetConfig, H as HooksConfig, I as InclusionMode, h as IncompleteFile, i as ManifestArtifact, j as ManifestConfigSnapshot, k as ManifestIndexes, l as ManifestTotals, m as Mode, O as OutputFormat, n as OwnerBrief, o as PartFileEntry, P as PromptTask, p as ResolvedArtifacts, q as ResolvedBudgets, r as SecretRuleInput, s as SkipReason, t as SummaryQuality, u as TruncationReason, v as ValidationDrift } from './types-C5ytHMYz.js';
4
- export { w as workerEntry } from './generate-worker-CRMESc0b.js';
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.js';
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.js';
4
+ import ts from 'typescript';
5
+ export { w as workerEntry } from './generate-worker-TUMvHlgz.js';
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.20.13";
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
- * Resolves the request into a path set.
1537
+ * Rejects a ref that git would read as an option.
1361
1538
  *
1362
- * `--changed-since <ref>` is the working tree against that ref — committed, staged and
1363
- * unstaged changes all count, because all three are what a reviewer is looking at — plus
1364
- * untracked files, which `git diff` never lists and which are exactly what a new feature
1365
- * starts with. `--staged` is the index against `HEAD`. Both together are a union.
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
- * Reads `baseUrl` and `paths` from `<cwd>/tsconfig.json`, following `extends`.
1382
- *
1383
- * Type aliases — `@/lib/db`, `~/components/Button` — are the default in Next.js, Vite, Nuxt and
1384
- * most large TypeScript repositories. `resolveSpecifier` only understood relative specifiers, so
1385
- * every file importing through an alias was invisible to `--with-dependents`: the graph was
1386
- * empty for exactly the files a change was most likely to break.
1387
- *
1388
- * `ts.parseJsonConfigFileContent` is used for the `extends` chain and for TypeScript's own
1389
- * resolution of `baseUrl`, rather than a hand-written JSON reader that would disagree with the
1390
- * compiler about comments and inherited fields. Failure is not fatal: a repository without a
1391
- * readable tsconfig simply has no aliases, exactly as before.
1392
- */
1393
- declare function tsconfigPathsFor(cwd: string): TsconfigPaths | null;
1394
- /** One-pass lookup tables for relative-import resolution.
1395
- *
1396
- * `resolveSpecifier` used to fall back to scanning every known file for every
1397
- * unresolved import — 100k files × 100k imports — and built a RegExp from the
1398
- * candidate path, so a directory named `[unmatched` aborted the run and `[id]`
1399
- * matched unrelated files. Both are gone: every candidate is a map lookup, and
1400
- * no path is ever used as a pattern.
1401
- *
1402
- * Exported so a consumer can answer "what imports this file" from the snapshot's own
1403
- * index using the same rules the generator used. `manifest.indexes.imports.byFile`
1404
- * records the *raw* specifiers a file imports (`"./user.js"`), and a second
1405
- * implementation of the resolution would eventually disagree with this one — leaving
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
- /** Best-effort resolution of a relative import to an included file. */
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 };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { ARTIFACT_NAMES, CHECK_INTERVAL_MS, CONFIG_KEYS, DEFAULT_ANSWERS, DEFAULT_SECRET_PATTERNS, FAILURE_INTERVAL_MS, GENERATOR_NAME, GENERATOR_VERSION, HOOK_MARKER, LANGUAGE_PROFILES, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, PACKAGE_LATEST_URL, PRESETS, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, SCHEMA_VERSION, UP_TO_DATE_INTERVAL_MS, 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, workerEntry, wrapLines, writeZip } from './chunk-GNVRD7XS.js';
1
+ export { ARTIFACT_NAMES, CHECK_INTERVAL_MS, CONFIG_KEYS, DEFAULT_ANSWERS, DEFAULT_MAX_PROGRAM_FILES, DEFAULT_SECRET_PATTERNS, FAILURE_INTERVAL_MS, GENERATOR_NAME, GENERATOR_VERSION, HOOK_MARKER, LANGUAGE_PROFILES, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, PACKAGE_LATEST_URL, PRESETS, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, SCHEMA_VERSION, UP_TO_DATE_INTERVAL_MS, 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, workerEntry, workspaceResolutionFor, wrapLines, writeZip } from './chunk-NPCDJBE4.js';