diff --git a/.skate/skate.log b/.skate/skate.log new file mode 100644 index 0000000..a8a3a7f --- /dev/null +++ b/.skate/skate.log @@ -0,0 +1,11 @@ +2026-02-24T08:16:23.967303Z INFO skate::app: skate starting project_dir=. log=./.skate/skate.log +2026-02-24T08:16:32.836825Z INFO skate::app: skate starting project_dir=. log=./.skate/skate.log +2026-02-24T08:20:04.150234Z INFO skate::app: skate exiting cleanly +2026-02-24T08:20:58.589061Z INFO skate::app: skate starting project_dir=. log=./.skate/skate.log +2026-02-24T08:28:09.982253Z INFO skate::app: skate exiting cleanly +2026-02-24T09:31:08.532095Z INFO skate::app: skate starting project_dir=. log=./.skate/skate.log +2026-02-24T09:31:14.261232Z INFO skate::app: skate exiting cleanly +2026-02-24T09:47:04.720495Z INFO skate::app: skate starting project_dir=. log=./.skate/skate.log +2026-02-24T09:47:13.632927Z INFO skate::app: skate exiting cleanly +2026-02-24T19:12:10.722625Z INFO skate::app: skate starting project_dir=. +2026-02-24T19:12:20.275869Z INFO skate::app: skate exiting cleanly diff --git a/src/app/workspace.rs b/src/app/workspace.rs index b64617d..583556d 100644 --- a/src/app/workspace.rs +++ b/src/app/workspace.rs @@ -90,7 +90,8 @@ impl SkateDir { .open(&log_path) .with_context(|| format!("cannot open log file {}", log_path.display()))?; - let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")); + let filter = + EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")); tracing_subscriber::fmt() .with_writer(Mutex::new(log_file)) diff --git a/src/core/history.rs b/src/core/history.rs index 45b0ffd..0ca5fc9 100644 --- a/src/core/history.rs +++ b/src/core/history.rs @@ -1,3 +1,4 @@ + use crate::core::types::ConversationMessage; /// The in-memory conversation history for the current session. diff --git a/src/core/orchestrator.rs b/src/core/orchestrator.rs index b924f51..d639226 100644 --- a/src/core/orchestrator.rs +++ b/src/core/orchestrator.rs @@ -1,3 +1,4 @@ + use futures::StreamExt; use tokio::sync::mpsc; use tracing::debug; diff --git a/src/core/types.rs b/src/core/types.rs index 7c83cfb..6767f36 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -1,3 +1,4 @@ + /// A streaming event emitted by the model provider. #[derive(Debug, Clone)] pub enum StreamEvent { diff --git a/src/provider/claude.rs b/src/provider/claude.rs index 46810dd..efe535e 100644 --- a/src/provider/claude.rs +++ b/src/provider/claude.rs @@ -1,3 +1,4 @@ + use futures::{SinkExt, Stream, StreamExt}; use reqwest::Client; use serde::Deserialize; diff --git a/src/tui/mod.rs b/src/tui/mod.rs index 53332c8..16555e9 100644 --- a/src/tui/mod.rs +++ b/src/tui/mod.rs @@ -1,3 +1,4 @@ + //! TUI frontend: terminal lifecycle, rendering, and input handling. //! //! All communication with the core orchestrator flows through channels: @@ -13,11 +14,11 @@ use std::io::{self, Stdout}; use std::time::Duration; use crossterm::event::{Event, EventStream, KeyCode, KeyEvent, KeyModifiers}; +use futures::StreamExt; use crossterm::execute; use crossterm::terminal::{ EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode, }; -use futures::StreamExt; use ratatui::backend::CrosstermBackend; use ratatui::layout::{Constraint, Layout, Rect}; use ratatui::style::{Color, Style};