Skip to main content

Crate car_integrations

Crate car_integrations 

Source
Expand description

Account-bound integrations for Common Agent Runtime: Calendar, Contacts, Mail.

The logical capabilities are the same on every OS; the backends are not. v1 defines the release contract — stable return shapes that carry explicit available + backend fields so downstream apps can branch cleanly while backends light up incrementally.

§Backends (target)

OSCalendarContactsMail
macOSEventKit (EKEventStore)Contacts.frameworkIMAP/SMTP + AppleScript hint
WindowsMS Graph + Outlook MAPIWindows.Contacts + GraphMS Graph + MAPI
LinuxEvolution DS + CalDAVEvolution DS + CardDAVEvolution DS + IMAP/SMTP

v1 wires the API only. Backends return Unavailable-with-reason so the release surface is stable before any one adapter is complete.

§Dependencies (and honest gaps)

Full operation needs:

  • car-secrets — where credentials and tokens live
  • car-accounts — to know which account the call should be bound to
  • car-permissions — to preflight OS consent before the side effect

These are wired as runtime deps but not yet composed inside any backend implementation.

Modules§

calendar
Calendar capability — list calendars, list upcoming events.
contacts
Contacts capability — enumerate containers, query contacts.
mail
Mail capability — enumerate accounts, summarize inbox, send/draft.

Structs§

Availability
Availability envelope — returned from every list-ish method so callers can branch on available instead of assuming a populated list.

Enums§

IntegrationError