use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize, Clone)]
#[serde(default)]
pub struct ReviewConfig {
pub max_prompt_chars: usize,
pub max_full_content_files: usize,
pub max_chars_per_file: usize,
#[serde(default = "default_max_instructions_chars")]
pub max_instructions_chars: usize,
#[serde(default)]
pub instructions_file: Option<String>,
}
fn default_max_instructions_chars() -> usize {
1_500
}
impl Default for ReviewConfig {
fn default() -> Self {
Self {
max_prompt_chars: 120_000, max_full_content_files: 10, max_chars_per_file: 4_000, max_instructions_chars: 1_500, instructions_file: None,
}
}
}