@danielblomma/cortex-mcp 2.1.0 → 2.1.1
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielblomma/cortex-mcp",
|
|
3
3
|
"mcpName": "io.github.DanielBlomma/cortex",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"description": "Local, repo-scoped context platform for coding assistants. Semantic search, graph relationships, and architectural rule context.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Daniel Blomma",
|
|
@@ -1760,9 +1760,9 @@
|
|
|
1760
1760
|
}
|
|
1761
1761
|
},
|
|
1762
1762
|
"node_modules/hono": {
|
|
1763
|
-
"version": "4.12.
|
|
1764
|
-
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.
|
|
1765
|
-
"integrity": "sha512-
|
|
1763
|
+
"version": "4.12.25",
|
|
1764
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.25.tgz",
|
|
1765
|
+
"integrity": "sha512-2NFaIyNVgJmBs/ecmtGzlmluTFs5cHEWGTdu0t1HBwYzoGXOL5nUQBRMXsXWla5i4KkG//QMzVP88m1+I3fdAQ==",
|
|
1766
1766
|
"license": "MIT",
|
|
1767
1767
|
"engines": {
|
|
1768
1768
|
"node": ">=16.9.0"
|
|
@@ -432,7 +432,19 @@ async function main(): Promise<void> {
|
|
|
432
432
|
const existing = parseExistingEmbeddings(readJsonl(EMBEDDINGS_PATH), modelId);
|
|
433
433
|
|
|
434
434
|
env.cacheDir = MODEL_CACHE_DIR;
|
|
435
|
-
|
|
435
|
+
// Optional intra-op thread cap so co-located embedders (e.g. parallel CI
|
|
436
|
+
// jobs or eval containers) do not oversubscribe shared cores. Unset =
|
|
437
|
+
// library default (all cores), which is correct for a single instance.
|
|
438
|
+
const threadsRaw = Number(process.env.CORTEX_EMBED_THREADS);
|
|
439
|
+
const sessionOptions =
|
|
440
|
+
Number.isFinite(threadsRaw) && threadsRaw >= 1
|
|
441
|
+
? { session_options: { intraOpNumThreads: Math.floor(threadsRaw), interOpNumThreads: 1 } }
|
|
442
|
+
: undefined;
|
|
443
|
+
const extractor = await pipeline(
|
|
444
|
+
"feature-extraction",
|
|
445
|
+
modelId,
|
|
446
|
+
sessionOptions as Parameters<typeof pipeline>[2]
|
|
447
|
+
);
|
|
436
448
|
|
|
437
449
|
let reused = 0;
|
|
438
450
|
let embedded = 0;
|