Merge upstream/main into fix/control-auth-777

Keep the token check on the first line and the new bounded-line request parsing;
tests authenticate before sending their requests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-10-19 02:03:55 +02:00
co-authored by Claude Sonnet 5.5
26 changed files with 795 additions and 330 deletions
+4
View File
@@ -39,6 +39,10 @@ Then send newline-delimited JSON to `127.0.0.1:7979` (after the `auth` line). Ev
Errors come back as `{"id": …, "ok": false, "error": "…"}`.
A line that is not a JSON object with a string `method` (an HTTP request, text that isn't JSON,
bytes that aren't UTF-8, a line over 64 MiB) gets one error reply and the server closes the
connection; nothing sent after it runs. Blank lines are skipped.
## Methods
| Method | Params | What it does |