import SwiftUI /// Menu-bar-only app entry point. /// /// `LSUIElement` (set in Info.plist) keeps the app out of the Dock; the /// `MenuBarExtra` scene provides the status-bar item and its panel. Phase 0 only /// wires up permissions, settings, and a backend health check — no audio, /// capture, or call detection yet. @main struct Ten31TranscriptsApp: App { @NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate @StateObject private var settings: AppSettings @StateObject private var permissions = PermissionsManager() @StateObject private var health = SparkControlHealth() @StateObject private var session: SessionController init() { let settings = AppSettings() _settings = StateObject(wrappedValue: settings) _session = StateObject(wrappedValue: SessionController(settings: settings)) } var body: some Scene { MenuBarExtra { MenuBarView() .environmentObject(settings) .environmentObject(permissions) .environmentObject(health) .environmentObject(session) } label: { Image(systemName: session.state == .recording ? "waveform.circle.fill" : "waveform.circle") } .menuBarExtraStyle(.window) } }