Skip to content

Releases

0.2.0

Choose a tag to compare

@pistonex pistonex released this 18 Oct 00:37

Read the API key from the host credential API instead of legacy account.json.

  • Primary source: context.client.credential.list() (server GET /api/credential, returns the active credential including its secret value). Always reflects the key you just rotated.
  • Fallback: ~/.local/share/opencode/account.json only for hosts without credential.list (that file is legacy and may go stale on rotation).
  • api_key_expired now shows a short localized message pointing at opencode.ai/console instead of the server's truncated text.
  • Bumped @opencode/plugin to ^2.0.30; optional @OpenTui peers aligned to >=0.5.17.

0.1.4

Choose a tag to compare

@pistonex pistonex released this 21 Sep 00:10

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

Choose a tag to compare

@pistonex pistonex released this 14 Sep 00:16

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

Choose a tag to compare

@pistonex pistonex released this 13 Sep 23:42

Fix: the usage request could hang forever in the TUI runtime, leaving the widget stuck on 'loading'. Replaced AbortSignal.timeout() (not observed by fetch under Bun) with a manual AbortController timeout.

v0.1.1

Choose a tag to compare

@pistonex pistonex released this 13 Sep 23:37

Fix package loading as a published npm plugin.

  • Add the . server-side entrypoint export (src/index.ts stub) required by the opencode server loader; without it the package failed with Plugin entrypoint not found

v0.1.0

Choose a tag to compare

@pistonex pistonex released this 13 Sep 23:17

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