17 Commits

Author SHA1 Message Date
461773c677 fix(usage): resolve Z.ai window assignment using limit IDs
Z.ai assigns both token and request limits the same generic "quota"
window ID, so findWindowLimits fell through to array-order fallback.
This caused the two bars to swap depending on API response order.

Add limit-ID-based matching (zai:tokens → current, zai:requests → week)
as a secondary tier after window-ID matching.
2026-05-04 06:24:28 -04:00
cf7ad047d3 refactor: type ModuleContext and index.ts functions with SDK types 2026-05-03 21:28:15 -04:00
26ba42f2b9 docs: remove deleted usage/shared.ts from AGENTS.md layout 2026-05-03 21:25:43 -04:00
9951a11b29 fix: make overlay() ANSI-aware using visible character positions 2026-05-03 21:25:34 -04:00
f8fac5fd45 refactor: consolidate duplicate toNumber into utils.ts, remove usage/shared.ts 2026-05-03 21:25:12 -04:00
7906519eeb docs: update AGENTS.md with accurate file layout and current conventions 2026-05-03 21:22:26 -04:00
35f8276a16 fix: use same refresh interval for all providers
chore: update AGENTS.md to require explicit approval for usage/ and providers/ changes
2026-05-03 21:21:49 -04:00
9c88e0a003 perf: debounce rerender calls with queueMicrotask to coalesce rapid updates 2026-05-03 21:16:22 -04:00
576f31b13a fix: use floor for duration minutes to prevent 60m overflow 2026-05-03 21:16:04 -04:00
419c78c357 refactor: replace any types with proper SDK types in event handlers 2026-05-03 21:15:43 -04:00
c8c5de590d perf: cache ANSI prefix regex in truncate instead of re-creating per call 2026-05-03 21:14:07 -04:00
4e36542b8b fix: add explicit any types to resolve implicit any diagnostics 2026-05-03 21:13:10 -04:00
b035ab3d0c fix: keep old usage data visible during refresh to prevent pop-in 2026-05-03 21:11:57 -04:00
615762b0ac chore: use auth storage 2026-05-03 11:58:13 -04:00
4b06f45b2c chore: format usage 2026-05-03 11:56:46 -04:00
2031ab0506 docs: add project readme and usage attribution 2026-05-03 11:34:17 -04:00
c96da624fe feat: add configurable pi statusbar extension 2026-05-03 11:31:46 -04:00