5769c1cd22
- Auto-Registration-Bug behoben (register_project/get_project_id/resolve_project Trennung) - 25 Tests gruen (Pytest) - block_compactor-Tool refactored (Option B: Soft-Check statt Hard-Block) - 4 Restbaustellen gefixt - DB-Schema: plugin_settings-Tabelle hinzugefuegt - 3 Schattenprojekte aus DB geloescht - Plan v3 + Refactor-Plan + Worklog dokumentiert
20 lines
762 B
Python
20 lines
762 B
Python
"""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"}
|
|
"""
|