(config_path: Path | None)
| 219 | |
| 220 | |
| 221 | def _load_optional_config(config_path: Path | None) -> ResearchConfig: |
| 222 | try: |
| 223 | default_path = config_path or (Path.home() / ".nanoresearch" / "config.json") |
| 224 | if default_path.is_file() or config_path is not None: |
| 225 | return ResearchConfig.load(config_path) |
| 226 | except Exception: |
| 227 | pass |
| 228 | return ResearchConfig() |
| 229 | |
| 230 | |
| 231 | def _resolve_skill_sources(config: ResearchConfig) -> tuple[list[Path], Path | None]: |
no test coverage detected