virlow-mcp 3.75.0 → 3.75.2
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.js +6 -3
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1917,14 +1917,17 @@ function coerceMeta(raw) {
|
|
|
1917
1917
|
return meta;
|
|
1918
1918
|
}
|
|
1919
1919
|
function memoryHtmlToText(html) {
|
|
1920
|
-
const text = html.replace(/<br\s*\/?>/gi, "\n").replace(/<li[^>]*>\s*(<p[^>]*>)?/gi, "- ").replace(/(<\/p>)?\s*<\/li>/gi, "\n").replace(/<\/(p|h[1-6]|blockquote|pre|ul|ol|table)>/gi, "\n\n").replace(/<\/tr>/gi, "\n").replace(/<\/(td|th)>/gi, " ").replace(/<[^>]+>/g, "");
|
|
1920
|
+
const text = html.replace(/<br\s*\/?>/gi, "\n").replace(/<(ul|ol)[^>]*>/gi, "\n").replace(/<li[^>]*>\s*(<p[^>]*>)?/gi, "- ").replace(/(<\/p>)?\s*<\/li>/gi, "\n").replace(/<\/(p|h[1-6]|blockquote|pre|ul|ol|table)>/gi, "\n\n").replace(/<\/tr>/gi, "\n").replace(/<\/(td|th)>/gi, " ").replace(/<[^>]+>/g, "");
|
|
1921
1921
|
return decodeEntities(text).split("\n").map((line) => line.replace(/[ \t]+$/, "")).join("\n").replace(/\n{3,}/g, "\n\n").trim();
|
|
1922
1922
|
}
|
|
1923
1923
|
var BLOCK = "(p|ul|ol|h[1-6]|blockquote|pre|table|div)";
|
|
1924
1924
|
var OPENS_WITH_BLOCK = new RegExp(`^\\s*<${BLOCK}[\\s>]`, "i");
|
|
1925
1925
|
var CLOSES_WITH_BLOCK = new RegExp(`</${BLOCK}>\\s*$`, "i");
|
|
1926
|
+
var HAS_BLOCK_PAIR = new RegExp(`<${BLOCK}[\\s>][\\s\\S]*</\\1>`, "i");
|
|
1926
1927
|
function looksLikeHtml(fact) {
|
|
1927
|
-
|
|
1928
|
+
if (!CLOSES_WITH_BLOCK.test(fact))
|
|
1929
|
+
return false;
|
|
1930
|
+
return OPENS_WITH_BLOCK.test(fact) || HAS_BLOCK_PAIR.test(fact);
|
|
1928
1931
|
}
|
|
1929
1932
|
function plainOrHtml(fact, meta) {
|
|
1930
1933
|
if (meta.format === "html" || looksLikeHtml(fact)) {
|
|
@@ -4099,7 +4102,7 @@ function startUnlockServer(api, vault, opts = {}) {
|
|
|
4099
4102
|
}
|
|
4100
4103
|
|
|
4101
4104
|
// src/version.ts
|
|
4102
|
-
var VERSION = true ? "3.75.
|
|
4105
|
+
var VERSION = true ? "3.75.2" : "dev";
|
|
4103
4106
|
|
|
4104
4107
|
// src/server.ts
|
|
4105
4108
|
function defaultEmbeddingCacheDir() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virlow-mcp",
|
|
3
|
-
"version": "3.75.
|
|
3
|
+
"version": "3.75.2",
|
|
4
4
|
"description": "Local MCP server for Virlow Secure Notes: end-to-end-encrypted AI memories and notes for Cursor, Claude, Codex, and any MCP client.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"esbuild": "^0.25.0",
|
|
35
35
|
"typescript": "^5.8.0",
|
|
36
36
|
"vitest": "^3.0.0",
|
|
37
|
-
"@batalabs/virlow-crypto": "3.75.
|
|
38
|
-
"@batalabs/virlow-
|
|
39
|
-
"@batalabs/virlow-
|
|
37
|
+
"@batalabs/virlow-crypto": "3.75.2",
|
|
38
|
+
"@batalabs/virlow-mcp-core": "3.75.2",
|
|
39
|
+
"@batalabs/virlow-memory": "3.75.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "node build.mjs",
|