diff --git a/crates/goose-cli/Cargo.toml b/crates/goose-cli/Cargo.toml index ca7ecd21..7dadbd32 100644 --- a/crates/goose-cli/Cargo.toml +++ b/crates/goose-cli/Cargo.toml @@ -73,6 +73,7 @@ winapi = { workspace = true } default = [ "code-mode", "local-inference", + "tui", "aws-providers", "telemetry", "nostr", @@ -90,8 +91,9 @@ telemetry = ["goose/telemetry"] nostr = ["goose/nostr"] otel = ["goose/otel"] system-keyring = ["goose/system-keyring"] +tui = [] update = ["dep:sigstore-verify"] -portable-default = ["rustls-tls", "aws-providers", "telemetry", "otel"] +portable-default = ["rustls-tls", "aws-providers", "telemetry", "otel", "tui"] # disables the update command disable-update = [] rustls-tls = [ diff --git a/crates/goose-cli/src/cli.rs b/crates/goose-cli/src/cli.rs index 5c3b9aad..aac8b77c 100644 --- a/crates/goose-cli/src/cli.rs +++ b/crates/goose-cli/src/cli.rs @@ -986,6 +986,7 @@ enum Command { }, /// Launch the goose terminal UI (TUI) + #[cfg(feature = "tui")] #[command( about = "Launch the goose terminal UI", long_about = "Launch the goose terminal UI (the @aaif/goose npm package).\n\ @@ -1291,6 +1292,7 @@ fn get_command_name(command: &Option) -> &'static str { Some(Command::Skills { .. }) => "skills", Some(Command::Plugin { .. }) => "plugin", Some(Command::Term { .. }) => "term", + #[cfg(feature = "tui")] Some(Command::Tui { .. }) => "tui", #[cfg(feature = "local-inference")] Some(Command::LocalModels { .. }) => "local-models", @@ -2154,6 +2156,7 @@ pub async fn cli() -> anyhow::Result<()> { Some(Command::Skills { command }) => handle_skills_subcommand(command).await, Some(Command::Plugin { command }) => handle_plugin_subcommand(command), Some(Command::Term { command }) => handle_term_subcommand(command).await, + #[cfg(feature = "tui")] Some(Command::Tui { args }) => crate::commands::tui::handle_tui(args), #[cfg(feature = "local-inference")] Some(Command::LocalModels { command }) => handle_local_models_command(command).await, diff --git a/crates/goose-cli/src/commands/mod.rs b/crates/goose-cli/src/commands/mod.rs index ef42795b..d687e13e 100644 --- a/crates/goose-cli/src/commands/mod.rs +++ b/crates/goose-cli/src/commands/mod.rs @@ -10,6 +10,7 @@ pub mod schedule; pub mod session; pub mod skills; pub mod term; +#[cfg(feature = "tui")] pub mod tui; #[cfg(feature = "update")] pub mod update;