Expand description
Subprocess-side BrowserPlugin: launches Chrome, attaches a CDP
session, dispatches BrowserCmd → BrowserResult.
This is the minimal CDP driver only. Daemon-integration concerns are handled elsewhere:
- Broker bridge:
nexo_microapp_sdk::plugin::PluginAdapterpublishes/consumes broker events through the daemon-routed JSON-RPC stdio frames. - Manifest:
include_str!("../nexo-plugin.toml")is parsed once byPluginAdapter::new. - Plugin trait: irrelevant for subprocess plugins; the
daemon’s
SubprocessNexoPluginadapter speaks the wire protocol on the host side. - CircuitBreaker: replaced by per-command timeouts;
subprocess crash / supervisor logic lives in
nexo-core::nexo_plugin_registry.
dispatch.rs translates every tool.invoke into a
BrowserCmd and calls execute.
Structs§
- Browser
Plugin - Single-Chrome-instance state shared across the subprocess
lifetime.
Arc<Mutex<...>>so the caller can cheaply clone references into futures.