Skip to content

add native OpenCode plugin entrypoint#8

Merged
hopeatina merged 1 commit into
mainfrom
codex/opencode-native-plugin-entry
May 22, 2026
Merged

add native OpenCode plugin entrypoint#8
hopeatina merged 1 commit into
mainfrom
codex/opencode-native-plugin-entry

Conversation

@hopeatina
Copy link
Copy Markdown
Contributor

Summary

  • add a native OpenCode plugin export/default export that starts the existing OrgX peer on server.connected
  • keep CLI/programmatic startPeer() support while lazy-loading the peer runtime from the package entry
  • document opencode.json installation and add OpenCode plugin keyword
  • add explicit .js internal ESM imports so built Node imports work

Verification

  • npm run type-check
  • npm test
  • npm run build
  • node -e "import('./dist/index.js').then(async (m)=>{ if (typeof m.default !== 'function' || typeof m.startPeer !== 'function') process.exit(1); await import('./dist/peer.js'); console.log('opencode dist and peer imports ok') })"
  • git diff --check

Notes

@hopeatina hopeatina merged commit a260302 into main May 22, 2026
1 check passed
@hopeatina hopeatina deleted the codex/opencode-native-plugin-entry branch May 22, 2026 04:05
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