native macOS codings agent orchestrator prowl.onev.cat
Something went wrong. Try again.
779 B · 30 lines
Swift
12345678910111213141516171819202122232425262728293031nonisolated struct AgentScreenRuleID: Equatable, Hashable, Sendable { let rawValue: String
nonisolated init(_ rawValue: String) { precondition(!rawValue.isEmpty, "Agent screen rule IDs must not be empty.") self.rawValue = rawValue }}
nonisolated enum AgentScreenDetectionReason: Equatable, Sendable { case matched(AgentScreenRuleID) case noRuleMatched case legacyDetector
nonisolated var identifier: String { switch self { case .matched(let ruleID): return ruleID.rawValue case .noRuleMatched: return "fallback.noRuleMatched" case .legacyDetector: return "legacy.detector" } }}
nonisolated struct AgentScreenDetection: Equatable, Sendable { let state: AgentRawState let reason: AgentScreenDetectionReason}