Skip to content

fix: export V1 PluginModule shape for OpenCode 1.17.x compatibility#2

Open
Gabrielribeiroic wants to merge 2 commits into
ErcinDedeoglu:mainfrom
Gabrielribeiroic:fix/v1-plugin-module-export
Open

fix: export V1 PluginModule shape for OpenCode 1.17.x compatibility#2
Gabrielribeiroic wants to merge 2 commits into
ErcinDedeoglu:mainfrom
Gabrielribeiroic:fix/v1-plugin-module-export

Conversation

@Gabrielribeiroic

Copy link
Copy Markdown

OpenCode 1.17.x loads plugins that conform to the V1 PluginModule contract: { id?: string; server: Plugin }. The previous bare-function default export was silently rejected by the loader, so oc-sync never ran. Wrap the existing OpencodeSyncPlugin in the expected object shape so the plugin is discovered and loaded on startup.

Gabriel Ribeiro added 2 commits June 25, 2026 17:58
OpenCode 1.17.x loads plugins that conform to the V1 PluginModule
contract: { id?: string; server: Plugin }. The previous bare-function
default export was silently rejected by the loader, so oc-sync never
ran. Wrap the existing OpencodeSyncPlugin in the expected object shape
so the plugin is discovered and loaded on startup.
npm runs prepare when installing from a Git URL. The previous prepare script only ran husky, so dist/ was never generated and git-based installs failed. Run the TypeScript compiler instead so the package is usable straight from a branch or fork.
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.

1 participant