latent.serve.tunnel¶
cloudflared quick-tunnel for latent serve --share (ADR-006 D2, T12a).
Spawns cloudflared tunnel --url http://127.0.0.1:<port> and parses the
https://*.trycloudflare.com URL it prints, so a dev's local agent gets a
public HTTPS URL to advertise to Studio. The tunnel process is owned by the
returned :class:Tunnel; close() tears it down on shutdown.
Classes¶
Tunnel¶
A running cloudflared tunnel: its public url and the owning process.
Functions¶
open_tunnel¶
Start a cloudflared quick-tunnel to port and return it once the URL appears.
Raises RuntimeError if cloudflared is missing or never announces a URL.
parse_tunnel_url¶
Return the trycloudflare URL in line, or None if absent.
require_cloudflared¶
Return the cloudflared path, or raise with an install hint if absent.
which is the injectable lookup seam (defaults to shutil.which).