You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(cursor): add credits balance retrieval and display in progress lines
- Introduced a new API endpoint to fetch credit grants balance.
- Updated the progress display to include credits usage alongside plan usage.
- Enhanced error handling for credit grants fetch failures.
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(plugins): implement primary candidates for progress lines
- Updated plugin.json files to replace the "primary" flag with "primaryOrder" for defining primary metrics.
- Enhanced the cursor plugin to prioritize "Credits" in the display order when available.
- Adjusted the plugin types to support an array of primary candidates, allowing for more flexible metric selection.
- Updated tests to validate the new primary candidates functionality.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cursor): update state database path for testing and adjust plan usage calculation
- Changed the state database path to a test location for debugging purposes.
- Updated the plan usage calculation to handle cases where totalSpend may not be directly available, ensuring accurate display of usage metrics.
* fix(cursor): update state database path for production use
- Changed the state database path to the production location for proper functionality.
- Removed the temporary test path comment for clarity.
* fix: address PR review feedback
- Fix trailing zeros dropped in currency formatting (C2): set minimumFractionDigits
for non-integer values
- Add fail-loud null check for pu.limit (C3): throw explicit error when API
response is missing required plan usage data instead of silently returning NaN
- Add tests for new validation paths
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments