feat(terra): Claude subscription limits panel on the rail

CLD panel next to luna showing the 5-hour and weekly usage windows (plus
any per-model weekly caps), polled every 5 min via a new `claude-usage`
script that reuses Claude Code's OAuth login and refreshes it when expired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 01:26:44 +02:00
co-authored by Claude Opus 5.5
parent 13e8db74ce
commit f84611bc6e
7 changed files with 363 additions and 2 deletions
+2
View File
@@ -1,6 +1,7 @@
{ pkgs, unstable, inputs, ... }:
let
tome = pkgs.callPackage ../../pkgs/tome.nix { src = inputs.tome; };
claude-usage = pkgs.callPackage ../../pkgs/claude-usage.nix { };
# SUDO_ASKPASS helper: shows sudo's password prompt in quickshell
# (HyprChrome/Widgets/Askpass) instead of the terminal. sudo doesn't speak
@@ -95,6 +96,7 @@ in
pkgs.opencode
pkgs.quickshell
qs-askpass
claude-usage
pkgs.github-cli
pkgs.tea
pkgs.docker-compose