MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / command

Method command

services/cloud-agent-next/src/kilo/client.ts:158–175  ·  view source on GitHub ↗
(
    command: string,
    args?: string,
    options?: CommandOptions
  )

Source from the content-addressed store, hash-verified

156 }
157
158 async command(
159 command: string,
160 args?: string,
161 options?: CommandOptions
162 ): Promise<SessionCommandResponse> {
163 const sessionId = this.requireSession();
164 if (options?.messageId) {
165 this.validateMessageId(options.messageId);
166 }
167
168 return this.call<SessionCommandResponse>('POST', `/session/${sessionId}/command`, {
169 command,
170 arguments: args ?? '',
171 messageID: options?.messageId,
172 agent: options?.agent,
173 model: options?.model,
174 });
175 }
176
177 /**
178 * Respond to a permission request.

Callers 4

client.test.tsFile · 0.45
createWrapperKiloClientFunction · 0.45

Calls 3

requireSessionMethod · 0.95
validateMessageIdMethod · 0.95
callMethod · 0.95

Tested by

no test coverage detected