gitnexus 1.3.7 → 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.
package/dist/cli/analyze.js
CHANGED
|
@@ -311,10 +311,8 @@ export const analyzeCommand = async (inputPath, options) => {
|
|
|
311
311
|
console.log('\n Tip: Run `gitnexus setup` to configure MCP for your editor.');
|
|
312
312
|
}
|
|
313
313
|
console.log('');
|
|
314
|
-
//
|
|
315
|
-
//
|
|
316
|
-
//
|
|
317
|
-
|
|
318
|
-
process.exit(0);
|
|
319
|
-
}
|
|
314
|
+
// KuzuDB's native module holds open handles that prevent Node from exiting.
|
|
315
|
+
// ONNX Runtime also registers native atexit hooks that segfault on some
|
|
316
|
+
// platforms (#38, #40). Force-exit to ensure clean termination.
|
|
317
|
+
process.exit(0);
|
|
320
318
|
};
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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