spb/poche Public
Agent personnel 100 % on-device — SwiftUI + Apple Foundation Models + EventKit + SwiftData. Aucune API, aucun serveur.
Swift 100%
1//2// PocheContainer.swift3// Poche4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//89import SwiftData1011/// Single ModelContainer for the whole process: the app UI and in-app12/// App Intents must share one container, never open two over the same file.13enum PocheContainer {14 static let shared: ModelContainer = {15 do {16 return try ModelContainer(17 for: Note.self, TaskItem.self, ConversationRecord.self, TurnRecord.self18 )19 } catch {20 // Local store is the only persistence layer; without it the app21 // has no state at all.22 fatalError("Unrecoverable: could not open the local store (\(error))")23 }24 }()25}26