codebase-snapshot 0.20.2 → 0.20.4
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 +75 -0
- package/README.md +1 -1
- package/dist/bin.js +904 -423
- package/dist/{chunk-DUDF3CR5.js → chunk-AQZNT3QL.js} +664 -260
- package/dist/{chunk-YL4VRORI.js → chunk-QB5TNXMZ.js} +90 -14
- package/dist/cli.cjs +815 -333
- package/dist/cli.d.cts +14 -2
- package/dist/cli.d.ts +14 -2
- package/dist/cli.js +72 -73
- package/dist/{generate-worker-C6Z1I0XS.d.cts → generate-worker-CNRsO_z7.d.cts} +4 -0
- package/dist/{generate-worker-C6Z1I0XS.d.ts → generate-worker-CNRsO_z7.d.ts} +4 -0
- package/dist/index.cjs +667 -236
- package/dist/index.d.cts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +679 -310
- package/dist/mcp.d.cts +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +2 -2
- package/docs/brief.md +5 -0
- package/docs/cli.md +5 -5
- package/docs/configuration.md +5 -0
- package/docs/deploy.md +2 -2
- package/docs/health.md +2 -2
- package/docs/mcp.md +11 -4
- package/docs/security-review.md +16 -3
- package/docs/serve.md +8 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as node_crypto from 'node:crypto';
|
|
1
2
|
import { S as SecretRule, D as DiscoveryMode, a as SkipRecord, J as JsonSummary, M as MarkdownSummary, b as SourceSummary, K as KindRule, L as LayerRule, R as ResolvedSnapshotConfig, c as SnapshotConfig, 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-Drw1J0e0.cjs';
|
|
2
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-Drw1J0e0.cjs';
|
|
3
|
-
export { w as workerEntry } from './generate-worker-
|
|
4
|
+
export { w as workerEntry } from './generate-worker-CNRsO_z7.cjs';
|
|
4
5
|
|
|
5
6
|
interface GitInfo {
|
|
6
7
|
branch: string;
|
|
@@ -523,7 +524,7 @@ declare function detectLanguage(filePath: string): string;
|
|
|
523
524
|
* - Records `{ rule, line, path }` only. No excerpt of the source is retained,
|
|
524
525
|
* because that excerpt was being written verbatim into `reports/audit.md`.
|
|
525
526
|
*/
|
|
526
|
-
declare function scanAndRedactSecrets(content: string, rules: SecretRule[], filePath?: string): {
|
|
527
|
+
declare function scanAndRedactSecrets(content: string, rules: readonly SecretRule[], filePath?: string): {
|
|
527
528
|
redacted: string;
|
|
528
529
|
findings: SecretFinding[];
|
|
529
530
|
};
|
|
@@ -554,7 +555,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
554
555
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
555
556
|
*/
|
|
556
557
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
557
|
-
declare const GENERATOR_VERSION = "0.20.
|
|
558
|
+
declare const GENERATOR_VERSION = "0.20.4";
|
|
558
559
|
/**
|
|
559
560
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
560
561
|
*
|
|
@@ -627,6 +628,8 @@ interface CloneResult {
|
|
|
627
628
|
fetchedAt: string;
|
|
628
629
|
};
|
|
629
630
|
}
|
|
631
|
+
/** True when this host is allowed to receive the ambient GitHub token. */
|
|
632
|
+
declare function tokenAllowedForHost(host: string): boolean;
|
|
630
633
|
/**
|
|
631
634
|
* Shallow-clones a repository into `dest`.
|
|
632
635
|
*
|
|
@@ -1483,6 +1486,24 @@ interface GenerateOptions {
|
|
|
1483
1486
|
};
|
|
1484
1487
|
/** `--budget-tokens`: fit the snapshot into this token budget, highest value first. */
|
|
1485
1488
|
budgetTokens?: number;
|
|
1489
|
+
/**
|
|
1490
|
+
* Identity for this run's locks and staging directory.
|
|
1491
|
+
*
|
|
1492
|
+
* The MCP worker shares this process's pid, so a terminated worker leaves a lock that looks
|
|
1493
|
+
* live to every later run until the heartbeat expires. The parent passes a token it can name
|
|
1494
|
+
* when it has to clean up an abandoned run.
|
|
1495
|
+
*/
|
|
1496
|
+
runId?: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* Sign the manifest as part of the same publish.
|
|
1499
|
+
*
|
|
1500
|
+
* Signing used to run in the CLI after generateSnapshot had written the ownership marker, so
|
|
1501
|
+
* the marker did not record signature.json and the next run refused its own output as foreign.
|
|
1502
|
+
* Doing it in staging makes the signature part of the atomic swap and part of the inventory.
|
|
1503
|
+
*/
|
|
1504
|
+
sign?: {
|
|
1505
|
+
key?: node_crypto.KeyObject | null;
|
|
1506
|
+
};
|
|
1486
1507
|
}
|
|
1487
1508
|
/**
|
|
1488
1509
|
* Resolves and validates the output directories.
|
|
@@ -1517,6 +1538,17 @@ declare function assertReplaceable(target: string, label: "outDir" | "tmpDir", s
|
|
|
1517
1538
|
* has to be transcribed from a hash by hand is not a diagnostic.
|
|
1518
1539
|
*/
|
|
1519
1540
|
declare function lockPathFor(stagingRoot: string): string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Removes the lock and staging directory of a run that was killed from outside.
|
|
1543
|
+
*
|
|
1544
|
+
* A worker thread shares this process's pid. Terminating it therefore leaves a lock whose pid is
|
|
1545
|
+
* still alive, and `lockOwnerIsGone` correctly refuses to reclaim it until the heartbeat window
|
|
1546
|
+
* expires — 120 seconds in which every generate fails. The parent owns the run token, so it can
|
|
1547
|
+
* remove only the evidence that names that token.
|
|
1548
|
+
*
|
|
1549
|
+
* Exported for the MCP worker supervisor; a normal run releases its own locks in `finally`.
|
|
1550
|
+
*/
|
|
1551
|
+
declare function releaseAbandonedRun(stagingRoots: readonly string[], runId: string): void;
|
|
1520
1552
|
/**
|
|
1521
1553
|
* Generates the snapshot.
|
|
1522
1554
|
*
|
|
@@ -1528,4 +1560,4 @@ declare function generateSnapshot(configInput?: SnapshotConfig | ResolvedSnapsho
|
|
|
1528
1560
|
/** Promise-returning wrapper for consumers that prefer an async call site. */
|
|
1529
1561
|
declare function generateSnapshotAsync(configInput?: SnapshotConfig | ResolvedSnapshotConfig | null, options?: GenerateOptions): Promise<Manifest>;
|
|
1530
1562
|
|
|
1531
|
-
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, assertUsableConfigInput, 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, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveLatest, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, wrapLines, writeZip };
|
|
1563
|
+
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, assertUsableConfigInput, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as node_crypto from 'node:crypto';
|
|
1
2
|
import { S as SecretRule, D as DiscoveryMode, a as SkipRecord, J as JsonSummary, M as MarkdownSummary, b as SourceSummary, K as KindRule, L as LayerRule, R as ResolvedSnapshotConfig, c as SnapshotConfig, 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-Drw1J0e0.js';
|
|
2
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-Drw1J0e0.js';
|
|
3
|
-
export { w as workerEntry } from './generate-worker-
|
|
4
|
+
export { w as workerEntry } from './generate-worker-CNRsO_z7.js';
|
|
4
5
|
|
|
5
6
|
interface GitInfo {
|
|
6
7
|
branch: string;
|
|
@@ -523,7 +524,7 @@ declare function detectLanguage(filePath: string): string;
|
|
|
523
524
|
* - Records `{ rule, line, path }` only. No excerpt of the source is retained,
|
|
524
525
|
* because that excerpt was being written verbatim into `reports/audit.md`.
|
|
525
526
|
*/
|
|
526
|
-
declare function scanAndRedactSecrets(content: string, rules: SecretRule[], filePath?: string): {
|
|
527
|
+
declare function scanAndRedactSecrets(content: string, rules: readonly SecretRule[], filePath?: string): {
|
|
527
528
|
redacted: string;
|
|
528
529
|
findings: SecretFinding[];
|
|
529
530
|
};
|
|
@@ -554,7 +555,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
554
555
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
555
556
|
*/
|
|
556
557
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
557
|
-
declare const GENERATOR_VERSION = "0.20.
|
|
558
|
+
declare const GENERATOR_VERSION = "0.20.4";
|
|
558
559
|
/**
|
|
559
560
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
560
561
|
*
|
|
@@ -627,6 +628,8 @@ interface CloneResult {
|
|
|
627
628
|
fetchedAt: string;
|
|
628
629
|
};
|
|
629
630
|
}
|
|
631
|
+
/** True when this host is allowed to receive the ambient GitHub token. */
|
|
632
|
+
declare function tokenAllowedForHost(host: string): boolean;
|
|
630
633
|
/**
|
|
631
634
|
* Shallow-clones a repository into `dest`.
|
|
632
635
|
*
|
|
@@ -1483,6 +1486,24 @@ interface GenerateOptions {
|
|
|
1483
1486
|
};
|
|
1484
1487
|
/** `--budget-tokens`: fit the snapshot into this token budget, highest value first. */
|
|
1485
1488
|
budgetTokens?: number;
|
|
1489
|
+
/**
|
|
1490
|
+
* Identity for this run's locks and staging directory.
|
|
1491
|
+
*
|
|
1492
|
+
* The MCP worker shares this process's pid, so a terminated worker leaves a lock that looks
|
|
1493
|
+
* live to every later run until the heartbeat expires. The parent passes a token it can name
|
|
1494
|
+
* when it has to clean up an abandoned run.
|
|
1495
|
+
*/
|
|
1496
|
+
runId?: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* Sign the manifest as part of the same publish.
|
|
1499
|
+
*
|
|
1500
|
+
* Signing used to run in the CLI after generateSnapshot had written the ownership marker, so
|
|
1501
|
+
* the marker did not record signature.json and the next run refused its own output as foreign.
|
|
1502
|
+
* Doing it in staging makes the signature part of the atomic swap and part of the inventory.
|
|
1503
|
+
*/
|
|
1504
|
+
sign?: {
|
|
1505
|
+
key?: node_crypto.KeyObject | null;
|
|
1506
|
+
};
|
|
1486
1507
|
}
|
|
1487
1508
|
/**
|
|
1488
1509
|
* Resolves and validates the output directories.
|
|
@@ -1517,6 +1538,17 @@ declare function assertReplaceable(target: string, label: "outDir" | "tmpDir", s
|
|
|
1517
1538
|
* has to be transcribed from a hash by hand is not a diagnostic.
|
|
1518
1539
|
*/
|
|
1519
1540
|
declare function lockPathFor(stagingRoot: string): string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Removes the lock and staging directory of a run that was killed from outside.
|
|
1543
|
+
*
|
|
1544
|
+
* A worker thread shares this process's pid. Terminating it therefore leaves a lock whose pid is
|
|
1545
|
+
* still alive, and `lockOwnerIsGone` correctly refuses to reclaim it until the heartbeat window
|
|
1546
|
+
* expires — 120 seconds in which every generate fails. The parent owns the run token, so it can
|
|
1547
|
+
* remove only the evidence that names that token.
|
|
1548
|
+
*
|
|
1549
|
+
* Exported for the MCP worker supervisor; a normal run releases its own locks in `finally`.
|
|
1550
|
+
*/
|
|
1551
|
+
declare function releaseAbandonedRun(stagingRoots: readonly string[], runId: string): void;
|
|
1520
1552
|
/**
|
|
1521
1553
|
* Generates the snapshot.
|
|
1522
1554
|
*
|
|
@@ -1528,4 +1560,4 @@ declare function generateSnapshot(configInput?: SnapshotConfig | ResolvedSnapsho
|
|
|
1528
1560
|
/** Promise-returning wrapper for consumers that prefer an async call site. */
|
|
1529
1561
|
declare function generateSnapshotAsync(configInput?: SnapshotConfig | ResolvedSnapshotConfig | null, options?: GenerateOptions): Promise<Manifest>;
|
|
1530
1562
|
|
|
1531
|
-
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, assertUsableConfigInput, 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, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveLatest, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, wrapLines, writeZip };
|
|
1563
|
+
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, assertUsableConfigInput, 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 };
|
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, assertUsableConfigInput, 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, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveLatest, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, workerEntry, wrapLines, writeZip } from './chunk-
|
|
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, assertUsableConfigInput, 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-AQZNT3QL.js';
|