Files
Z User e45b68bb8b feat: IMAP mail sync with thread-to-contact matching (PRD §6.1)
Real IMAP connection via imapflow library:
- Connects to IMAP server (IMAPFlow, TLS on port 993)
- Fetches recent messages (configurable limit, default 20)
- Extracts: from, fromEmail, subject, date, snippet (200 chars)
- Thread-to-contact matching (PRD §6.1):
  1. Match sender email against persons table
  2. If no person match, extract domain and match against company.website
  3. Returns matchedCompany + matchedPerson for each email
- Audit-logged (action: crm.mailsync:imap)
- Zod validated (host, port, user, password, folder, limit)
- 502 on IMAP connection failure with detail
- 400 on validation failure

Tested: invalid creds → 502 'IMAP connection failed', missing host → 400
2026-10-27 22:50:50 +00:00

1.5 KiB
Executable File

name, colors, typography, rounded, spacing
name colors typography rounded spacing
Agentic
primary secondary success warning danger surface text neutral
#FF5701 #F6F6F1 #16A34A #D97706 #DC2626 #FFFFFF #111827 #FFFFFF
h1 body-md label-caps sourceScale weights
fontFamily fontSize
Playfair Display 2.5rem
fontFamily fontSize
Playfair Display 1rem
fontFamily fontSize
JetBrains Mono 0.875rem
14/16/18/24/32/40 100, 200, 300, 400, 500, 600, 700, 800, 900
sm md
4px 8px
sm md sourceScale
8px 16px 8pt baseline grid

Overview

Conversational AI-first interface with minimal controls, clear outcomes, and delegated task flows for agentic workflows.

Style Foundations

  • Visual style: modern, bold
  • Typography scale: 14/16/18/24/32/40
  • Typography fonts: primary=Playfair Display, display=Playfair Display, mono=JetBrains Mono
  • Typography weights: 100, 200, 300, 400, 500, 600, 700, 800, 900
  • Color palette: surface/subtle layers
  • Spacing scale: 8pt baseline grid

Colors

  • Primary (#FF5701): Token from style foundations.
  • Secondary (#F6F6F1): Token from style foundations.
  • Success (#16A34A): Token from style foundations.
  • Warning (#D97706): Token from style foundations.
  • Danger (#DC2626): Token from style foundations.
  • Surface (#FFFFFF): Token from style foundations.
  • Text (#111827): Token from style foundations.
  • Neutral (#FFFFFF): Derived from the surface token for official format compatibility.