()
| 968 | }; |
| 969 | |
| 970 | const loadConfig = () => { |
| 971 | const configPath = getConfigPath(); |
| 972 | if (!configPath || !fs.existsSync(configPath)) return null; |
| 973 | try { |
| 974 | const config = JSON.parse(fs.readFileSync(configPath, 'utf8')); |
| 975 | const studioConfig = loadStudioConfig(); |
| 976 | if (studioConfig.activeGooglePlugin === 'antigravity' && !config.small_model) { |
| 977 | config.small_model = "google/gemini-3-flash"; |
| 978 | } |
| 979 | return config; |
| 980 | } catch { |
| 981 | return null; |
| 982 | } |
| 983 | }; |
| 984 | |
| 985 | const saveConfig = (config) => { |
| 986 | const configPath = getConfigPath(); |
no test coverage detected