feat: add options to meta plugins
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -13,6 +13,7 @@ pub struct MagicFileMetaPlugin {
|
||||
item_id: Option<i64>,
|
||||
cookie: Option<Cookie>,
|
||||
outputs: std::collections::HashMap<String, serde_yaml::Value>,
|
||||
options: std::collections::HashMap<String, serde_yaml::Value>,
|
||||
}
|
||||
|
||||
impl MagicFileMetaPlugin {
|
||||
@@ -51,6 +52,7 @@ impl MagicFileMetaPlugin {
|
||||
item_id: None,
|
||||
cookie: None,
|
||||
outputs: final_outputs,
|
||||
options: final_options,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,5 +188,13 @@ impl MetaPlugin for MagicFileMetaPlugin {
|
||||
options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(4096.into()));
|
||||
options
|
||||
}
|
||||
|
||||
fn options(&self) -> &std::collections::HashMap<String, serde_yaml::Value> {
|
||||
&self.options
|
||||
}
|
||||
|
||||
fn options_mut(&mut self) -> &mut std::collections::HashMap<String, serde_yaml::Value> {
|
||||
&mut self.options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user