Repository navigation
Add pods-control extension - #32521
Conversation
- fix: classify CLI failures from the JSON error token (raycast#34) - test: merge Vitest projects into unit and integration (raycast#33) - docs: explain code that needs outside context (raycast#31) - refactor: use one subtitle operation lock (raycast#30) - docs: explain why subtitle updates need locks and revisions (raycast#29) - test: bring the suite in line with TESTING.md (raycast#28) - test: remove a setup view absence check that cannot fail (raycast#26) - docs: align TESTING.md with workflow testing principles (raycast#25) - test: drop unused Raycast mock exports (raycast#24) - docs: add AGENTS.md pointing agents to the glossary and docs (raycast#22) - refactor: adopt glossary terms for modes and CLI setup (raycast#21) - docs: rewrite README and refresh the store screenshot (raycast#20) - fix: leave Adaptive out of the cycle defaults - chore: bump Prettier to 3.9.10 (raycast#19) - chore: bump Vitest to 5.0.5 (raycast#17) - chore: bump happy-dom to 20.14.6 (raycast#18) - chore: bump ESLint to 10.13.0 (raycast#16) - chore: bump @types/node to 24.19.2 (raycast#15) - chore: bump @raycast/api to 2.8.2 (raycast#14) - test: expect the default subtitle when status is unavailable (raycast#13) - feat: order cycle listening mode preferences by device (raycast#12) - chore: index CLI aliases in command keywords (raycast#11) - chore: prepare store metadata, search keywords, and default subtitle (raycast#9) - chore: bump Raycast packages, Prettier, and Node 24 types (raycast#8) - refactor: wrap the pods-control CLI (raycast#7) - refactor: move device state types into src/features - docs: point contributing links at the renamed GitHub repo (raycast#5) - refactor: rename the extension to Pods Control (raycast#4) - docs: add contributing guide for this repo and raycast/extensions (raycast#3) - docs: simplify README, changelog, and contributor docs (raycast#2) - docs: remove submission working notes (raycast#1) - chore: treat this repository as the canonical local source - Drop Refresh from installing and up-to-date setup screens - refactor: describe Manage CLI screen bodies as paragraphs - fix: name the AirPods Control CLI on remaining setup screens - fix: show installed CLI details after Homebrew setup - fix: explain Homebrew and manual CLI updates in Manage CLI - refactor: declare Manage CLI action groups per screen - refactor: describe Manage CLI screens as data - chore: bump @raycast/api to 2.4.1 and Vitest to 5.0.1 - fix: keep Manage CLI browser links in the docs group - fix: keep source install off the Homebrew install screen - fix: pick the Homebrew recovery that fits the CLI install - fix: keep Manage CLI GitHub above Refresh on every view - fix: label CLI status as install method - fix: group Manage CLI GitHub action with docs - fix: call the helper the CLI in Manage setup - fix: clarify unlinked Homebrew helper setup - fix: send missing developer tools setup to Apple\'s official docs - fix: send missing Homebrew setup to the official install site - fix: point developer tools setup at Apple\'s install docs - refactor: move CLI setup into src/setup and drop the setup- filename prefix - fix: simplify Manage Helper actions so recovery stays obvious - feat: explain Homebrew and helper install steps in setup views - fix: show Manage Helper actions only for the current setup state - fix: use one developer tools recovery screen for missing and unavailable toolchains - feat: treat the helper pin as a minimum, not the latest - feat: show helper version status instead of always offering an update - feat: compare installed helper versions during setup detection - feat: add helper version and latest-release queries - refactor: update presentation symbols for listening modes and conversation awareness - docs: document local testing conventions for this extension - test: fail unexpected console logs and enforce test conventions - test: separate unit and platform integration suites - test: assert independent outcomes across complete workflows - test: use flat given-when-then cases with isolated mocks - test: introduce explicit setup fixtures and testing conventions - docs: document architecture and enforce module boundaries - refactor: move helper setup lifecycle and view behind entrypoint - refactor: separate controls status feedback and subtitle workflows - refactor: separate CLI discovery protocol and transport - refactor: isolate command contracts and owned definitions - refactor: organize AirPods extension by responsibility - Refine AirPods control locking and state handling - Bump ESLint to 10 and switch import ordering to import-x. - Bump TypeScript to 6 so Raycast lint stays on a supported compiler with Node globals. - Bump Vitest to 5 so the test toolchain stays on the current major. - Bump happy-dom and @types/node to the latest in-range patches. - Handle disconnected AirPods status refresh - Refactor AirPods control commands to publish confirmed states after actions - Update AirPods control symbols for consistency and clarity - Refresh AirPods subtitles after control and compact the status line - Coordinate combined AirPods status subtitle refresh - Stabilize concurrent Homebrew lock status checks - chore: remove subtitle from listening mode commands for consistency - chore: update command titles and keywords for improved clarity and functionality - chore: refine command search metadata - docs: document verification and runtime changes - test: cover all runtime entrypoints - refactor: model helper setup lifecycle explicitly - fix: supervise Homebrew operations through cleanup - fix: order subtitle refreshes and reconcile state - fix: validate helper responses and retain diagnostics - Clarify AirPods Control helper setup and management - Remove temporary CLI setup mocks - feat: improve CLI setup recovery flow - fix: prioritize Homebrew CLI install instructions - feat: integrate CLI setup and add update command - fix: keep Raycast open for command confirmations - docs: finalize submission checklist and validation evidence - fix: make CLI installation retryable and lifecycle safe - docs: align command copy with supported CLI behavior - fix: handle current AirPods CLI error responses - chore: patch vulnerable build and test dependencies - chore: update Raycast API and utilities to 2.3.1 - fix: honor selected listening modes when cycling - fix: keep the default installer navigation title - fix: report failed status subtitle refresh launches - chore: remove unused terminal icon - docs: explain CLI requirements compatibility and provenance - fix: reject inherited CLI listening mode values - docs: record submission audit and manual checklist - Add AirPods Control extension
|
Congratulations on your new Raycast extension! 🚀 We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. Once the PR is approved and merged, the extension will be available on our Store. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds Pods Control, which uses a locally installed CLI to control listening modes and Conversation Awareness.
Reviews (5) · Last reviewed commit: "Update CHANGELOG.md and optimise images" · Reviewed by Greptile |
- fix: include CLI diagnostics in the copied error (raycast#40) - fix: wait for setup detection before polling again (raycast#37) - fix: force-kill a CLI that ignores the timeout (raycast#39) - fix: keep Off advice off generic cycle failures (raycast#38) - fix: use generated Raycast preference types (raycast#35) - fix: require a compatible CLI before the ready toast (raycast#36)
- test: expect copied CLI details in control workflows (raycast#41) - docs: set the license copyright to raulgg
0xdhrv
left a comment
There was a problem hiding this comment.
Hey @raulgg 👋
Thanks for your contribution 🔥 The Manage CLI flow is really well done. It checks for Homebrew and Apple's developer tools, asks before installing, and explains every recovery step, and the README is clear about what the CLI does and how much it can be trusted.
Here's everything I found in this pass:
Blocking
- Please remove
AGENTS.mdfrom the extension. It's instructions for coding agents, and Store users don't need it. You can keep it in your own repo. - Please remove the contributor docs
ARCHITECTURE.md,CONTRIBUTING.md,GLOSSARY.mdandTESTING.md. They're for people working on the code, not Store users, so they fit better in your GitHub repo. - Please remove the tests:
- the 23 test files under
src/:src/cli/client.test.ts,src/cli/discovery.test.ts,src/cli/transport.test.ts,src/cli/version.test.ts,src/commands/launch-context.test.ts,src/commands/manifest.test.ts,src/controls/control-operation.test.ts,src/controls/delegate-listening-mode.test.ts,src/cycle-listening-mode.test.ts,src/features/presentation.test.ts,src/feedback/toast-manager.test.ts,src/homebrew/commands.test.ts,src/pods-status.test.ts,src/set-listening-mode.test.ts,src/setup/detection.test.ts,src/setup/developer-tools.test.ts,src/setup/guard.test.ts,src/setup/installation.test.ts,src/setup/latest-release.test.ts,src/setup/navigation.test.ts,src/setup/screens.test.ts,src/setup/view.test.tsx,src/toggle-conversation-awareness.test.ts - the whole
src/test/folder (console.ts,fixtures/,integration/,mocks/)
- the 23 test files under
- Please remove the test config
vitest.config.ts. - Please drop the test scripts (
test,test:watch,test:ui,test:coverage,test:unit,test:integration) and the test-only devDependencies (vitest,@vitest/coverage-v8,@vitest/ui,happy-dom,react-dom,@types/react-dom) frompackage.json, then regeneratepackage-lock.json. - There's only one screenshot (
metadata/pods-control-1.png). Please add at least one more, ideally two, taken with Window Capture → Save to Metadata. The Manage CLI screens and a success toast are good candidates.As mentioned in our docs here ↗
Optional (no action needed to merge)
pods-control-1.png shows the text caret in the search bar and another extension's command ("Confetti") in the Favorites row at the bottom. A retake without them would keep the shot focused on Pods Control.
Feel free to reach me here or on Slack if anything is unclear.
|
Thank you so much for the review @0xdhrv! I will remove the Could you help me understand why the tests and the contributor docs can't stay in this repo? I use the tests to maintain the extension and the docs help others understand the code and architecture before committing changes. Someone who forks the extension from Raycast gets I can condense the docs into a single file, or simplify them, if the number or size of the files is the issue. But I would still like to keep some of them. I haven't found anything in the guidelines against adding tests or documentation files to the source code. AFAIK these files aren't bundled into the build that store users install. I would appreciate it if you could point me to any newer guidelines on this, or tell me the specific reasons you need these files removed as I may be missing some important context. Thank you! |
## Summary - Move everything the Store ships into `extension/`. Run every script from the repository root: `npm run dev`, `build`, `publish`, and `pull-contributions` run in `extension/` for you. - Move all 39 test files to `tests/`, and the test tooling to a new private root `package.json`. `npm install` at the root also installs the extension through `postinstall`. `extension/package.json` loses the test scripts and test-only dependencies, and its lockfile is regenerated. - Keep `AGENTS.md` and the contributor docs at the root, and add a short `extension/CONTRIBUTING.md` that links to the full guide. - Trim `extension/.gitignore` to what a fork from the Raycast extensions repository needs, and link the one reference that points outside `extension/` to this repository. ## Why The review of raycast/extensions#32521 asks to remove the tests, test dependencies, and contributor docs from the extension folder. Raycast's CI does not run extension tests, and test dependencies add to the lockfile and to the dependency scan on later pull requests. `ray publish` has no exclude option and copies the folder it runs in, so files outside `extension/` never reach the Store and nothing has to be stripped at publish time. Raycast named `CONTRIBUTING` among the files to remove. The short `extension/CONTRIBUTING.md` is deliberate, so contributors in the Raycast extensions repository can find the guide. If the reviewer objects, delete it and republish. ## Testing - [x] `npm run build`, `npm test` (374 of 374, same as `main`), `npm run type-check`, `npm run lint`, Prettier - [x] Fresh clone with `npm install` at the root, which also installs the extension through `postinstall` - [x] Shuffled test order, seed 8123, before the last 3 commits - [x] `extension/` copied on its own: `npm install`, `ray build`, and `ray lint` pass and leave `git status` clean - [x] Lint guards fire: production importing tests, and console spies in tests - [x] `npm run publish -- --help` and `npm run pull-contributions -- --help` reach the CLI from the root - [x] `@raycast/api` 2.10.1 matches 2.8.2 on the publish copy list and commit steps - [x] `npm run dev`, and the commands in Raycast on a real device - [ ] `npm run publish` removes the files from the Store pull request
- docs: add a second Store screenshot and refresh the first - docs: reword the root and extension READMEs (raycast#49) - docs: add a pull request template and describe the Quality workflow (raycast#47) - ci: run unit and integration tests in the Quality workflow (raycast#46) - ci: add the Quality workflow for format, lint, and type checks (raycast#45) - docs: explain how a view test opts in to happy-dom (raycast#44) - fix: run every test file in tests/integration (raycast#43) - refactor: move the extension into a subfolder (raycast#42)
|
@0xdhrv I trimmed the PR, and the tests and docs now live only in my development repository. However, as we discussed on Slack, I’ve kept a short CONTRIBUTING.md file to help potential contributors find the full repository, which contains the tests that help maintain the quality of the extension. Let me know if further updates are needed. |
0xdhrv
left a comment
There was a problem hiding this comment.
Hey @raulgg 👋
Thanks for your contribution 🔥
We already have an extension in the Store that covers AirPods listening-mode and Conversation Awareness control:
Both let users switch Off / Transparency / Adaptive / Noise Cancellation and toggle Conversation Awareness on connected AirPods. What this PR adds on top is the Homebrew-managed pods-control CLI (API reads instead of Sound-menu AppleScript), dedicated Set / Cycle commands, confirmed-mode subtitles via Pods Status, Manage CLI setup, and exploratory Beats support when macOS exposes the same controls.
Could we add the CLI-backed control, status subtitles, and Manage CLI work to AirPods Noise Control instead (and loop in @chrahe)? That keeps users in one place and makes them easier to discover. See Contribute to an Extension. If there's a workflow that can't fit there, let me know which one and we can talk it through.
This would help avoid duplication and keep AirPods listening-mode control consolidated in one extension.
As mentioned in our extension guidelines here ↗
Feel free to reach me here or on Slack if anything is unclear.
|
Hi @0xdhrv! Thank you for your comment. I'm aware of the AirPods Noise Control extension, I have used it and this PR's description already mentions it and explains how they are different and why it is worth keeping as a separate extension. I initially considered integrating pods-control CLI into that extension, but doing it without breaking how the extension works for the current users seemed quite messy. I don't want to completely change that extension for users who are happy with how it works today. Pods Control is a different approach, which depends on the CLI install and provides features such as reading the current status of the users' AirPods or Beats; and other features to come in the future that the current one can't support. While I understand the reasons for keeping similar features under a single extension for discoverability, I think it’s beneficial in this specific case to keep them separate. Some users may not want to have to install the CLI, and being too aggressive on the integration of the CLI in the existing extension may break the workflow for current users, while trying to support both paths will lead every existing command to grow a second implementation, making it harder to maintain. Ultimately it is your decision to accept Pods Control as a separate extension. If it isn't accepted I'll likely abandon it here for now to avoid changing the whole behavior of an extension that's likely working well for other users as it is today. |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Pods Control changes the listening mode and Conversation Awareness on the device connected to your Mac, from Raycast. Command subtitles show the confirmed state, so you can check the listening mode without running a command.
This is an alternative to AirPods Noise Control. That extension drives the Sound menu, so it needs a menu position, a model, and a localized menu name. It can break when you change devices or connect more than one. Pods Control uses the pods-control CLI that operates macOS' APIs to control different modes on the connected AirPods or Beats, this also allows use to do real reads of the current status and allow smooth mode transitions without flashing menu UIs opening.
Beats work when macOS exposes the same controls. Only AirPods Pro has been tested. Other models are exploratory. See the compatibility notes.
Pods Control has eight command entrypoints in
src/, one for each command in the table. The no-view commands call the pods-control CLI and show the confirmed state in a toast, a HUD, or subtitles. Manage CLI is the only command with a view, and it is where CLI setup happens. The extension does not bundle the CLI. Homebrew installs it fromraulgg/tap/pods-controlafter you confirm. The minimum CLI version is v0.5.0. The CLI talks to the audio interfaces macOS exposes. See SECURITY.md for how that access works.Tested on AirPods Pro with macOS 27.0.1, using a distribution build.
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder