gitnexus 1.3.1 → 1.3.2
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/dist/cli/analyze.js
CHANGED
|
@@ -298,12 +298,13 @@ export const analyzeCommand = async (inputPath, options) => {
|
|
|
298
298
|
if (hookResult.registered) {
|
|
299
299
|
console.log(` Hooks: ${hookResult.message}`);
|
|
300
300
|
}
|
|
301
|
-
// Show
|
|
301
|
+
// Show a quiet summary if some edge types needed fallback insertion
|
|
302
302
|
if (kuzuWarnings.length > 0) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
303
|
+
const totalFallback = kuzuWarnings.reduce((sum, w) => {
|
|
304
|
+
const m = w.match(/\((\d+) edges\)/);
|
|
305
|
+
return sum + (m ? parseInt(m[1]) : 0);
|
|
306
|
+
}, 0);
|
|
307
|
+
console.log(` Note: ${totalFallback} edges across ${kuzuWarnings.length} types inserted via fallback (schema will be updated in next release)`);
|
|
307
308
|
}
|
|
308
309
|
try {
|
|
309
310
|
await fs.access(getGlobalRegistryPath());
|
|
@@ -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
|
|
7
|
-
const MAX_FILE_SIZE =
|
|
6
|
+
/** Skip files larger than 2MB — covers all real source files, excludes minified bundles/generated code */
|
|
7
|
+
const MAX_FILE_SIZE = 2 * 1024 * 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 ${MAX_FILE_SIZE / 1024}
|
|
45
|
+
console.warn(` Skipped ${skippedLarge} files larger than ${Math.round(MAX_FILE_SIZE / 1024 / 1024)}MB (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 >
|
|
160
|
+
if (file.content.length > 2 * 1024 * 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 >
|
|
355
|
+
if (file.content.length > 2 * 1024 * 1024)
|
|
356
356
|
continue;
|
|
357
357
|
let tree;
|
|
358
358
|
try {
|
package/package.json
CHANGED