Skip to main content

http_addr_path

Function http_addr_path 

Source
pub fn http_addr_path() -> Option<PathBuf>
Expand description

Path to ~/.trusty-memory/http_addr — the canonical address-discovery file.

Why: clients (CLI, MCP tools, dashboards) need to find the running daemon without configuration when the port was selected dynamically. Mirrors trusty-search’s ~/.trusty-search/http_addr contract so the two tools share a single discovery convention. What: returns $HOME/.trusty-memory/http_addr, or None if $HOME is unresolvable (locked-down container, no passwd entry). Test: http_addr_path_uses_dot_trusty_memory.