Skip to content

v0.5.1 — zoom when a guess is not enough

Choose a tag to compare

@bfortunato bfortunato released this 23 Sep 08:00
· 3 commits to main since this release

`screenshot` can now crop and magnify around a guessed point, not just a tree node:

```bash
use-computer screenshot --x 860 --y 420 # 200x200 around a guess (--radius 100)
use-computer screenshot --x 860 --y 420 --zoom 4 # and magnified
```

This is the case `--of` cannot reach: a canvas, a map, a game, a VNC session -- no tree to crop to. A screenshot there is usually downscaled before a vision model sees it, so a coordinate it hands back is a guess at the shrunk scale, and turning it into a real pixel means multiplying by a resize factor nothing prints anywhere -- exactly the arithmetic a click goes wrong on. The result carries the crop's pre-zoom box and the zoom factor, so converting a point read off the zoomed picture back to a screenshot coordinate is one division and one addition instead.

It is a tool for the guesses that need it, not a mandatory stage of the ladder: a small or crowded target, a click that already missed, a guess not worth trusting as it stands. Most rung-three clicks still go straight from a guess to a click, and the skill teaches it that way.

Also in this release

A mistyped command such as `use-computer bad-command --help` was silently rewritten into `batch bad-command --help` and showed batch's help -- or, without `--help`, failed with a file-not-found for a file nobody meant -- with nothing anywhere saying `bad-command` was never a recognised command. The default-command rewrite now only fires for an actual batch source, `-` or a path that exists; anything else reaches typer's own dispatch, which says plainly `No such command 'bad-command'.` (BUG-021)