gitnexus 1.6.2-rc.8 → 1.6.2-rc.9

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.
@@ -131,6 +131,11 @@ export const initEmbedder = async (onProgress, config = {}, forceDevice) => {
131
131
  try {
132
132
  // Configure transformers.js environment
133
133
  env.allowLocalModels = false;
134
+ // Default cache to user-writable location. transformers.js defaults to
135
+ // ./node_modules/.cache inside its own install dir, which is unwritable
136
+ // when gitnexus is installed globally (e.g. /usr/lib/node_modules/).
137
+ // Respect HF_HOME if set, otherwise fall back to ~/.cache/huggingface.
138
+ env.cacheDir = process.env.HF_HOME ?? `${process.env.HOME}/.cache/huggingface`;
134
139
  const isDev = process.env.NODE_ENV === 'development';
135
140
  if (isDev) {
136
141
  console.log(`🧠 Loading embedding model: ${finalConfig.modelId}`);
@@ -30,6 +30,11 @@ export const initEmbedder = async () => {
30
30
  initPromise = (async () => {
31
31
  try {
32
32
  env.allowLocalModels = false;
33
+ // Default cache to user-writable location. transformers.js defaults to
34
+ // ./node_modules/.cache inside its own install dir, which is unwritable
35
+ // when gitnexus is installed globally (e.g. /usr/lib/node_modules/).
36
+ // Respect HF_HOME if set, otherwise fall back to ~/.cache/huggingface.
37
+ env.cacheDir = process.env.HF_HOME ?? `${process.env.HOME}/.cache/huggingface`;
33
38
  console.error('GitNexus: Loading embedding model (first search may take a moment)...');
34
39
  // Try GPU first (DirectML on Windows, CUDA on Linux), fall back to CPU
35
40
  const isWindows = process.platform === 'win32';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.2-rc.8",
3
+ "version": "1.6.2-rc.9",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",