1 2 3 4 5 6 7 8 9 10 11
use std::path::Path; /// Returns the workspace root used by prompt preparation tests. pub(super) fn test_workspace_root() -> &'static Path { Path::new("/tmp/agentty-wt/session-1") } /// Collapses rendered prompt whitespace for semantic assertions. pub(super) fn normalize_prompt(prompt: &str) -> String { prompt.split_whitespace().collect::<Vec<_>>().join(" ") }