(cwd: str)
| 85 | |
| 86 | |
| 87 | def _build_git_section(cwd: str) -> str: |
| 88 | from .git_context import collect_git_context, format_git_status |
| 89 | try: |
| 90 | ctx = _run_async(collect_git_context(cwd)) |
| 91 | if not ctx.available: |
| 92 | return "" |
| 93 | formatted = format_git_status(ctx) |
| 94 | if formatted: |
| 95 | return f"## Git Context\n{formatted}" |
| 96 | except Exception: |
| 97 | pass |
| 98 | return "" |
| 99 | |
| 100 | |
| 101 | def _build_claude_md_section(cwd: str, root: Path) -> str: |
no test coverage detected