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

Function createWrapperKiloClient

services/cloud-agent-next/wrapper/src/kilo-api.ts:268–495  ·  view source on GitHub ↗
(
  sdkClient: SDKClient,
  serverUrl: string,
  workspacePath: string
)

Source from the content-addressed store, hash-verified

266 signal?: AbortSignal;
267 }) => Promise<boolean>;
268 summarizeSession: (opts: {
269 sessionId: string;
270 model: { providerID?: string; modelID: string };
271 auto?: boolean;
272 directory?: string;
273 signal?: AbortSignal;
274 }) => Promise<boolean>;
275 sendCommand: (opts: {
276 sessionId: string;
277 command: string;
278 args?: string;
279 messageId?: string;
280 agent?: string;
281 model?: { providerID?: string; modelID: string };
282 variant?: string;
283 directory?: string;
284 signal?: AbortSignal;
285 }) => Promise<SessionCommandResponse>;
286 /**
287 * Fetch the full slash command catalog from kilo, trimmed to wire shape and
288 * bounded to the shared limits. The bound status is returned beside the
289 * commands so the client can be told when rows were dropped.
290 */
291 listCommands: () => Promise<BoundedSlashCommandCatalog>;
292 answerPermission: (
293 permissionId: string,
294 response: PermissionResponse,
295 message?: string,
296 interactive?: boolean,
297 directory?: string,
298 signal?: AbortSignal
299 ) => Promise<boolean>;
300 answerQuestion: (
301 questionId: string,
302 answers: string[][],
303 directory?: string,
304 signal?: AbortSignal
305 ) => Promise<boolean>;
306 rejectQuestion: (
307 questionId: string,
308 directory?: string,
309 signal?: AbortSignal
310 ) => Promise<boolean>;
311 getSessionStatuses: (
312 directory?: string,
313 signal?: AbortSignal
314 ) => Promise<Record<string, { type: string; [key: string]: unknown }>>;
315 getQuestions: (directory?: string, signal?: AbortSignal) => Promise<QuestionRequest[]>;
316 getPermissions: (directory?: string, signal?: AbortSignal) => Promise<PermissionRequest[]>;
317 getNetworkWaits: () => Promise<NetworkWait[]>;
318 resumeNetworkWait: (requestID: string) => Promise<boolean>;
319 listEffectiveModels: (providerID: string) => Promise<string[]>;
320 generateCommitMessage: (opts: {
321 path: string;
322 signal?: AbortSignal;
323 }) => Promise<{ message: string }>;
324 createPty: (opts: {
325 cwd: string;

Callers 2

kilo-api.test.tsFile · 0.85
startKiloRuntimeFunction · 0.85

Calls 15

logToFileFunction · 0.85
globalFeedPayloadsFunction · 0.85
formatSdkErrorFunction · 0.85
toSlashCommandInfoFunction · 0.85
requireSdkDataFunction · 0.85
exactDedupedModelKeysFunction · 0.85
promptAsyncMethod · 0.80
summarizeMethod · 0.80
pushMethod · 0.80
rejectMethod · 0.80
createMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected