Skip to main content

nexo_plugin_browser/
lib.rs

1//! Browser plugin library: the CDP client, Chrome launcher, and
2//! tool dispatch logic.
3//!
4//! `main.rs` is the subprocess entrypoint that wraps a
5//! [`BrowserPlugin`] in the nexo-microapp-sdk
6//! [`PluginAdapter`](nexo_microapp_sdk::plugin::PluginAdapter) and
7//! routes incoming `tool.invoke` requests through
8//! [`BrowserPlugin::execute`].
9
10// CDP client lives in the workspace crate `nexo-cdp`.
11pub use nexo_cdp as cdp;
12pub mod admin;
13#[cfg(feature = "auto-download")]
14pub mod auto_download;
15pub mod auto_discovery;
16pub mod boot;
17pub mod chrome;
18pub mod command;
19pub mod config;
20pub mod configured_state;
21pub mod dispatch;
22pub mod env_config;
23pub mod instance_registry;
24pub mod metrics;
25pub mod plugin;
26pub mod profile;
27pub mod profile_decoration;
28pub mod profile_limits;
29pub mod tool_defs;
30
31pub use chrome::{ChromeLauncher, RunningChrome};
32pub use command::{BrowserCmd, BrowserResult};
33pub use config::{BrowserConfig, BrowserConfigFile, BrowserPluginConfigFile, BrowserPluginShape};
34pub use configured_state::configured_state;
35pub use nexo_cdp::{CdpClient, CdpSession};
36pub use plugin::BrowserPlugin;
37#[allow(deprecated)]
38pub use profile::sanitize_agent_id;
39pub use profile::{
40    profile_color_argb, sanitize_id, user_data_dir_for, IdError, ProfileIdError,
41};
42pub use tool_defs::browser_tool_defs;