From 2cea3eba76b0cc89fabd3a8748255c3daf9d12d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 06:27:49 +0000 Subject: [PATCH] fix: use gitnexus-shared import and rename shadowed variable in heritage-processor Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/96a027ec-b115-48aa-8556-a3b60145bb6d Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com> --- gitnexus/src/core/ingestion/heritage-processor.ts | 4 ++-- gitnexus/test/integration/heritage-extractor-wiring.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitnexus/src/core/ingestion/heritage-processor.ts b/gitnexus/src/core/ingestion/heritage-processor.ts index a2e2ca2ac..8e46ab111 100644 --- a/gitnexus/src/core/ingestion/heritage-processor.ts +++ b/gitnexus/src/core/ingestion/heritage-processor.ts @@ -223,8 +223,8 @@ export const processHeritage = async ( let query; let matches; try { - const language = parser.getLanguage(); - query = new Parser.Query(language, queryStr); + const treeSitterLang = parser.getLanguage(); + query = new Parser.Query(treeSitterLang, queryStr); matches = query.matches(tree.rootNode); } catch (queryError) { console.warn(`Heritage query error for ${file.path}:`, queryError); diff --git a/gitnexus/test/integration/heritage-extractor-wiring.test.ts b/gitnexus/test/integration/heritage-extractor-wiring.test.ts index 0024ce357..47e62fda3 100644 --- a/gitnexus/test/integration/heritage-extractor-wiring.test.ts +++ b/gitnexus/test/integration/heritage-extractor-wiring.test.ts @@ -13,7 +13,7 @@ import { describe, it, expect, beforeAll } from 'vitest'; import Parser from 'tree-sitter'; import { loadParser, loadLanguage } from '../../src/core/tree-sitter/parser-loader.js'; -import { SupportedLanguages } from '../../src/config/supported-languages.js'; +import { SupportedLanguages } from 'gitnexus-shared'; import { getProvider } from '../../src/core/ingestion/languages/index.js'; import type { CaptureMap } from '../../src/core/ingestion/language-provider.js'; import { rubyHeritageConfig } from '../../src/core/ingestion/heritage-extractors/configs/ruby.js';