Skip to content

v1.0.0-alpha.6

Pre-release
Pre-release

Choose a tag to compare

@ranjithrajv ranjithrajv released this 27 Sep 13:34

Changed

  • Migrated the host contract from the legacy V1 plugin beta to the OpenCode v2 packages @opencode/plugin / @opencode/sdk / @opencode/theme (2.0.15, types-only optional peer): import paths, ResolvedTheme text tokens (text.base / text.muted), and dialog.select placeholder.
  • palette / slash.arguments are literal types matching the v2 KeymapCommand.
  • Added KitModelShape so the model accessors accept both messages (numeric cost) and model-list entries / ModelInfo (array cost).
  • readAuth() now reads OpenCode 2's SQLite credential store, falling back to the legacy auth.json.

Fixed

  • tsconfig.json no longer excludes tests/**/*.test-d.ts. The exclude was inherited by Vitest's typechecker, so host.test-d.ts — the host-contract tripwire — was silently never typechecked.
  • Corrected host.test-d.ts (missing KitStorage import, a non-existent expectTypeOf(...).get(), and the command subset omitting required run).

Added

  • Tests covering the OpenCode 2 SQLite credential store (restores the 100% coverage gate).