Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 07 Jun 00:21
· 2 commits to main since this release

What's changed

Added

  • Native Windows support for the ai-usagebar and ai-usagebar-tui
    binaries.
    Credential paths now resolve the home directory through
    directories::BaseDirs (a new shared cache::home_dir() helper) instead
    of reading $HOME directly, 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's check() runs cargo 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 / $XDG paths. Production
    behaviour is unchanged (thanks @sombraSoft).
  • TUI double-processed keystrokes on Windows Terminal. Terminals that
    report key Repeat/Release events in addition to Press (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 on KeyEventKind::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 source

Manual

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-tui

Checksums (SHA256)

82233d8607d97fce5418f0e741db3b89ad2af95fbe62eb562a1b5388fd6a4863  ai-usagebar-linux-aarch64.tar.gz
464ebfda1b54901eeede26966073501bbd32175de982c9acceef292e7b5e9f71  ai-usagebar-linux-x86_64.tar.gz

Full diff: v0.5.1...v0.6.0