Skip to main content

nexo_plugin_browser/
lib.rs

1//! Browser plugin library — copied verbatim from
2//! `proyecto/crates/plugins/browser/src/` so the standalone
3//! binary reuses the existing CDP client + Chrome launcher +
4//! tool dispatch logic.
5//!
6//! `main.rs` is the new subprocess entrypoint that wraps a
7//! [`BrowserPlugin`] in the nexo-microapp-sdk
8//! [`PluginAdapter`](nexo_microapp_sdk::plugin::PluginAdapter) and
9//! routes incoming `tool.invoke` requests through
10//! [`BrowserPlugin::execute`].
11
12// CDP client lives in workspace crate `nexo-cdp`
13// (Phase 81.17.c follow-up `nexo-cdp-extract`).
14pub use nexo_cdp as cdp;
15pub mod chrome;
16pub mod command;
17pub mod dispatch;
18pub mod env_config;
19pub mod plugin;
20pub mod tool_defs;
21
22pub use chrome::{ChromeLauncher, RunningChrome};
23pub use command::{BrowserCmd, BrowserResult};
24pub use nexo_cdp::{CdpClient, CdpSession};
25pub use plugin::BrowserPlugin;
26pub use tool_defs::browser_tool_defs;