fix: update meta plugin function calls and imports
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -101,7 +101,7 @@ pub fn generate_status_info(
|
||||
for meta_plugin_type in sorted_meta_plugins {
|
||||
log::debug!("STATUS: Processing meta plugin type: {:?}", meta_plugin_type);
|
||||
log::debug!("STATUS: About to call get_meta_plugin");
|
||||
let meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone());
|
||||
let meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone(), None, None);
|
||||
log::debug!("STATUS: Created meta plugin instance");
|
||||
let is_supported = meta_plugin.is_supported();
|
||||
log::debug!("STATUS: Checked is_supported: {}", is_supported);
|
||||
|
||||
@@ -148,7 +148,7 @@ pub fn settings_meta_plugin_types(cmd: &mut Command, settings: &config::Settings
|
||||
// Try to find the MetaPluginType by meta name
|
||||
let mut found = false;
|
||||
for meta_plugin_type in MetaPluginType::iter() {
|
||||
let meta_plugin = crate::meta_plugin::get_meta_plugin(meta_plugin_type.clone());
|
||||
let meta_plugin = crate::meta_plugin::get_meta_plugin(meta_plugin_type.clone(), None, None);
|
||||
if meta_plugin.meta_name() == trimmed_name {
|
||||
meta_plugin_types.push(meta_plugin_type);
|
||||
found = true;
|
||||
|
||||
@@ -36,7 +36,7 @@ pub async fn handle_status(
|
||||
// Get all meta plugin types that are supported
|
||||
let supported_meta_plugins: Vec<MetaPluginType> = MetaPluginType::iter()
|
||||
.filter(|mpt| {
|
||||
let plugin = crate::meta_plugin::get_meta_plugin((*mpt).clone());
|
||||
let plugin = crate::meta_plugin::get_meta_plugin((*mpt).clone(), None, None);
|
||||
plugin.is_supported()
|
||||
})
|
||||
.collect();
|
||||
|
||||
@@ -4,7 +4,7 @@ use crate::services::compression_service::CompressionService;
|
||||
use crate::services::error::CoreError;
|
||||
use crate::services::meta_service::MetaService;
|
||||
use crate::services::types::{ItemWithContent, ItemWithMeta};
|
||||
use crate::meta_plugin::{get_meta_plugin_with_config, MetaPlugin, MetaPluginType};
|
||||
use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
||||
use crate::db::{self, Meta};
|
||||
use crate::compression_engine::{get_compression_engine, CompressionType};
|
||||
use crate::modes::common::settings_compression_type;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::config::Settings;
|
||||
use crate::meta_plugin::{get_meta_plugin_with_config, MetaPlugin, MetaPluginType};
|
||||
use crate::meta_plugin::{MetaPlugin, MetaPluginType};
|
||||
use crate::modes::common::settings_meta_plugin_types;
|
||||
use clap::Command;
|
||||
use log::debug;
|
||||
|
||||
Reference in New Issue
Block a user