Skip to main content

Module manager

Module manager 

Source
Expand description

Sidecar lifecycle and IO.

SidecarManager spawns a sidecar process, writes line-JSON SidecarCommand values to its stdin, and surfaces the deserialized SidecarFrame stream as higher-level SidecarLifecycleEvent values on an mpsc channel.

Modality-agnostic. Plugin-specific work lives in the plugin process; this module is intentionally small and dependency-free beyond tokio and serde_json.

Structs§

SidecarManager
Supervises one sidecar process and its line-JSON streams.

Enums§

SidecarError
Errors surfaced by the manager.
SidecarLifecycleEvent
High-level events emitted by the manager. This is a curated subset of SidecarFrame tailored for chatui consumers; plugin-specific frames that are not actionable by core are dropped.