Files
claude-hud/tests/index.test.js
yelo ce5960dcd8 Add configurable usage cache TTL settings (#175)
* 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>
2026-03-09 15:13:22 +11:00

5.8 KiB