use crate::agent::AgentConfig;
use anyhow::Result;
use std::path::PathBuf;
const UNAVAILABLE: &str = "the ssh broker isn't in this build — it needs the `ssh` cargo feature";
pub fn set_session_broker(
_sock: Option<String>,
_capability: Option<String>,
) -> Result<()> {
Ok(())
}
pub fn reset_session_broker() {}
pub(crate) fn current_session_broker_route() -> Result<(Option<String>, Option<String>)> {
Ok((None, None))
}
pub fn detect_broker_sock() -> Option<String> {
None
}
pub(crate) fn broker_capability_for(_sock: &str) -> Option<String> {
None
}
pub fn chat_via_broker(
_sock: &str,
_cfg: &AgentConfig,
_messages: Vec<serde_json::Value>,
) -> Result<String> {
anyhow::bail!("{UNAVAILABLE}")
}
pub fn keyd_main() -> Result<()> {
anyhow::bail!("mars keyd: {UNAVAILABLE}")
}
pub fn ssh_main(_host: String, _extra: Vec<String>) -> Result<()> {
anyhow::bail!("mars ssh: {UNAVAILABLE}")
}
pub fn broker_socket_path() -> Result<PathBuf> {
anyhow::bail!("{UNAVAILABLE}")
}
pub fn find_live_auth_sock(_dir: &std::path::Path) -> Option<String> {
None
}