Fix OpenCode plugin runtime compatibility#849
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
submit_planand the Plannotator slash-command shims, with OpenCode-visible Plannotator URLsopencode-plan,opencode-review, andopencode-annotate-lastmodes/plannotator-lastrecent-message picker, OpenCode share disabling, and PR review remote-diff semanticsRequest/Responserecovery shim into the embedded runtime path and make forcedruntime: "embedded"fail clearly on non-Bun hostsexperimental.primary_toolsnormalization before injectingsubmit_plan4096serversIssues
Closes #596
Closes #847
Closes #681
Related to #733
Related to anomalyco/opencode#25880
Verification
bun test apps/opencode-plugin/*.test.tsPATH="$PWD/apps/hook/node_modules/.bin:$PATH" bun run typecheckbun run build:hookbun run build:review && bun run build:opencodebun test apps/hook/server/*.test.tsnode -e "import('./apps/opencode-plugin/dist/index.js').then((m)=>console.log(Object.keys(m).join(',')))"bun apps/hook/server/index.ts --helpbun build apps/hook/server/index.ts --outfile /tmp/plannotator-cli-smoke.js --target bun./tests/manual/local/sandbox-opencode-isolated.sh --no-launchnpm pack ./apps/opencode-plugin, install in a temp project, thennode --input-type=module -e 'await import("@plannotator/opencode")'3017, managed OpenCode on4097, provider/config/agent endpoints return200,planhassubmit_plan: allow,buildhassubmit_plan: deny