This commit is contained in:
Rai (Michael Pokorny)
2025-06-24 20:15:01 -07:00
parent 27ad99f4be
commit 771294f65d
12 changed files with 143 additions and 114 deletions

View File

@@ -3,13 +3,21 @@ Simple library for loading and saving task metadata embedded as TOML front-matte
in task Markdown files.
"""
import re
import toml
from pathlib import Path
import subprocess
from datetime import datetime
from pathlib import Path
import toml
from pydantic import BaseModel, Field
FRONTMATTER_RE = re.compile(r"^\+\+\+\s*(.*?)\s*\+\+\+", re.S | re.M)
def repo_root():
return Path(subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).decode().strip())
def task_dir():
return repo_root() / "agentydragon/tasks"
class TaskMeta(BaseModel):
id: str
title: str