feat(compression): adaptive auto transcript compactor

This commit is contained in:
2025-10-26 00:25:23 +02:00
parent 877ece07be
commit a0868a9b49
13 changed files with 850 additions and 24 deletions

View File

@@ -34,6 +34,9 @@ struct Args {
/// Start in code mode (enables all tools)
#[arg(long, short = 'c')]
code: bool,
/// Disable automatic transcript compression for this session
#[arg(long)]
no_auto_compress: bool,
#[command(subcommand)]
command: Option<OwlenCommand>,
}
@@ -462,10 +465,20 @@ fn ensure_string_extra_with_change(
#[tokio::main(flavor = "multi_thread")]
async fn main() -> Result<()> {
// Parse command-line arguments
let Args { code, command } = Args::parse();
let Args {
code,
command,
no_auto_compress,
} = Args::parse();
if let Some(command) = command {
return run_command(command).await;
}
let initial_mode = if code { Mode::Code } else { Mode::Chat };
bootstrap::launch(initial_mode).await
bootstrap::launch(
initial_mode,
bootstrap::LaunchOptions {
disable_auto_compress: no_auto_compress,
},
)
.await
}