gitnexus 1.6.3-rc.38 → 1.6.3-rc.39

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.
@@ -5,6 +5,7 @@ import { generateId } from '../../lib/utils.js';
5
5
  import { getLanguageFromFilename, SupportedLanguages } from '../../_shared/index.js';
6
6
  import { extractVueScript, isVueSetupTopLevel } from './vue-sfc-extractor.js';
7
7
  import { yieldToEventLoop } from './utils/event-loop.js';
8
+ import { isVerboseIngestionEnabled } from './utils/verbose.js';
8
9
  import { getDefinitionNodeFromCaptures, findEnclosingClassInfo, getLabelFromCaptures, CLASS_CONTAINER_TYPES, } from './utils/ast-helpers.js';
9
10
  import { detectFrameworkFromAST } from './framework-detection.js';
10
11
  import { buildTypeEnv } from './type-env.js';
@@ -223,7 +224,8 @@ function seqGetFieldInfo(classNode, provider, context) {
223
224
  const processParsingSequential = async (graph, files, symbolTable, astCache, scopeTreeCache, onFileProgress) => {
224
225
  const parser = await loadParser();
225
226
  const total = files.length;
226
- const skippedLanguages = new Map();
227
+ const logSkipped = isVerboseIngestionEnabled();
228
+ const skippedByLang = logSkipped ? new Map() : null;
227
229
  for (let i = 0; i < files.length; i++) {
228
230
  const file = files[i];
229
231
  // Reset memoization before each new file (node refs are per-tree)
@@ -238,9 +240,10 @@ const processParsingSequential = async (graph, files, symbolTable, astCache, sco
238
240
  const language = getLanguageFromFilename(file.path);
239
241
  if (!language)
240
242
  continue;
241
- // Skip unsupported languages (e.g. Swift when tree-sitter-swift not installed)
242
243
  if (!isLanguageAvailable(language)) {
243
- skippedLanguages.set(language, (skippedLanguages.get(language) || 0) + 1);
244
+ if (skippedByLang) {
245
+ skippedByLang.set(language, (skippedByLang.get(language) ?? 0) + 1);
246
+ }
244
247
  continue;
245
248
  }
246
249
  // Skip files larger than the max tree-sitter buffer (32 MB)
@@ -534,11 +537,10 @@ const processParsingSequential = async (graph, files, symbolTable, astCache, sco
534
537
  }
535
538
  });
536
539
  }
537
- if (skippedLanguages.size > 0) {
538
- const summary = Array.from(skippedLanguages.entries())
539
- .map(([lang, count]) => `${lang}: ${count}`)
540
- .join(', ');
541
- console.warn(` Skipped unsupported languages: ${summary}`);
540
+ if (skippedByLang && skippedByLang.size > 0) {
541
+ for (const [lang, count] of skippedByLang.entries()) {
542
+ console.warn(`[ingestion] Skipped ${count} ${lang} file(s) in parsing processing — ${lang} parser not available.`);
543
+ }
542
544
  }
543
545
  };
544
546
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.3-rc.38",
3
+ "version": "1.6.3-rc.39",
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",