Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

1.3 KB
Raw Blame
/** Heading over the phone's My notes when both sides changed them while apart; neither text is lost. */
export const FROM_IPHONE = '\n\n## From your iPhone\n\n'

/** What Settings → Phone shows: the paired phone, an open pairing code, or why pairing closed or can't start */
export type CompanionStatus = {
  paired: null | { name: string; lastSeen: number | null }
  pairing: null | { code: string; expiresAt: number; attemptsLeft: number }
  /** why the last pairing closed without a phone: its two minutes ran out, or too many wrong codes (null otherwise) */
  pairingClosed: null | 'expired' | 'tooMany'
  /**
   * keychain: the system keychain wouldn't open this computer's key (off, the pairing kept, until a start where it opens);
   * listen: the server couldn't start listening, so pairing closed (the next start tries again);
   * network: the local network refused the advert (macOS Local Network permission, a firewall), so the phone can't find it
   */
  error: null | 'keychain' | 'listen' | 'network'
  connected: boolean
  syncing: boolean
}

/** The iPhone companion stays off and hidden until the iPhone app ships. YOGURT_PHONE=1 turns it on (dev, tests). */
export const PHONE_COMPANION = false
export const phoneCompanionOn = (env: Record<string, string | undefined>): boolean => PHONE_COMPANION || env.YOGURT_PHONE === '1'