Skip to content

Releases: jn-s3s/opencode-tui-quota-usage

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 04 Oct 06:19
b8f564f

What is Changed

Fixed

  • The sidebar header read the plugin name and version from hardcoded constants, so it kept showing 0.1.0 after the package had moved to 0.2.0. Both values are now read from package.json at build time, so the header tracks the released version automatically.

Full Changelog

v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 05:45
1cb3705

What is Changed

Changed

  • Renamed the TUI setup guidance command from /quota-providers to /quota-help.
  • A disabled provider is now hidden from the sidebar instead of appearing as a section marked Disabled · /quota-<provider>. One hint row names every provider that is currently off, so a hidden provider can still be turned back on.
  • Added a persistent right-aligned /quota-help for help footer to the sidebar.
  • A successful refresh now carries forward plan, activeUntil and accessEndsAt from the previous snapshot instead of clearing them. Carried-over values keep their original fetch time and render with a (stale) suffix once older than 5 minutes, so a subscription boundary whose follow-up lookup keeps failing is no longer shown as current.

Full Changelog

v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@jn-s3s jn-s3s released this 03 Oct 18:37
v0.1.0
b565ff6

Quota sidebar foundation

  • Initial release adds a read-only quota sidebar for the OpenCode V2 CLI and TUI, bundled from src/tui.tsx into dist/tui.js and loaded as a CLI-only plugin through ~/.config/opencode/cli.json.

Provider tracking

  • OpenCode Go and Go Plus section shows 5h, Weekly and Monthly windows as percent-left meters with a reset countdown, staying disabled by default until enabled with /quota-opencode.
  • Codex section shows 5h and Weekly windows read from the Codex CLI auth.json, enabled separately with /quota-codex.

Setup and live updates

  • Go API key is stored in Windows Credential Manager with an OPENCODE_QUOTA_GO_API_KEY environment fallback and an optional OPENCODE_QUOTA_GO_ORG_ID for best-effort plan and access status.
  • New TUI commands /quota-usage for sidebar visibility, /quota-providers for setup guidance and /quota-opencode-key for Go credential and org ID management.
  • Provider sections collapse independently, enabled providers refresh every 2 minutes, a 30 second countdown clock keeps the display current and warning or critical thresholds trigger at 45% and 10% left.

Breaking Changes

None.