pub fn socket_path_for_session(session_id: &str) -> StringExpand description
Returns the legacy Unix socket path for a session.
Active endpoint clients must read SessionRegistration::socket_path: new
endpoints use bounded generation names, not this pre-publication helper.
Sockets live in the registry dir — $SYNAPS_RUNTIME_DIR when set (e.g.
/run/user/<uid>/synaps), otherwise $SYNAPS_BASE_DIR/run (default
~/.synaps-cli/run/) — which is user-owned and mode 0700, avoiding /tmp
symlink squatting and TOCTOU races.