Repository navigation
Conversation
|
hey @rafaelsnv! thanks for taking on the V2 migration! The build/source checks pass, but a packed-plugin test using The review also found auth issues: tools bypass the active host connection, and refresh can return another account’s local tokens. Those need fixes before merging, alongside the V1 schema regression and cross-Location OAuth cleanup. We updated the canary to accept the V2 package, but its test harness still fails before plugin loading. That harness failure is separate from the plugin findings. Are you up for addressing these in this PR? Also, which OpenCode version and install method did you use for testing? |
|
hey @rafaelsnv! quick update - OpenCode V2 is now released, so i tested your PR through the real npm install path against i published a snapshot from PR head Lint, typecheck, all 199 tests, and packaging pass. Installation succeeds too, but two fresh TUI runs load the V1 The With V2 out, ill pick up the remaining migration on a separate maintainer branch, build on your work, and preserve attribution to you. Thanks for getting this started! If you have newer changes or testing notes, please share them so i dont duplicate your work. |
OpenCode 2 rejects the legacy-only server export and uses a different TUI and credential lifecycle. Expose both host hooks at the existing entrypoints and port /supabase to native V2 integration APIs. Resolve tools through the active host connection and refresh the supplied account instead of borrowing V1 project-local tokens. Scope OAuth cleanup to its attempt and Location; preserve V1 storage and real Zod schemas. Add required V2 packed-TUI CI coverage and document reconnect on upgrade. Lint, typecheck, 213 tests and package checks pass. The same tarball passes /supabase render checks twice on V1 1.17.14 and V2 2.0.27. Real-account browser authorization remains unchecked. Builds on Rafael Santos (@rafaelsnv) and the initial migration in PR #79: #79 Refs #79
|
hey @rafaelsnv! Thanks a ton for getting this started! Your contribution is credited in the migration commit and the release changelog. https://github.com/supabase-community/opencode-supabase/releases/tag/v0.6.0 |
Ports the Supabase plugin to V2
Plugin.define()API. Introducessrc/shared/plugin-compat.tsas a compatibility layer so existing V1-shaped modules (@opencode-ai/plugin) continue to work alongside V2.