Skip to content

Fix OpenCode v2 package entrypoint - #11

Merged
ndom91 merged 1 commit into
mainfrom
fix/opencode-v2-default-export
Oct 17, 2026
Merged

ndom91 merged 1 commit into
mainfrom
fix/opencode-v2-default-export

Conversation

@ndom91

@ndom91 ndom91 commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Fixes a packaging issue in open-plan-annotator@1.13.0 that prevented OpenCode v2 from loading the package by name.

The V2 plugin implementation was present, but the package’s default export remained the V1 async plugin function. OpenCode v2 requires a default object with id and setup.

This change adopts OpenCode’s documented compatibility export:

  • setup serves OpenCode v2.
  • server serves OpenCode v1.18.29 and later.
  • The V1 and V2 implementations remain separate, using their respective APIs.

Also adds regression coverage for the package default export and clarifies the supported OpenCode versions in the README.

Validation

  • bun test — 109 passing
  • bun run typecheck
  • bun run lint
  • bun run pack:check

@ndom91
ndom91 merged commit 49b69ba into main Oct 17, 2026
1 check passed
@ndom91
ndom91 deleted the fix/opencode-v2-default-export branch October 17, 2026 12:11
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