mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-04-21 18:52:40 +00:00
* feat: add usageBarEnabled config option for quota display style Add configurable display style for usage limits: - usageBarEnabled: true → visual bar (██░░ 25%) - usageBarEnabled: false → text format (5h: 25%) Changes: - config.ts: Add usageBarEnabled option (default: true) - colors.ts: Add quotaBar() and getQuotaColor() with blue color scheme - usage.ts, session-line.ts: Conditional rendering based on config Closes #84 * fix: add clamp guard to coloredBar for consistency Apply the same safeWidth/safePercent guards from quotaBar to coloredBar to prevent RangeError on malformed input values. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * chore: revert dist files to main Remove build artifacts from PR diff. CI will rebuild dist/ after merge. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * test: add usageBarEnabled: false to baseContext Ensures existing tests continue to check text format behavior. The new bar format is opt-in via config. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Aster Kim <aster@spoonlabs.com> Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>