Get the organization-level config file path. Returns: Path to ~/.autoforge/config.yaml (falls back to ~/.autocoder/config.yaml)
()
| 549 | |
| 550 | |
| 551 | def get_org_config_path() -> Path: |
| 552 | """ |
| 553 | Get the organization-level config file path. |
| 554 | |
| 555 | Returns: |
| 556 | Path to ~/.autoforge/config.yaml (falls back to ~/.autocoder/config.yaml) |
| 557 | """ |
| 558 | new_path = Path.home() / ".autoforge" / "config.yaml" |
| 559 | if new_path.exists(): |
| 560 | return new_path |
| 561 | # Backward compatibility: check old location |
| 562 | old_path = Path.home() / ".autocoder" / "config.yaml" |
| 563 | if old_path.exists(): |
| 564 | return old_path |
| 565 | return new_path |
| 566 | |
| 567 | |
| 568 | def load_org_config() -> Optional[dict]: |