()
| 13 | } |
| 14 | |
| 15 | loadConfig() { |
| 16 | try { |
| 17 | const configData = fs.readFileSync(this.configPath, 'utf8'); |
| 18 | return JSON.parse(configData); |
| 19 | } catch (error) { |
| 20 | console.error('Error loading config:', error.message); |
| 21 | process.exit(1); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | async refreshCopilotToken() { |
| 26 | console.log('🔄 Refreshing Copilot token...'); |