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

Function dispatchInput

apps/kimi-code/src/tui/commands/dispatch.ts:163–169  ·  view source on GitHub ↗
(host: SlashCommandHost, text: string)

Source from the content-addressed store, hash-verified

161// ---------------------------------------------------------------------------
162
163export function dispatchInput(host: SlashCommandHost, text: string): void {
164 if (parseSlashInput(text) !== null) {
165 void executeSlashCommand(host, text);
166 return;
167 }
168 host.sendNormalUserInput(text);
169}
170
171async function executeSlashCommand(host: SlashCommandHost, input: string): Promise<void> {
172 const parsedCommand = parseSlashInput(input);

Callers 2

add-dir.test.tsFile · 0.90
goal.test.tsFile · 0.85

Calls 3

parseSlashInputFunction · 0.90
executeSlashCommandFunction · 0.85
sendNormalUserInputMethod · 0.65

Tested by

no test coverage detected