Skip to main content

Module plugin

Module plugin 

Source
Expand description

External plugin discovery, protocol, and dispatch support. The plugin module exists so external commands can participate in osp without becoming a separate execution model everywhere else in the app.

This module owns the boundary between the core app and external command providers. Discovery and catalog building happen before dispatch so the rest of the app can reason about plugins as ordinary command metadata.

Contract:

  • plugin discovery and dispatch rules live here
  • the rest of the app should consume plugin metadata/results, not spawn plugin processes ad hoc

Re-exports§

pub use manager::CommandCatalogEntry;
pub use manager::CommandConflict;
pub use manager::DEFAULT_PLUGIN_PROCESS_TIMEOUT_MS;
pub use manager::DiscoveredPlugin;
pub use manager::DoctorReport;
pub use manager::PluginDispatchContext;
pub use manager::PluginDispatchError;
pub use manager::PluginManager;
pub use manager::PluginSource;
pub use manager::PluginSummary;
pub use manager::RawPluginOutput;

Modules§

manager
Public plugin facade and shared plugin data types.