// // HistoryEntry.swift // Zyquo Atlas // // Author: Simon-Pierre Boucher // Mail: contact@spboucher.ai // // A single browsing-history visit (url + title + timestamp + visit count). // Backed by HistoryService; surfaced in the full-text-searchable history view // and "ask AI about my history" (Phase 4.3 spec). Never leaves the device. // import Foundation struct HistoryEntry: Identifiable, Codable, Hashable { let id: UUID var url: String var title: String var lastVisit: Date var visitCount: Int init(id: UUID = UUID(), url: String, title: String, lastVisit: Date = Date(), visitCount: Int = 1) { self.id = id self.url = url self.title = title self.lastVisit = lastVisit self.visitCount = visitCount } var host: String { URL(string: url)?.host ?? url } }