Top-level daemon configuration.
| 61 | |
| 62 | @dataclass |
| 63 | class DaemonConfig: |
| 64 | """Top-level daemon configuration.""" |
| 65 | |
| 66 | session_name: str = "crg-watch" |
| 67 | """Logical daemon name (used in log messages and status output).""" |
| 68 | |
| 69 | log_dir: Path = field(default_factory=lambda: Path.home() / ".code-review-graph" / "logs") |
| 70 | """Directory for per-repo log files.""" |
| 71 | |
| 72 | poll_interval: int = 2 |
| 73 | """Seconds between file-system polls for config changes.""" |
| 74 | |
| 75 | repos: list[WatchRepo] = field(default_factory=list) |
| 76 | """Repositories the daemon watches.""" |
| 77 | |
| 78 | |
| 79 | # --------------------------------------------------------------------------- |
no outgoing calls