Repository navigation
v1.7.0 — OpenCode V2 compatibility
OpenCode V2 can now load @cioffi_ai/opencode-memory without the default-export error reported in #6. The same package retains the OpenCode V1 adapter for 1.18.29+.
Highlights
- Native V2
id/setupadapter registers all ninememory_*tools, context hooks and event handling. - DREAM handles V2
session.execution.*completion events. V2 internal generation runs without helper sessions or exposed tools; V1 keeps its existing allow-none child sessions. - The package also exposes
./serverfor V2 directory loading and cleans up registrations on unload.
Install
For OpenCode V2 2.0.18+, add @cioffi_ai/opencode-memory@1.7.0 to the plugins array and restart OpenCode. OpenCode V1 1.18.29+ uses the singular plugin key.
Verification
The published npm package is byte-identical to the files and built bundle from merge commit 876d8e1. bun run check passed (168 tests; 2 live-server tests skipped). The downloaded package passed V1/V2 adapter checks: nine tools, V2 read/write, legacy store migration, context injection and cleanup. See CHANGELOG.md for details.