//! OS hook — shell tool for agents.
usestd::fmt::Write;pubmodedit;pubmodread;pubmodtool;/// Build an `<environment>` XML block with OS info.
pubfnenvironment_block()-> String{letmut buf =String::from("\n\n<environment>\n");let_=writeln!(buf,"os: {}",std::env::consts::OS);
buf.push_str("</environment>");
buf
}