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:
@@ -144,5 +144,6 @@ pub fn generate_status_info(
|
|||||||
meta_plugins: meta_plugins_map,
|
meta_plugins: meta_plugins_map,
|
||||||
enabled_meta_plugins: enabled_meta_plugins_vec,
|
enabled_meta_plugins: enabled_meta_plugins_vec,
|
||||||
filter_plugins: Vec::new(), // Initialize with empty vector
|
filter_plugins: Vec::new(), // Initialize with empty vector
|
||||||
|
configured_meta_plugins: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,11 +65,13 @@ pub struct CompressionPluginConfig {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize, utoipa::ToSchema)]
|
||||||
pub struct MetaPluginConfig {
|
pub struct MetaPluginConfig {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
#[schema(value_type = Object)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub options: std::collections::HashMap<String, serde_yaml::Value>,
|
pub options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||||
|
#[schema(value_type = Object)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub outputs: std::collections::HashMap<String, String>,
|
pub outputs: std::collections::HashMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ pub mod utils;
|
|||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, serde::Serialize)]
|
||||||
pub struct FilterOption {
|
pub struct FilterOption {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub default: Option<serde_json::Value>,
|
pub default: Option<serde_json::Value>,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use log::debug;
|
|||||||
|
|
||||||
use crate::modes::common::{get_format_box_chars_no_border_line_separator, OutputFormat};
|
use crate::modes::common::{get_format_box_chars_no_border_line_separator, OutputFormat};
|
||||||
use crate::config;
|
use crate::config;
|
||||||
|
use crate::common::status::StatusInfo;
|
||||||
use prettytable::color;
|
use prettytable::color;
|
||||||
use serde_json;
|
use serde_json;
|
||||||
use serde_yaml;
|
use serde_yaml;
|
||||||
|
|||||||
@@ -163,12 +163,8 @@ fn build_filter_plugin_table(filter_plugins: &Vec<String>) -> Table {
|
|||||||
.to_string()
|
.to_string()
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get description from the first option or use a default
|
// Use a default description
|
||||||
let description = if let Some(first_opt) = options.first() {
|
let description = "Filter plugin".to_string();
|
||||||
first_opt.description.clone().unwrap_or_else(|| "Filter plugin".to_string())
|
|
||||||
} else {
|
|
||||||
"Filter plugin".to_string()
|
|
||||||
};
|
|
||||||
|
|
||||||
filter_plugin_table.add_row(Row::new(vec![
|
filter_plugin_table.add_row(Row::new(vec![
|
||||||
Cell::new(&plugin_name),
|
Cell::new(&plugin_name),
|
||||||
|
|||||||
Reference in New Issue
Block a user