@munhq/codeindex 0.6.4 → 0.6.6

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/README.md CHANGED
@@ -37,7 +37,7 @@ Anything that reads a JSON config (Claude Desktop, Cursor, Windsurf, Zed, Cline)
37
37
  codeindex is a statically linked binary — no runtime, no node_modules, about
38
38
  53 MB per platform. This package is a 4 KB wrapper: on install it resolves the
39
39
  release asset for your platform, verifies it against the `SHA256SUMS` published
40
- beside it, caches it under `~/.cache/codeindex/bin/codeindex-<version>`, and
40
+ beside it, stores it under `~/.local/share/codeindex/bin/codeindex-<version>`, and
41
41
  executes it. Six platforms are covered: linux and macOS on x86_64 and arm64,
42
42
  Windows on x86_64 and arm64.
43
43
 
package/bin/resolve.js CHANGED
@@ -46,8 +46,12 @@ function assetName() {
46
46
  return assetFor(process.platform, process.arch);
47
47
  }
48
48
 
49
+ // The binary lives in the data folder. A running session executes this file, and
50
+ // its daemon retires when the file is gone. A cache folder is the place that
51
+ // cleanup jobs empty: an hourly disk cleanup removed ~/.cache/codeindex while
52
+ // sessions ran from it, and every call answered "a new one did not start".
49
53
  function cacheDir() {
50
- const base = process.env.XDG_CACHE_HOME || path.join(os.homedir(), '.cache');
54
+ const base = process.env.XDG_DATA_HOME || path.join(os.homedir(), '.local', 'share');
51
55
  return path.join(base, 'codeindex', 'bin');
52
56
  }
53
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munhq/codeindex",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "mcpName": "io.github.munhq/codeindex",
5
5
  "description": "Structural code intelligence for AI coding agents over MCP: find a definition, read one function, see what calls a symbol, trace imports and judge a change's blast radius across 40+ languages \u2014 in tens of tokens instead of the ~1,563 a file read costs.",
6
6
  "keywords": [