pub async fn refresh_inventory( cwd_raw: String, cached_claude_path: Option<PathBuf>, ) -> Result<(PluginsInventorySnapshot, PathBuf), String>