gitnexus 1.3.2 → 1.3.3

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.
@@ -3,8 +3,8 @@ import path from 'path';
3
3
  import { glob } from 'glob';
4
4
  import { shouldIgnorePath } from '../../config/ignore-service.js';
5
5
  const READ_CONCURRENCY = 32;
6
- /** Skip files larger than 2MBcovers all real source files, excludes minified bundles/generated code */
7
- const MAX_FILE_SIZE = 2 * 1024 * 1024;
6
+ /** Skip files larger than 512KBthey're usually generated/vendored and crash tree-sitter */
7
+ const MAX_FILE_SIZE = 512 * 1024;
8
8
  /**
9
9
  * Phase 1: Scan repository — stat files to get paths + sizes, no content loaded.
10
10
  * Memory: ~10MB for 100K files vs ~1GB+ with content.
@@ -42,7 +42,7 @@ export const walkRepositoryPaths = async (repoPath, onProgress) => {
42
42
  }
43
43
  }
44
44
  if (skippedLarge > 0) {
45
- console.warn(` Skipped ${skippedLarge} files larger than ${Math.round(MAX_FILE_SIZE / 1024 / 1024)}MB (likely generated/vendored)`);
45
+ console.warn(` Skipped ${skippedLarge} large files (>${MAX_FILE_SIZE / 1024}KB, likely generated/vendored)`);
46
46
  }
47
47
  return entries;
48
48
  };
@@ -157,7 +157,7 @@ const processParsingSequential = async (graph, files, symbolTable, astCache, onF
157
157
  if (!language)
158
158
  continue;
159
159
  // Skip very large files — they can crash tree-sitter or cause OOM
160
- if (file.content.length > 2 * 1024 * 1024)
160
+ if (file.content.length > 512 * 1024)
161
161
  continue;
162
162
  await loadLanguage(language, file.path);
163
163
  let tree;
@@ -352,7 +352,7 @@ const processFileGroup = (files, language, queryString, result, onFileProcessed)
352
352
  }
353
353
  for (const file of files) {
354
354
  // Skip very large files — they can crash tree-sitter or cause OOM
355
- if (file.content.length > 2 * 1024 * 1024)
355
+ if (file.content.length > 512 * 1024)
356
356
  continue;
357
357
  let tree;
358
358
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
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",