use crate::events::{ThreadId, TurnId};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PatchProgress {
pub thread_id: ThreadId,
pub turn_id: TurnId,
pub tool_id: String,
pub patch: String,
pub changes: Vec<ProposedPatchChange>,
pub complete: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ProposedPatchChange {
pub path: String,
pub change_type: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub move_to: Option<String>,
pub old_lines: Vec<String>,
pub new_lines: Vec<String>,
}