v0.6.0
What's changed
Added
- Native Windows support for the
ai-usagebarandai-usagebar-tui
binaries. Credential paths now resolve the home directory through
directories::BaseDirs(a new sharedcache::home_dir()helper) instead
of reading$HOMEdirectly, so Anthropic (%USERPROFILE%\.claude\.credentials.json)
and OpenAI Codex (%USERPROFILE%\.codex\auth.json) credentials are found
natively on Windows. The Waybar refresh (pkill -RTMIN+13 waybar) is gated
to Unix and becomes a no-op elsewhere, since Waybar is Wayland-only. Linux
and macOS behavior is unchanged. The Waybar widget itself remains
Wayland-only; on Windows the TUI is the entry point. (thanks @EaeDave)
Fixed
- AUR source install no longer fails for users with a customized
active_vendor. The PKGBUILD'scheck()runscargo test --release
against the building user's real$HOME, so a planted
~/.cache/ai-usagebar/active_vendor(e.g. set by widget scroll-cycle to
any non-default vendor) flipped two unit tests via the documented
vendor-precedence rule #2 and aborted the build. Tests now exercise
vendor precedence + TUI theme resolution through hermetic seams
(Cli::resolve_vendor_with,active::cycle_at/read_from/write_to,
App::with_theme) and never read real$HOME/$XDGpaths. Production
behaviour is unchanged (thanks @sombraSoft). - TUI double-processed keystrokes on Windows Terminal. Terminals that
report keyRepeat/Releaseevents in addition toPress(Windows
Terminal, and emulators advertising the Kitty keyboard protocol) made one
Tab/arrow press move several tabs and holding a key fly through them. The
TUI now acts only onKeyEventKind::Press. Harmless and beneficial on all
platforms. (thanks @EaeDave)
Install
Arch (AUR)
yay -S ai-usagebar-bin # prebuilt binary from this release
yay -S ai-usagebar # compiles from sourceManual
curl -fsSL https://github.com/akitaonrails/ai-usagebar/releases/download/v0.6.0/ai-usagebar-linux-x86_64.tar.gz | tar xz -C ~/.local/bin ai-usagebar ai-usagebar-tuiChecksums (SHA256)
82233d8607d97fce5418f0e741db3b89ad2af95fbe62eb562a1b5388fd6a4863 ai-usagebar-linux-aarch64.tar.gz
464ebfda1b54901eeede26966073501bbd32175de982c9acceef292e7b5e9f71 ai-usagebar-linux-x86_64.tar.gz
Full diff: v0.5.1...v0.6.0