gitnexus 1.3.8 → 1.3.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.
@@ -195,7 +195,8 @@ const findEnclosingFunctionId = (node, filePath) => {
195
195
  if (current.type === 'init_declaration' || current.type === 'deinit_declaration') {
196
196
  const funcName = current.type === 'init_declaration' ? 'init' : 'deinit';
197
197
  const label = 'Constructor';
198
- return generateId(label, `${filePath}:${funcName}`);
198
+ const startLine = current.startPosition?.row ?? 0;
199
+ return generateId(label, `${filePath}:${funcName}:${startLine}`);
199
200
  }
200
201
  if (['function_declaration', 'function_definition', 'async_function_declaration',
201
202
  'generator_function_declaration', 'function_item'].includes(current.type)) {
@@ -233,7 +234,8 @@ const findEnclosingFunctionId = (node, filePath) => {
233
234
  }
234
235
  }
235
236
  if (funcName) {
236
- return generateId(label, `${filePath}:${funcName}`);
237
+ const startLine = current.startPosition?.row ?? 0;
238
+ return generateId(label, `${filePath}:${funcName}:${startLine}`);
237
239
  }
238
240
  }
239
241
  current = current.parent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.3.8",
3
+ "version": "1.3.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",