kin: KIN-021 Аудит-лог для --dangerously-skip-permissions в auto mode

This commit is contained in:
Gros Frumos 2026-03-16 07:13:32 +02:00
parent 67071c757d
commit a0b0976d8d
16 changed files with 1477 additions and 14 deletions

View file

@ -91,7 +91,7 @@ def build_context(
def _slim_task(task: dict) -> dict:
"""Extract only relevant fields from a task for the prompt."""
return {
result = {
"id": task["id"],
"title": task["title"],
"status": task["status"],
@ -100,6 +100,9 @@ def _slim_task(task: dict) -> dict:
"brief": task.get("brief"),
"spec": task.get("spec"),
}
if task.get("revise_comment"):
result["revise_comment"] = task["revise_comment"]
return result
def _slim_project(project: dict) -> dict: