d7329d9
zhenyi
feat(chat): harden chat crate (message size limits, content-type allow-list, body sanitization, bounded channels, webhook dedup)
d7329d9
use crate::patch::types::{ApplyResult, ParsedPatch, Patch};
pub trait PatchOps {
fn patch_generate(&self, base: &str, head: &str) -> Result<Patch, crate::Error>;
fn patch_parse(&self, content: &str) -> Result<ParsedPatch, crate::Error>;
fn patch_apply(&self, patch: &str, base: &str) -> Result<ApplyResult, crate::Error>;
}