Skip to main content

Crate nexo_plugin_browser

Crate nexo_plugin_browser 

Source
Expand description

Browser plugin library — copied verbatim from proyecto/crates/plugins/browser/src/ so the standalone binary reuses the existing CDP client + Chrome launcher + tool dispatch logic.

main.rs is the new subprocess entrypoint that wraps a BrowserPlugin in the nexo-microapp-sdk PluginAdapter and routes incoming tool.invoke requests through BrowserPlugin::execute.

Re-exports§

pub use chrome::ChromeLauncher;
pub use chrome::RunningChrome;
pub use command::BrowserCmd;
pub use command::BrowserResult;
pub use plugin::BrowserPlugin;
pub use tool_defs::browser_tool_defs;
pub use nexo_cdp as cdp;

Modules§

chrome
command
dispatch
Subprocess-side tool dispatcher.
env_config
Build a nexo_config::BrowserConfig from environment variables. The daemon translates its cfg.plugins.browser YAML into env vars before spawning the subprocess (see proyecto/src/main.rs::seed_browser_subprocess_env in step 15); this module is the child-side reader.
plugin
Subprocess-side BrowserPlugin: launches Chrome, attaches a CDP session, dispatches BrowserCmd → BrowserResult.
tool_defs
Static ToolDef catalogue advertised in the initialize reply.

Structs§

CdpClient
CdpSession