codebase-snapshot 0.20.6 → 0.20.7

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 CHANGED
@@ -30,6 +30,20 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
30
30
 
31
31
  ---
32
32
 
33
+ ## 0.20.7
34
+
35
+ **Discovery release: the npm metadata now points at the documentation site and describes the
36
+ package in the words people actually search for. No runtime behavior changed.**
37
+
38
+ - The npm homepage is the docs site, not the GitHub README. The README still links both.
39
+ - The description leads with "repository", "Markdown", "manifest", "redaction", "validation" and
40
+ "MCP server", and adds the broad discovery keywords `repository-context`, `ai-context`,
41
+ `codebase-context`, `code-to-prompt` and `llm-tools`.
42
+ - Three page-metadata outliers were trimmed: the home and tools descriptions are under 160
43
+ characters, and the `snapshot_answer` title is under 60.
44
+ - This is also the first GitHub Release since 0.17.0, so the repository's latest release and
45
+ npm's latest version now agree.
46
+
33
47
  ## 0.20.6
34
48
 
35
49
  **The third 0.20 audit verified forty reported defects and fixed every one that reproduced, with a
package/dist/bin.js CHANGED
@@ -2448,7 +2448,7 @@ function verifySnapshotSignature(snapshotDir) {
2448
2448
 
2449
2449
  // src/version.ts
2450
2450
  var GENERATOR_NAME = "codebase-snapshot";
2451
- var GENERATOR_VERSION = "0.20.6";
2451
+ var GENERATOR_VERSION = "0.20.7";
2452
2452
  var SCHEMA_VERSION = "3.0.0";
2453
2453
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
2454
2454
  function isOurGeneratorName(name) {
@@ -4077,7 +4077,7 @@ function verifySnapshotSignature(snapshotDir) {
4077
4077
 
4078
4078
  // src/version.ts
4079
4079
  var GENERATOR_NAME = "codebase-snapshot";
4080
- var GENERATOR_VERSION = "0.20.6";
4080
+ var GENERATOR_VERSION = "0.20.7";
4081
4081
  var SCHEMA_VERSION = "3.0.0";
4082
4082
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
4083
4083
  function isOurGeneratorName(name) {
@@ -1,4 +1,4 @@
1
- import { buildTools, createServer, GENERATOR_VERSION } from './chunk-KPDO7W5D.js';
1
+ import { buildTools, createServer, GENERATOR_VERSION } from './chunk-RSWAYB6U.js';
2
2
  import * as http from 'http';
3
3
  import * as crypto from 'crypto';
4
4
 
package/dist/cli.cjs CHANGED
@@ -2472,7 +2472,7 @@ function verifySnapshotSignature(snapshotDir) {
2472
2472
 
2473
2473
  // src/version.ts
2474
2474
  var GENERATOR_NAME = "codebase-snapshot";
2475
- var GENERATOR_VERSION = "0.20.6";
2475
+ var GENERATOR_VERSION = "0.20.7";
2476
2476
  var SCHEMA_VERSION = "3.0.0";
2477
2477
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
2478
2478
  function isOurGeneratorName(name) {
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- import { startHttpTransport } from './chunk-E4VHKJJU.js';
2
- import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, buildTools, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, resolveConfig, validateSnapshot, auditSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, getGitInfo, loadSigningKey, SIGNATURE_FILE, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, escapeControls, runWithStdoutCapture, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-KPDO7W5D.js';
3
- export { buildAgentContract } from './chunk-KPDO7W5D.js';
1
+ import { startHttpTransport } from './chunk-UIF7U77H.js';
2
+ import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, buildTools, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, resolveConfig, validateSnapshot, auditSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, getGitInfo, loadSigningKey, SIGNATURE_FILE, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, escapeControls, runWithStdoutCapture, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-RSWAYB6U.js';
3
+ export { buildAgentContract } from './chunk-RSWAYB6U.js';
4
4
  import { spawnSync } from 'child_process';
5
5
  import * as fs2 from 'fs';
6
6
  import * as path2 from 'path';
package/dist/index.cjs CHANGED
@@ -4090,7 +4090,7 @@ function verifySnapshotSignature(snapshotDir) {
4090
4090
 
4091
4091
  // src/version.ts
4092
4092
  var GENERATOR_NAME = "codebase-snapshot";
4093
- var GENERATOR_VERSION = "0.20.6";
4093
+ var GENERATOR_VERSION = "0.20.7";
4094
4094
  var SCHEMA_VERSION = "3.0.0";
4095
4095
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
4096
4096
  function isOurGeneratorName(name) {
package/dist/index.d.cts CHANGED
@@ -555,7 +555,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
555
555
  * `package.json` carries the same version; `npm run verify` compares the two.
556
556
  */
557
557
  declare const GENERATOR_NAME = "codebase-snapshot";
558
- declare const GENERATOR_VERSION = "0.20.6";
558
+ declare const GENERATOR_VERSION = "0.20.7";
559
559
  /**
560
560
  * The manifest and ownership-marker schema this build writes and understands.
561
561
  *
package/dist/index.d.ts CHANGED
@@ -555,7 +555,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
555
555
  * `package.json` carries the same version; `npm run verify` compares the two.
556
556
  */
557
557
  declare const GENERATOR_NAME = "codebase-snapshot";
558
- declare const GENERATOR_VERSION = "0.20.6";
558
+ declare const GENERATOR_VERSION = "0.20.7";
559
559
  /**
560
560
  * The manifest and ownership-marker schema this build writes and understands.
561
561
  *
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, 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-KPDO7W5D.js';
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-RSWAYB6U.js';
package/dist/mcp.cjs CHANGED
@@ -2601,7 +2601,7 @@ function verifySnapshotSignature(snapshotDir) {
2601
2601
 
2602
2602
  // src/version.ts
2603
2603
  var GENERATOR_NAME = "codebase-snapshot";
2604
- var GENERATOR_VERSION = "0.20.6";
2604
+ var GENERATOR_VERSION = "0.20.7";
2605
2605
  var SCHEMA_VERSION = "3.0.0";
2606
2606
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
2607
2607
  function isOurGeneratorName(name) {
package/dist/mcp.js CHANGED
@@ -1,2 +1,2 @@
1
- export { generateToken, startHttpTransport } from './chunk-E4VHKJJU.js';
2
- export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, REPORT_RESOURCE_URIS, RESOURCE_TEMPLATE_URIS, SERVER_INSTRUCTIONS, STATIC_RESOURCE_URIS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, generateInWorker, inspectModernMeta, isCommentStrippable, negotiateLegacyVersion, parsePartSections, runStdioServer, stripComments, validateArguments, windowText } from './chunk-KPDO7W5D.js';
1
+ export { generateToken, startHttpTransport } from './chunk-UIF7U77H.js';
2
+ export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, REPORT_RESOURCE_URIS, RESOURCE_TEMPLATE_URIS, SERVER_INSTRUCTIONS, STATIC_RESOURCE_URIS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, generateInWorker, inspectModernMeta, isCommentStrippable, negotiateLegacyVersion, parsePartSections, runStdioServer, stripComments, validateArguments, windowText } from './chunk-RSWAYB6U.js';
package/docs/cli.md CHANGED
@@ -98,7 +98,7 @@ Exit `0` when the snapshot passes its own integrity check, `1` when it does not.
98
98
 
99
99
  ```
100
100
  📸 Generating snapshot for: /path/to/repo
101
- Branch: main (fallback) | Part budget: 300 KB | Generator: 0.20.6 (project dependency ^0.20.6)
101
+ Branch: main (fallback) | Part budget: 300 KB | Generator: 0.20.7 (project dependency ^0.20.7)
102
102
 
103
103
  ✅ Snapshot generated in 0.14s:
104
104
  - Tracked files: 121 included of 128 paths found — 7 skipped (default-ignore 5, binary 1, sensitive-file 1); every one is listed in snapshot/reports/audit.md
@@ -223,7 +223,7 @@ The whole first run in one command, with defaults and no prompts. This is the sa
223
223
  🚀 Setup for: /path/to/repo
224
224
  ✅ Created snapshot.config.ts (preset: nextjs)
225
225
  Added npm scripts: snapshot, snapshot:validate
226
- Added devDependency: codebase-snapshot ^0.20.6
226
+ Added devDependency: codebase-snapshot ^0.20.7
227
227
  Added to .gitignore: /snapshot/, /snapshot.tmp/
228
228
  ⏳ Installing dependencies…
229
229
  ✅ Installed dependencies (npm install, 2.1s)
@@ -275,7 +275,7 @@ It also has three side effects on files you own, and it says so when it does the
275
275
  ```
276
276
  ✅ Created snapshot.config.ts (preset: node-lib)
277
277
  Added npm scripts: snapshot, snapshot:validate
278
- Added devDependency: codebase-snapshot ^0.20.6
278
+ Added devDependency: codebase-snapshot ^0.20.7
279
279
  Added to .gitignore: /snapshot/, /snapshot.tmp/
280
280
  ```
281
281
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "codebase-snapshot",
3
- "version": "0.20.6",
4
- "description": "Create a codebase snapshot an LLM can read: budgeted Markdown parts for Claude, ChatGPT and Cursor, a manifest of every included and skipped file, secret redaction, and validate, which fails when the snapshot drifts. Local CLI and MCP server.",
3
+ "version": "0.20.7",
4
+ "description": "Turn a repository into LLM-ready Markdown under a hard byte budget: a manifest of every included and skipped file, secret redaction, drift validation, and an MCP server for Claude, ChatGPT and Cursor.",
5
5
  "keywords": [
6
6
  "codebase-snapshot",
7
7
  "codebase",
@@ -14,6 +14,11 @@
14
14
  "context-window",
15
15
  "context-engineering",
16
16
  "token-budget",
17
+ "repository-context",
18
+ "ai-context",
19
+ "codebase-context",
20
+ "code-to-prompt",
21
+ "llm-tools",
17
22
  "mcp",
18
23
  "mcp-server",
19
24
  "model-context-protocol",
@@ -30,7 +35,7 @@
30
35
  "type": "git",
31
36
  "url": "https://github.com/ankurhalder/codebase-snapshot.git"
32
37
  },
33
- "homepage": "https://github.com/ankurhalder/codebase-snapshot#readme",
38
+ "homepage": "https://ankurhalder.github.io/codebase-snapshot/",
34
39
  "bugs": {
35
40
  "url": "https://github.com/ankurhalder/codebase-snapshot/issues"
36
41
  },