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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user