Skip to content

CLI improvements: status/json/wait, config flags, agent installer, CI - #8

Merged
say-michael merged 1 commit into
mainfrom
feature/cli-improvements
Jul 9, 2026
Merged

CLI improvements: status/json/wait, config flags, agent installer, CI#8
say-michael merged 1 commit into
mainfrom
feature/cli-improvements

Conversation

@say-michael

Copy link
Copy Markdown
Owner

Implements the seven improvement issues opened for this project. Built and smoke-tested against the live SidecarCore framework on macOS 26 (read-only commands verified against a real connected iPad; connect/disconnect not exercised to avoid dropping the live Sidecar session).

What's in here

Testing

list        → ● Michael's iPad
list --json → [{ "connected": true, "identifier": "83D8...", "name": "Michael's iPad" }]
status      → ● Michael's iPad — connected   (exit 0)
status Foo  → No matching Sidecar device     (exit 3)

Plist validated with plutil -lint; make install-agent dry-run (make -n) confirmed correct path substitution. README updated.

🤖 Generated with Claude Code

Implements the device-matching fix and feature set tracked in #1#7:

- Match devices by identifier() (an NSUUID) instead of display name, fixing
  list dedup and matching for same-named devices. (#1)
- Add --wait <seconds> to poll for device discovery before acting, making the
  login auto-connect path reliable. (#2)
- Add `status [name]` command: exit 0 if connected, 3 if not; --json supported. (#3)
- Add --json output for `list` (name, identifier, connected). (#4)
- Add `make install-agent` / `uninstall-agent` and a correct plist template in
  dist/ (fixes the old filename typo); replaces the manual launchctl steps. (#5)
- Add `version`/--version, --quiet, and a macOS CI build/smoke-test workflow. (#6)
- Add --no-sidebar / --no-touchbar via connectToDevice:withConfig:; the live
  SidecarCore API exposes sidebar/touchbar config rather than a mirror/extend
  toggle (that's a CGDisplay concern). (#7)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@say-michael
say-michael merged commit d15bcbe into main Jul 9, 2026
1 check failed
@say-michael
say-michael deleted the feature/cli-improvements branch July 9, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment