@zuvia-software-solutions/code-mapper 2.3.4 → 2.3.6
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
|
@@ -220,7 +220,7 @@ export const analyzeCommand = async (inputPath, options) => {
|
|
|
220
220
|
}
|
|
221
221
|
let phaseLabel = PHASE_LABELS[progress.phase] || progress.phase;
|
|
222
222
|
if (progress.stats && progress.stats.totalFiles > 0 &&
|
|
223
|
-
(progress.phase === 'parsing' || progress.phase === 'extracting')) {
|
|
223
|
+
(progress.phase === 'parsing' || progress.phase === 'extracting' || progress.phase === 'calls')) {
|
|
224
224
|
phaseLabel += ` (${progress.stats.filesProcessed.toLocaleString()}/${progress.stats.totalFiles.toLocaleString()})`;
|
|
225
225
|
}
|
|
226
226
|
const scaled = Math.round(progress.percent * 0.6);
|
|
@@ -303,7 +303,7 @@ export const runPipelineFromRepo = async (repoPath, onProgress, opts) => {
|
|
|
303
303
|
phase: 'calls',
|
|
304
304
|
percent: callPercent,
|
|
305
305
|
message: `Resolving calls: ${current}/${total} files...`,
|
|
306
|
-
stats: { filesProcessed:
|
|
306
|
+
stats: { filesProcessed: current, totalFiles: total, nodesCreated: graph.nodeCount },
|
|
307
307
|
});
|
|
308
308
|
}, allConstructorBindings.length > 0 ? allConstructorBindings : undefined, tsgoService, repoPath);
|
|
309
309
|
}
|
|
@@ -46,7 +46,8 @@ export const createWorkerPool = (workerUrl, poolSize) => {
|
|
|
46
46
|
if (!fs.existsSync(workerPath)) {
|
|
47
47
|
throw new Error(`Worker script not found: ${workerPath}`);
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
// Use 75% of cores — leaves headroom for main thread, OS, and other processes
|
|
50
|
+
const size = poolSize ?? Math.max(1, Math.floor(os.cpus().length * 0.75));
|
|
50
51
|
const workers = [];
|
|
51
52
|
for (let i = 0; i < size; i++) {
|
|
52
53
|
workers.push(new Worker(workerUrl));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuvia-software-solutions/code-mapper",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
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",
|