Skip to content

v2.0.0

Choose a tag to compare

@neoscaler neoscaler released this 26 Sep 16:58
· 4 commits to main since this release
7bb1d40

OpenCode V2 support

OpenCode V2 does not run V1 plugin implementations, so this is a full port to the V2 plugin API: Plugin.define with setup, and the sidebar.content slot via context.ui.slot.

Breaking changes

  • Requires OpenCode V2. The last V1 release is v1.0.1.
  • Install layout moved from ~/.config/opencode/plugin/ai-usagebar-sidebar.tsx + tui.json to the discovered ~/.config/opencode/plugins/ai-usagebar/ directory.

Changed

  • Colours now come from the resolved V2 theme tokens (text.base, text.muted, text.feedback.*), so the sidebar follows the active theme.
  • The plugin ships a package.json with an ./tui export, enabling installs via opencode plugin add github:neoscaler/opencode-ai-usagebar.
  • The sidebar stays hidden when the ai-usagebar command is not on PATH.

Install

./install.sh

or

opencode plugin add github:neoscaler/opencode-ai-usagebar