Structured git context for prompt injection.
| 27 | |
| 28 | @dataclass |
| 29 | class GitContextSnapshot: |
| 30 | """Structured git context for prompt injection.""" |
| 31 | |
| 32 | available: bool |
| 33 | repo_root: str | None = None |
| 34 | branch: str | None = None |
| 35 | default_branch: str | None = None |
| 36 | user_name: str | None = None |
| 37 | status: str | None = None |
| 38 | status_truncated: bool = False |
| 39 | recent_commits: str | None = None |
| 40 | error: str | None = None |
| 41 | |
| 42 | |
| 43 | # --------------------------------------------------------------------------- |
no outgoing calls