opencode
opencode copied to clipboard
feat: install local plugin dependencies from package.json
Enables local plugins and custom tools to use external npm dependencies by running bun install after adding @opencode-ai/plugin.
- local plugins in
.opencode/plugin/previously could not use external npm packages. If a plugin imported a package likeshescape, it would SILENTLY fail because dependencies were not installed and the tool would throw. - we now also run
bun installto install any additional dependencies defined in the config directory'spackage.json.
usage:
Add a package.json to your .opencode/ directory:
{
"dependencies": {
"shescape": "^2.1.0"
}
}