Initial commit: a0_software_orchestrator v1.0
- 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
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""API: Read audit status."""
|
||||
from helpers.api import ApiHandler, Request, Response
|
||||
import os
|
||||
|
||||
class AuditStatusGet(ApiHandler):
|
||||
async def process(self, input: dict, request: Request) -> dict | Response:
|
||||
project_root = input.get("project_root", os.getcwd())
|
||||
audit_dir = os.path.join(project_root, ".a0", "audit")
|
||||
audits = {}
|
||||
if os.path.isdir(audit_dir):
|
||||
for f in os.listdir(audit_dir):
|
||||
if f.endswith(".md"):
|
||||
path = os.path.join(audit_dir, f)
|
||||
with open(path, "r") as fh:
|
||||
audits[f] = fh.read()[:500] # first 500 chars
|
||||
return {"ok": True, "audits": audits, "count": len(audits)}
|
||||
Reference in New Issue
Block a user