consciousness/poc-agent/Cargo.toml
Kent Overstreet f45f663dc0 tui: fix scroll by using Paragraph::line_count()
Replace homegrown wrapping math (wrapped_height, wrapped_height_line,
auto_scroll, force_scroll, wrapped_line_count) with ratatui's own
Paragraph::line_count() which exactly matches its rendering. The old
approach used ceiling division that didn't account for word wrapping,
causing bottom content to be clipped.

Also add terminal.clear() on resize to force full redraw — fixes the
TUI rendering at old canvas size after terminal resize.

Requires the unstable-rendered-line-info feature flag on ratatui.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:16:35 -04:00

35 lines
868 B
TOML

[package]
name = "poc-agent"
version.workspace = true
edition = "2024"
description = "Substrate-independent AI agent framework"
[lib]
name = "poc_agent"
path = "src/lib.rs"
[[bin]]
name = "poc-agent"
path = "src/main.rs"
[dependencies]
reqwest = { version = "0.12", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
ratatui = { version = "0.30", features = ["unstable-rendered-line-info"] }
crossterm = { version = "0.29", features = ["event-stream"] }
walkdir = "2"
glob = "0.3"
anyhow = "1"
chrono = { version = "0.4", features = ["serde"] }
base64 = "0.22"
dirs = "6"
futures = "0.3"
libc = "0.2"
tiktoken-rs = "0.9.1"
figment = { version = "0.10", features = ["env"] }
json5 = "0.4"
clap = { version = "4", features = ["derive"] }
tui-markdown = "0.3"
unicode-width = "0.2.2"