diff --git a/plugins/claude-code-memory-plugin/.claude-plugin/plugin.json b/plugins/claude-code-memory-plugin/.claude-plugin/plugin.json index 347ca27..6d4b947 100644 --- a/plugins/claude-code-memory-plugin/.claude-plugin/plugin.json +++ b/plugins/claude-code-memory-plugin/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "openviking-memory", - "version": "0.1.2", + "version": "0.1.3", "description": "Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations.", "author": { "name": "OpenViking", diff --git a/plugins/claude-code-memory-plugin/scripts/auto-recall.mjs b/plugins/claude-code-memory-plugin/scripts/auto-recall.mjs index 2718a04..d3a4ba8 100644 --- a/plugins/claude-code-memory-plugin/scripts/auto-recall.mjs +++ b/plugins/claude-code-memory-plugin/scripts/auto-recall.mjs @@ -222,13 +222,15 @@ async function searchScope(query, targetUri, limit) { } async function searchBothScopes(query, limit) { - const [userMems, agentMems] = await Promise.all([ + const [userMems, agentMems, agentSkills] = await Promise.all([ searchScope(query, "viking://user/memories", limit), searchScope(query, "viking://agent/memories", limit), + searchScope(query, "viking://agent/skills", limit), ]); log("search_complete", { scope: "user", rawCount: userMems.length, topScores: userMems.slice(0, 3).map(m => m.score) }); log("search_complete", { scope: "agent", rawCount: agentMems.length, topScores: agentMems.slice(0, 3).map(m => m.score) }); - const all = [...userMems, ...agentMems]; + log("search_complete", { scope: "skills", rawCount: agentSkills.length, topScores: agentSkills.slice(0, 3).map(m => m.score) }); + const all = [...userMems, ...agentMems, ...agentSkills]; const uriSet = new Set(); return all.filter(m => { if (uriSet.has(m.uri)) return false;