Skip to main content

codetether_agent/tui/models/
mod.rs

1pub mod view_mode_display;
2pub mod view_mode_help;
3pub mod view_mode_registry;
4
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
8pub enum ViewMode {
9    Chat,
10    Sessions,
11    Swarm,
12    Ralph,
13    Bus,
14    Model,
15    Settings,
16    Lsp,
17    Rlm,
18    Latency,
19    Protocol,
20    FilePicker,
21    Inspector,
22}
23
24#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
25pub enum InputMode {
26    Normal,
27    Editing,
28    Command,
29}
30
31#[derive(Debug, Clone, Serialize, Deserialize)]
32pub struct Theme {
33    pub name: String,
34    pub primary: (u8, u8, u8),
35    pub border: (u8, u8, u8),
36}
37
38impl Default for Theme {
39    fn default() -> Self {
40        Self {
41            name: "Default".to_string(),
42            primary: (0, 255, 255),
43            border: (100, 100, 100),
44        }
45    }
46}
47
48pub use crate::tui::utils::workspace::{WorkspaceEntry, WorkspaceEntryKind, WorkspaceSnapshot};