( host: SlashCommandHost, alias: string, effort: ThinkingEffort, )
| 251 | } |
| 252 | |
| 253 | async function setDefaultModel( |
| 254 | host: SlashCommandHost, |
| 255 | alias: string, |
| 256 | effort: ThinkingEffort, |
| 257 | ): Promise<void> { |
| 258 | await host.harness.setConfig({ |
| 259 | defaultModel: alias, |
| 260 | thinking: thinkingEffortToConfig(effort), |
| 261 | }); |
| 262 | await host.authFlow.refreshConfigAfterLogin(); |
| 263 | host.track('model_switch', { model: alias }); |
| 264 | host.showStatus(`Default model set to ${alias} with thinking ${effort}.`); |
| 265 | } |
| 266 | |
| 267 | async function handleCustomRegistryAddViaDialog(host: SlashCommandHost): Promise<boolean> { |
| 268 | const value = await promptCustomRegistryImport(host); |
no test coverage detected