Skip to main content

install_plugin_op

Function install_plugin_op 

Source
pub async fn install_plugin_op(
    plugin: &str,
    scope: InstallableScope,
) -> PluginOperationResult
Expand description

Install a plugin (settings-first).

Order of operations:

  1. Search materialized marketplaces for the plugin
  2. Write settings (THE ACTION – declares intent)
  3. Cache plugin + record version hint (materialization)

Marketplace reconciliation is NOT this function’s responsibility – startup reconcile handles declared-but-not-materialized marketplaces. If the marketplace isn’t found, “not found” is the correct error.

§Arguments

  • plugin - Plugin identifier (name or plugin@marketplace)
  • scope - Installation scope: user, project, or local (defaults to ‘user’)

§Returns

Result indicating success/failure