refactor: rename PluginResponse to MetaPluginResponse

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 16:21:20 -03:00
parent 13799cd337
commit 4497d9d095
2 changed files with 8 additions and 8 deletions

View File

@@ -122,10 +122,10 @@ impl MetaPlugin for MetaPluginProgram {
self.writer = Some(Box::new(stdin));
self.process = Some(process);
Ok(PluginResponse::default())
Ok(MetaPluginResponse::default())
}
fn finalize(&mut self) -> Result<PluginResponse> {
fn finalize(&mut self) -> Result<MetaPluginResponse> {
debug!("META: Finalizing program plugin");
let mut metadata = Vec::new();
@@ -165,13 +165,13 @@ impl MetaPlugin for MetaPluginProgram {
}
}
Ok(PluginResponse {
Ok(MetaPluginResponse {
metadata: if metadata.is_empty() { None } else { Some(metadata) },
is_finalized: true,
})
}
fn update(&mut self, data: &[u8]) -> Result<PluginResponse> {
fn update(&mut self, data: &[u8]) -> Result<MetaPluginResponse> {
if let Some(ref mut writer) = self.writer {
if let Err(e) = writer.write_all(data) {
debug!("META: Failed to write to process stdin: {}", e);