fix(mem0-plugin): thread cwd to resolvers, add write-path tests, userConfig for API key

- on_pre_compact.py and capture_compact_summary.py now read cwd from
  hook stdin and pass it to resolve_project_id/resolve_branch (monorepo safe)
- 5 new tests verify all write functions use app_id top-level and never
  put project_id in metadata
- plugin.json declares userConfig.MEM0_API_KEY so Claude Code prompts
  for the key at install time (sensitive, stored in system keychain)
This commit is contained in:
kartik-mem0
2026-05-21 16:50:11 +05:30
parent cf6db6ef88
commit 66600565ed
4 changed files with 181 additions and 6 deletions
+9 -2
View File
@@ -1,6 +1,6 @@
{
"name": "mem0",
"version": "0.2.0",
"version": "0.2.1",
"description": "Mem0 memory layer for AI applications. Add persistent memory, personalization, and semantic search to Claude workflows using the Mem0 Platform MCP server.",
"author": {
"name": "Mem0",
@@ -9,5 +9,12 @@
"homepage": "https://mem0.ai",
"repository": "https://github.com/mem0ai/mem0",
"license": "Apache-2.0",
"keywords": ["memory", "personalization", "mcp", "semantic-search"]
"keywords": ["memory", "personalization", "mcp", "semantic-search"],
"userConfig": {
"MEM0_API_KEY": {
"description": "Your Mem0 API key (get one at https://app.mem0.ai/dashboard/api-keys or run: mem0 init --agent --json)",
"required": true,
"sensitive": true
}
}
}