Skip to content

v1.0.0-alpha.7

Pre-release
Pre-release

Choose a tag to compare

@ranjithrajv ranjithrajv released this 27 Sep 18:58
· 11 commits to main since this release

Changed

  • Widened the @opencode/plugin peer range from ^2.0.15 to ^2.0.3, matching what the kit actually supports. Verified by typecheck and the type-tripwire against 2.0.3, 2.0.10 and 2.0.18. 2.0.3 is the floor: earlier 2.x releases ship no ./tui subpath export, so nothing importing @opencode/plugin/tui can resolve it.
  • Documented the 2.0.3 floor in the Compatibility section.
  • CollapsibleSection and CollapsibleGroup take an optional theme prop, so a consumer can hand down the host's own usePlugin().theme instead of the kit reaching for the plugin context itself.

Fixed

  • CollapsibleSection / CollapsibleGroup no longer throw PluginContextProvider is missing when the kit is installed from node_modules. Both called usePlugin() unconditionally, but a registry install resolves a different copy of @opencode/plugin and solid-js than the one the host renders with, so the host's plugin context was never visible. Callers that already hold the context pass theme down; the usePlugin() fallback still resolves for deduped module graphs (tests, monorepos) and degrades to unthemed text rather than throwing.

Install

npm install opencode-plugin-kit

latest now points at this release, so a plain install gets the v2 kit. The
publish workflow tags each prerelease under its own identifier and leaves
latest alone, so later alphas will not move it automatically — install
opencode-plugin-kit@alpha to track the newest build.

Consumer action required

If you render a collapsible sidebar section, pass the host theme:

const { theme } = usePlugin()
<CollapsibleSection title="..." count={n} theme={theme}>...</CollapsibleSection>