源码: main.rs:2300-2307
(cwd: Path)
| 216 | # ============================================================ |
| 217 | |
| 218 | def build_system_prompt(cwd: Path) -> list[str]: |
| 219 | """源码: main.rs:2300-2307""" |
| 220 | import platform |
| 221 | from datetime import date |
| 222 | os_name = platform.system().lower() |
| 223 | |
| 224 | context = ProjectContext.discover(cwd, date.today().isoformat()) |
| 225 | return ( |
| 226 | SystemPromptBuilder() |
| 227 | .with_os(os_name, platform.release()) |
| 228 | .with_project_context(context) |
| 229 | .build() |
| 230 | ) |
| 231 | |
| 232 | |
| 233 | # ============================================================ |
no test coverage detected