native first

This commit is contained in:
Илья Глазунов
2026-09-05 02:20:11 +03:00
parent 219f35cc04
commit 8beccdf101
40 changed files with 3495 additions and 327 deletions
@@ -0,0 +1,40 @@
public enum TrustStatus: Equatable {
case idle
case listening
case screenContext
case systemAudio
case agentWorking
case paused
case permissionNeeded(String)
case error(String)
public var menuBarTitle: String {
switch self {
case .idle:
return "Mastermind: Idle"
case .listening:
return "Mastermind: Listening"
case .screenContext:
return "Mastermind: Screen"
case .systemAudio:
return "Mastermind: System Audio"
case .agentWorking:
return "Mastermind: Working"
case .paused:
return "Mastermind: Paused"
case .permissionNeeded:
return "Mastermind: Permission"
case .error:
return "Mastermind: Error"
}
}
public var isCapturing: Bool {
switch self {
case .listening, .screenContext, .systemAudio:
return true
case .idle, .agentWorking, .paused, .permissionNeeded, .error:
return false
}
}
}