Skip to content

Update brew extension - #31164

Merged
raycastbot merged 9 commits into
raycast:mainfrom
chrismessina:ext/brew
Sep 21, 2026
Merged

raycastbot merged 9 commits into
raycast:mainfrom
chrismessina:ext/brew

Conversation

@chrismessina

@chrismessina chrismessina commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds support for the features Homebrew 7 exposes, plus previews that let you see what a command would do before running it. Two new commands, five additions to existing ones, and a retrofit of some pre-existing issues in the extension.

Everything that needs Homebrew 7 sits behind a shared version gate, so a machine on Homebrew 6 gets an explanatory empty state with an Update Homebrew action rather than a failure. Every mutating action routes through one confirmation that shows the exact commands before running them.

New commands

  • Show Vulnerabilities — installed formulae with open OSV advisories from brew vulns, severity-tinted, with per-advisory detail and an Upgrade action where the formula is also outdated. Requires Homebrew 7.
image
  • Run Doctor — the brew doctor report, with every command brew recommends runnable behind one confirmation. It keeps going after a failure and summarises what did not apply, rather than stopping at the first error. Remediations that need sudo work through the extension's existing askpass helper. Requires Homebrew 7.
image

Additions to existing commands

  • Preview Install (⌘⇧I) on a package you have not installed, and Preview Upgrade (⌘⌥I) on one that is outdated, show what brew install --dry-run or brew upgrade --dry-run would actually do. Preview Upgrades (⌘⇧I) in Show Upgrades does the same for everything outdated, with each package's download size, the total, and any warning brew raises. Each row deep-links to that package's details.
Preview Install Preview Upgrade Preview Upgrades
  • Show Installed separates the packages you asked for from their dependencies, and tags a dependency nothing else needs.
  • Search marks packages brew would refuse to install on this Mac — disabled, Linux-only, or the wrong macOS version or architecture — says why in the sidebar, and withholds Install for them.
  • Cask details gain a Languages row for casks that ship language variants.
Firefox with Languages row
  • Installed casks that own symlinks gain Link Cask and Unlink Cask, each previewing the exact symlinks before it confirms. Requires Homebrew 7.

Fixes to existing behaviour

  • Nine failure toasts showed an error with no way to copy it. Each now carries the extension's existing Copy Logs action, in the secondary slot where a real remedy already holds primary.
  • Keyboard.Shortcut.Common.CopyName resolves to ⌘⌥C, which collided with a hand-written ⌘⌥C in all four package action panels. The URL copies keep the constant; the command copies moved.
  • Paging gained explicit first-page and last-page bindings, since the shared constants resolve to different keys than intended.

Dependencies

stream-json 1 → 3 and stream-chain 3 → 4, which are ESM and resolve through their exports maps, hence the tsconfig change; type resolution only, ray build still emits CJS. vitest 3 → 4. The chunked cache was rebuilt from scratch against the new stream-json and verified end to end.

Credit

The upgrade-action changes are @nhojb's, from #31099, incorporated here with (soon) his knowledge; they are attributed in the CHANGELOG. If #31099 merges first, this branch rebases onto it.

Test suite is at 252, covering the new parsers against real captured brew output.

Checklist

  • I read the extension guidelines
  • I read the documentation about publishing
  • I ran npm run build and tested this distribution build in Raycast
  • I ran npm run lint and npx tsc --noEmit — both clean
  • I checked that this change does not break existing commands or remove functionality
  • I updated CHANGELOG.md per the changelog conventions

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: brew Issues related to the brew extension extension fix / improvement Label for PRs with extension's fix improvements OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants