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

Method activatePluginCommand

apps/kimi-code/src/tui/kimi-tui.ts:1250–1261  ·  view source on GitHub ↗
(
    session: Session,
    pluginId: string,
    commandName: string,
    args: string,
  )

Source from the content-addressed store, hash-verified

1248 }
1249
1250 activatePluginCommand(
1251 session: Session,
1252 pluginId: string,
1253 commandName: string,
1254 args: string,
1255 ): void {
1256 this.beginSessionRequest();
1257 void session.activatePluginCommand(pluginId, commandName, args).catch((error: unknown) => {
1258 const message = formatErrorMessage(error);
1259 this.failSessionRequest(`Command "${pluginId}:${commandName}" failed: ${message}`);
1260 });
1261 }
1262
1263 private sendMessage(session: Session, input: string, options?: SendMessageOptions): void {
1264 if (

Callers

nothing calls this directly

Calls 4

beginSessionRequestMethod · 0.95
failSessionRequestMethod · 0.95
formatErrorMessageFunction · 0.90
activatePluginCommandMethod · 0.65

Tested by

no test coverage detected