(home: &Path)
| 31 | } |
| 32 | |
| 33 | fn opencode_prompt_path(home: &Path) -> std::path::PathBuf { |
| 34 | // Mirrors the logic: if .config/opencode exists, use it |
| 35 | let modern = home.join(".config/opencode/AGENTS.md"); |
| 36 | if modern.exists() || home.join(".config/opencode").exists() { |
| 37 | return modern; |
| 38 | } |
| 39 | home.join("AGENTS.md") |
| 40 | } |
| 41 | |
| 42 | // =========================================================================== |
| 43 | // Install content verification |
no test coverage detected