feat(compression): adaptive auto transcript compactor
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user