Repository navigation
Releases
Releases · PentSec/opencode-go-usage-meter
v0.1.3
What's new
- Pace indicators per window:
+Nppreserve,on pace, and-Nppdeficit, with fixed-width columns so label, bar, percentage, pace and countdown stay aligned. The monthly row is labelled1moand its pace follows the subscription anniversary (one UTC calendar month, 28 to 31 days). - Any non-zero usage fills at least one bar cell, so 2% and 4% no longer look uncoloured.
Fixes
- Credential resolution falls back from
opencode-goto the OpenCode Console (opencode) credential in the database andauth.json. Legacy rows with a NULLactivecolumn count as active, and a 401 moves to the next candidate. An OAuthaccesstoken is used unless its numeric expiry is already past. - The environment key is resolved first, and the credential stores are only read when another attempt is needed.
- The sidebar keeps usage state, the refresh cycle and the countdown across panel remounts, and drops late results after cleanup.
- A single unreadable credential row no longer discards the credentials collected before it.
Maintenance
- CI now typechecks
tests/and runs the Bun test suite: 89 tests.
v0.1.2
What's Changed
- Fix sidebar panel stuck in loading state by @saihgupr in #1
- build: typecheck CI and pin plugin range by @PentSec in #2
- fix(tui): bound the refresh cycle and stop overlapping polls by @PentSec in #3
New Contributors
Full Changelog: https://github.com/PentSec/opencode-go-usage-meter/commits/v0.1.2