deepseek-tui 0.8.11

Terminal UI for DeepSeek
1
2
3
4
5
6
7
8
pub const THRESHOLDS: [(f32, &str); 3] = [
    (0.9, "Context at 90%: stop and write handoff to .deepseek/handoff.md now"),
    (0.8, "Context at 80%: draft handoff to .deepseek/handoff.md"),
    (0.7, "Context at 70%: consider wrapping current sub-task"),
];
pub fn threshold_message(ratio: f32) -> Option<&'static str> {
    THRESHOLDS.iter().find(|(t,_)| ratio >= *t).map(|(_,m)| *m)
}