MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / resolveCommand

Function resolveCommand

src/runtime/commands/index.ts:73–76  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

71 * Returns null if the input is not a recognized command.
72 */
73export function resolveCommand(input: string): BotCommand | null {
74 const key = input.split(/\s/)[0].toLowerCase();
75 return COMMAND_ALIASES[key] ?? null;
76}
77
78/**
79 * Get commands that should appear in /help output.

Callers 5

handleRequestMethod · 0.85
resolveInlineCommandMethod · 0.85
parseCommandFunction · 0.85
resolveCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected