Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 78 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ tree-sitter-javascript = "0.23"
default = ["tui", "self-update", "dirs"]
tui = ["ratatui", "crossterm", "ansi_term", "ansi-to-tui", "chrono"]
self-update = ["ureq", "semver", "chrono", "dirs"]

[dev-dependencies]
tempfile = "3.10"
4 changes: 4 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ pub struct Cli {
/// Patch Claude Code cli.js to disable context warnings
#[arg(long = "patch")]
pub patch: Option<String>,

/// Enable multiline output with activity tracking (agents/tools lines)
#[arg(short = 'm', long = "multiline")]
pub multiline: bool,
}

impl Cli {
Expand Down
13 changes: 10 additions & 3 deletions src/config/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ pub enum SegmentId {
Session,
OutputStyle,
Update,
ConfigCounts,
}

// Legacy compatibility structure
Expand All @@ -85,14 +86,17 @@ pub struct SegmentsConfig {
}

// Data structures compatible with existing main.rs
#[derive(Deserialize)]
#[derive(Deserialize, Default)]
pub struct Model {
#[serde(default)]
pub id: String,
#[serde(default)]
pub display_name: String,
}

#[derive(Deserialize)]
#[derive(Deserialize, Default)]
pub struct Workspace {
#[serde(default)]
pub current_dir: String,
}

Expand All @@ -110,10 +114,13 @@ pub struct OutputStyle {
pub name: String,
}

#[derive(Deserialize)]
#[derive(Deserialize, Default)]
pub struct InputData {
#[serde(default)]
pub model: Model,
#[serde(default)]
pub workspace: Workspace,
#[serde(default)]
pub transcript_path: String,
pub cost: Option<Cost>,
pub output_style: Option<OutputStyle>,
Expand Down
Loading