// // PocheContainer.swift // Poche // // Author: Simon-Pierre Boucher // Contact: contact@spboucher.ai // import SwiftData /// Single ModelContainer for the whole process: the app UI and in-app /// App Intents must share one container, never open two over the same file. enum PocheContainer { static let shared: ModelContainer = { do { return try ModelContainer( for: Note.self, TaskItem.self, ConversationRecord.self, TurnRecord.self ) } catch { // Local store is the only persistence layer; without it the app // has no state at all. fatalError("Unrecoverable: could not open the local store (\(error))") } }() }