feat(cli): track CLI version headers and admin usage analytics - #2906
feat(cli): track CLI version headers and admin usage analytics#2906riderx wants to merge 4 commits into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 27 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (52)
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_7004cb08-ceb9-4f58-bbb3-9e867be6bc78) |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
All reported issues were addressed across 16 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_f7afaf21-13a1-4b1f-80b7-3c0366890fc6) |
There was a problem hiding this comment.
All reported issues were addressed across 20 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_44b115b0-ff76-4332-a8d1-aabdd96761db) |
There was a problem hiding this comment.
All reported issues were addressed across 30 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
Keep both builder_capacity and cli_usage admin metrics, and prefer the HTTP app existence check with the shared app-add hint message. Co-authored-by: Cursor <cursoragent@cursor.com>
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_a429a64b-45c6-4178-898c-2ca2e080f84b) |
|



Summary (AI generated)
x-cli-version,x-cli-command,x-cli-node, andx-cli-os(plus optionalcapgkey) on Capgo API calls, especially/private/configcli_usage) on workerd, or Postgrespublic.cli_usagefor self-host / Supabase functionsMotivation (AI generated)
We lack visibility into which CLI versions and commands customers run against Capgo cloud. Config fetches are a natural, low-cost signal to attribute CLI adoption and upgrade lag without instrumenting every hot private route.
Business Impact (AI generated)
Enables support and product to see CLI version distribution, popular commands, and API-key activity. Helps prioritize deprecations, spot stuck old CLI versions, and measure command usage that drives retention and upgrade messaging.
Test Plan (AI generated)
bunx vitest run tests/cli-usage.unit.test.ts tests/admin-stats.unit.test.ts/private/configrequest includes the newx-cli-*headers (andcapgkeywhen a saved key exists)CLI_USAGEbound, confirm Analytics Engine receives writeDataPointspublic.cli_usageafter config pull/admin/dashboard/cliand verify totals, charts, and top API keys for a date rangecli_usagein the CF dashboard if missing, then deploy worker bindingsGenerated with AI
Made with Cursor
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.