@react-grab/cli 0.1.40 → 0.1.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-grab/cli",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "bin": {
5
5
  "react-grab": "./bin/cli.js"
6
6
  },
@@ -30,20 +30,23 @@ capture dir; `--text-only` skips the native clipboard reader.
30
30
 
31
31
  Repeat until the user says stop:
32
32
 
33
- 1. Pull the next grabs (blocks up to 20s for one to arrive, then returns):
33
+ 1. Pull the next grab this blocks until one arrives:
34
34
 
35
35
  ```bash
36
- npx grab read --wait 20000
36
+ npx grab read --wait infinite
37
37
  ```
38
38
 
39
- Each line of stdout is one grab as JSON. Empty output means nothing new yet —
40
- just run it again.
39
+ Give the command a long timeout. If your shell cancels it before a grab arrives,
40
+ just run it again — the daemon keeps capturing in the background, so nothing is
41
+ lost. Each line of stdout is one grab as JSON.
41
42
 
42
43
  2. Act on each grab (below).
43
44
  3. Go back to step 1.
44
45
 
45
46
  `read` advances a cursor (`./.react-grab/cursor.txt`), so each grab is delivered
46
- exactly once across calls. Add `--all` to replay the whole history from the start.
47
+ exactly once across calls. Grabs older than ~5 minutes are treated as stale and
48
+ skipped (override with `--max-age <ms>`, or `--max-age 0` to never evict). Add
49
+ `--all` to replay the whole history from the start.
47
50
 
48
51
  ## Gotchas
49
52