Skip to content

chore: updated for OpenCode v2 stable - #4

Open
Parithosh-Varma wants to merge 1 commit into
prevalentWare:mainfrom
Parithosh-Varma:chore/opencode-v2-stable
Open

Parithosh-Varma wants to merge 1 commit into
prevalentWare:mainfrom
Parithosh-Varma:chore/opencode-v2-stable

Conversation

@Parithosh-Varma

Copy link
Copy Markdown

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

  • devDeps: @opencode-ai/plugin-v2 (preview alias 0.0.0-beta-18593) -> @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 the preview packages
  • TUI sidebar: theme.text.default/subdued -> base/muted (stable token names; beta names no longer typecheck)
  • engines.opencode: >=1.17.1 || >=2.0.0
  • README: OpenCode 2 preview section -> stable (opencode plugin add ..., no preview version pin)
  • dist/server.js rebuilt (only bun-version identifier noise, no semantic change)

Verification

  • bun run typecheck passes
  • bun run lint passes
  • bun test passes (51 pass, 0 fail)
  • bun run build passes
  • npm pack --dry-run passes

Checklist

  • bun test passes (no behavior change; existing V2 regression coverage passes unmodified)
  • bun run lint passes
  • bun run typecheck passes
  • bun run build passes and dist/server.js is committed (rebuild-only diff)
  • README/docs updated (preview -> stable install + config)

Note: the V1 compaction-context hook still has no V2 equivalent wired up (pre-existing gap, unchanged by this PR).

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.
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