Public declaration syntax from harness-tui-kit/src/components/agent/list.rs Original source SHA-256: 21ccd2c53a768924250d8426fee558f6f261d25e8c55fb9d7059b60ff6083d04 Function bodies and constant values are omitted. This is not the complete implementation. Source line 68 #[derive(Debug, Clone)] pub struct AgentList<'a> { } Source line 87 #[must_use] pub fn new(agents: &'a [AgentInfo]) -> Self; Source line 106 #[must_use] pub fn theme(mut self, theme: &'a Theme) -> Self; Source line 130 #[derive(Debug, Clone)] pub struct AgentListState { /// Currently selected agent index (if any). pub selected: Option, /// Scroll offset for the list. pub scroll_offset: usize, /// Optional filter text. pub filter: String, /// Whether to show agents in compact mode. pub compact: bool } Source line 150 #[must_use] pub fn new() -> Self; Source line 175 pub fn select_next(&mut self, total: usize); Source line 200 pub fn select_prev(&mut self, total: usize); Source line 225 pub fn set_filter(&mut self, text: impl AsRef); Source line 234 pub fn clear_filter(&mut self); Source line 243 pub fn toggle_compact(&mut self); Source line 268 #[must_use] pub fn selected_agent<'a>(&self, agents: &'a [AgentInfo]) -> Option<&'a AgentInfo>;