Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
e2a
command
|
|
|
e2a-contract-server
command
|
|
|
e2a-openapi-codegen-normalize
command
e2a-openapi-codegen-normalize adapts valid OpenAPI 3.1 nullable object references to the OpenAPI Generator 7.16 dialect.
|
e2a-openapi-codegen-normalize adapts valid OpenAPI 3.1 nullable object references to the OpenAPI Generator 7.16 dialect. |
|
e2a-openapi-normalize
command
e2a-openapi-normalize prepares old and new e2a OpenAPI documents for semantic comparison.
|
e2a-openapi-normalize prepares old and new e2a OpenAPI documents for semantic comparison. |
|
e2a-openapi-sdk-check
command
e2a-openapi-sdk-check protects generated SDK names that wire-level OpenAPI compatibility tools do not compare.
|
e2a-openapi-sdk-check protects generated SDK names that wire-level OpenAPI compatibility tools do not compare. |
|
e2a-openapi-security-check
command
e2a-openapi-security-check protects security-scheme fields that oasdiff does not currently compare.
|
e2a-openapi-security-check protects security-scheme fields that oasdiff does not currently compare. |
|
e2a-prober
command
Command e2a-prober runs the e2a critical-path self-test (internal/selftest) against a live instance, four ways:
|
Command e2a-prober runs the e2a critical-path self-test (internal/selftest) against a live instance, four ways: |
|
piguard-eval
command
piguard-eval is an offline evaluation harness for the piguard heuristics detector.
|
piguard-eval is an offline evaluation harness for the piguard heuristics detector. |
|
internal
|
|
|
agentauth
Package agentauth is the auth.md agent-identity layer (api-v1-redesign §5 / Slice 5b).
|
Package agentauth is the auth.md agent-identity layer (api-v1-redesign §5 / Slice 5b). |
|
apiserver
Package apiserver builds the process HTTP handler: the typed Huma /v1 surface (internal/httpapi) wrapping the legacy gorilla/mux fallback.
|
Package apiserver builds the process HTTP handler: the typed Huma /v1 surface (internal/httpapi) wrapping the legacy gorilla/mux fallback. |
|
approvaltoken
Package approvaltoken signs and verifies the short-lived HMAC tokens embedded in HITL notification-email magic links.
|
Package approvaltoken signs and verifies the short-lived HMAC tokens embedded in HITL notification-email magic links. |
|
delivery
Package delivery implements outbound delivery feedback (decision 9 / Slice 4b): the async delivery lifecycle SES reports per message and per recipient, plus a per-tenant suppression list.
|
Package delivery implements outbound delivery feedback (decision 9 / Slice 4b): the async delivery lifecycle SES reports per message and per recipient, plus a per-tenant suppression list. |
|
dkim
Package dkim wraps github.com/emersion/go-msgauth/dkim for the per-domain signing path.
|
Package dkim wraps github.com/emersion/go-msgauth/dkim for the per-domain signing path. |
|
emailtemplate
Package emailtemplate is the hand-rolled variable-interpolation engine for user email templates (beta).
|
Package emailtemplate is the hand-rolled variable-interpolation engine for user email templates (beta). |
|
eventpayload
Package eventpayload defines the canonical typed `data` payloads for the STABLE webhook/WS event types (the pre-GA contract freeze, PR-2 of the event/webhook contract audit).
|
Package eventpayload defines the canonical typed `data` payloads for the STABLE webhook/WS event types (the pre-GA contract freeze, PR-2 of the event/webhook contract audit). |
|
eventpayload/goldenassert
Package goldenassert is the shared TEST helper for the golden-payload fixtures under internal/eventpayload/testdata — the cross-channel drift lock for the stable event `data` payloads.
|
Package goldenassert is the shared TEST helper for the golden-payload fixtures under internal/eventpayload/testdata — the cross-channel drift lock for the stable event `data` payloads. |
|
hitlnotify
Package hitlnotify sends the approval notification email that fires whenever a new outbound message enters pending_review.
|
Package hitlnotify sends the approval notification email that fires whenever a new outbound message enters pending_review. |
|
hitlworker
Package hitlworker runs the periodic sweep that finalizes pending_review holds whose TTL has elapsed.
|
Package hitlworker runs the periodic sweep that finalizes pending_review holds whose TTL has elapsed. |
|
httpapi
Package httpapi is the e2a v1 HTTP contract layer, built on Huma + chi.
|
Package httpapi is the e2a v1 HTTP contract layer, built on Huma + chi. |
|
idempotency
Package idempotency implements the storage backing the Idempotency-Key header on the outbound send endpoints.
|
Package idempotency implements the storage backing the Idempotency-Key header on the outbound send endpoints. |
|
inboundpolicy
Package inboundpolicy evaluates a per-agent inbound trust policy (api-v1-redesign decision 10 / Slice 7).
|
Package inboundpolicy evaluates a per-agent inbound trust policy (api-v1-redesign decision 10 / Slice 7). |
|
inboundprocess
Package inboundprocess is Layer 3 of the queue-first inbound pipeline (docs/design/inbound-message-pipeline-river.md): the River execution stage that takes an accepted inbound_intake row and runs the full processing chain — parse, SPF/DKIM/DMARC, ingestion gate, content screening, persist, and event publish — off the SMTP critical path.
|
Package inboundprocess is Layer 3 of the queue-first inbound pipeline (docs/design/inbound-message-pipeline-river.md): the River execution stage that takes an accepted inbound_intake row and runs the full processing chain — parse, SPF/DKIM/DMARC, ingestion gate, content screening, persist, and event publish — off the SMTP critical path. |
|
janitor
Package janitor runs the low-urgency hourly cleanup sweep as a River periodic on QueueMaintenance.
|
Package janitor runs the low-urgency hourly cleanup sweep as a River periodic on QueueMaintenance. |
|
jobs
Package jobs is the single River composition root for e2a's background work.
|
Package jobs is the single River composition root for e2a's background work. |
|
limits
Package limits enforces per-user resource caps at the agent-create, domain-register, and message-send paths.
|
Package limits enforces per-user resource caps at the agent-create, domain-register, and message-send paths. |
|
loopback
Package loopback delivers agent-to-self messages without touching the upstream SMTP relay.
|
Package loopback delivers agent-to-self messages without touching the upstream SMTP relay. |
|
mailfrom
Package mailfrom defines the custom MAIL FROM subdomain convention shared by sender-identity provisioning (which configures it in SES and emits its DNS records) and the outbound sender (which uses it as the aligned Return-Path).
|
Package mailfrom defines the custom MAIL FROM subdomain convention shared by sender-identity provisioning (which configures it in SES and emits its DNS records) and the outbound sender (which uses it as the aligned Return-Path). |
|
mailparse
Package mailparse produces the "parsed view" of a raw RFC 5322 message — inbound mail and the retained copy of sent outbound mail (decision 9 / Slice 4b-3).
|
Package mailparse produces the "parsed view" of a raw RFC 5322 message — inbound mail and the retained copy of sent outbound mail (decision 9 / Slice 4b-3). |
|
oauth
Package oauth wires the e2a authorization server using ory/fosite as the protocol layer.
|
Package oauth wires the e2a authorization server using ory/fosite as the protocol layer. |
|
openapicompat
Package openapicompat contains normalization used only by the OpenAPI compatibility gate.
|
Package openapicompat contains normalization used only by the OpenAPI compatibility gate. |
|
outboundsend
Package outboundsend is Layer 3 of the outbound pipeline (docs/design/async-message-pipeline.md): the River execution stage that submits an accepted message to the upstream provider (SES) and records the terminal outcome.
|
Package outboundsend is Layer 3 of the outbound pipeline (docs/design/async-message-pipeline.md): the River execution stage that submits an accepted message to the upstream provider (SES) and records the terminal outcome. |
|
piguard
Package piguard ("prompt-injection guard") is the content-screening seam for inbound and outbound agent email.
|
Package piguard ("prompt-injection guard") is the content-screening seam for inbound and outbound agent email. |
|
selftest
Package selftest defines the e2a critical-path self-test: a small battery of scenarios that exercise the real product paths (liveness, authenticated read, the inbound SMTP→webhook round-trip with HMAC verification, and a self-send loopback) against a running instance.
|
Package selftest defines the e2a critical-path self-test: a small battery of scenarios that exercise the real product paths (liveness, authenticated read, the inbound SMTP→webhook round-trip with HMAC verification, and a self-send loopback) against a running instance. |
|
senderidentity
Package senderidentity manages the per-domain SES sending identity that lets outbound mail use the agent's OWN address as the From header (decision 4 / Slice 4).
|
Package senderidentity manages the per-domain SES sending identity that lets outbound mail use the agent's OWN address as the From header (decision 4 / Slice 4). |
|
sendramp
Package sendramp implements durable, per-domain recipient-volume ramping for the asynchronous outbound delivery worker.
|
Package sendramp implements durable, per-domain recipient-volume ramping for the asynchronous outbound delivery worker. |
|
startertemplates
Package startertemplates ships the pre-built starter email template masters that seed a new account's template library.
|
Package startertemplates ships the pre-built starter email template masters that seed a new account's template library. |
|
telemetry
Package telemetry defines the metrics interface for the e2a backend.
|
Package telemetry defines the metrics interface for the e2a backend. |
|
unsubscribe
Package unsubscribe derives opaque, stable identifiers for managed unsubscribe scopes and their database lookup keys.
|
Package unsubscribe derives opaque, stable identifiers for managed unsubscribe scopes and their database lookup keys. |
|
webhookdelivery
Package webhookdelivery is Layer 3 of the webhook pipeline (docs/design/webhook-delivery-river-migration.md): the River execution stage that POSTs a webhook_subscriber_deliveries (Layer 2) row to the customer endpoint and retries it.
|
Package webhookdelivery is Layer 3 of the webhook pipeline (docs/design/webhook-delivery-river-migration.md): the River execution stage that POSTs a webhook_subscriber_deliveries (Layer 2) row to the customer endpoint and retries it. |
|
webhookpub
Package webhookpub publishes events from the e2a core (relay, outbound sender, HITL flow) to subscribers registered via the /v1/webhooks resource, using a durable three-layer pipeline:
|
Package webhookpub publishes events from the e2a core (relay, outbound sender, HITL flow) to subscribers registered via the /v1/webhooks resource, using a durable three-layer pipeline: |
|
Package migrations embeds every numbered .sql file in this directory so the e2a binary can self-apply schema changes on startup.
|
Package migrations embeds every numbered .sql file in this directory so the e2a binary can self-apply schema changes on startup. |
Click to show internal directories.
Click to hide internal directories.