Skip to content

v0.4.0 — 5-hour window per-model tokens

Choose a tag to compare

@srikanthlogic srikanthlogic released this 10 Sep 10:40
· 7 commits to main since this release

The model usage matrix now leads with a 5h Quota column: per-model tokens used inside the current 5-hour quota window (derived from nextResetTime − 5h → now, queried against the intraday model-usage range).

  • summary / summary --json: 6 window columns — 5h Quota, Hour, 24h, 7d, 30d, current month
  • fiveHourWindow() helper, unit-tested (25 tests)
  • README samples regenerated, published as zai-usage@0.4.0 on npm