41 lines
1.0 KiB
Swift
41 lines
1.0 KiB
Swift
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
|
|
}
|
|
}
|
|
}
|