Discover LAN servers and relay authenticated browser peer connections

This commit is contained in:
2026-11-08 21:57:05 +00:00
parent 89814d9fbe
commit 349428f11d
13 changed files with 1265 additions and 8 deletions
+10
View File
@@ -1265,3 +1265,13 @@ has a 20-second context, bounded Git output/time and file traversal, and at most
100 deletion candidates. Partial scans cannot claim that the storage target has
been reached. Cleanup refusals and limits remain visible rather than discarding
protected data to satisfy a quota.
### LAN server discovery
`{"type":"discover_servers"}` returns `discovered_servers` with a
`discovered_servers` array of `{name,endpoint,auth,version}` records. The server
browses `_pipelines._tcp.local` on its own LAN, with a bounded DNS-SD query; it
does not scan arbitrary ports. An unavailable browse returns a protocol error.
The authenticated web front door exposes the same result at `GET /api/discovery`,
including before the browser has opened its application websocket.