Thanks for helping improve opencode-memory.
git clone https://github.com/jadmadi/opencode-memory
cd opencode-memory
bun testBun is a deliberate exception to the global no-bun rule here: the plugin runs inside OpenCode, which embeds Bun.
- Import
{ Plugin } from "@opencode/plugin"and exportPlugin.define({ id, setup }). The host provides the module at runtime; do not add it as a package dependency. Tests stub it intest-preload.ts. - Keep the three file names and the data directory layout stable.
- Add a test for any behavior you change. Tests use
MEMORY_ROOT.
Open an issue with your OpenCode version from opencode2 --version, the tool or
command you used, and the result or error.
- Branch:
git checkout -b fix/short-description. - Make the change and add tests.
- Run
bun test. - Use a semantic commit message.
- Open a pull request against
main.
By contributing, you agree that your work is released under the AGPL-3.0-only License.