Repository navigation
Releases
0.2.0
Read the API key from the host credential API instead of legacy account.json.
- Primary source:
context.client.credential.list()(serverGET /api/credential, returns the active credential including its secret value). Always reflects the key you just rotated. - Fallback:
~/.local/share/opencode/account.jsononly for hosts withoutcredential.list(that file is legacy and may go stale on rotation). api_key_expirednow shows a short localized message pointing atopencode.ai/consoleinstead of the server's truncated text.- Bumped
@opencode/pluginto ^2.0.30; optional @OpenTui peers aligned to >=0.5.17.
0.1.4
Fix crash on opencode v2.0.11: Context.theme is now a ResolvedTheme object (not a function) with new token names.
- background.surface.overlay -> background.raised.base
- border.default -> border.base
- text.default / text.subdued -> text.base / text.muted
- feedback..default -> feedback..base
v0.1.3
Fix: the widget stayed stuck on 'loading...' forever when installed as an npm package, even though the usage request succeeded.
Root cause: loaded from inside node_modules, Bun resolves bare imports (solid-js, @opentui/solid, the JSX runtime) against the package's own copies instead of the OpenCode TUI host, creating a second Solid runtime the host renderer never sees.
Fix: all runtime imports now go through the host's virtual modules (opentui:runtime-module:*), and the markup is built with explicit jsx()/jsxs() calls (no auto-generated bare JSX-runtime import). Peer dependencies are optional again so npm does not install shadow copies.
v0.1.2
v0.1.1
v0.1.0
Initial release.
Install: { "plugins": ["@pistonex/opencode-go-usage"] }
- Sidebar widget with rolling / weekly / monthly OpenCode Go usage
- Bilingual (ES/EN), autodetected from the environment
- Hot language switching via /opencode-go-lang
- Collapse/expand via /opencode-go, persisted across restarts
- 10s fetch timeout, no requests while collapsed