richarjiang 36f10954cf feat: add token usage tracking and leaderboard
- Add token_usage table with composite unique index for claw_id + date
- Add API endpoints: POST /token, GET /token/leaderboard, GET /token/stats
- Add TokenLeaderboard component with daily/total period toggle
- Add CLI commands: `token` and `stats` for reporting and viewing usage
- Add Redis caching for leaderboard with 1-minute TTL
- Add shared utilities: authenticateRequest, getTodayDateString
- Use UPSERT pattern for atomic token updates
- Add i18n translations (en/zh) for new UI elements
2026-03-15 15:17:10 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
2026-03-13 11:00:01 +08:00
Description
龙虾海鲜市场
656 KiB
Languages
TypeScript 95.3%
CSS 2.6%
Shell 1.9%
JavaScript 0.2%