fix: Resolve compilation errors related to status and filter plugins

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-03 09:13:26 -03:00
parent 09fa7576d0
commit 3524a12ffd
5 changed files with 8 additions and 8 deletions

View File

@@ -144,5 +144,6 @@ pub fn generate_status_info(
meta_plugins: meta_plugins_map,
enabled_meta_plugins: enabled_meta_plugins_vec,
filter_plugins: Vec::new(), // Initialize with empty vector
configured_meta_plugins: None,
}
}

View File

@@ -65,11 +65,13 @@ pub struct CompressionPluginConfig {
pub name: String,
}
#[derive(Debug, Clone, Deserialize, Serialize)]
#[derive(Debug, Clone, Deserialize, Serialize, utoipa::ToSchema)]
pub struct MetaPluginConfig {
pub name: String,
#[schema(value_type = Object)]
#[serde(default)]
pub options: std::collections::HashMap<String, serde_yaml::Value>,
#[schema(value_type = Object)]
#[serde(default)]
pub outputs: std::collections::HashMap<String, String>,
}

View File

@@ -11,7 +11,7 @@ pub mod utils;
use std::collections::HashMap;
#[derive(Debug, Clone)]
#[derive(Debug, Clone, serde::Serialize)]
pub struct FilterOption {
pub name: String,
pub default: Option<serde_json::Value>,

View File

@@ -6,6 +6,7 @@ use log::debug;
use crate::modes::common::{get_format_box_chars_no_border_line_separator, OutputFormat};
use crate::config;
use crate::common::status::StatusInfo;
use prettytable::color;
use serde_json;
use serde_yaml;

View File

@@ -163,12 +163,8 @@ fn build_filter_plugin_table(filter_plugins: &Vec<String>) -> Table {
.to_string()
};
// Get description from the first option or use a default
let description = if let Some(first_opt) = options.first() {
first_opt.description.clone().unwrap_or_else(|| "Filter plugin".to_string())
} else {
"Filter plugin".to_string()
};
// Use a default description
let description = "Filter plugin".to_string();
filter_plugin_table.add_row(Row::new(vec![
Cell::new(&plugin_name),