mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-21 15:52:37 +00:00
* feat(config): add configurable usage cache TTL settings Add cacheTtlSeconds and failureCacheTtlSeconds to the usage section of config.json, allowing users to control how often the Anthropic usage API is fetched (default 60s) and how quickly failures are retried (default 15s). * docs: document usage cache TTL config options * refactor(usage): bundle cache TTL params into single CacheTtls object Replace cacheTtlMs/failureCacheTtlMs pair with a CacheTtls type wherever they appear together, reducing parameter count in readCacheState, readCache, waitForFreshCache, and UsageApiDeps. * chore(build): drop dist changes from pr --------- Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
5.8 KiB
5.8 KiB