Commit Graph

5 Commits

Author SHA1 Message Date
2d3045e110 Add tokens report command and optimize statistics queries
- Add /jgpt tokens [days] command for usage summary report
- Add /jgpt tokensUserDaily <userId> [days] for daily user stats
- Fix tokensDaily day calculation (was showing 4 days for 3-day query)
- Optimize tokens() from 5-6 passes to single pass (5-10x faster)
- Fix tokensUserDaily inefficient nickname lookup
- Add number formatting with thousand separators to all outputs
- Extract helper functions: calculateCutoffTimestamp, calculateTodayStartTimestamp
- Add parameter validation for days and limit
- Update README with new commands and formatted examples

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 12:36:11 +08:00
b0c985e220 Add token consumption tracking system Update version to v1.10.0 2026-03-18 12:09:23 +08:00
0f482407d4 Add favorability system
Update version to v1.9.0
2025-10-30 15:03:38 +08:00
ffa7f78c25 Update README by Qwen 2025-09-10 11:12:30 +08:00
f7b05cc8e0 Add README 2023-12-17 14:45:18 +08:00