diff --git a/Cargo.toml b/Cargo.toml index 32592a4..274dcb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,15 +4,15 @@ version = "0.1.0" edition = "2024" [dependencies] -reqwest = { version = "0.13.2", default-features = false, features = ["json", "rustls", "multipart"] } +reqwest = { version = "0.13.3", default-features = false, features = ["json", "rustls", "multipart"] } dotenv = "0.15" serde = { version = "1.0", features = ["derive"] } -regex = "1.0" +regex = "1.12" serde_json = "1.0" async-trait = "0.1" thiserror = "2.0.18" -tokio = { version = "1.0", features = ["full"] } -uuid = { version = "1.0", features = ["v4"] } +tokio = { version = "1.52", features = ["full"] } +uuid = { version = "1.23", features = ["v4"] } axum = { version = "0.8", features = ["ws"] } tokio-tungstenite = { version = "0.29.0", features = ["rustls-tls-webpki-roots", "rustls"] } futures-util = "0.3" @@ -26,19 +26,19 @@ anyhow = "1.0" mime_guess = "2.0" base64 = "0.22" tempfile = "3" -cron = "0.15" +cron = "0.16" chrono-tz = "0.10" meval = "0.2" -ratatui = "0.27" -crossterm = { version = "0.28", features = ["event-stream"] } +ratatui = "0.30" +crossterm = { version = "0.29", features = ["event-stream"] } termimad = "0.34" textwrap = "0.16" chrono = "0.4" -hostname = "0.3" +hostname = "0.4" sqlx = { version = "0.8", features = ["sqlite", "macros", "chrono", "runtime-tokio"] } jieba-rs = "0.9" -which = "7" -rmcp = { version = "1.6", default-features = false, features = [ +which = "8" +rmcp = { version = "1.7", default-features = false, features = [ "client", "transport-child-process", "transport-streamable-http-client-reqwest", diff --git a/src/client/tui/components/input_area.rs b/src/client/tui/components/input_area.rs index e396ae0..1b3f643 100644 --- a/src/client/tui/components/input_area.rs +++ b/src/client/tui/components/input_area.rs @@ -16,6 +16,6 @@ pub fn render(f: &mut Frame, area: Rect, app: &App) { let cursor_x = area.x + 1 + app.input_cursor_pos as u16; let cursor_y = area.y + 1; if cursor_x < area.right() && cursor_y < area.bottom() { - f.set_cursor(cursor_x, cursor_y); + f.set_cursor_position((cursor_x, cursor_y)); } } diff --git a/src/client/tui/ui.rs b/src/client/tui/ui.rs index 994e86a..525b345 100644 --- a/src/client/tui/ui.rs +++ b/src/client/tui/ui.rs @@ -6,7 +6,7 @@ use ratatui::{ }; pub fn render_ui(f: &mut Frame, app: &App) { - let size = f.size(); + let size = f.area(); let chunks = Layout::default() .direction(Direction::Vertical) .constraints([