@velvetmonkey/flywheel-memory 2.0.120 → 2.0.121
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/index.js +4 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9908,17 +9908,18 @@ function registerHealthTools(server2, getIndex, getVaultPath, getConfig2 = () =>
|
|
|
9908
9908
|
vaultAccessible = false;
|
|
9909
9909
|
recommendations.push("Vault path is not accessible. Check PROJECT_PATH environment variable.");
|
|
9910
9910
|
}
|
|
9911
|
+
let dbIntegrityFailed = false;
|
|
9911
9912
|
const stateDb2 = getStateDb2();
|
|
9912
9913
|
if (stateDb2) {
|
|
9913
9914
|
try {
|
|
9914
9915
|
const result = stateDb2.db.pragma("quick_check");
|
|
9915
9916
|
const ok = result.length === 1 && Object.values(result[0])[0] === "ok";
|
|
9916
9917
|
if (!ok) {
|
|
9917
|
-
|
|
9918
|
+
dbIntegrityFailed = true;
|
|
9918
9919
|
recommendations.push(`Database integrity check failed: ${Object.values(result[0])[0] ?? "unknown error"}`);
|
|
9919
9920
|
}
|
|
9920
9921
|
} catch (err) {
|
|
9921
|
-
|
|
9922
|
+
dbIntegrityFailed = true;
|
|
9922
9923
|
recommendations.push(`Database integrity check error: ${err instanceof Error ? err.message : err}`);
|
|
9923
9924
|
}
|
|
9924
9925
|
}
|
|
@@ -9945,7 +9946,7 @@ function registerHealthTools(server2, getIndex, getVaultPath, getConfig2 = () =>
|
|
|
9945
9946
|
recommendations.push("No notes found in vault. Is PROJECT_PATH pointing to a markdown vault?");
|
|
9946
9947
|
}
|
|
9947
9948
|
let status;
|
|
9948
|
-
if (!vaultAccessible || indexState2 === "error") {
|
|
9949
|
+
if (!vaultAccessible || indexState2 === "error" || dbIntegrityFailed) {
|
|
9949
9950
|
status = "unhealthy";
|
|
9950
9951
|
} else if (indexState2 === "building" || indexStale || recommendations.length > 0) {
|
|
9951
9952
|
status = "degraded";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velvetmonkey/flywheel-memory",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.121",
|
|
4
4
|
"description": "MCP server that gives Claude full read/write access to your Obsidian vault. Select from 69 tools for search, backlinks, graph queries, mutations, agent memory, and hybrid semantic search.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
56
|
-
"@velvetmonkey/vault-core": "^2.0.
|
|
56
|
+
"@velvetmonkey/vault-core": "^2.0.121",
|
|
57
57
|
"better-sqlite3": "^11.0.0",
|
|
58
58
|
"chokidar": "^4.0.0",
|
|
59
59
|
"gray-matter": "^4.0.3",
|