Skip to content

feat: indicate DeepSeek peak/off-peak pricing in balance panel - #17

Merged
bitIO merged 3 commits into
mainfrom
feat/deepseek-peak-hour-indicator
Sep 17, 2026
Merged

bitIO merged 3 commits into
mainfrom
feat/deepseek-peak-hour-indicator

Conversation

@bitIO

@bitIO bitIO commented Sep 17, 2026

Copy link
Copy Markdown
Owner

What

  • Add isDeepSeekPeakHour() in src/providers.ts — UTC peak windows (Mon–Fri 01:00–04:00 & 06:00–10:00, ends exclusive; weekends always off-peak).
  • Show 🔥 next to 🐋 DeepSeek during peak hours and ❄️ during off-peak in the sidebar balance panel.
  • 60s clock signal in tui.tsx so the emoji stays accurate between 15-min balance refreshes; wiring only applies to the deepseek provider.
  • chore: sync bun.lock peer ranges with package.json (kept from commit fix: widen @opentui peer ranges to resolve ERESOLVE on plugin install #16's widening).

Why

At-a-glance awareness of whether DeepSeek's discounted off-peak pricing is currently active.

How to test

  • bun test (6 new boundary cases), bun run lint, bun run typecheck all pass.
  • Panel shows: 🐋 DeepSeek 🔥 … in peak, 🐋 DeepSeek ❄️ … otherwise.

Risks

None — display-only change; no fetch/auth path touched.

@bitIO
bitIO merged commit 99c9c7e into main Sep 17, 2026
1 check passed
@bitIO
bitIO deleted the feat/deepseek-peak-hour-indicator branch September 17, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant