fix: update process_metadata_outputs to handle serde_yaml::Value
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -209,7 +209,7 @@ impl TextMetaPlugin {
|
||||
// Use process_metadata_outputs to handle output mapping
|
||||
if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs(
|
||||
"text",
|
||||
text_value,
|
||||
serde_yaml::Value::String(text_value),
|
||||
self.base.outputs()
|
||||
) {
|
||||
metadata.push(meta_data);
|
||||
@@ -217,7 +217,7 @@ impl TextMetaPlugin {
|
||||
|
||||
if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs(
|
||||
"binary",
|
||||
binary_value,
|
||||
serde_yaml::Value::String(binary_value),
|
||||
self.base.outputs()
|
||||
) {
|
||||
metadata.push(meta_data);
|
||||
@@ -277,7 +277,7 @@ impl TextMetaPlugin {
|
||||
if self.track_word_count {
|
||||
crate::meta_plugin::process_metadata_outputs(
|
||||
"text_word_count",
|
||||
self.word_count.to_string(),
|
||||
serde_yaml::Value::String(self.word_count.to_string()),
|
||||
self.base.outputs()
|
||||
)
|
||||
} else {
|
||||
@@ -290,7 +290,7 @@ impl TextMetaPlugin {
|
||||
if self.track_line_count {
|
||||
crate::meta_plugin::process_metadata_outputs(
|
||||
"text_line_count",
|
||||
self.line_count.to_string(),
|
||||
serde_yaml::Value::String(self.line_count.to_string()),
|
||||
self.base.outputs()
|
||||
)
|
||||
} else {
|
||||
@@ -303,7 +303,7 @@ impl TextMetaPlugin {
|
||||
if self.output_line_max_len && self.line_count_for_stats > 0 {
|
||||
crate::meta_plugin::process_metadata_outputs(
|
||||
"text_line_max_len",
|
||||
self.max_line_length.to_string(),
|
||||
serde_yaml::Value::String(self.max_line_length.to_string()),
|
||||
self.base.outputs()
|
||||
)
|
||||
} else {
|
||||
@@ -319,7 +319,7 @@ impl TextMetaPlugin {
|
||||
let mean_len_int = mean_len.round() as usize;
|
||||
crate::meta_plugin::process_metadata_outputs(
|
||||
"text_line_mean_len",
|
||||
mean_len_int.to_string(),
|
||||
serde_yaml::Value::String(mean_len_int.to_string()),
|
||||
self.base.outputs()
|
||||
)
|
||||
} else {
|
||||
@@ -342,7 +342,7 @@ impl TextMetaPlugin {
|
||||
|
||||
return crate::meta_plugin::process_metadata_outputs(
|
||||
"text_line_median_len",
|
||||
median_len.to_string(),
|
||||
serde_yaml::Value::String(median_len.to_string()),
|
||||
self.base.outputs()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user