Get the path to the project config file. Checks the new .autoforge/ location first, falls back to .autocoder/ for backward compatibility. Args: project_dir: Path to the project directory. Returns: Path to the config.json file in the appropriate directory.
(project_dir: Path)
| 85 | |
| 86 | |
| 87 | def _get_config_path(project_dir: Path) -> Path: |
| 88 | """ |
| 89 | Get the path to the project config file. |
| 90 | |
| 91 | Checks the new .autoforge/ location first, falls back to .autocoder/ |
| 92 | for backward compatibility. |
| 93 | |
| 94 | Args: |
| 95 | project_dir: Path to the project directory. |
| 96 | |
| 97 | Returns: |
| 98 | Path to the config.json file in the appropriate directory. |
| 99 | """ |
| 100 | new_path = project_dir / ".autoforge" / "config.json" |
| 101 | if new_path.exists(): |
| 102 | return new_path |
| 103 | old_path = project_dir / ".autocoder" / "config.json" |
| 104 | if old_path.exists(): |
| 105 | return old_path |
| 106 | return new_path |
| 107 | |
| 108 | |
| 109 | def _load_config(project_dir: Path) -> dict: |
no outgoing calls
no test coverage detected