chore: updated for OpenCode v2 stable - #4
Open
Parithosh-Varma wants to merge 1 commit into
Open
Parithosh-Varma wants to merge 1 commit into
Parithosh-Varma wants to merge 1 commit into
Conversation
Migrate V2 types from the preview alias to stable @opencode/plugin: - devDeps: @opencode-ai/plugin-v2 (beta-18593 alias) -> @opencode/plugin 2.0.16, @opencode-ai/theme -> @opencode/theme 2.0.16, add @opencode/client 2.0.16 - src/server.ts, src/tui.tsx, test/tui-v2.test.ts: import V2/client types from @opencode/* instead of @opencode-ai/* preview packages - tui sidebar: theme.text.default/subdued -> base/muted (stable token names) - engines: declare opencode >=1.17.1 || >=2.0.0 (dual V1 + V2 support kept) - README: OpenCode 2 preview section -> stable (install via plugin add) Verified: bun run typecheck, bun run lint, bun test (51 pass), bun run build, npm pack --dry-run.
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
Updates the plugin from the OpenCode 2 preview pins to stable OpenCode v2 (
2.x), keeping dual V1 + V2 support from one package. Follows up on #1 (which fixed the V2 command API against the beta).Changes
@opencode-ai/plugin-v2(preview alias0.0.0-beta-18593) ->@opencode/plugin2.0.16,@opencode-ai/theme->@opencode/theme2.0.16, add@opencode/client2.0.16src/server.ts,src/tui.tsx,test/tui-v2.test.ts: import V2/client types from@opencode/*instead of the preview packagestheme.text.default/subdued->base/muted(stable token names; beta names no longer typecheck)engines.opencode:>=1.17.1 || >=2.0.0opencode plugin add ..., no preview version pin)dist/server.jsrebuilt (only bun-version identifier noise, no semantic change)Verification
bun run typecheckpassesbun run lintpassesbun testpasses (51 pass, 0 fail)bun run buildpassesnpm pack --dry-runpassesChecklist
bun testpasses (no behavior change; existing V2 regression coverage passes unmodified)bun run lintpassesbun run typecheckpassesbun run buildpasses anddist/server.jsis committed (rebuild-only diff)