From 7130c6952349fd334fe1a64d8508ca2a1c8495c8 Mon Sep 17 00:00:00 2001 From: yuez Date: Thu, 29 Oct 2026 14:11:10 +0800 Subject: [PATCH] docs: document `pi2 pairing --json` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit §8.5 said the CLI keeps only the human report; it now also emits the normalised mint payload that :PiWebPair renders. --- docs/deployment.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index 5c51027..7b2838f 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -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`