docs: document pi2 pairing --json

§8.5 said the CLI keeps only the human report; it now also emits the normalised
mint payload that :PiWebPair renders.
This commit is contained in:
yuez committed 2026-10-29 14:11:10 +08:00
1 parent 8a39e65def
commit 7130c69523
1 file changed
+3 -2
+3 -2
View File
@@ -472,8 +472,9 @@ raw module matrix without a quiet zone (`size` strings of `size` `1`/`0` charact
HTTP mint response carries the same matrix, so the console and a terminal draw the same
symbol. A URL too long for version 10 is printed without a QR, with a note.
Machines call `POST /api/v1/pair` directly — that is what `:PiWebPair` does — so the CLI
keeps only this human report; there is no `--json`.
Machines and editor plugins use `--json`, which prints the normalised mint payload
(`{url, code, expiresAt?, qr?, bases[]}`) instead of the human report. `:PiWebPair` in
pi2.nvim renders exactly that payload, so it no longer speaks HTTP itself.
### 8.6 `pi2 install-service` / `pi2 service`