(config: any)
| 251 | } |
| 252 | return {}; |
| 253 | } |
| 254 | |
| 255 | function saveConfig(config: any): void { |
| 256 | try { |
| 257 | fs.writeFileSync(CONFIG_PATH, JSON.stringify(config, null, 2), 'utf-8'); |
| 258 | } catch (e) { |
| 259 | console.error("Failed to save config:", e); |
| 260 | } |
| 261 | } |
| 262 |