Skip to content

fix: align js sdk error mapping with platform - #45

Closed
Shedna wants to merge 2 commits into
mainfrom
cursor/platform-sdk-sync-20260708-js-errors
Closed

fix: align js sdk error mapping with platform#45
Shedna wants to merge 2 commits into
mainfrom
cursor/platform-sdk-sync-20260708-js-errors

Conversation

@Shedna

@Shedna Shedna commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • synchronize the JS SDK error refinement with the current public platform error contract
  • add dedicated SDK errors for IP_NOT_WHITELISTED, TASK_TYPE_NOT_SUPPORTED, and the specific x402 failure codes while keeping backward-compatible parent classes
  • move LinkupAuthenticationError into the shared LinkupError hierarchy and extend tests for the new mappings

Validation

  • npm run build
  • npm run lint
  • npm test

@Shedna Shedna closed this Jul 8, 2026
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