(host: SlashCommandHost)
| 27 | // --------------------------------------------------------------------------- |
| 28 | |
| 29 | export async function handleLoginCommand(host: SlashCommandHost): Promise<void> { |
| 30 | const platformId = await promptPlatformSelection(host); |
| 31 | if (platformId === undefined) return; |
| 32 | |
| 33 | if (platformId === 'kimi-code') { |
| 34 | await handleKimiCodeOAuthLogin(host); |
| 35 | return; |
| 36 | } |
| 37 | |
| 38 | const platform = getOpenPlatformById(platformId); |
| 39 | if (platform === undefined) return; |
| 40 | await handleOpenPlatformLogin(host, platform); |
| 41 | } |
| 42 | |
| 43 | async function handleKimiCodeOAuthLogin(host: SlashCommandHost): Promise<void> { |
| 44 | const status = await host.harness.auth.status(DEFAULT_OAUTH_PROVIDER_NAME); |
no test coverage detected