Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
VoiceOver hears what Homebrew's health check and vulnerability scan found
Țugui Dragoș3ed6ccc2108b
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 93d3f840..c501c459 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -50067,6 +50067,346 @@}}},+ "Known vulnerabilities in ^[%lld package](inflect: true)." : {+ "localizations" : {+ "cs" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew našel známé zranitelnosti u %lld balíčků."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew našel známé zranitelnosti u %lld balíčku."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew našel známé zranitelnosti u %lld balíčku."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew našel známé zranitelnosti u %lld balíčků."+ }+ }+ }+ }+ },+ "de" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bekannte Sicherheitslücken in %lld Paket."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bekannte Sicherheitslücken in %lld Paketen."+ }+ }+ }+ }+ },+ "es" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew ha encontrado vulnerabilidades conocidas en %lld de paquetes."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew ha encontrado vulnerabilidades conocidas en %lld paquete."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew ha encontrado vulnerabilidades conocidas en %lld paquetes."+ }+ }+ }+ }+ },+ "fr" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnérabilités connues dans %lld de paquets."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnérabilités connues dans %lld paquet."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnérabilités connues dans %lld paquets."+ }+ }+ }+ }+ },+ "it" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilità note in %lld di pacchetti."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilità note in un pacchetto."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilità note in %lld pacchetti."+ }+ }+ }+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個のパッケージに既知の脆弱性があります。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "패키지 %lld개에 알려진 취약점이 있습니다."+ }+ },+ "nl" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bekende kwetsbaarheden in %lld pakket."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bekende kwetsbaarheden in %lld pakketten."+ }+ }+ }+ }+ },+ "pl" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew znalazł znane luki w zabezpieczeniach w %lld pakietach."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew znalazł znane luki w zabezpieczeniach w %lld pakietach."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew znalazł znane luki w zabezpieczeniach w %lld pakiecie."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew znalazł znane luki w zabezpieczeniach w %lld pakietu."+ }+ }+ }+ }+ },+ "pt" : {+ "variations" : {+ "plural" : {+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilidades conhecidas em %lld de pacotes."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilidades conhecidas em %lld pacote."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilidades conhecidas em %lld pacotes."+ }+ }+ }+ }+ },+ "ro" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilități cunoscute în %lld pachete."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilități cunoscute în %lld pachet."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Vulnerabilități cunoscute în %lld de pachete."+ }+ }+ }+ }+ },+ "ru" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew нашел известные уязвимости в %lld пакетах."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew нашел известные уязвимости в %lld пакетах."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew нашел известные уязвимости в %lld пакете."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew нашел известные уязвимости в %lld пакета."+ }+ }+ }+ }+ },+ "sv" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kända sårbarheter i %lld paket."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Kända sårbarheter i %lld paket."+ }+ }+ }+ }+ },+ "tr" : {+ "variations" : {+ "plural" : {+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakette bilinen güvenlik açıkları var."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld pakette bilinen güvenlik açıkları var."+ }+ }+ }+ }+ },+ "uk" : {+ "variations" : {+ "plural" : {+ "few" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Відомі вразливості в %lld пакетах."+ }+ },+ "many" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Відомі вразливості в %lld пакетах."+ }+ },+ "one" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Відомі вразливості в %lld пакеті."+ }+ },+ "other" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Відомі вразливості в %lld пакета."+ }+ }+ }+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Homebrew发现%lld个软件包存在已知漏洞。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "%lld個套件有已知漏洞。"+ }+ }+ }+ },"Last Opened" : {"localizations" : {"cs" : {diff --git a/Peel/Model/HomebrewLibrary.swift b/Peel/Model/HomebrewLibrary.swiftindex 34e87337..dbd7e89c 100644--- a/Peel/Model/HomebrewLibrary.swift+++ b/Peel/Model/HomebrewLibrary.swift@@ -1,3 +1,4 @@+import Accessibilityimport Foundationimport Observationimport PeelCore@@ -231,9 +232,17 @@ final class HomebrewLibrary {return CommandResult(succeeded: !report.isEmpty, output: report)}findings = found+ // The report fills in a section of the page, which VoiceOver would not notice.+ Self.announce(found.isEmpty+ ? "Homebrew found nothing out of place."+ : "^[\(found.count) finding](inflect: true)")return nilcase .vulnerabilities:- advisories = try await Homebrew.vulnerabilities()+ let report = try await Homebrew.vulnerabilities()+ advisories = report+ Self.announce(report.advisories.isEmpty+ ? "Homebrew found no known vulnerabilities."+ : "Known vulnerabilities in ^[\(report.advisories.count) package](inflect: true).")return nil}return CommandResult(succeeded: true, output: output)@@ -242,6 +251,10 @@ final class HomebrewLibrary {}}+ private static func announce(_ words: LocalizedStringResource) {+ AccessibilityNotification.Announcement(AttributedString(localized: words)).post()+ }+/// Said where Peel leaves upgrades to Terminal because Homebrew would clean up after them.static let cleansUp: LocalizedStringResource = "Homebrew cleans up after every upgrade, deleting old versions for good, so Peel leaves upgrades to Terminal."