codebase-snapshot 0.9.15 → 0.9.16

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
@@ -23,6 +23,44 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
23
23
 
24
24
  ---
25
25
 
26
+ ## 0.9.16
27
+
28
+ A run refused by the lock it did not get could leave a lock of its own behind — one naming a
29
+ **live** pid, so the refusal outlived the run that caused it. The suite that should have noticed
30
+ was itself leaving scratch directories in the host temp directory: five days of runs had left 616
31
+ of them and about 600 MB. Both are fixed, and the second is why the first stayed hidden.
32
+
33
+ ### A refused run kept the lock it took
34
+
35
+ `generate` locks the staging root and the output directory, in sorted order, before staging is
36
+ touched. The acquisitions came from one `map()`, so when the second lock was refused the first was
37
+ still held — and there was no list of releases to run in the `finally`, because the throw happened
38
+ before the assignment. The file left behind named the current process, so `reclaimStaleLock` read
39
+ it as an active run. An MCP server, watch mode, or a `setup` that retries would be refused for the
40
+ rest of that process's life, with no other run in existence.
41
+
42
+ Each acquisition is now recorded, and a failure releases the locks already taken. The regression
43
+ test starts a run that a fresh staging lock must refuse and asserts the output-directory lock is
44
+ gone afterwards.
45
+
46
+ ### The test suite stops leaving its scratch directories behind
47
+
48
+ `npm test` created every fixture in the host temp directory and relied on each test to remove it.
49
+ Two tests never did: `agent-simulation.test.js` made two fixtures per run with no cleanup, and one
50
+ `repo()` argument in `generation-truth.test.js` was never assigned, so its directory had no handle
51
+ to remove. A wrapper now runs the suite with `TEMP`, `TMP` and `TMPDIR` pointed at one scratch root
52
+ that is deleted when the run ends, pass or fail, and reports by name anything a test leaves inside
53
+ it. Tests create scratch trees with `makeTempDir(t, prefix)`, which registers the removal with the
54
+ test, and a hygiene suite fails the build if a test creates a directory it never removes, if the
55
+ npm scripts stop using the wrapper, or if the fixture-heavy generation suite leaves anything behind.
56
+
57
+ ### Verified
58
+
59
+ `npm run verify` — lint, typecheck, 1032 tests (0 failures, 7 skipped), the docs sync check, the
60
+ site build, the site audit, the readme lint and the tarball check — on the release commit. The same
61
+ gate runs on every pull request and every push to `main`, and the release runs it on Node 18, 20
62
+ and 22; Node 18 caught a portability defect in this release's own new test before it shipped.
63
+
26
64
  ## 0.9.15
27
65
 
28
66
  A sixth audit, of the promises rather than the code paths the gate already covers. The gate was
package/README.md CHANGED
@@ -200,7 +200,7 @@ Everything an agent needs is available as data, and the tool can install its own
200
200
  ```bash
201
201
  npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
202
202
  npx codebase-snapshot skill --install # into .claude/skills + .cursor/rules
203
- npx -y codebase-snapshot@0.9.15 mcp # or serve it over MCP
203
+ npx -y codebase-snapshot@0.9.16 mcp # or serve it over MCP
204
204
  ```
205
205
 
206
206
  An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered
package/SECURITY.md CHANGED
@@ -71,6 +71,35 @@ Reports we want to hear about: a pattern that is *not* detected, a redaction tha
71
71
  secret readable elsewhere (a report file, the manifest, a navigation index), or a way to make
72
72
  the tool emit a sensitive file without `--include-sensitive-files`.
73
73
 
74
+ ### Secret scanning of this repository
75
+
76
+ This repository is a *secret-redaction engine*, so it necessarily contains credential-shaped
77
+ strings: the test suites, the rule definitions in `src/security/patterns.ts` and
78
+ `src/security/redact.ts`, and the documentation all carry synthetic samples. They are the vectors
79
+ the engine is meant to detect, they cannot authenticate against any service, and they exist so
80
+ that detection can be proved. They are **not** credentials.
81
+
82
+ Secret scanners are therefore configured to skip those surfaces, instead of asking a human to
83
+ dismiss the same alert on every push:
84
+
85
+ | Surface | Why it is excluded |
86
+ | :--- | :--- |
87
+ | `tests/**` | the fixtures assert that detection fires |
88
+ | `src/security/patterns.ts`, `src/security/redact.ts` | the rule definitions and their worked examples |
89
+ | `**/*.md`, `**/docs/**`, `llms.txt` | documentation explains the shapes by showing them |
90
+ | `package-lock.json` | integrity digests are not credentials |
91
+
92
+ Both scanner configurations carry that list: `.github/secret_scanning.yml` for GitHub's scanner
93
+ and `.gitguardian.yaml` for ggshield, the GitGuardian CLI and CI scanner. The GitGuardian
94
+ *dashboard* does not read either file — its exclusions live in workspace settings
95
+ (**Secrets detection → Filepath exclusions**) and are applied retroactively, so adding them
96
+ there also clears incidents that already exist.
97
+
98
+ Anywhere outside those paths, a real credential is handled normally: it is reported and it must
99
+ be revoked. If you add a fixture outside them, use a placeholder no detector matches, or extend
100
+ the exclusion list deliberately in the same commit — do not weaken detection.
101
+
102
+
74
103
  **Filesystem safety.** The output directory is written to a scratch directory and swapped in
75
104
  atomically, and it is only replaced when a previous run wrote it. Ownership is proved by the
76
105
  `.codebase-snapshot` marker — a JSON object naming this generator, with a schema version, a
package/dist/bin.js CHANGED
@@ -6539,7 +6539,7 @@ function gitignorePath(cwd, filePath) {
6539
6539
 
6540
6540
  // src/version.ts
6541
6541
  var GENERATOR_NAME = "codebase-snapshot";
6542
- var GENERATOR_VERSION = "0.9.15";
6542
+ var GENERATOR_VERSION = "0.9.16";
6543
6543
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
6544
6544
  function isOurGeneratorName(name) {
6545
6545
  if (typeof name !== "string") return false;
@@ -10471,7 +10471,13 @@ function generateSnapshot(configInput, options) {
10471
10471
  return manifest;
10472
10472
  }
10473
10473
  const lockKeys = Array.from(/* @__PURE__ */ new Set([tmpDir, outDir])).sort();
10474
- const releases = lockKeys.map((key) => acquireRunLock(key));
10474
+ const releases = [];
10475
+ try {
10476
+ for (const key of lockKeys) releases.push(acquireRunLock(key));
10477
+ } catch (error) {
10478
+ for (const release of [...releases].reverse()) release();
10479
+ throw error;
10480
+ }
10475
10481
  const releaseLock = () => {
10476
10482
  for (const release of [...releases].reverse()) release();
10477
10483
  };
@@ -7093,7 +7093,7 @@ function validateSnapshot(configInput) {
7093
7093
 
7094
7094
  // src/version.ts
7095
7095
  var GENERATOR_NAME = "codebase-snapshot";
7096
- var GENERATOR_VERSION = "0.9.15";
7096
+ var GENERATOR_VERSION = "0.9.16";
7097
7097
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
7098
7098
  function isOurGeneratorName(name) {
7099
7099
  if (typeof name !== "string") return false;
@@ -10458,7 +10458,13 @@ function generateSnapshot(configInput, options) {
10458
10458
  return manifest;
10459
10459
  }
10460
10460
  const lockKeys = Array.from(/* @__PURE__ */ new Set([tmpDir, outDir])).sort();
10461
- const releases = lockKeys.map((key) => acquireRunLock(key));
10461
+ const releases = [];
10462
+ try {
10463
+ for (const key of lockKeys) releases.push(acquireRunLock(key));
10464
+ } catch (error) {
10465
+ for (const release of [...releases].reverse()) release();
10466
+ throw error;
10467
+ }
10462
10468
  const releaseLock = () => {
10463
10469
  for (const release of [...releases].reverse()) release();
10464
10470
  };
@@ -1,4 +1,4 @@
1
- import { GENERATOR_VERSION, anchorForPath, displayPath, MIN_MAX_PART_BYTES, SCHEMA_VERSION, GENERATOR_NAME, ARTIFACT_NAMES, PRESETS, generateSnapshot, generateInWorker, validateSnapshot, buildImportResolver, resolveSpecifier, truncateToBytes, explainPath, renderExplainText, describeManifestShapeProblem, loadConfigFileDetailed, parseByteSize, resolveConfig } from './chunk-JL4VDGXL.js';
1
+ import { GENERATOR_VERSION, anchorForPath, displayPath, MIN_MAX_PART_BYTES, SCHEMA_VERSION, GENERATOR_NAME, ARTIFACT_NAMES, PRESETS, generateSnapshot, generateInWorker, validateSnapshot, buildImportResolver, resolveSpecifier, truncateToBytes, explainPath, renderExplainText, describeManifestShapeProblem, loadConfigFileDetailed, parseByteSize, resolveConfig } from './chunk-6TRFLA7N.js';
2
2
  import * as fs from 'fs';
3
3
  import * as path from 'path';
4
4
 
package/dist/cli.cjs CHANGED
@@ -6525,7 +6525,7 @@ function gitignorePath(cwd, filePath) {
6525
6525
 
6526
6526
  // src/version.ts
6527
6527
  var GENERATOR_NAME = "codebase-snapshot";
6528
- var GENERATOR_VERSION = "0.9.15";
6528
+ var GENERATOR_VERSION = "0.9.16";
6529
6529
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
6530
6530
  function isOurGeneratorName(name) {
6531
6531
  if (typeof name !== "string") return false;
@@ -10409,7 +10409,13 @@ function generateSnapshot(configInput, options) {
10409
10409
  return manifest;
10410
10410
  }
10411
10411
  const lockKeys = Array.from(/* @__PURE__ */ new Set([tmpDir, outDir])).sort();
10412
- const releases = lockKeys.map((key) => acquireRunLock(key));
10412
+ const releases = [];
10413
+ try {
10414
+ for (const key of lockKeys) releases.push(acquireRunLock(key));
10415
+ } catch (error) {
10416
+ for (const release of [...releases].reverse()) release();
10417
+ throw error;
10418
+ }
10413
10419
  const releaseLock = () => {
10414
10420
  for (const release of [...releases].reverse()) release();
10415
10421
  };
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- import { buildAgentContract, runStdioServer, COMMAND_OPTION_SCOPE, commandsForOption, SKILL_NAME, renderSkill, renderContractText } from './chunk-AU2VNTUU.js';
2
- export { buildAgentContract } from './chunk-AU2VNTUU.js';
3
- import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, loadConfigFileDetailed, resolveConfig, validateSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, parseByteSize, stripJsonComments, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, escapeControls, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderExplainText } from './chunk-JL4VDGXL.js';
1
+ import { buildAgentContract, runStdioServer, COMMAND_OPTION_SCOPE, commandsForOption, SKILL_NAME, renderSkill, renderContractText } from './chunk-WIL536QD.js';
2
+ export { buildAgentContract } from './chunk-WIL536QD.js';
3
+ import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, loadConfigFileDetailed, resolveConfig, validateSnapshot, describeManifestShapeProblem, explainPath, compareManifests, loadManifest, renderDiffText, generateSnapshot, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, parseByteSize, stripJsonComments, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, escapeControls, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderExplainText } from './chunk-6TRFLA7N.js';
4
4
  import { spawnSync } from 'child_process';
5
5
  import * as fs from 'fs';
6
6
  import * as path2 from 'path';
package/dist/index.cjs CHANGED
@@ -7095,7 +7095,7 @@ function validateSnapshot(configInput) {
7095
7095
 
7096
7096
  // src/version.ts
7097
7097
  var GENERATOR_NAME = "codebase-snapshot";
7098
- var GENERATOR_VERSION = "0.9.15";
7098
+ var GENERATOR_VERSION = "0.9.16";
7099
7099
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
7100
7100
  function isOurGeneratorName(name) {
7101
7101
  if (typeof name !== "string") return false;
@@ -10382,7 +10382,13 @@ function generateSnapshot(configInput, options) {
10382
10382
  return manifest;
10383
10383
  }
10384
10384
  const lockKeys = Array.from(/* @__PURE__ */ new Set([tmpDir, outDir])).sort();
10385
- const releases = lockKeys.map((key) => acquireRunLock(key));
10385
+ const releases = [];
10386
+ try {
10387
+ for (const key of lockKeys) releases.push(acquireRunLock(key));
10388
+ } catch (error) {
10389
+ for (const release of [...releases].reverse()) release();
10390
+ throw error;
10391
+ }
10386
10392
  const releaseLock = () => {
10387
10393
  for (const release of [...releases].reverse()) release();
10388
10394
  };
package/dist/index.d.cts CHANGED
@@ -509,7 +509,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
509
509
  * `package.json` carries the same version; `npm run verify` compares the two.
510
510
  */
511
511
  declare const GENERATOR_NAME = "codebase-snapshot";
512
- declare const GENERATOR_VERSION = "0.9.15";
512
+ declare const GENERATOR_VERSION = "0.9.16";
513
513
 
514
514
  /** The one endpoint this package will ever request. */
515
515
  declare const PACKAGE_LATEST_URL = "https://registry.npmjs.org/codebase-snapshot/latest";
package/dist/index.d.ts CHANGED
@@ -509,7 +509,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
509
509
  * `package.json` carries the same version; `npm run verify` compares the two.
510
510
  */
511
511
  declare const GENERATOR_NAME = "codebase-snapshot";
512
- declare const GENERATOR_VERSION = "0.9.15";
512
+ declare const GENERATOR_VERSION = "0.9.16";
513
513
 
514
514
  /** The one endpoint this package will ever request. */
515
515
  declare const PACKAGE_LATEST_URL = "https://registry.npmjs.org/codebase-snapshot/latest";
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, anchorForPath, assertReplaceable, assertUsableConfigInput, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, collectFiles, compareManifests, configDigest, countInvalidUtf8Bytes, countLines, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findSecretInPath, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, partitionFiles, planFirstRun, profileForPath, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, truncatePreview, truncateToBytes, updateCommand, validateSnapshot, workerEntry, wrapLines } from './chunk-JL4VDGXL.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, anchorForPath, assertReplaceable, assertUsableConfigInput, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, collectFiles, compareManifests, configDigest, countInvalidUtf8Bytes, countLines, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findSecretInPath, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, partitionFiles, planFirstRun, profileForPath, renderConfig, renderDiffText, renderExplainText, renumberParts, resolveChangedScope, resolveConfig, resolveSafeOutputDirs, resolveSpecifier, runInit, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, truncatePreview, truncateToBytes, updateCommand, validateSnapshot, workerEntry, wrapLines } from './chunk-6TRFLA7N.js';
package/dist/mcp.cjs CHANGED
@@ -6836,7 +6836,7 @@ function validateSnapshot(configInput) {
6836
6836
 
6837
6837
  // src/version.ts
6838
6838
  var GENERATOR_NAME = "codebase-snapshot";
6839
- var GENERATOR_VERSION = "0.9.15";
6839
+ var GENERATOR_VERSION = "0.9.16";
6840
6840
  var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
6841
6841
  function isOurGeneratorName(name) {
6842
6842
  if (typeof name !== "string") return false;
package/dist/mcp.js CHANGED
@@ -1,2 +1,2 @@
1
- export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, SERVER_INSTRUCTIONS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, inspectModernMeta, negotiateLegacyVersion, parsePartSections, runStdioServer, validateArguments, windowText } from './chunk-AU2VNTUU.js';
2
- export { generateInWorker } from './chunk-JL4VDGXL.js';
1
+ export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, SERVER_INSTRUCTIONS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, inspectModernMeta, negotiateLegacyVersion, parsePartSections, runStdioServer, validateArguments, windowText } from './chunk-WIL536QD.js';
2
+ export { generateInWorker } from './chunk-6TRFLA7N.js';
package/docs/cli.md CHANGED
@@ -183,7 +183,7 @@ The whole first run in one command, with defaults and no prompts. This is the sa
183
183
  🚀 Setup for: /path/to/repo
184
184
  ✅ Created snapshot.config.ts (preset: nextjs)
185
185
  Added npm scripts: snapshot, snapshot:validate
186
- Added devDependency: codebase-snapshot ^0.9.15
186
+ Added devDependency: codebase-snapshot ^0.9.16
187
187
  Added to .gitignore: snapshot/, snapshot.tmp/
188
188
  ⏳ Installing dependencies…
189
189
  ✅ Installed dependencies (npm install, 2.1s)
@@ -232,7 +232,7 @@ It also has three side effects on files you own, and it says so when it does the
232
232
  ```
233
233
  ✅ Created snapshot.config.ts (preset: node-lib)
234
234
  Added npm scripts: snapshot, snapshot:validate
235
- Added devDependency: codebase-snapshot ^0.9.15
235
+ Added devDependency: codebase-snapshot ^0.9.16
236
236
  Added to .gitignore: snapshot/, snapshot.tmp/
237
237
  ```
238
238
 
package/docs/mcp.md CHANGED
@@ -10,7 +10,7 @@ walk — that the client sees.
10
10
  ## Start it
11
11
 
12
12
  ```bash
13
- npx -y codebase-snapshot@0.9.15 mcp
13
+ npx -y codebase-snapshot@0.9.16 mcp
14
14
  ```
15
15
 
16
16
  The server serves the directory it was started in. `--cwd <path>` points it elsewhere, and that
@@ -25,7 +25,7 @@ Claude Desktop and Cursor:
25
25
  "mcpServers": {
26
26
  "codebase-snapshot": {
27
27
  "command": "npx",
28
- "args": ["-y", "codebase-snapshot@0.9.15", "mcp", "--cwd", "/absolute/path/to/repo"]
28
+ "args": ["-y", "codebase-snapshot@0.9.16", "mcp", "--cwd", "/absolute/path/to/repo"]
29
29
  }
30
30
  }
31
31
  }
@@ -34,7 +34,7 @@ Claude Desktop and Cursor:
34
34
  Claude Code registers the same thing from a shell:
35
35
 
36
36
  ```bash
37
- claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.9.15 mcp --cwd /absolute/path/to/repo
37
+ claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.9.16 mcp --cwd /absolute/path/to/repo
38
38
  ```
39
39
 
40
40
  On Windows, wrap the command as `cmd /c npx` with the same arguments — `npx` is a `.cmd` shim
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-snapshot",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "description": "Pack a codebase for an LLM into budgeted Markdown parts, with a manifest of every file and skip, and validate to prove the snapshot is current.",
5
5
  "keywords": [
6
6
  "codebase",
@@ -100,8 +100,8 @@
100
100
  "lint": "node scripts/lint.mjs",
101
101
  "check": "npm run lint && npm run typecheck && npm test",
102
102
  "pretest": "npm run build",
103
- "test": "node --test tests/*.test.js",
104
- "test:coverage": "node --test --experimental-test-coverage tests/*.test.js",
103
+ "test": "node scripts/test-run.mjs",
104
+ "test:coverage": "node scripts/test-run.mjs --experimental-test-coverage",
105
105
  "publish:create": "npm publish ./packages/create --access public",
106
106
  "prepack": "npm run sync-docs && npm run build",
107
107
  "pack-check": "node scripts/pack-check.mjs",