Skip to main content

Module plugin

Module plugin 

Source
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::PluginAdapter publishes/consumes broker events through the daemon-routed JSON-RPC stdio frames.
  • Manifest: include_str!("../nexo-plugin.toml") is parsed once by PluginAdapter::new.
  • Plugin trait: irrelevant for subprocess plugins; the daemon’s SubprocessNexoPlugin adapter 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§

BrowserPlugin
Single-Chrome-instance state shared across the subprocess lifetime. Arc<Mutex<...>> so the caller can cheaply clone references into futures.