Files

20 lines
762 B
Python
Raw Permalink Normal View History

"""Markdown templates for project artifacts."""
# Core template definitions; loaded from prompts/project_templates if possible,
# otherwise use minimal inline defaults.
def get_worklog_entry(timestamp: str, phase: str, work_block: int, agent: str, summary: str) -> str:
"""Return a worklog table row."""
return f"| {timestamp} | {phase} | {work_block} | {agent} | {summary} | completed |"
def get_known_error_entry(error_id: str, title: str, status: str, discovered: str, severity: str, context: str, resolution: str = "") -> str:
"""Return a known error section."""
return f"""### Error {error_id}: {title}
- Status: {status}
- Discovered: {discovered}
- Severity: {severity}
- Context: {context}
- Resolution: {resolution or "pending"}
"""