(cliId: string)
| 256 | |
| 257 | |
| 258 | const setDefaultCLI = (cliId: string) => { |
| 259 | const cliInstalled = cliStatus[cliId]?.installed; |
| 260 | if (!cliInstalled) return; |
| 261 | |
| 262 | setGlobalSettings(prev => ({ |
| 263 | ...prev, |
| 264 | default_cli: cliId |
| 265 | })); |
| 266 | }; |
| 267 | |
| 268 | const setDefaultModel = (cliId: string, modelId: string) => { |
| 269 | setGlobalSettings(prev => ({ |