vtcode-commons 0.98.7

Shared traits for paths, telemetry, and error reporting reused across VT Code component extractions
Documentation
1
2
3
4
5
6
7
8
9
10
pub const STOP_HINT_COMPACT: &str = "Esc stop • Ctrl+C stop • /stop";
pub const STOP_HINT_INLINE: &str = "Esc, Ctrl+C, or /stop to stop";

pub fn with_stop_hint(message: &str) -> String {
    if message.trim().is_empty() {
        STOP_HINT_INLINE.to_string()
    } else {
        format!("{message} ({STOP_HINT_INLINE})")
    }
}