Skip to content

Commit a7fb7e1

Browse files
DOsingaDouwe Osinga
andauthored
delete goose web (#7696)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
1 parent d7ffeda commit a7fb7e1

File tree

13 files changed

+0
-2036
lines changed

13 files changed

+0
-2036
lines changed

Cargo.lock

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/goose-cli/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ tar = "0.4"
5252
reqwest = { workspace = true, features = ["blocking", "rustls"], default-features = false }
5353
zip = { version = "^8.0", default-features = false, features = ["deflate"] }
5454
bzip2 = "0.5"
55-
# Web server dependencies
56-
axum = { workspace = true, features = ["ws", "macros"] }
57-
tower-http = { workspace = true, features = ["cors", "fs", "auth"] }
58-
http = { workspace = true }
5955
webbrowser = { workspace = true }
6056
indicatif = "0.18.1"
6157
tokio-util = { workspace = true, features = ["compat", "rt"] }

crates/goose-cli/WEB_INTERFACE.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

crates/goose-cli/src/cli.rs

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -841,42 +841,6 @@ enum Command {
841841
reconfigure: bool,
842842
},
843843

844-
/// Start a web server with a chat interface
845-
#[command(about = "Experimental: Start a web server with a chat interface")]
846-
Web {
847-
/// Port to run the web server on
848-
#[arg(
849-
short,
850-
long,
851-
default_value = "3000",
852-
help = "Port to run the web server on"
853-
)]
854-
port: u16,
855-
856-
/// Host to bind the web server to
857-
#[arg(
858-
long,
859-
default_value = "127.0.0.1",
860-
help = "Host to bind the web server to"
861-
)]
862-
host: String,
863-
864-
/// Open browser automatically
865-
#[arg(long, help = "Open browser automatically when server starts")]
866-
open: bool,
867-
868-
/// Authentication token for both Basic Auth (password) and Bearer token
869-
#[arg(long, help = "Authentication token to secure the web interface")]
870-
auth_token: Option<String>,
871-
872-
/// Allow running without authentication when exposed on the network (unsafe)
873-
#[arg(
874-
long,
875-
help = "Skip auth requirement when exposed on the network (unsafe)"
876-
)]
877-
no_auth: bool,
878-
},
879-
880844
/// Terminal-integrated session (one session per terminal)
881845
#[command(
882846
about = "Terminal-integrated goose session",
@@ -1041,7 +1005,6 @@ fn get_command_name(command: &Option<Command>) -> &'static str {
10411005
Some(Command::Schedule { .. }) => "schedule",
10421006
Some(Command::Update { .. }) => "update",
10431007
Some(Command::Recipe { .. }) => "recipe",
1044-
Some(Command::Web { .. }) => "web",
10451008
Some(Command::Term { .. }) => "term",
10461009
Some(Command::LocalModels { .. }) => "local-models",
10471010
Some(Command::Completion { .. }) => "completion",
@@ -1780,13 +1743,6 @@ pub async fn cli() -> anyhow::Result<()> {
17801743
Ok(())
17811744
}
17821745
Some(Command::Recipe { command }) => handle_recipe_subcommand(command),
1783-
Some(Command::Web {
1784-
port,
1785-
host,
1786-
open,
1787-
auth_token,
1788-
no_auth,
1789-
}) => crate::commands::web::handle_web(port, host, open, auth_token, no_auth).await,
17901746
Some(Command::Term { command }) => handle_term_subcommand(command).await,
17911747
Some(Command::LocalModels { command }) => handle_local_models_command(command).await,
17921748
Some(Command::ValidateExtensions { file }) => {

crates/goose-cli/src/commands/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ pub mod schedule;
77
pub mod session;
88
pub mod term;
99
pub mod update;
10-
pub mod web;

0 commit comments

Comments
 (0)