- Add `MessageState` trait defining UI reaction callbacks for generation lifecycle, model updates, provider status, resize, and tick events. - Implement `App::handle_message` to route `AppMessage` variants to the provided `MessageState` and determine exit condition. - Add `handler.rs` module with the trait and dispatch logic; re-export `MessageState` in `app/mod.rs`. - Extend `ActiveGeneration` with a public `request_id` getter and clean up dead code annotations. - Implement empty `MessageState` for `ChatApp` to integrate UI handling. - Add `log` crate dependency for warning messages.
50 lines
1.2 KiB
TOML
50 lines
1.2 KiB
TOML
[package]
|
|
name = "owlen-tui"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
description = "Terminal User Interface for OWLEN LLM client"
|
|
|
|
[dependencies]
|
|
owlen-core = { path = "../owlen-core" }
|
|
# Removed owlen-ollama dependency - all providers now accessed via MCP architecture (Phase 10)
|
|
|
|
# TUI framework
|
|
ratatui = { workspace = true }
|
|
crossterm = { workspace = true }
|
|
tui-textarea = { workspace = true }
|
|
textwrap = { workspace = true }
|
|
unicode-width = "0.1"
|
|
unicode-segmentation = "1.11"
|
|
async-trait = "0.1"
|
|
globset = "0.4"
|
|
ignore = "0.4"
|
|
pathdiff = "0.2"
|
|
tree-sitter = "0.20"
|
|
tree-sitter-rust = "0.20"
|
|
dirs = { workspace = true }
|
|
toml = { workspace = true }
|
|
syntect = "5.3"
|
|
once_cell = "1.19"
|
|
owlen-markdown = { path = "../owlen-markdown" }
|
|
|
|
# Async runtime
|
|
tokio = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
futures-util = { workspace = true }
|
|
|
|
# Utilities
|
|
anyhow = { workspace = true }
|
|
uuid = { workspace = true }
|
|
serde_json.workspace = true
|
|
serde.workspace = true
|
|
chrono = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tokio-test = { workspace = true }
|
|
tempfile = { workspace = true }
|