Format code files into a single context string.
(files: list[dict[str, str]])
| 125 | |
| 126 | |
| 127 | def _format_code_context(files: list[dict[str, str]]) -> str: |
| 128 | """Format code files into a single context string.""" |
| 129 | parts: list[str] = [] |
| 130 | for f in files: |
| 131 | parts.append(f"=== {f['path']} ===\n{f['content']}") |
| 132 | return "\n\n".join(parts) |
| 133 | |
| 134 | |
| 135 | # --------------------------------------------------------------------------- |
no test coverage detected