Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
refactor(cli): remove unused log format flag
ldm0617fc22863bd
diff --git a/README.md b/README.mdindex 273253ad4..8d21f7820 100644--- a/README.md+++ b/README.md@@ -216,7 +216,7 @@ evaluation environments, and reinforcement-learning workloads.screenshots, and low-frequency CPU-rendered DevTools screencast frames.- **Controllable operational options** — profiles, cookies, HTTP cache, proxies,resource families, connection limits, timeouts, private-network policy,- user-agent overrides, structured logging, and network diagnostics are all+ user-agent overrides, diagnostic logging, and network diagnostics are allavailable.## Moli's relationship with Lexmountdiff --git a/moli-frontend-smoke/moli_frontend_smoke/browsers.py b/moli-frontend-smoke/moli_frontend_smoke/browsers.pyindex 4c1dee8ce..9c0bac693 100644--- a/moli-frontend-smoke/moli_frontend_smoke/browsers.py+++ b/moli-frontend-smoke/moli_frontend_smoke/browsers.py@@ -270,8 +270,6 @@ async def start_moli(binary: Path) -> BrowserProcess:cache_dir,"--log-level","info",- "--log-format",- "logfmt",],)diff --git a/moli/src/cli.rs b/moli/src/cli.rsindex d6225e8f4..1d08febeb 100644--- a/moli/src/cli.rs+++ b/moli/src/cli.rs@@ -462,9 +462,6 @@ pub struct CommonArgs {#[arg(short = 'L', long, value_enum)]pub log_level: Option<LogLevel>,- #[arg(long, value_enum)]- pub log_format: Option<LogFormat>,-#[arg(long, num_args = 0..=1, default_missing_value = "")]pub log_filter_scopes: Option<String>,@@ -532,13 +529,6 @@ impl LogLevel {}}-#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]-#[value(rename_all = "snake_case")]-pub enum LogFormat {- Pretty,- Logfmt,-}-#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]#[value(rename_all = "snake_case")]pub enum DumpFormat {diff --git a/moli/src/config.rs b/moli/src/config.rsindex e1e36ec2c..d31efc34b 100644--- a/moli/src/config.rs+++ b/moli/src/config.rs@@ -10,9 +10,7 @@ use moli_fetch::{FetchConfig, WebBotAuthProfile, WebBotAuthSigner};use std::path::PathBuf;use std::str::FromStr;-use crate::cli::{- Cli, Commands, CommonArgs, DumpFormat, LogFormat, StripOptions, WebBotAuthProfileChoice,-};+use crate::cli::{Cli, Commands, CommonArgs, DumpFormat, StripOptions, WebBotAuthProfileChoice};use crate::network_trace::NetworkTraceConfigSummary;pub use moli_protocol_server::ServerConfig;@@ -198,7 +196,6 @@ fn apply_common_args(config: &mut AppConfig, common: &CommonArgs) -> Result<()>config.add_document_start_script(source);}- config.fetch.log_format = common.log_format;config.fetch.log_filter_scopes = common.log_filter_scopes.clone();Ok(())}@@ -291,7 +288,6 @@ pub struct FetchCommandConfig {pub cookie_files: Vec<String>,// CLI request headers only apply to the top-level fetch command.pub request_headers: Vec<(String, String)>,- pub log_format: Option<LogFormat>,pub log_filter_scopes: Option<String>,}diff --git a/moli/tests/cli.rs b/moli/tests/cli.rsindex 864f2fed5..4da5206ef 100644--- a/moli/tests/cli.rs+++ b/moli/tests/cli.rs@@ -8,9 +8,9 @@ use std::{};use moli::cli::{- Cli, Commands, CommonArgs, DumpFormat, FetchArgs, FetchWaitUntil, LogFormat, LogLevel,- RequestHeaderArg, ResponseJsonPathArg, ResponseRegexArg, ServeArgs, StripModeChoice,- StripOptions, WebBotAuthProfileChoice, normalize_args_for_compat,+ Cli, Commands, CommonArgs, DumpFormat, FetchArgs, FetchWaitUntil, LogLevel, RequestHeaderArg,+ ResponseJsonPathArg, ResponseRegexArg, ServeArgs, StripModeChoice, StripOptions,+ WebBotAuthProfileChoice, normalize_args_for_compat,};use moli::config::AppConfig;use moli_browser_profile::BrowserProfilePaths;@@ -62,8 +62,6 @@ fn parses_explicit_fetch_command_with_compatibility_flags() {"4096","--log-level","info",- "--log-format",- "pretty","--log-filter-scopes","http,event","--user-agent-suffix",@@ -137,7 +135,6 @@ fn parses_explicit_fetch_command_with_compatibility_flags() {block_private_networks: false,block_cidrs: None,log_level: Some(LogLevel::Info),- log_format: Some(LogFormat::Pretty),log_filter_scopes: Some("http,event".to_owned()),user_agent: None,user_agent_suffix: Some("internal-tester".to_owned()),@@ -1392,6 +1389,7 @@ fn removed_long_form_flags_are_rejected() {"--enable-video-fetch","--enable-media-fetch","--enable-text-track-fetch",+ "--log-format",] {let error = Cli::try_parse_from(["moli", "serve", flag]).unwrap_err();assert_eq!(error.kind(), clap::error::ErrorKind::UnknownArgument);