use std::path::Path;
mod compaction;
mod flow;
mod vm;
mod wound;
pub(super) const AGENT: &str = "20260427T120000Z-aaaa";
pub(super) fn write_msg(ws: &Path, name: &str, bytes: &[u8]) {
let dir = ws.join("agents").join(AGENT).join("messages");
std::fs::create_dir_all(&dir).unwrap();
std::fs::write(dir.join(name), bytes).unwrap();
}
pub(super) fn write_summary(ws: &Path, name: &str, text: &str) {
let dir = ws.join("agents").join(AGENT).join("summary");
std::fs::create_dir_all(&dir).unwrap();
std::fs::write(dir.join(name), text).unwrap();
}
pub(super) fn write_response(ws: &Path, seq: u32, bytes: &[u8]) {
let dir = ws.join("steps").join(AGENT).join(format!("{seq:03}"));
std::fs::create_dir_all(&dir).unwrap();
std::fs::write(dir.join("response.json"), bytes).unwrap();
}