pub async fn set_plugin_enabled_op(
plugin: &str,
enabled: bool,
scope: Option<InstallableScope>,
) -> PluginOperationResultExpand description
Set plugin enabled/disabled status (settings-first).
Resolves the plugin ID and scope from settings – does NOT pre-gate on installed_plugins.json. Settings declares intent; if the plugin isn’t cached yet, the next load will cache it.
§Arguments
plugin- Plugin name or plugin@marketplace identifierenabled- true to enable, false to disablescope- Optional scope. If not provided, auto-detects the most specific scope where the plugin is mentioned in settings.
§Returns
Result indicating success/failure