fix(dependencies): update reqwest, regex, tokio, uuid, cron, ratatui, crossterm, hostname, and which versions; improve input area cursor positioning

This commit is contained in:
xiaoxixi 2026-05-13 22:51:16 +08:00
parent db24d42076
commit c92b07f2c6
3 changed files with 12 additions and 12 deletions

View File

@ -4,15 +4,15 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [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" dotenv = "0.15"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
regex = "1.0" regex = "1.12"
serde_json = "1.0" serde_json = "1.0"
async-trait = "0.1" async-trait = "0.1"
thiserror = "2.0.18" thiserror = "2.0.18"
tokio = { version = "1.0", features = ["full"] } tokio = { version = "1.52", features = ["full"] }
uuid = { version = "1.0", features = ["v4"] } uuid = { version = "1.23", features = ["v4"] }
axum = { version = "0.8", features = ["ws"] } axum = { version = "0.8", features = ["ws"] }
tokio-tungstenite = { version = "0.29.0", features = ["rustls-tls-webpki-roots", "rustls"] } tokio-tungstenite = { version = "0.29.0", features = ["rustls-tls-webpki-roots", "rustls"] }
futures-util = "0.3" futures-util = "0.3"
@ -26,19 +26,19 @@ anyhow = "1.0"
mime_guess = "2.0" mime_guess = "2.0"
base64 = "0.22" base64 = "0.22"
tempfile = "3" tempfile = "3"
cron = "0.15" cron = "0.16"
chrono-tz = "0.10" chrono-tz = "0.10"
meval = "0.2" meval = "0.2"
ratatui = "0.27" ratatui = "0.30"
crossterm = { version = "0.28", features = ["event-stream"] } crossterm = { version = "0.29", features = ["event-stream"] }
termimad = "0.34" termimad = "0.34"
textwrap = "0.16" textwrap = "0.16"
chrono = "0.4" chrono = "0.4"
hostname = "0.3" hostname = "0.4"
sqlx = { version = "0.8", features = ["sqlite", "macros", "chrono", "runtime-tokio"] } sqlx = { version = "0.8", features = ["sqlite", "macros", "chrono", "runtime-tokio"] }
jieba-rs = "0.9" jieba-rs = "0.9"
which = "7" which = "8"
rmcp = { version = "1.6", default-features = false, features = [ rmcp = { version = "1.7", default-features = false, features = [
"client", "client",
"transport-child-process", "transport-child-process",
"transport-streamable-http-client-reqwest", "transport-streamable-http-client-reqwest",

View File

@ -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_x = area.x + 1 + app.input_cursor_pos as u16;
let cursor_y = area.y + 1; let cursor_y = area.y + 1;
if cursor_x < area.right() && cursor_y < area.bottom() { if cursor_x < area.right() && cursor_y < area.bottom() {
f.set_cursor(cursor_x, cursor_y); f.set_cursor_position((cursor_x, cursor_y));
} }
} }

View File

@ -6,7 +6,7 @@ use ratatui::{
}; };
pub fn render_ui(f: &mut Frame, app: &App) { pub fn render_ui(f: &mut Frame, app: &App) {
let size = f.size(); let size = f.area();
let chunks = Layout::default() let chunks = Layout::default()
.direction(Direction::Vertical) .direction(Direction::Vertical)
.constraints([ .constraints([