Skip to content

fix: split budget limit error from insufficient credit - #39

Merged
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-budget-limit-error
Jun 4, 2026
Merged

fix: split budget limit error from insufficient credit#39
Shedna merged 1 commit into
mainfrom
cursor/platform-sdk-sync-budget-limit-error

Conversation

@Shedna

@Shedna Shedna commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • the JS SDK treated the platform error code EXCEED_BUDGET_LIMIT the same as INSUFFICIENT_FUNDS_CREDITS, even though the public API exposes them as distinct 429 error conditions
  • added LinkupBudgetLimitExceededError and mapped EXCEED_BUDGET_LIMIT to it while keeping the existing insufficient-credit behavior unchanged
  • updated the error contract test to assert the new dedicated error class

Validation

  • npm run build
  • npm run lint
  • npm test

Co-authored-by: william <william@linkup.so>
@Shedna
Shedna merged commit a17aeb8 into main Jun 4, 2026
2 checks passed
@Shedna
Shedna deleted the cursor/platform-sdk-sync-budget-limit-error branch June 4, 2026 08:17
@Shedna

Shedna commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.2.4 🎉

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