Finishing agent merge

This commit is contained in:
Dave
2026-02-19 18:05:21 +00:00
parent c94b3d4450
commit 8c2dc9b6a0
8 changed files with 186 additions and 29 deletions

View File

@@ -19,6 +19,15 @@ pub enum StoryMetaError {
InvalidFrontMatter(String),
}
impl std::fmt::Display for StoryMetaError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
StoryMetaError::MissingFrontMatter => write!(f, "Missing front matter"),
StoryMetaError::InvalidFrontMatter(msg) => write!(f, "Invalid front matter: {msg}"),
}
}
}
#[derive(Debug, Deserialize)]
struct FrontMatter {
name: Option<String>,