@velvetmonkey/flywheel-memory 2.6.0 → 2.6.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/dist/index.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14841,6 +14841,7 @@ function registerGraphTools(server2, getIndex, getVaultPath, getStateDb4) {
|
|
|
14841
14841
|
return { content: [{ type: "text", text: JSON.stringify({ error: "StateDb not initialized" }) }] };
|
|
14842
14842
|
}
|
|
14843
14843
|
const limit = Math.min(requestedLimit ?? 20, MAX_LIMIT);
|
|
14844
|
+
const index = getIndex();
|
|
14844
14845
|
const targets = getInboundTargetsForNote(stateDb2, notePath);
|
|
14845
14846
|
const inPlaceholders = targets.map(() => "?").join(",");
|
|
14846
14847
|
const rows = stateDb2.db.prepare(`
|
|
@@ -14862,7 +14863,8 @@ function registerGraphTools(server2, getIndex, getVaultPath, getStateDb4) {
|
|
|
14862
14863
|
connections: rows.map((r) => ({
|
|
14863
14864
|
node: r.node,
|
|
14864
14865
|
weight: r.weight,
|
|
14865
|
-
direction: r.direction
|
|
14866
|
+
direction: r.direction,
|
|
14867
|
+
resolved_path: r.direction === "outgoing" ? resolveTarget(index, r.node) ?? void 0 : void 0
|
|
14866
14868
|
}))
|
|
14867
14869
|
}, null, 2)
|
|
14868
14870
|
}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velvetmonkey/flywheel-memory",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "MCP tools that search, write, and auto-link your Obsidian vault — and learn from your edits.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@huggingface/transformers": "^3.8.1",
|
|
58
58
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
59
|
-
"@velvetmonkey/vault-core": "^2.6.
|
|
59
|
+
"@velvetmonkey/vault-core": "^2.6.1",
|
|
60
60
|
"better-sqlite3": "^12.0.0",
|
|
61
61
|
"chokidar": "^4.0.0",
|
|
62
62
|
"gray-matter": "^4.0.3",
|