@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/dist/cli.cjs +88 -32
- package/dist/cli.js +87 -31
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/skills/react-grab/SKILL.md +8 -5
package/package.json
CHANGED
|
@@ -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
|
|
33
|
+
1. Pull the next grab — this blocks until one arrives:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npx grab read --wait
|
|
36
|
+
npx grab read --wait infinite
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
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.
|
|
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
|
|