#[cfg(target_os = "linux")]
mod linux;
#[cfg(target_os = "linux")]
pub use linux::execute_terminal_session;
#[cfg(not(target_os = "linux"))]
pub async fn execute_terminal_session(
_cfg: &std::sync::Arc<crate::cm_config::AgentConfig>,
_workspace: &std::path::Path,
_args_json: &str,
_tool_call_id: &str,
_sse_out_tx: Option<&tokio::sync::mpsc::Sender<String>>,
_sse_control_mirror: Option<&crate::cm_sse_protocol::sse::SseControlMirror>,
_allowed_commands: &[String],
_encoder: Option<&dyn crate::cm_sse_protocol::sse::SseEncoder>,
_skip_arg_safety: bool,
) -> String {
"错误:terminal_session 仅支持 Linux。".to_string()
}