@minhpnq1807/contextos 0.5.18 → 0.5.19
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/plugins/ctx/mcp/server.js +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.19
|
|
4
|
+
|
|
5
|
+
- Makes `ctx-mcp` startup non-mutating: the MCP server now verifies the local embedding model without warming or rewriting `embeddings.db` during agent initialization.
|
|
6
|
+
- Fixes Antigravity staying on `ctx-mcp initializing...` when a large embedding cache makes startup writes slow or blocked.
|
|
7
|
+
|
|
3
8
|
## 0.5.18
|
|
4
9
|
|
|
5
10
|
- Prevents `ctx sync --rules` from importing project MCP commands that point into temporary directories such as `/tmp/...`.
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import net from "node:net";
|
|
|
4
4
|
|
|
5
5
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { isModelCacheReady, modelCacheDir } from "../lib/embedding-scorer.js";
|
|
8
8
|
import { scoreContext } from "../lib/score-context.js";
|
|
9
9
|
import { ctxMcpSocketPath } from "../lib/ctx-mcp-client.js";
|
|
10
10
|
import { defaultDataRoot } from "../lib/workspace-data.js";
|
|
@@ -24,15 +24,9 @@ await server.connect(new StdioServerTransport());
|
|
|
24
24
|
|
|
25
25
|
async function ensureModelReady() {
|
|
26
26
|
const modelDir = modelCacheDir(dataDir);
|
|
27
|
-
if (!fs.existsSync(modelDir)) {
|
|
27
|
+
if (!fs.existsSync(modelDir) || !isModelCacheReady(dataDir)) {
|
|
28
28
|
throw new Error(`ContextOS model cache missing: ${modelDir}. Run ctx install first.`);
|
|
29
29
|
}
|
|
30
|
-
await warmRuleEmbeddings({
|
|
31
|
-
task: "contextos mcp model ready",
|
|
32
|
-
rules: [{ content: "ContextOS semantic scorer is ready." }],
|
|
33
|
-
dataDir,
|
|
34
|
-
allowRemote: false
|
|
35
|
-
});
|
|
36
30
|
}
|
|
37
31
|
|
|
38
32
|
function startBridge() {
|