4f12b18d63253d6dfeb34da92bc6145159efd9c1
Begins the simultaneous multiplexer. HostConnection.swift is the per-host connection engine lifted out of RemoteStore: one instance owns a single Mac's SyncClient, LAN→tailnet candidate chain, reconnect backoff, tailnet-node lifecycle, and event stream, and keeps that Mac's projection (connectivity, sessions, dashboard, capabilities, meshPeers). It talks back to its owner through a Callbacks struct so aggregate concerns — the badge, Live Activity, notifications, and the single open transcript — can be merged across hosts by the coordinator. Not yet wired: RemoteStore still runs its own inline single-connection machine. The next step swaps RemoteStore onto a `[HostID: HostConnection]` map (connect all paired Macs, aggregate their sessions, route intents by host) — the behavior-critical part, to be verified with two real Macs. Compiles (iOS Simulator BUILD SUCCEEDED); no behavior change yet (the engine is unused until the rewire). Also: RemoteStore.friendlyTransportError made non-private so the engine shares it. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Description
No description provided
2 MiB
Languages
Swift
100%