Files
loki/scripts
ee52eabfb7 refactor(email): move transport to @bitbaum/mail-kit (#495)
Replace the Resend SDK transport in src/lib/email.ts with the fleet's
@bitbaum/mail-kit. Templates and the sendEmail/sendEmailFire signatures
stay; the transport underneath is now sendMail (never throws — the
awaitable sendEmail preserves its old throw-on-failure contract for
callers). Sender SSOT moves from EMAIL_FROM to RESEND_FROM (mail-kit's
env contract) with conventionalFrom(APP_NAME) as the fleet-default
fallback; APP_EMAIL_FROM is gone from brand.ts and the env preflight now
warns on missing RESEND_FROM. The email-canary cron probes via
mailHealth() instead of a hand-rolled /domains fetch, and the digest
cron passes an idempotency key so a retried tick cannot double-send.
The resend dependency is removed.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-05 11:24:54 +00:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00