feat: add default_options method to all meta plugins

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-19 13:36:59 -03:00
parent c7a0e285e0
commit cd6033ad3b
6 changed files with 74 additions and 0 deletions

View File

@@ -110,6 +110,12 @@ pub trait MetaPlugin {
Vec::new()
}
// Get the default options for this plugin
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
// Default implementation returns empty - plugins should override this
std::collections::HashMap::new()
}
// Save metadata to database using central output handler
fn save_meta(&mut self, conn: &Connection, item_id: i64, internal_name: &str, value: String) -> Result<()> {
output_metadata(conn, item_id, internal_name, value, self.outputs())