spb/zyquo-agent Public MIT
The autonomous agent that actually operates your Mac — plans, runs real commands, verifies its own work.
Swift 94.7%
Shell 4.1%
Python 0.7%
Makefile 0.5%
1//2// AppUIState.swift3// Zyquo Agent4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//8// Cross-window UI signals: the app-level command set (⌘K palette, ⌘⇧A9// audit log, template browser) publishes here and the views that own the10// corresponding local state react. Counters are used for one-shot requests11// so repeated invocations always fire onChange.12//1314import Combine15import Foundation1617@MainActor18final class AppUIState: ObservableObject {19 /// ⌘K command palette visibility (overlay on the main window).20 @Published var showCommandPalette = false21 /// Template browser sheet visibility (empty state / palette / menu).22 @Published var showTemplateBrowser = false23 /// One-shot request: open the activity drawer on the Audit Log tab (⌘⇧A).24 @Published var auditLogRequest = 025 /// One-shot request: toggle the activity drawer (palette action).26 @Published var drawerToggleRequest = 027 /// One-shot request: toggle the plan panel (palette action).28 @Published var planToggleRequest = 02930 func requestAuditLog() { auditLogRequest &+= 1 }31 func requestDrawerToggle() { drawerToggleRequest &+= 1 }32 func requestPlanToggle() { planToggleRequest &+= 1 }33}34