(host: SlashCommandHost, args: string)
| 198 | } |
| 199 | |
| 200 | export async function handleThemeCommand(host: SlashCommandHost, args: string): Promise<void> { |
| 201 | const theme = args.trim(); |
| 202 | if (theme.length === 0) { |
| 203 | showThemePicker(host); |
| 204 | return; |
| 205 | } |
| 206 | if (!isBuiltInTheme(theme)) { |
| 207 | const custom = await loadCustomThemeMerged(theme); |
| 208 | if (custom === null) { |
| 209 | host.showError(`Unknown theme: ${theme}`); |
| 210 | return; |
| 211 | } |
| 212 | } |
| 213 | await applyThemeChoice(host, theme); |
| 214 | } |
| 215 | |
| 216 | export async function handleModelCommand(host: SlashCommandHost, args: string): Promise<void> { |
| 217 | const alias = args.trim(); |
no test coverage detected