Skip to main content

Module plugin

Module plugin 

Source
Expand description

Subprocess-side BrowserPlugin: launches Chrome, attaches a CDP session, dispatches BrowserCmd → BrowserResult.

Phase 81.17.c.crates-publish slim-down — the in-tree daemon integration (broker bridge, circuit breaker, Plugin / NexoPlugin trait impls, manifest parsing) was removed because the subprocess flow handles those concerns at the nexo_microapp_sdk::plugin::PluginAdapter layer:

  • Broker bridge: 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 — no need for a second cached_manifest.
  • 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 crashes / supervisor logic live in nexo-core::nexo_plugin_registry (Phase 81.21).

What remains is the minimal CDP driver — enough for dispatch.rs to translate every tool.invoke into a BrowserCmd and call execute.

Structs§

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