v12.6.2

thedotmack/claude-memv12.6.2May 5, 2026by thedotmack

AI Summary

This is a bug fix release (v12.6.2) that resolves an issue where `npx claude-mem@latest install` was hanging due to tree-sitter-swift's postinstall script attempting to download a Rust binary from GitHub. The fix moves 21 tree-sitter grammar packages back to root `devDependencies` while keeping the marketplace plugin install path unchanged.

Key Highlights

  • Fixed `npx claude-mem@latest install` hanging on tree-sitter-swift postinstall
  • Moved 21 tree-sitter grammar packages back from `dependencies` to `devDependencies` at root level
  • Preserved marketplace plugin install path with runtime deps in `plugin/package.json`
  • Maintained `trustedDependencies: ["tree-sitter-cli"]` for bun install to skip harmful postinstalls
  • Kept PR #2300's `--legacy-peer-deps` and `--omit=dev` fixes for marketplace ERESOLVE issues

Full Release Notes

## Fix: `npx claude-mem@latest install` no longer hangs on tree-sitter-swift

### What broke in 12.6.1

PR #2300 moved 21 tree-sitter grammar packages from root `devDependencies` → root `dependencies`. As a result, `npx claude-mem@12.6.1 install` started fetching all 21 grammars at npx time. `tree-sitter-swift`'s postinstall pulled a nested `tree-sitter-cli` that downloads a Rust binary from GitHub and SIGINT'd the install:

```
npm error path .../node_modules/claude-mem/node_modules/tree-sitter-swift/node_modules/tree-sitter-cli
npm error command failed
npm error signal SIGINT
npm error Downloading https://github.com/tree-sitter/tree-sitter/releases/download/v0.23.2/tree-sitter-macos-arm64.gz
```

npm doesn't honor the bun-only `trustedDependencies` allowlist, so postinstalls always run on a bare `npx` fetch.

### Fix (PR #2305)

Move the 21 grammar packages back to root `devDependencies`. The marketplace plugin install path is untouched — `plugin/package.json` keeps them as runtime deps and `bun install` (in `installPluginDependencies`) honors `trustedDependencies: ["tree-sitter-cli"]` to skip the harmful postinstalls on every other grammar. Smart-search/smart-outline/smart-unfold continue to work end-to-end.

PR #2300's `--legacy-peer-deps` and `--omit=dev` install.ts changes are kept — they fix a separate, valid marketplace ERESOLVE.