Repository navigation
refactor(resend-slack-email-agent): use the Resend SDK for inbox threads and replies - #170
jackbridger wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe Resend integration now uses the Resend SDK to list thread emails and send replies. It creates and caches the client on first use, paginates email results, and throws when the SDK reports an error. The package adds the SDK dependency, and the README updates its descriptions of the Resend and Slack integrations. Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk:
|
Switches the Resend email agent example from hand-written
fetchcalls to the official Resend SDK (resend6.39) for its two Inboxes calls:resend.inboxes.threads.emails.listresend.inboxes.threads.emails.reply, with the SDK'sidempotencyKeyoption, so a retried run still sends each reply at most onceThe client is created on first use, so the task files still load when
RESEND_API_KEYisn't set. The README's file list now mentions the SDK.Testing:
pnpm run typecheckpasses. Withfetchstubbed, the SDK sends the same requests as before:GET /inboxes/{inbox}/threads/{thread}/emails?limit=100, andPOST .../emails/{email}/replywith the same body andIdempotency-Keyheader. Not run against a live inbox.🤖 Generated with Claude Code
Summary by CodeRabbit