(commandName: string)
| 410 | export type BuiltinSlashCommandName = BuiltinSlashCommand['name']; |
| 411 | |
| 412 | export function findBuiltInSlashCommand(commandName: string): BuiltinSlashCommand | undefined { |
| 413 | const commands = BUILTIN_SLASH_COMMANDS as readonly KimiSlashCommand<BuiltinSlashCommandName>[]; |
| 414 | return commands.find( |
| 415 | (command) => command.name === commandName || command.aliases.includes(commandName), |
| 416 | ) as BuiltinSlashCommand | undefined; |
| 417 | } |
| 418 | |
| 419 | export function resolveSlashCommandAvailability( |
| 420 | command: KimiSlashCommand, |
no outgoing calls
no test coverage detected