INNER CODE UNIT · Python
_build_json_envelope
Priivacy-ai/spec-kitty · src/specify_cli/retrospective/cli.py:55
def _build_json_envelope(snapshot: SummarySnapshot) -> dict[str, object]:
"""Build the JSON output envelope per cli_surfaces.md."""
return {
"schema_version": "1",
"command": "retrospect.summary",
"generated_at": now_utc_iso(),
"result": snapshot.model_dump(),
}
# ---------------------------------------------------------------------------
# Rich renderer
# ---------------------------------------------------------------------------
def _render_rich(
snapshot: SummarySnapshot,
*,