Files
mem0/integrations/mem0-plugin/.opencode-plugin/package.json
kartik-mem0 013718c817 refactor(opencode): native SDK tools, drop MCP, trim skills, expand telemetry
Reworks @mem0/opencode-plugin to expose memory operations as native OpenCode
tools (via the @opencode-ai/plugin `tool()` helper, backed by the mem0ai SDK)
instead of delegating to the remote MCP server. Skills load via the `config`
hook (`skills.paths`) instead of being copied into the project `.opencode/`.

- Drop MCP: remove the regex-based MCP tool interception, the bundled
  opencode.json MCP registration, and the cli.ts installer (mem0-opencode bin).
- Native tools: add_memory, search_memories, get_memories, get_memory,
  update_memory, delete_memory, delete_all_memories, delete_entities,
  list_entities, get_event_status.
- Trim skills 16 -> 8 (context-loader, dream, forget, health, peek, pin,
  remember, tour); remove import, export, memory-reviewer, mem0, list-projects,
  switch-project, stats, onboard. De-MCP/onboard wording in kept skills.
- Telemetry: emit the full shared plugin.* schema (adds user_prompt, bash_error,
  pre_compact, session_stop alongside session_start, tool_use); tool_use now
  fires from inside each native tool; add project_hash + os_version props.
- Fix duplicate error-search (single topK:6); correct the documented
  experimental.chat.messages.transform hook name.
- Bump to 0.2.0.
2026-06-16 12:35:58 +05:30

67 lines
1.6 KiB
JSON

{
"name": "@mem0/opencode-plugin",
"version": "0.2.0",
"type": "module",
"description": "Mem0 persistent memory plugin for OpenCode — add, search, and manage memories across sessions",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"publishConfig": {
"access": "public"
},
"license": "Apache-2.0",
"keywords": [
"opencode",
"opencode-plugin",
"mem0",
"memory",
"ai-memory",
"persistent-memory"
],
"repository": {
"type": "git",
"url": "https://github.com/mem0ai/mem0",
"directory": "integrations/mem0-plugin/.opencode-plugin"
},
"files": [
"dist",
"LICENSE",
"opencode-skills"
],
"scripts": {
"build": "bun build opencode-mem0.ts --outdir dist --target bun --format esm --entry-naming index.[ext] && tsc --emitDeclarationOnly --outDir dist --declaration",
"dev": "bun build opencode-mem0.ts --outdir dist --target bun --format esm --entry-naming index.[ext] --watch",
"type-check": "tsc --noEmit",
"prepack": "bun run build",
"postpack": ""
},
"opencode": {
"type": "plugin",
"hooks": [
"config",
"chat.message",
"tool.execute.before",
"tool.execute.after",
"experimental.chat.messages.transform",
"experimental.session.compacting",
"shell.env"
]
},
"dependencies": {
"@opencode-ai/plugin": "^1.0.162",
"mem0ai": "^3.0.7"
},
"devDependencies": {
"bun-types": ">=1.3.14",
"typescript": "^5.7.3"
},
"peerDependencies": {
"bun": ">=1.0.0"
}
}