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 profile::profile_color_argb;pub use profile::sanitize_agent_id;pub use profile::user_data_dir_for;pub use profile::ProfileIdError;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::BrowserConfigfrom environment variables. The daemon translates itscfg.plugins.browserYAML into env vars before spawning the subprocess (seeproyecto/src/main.rs::seed_browser_subprocess_envin step 15); this module is the child-side reader. - plugin
- Subprocess-side BrowserPlugin: launches Chrome, attaches a CDP
session, dispatches
BrowserCmd→BrowserResult. - profile
- Filesystem-safe agent_id sanitiser + per-agent profile dir resolver + deterministic ARGB color derivation for Chrome profile decoration.
- profile_
decoration - Chrome profile decoration — writes
${user_data_dir}/Default/PreferencesJSON so the Chrome window’s profile chip displays the agent’s name + a stable per-agent color. - profile_
limits - Env-controlled limits for the per-agent profile DashMap.
- tool_
defs - Static
ToolDefcatalogue advertised in theinitializereply.