(raw: string | undefined)
| 182 | * milliseconds, 1000 to 24 hours; unset, empty or out of range means no hold. |
| 183 | */ |
| 184 | export function parseSynthMinIntervalEnv(raw: string | undefined): number | undefined { |
| 185 | if (!raw || !raw.trim()) return undefined; |
| 186 | const n = Number(raw); |
| 187 | if (!Number.isInteger(n) || n < 1000 || n > 86_400_000) return undefined; |
| 188 | return n; |
| 189 | } |
| 190 | |
| 191 | export class CodeGraph { |
| 192 | private db: DatabaseConnection; |
no test coverage detected