cueward-adapter-macos 0.2.0

macOS adapter for Cueward with Safari, Notes, Messages, Reminders, Calendar, Screenshot, Clipboard, and OCR integrations.
Documentation
pub mod applescript;
pub mod bookmarks;
pub mod calendar;
pub mod clipboard;
mod error;
mod messages;
mod notes;
pub mod ocr;
pub mod plan;
pub mod quick_notes;
pub mod reminders;
pub mod safari;
mod safari_guard;
pub mod screenshot;
pub mod send;

pub use error::MacosError;

use chrono::{DateTime, Utc};
use cueward_core::{Cue, PlatformAdapter};

pub struct MacosAdapter;

impl PlatformAdapter for MacosAdapter {
    type Error = MacosError;

    fn capture_browser_history(&self, since: DateTime<Utc>) -> Result<Vec<Cue>, Self::Error> {
        safari::capture(since)
    }

    fn capture_notes(&self, since: DateTime<Utc>) -> Result<Vec<Cue>, Self::Error> {
        notes::capture(since)
    }

    fn capture_messages(&self, since: DateTime<Utc>) -> Result<Vec<Cue>, Self::Error> {
        messages::capture(since)
    }
}