GitNexus/gitnexus/src
enih eb0d9c51a0
fix: set env.cacheDir to user-writable location (#845)
When @huggingface/transformers is installed globally (e.g. via npm install -g),
it defaults its cache directory to ./node_modules/.cache inside its own install
dir, which is unwritable by non-root users.

This causes EACCES errors on first use when the model is downloaded:
  EACCES: permission denied, mkdir '/usr/lib/node_modules/gitnexus/node_modules/@huggingface/transformers/.cache'

Set env.cacheDir before pipeline() is called in both embedders (CLI and MCP).
Respects HF_HOME env var if set, falls back to ~/.cache/huggingface.

Co-authored-by: Sisyphus <sisyphus@gitnexus.dev>
2026-04-15 16:03:43 +01:00
..
cli Fix npm arborist crash caused by tree-sitter-dart tarball URL format (#820) 2026-04-14 08:57:29 +01:00
config fix(ignore): respect negation patterns in .gitnexusignore (#654) 2026-04-06 08:32:47 +01:00
core fix: set env.cacheDir to user-writable location (#845) 2026-04-15 16:03:43 +01:00
lib feat: configure prettier with pre-commit hook (#563) 2026-03-28 14:58:04 +00:00
mcp fix: set env.cacheDir to user-writable location (#845) 2026-04-15 16:03:43 +01:00
server fix: content-hash staleness detection for embeddings and vector index creation on zero-node path (#831) 2026-04-15 11:20:48 +01:00
storage fix: map diff hunks to symbol line ranges in detect_changes (#779) 2026-04-11 11:29:52 +01:00
types feat: unify web and cli ingestion pipeline (#536) 2026-03-28 14:07:11 +00:00