refactor: update meta plugins to use new trait interface

Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-26 15:35:57 -03:00
parent f48d7b33b8
commit 7b43827926
5 changed files with 169 additions and 51 deletions

View File

@@ -60,13 +60,14 @@ impl MetaPlugin for CwdMetaPlugin {
true
}
fn finalize(&mut self, _conn: &Connection) -> Result<()> {
fn finalize(&mut self) -> Result<PluginResponse> {
// Since we save during initialize(), return Ok to avoid duplicate saves
Ok(())
Ok(PluginResponse::default())
}
fn update(&mut self, _data: &[u8], _conn: &Connection) {
fn update(&mut self, _data: &[u8]) -> Result<PluginResponse> {
// No update needed
Ok(PluginResponse::default())
}
fn meta_name(&self) -> String {