MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / findBuiltInSlashCommand

Function findBuiltInSlashCommand

apps/kimi-code/src/tui/commands/registry.ts:412–417  ·  view source on GitHub ↗
(commandName: string)

Source from the content-addressed store, hash-verified

410export type BuiltinSlashCommandName = BuiltinSlashCommand['name'];
411
412export 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
419export function resolveSlashCommandAvailability(
420 command: KimiSlashCommand,

Callers 3

resolveSlashCommandInputFunction · 0.90
web.test.tsFile · 0.85
registry.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected