Commit Graph

7 Commits

Author SHA1 Message Date
shujakuin b68d801024 feat: add sub2apicn request logs page
- new logs page (press l / a to switch, or start with --logs) reading the
  latest 100 requests from the Sub2API admin usage API on sub2apicn
- columns: Key, Account, Model, Type, Tokens, Cost, Latency, Time with a
  per-row detail line (token buckets, actual cost, first-token latency)
- refreshes every 60s by default (--logs-refresh-seconds, --logs-limit)
- admin API key read from SHUSUB2_LOGS_TOKEN or ~/.config/shusub2/logs-token;
  --save-config now persists logs-url/logs-token too
- --once --logs prints a one-shot logs snapshot

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 02:18:47 +08:00
shujakuin 6e7831da7c feat: persist config from uvx bootstrap 2026-06-09 17:20:57 +08:00
shujakuin 01aa4a6012 feat: infer status url and check updates 2026-06-09 16:45:17 +08:00
shujakuin 98410b0fe0 feat: show monitor availability column 2026-06-09 16:09:26 +08:00
shujakuin 16f50172ca feat: bind monitors by base url hash 2026-06-09 15:59:44 +08:00
shujakuin a59ae55783 feat: show channel monitor health 2026-06-09 15:28:10 +08:00
shujakuin ffde69aee6 feat: publish shusub2 tui 2026-06-09 15:06:26 +08:00