INNER CODE UNIT · TypeScript

getMacOSDesktopAccess

totec448-spec/chat-on-steroids · src/main/computer/index.ts:41

export function getMacOSDesktopAccess(): MacOSDesktopAccessStatus | null {
  return macOSDesktopAccess;
}

export function onMacOSDesktopAccessChange(
  listener: (status: MacOSDesktopAccessStatus) => void
): () => void {
  macOSDesktopAccessListeners.add(listener);
  return () => macOSDesktopAccessListeners.delete(listener);
}

function publishMacOSDesktopAccess(status: MacOSDesktopAccessStatus): void {
  macOSDesktopAccess = status;
  for (const listener of macOSDesktopAccessListeners) listener(status);
}

export type ActionRoute = 'uia' | 'sendinput' | 'focus' | 'shell' | 'local';

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…