codeburn/app/renderer/lib
iamtoruk 880f84d593 feat(app): live quota fetch module + getQuota bridge (Phase 4 backend)
Port the menu bar's OAuth quota fetch to the Electron main:
- app/electron/quota/{claude,codex,index,security}.ts reads the local Claude/
  Codex credentials, hits the usage APIs, normalizes to QuotaProvider (5h/weekly
  windows, auto-detected tier, resets-at) with 429 backoff + single-flight
- getQuota IPC bridge (main + preload + renderer types); needs a full relaunch

Security: tokens are never returned or logged (redact Bearer/sk-ant/sk-/JWT,
strip NUL, truncate 240); credential reads refuse symlinks (O_NOFOLLOW/lstat) and
insecure modes; Anthropic refresh is never POSTed (single-use, shared with CLI).

typecheck clean; 147/147 tests pass; Electron build passes.
2026-07-12 16:43:53 -07:00
..
format.test.ts
format.ts feat(app): rebuild Sessions — fixed columns, clean paths, inline expand 2026-07-12 13:38:45 -07:00
ipc.ts
modelSeries.ts
period.test.ts feat(app): Spend chart — fixed 15-day window + date axis, no gridlines 2026-07-12 16:21:41 -07:00
period.ts feat(app): Spend chart — fixed 15-day window + date axis, no gridlines 2026-07-12 16:21:41 -07:00
types.ts feat(app): live quota fetch module + getQuota bridge (Phase 4 backend) 2026-07-12 16:43:53 -07:00