Return the AGENTS.md content, reading from disk if available. Args: wiki_dir: Path to the wiki directory (containing AGENTS.md). Returns: Content of wiki_dir/AGENTS.md if it exists, otherwise the hardcoded AGENTS_MD default.
(wiki_dir: Path)
| 64 | |
| 65 | |
| 66 | def get_agents_md(wiki_dir: Path) -> str: |
| 67 | """Return the AGENTS.md content, reading from disk if available. |
| 68 | |
| 69 | Args: |
| 70 | wiki_dir: Path to the wiki directory (containing AGENTS.md). |
| 71 | |
| 72 | Returns: |
| 73 | Content of wiki_dir/AGENTS.md if it exists, otherwise the hardcoded |
| 74 | AGENTS_MD default. |
| 75 | """ |
| 76 | agents_file = wiki_dir / "AGENTS.md" |
| 77 | if agents_file.exists(): |
| 78 | return agents_file.read_text(encoding="utf-8") |
| 79 | return AGENTS_MD |
no outgoing calls
no test coverage detected