Skip to content

fix: align plugin with current OpenCode loader#60

Merged
sven1103-agent merged 1 commit into
mainfrom
fix/plugin-loader-contract
Mar 30, 2026
Merged

fix: align plugin with current OpenCode loader#60
sven1103-agent merged 1 commit into
mainfrom
fix/plugin-loader-contract

Conversation

@sven1103-agent

Copy link
Copy Markdown
Owner

Summary

  • switch the package to the current OpenCode v1 plugin module contract with a default export object exposing id and server()
  • flatten hook registration and update handlers to mutate hook output objects in place, matching the current @opencode-ai/plugin API
  • publish the plugin through ./server and oc-plugin metadata, and cover the package root/server entrypoint with regression tests

Testing

  • node --test test/plugin-entrypoint.test.js test/hook-enforcement.test.js test/advisory-cleanup.test.js test/cli.test.js test/schema-contract.test.js
  • npm pack --json

Related

@sven1103-agent sven1103-agent merged commit dfbc6bf into main Mar 30, 2026
2 checks passed
@sven1103-agent sven1103-agent deleted the fix/plugin-loader-contract branch March 30, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin cannot load in current OpenCode due to loader API mismatch

1 participant