@clipy/cli 0.15.1 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -570,7 +570,7 @@ By default it captures the primary display. Target one window instead:
570
570
  ```bash
571
571
  clipy sources # list displays + windows with ids
572
572
  clipy session start --source mac-screen --window "Chrome" --title "Fix walkthrough"
573
- # … the agent drives Chrome while Clipy records its initial screen area …
573
+ # … the agent drives Chrome while Clipy records that window by itself …
574
574
  clipy mark "reproduced the bug"
575
575
  clipy mark "fix applied — retesting"
576
576
  clipy session stop # uploads, prints the share link
@@ -616,8 +616,58 @@ of a different tab: worse than no evidence, because the tally vouches for the wr
616
616
  **Clipy will never bring a window or tab to the front for you.** It can't know which
617
617
  tab/page/simulator you mean, and on `--source mac-screen` it may not be recording a browser
618
618
  at all — focusing the right surface is the caller's job. Do it before `session start`, then
619
- confirm with the reported title. (The title and recorded screen area are fixed at start time;
620
- moving the window does not move the recording, and anything entering that area is filmed.)
619
+ confirm with the reported title. (The title is fixed at start time. When the start JSON reports
620
+ `windowCapture: "window"`, a `--window` recording is that window's own pixels: it follows the
621
+ window if it moves and windows on top of it are not filmed, so it need not stay in front, but
622
+ it must show the right tab. `"area"`, from a Clipy app too old to record a window by itself or
623
+ from ffmpeg older than 5.1 on Linux, films whatever is on top of it, so keep it in front.)
624
+
625
+ ## Record the real screen on Linux: a window, a display, or a private screen
626
+
627
+ `--source screen` works on Linux without any Clipy app: the CLI records the X
628
+ display itself with ffmpeg (`x11grab`). The same flag means the Mac app on macOS,
629
+ so an agent can use one spelling everywhere.
630
+
631
+ ```bash
632
+ clipy doctor # the "screen" rows say what this machine can do
633
+ clipy sources --json # displays + windows on $DISPLAY
634
+ clipy session start --source screen --window 2097155 --title "Fix walkthrough"
635
+ clipy mark "reproduced the bug" --observed "Save stays disabled" --verdict fail
636
+ clipy session stop
637
+ ```
638
+
639
+ - **A window** (`--window <id|title|app>`) is that window's own pixels. Under a
640
+ compositor (GNOME, KDE, picom, xcompmgr) a window that is covered still records
641
+ in full and nothing on top of it appears, so the user can keep working. Without a
642
+ compositor the covered part is black. The picture follows the window when it
643
+ moves; a resize starts a new segment that is fitted into the first frame, and a
644
+ closed window ends the take and uploads it. Each of these lands as an `[auto]`
645
+ mark. Listing windows needs `xwininfo` and `xprop` (`sudo apt install x11-utils`);
646
+ capturing by id needs FFmpeg 5.1+, and older builds record the window's area of
647
+ the screen instead (with a warning).
648
+ - **A display** (`--display <id>`, default the first monitor) is that monitor of
649
+ the X screen.
650
+ - **A private screen** (`--virtual-display`, sized by `--width`/`--height`) starts
651
+ an Xvfb display only the agent draws on: the user's screen, cursor and keyboard
652
+ are never involved, which also makes it the way to record GUI work on a server,
653
+ container or CI. `session run` hands the command `DISPLAY`:
654
+
655
+ ```bash
656
+ clipy session run --source screen --virtual-display --width 1600 --height 900 -- \
657
+ sh -c 'chromium --app=http://localhost:3000 & sleep 2; ./drive-the-ui.sh'
658
+ ```
659
+
660
+ It needs `Xvfb` (`sudo apt install xvfb`); with `picom` or `xcompmgr` installed,
661
+ Clipy also starts a compositor on it so covered windows record in full.
662
+ - `--x-display :N` records any other X display, for example one your harness
663
+ already runs.
664
+
665
+ Linux screen recordings are silent; narrate with `clipy mark`. Wayland sessions
666
+ only let an app read the real screen through the desktop's own consent dialog, so
667
+ `--source screen` refuses the real screen there and points at `--virtual-display`
668
+ or `--x-display`. On Windows there is no real-screen path for agents yet: use
669
+ `--source chrome-for-clipy` for a browser tab, `--url` for a headless page, or
670
+ `clipy proof` with your own tool's video or screenshots.
621
671
 
622
672
  ## Scripting
623
673