feat(mac): add automation permission

This commit is contained in:
Peter Steinberger
2025-12-07 02:34:21 +01:00
parent 2e67c5a045
commit ea37ee6cb3
4 changed files with 10 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ struct PermissionRow: View {
private var title: String {
switch self.capability {
case .appleScript: "Automation (AppleScript)"
case .notifications: "Notifications"
case .accessibility: "Accessibility"
case .screenRecording: "Screen Recording"
@@ -89,6 +90,8 @@ struct PermissionRow: View {
private var subtitle: String {
switch self.capability {
case .appleScript:
"Control other apps (e.g. Terminal) for automation actions"
case .notifications: "Show desktop alerts for agent activity"
case .accessibility: "Control UI elements when an action requires it"
case .screenRecording: "Capture the screen for context or screenshots"
@@ -99,6 +102,7 @@ struct PermissionRow: View {
private var icon: String {
switch self.capability {
case .appleScript: "applescript"
case .notifications: "bell"
case .accessibility: "hand.raised"
case .screenRecording: "display"

View File

@@ -3,6 +3,8 @@ import Foundation
// MARK: - Capabilities
public enum Capability: String, Codable, CaseIterable, Sendable {
/// AppleScript / Automation access to control other apps (TCC Automation).
case appleScript
case notifications
case accessibility
case screenRecording