SPB Git

spb/zyquo-cloud Public MIT

Native macOS AI chat client for 12 cloud providers — your keys, every cloud model, one beautiful chat.

Swift 97.4% Shell 1.7% Makefile 1%
722 B · 30 lines swift
Raw Blame History
1//2//  AppEnvironment.swift3//  Zyquo Cloud4//5//  Author: Simon-Pierre Boucher6//  Mail: contact@spboucher.ai7//8//  Root dependency container: one instance of each store, created at launch9//  and injected as environment objects.10//1112import SwiftUI1314@MainActor15final class AppEnvironment: ObservableObject {16    let catalog: ModelCatalog17    let vault: KeyVaultStore18    let conversations: ConversationStore19    let appearance: AppearanceStore2021    init() {22        let catalog = ModelCatalog()23        let vault = KeyVaultStore()24        self.catalog = catalog25        self.vault = vault26        self.conversations = ConversationStore(catalog: catalog, vault: vault)27        self.appearance = AppearanceStore()28    }29}30