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:
Andrew Phillips
2025-08-27 14:02:59 -03:00
parent 442f20dda3
commit 1159bbe0f5
5 changed files with 5 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ pub fn generate_status_info(
for meta_plugin_type in sorted_meta_plugins { for meta_plugin_type in sorted_meta_plugins {
log::debug!("STATUS: Processing meta plugin type: {:?}", meta_plugin_type); log::debug!("STATUS: Processing meta plugin type: {:?}", meta_plugin_type);
log::debug!("STATUS: About to call get_meta_plugin"); 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"); log::debug!("STATUS: Created meta plugin instance");
let is_supported = meta_plugin.is_supported(); let is_supported = meta_plugin.is_supported();
log::debug!("STATUS: Checked is_supported: {}", is_supported); log::debug!("STATUS: Checked is_supported: {}", is_supported);

View File

@@ -148,7 +148,7 @@ pub fn settings_meta_plugin_types(cmd: &mut Command, settings: &config::Settings
// Try to find the MetaPluginType by meta name // Try to find the MetaPluginType by meta name
let mut found = false; let mut found = false;
for meta_plugin_type in MetaPluginType::iter() { 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 { if meta_plugin.meta_name() == trimmed_name {
meta_plugin_types.push(meta_plugin_type); meta_plugin_types.push(meta_plugin_type);
found = true; found = true;

View File

@@ -36,7 +36,7 @@ pub async fn handle_status(
// Get all meta plugin types that are supported // Get all meta plugin types that are supported
let supported_meta_plugins: Vec<MetaPluginType> = MetaPluginType::iter() let supported_meta_plugins: Vec<MetaPluginType> = MetaPluginType::iter()
.filter(|mpt| { .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() plugin.is_supported()
}) })
.collect(); .collect();

View File

@@ -4,7 +4,7 @@ use crate::services::compression_service::CompressionService;
use crate::services::error::CoreError; use crate::services::error::CoreError;
use crate::services::meta_service::MetaService; use crate::services::meta_service::MetaService;
use crate::services::types::{ItemWithContent, ItemWithMeta}; 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::db::{self, Meta};
use crate::compression_engine::{get_compression_engine, CompressionType}; use crate::compression_engine::{get_compression_engine, CompressionType};
use crate::modes::common::settings_compression_type; use crate::modes::common::settings_compression_type;

View File

@@ -1,5 +1,5 @@
use crate::config::Settings; 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 crate::modes::common::settings_meta_plugin_types;
use clap::Command; use clap::Command;
use log::debug; use log::debug;