Skip to content

Sync budget limit error mapping with platform API#33

Merged
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260524
May 25, 2026
Merged

Sync budget limit error mapping with platform API#33
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-20260524

Conversation

@Shedna
Copy link
Copy Markdown
Contributor

@Shedna Shedna commented May 24, 2026

Summary

  • sync the JS SDK error refinement with the current platform gateway behavior for EXCEED_BUDGET_LIMIT
  • map the platform's 429 budget-limit error to LinkupInsufficientCreditError
  • add a focused regression test covering the new error-code mapping

Why

The public gateway API can now return EXCEED_BUDGET_LIMIT for budget-capped API keys. The JS SDK previously treated that response as an unknown error, so its typed error handling had drifted from platform behavior.

Validation

  • npm run build
  • npm run lint
  • npm test

@Shedna Shedna merged commit 8a25a5a into main May 25, 2026
2 checks passed
@Shedna Shedna deleted the cursor/platform-sdk-sync-20260524 branch May 25, 2026 08:09
@Shedna
Copy link
Copy Markdown
Contributor Author

Shedna commented May 26, 2026

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants