Files
pi2d/scripts
yuez c24f30fe71 fix(e2e): redeem pairing codes at the public endpoint
Both harnesses posted the redeem body to `/api/v1/pair`, which mints a code and
requires a device/CLI token, so `e2e_pair` got a 401 and every run died at
"FATAL: pair redeem failed" before the first scenario. Redeeming is the public
half of pairing (ADR 0001): the code is the capability, and the endpoint is
`POST /api/v1/pair/redeem`, unauthenticated and rate limited.

- `scripts/e2e/lib.sh` and `scripts/e2e/visual.sh` post the `{code, deviceName,
  kind}` body to `/api/v1/pair/redeem`
- the suite reaches A0 again: `run-api.sh` runs A0–A14, `run-ui.sh` B1–B15
2026-11-02 11:11:40 +08:00
..