v2.0.0
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.jsonto 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.jsonwith an./tuiexport, enabling installs viaopencode plugin add github:neoscaler/opencode-ai-usagebar. - The sidebar stays hidden when the
ai-usagebarcommand is not onPATH.
Install
./install.shor
opencode plugin add github:neoscaler/opencode-ai-usagebar