Split conversation pane into 2-char gutter + text column. Gutter shows ● markers at turn boundaries (Cyan for user, Magenta for assistant), aligned with the input area's ' > ' gutter. Key changes: - Added Marker enum (None/User/Assistant) and parallel markers vec - Track turn boundaries via pending_marker field - New draw_conversation_pane() with visual row computation for wrapping - Both gutter and text scroll synchronously by visual line offset This fixes the wrapping alignment issue where continuation lines aligned under markers instead of under the text.
36 lines
934 B
TOML
36 lines
934 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"
|
|
tui-textarea = { version = "0.10.2", package = "tui-textarea-2" }
|