feat!(mac): move screenshot to ui
This commit is contained in:
@@ -23,7 +23,7 @@ Run the Node-based Clawdis/clawdis gateway as a direct child of the LSUIElement
|
||||
## TCC guardrails (must keep)
|
||||
- Screen Recording, Accessibility, mic, and speech prompts must originate from the Swift app/XPC. The Node child should never call these APIs directly; use the existing XPC/CLI broker (`clawdis-mac`) for:
|
||||
- `ensure-permissions`
|
||||
- `screenshot` / ScreenCaptureKit work
|
||||
- `ui screenshot` / ScreenCaptureKit work
|
||||
- mic/speech permission checks
|
||||
- notifications
|
||||
- shell runs that need `needs-screen-recording`
|
||||
|
||||
@@ -106,14 +106,14 @@ Current state:
|
||||
The visualizer is intentionally display-only (no clickable overlays needed).
|
||||
|
||||
## Screenshots (legacy → Peekaboo takeover)
|
||||
Clawdis currently has a legacy `screenshot` request returning raw PNG bytes in `Response.payload`.
|
||||
Clawdis uses `clawdis-mac ui screenshot` and returns a file path (default location: temp directory) instead of raw image bytes.
|
||||
|
||||
Migration plan:
|
||||
- Replace capture implementation with PeekabooAutomationKit’s capture service so we share:
|
||||
- per-screen mapping
|
||||
- window/app targeting
|
||||
- visual feedback (flash / watch HUD) when enabled
|
||||
- Prefer writing images to a file path on the app side and returning the path (text-friendly), with `--json` providing the structured metadata.
|
||||
- Keep writing images to a file path on the app side and returning the path (text-friendly), with `--json` providing the structured metadata.
|
||||
- No aliases: remove the old `Request.screenshot` and introduce a new `Request.uiScreenshot` (or similar) so the new behavior is explicit and there’s no “legacy mode” to maintain.
|
||||
|
||||
## Permissions behavior
|
||||
|
||||
Reference in New Issue
Block a user