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

Method getSlashCommands

apps/kimi-code/src/tui/kimi-tui.ts:369–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 // =========================================================================
368
369 private getSlashCommands(): readonly KimiSlashCommand[] {
370 const builtins = sortSlashCommands(BUILTIN_SLASH_COMMANDS).filter((command) =>
371 isExperimentalFlagEnabled(command.experimentalFlag),
372 );
373 return [...builtins, ...this.skillCommands, ...this.pluginCommands];
374 }
375
376 private setupAutocomplete(): void {
377 const slashCommands: SlashAutocompleteCommand[] = this.getSlashCommands().map((cmd) => {

Callers 2

setupAutocompleteMethod · 0.95
showHelpPanelMethod · 0.95

Calls 2

sortSlashCommandsFunction · 0.90

Tested by

no test coverage detected