refactor(opencode): use existing mem0 SDK instead of delegating to MCP, load skills properly instead of dumping them in .opencode (#5323)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
ChrisFloofyKitsune
2026-06-17 09:48:39 -06:00
committed by GitHub
parent 703e8a035d
commit 9ed1983b85
48 changed files with 1691 additions and 5933 deletions
@@ -1,6 +1,6 @@
{
"name": "@mem0/opencode-plugin",
"version": "0.1.3",
"version": "0.2.0",
"type": "module",
"description": "Mem0 persistent memory plugin for OpenCode — add, search, and manage memories across sessions",
"main": "dist/index.js",
@@ -11,9 +11,6 @@
"import": "./dist/index.js"
}
},
"bin": {
"mem0-opencode": "./cli.ts"
},
"publishConfig": {
"access": "public"
},
@@ -23,7 +20,6 @@
"opencode-plugin",
"mem0",
"memory",
"mcp",
"ai-memory",
"persistent-memory"
],
@@ -34,8 +30,6 @@
},
"files": [
"dist",
"cli.ts",
"opencode.json",
"LICENSE",
"opencode-skills"
],
@@ -49,6 +43,7 @@
"opencode": {
"type": "plugin",
"hooks": [
"config",
"chat.message",
"tool.execute.before",
"tool.execute.after",
@@ -59,7 +54,7 @@
},
"dependencies": {
"@opencode-ai/plugin": "^1.0.162",
"mem0ai": "^3.0.7"
"mem0ai": "^3.0.8"
},
"devDependencies": {
"bun-types": ">=1.3.14",