Skip to content

Add Cloudflare and Azure mail adapters - #15

Merged
FlyOverCoderKY merged 6 commits into
mainfrom
claude/enable-mail-providers
Jul 28, 2026
Merged

FlyOverCoderKY merged 6 commits into
mainfrom
claude/enable-mail-providers

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Summary

  • add a Cloudflare Email Service binding adapter with explicit double-send risk acknowledgement and Queue event normalization
  • add an Azure Communication Services Email REST adapter with HMAC signing, deterministic operation IDs, repeatability fencing, and Event Grid normalization
  • make the pegma.dev Identity composition accept a host-selected mail delivery adapter
  • document the exact Resend production enablement sequence

Verification

  • npm run check
  • npm test (60 tests)
  • npm run build
  • git diff --check
  • literal control-character scan

Copilot AI review requested due to automatic review settings July 28, 2026 16:46
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the worker/ Identity composition to support host-selected mail delivery adapters, adding first-party adapters for Cloudflare Email Service and Azure Communication Services Email, and documenting the production Resend enablement sequence for safe rollout.

Changes:

  • Add a Cloudflare Email Service adapter with explicit double-send risk acknowledgement and Queue event normalization.
  • Add an Azure Communication Services Email REST adapter with deterministic operation IDs, repeatability fencing, HMAC signing, and Event Grid normalization.
  • Update the Identity runtime composition to accept an injected mailDelivery adapter (while keeping Resend as the default) and document provider rollout steps.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
worker/src/identity-runtime.ts Adds mailDelivery injection for a host-selected provider/reconciliation/classifier while preserving Resend fallback behavior.
worker/src/identity-runtime.test.ts Adds coverage proving the composition can run with a non-Resend injected provider adapter.
worker/src/cloudflare-email-mail.ts Introduces Cloudflare Email Service binding adapter + Queue event normalization + reconciliation port.
worker/src/cloudflare-email-mail.test.ts Adds unit tests for Cloudflare adapter send behavior, event parsing hardening, reconciliation, and classification.
worker/src/azure-acs-mail.ts Introduces Azure ACS REST adapter with request signing, deterministic operation IDs, repeatability headers, and Event Grid normalization.
worker/src/azure-acs-mail.test.ts Adds unit tests for Azure adapter idempotency/repeatability behavior, event parsing hardening, reconciliation, and classification.
worker/README.md Documents Resend production enablement order and summarizes available provider adapters and required host responsibilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread worker/src/cloudflare-email-mail.ts Resolved
@FlyOverCoderKY
FlyOverCoderKY merged commit f051e6f into main Jul 28, 2026
1 check passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/enable-mail-providers branch July 28, 2026 17:26
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