Autonomous AI sales agent powered by Claude Code or Codex. Finds prospects, writes cold emails, sends campaigns, handles replies, books meetings. No API keys needed — runs on your Claude or Codex subscriptions.
Merge remote-tracking branch 'origin/main' into codex/pr12-inbox-fix
Ethanf85d3654381f
diff --cc CHANGELOG.mdindex b74b4c4,73137aa..db180c5--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -9,15 -9,16 +9,25 @@@ minor versions can still change behavio### Added+- **Microsoft 365 mail provider.** Set `channels.email.provider: microsoft` to+ send and read through a Microsoft 365 / Outlook mailbox via Microsoft Graph,+ for domains whose mail lives in Exchange Online (which no longer accepts+ passwords over IMAP). Signs in once with OAuth + PKCE (`harvey microsoft+ auth`; no client secret, no stored password), drafts then sends so the+ Message-ID is known, threads replies with `createReply`, reads the last 7+ days of the inbox without marking anything read, refuses to act as any+ mailbox other than `persona.email`, and holds sending when the inbox can't+ be read. See [docs/microsoft365.md](docs/microsoft365.md).+ - **Optional per-recipient compliance check (Precleared).** Set+ `compliance.precleared.enabled: true` with `sender_country: GB` or `US` to+ have each new recipient checked before the first cold email against UK+ PECR, US CAN-SPAM, Canada's CASL, Germany's UWG and France's rules. Any+ verdict but `ok_to_email` fails that outbox item with the rule and the next+ step. If the check can't be made (daily allowance used up, network down, a+ malformed response), cold emails wait for a later cycle while replies still+ go out. One check per address, cached for 30 days; changing the sender+ country, address source or product description triggers a fresh check. The+ receipt id is logged with each send. Native providers only. Off by default.## [0.3.0] — 2026-10-13diff --cc harvey/config.pyindex 6bb9dca,5095e70..36d866f--- a/harvey/config.py+++ b/harvey/config.py@@@ -238,9 -289,8 +290,11 @@@ class EnvConfig(BaseModel)imap_port: int = 993imap_username: str = ""imap_password: str = ""+ # Microsoft 365 (channels.email.provider: microsoft)+ m365_client_id: str = ""+ m365_tenant_id: str = ""+ # Optional: only used when compliance.precleared.enabled is true.+ precleared_api_key: str = ""def _format_validation_error(e: ValidationError) -> str:@@@ -351,8 -401,7 +405,9 @@@ def load_env() -> EnvConfigimap_port=int(os.getenv("IMAP_PORT", "993").strip() or 993),imap_username=os.getenv("IMAP_USERNAME", "").strip(),imap_password=os.getenv("IMAP_PASSWORD", "").strip(),+ m365_client_id=os.getenv("M365_CLIENT_ID", "").strip(),+ m365_tenant_id=os.getenv("M365_TENANT_ID", "").strip(),+ precleared_api_key=os.getenv("PRECLEARED_API_KEY", "").strip(),)return env