codebase-snapshot 0.22.0 → 0.22.2
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 +27 -0
- package/README.md +28 -19
- package/dist/bin.js +2211 -1061
- package/dist/{chunk-NPCDJBE4.js → chunk-OVH6B3GV.js} +1738 -747
- package/dist/cli.cjs +2328 -1188
- package/dist/cli.js +333 -184
- package/dist/index.cjs +1717 -732
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +1118 -368
- package/dist/mcp.d.cts +5 -2
- package/dist/mcp.d.ts +5 -2
- package/dist/mcp.js +1 -1
- package/docs/about.md +3 -2
- package/docs/agent.md +5 -1
- package/docs/answer.md +40 -11
- package/docs/cli.md +17 -16
- package/docs/deploy.md +10 -4
- package/docs/guard.md +55 -8
- package/docs/impact.md +3 -2
- package/docs/mcp-server-for-codebase.md +2 -2
- package/docs/mcp.md +5 -5
- package/docs/security-review.md +8 -2
- package/docs/tools.md +18 -3
- package/docs/troubleshooting.md +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -742,7 +742,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
742
742
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
743
743
|
*/
|
|
744
744
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
745
|
-
declare const GENERATOR_VERSION = "0.22.
|
|
745
|
+
declare const GENERATOR_VERSION = "0.22.2";
|
|
746
746
|
/**
|
|
747
747
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
748
748
|
*
|
|
@@ -1669,6 +1669,8 @@ interface BriefInput {
|
|
|
1669
1669
|
question?: string;
|
|
1670
1670
|
changes?: ImpactChanges;
|
|
1671
1671
|
diff?: string;
|
|
1672
|
+
/** True when the caller already redacted the diff with its source file types. */
|
|
1673
|
+
diffIsRedacted?: boolean;
|
|
1672
1674
|
diffNotes?: string[];
|
|
1673
1675
|
readBody: (relativePath: string) => string | null;
|
|
1674
1676
|
secretRules: readonly SecretRule[];
|
package/dist/index.d.ts
CHANGED
|
@@ -742,7 +742,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
742
742
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
743
743
|
*/
|
|
744
744
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
745
|
-
declare const GENERATOR_VERSION = "0.22.
|
|
745
|
+
declare const GENERATOR_VERSION = "0.22.2";
|
|
746
746
|
/**
|
|
747
747
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
748
748
|
*
|
|
@@ -1669,6 +1669,8 @@ interface BriefInput {
|
|
|
1669
1669
|
question?: string;
|
|
1670
1670
|
changes?: ImpactChanges;
|
|
1671
1671
|
diff?: string;
|
|
1672
|
+
/** True when the caller already redacted the diff with its source file types. */
|
|
1673
|
+
diffIsRedacted?: boolean;
|
|
1672
1674
|
diffNotes?: string[];
|
|
1673
1675
|
readBody: (relativePath: string) => string | null;
|
|
1674
1676
|
secretRules: readonly SecretRule[];
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-OVH6B3GV.js';
|