Skip to content

feat: add usage statistics and global --attr flag - #64

Merged
zx06 merged 7 commits into
mainfrom
feat/usage-stats
Aug 3, 2026
Merged

feat: add usage statistics and global --attr flag#64
zx06 merged 7 commits into
mainfrom
feat/usage-stats

test: improve stats.go coverage to 80%+

10af5a3
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 3, 2026 in 1s

82.39% (-1.04%) compared to 799dc46

View this Pull Request on Codecov

82.39% (-1.04%) compared to 799dc46

Details

Codecov Report

❌ Patch coverage is 79.71698% with 86 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.39%. Comparing base (799dc46) to head (10af5a3).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/stats/store.go 68.13% 17 Missing and 12 partials ⚠️
internal/mcp/tools.go 19.04% 17 Missing ⚠️
internal/web/handler.go 5.55% 17 Missing ⚠️
cmd/xsql/stats.go 86.81% 7 Missing and 5 partials ⚠️
cmd/xsql/root.go 81.25% 3 Missing and 3 partials ⚠️
internal/stats/query.go 95.45% 2 Missing and 1 partial ⚠️
internal/stats/attrs.go 94.73% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
- Coverage   83.43%   82.39%   -1.04%     
==========================================
  Files          46       50       +4     
  Lines        3839     4249     +410     
==========================================
+ Hits         3203     3501     +298     
- Misses        477      565      +88     
- Partials      159      183      +24     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.