latent.serve.share¶
latent serve --share dev loop (ADR-006 D2/D4, T12b).
Serves the agent locally, opens a cloudflared tunnel for a public URL, registers
that URL with Studio (origin="dev"), and keeps the registration alive via
RegistrationClient.supervise (which always de-registers + tears the tunnel down
on exit). The live path needs a real cloudflared binary + a reachable Studio, so
it is verified by manual smoke; the lifecycle primitive it leans on is integration-
tested in test_serve_supervise.py.
Functions¶
serve_shared¶
serve_shared(make_agent: AgentFactory, name: str, host: str = '127.0.0.1', port: int = 8080, secret: str, version: str = 'dev', manifest: AgentManifest | None = None, _open_tunnel: Callable[[int], Tunnel] = open_tunnel) -> None
Serve make_agent locally behind a cloudflared tunnel, registered as dev.
Blocks until interrupted (Ctrl-C), then de-registers and tears the tunnel down.