Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
contacts_service
What it is
Contacts/CRM feature: thin composition root for the contacts domain
crate — HTTP router, an SQS worker that ingests connection events, and an
outbox worker that notifies connection_gateway.
Start here
src/main.rs: wirescontacts::domain::service::ContactsDomainService,contacts::inbound::http::contacts_router, and the SQS/outbox workers — the actual logic lives incrates/contacts, not here.src/config.rs: env vars and per-environment DB pool sizing.src/health.rs: health check endpoint.
Scope
- Owns: process startup, config, and composing
crates/contacts's inbound/outbound adapters. - Not here: contact-matching/connection domain logic, repository queries, or
the gateway-notification adapter — all in
crates/contacts(domain/service,outbound/repository,outbound/gateway).
Recipes
- Add an HTTP route:
crates/contacts(inbound/http) → wired automatically viacontacts_routerinsrc/main.rs. - Test the local SQS/outbox pipeline:
just create-localstack→just create-queue→just sqs-worker→just sqs-test-message.
Checks
cargo test -p contacts_service(SQLX_OFFLINEunset).
Gotchas
README.mdand thejustrecipes reference aconnectionstable and amy-test-queue/local-SQS workflow predating the currentContactsDomainService/outbox design; treat them as a local-SQS smoke-test recipe, not a description of the current schema.
Related
Domain crate:
crates/contactsThe HTTP boundary validates optional signed agent correlation without changing existing authorization.