(config: ConfigFile)
| 347 | } |
| 348 | |
| 349 | private writeConfig(config: ConfigFile): void { |
| 350 | try { |
| 351 | fs.mkdirSync(this.dir, { recursive: true, mode: 0o700 }); |
| 352 | fs.writeFileSync(this.configPath, JSON.stringify(config, null, 2) + '\n'); |
| 353 | this.configCache = config; |
| 354 | } catch { |
| 355 | /* fail silent */ |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Default-on consent is gated by a one-time stderr notice (interactive |
no outgoing calls
no test coverage detected