@kilocode/sdk 7.2.3 → 7.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +26 -0
- package/dist/v2/client.js +40 -3
- package/dist/v2/gen/sdk.gen.d.ts +604 -572
- package/dist/v2/gen/sdk.gen.js +670 -605
- package/dist/v2/gen/types.gen.d.ts +1783 -1641
- package/package.json +1 -1
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type EventInstallationUpdated = {
|
|
5
|
-
type: "installation.updated";
|
|
6
|
-
properties: {
|
|
7
|
-
version: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export type EventInstallationUpdateAvailable = {
|
|
11
|
-
type: "installation.update-available";
|
|
12
|
-
properties: {
|
|
13
|
-
version: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
4
|
export type Project = {
|
|
17
5
|
id: string;
|
|
18
6
|
worktree: string;
|
|
@@ -40,6 +28,18 @@ export type EventProjectUpdated = {
|
|
|
40
28
|
type: "project.updated";
|
|
41
29
|
properties: Project;
|
|
42
30
|
};
|
|
31
|
+
export type EventInstallationUpdated = {
|
|
32
|
+
type: "installation.updated";
|
|
33
|
+
properties: {
|
|
34
|
+
version: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type EventInstallationUpdateAvailable = {
|
|
38
|
+
type: "installation.update-available";
|
|
39
|
+
properties: {
|
|
40
|
+
version: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
43
|
export type EventServerInstanceDisposed = {
|
|
44
44
|
type: "server.instance.disposed";
|
|
45
45
|
properties: {
|
|
@@ -77,12 +77,6 @@ export type EventLspUpdated = {
|
|
|
77
77
|
[key: string]: unknown;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
export type EventFileEdited = {
|
|
81
|
-
type: "file.edited";
|
|
82
|
-
properties: {
|
|
83
|
-
file: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
80
|
export type EventTuiPromptAppend = {
|
|
87
81
|
type: "tui.prompt.append";
|
|
88
82
|
properties: {
|
|
@@ -163,100 +157,254 @@ export type EventSessionNetworkRestored = {
|
|
|
163
157
|
requestID: string;
|
|
164
158
|
};
|
|
165
159
|
};
|
|
166
|
-
export type
|
|
167
|
-
type: "
|
|
160
|
+
export type EventMessagePartDelta = {
|
|
161
|
+
type: "message.part.delta";
|
|
162
|
+
properties: {
|
|
163
|
+
sessionID: string;
|
|
164
|
+
messageID: string;
|
|
165
|
+
partID: string;
|
|
166
|
+
field: string;
|
|
167
|
+
delta: string;
|
|
168
|
+
};
|
|
168
169
|
};
|
|
169
|
-
export type
|
|
170
|
-
|
|
170
|
+
export type PermissionRequest = {
|
|
171
|
+
id: string;
|
|
172
|
+
sessionID: string;
|
|
173
|
+
permission: string;
|
|
174
|
+
patterns: Array<string>;
|
|
175
|
+
metadata: {
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
178
|
+
always: Array<string>;
|
|
179
|
+
tool?: {
|
|
180
|
+
messageID: string;
|
|
181
|
+
callID: string;
|
|
182
|
+
};
|
|
171
183
|
};
|
|
172
|
-
export type
|
|
173
|
-
type: "
|
|
174
|
-
|
|
175
|
-
retryCount?: number;
|
|
184
|
+
export type EventPermissionAsked = {
|
|
185
|
+
type: "permission.asked";
|
|
186
|
+
properties: PermissionRequest;
|
|
176
187
|
};
|
|
177
|
-
export type
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
status?: "added" | "deleted" | "modified";
|
|
188
|
+
export type EventPermissionReplied = {
|
|
189
|
+
type: "permission.replied";
|
|
190
|
+
properties: {
|
|
191
|
+
sessionID: string;
|
|
192
|
+
requestID: string;
|
|
193
|
+
reply: "once" | "always" | "reject";
|
|
194
|
+
};
|
|
185
195
|
};
|
|
186
|
-
export type
|
|
196
|
+
export type QuestionOption = {
|
|
197
|
+
/**
|
|
198
|
+
* Display text (1-5 words, concise)
|
|
199
|
+
*/
|
|
200
|
+
label: string;
|
|
201
|
+
/**
|
|
202
|
+
* Explanation of choice
|
|
203
|
+
*/
|
|
204
|
+
description: string;
|
|
205
|
+
};
|
|
206
|
+
export type QuestionInfo = {
|
|
207
|
+
/**
|
|
208
|
+
* Complete question
|
|
209
|
+
*/
|
|
210
|
+
question: string;
|
|
211
|
+
/**
|
|
212
|
+
* Very short label (max 30 chars)
|
|
213
|
+
*/
|
|
214
|
+
header: string;
|
|
215
|
+
/**
|
|
216
|
+
* Available choices
|
|
217
|
+
*/
|
|
218
|
+
options: Array<QuestionOption>;
|
|
219
|
+
/**
|
|
220
|
+
* Allow selecting multiple choices
|
|
221
|
+
*/
|
|
222
|
+
multiple?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Allow typing a custom answer (default: true)
|
|
225
|
+
*/
|
|
226
|
+
custom?: boolean;
|
|
227
|
+
};
|
|
228
|
+
export type QuestionRequest = {
|
|
187
229
|
id: string;
|
|
188
230
|
sessionID: string;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Questions to ask
|
|
233
|
+
*/
|
|
234
|
+
questions: Array<QuestionInfo>;
|
|
235
|
+
tool?: {
|
|
236
|
+
messageID: string;
|
|
237
|
+
callID: string;
|
|
192
238
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
239
|
+
};
|
|
240
|
+
export type EventQuestionAsked = {
|
|
241
|
+
type: "question.asked";
|
|
242
|
+
properties: QuestionRequest;
|
|
243
|
+
};
|
|
244
|
+
export type QuestionAnswer = Array<string>;
|
|
245
|
+
export type EventQuestionReplied = {
|
|
246
|
+
type: "question.replied";
|
|
247
|
+
properties: {
|
|
248
|
+
sessionID: string;
|
|
249
|
+
requestID: string;
|
|
250
|
+
answers: Array<QuestionAnswer>;
|
|
198
251
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
252
|
+
};
|
|
253
|
+
export type EventQuestionRejected = {
|
|
254
|
+
type: "question.rejected";
|
|
255
|
+
properties: {
|
|
256
|
+
sessionID: string;
|
|
257
|
+
requestID: string;
|
|
203
258
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
259
|
+
};
|
|
260
|
+
export type Todo = {
|
|
261
|
+
/**
|
|
262
|
+
* Brief description of the task
|
|
263
|
+
*/
|
|
264
|
+
content: string;
|
|
265
|
+
/**
|
|
266
|
+
* Current status of the task: pending, in_progress, completed, cancelled
|
|
267
|
+
*/
|
|
268
|
+
status: string;
|
|
269
|
+
/**
|
|
270
|
+
* Priority level of the task: high, medium, low
|
|
271
|
+
*/
|
|
272
|
+
priority: string;
|
|
273
|
+
};
|
|
274
|
+
export type EventTodoUpdated = {
|
|
275
|
+
type: "todo.updated";
|
|
276
|
+
properties: {
|
|
277
|
+
sessionID: string;
|
|
278
|
+
todos: Array<Todo>;
|
|
207
279
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
shell?: string;
|
|
280
|
+
};
|
|
281
|
+
export type EventSessionTurnOpen = {
|
|
282
|
+
type: "session.turn.open";
|
|
283
|
+
properties: {
|
|
284
|
+
sessionID: string;
|
|
214
285
|
};
|
|
215
286
|
};
|
|
216
|
-
export type
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
287
|
+
export type EventSessionTurnClose = {
|
|
288
|
+
type: "session.turn.close";
|
|
289
|
+
properties: {
|
|
290
|
+
sessionID: string;
|
|
291
|
+
reason: "completed" | "error" | "interrupted";
|
|
221
292
|
};
|
|
222
293
|
};
|
|
223
|
-
export type
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
294
|
+
export type SessionStatus = {
|
|
295
|
+
type: "idle";
|
|
296
|
+
} | {
|
|
297
|
+
type: "retry";
|
|
298
|
+
attempt: number;
|
|
299
|
+
message: string;
|
|
300
|
+
next: number;
|
|
301
|
+
} | {
|
|
302
|
+
type: "busy";
|
|
303
|
+
} | {
|
|
304
|
+
type: "offline";
|
|
305
|
+
requestID: string;
|
|
306
|
+
message: string;
|
|
307
|
+
};
|
|
308
|
+
export type EventSessionStatus = {
|
|
309
|
+
type: "session.status";
|
|
310
|
+
properties: {
|
|
311
|
+
sessionID: string;
|
|
312
|
+
status: SessionStatus;
|
|
227
313
|
};
|
|
228
314
|
};
|
|
229
|
-
export type
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
315
|
+
export type EventSessionIdle = {
|
|
316
|
+
type: "session.idle";
|
|
317
|
+
properties: {
|
|
318
|
+
sessionID: string;
|
|
233
319
|
};
|
|
234
320
|
};
|
|
235
|
-
export type
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
321
|
+
export type EventSessionCompacted = {
|
|
322
|
+
type: "session.compacted";
|
|
323
|
+
properties: {
|
|
324
|
+
sessionID: string;
|
|
239
325
|
};
|
|
240
326
|
};
|
|
241
|
-
export type
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
retries: number;
|
|
327
|
+
export type EventFileEdited = {
|
|
328
|
+
type: "file.edited";
|
|
329
|
+
properties: {
|
|
330
|
+
file: string;
|
|
246
331
|
};
|
|
247
332
|
};
|
|
248
|
-
export type
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
333
|
+
export type EventFileWatcherUpdated = {
|
|
334
|
+
type: "file.watcher.updated";
|
|
335
|
+
properties: {
|
|
336
|
+
file: string;
|
|
337
|
+
event: "add" | "change" | "unlink";
|
|
253
338
|
};
|
|
254
339
|
};
|
|
255
|
-
export type
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
340
|
+
export type EventCommandExecuted = {
|
|
341
|
+
type: "command.executed";
|
|
342
|
+
properties: {
|
|
343
|
+
name: string;
|
|
344
|
+
sessionID: string;
|
|
345
|
+
arguments: string;
|
|
346
|
+
messageID: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
export type FileDiff = {
|
|
350
|
+
file: string;
|
|
351
|
+
before: string;
|
|
352
|
+
after: string;
|
|
353
|
+
additions: number;
|
|
354
|
+
deletions: number;
|
|
355
|
+
status?: "added" | "deleted" | "modified";
|
|
356
|
+
};
|
|
357
|
+
export type EventSessionDiff = {
|
|
358
|
+
type: "session.diff";
|
|
359
|
+
properties: {
|
|
360
|
+
sessionID: string;
|
|
361
|
+
diff: Array<FileDiff>;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
export type ProviderAuthError = {
|
|
365
|
+
name: "ProviderAuthError";
|
|
366
|
+
data: {
|
|
367
|
+
providerID: string;
|
|
368
|
+
message: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
export type UnknownError = {
|
|
372
|
+
name: "UnknownError";
|
|
373
|
+
data: {
|
|
374
|
+
message: string;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
export type MessageOutputLengthError = {
|
|
378
|
+
name: "MessageOutputLengthError";
|
|
379
|
+
data: {
|
|
380
|
+
[key: string]: unknown;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
export type MessageAbortedError = {
|
|
384
|
+
name: "MessageAbortedError";
|
|
385
|
+
data: {
|
|
386
|
+
message: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
export type StructuredOutputError = {
|
|
390
|
+
name: "StructuredOutputError";
|
|
391
|
+
data: {
|
|
392
|
+
message: string;
|
|
393
|
+
retries: number;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
export type ContextOverflowError = {
|
|
397
|
+
name: "ContextOverflowError";
|
|
398
|
+
data: {
|
|
399
|
+
message: string;
|
|
400
|
+
responseBody?: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
export type ApiError = {
|
|
404
|
+
name: "APIError";
|
|
405
|
+
data: {
|
|
406
|
+
message: string;
|
|
407
|
+
statusCode?: number;
|
|
260
408
|
isRetryable: boolean;
|
|
261
409
|
responseHeaders?: {
|
|
262
410
|
[key: string]: string;
|
|
@@ -267,6 +415,127 @@ export type ApiError = {
|
|
|
267
415
|
};
|
|
268
416
|
};
|
|
269
417
|
};
|
|
418
|
+
export type EventSessionError = {
|
|
419
|
+
type: "session.error";
|
|
420
|
+
properties: {
|
|
421
|
+
sessionID?: string;
|
|
422
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
export type EventVcsBranchUpdated = {
|
|
426
|
+
type: "vcs.branch.updated";
|
|
427
|
+
properties: {
|
|
428
|
+
branch?: string;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
export type EventKiloSessionsRemoteStatusChanged = {
|
|
432
|
+
type: "kilo-sessions.remote-status-changed";
|
|
433
|
+
properties: {
|
|
434
|
+
enabled: boolean;
|
|
435
|
+
connected: boolean;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
export type EventWorkspaceReady = {
|
|
439
|
+
type: "workspace.ready";
|
|
440
|
+
properties: {
|
|
441
|
+
name: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
export type EventWorkspaceFailed = {
|
|
445
|
+
type: "workspace.failed";
|
|
446
|
+
properties: {
|
|
447
|
+
message: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
export type Pty = {
|
|
451
|
+
id: string;
|
|
452
|
+
title: string;
|
|
453
|
+
command: string;
|
|
454
|
+
args: Array<string>;
|
|
455
|
+
cwd: string;
|
|
456
|
+
status: "running" | "exited";
|
|
457
|
+
pid: number;
|
|
458
|
+
};
|
|
459
|
+
export type EventPtyCreated = {
|
|
460
|
+
type: "pty.created";
|
|
461
|
+
properties: {
|
|
462
|
+
info: Pty;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
export type EventPtyUpdated = {
|
|
466
|
+
type: "pty.updated";
|
|
467
|
+
properties: {
|
|
468
|
+
info: Pty;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
export type EventPtyExited = {
|
|
472
|
+
type: "pty.exited";
|
|
473
|
+
properties: {
|
|
474
|
+
id: string;
|
|
475
|
+
exitCode: number;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
export type EventPtyDeleted = {
|
|
479
|
+
type: "pty.deleted";
|
|
480
|
+
properties: {
|
|
481
|
+
id: string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
export type EventWorktreeReady = {
|
|
485
|
+
type: "worktree.ready";
|
|
486
|
+
properties: {
|
|
487
|
+
name: string;
|
|
488
|
+
branch: string;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
export type EventWorktreeFailed = {
|
|
492
|
+
type: "worktree.failed";
|
|
493
|
+
properties: {
|
|
494
|
+
message: string;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
export type OutputFormatText = {
|
|
498
|
+
type: "text";
|
|
499
|
+
};
|
|
500
|
+
export type JsonSchema = {
|
|
501
|
+
[key: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
export type OutputFormatJsonSchema = {
|
|
504
|
+
type: "json_schema";
|
|
505
|
+
schema: JsonSchema;
|
|
506
|
+
retryCount?: number;
|
|
507
|
+
};
|
|
508
|
+
export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
|
|
509
|
+
export type UserMessage = {
|
|
510
|
+
id: string;
|
|
511
|
+
sessionID: string;
|
|
512
|
+
role: "user";
|
|
513
|
+
time: {
|
|
514
|
+
created: number;
|
|
515
|
+
};
|
|
516
|
+
format?: OutputFormat;
|
|
517
|
+
summary?: {
|
|
518
|
+
title?: string;
|
|
519
|
+
body?: string;
|
|
520
|
+
diffs: Array<FileDiff>;
|
|
521
|
+
};
|
|
522
|
+
agent: string;
|
|
523
|
+
model: {
|
|
524
|
+
providerID: string;
|
|
525
|
+
modelID: string;
|
|
526
|
+
};
|
|
527
|
+
system?: string;
|
|
528
|
+
tools?: {
|
|
529
|
+
[key: string]: boolean;
|
|
530
|
+
};
|
|
531
|
+
variant?: string;
|
|
532
|
+
editorContext?: {
|
|
533
|
+
visibleFiles?: Array<string>;
|
|
534
|
+
openTabs?: Array<string>;
|
|
535
|
+
activeFile?: string;
|
|
536
|
+
shell?: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
270
539
|
export type AssistantMessage = {
|
|
271
540
|
id: string;
|
|
272
541
|
sessionID: string;
|
|
@@ -305,6 +574,7 @@ export type Message = UserMessage | AssistantMessage;
|
|
|
305
574
|
export type EventMessageUpdated = {
|
|
306
575
|
type: "message.updated";
|
|
307
576
|
properties: {
|
|
577
|
+
sessionID: string;
|
|
308
578
|
info: Message;
|
|
309
579
|
};
|
|
310
580
|
};
|
|
@@ -543,18 +813,10 @@ export type CompactionPart = {
|
|
|
543
813
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
544
814
|
export type EventMessagePartUpdated = {
|
|
545
815
|
type: "message.part.updated";
|
|
546
|
-
properties: {
|
|
547
|
-
part: Part;
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
export type EventMessagePartDelta = {
|
|
551
|
-
type: "message.part.delta";
|
|
552
816
|
properties: {
|
|
553
817
|
sessionID: string;
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
field: string;
|
|
557
|
-
delta: string;
|
|
818
|
+
part: Part;
|
|
819
|
+
time: number;
|
|
558
820
|
};
|
|
559
821
|
};
|
|
560
822
|
export type EventMessagePartRemoved = {
|
|
@@ -565,418 +827,254 @@ export type EventMessagePartRemoved = {
|
|
|
565
827
|
partID: string;
|
|
566
828
|
};
|
|
567
829
|
};
|
|
568
|
-
export type
|
|
569
|
-
|
|
570
|
-
sessionID: string;
|
|
830
|
+
export type PermissionAction = "allow" | "deny" | "ask";
|
|
831
|
+
export type PermissionRule = {
|
|
571
832
|
permission: string;
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
833
|
+
pattern: string;
|
|
834
|
+
action: PermissionAction;
|
|
835
|
+
};
|
|
836
|
+
export type PermissionRuleset = Array<PermissionRule>;
|
|
837
|
+
export type Session = {
|
|
838
|
+
id: string;
|
|
839
|
+
slug: string;
|
|
840
|
+
projectID: string;
|
|
841
|
+
workspaceID?: string;
|
|
842
|
+
directory: string;
|
|
843
|
+
parentID?: string;
|
|
844
|
+
summary?: {
|
|
845
|
+
additions: number;
|
|
846
|
+
deletions: number;
|
|
847
|
+
files: number;
|
|
848
|
+
diffs?: Array<{
|
|
849
|
+
file: string;
|
|
850
|
+
additions: number;
|
|
851
|
+
deletions: number;
|
|
852
|
+
status?: "added" | "deleted" | "modified";
|
|
853
|
+
}>;
|
|
575
854
|
};
|
|
576
|
-
|
|
577
|
-
|
|
855
|
+
share?: {
|
|
856
|
+
url: string;
|
|
857
|
+
};
|
|
858
|
+
title: string;
|
|
859
|
+
version: string;
|
|
860
|
+
time: {
|
|
861
|
+
created: number;
|
|
862
|
+
updated: number;
|
|
863
|
+
compacting?: number;
|
|
864
|
+
archived?: number;
|
|
865
|
+
};
|
|
866
|
+
permission?: PermissionRuleset;
|
|
867
|
+
revert?: {
|
|
578
868
|
messageID: string;
|
|
579
|
-
|
|
869
|
+
partID?: string;
|
|
870
|
+
snapshot?: string;
|
|
871
|
+
diff?: string;
|
|
580
872
|
};
|
|
581
873
|
};
|
|
582
|
-
export type
|
|
583
|
-
type: "
|
|
584
|
-
properties:
|
|
585
|
-
};
|
|
586
|
-
export type EventPermissionReplied = {
|
|
587
|
-
type: "permission.replied";
|
|
588
|
-
properties: {
|
|
874
|
+
export type EventSessionCreated = {
|
|
875
|
+
type: "session.created";
|
|
876
|
+
properties: {
|
|
589
877
|
sessionID: string;
|
|
590
|
-
|
|
591
|
-
reply: "once" | "always" | "reject";
|
|
878
|
+
info: Session;
|
|
592
879
|
};
|
|
593
880
|
};
|
|
594
|
-
export type
|
|
595
|
-
type: "
|
|
596
|
-
} | {
|
|
597
|
-
type: "retry";
|
|
598
|
-
attempt: number;
|
|
599
|
-
message: string;
|
|
600
|
-
next: number;
|
|
601
|
-
} | {
|
|
602
|
-
type: "busy";
|
|
603
|
-
} | {
|
|
604
|
-
type: "offline";
|
|
605
|
-
requestID: string;
|
|
606
|
-
message: string;
|
|
607
|
-
};
|
|
608
|
-
export type EventSessionStatus = {
|
|
609
|
-
type: "session.status";
|
|
881
|
+
export type EventSessionUpdated = {
|
|
882
|
+
type: "session.updated";
|
|
610
883
|
properties: {
|
|
611
884
|
sessionID: string;
|
|
612
|
-
|
|
885
|
+
info: Session;
|
|
613
886
|
};
|
|
614
887
|
};
|
|
615
|
-
export type
|
|
616
|
-
type: "session.
|
|
888
|
+
export type EventSessionDeleted = {
|
|
889
|
+
type: "session.deleted";
|
|
617
890
|
properties: {
|
|
618
891
|
sessionID: string;
|
|
892
|
+
info: Session;
|
|
619
893
|
};
|
|
620
894
|
};
|
|
621
|
-
export type
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
label: string;
|
|
626
|
-
/**
|
|
627
|
-
* Explanation of choice
|
|
628
|
-
*/
|
|
629
|
-
description: string;
|
|
630
|
-
/**
|
|
631
|
-
* Optional agent/mode to switch to when selected (e.g. code, debug, orchestrator)
|
|
632
|
-
*/
|
|
633
|
-
mode?: string;
|
|
895
|
+
export type Event = EventProjectUpdated | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventLspClientDiagnostics | EventLspUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionTurnOpen | EventSessionTurnClose | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventFileWatcherUpdated | EventCommandExecuted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventKiloSessionsRemoteStatusChanged | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
|
|
896
|
+
export type GlobalEvent = {
|
|
897
|
+
directory: string;
|
|
898
|
+
payload: Event;
|
|
634
899
|
};
|
|
635
|
-
export type
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
*/
|
|
643
|
-
header: string;
|
|
644
|
-
/**
|
|
645
|
-
* Available choices
|
|
646
|
-
*/
|
|
647
|
-
options: Array<QuestionOption>;
|
|
648
|
-
/**
|
|
649
|
-
* Allow selecting multiple choices
|
|
650
|
-
*/
|
|
651
|
-
multiple?: boolean;
|
|
652
|
-
/**
|
|
653
|
-
* Allow typing a custom answer (default: true)
|
|
654
|
-
*/
|
|
655
|
-
custom?: boolean;
|
|
900
|
+
export type SyncEventMessageUpdated = {
|
|
901
|
+
type: "message.updated.1";
|
|
902
|
+
aggregate: "sessionID";
|
|
903
|
+
data: {
|
|
904
|
+
sessionID: string;
|
|
905
|
+
info: Message;
|
|
906
|
+
};
|
|
656
907
|
};
|
|
657
|
-
export type
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
*/
|
|
663
|
-
questions: Array<QuestionInfo>;
|
|
664
|
-
tool?: {
|
|
908
|
+
export type SyncEventMessageRemoved = {
|
|
909
|
+
type: "message.removed.1";
|
|
910
|
+
aggregate: "sessionID";
|
|
911
|
+
data: {
|
|
912
|
+
sessionID: string;
|
|
665
913
|
messageID: string;
|
|
666
|
-
callID: string;
|
|
667
914
|
};
|
|
668
915
|
};
|
|
669
|
-
export type
|
|
670
|
-
type: "
|
|
671
|
-
|
|
916
|
+
export type SyncEventMessagePartUpdated = {
|
|
917
|
+
type: "message.part.updated.1";
|
|
918
|
+
aggregate: "sessionID";
|
|
919
|
+
data: {
|
|
920
|
+
sessionID: string;
|
|
921
|
+
part: Part;
|
|
922
|
+
time: number;
|
|
923
|
+
};
|
|
672
924
|
};
|
|
673
|
-
export type
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
925
|
+
export type SyncEventMessagePartRemoved = {
|
|
926
|
+
type: "message.part.removed.1";
|
|
927
|
+
aggregate: "sessionID";
|
|
928
|
+
data: {
|
|
677
929
|
sessionID: string;
|
|
678
|
-
|
|
679
|
-
|
|
930
|
+
messageID: string;
|
|
931
|
+
partID: string;
|
|
680
932
|
};
|
|
681
933
|
};
|
|
682
|
-
export type
|
|
683
|
-
type: "
|
|
684
|
-
|
|
934
|
+
export type SyncEventSessionCreated = {
|
|
935
|
+
type: "session.created.1";
|
|
936
|
+
aggregate: "sessionID";
|
|
937
|
+
data: {
|
|
685
938
|
sessionID: string;
|
|
686
|
-
|
|
939
|
+
info: Session;
|
|
687
940
|
};
|
|
688
941
|
};
|
|
689
|
-
export type
|
|
690
|
-
type: "session.
|
|
691
|
-
|
|
942
|
+
export type SyncEventSessionUpdated = {
|
|
943
|
+
type: "session.updated.1";
|
|
944
|
+
aggregate: "sessionID";
|
|
945
|
+
data: {
|
|
692
946
|
sessionID: string;
|
|
947
|
+
info: {
|
|
948
|
+
id: string | null;
|
|
949
|
+
slug: string | null;
|
|
950
|
+
projectID: string | null;
|
|
951
|
+
workspaceID: string | null;
|
|
952
|
+
directory: string | null;
|
|
953
|
+
parentID: string | null;
|
|
954
|
+
summary: {
|
|
955
|
+
additions: number;
|
|
956
|
+
deletions: number;
|
|
957
|
+
files: number;
|
|
958
|
+
diffs?: Array<{
|
|
959
|
+
file: string;
|
|
960
|
+
additions: number;
|
|
961
|
+
deletions: number;
|
|
962
|
+
status?: "added" | "deleted" | "modified";
|
|
963
|
+
}>;
|
|
964
|
+
} | null;
|
|
965
|
+
share?: {
|
|
966
|
+
url: string | null;
|
|
967
|
+
};
|
|
968
|
+
title: string | null;
|
|
969
|
+
version: string | null;
|
|
970
|
+
time?: {
|
|
971
|
+
created: number | null;
|
|
972
|
+
updated: number | null;
|
|
973
|
+
compacting: number | null;
|
|
974
|
+
archived: number | null;
|
|
975
|
+
};
|
|
976
|
+
permission: PermissionRuleset | null;
|
|
977
|
+
revert: {
|
|
978
|
+
messageID: string;
|
|
979
|
+
partID?: string;
|
|
980
|
+
snapshot?: string;
|
|
981
|
+
diff?: string;
|
|
982
|
+
} | null;
|
|
983
|
+
};
|
|
693
984
|
};
|
|
694
985
|
};
|
|
695
|
-
export type
|
|
696
|
-
type: "
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
986
|
+
export type SyncEventSessionDeleted = {
|
|
987
|
+
type: "session.deleted.1";
|
|
988
|
+
aggregate: "sessionID";
|
|
989
|
+
data: {
|
|
990
|
+
sessionID: string;
|
|
991
|
+
info: Session;
|
|
700
992
|
};
|
|
701
993
|
};
|
|
702
|
-
export type
|
|
994
|
+
export type SyncEvent = {
|
|
995
|
+
payload: SyncEvent;
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* Log level
|
|
999
|
+
*/
|
|
1000
|
+
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
1001
|
+
/**
|
|
1002
|
+
* Server configuration for kilo serve and web commands
|
|
1003
|
+
*/
|
|
1004
|
+
export type ServerConfig = {
|
|
703
1005
|
/**
|
|
704
|
-
*
|
|
1006
|
+
* Port to listen on
|
|
705
1007
|
*/
|
|
706
|
-
|
|
1008
|
+
port?: number;
|
|
707
1009
|
/**
|
|
708
|
-
*
|
|
1010
|
+
* Hostname to listen on
|
|
709
1011
|
*/
|
|
710
|
-
|
|
1012
|
+
hostname?: string;
|
|
711
1013
|
/**
|
|
712
|
-
*
|
|
1014
|
+
* Enable mDNS service discovery
|
|
713
1015
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
export type EventCommandExecuted = {
|
|
724
|
-
type: "command.executed";
|
|
725
|
-
properties: {
|
|
726
|
-
name: string;
|
|
727
|
-
sessionID: string;
|
|
728
|
-
arguments: string;
|
|
729
|
-
messageID: string;
|
|
730
|
-
};
|
|
1016
|
+
mdns?: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* Custom domain name for mDNS service (default: kilo.local)
|
|
1019
|
+
*/
|
|
1020
|
+
mdnsDomain?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Additional domains to allow for CORS
|
|
1023
|
+
*/
|
|
1024
|
+
cors?: Array<string>;
|
|
731
1025
|
};
|
|
732
|
-
export type
|
|
733
|
-
export type
|
|
734
|
-
|
|
735
|
-
pattern: string;
|
|
736
|
-
action: PermissionAction;
|
|
1026
|
+
export type PermissionActionConfig = "ask" | "allow" | "deny" | null;
|
|
1027
|
+
export type PermissionObjectConfig = {
|
|
1028
|
+
[key: string]: PermissionActionConfig;
|
|
737
1029
|
};
|
|
738
|
-
export type
|
|
739
|
-
export type
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
1030
|
+
export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig;
|
|
1031
|
+
export type PermissionConfig = {
|
|
1032
|
+
__originalKeys?: Array<string>;
|
|
1033
|
+
read?: PermissionRuleConfig;
|
|
1034
|
+
edit?: PermissionRuleConfig;
|
|
1035
|
+
glob?: PermissionRuleConfig;
|
|
1036
|
+
grep?: PermissionRuleConfig;
|
|
1037
|
+
list?: PermissionRuleConfig;
|
|
1038
|
+
bash?: PermissionRuleConfig;
|
|
1039
|
+
task?: PermissionRuleConfig;
|
|
1040
|
+
external_directory?: PermissionRuleConfig;
|
|
1041
|
+
todowrite?: PermissionActionConfig;
|
|
1042
|
+
question?: PermissionActionConfig;
|
|
1043
|
+
webfetch?: PermissionActionConfig;
|
|
1044
|
+
websearch?: PermissionActionConfig;
|
|
1045
|
+
codesearch?: PermissionActionConfig;
|
|
1046
|
+
lsp?: PermissionRuleConfig;
|
|
1047
|
+
doom_loop?: PermissionActionConfig;
|
|
1048
|
+
skill?: PermissionRuleConfig;
|
|
1049
|
+
[key: string]: PermissionRuleConfig | Array<string> | PermissionActionConfig | undefined;
|
|
1050
|
+
} | PermissionActionConfig;
|
|
1051
|
+
export type AgentConfig = {
|
|
1052
|
+
model?: string | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Default model variant for this agent (applies only when using the agent's configured model).
|
|
1055
|
+
*/
|
|
1056
|
+
variant?: string;
|
|
1057
|
+
temperature?: number;
|
|
1058
|
+
top_p?: number;
|
|
1059
|
+
prompt?: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* @deprecated Use 'permission' field instead
|
|
1062
|
+
*/
|
|
1063
|
+
tools?: {
|
|
1064
|
+
[key: string]: boolean;
|
|
767
1065
|
};
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
};
|
|
781
|
-
};
|
|
782
|
-
export type EventSessionUpdated = {
|
|
783
|
-
type: "session.updated";
|
|
784
|
-
properties: {
|
|
785
|
-
info: Session;
|
|
786
|
-
};
|
|
787
|
-
};
|
|
788
|
-
export type EventSessionDeleted = {
|
|
789
|
-
type: "session.deleted";
|
|
790
|
-
properties: {
|
|
791
|
-
info: Session;
|
|
792
|
-
};
|
|
793
|
-
};
|
|
794
|
-
export type EventSessionDiff = {
|
|
795
|
-
type: "session.diff";
|
|
796
|
-
properties: {
|
|
797
|
-
sessionID: string;
|
|
798
|
-
diff: Array<FileDiff>;
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
export type EventSessionError = {
|
|
802
|
-
type: "session.error";
|
|
803
|
-
properties: {
|
|
804
|
-
sessionID?: string;
|
|
805
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
|
-
export type EventSessionTurnOpen = {
|
|
809
|
-
type: "session.turn.open";
|
|
810
|
-
properties: {
|
|
811
|
-
sessionID: string;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
export type EventSessionTurnClose = {
|
|
815
|
-
type: "session.turn.close";
|
|
816
|
-
properties: {
|
|
817
|
-
sessionID: string;
|
|
818
|
-
reason: "completed" | "error" | "interrupted";
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
export type EventVcsBranchUpdated = {
|
|
822
|
-
type: "vcs.branch.updated";
|
|
823
|
-
properties: {
|
|
824
|
-
branch?: string;
|
|
825
|
-
};
|
|
826
|
-
};
|
|
827
|
-
export type EventWorkspaceReady = {
|
|
828
|
-
type: "workspace.ready";
|
|
829
|
-
properties: {
|
|
830
|
-
name: string;
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
export type EventWorkspaceFailed = {
|
|
834
|
-
type: "workspace.failed";
|
|
835
|
-
properties: {
|
|
836
|
-
message: string;
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
export type Pty = {
|
|
840
|
-
id: string;
|
|
841
|
-
title: string;
|
|
842
|
-
command: string;
|
|
843
|
-
args: Array<string>;
|
|
844
|
-
cwd: string;
|
|
845
|
-
status: "running" | "exited";
|
|
846
|
-
pid: number;
|
|
847
|
-
};
|
|
848
|
-
export type EventPtyCreated = {
|
|
849
|
-
type: "pty.created";
|
|
850
|
-
properties: {
|
|
851
|
-
info: Pty;
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
export type EventPtyUpdated = {
|
|
855
|
-
type: "pty.updated";
|
|
856
|
-
properties: {
|
|
857
|
-
info: Pty;
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
export type EventPtyExited = {
|
|
861
|
-
type: "pty.exited";
|
|
862
|
-
properties: {
|
|
863
|
-
id: string;
|
|
864
|
-
exitCode: number;
|
|
865
|
-
};
|
|
866
|
-
};
|
|
867
|
-
export type EventPtyDeleted = {
|
|
868
|
-
type: "pty.deleted";
|
|
869
|
-
properties: {
|
|
870
|
-
id: string;
|
|
871
|
-
};
|
|
872
|
-
};
|
|
873
|
-
export type EventWorktreeReady = {
|
|
874
|
-
type: "worktree.ready";
|
|
875
|
-
properties: {
|
|
876
|
-
name: string;
|
|
877
|
-
branch: string;
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
export type EventWorktreeFailed = {
|
|
881
|
-
type: "worktree.failed";
|
|
882
|
-
properties: {
|
|
883
|
-
message: string;
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
export type EventKiloSessionsRemoteStatusChanged = {
|
|
887
|
-
type: "kilo-sessions.remote-status-changed";
|
|
888
|
-
properties: {
|
|
889
|
-
enabled: boolean;
|
|
890
|
-
connected: boolean;
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
|
-
export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventGlobalConfigUpdated | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionNetworkAsked | EventSessionNetworkReplied | EventSessionNetworkRejected | EventSessionNetworkRestored | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartDelta | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionTurnOpen | EventSessionTurnClose | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed | EventKiloSessionsRemoteStatusChanged;
|
|
894
|
-
export type GlobalEvent = {
|
|
895
|
-
directory: string;
|
|
896
|
-
payload: Event;
|
|
897
|
-
};
|
|
898
|
-
/**
|
|
899
|
-
* Log level
|
|
900
|
-
*/
|
|
901
|
-
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
902
|
-
/**
|
|
903
|
-
* Server configuration for kilo serve and web commands
|
|
904
|
-
*/
|
|
905
|
-
export type ServerConfig = {
|
|
906
|
-
/**
|
|
907
|
-
* Port to listen on
|
|
908
|
-
*/
|
|
909
|
-
port?: number;
|
|
910
|
-
/**
|
|
911
|
-
* Hostname to listen on
|
|
912
|
-
*/
|
|
913
|
-
hostname?: string;
|
|
914
|
-
/**
|
|
915
|
-
* Enable mDNS service discovery
|
|
916
|
-
*/
|
|
917
|
-
mdns?: boolean;
|
|
918
|
-
/**
|
|
919
|
-
* Custom domain name for mDNS service (default: kilo.local)
|
|
920
|
-
*/
|
|
921
|
-
mdnsDomain?: string;
|
|
922
|
-
/**
|
|
923
|
-
* Additional domains to allow for CORS
|
|
924
|
-
*/
|
|
925
|
-
cors?: Array<string>;
|
|
926
|
-
};
|
|
927
|
-
export type PermissionActionConfig = "ask" | "allow" | "deny" | null;
|
|
928
|
-
export type PermissionObjectConfig = {
|
|
929
|
-
[key: string]: PermissionActionConfig;
|
|
930
|
-
};
|
|
931
|
-
export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig;
|
|
932
|
-
export type PermissionConfig = {
|
|
933
|
-
__originalKeys?: Array<string>;
|
|
934
|
-
read?: PermissionRuleConfig;
|
|
935
|
-
edit?: PermissionRuleConfig;
|
|
936
|
-
glob?: PermissionRuleConfig;
|
|
937
|
-
grep?: PermissionRuleConfig;
|
|
938
|
-
list?: PermissionRuleConfig;
|
|
939
|
-
bash?: PermissionRuleConfig;
|
|
940
|
-
task?: PermissionRuleConfig;
|
|
941
|
-
external_directory?: PermissionRuleConfig;
|
|
942
|
-
todowrite?: PermissionActionConfig;
|
|
943
|
-
todoread?: PermissionActionConfig;
|
|
944
|
-
question?: PermissionActionConfig;
|
|
945
|
-
webfetch?: PermissionActionConfig;
|
|
946
|
-
websearch?: PermissionActionConfig;
|
|
947
|
-
codesearch?: PermissionActionConfig;
|
|
948
|
-
lsp?: PermissionRuleConfig;
|
|
949
|
-
doom_loop?: PermissionActionConfig;
|
|
950
|
-
skill?: PermissionRuleConfig;
|
|
951
|
-
[key: string]: PermissionRuleConfig | Array<string> | PermissionActionConfig | undefined;
|
|
952
|
-
} | PermissionActionConfig;
|
|
953
|
-
export type AgentConfig = {
|
|
954
|
-
model?: string | null;
|
|
955
|
-
/**
|
|
956
|
-
* Default model variant for this agent (applies only when using the agent's configured model).
|
|
957
|
-
*/
|
|
958
|
-
variant?: string;
|
|
959
|
-
temperature?: number;
|
|
960
|
-
top_p?: number;
|
|
961
|
-
prompt?: string;
|
|
962
|
-
/**
|
|
963
|
-
* @deprecated Use 'permission' field instead
|
|
964
|
-
*/
|
|
965
|
-
tools?: {
|
|
966
|
-
[key: string]: boolean;
|
|
967
|
-
};
|
|
968
|
-
disable?: boolean;
|
|
969
|
-
/**
|
|
970
|
-
* Description of when to use the agent
|
|
971
|
-
*/
|
|
972
|
-
description?: string;
|
|
973
|
-
mode?: "subagent" | "primary" | "all";
|
|
974
|
-
/**
|
|
975
|
-
* Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
|
|
976
|
-
*/
|
|
977
|
-
hidden?: boolean;
|
|
978
|
-
options?: {
|
|
979
|
-
[key: string]: unknown;
|
|
1066
|
+
disable?: boolean;
|
|
1067
|
+
/**
|
|
1068
|
+
* Description of when to use the agent
|
|
1069
|
+
*/
|
|
1070
|
+
description?: string;
|
|
1071
|
+
mode?: "subagent" | "primary" | "all";
|
|
1072
|
+
/**
|
|
1073
|
+
* Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
|
|
1074
|
+
*/
|
|
1075
|
+
hidden?: boolean;
|
|
1076
|
+
options?: {
|
|
1077
|
+
[key: string]: unknown;
|
|
980
1078
|
};
|
|
981
1079
|
/**
|
|
982
1080
|
* Hex color code (e.g., #FF5733) or theme color (e.g., primary)
|
|
@@ -1084,7 +1182,11 @@ export type ProviderConfig = {
|
|
|
1084
1182
|
* Timeout in milliseconds for requests to this provider. Default is 120000 (2 minutes). Set to false to disable timeout.
|
|
1085
1183
|
*/
|
|
1086
1184
|
timeout?: number | false;
|
|
1087
|
-
|
|
1185
|
+
/**
|
|
1186
|
+
* Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.
|
|
1187
|
+
*/
|
|
1188
|
+
chunkTimeout?: number;
|
|
1189
|
+
[key: string]: unknown | string | boolean | number | false | number | undefined;
|
|
1088
1190
|
};
|
|
1089
1191
|
};
|
|
1090
1192
|
export type McpLocalConfig = {
|
|
@@ -1192,8 +1294,16 @@ export type Config = {
|
|
|
1192
1294
|
watcher?: {
|
|
1193
1295
|
ignore?: Array<string>;
|
|
1194
1296
|
};
|
|
1195
|
-
|
|
1297
|
+
/**
|
|
1298
|
+
* Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.
|
|
1299
|
+
*/
|
|
1196
1300
|
snapshot?: boolean;
|
|
1301
|
+
plugin?: Array<string | [
|
|
1302
|
+
string,
|
|
1303
|
+
{
|
|
1304
|
+
[key: string]: unknown;
|
|
1305
|
+
}
|
|
1306
|
+
]>;
|
|
1197
1307
|
/**
|
|
1198
1308
|
* Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
|
|
1199
1309
|
*/
|
|
@@ -1614,6 +1724,31 @@ export type SubtaskPartInput = {
|
|
|
1614
1724
|
export type ProviderAuthMethod = {
|
|
1615
1725
|
type: "oauth" | "api";
|
|
1616
1726
|
label: string;
|
|
1727
|
+
prompts?: Array<{
|
|
1728
|
+
type: "text";
|
|
1729
|
+
key: string;
|
|
1730
|
+
message: string;
|
|
1731
|
+
placeholder?: string;
|
|
1732
|
+
when?: {
|
|
1733
|
+
key: string;
|
|
1734
|
+
op: "eq" | "neq";
|
|
1735
|
+
value: string;
|
|
1736
|
+
};
|
|
1737
|
+
} | {
|
|
1738
|
+
type: "select";
|
|
1739
|
+
key: string;
|
|
1740
|
+
message: string;
|
|
1741
|
+
options: Array<{
|
|
1742
|
+
label: string;
|
|
1743
|
+
value: string;
|
|
1744
|
+
hint?: string;
|
|
1745
|
+
}>;
|
|
1746
|
+
when?: {
|
|
1747
|
+
key: string;
|
|
1748
|
+
op: "eq" | "neq";
|
|
1749
|
+
value: string;
|
|
1750
|
+
};
|
|
1751
|
+
}>;
|
|
1617
1752
|
};
|
|
1618
1753
|
export type ProviderAuthAuthorization = {
|
|
1619
1754
|
url: string;
|
|
@@ -1688,7 +1823,7 @@ export type Path = {
|
|
|
1688
1823
|
directory: string;
|
|
1689
1824
|
};
|
|
1690
1825
|
export type VcsInfo = {
|
|
1691
|
-
branch
|
|
1826
|
+
branch?: string;
|
|
1692
1827
|
};
|
|
1693
1828
|
export type Command = {
|
|
1694
1829
|
name: string;
|
|
@@ -1704,10 +1839,10 @@ export type Agent = {
|
|
|
1704
1839
|
name: string;
|
|
1705
1840
|
displayName?: string;
|
|
1706
1841
|
description?: string;
|
|
1842
|
+
deprecated?: boolean;
|
|
1707
1843
|
mode: "subagent" | "primary" | "all";
|
|
1708
1844
|
native?: boolean;
|
|
1709
1845
|
hidden?: boolean;
|
|
1710
|
-
deprecated?: boolean;
|
|
1711
1846
|
topP?: number;
|
|
1712
1847
|
temperature?: number;
|
|
1713
1848
|
color?: string;
|
|
@@ -1763,6 +1898,19 @@ export type GlobalEventResponses = {
|
|
|
1763
1898
|
200: GlobalEvent;
|
|
1764
1899
|
};
|
|
1765
1900
|
export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
|
|
1901
|
+
export type GlobalSyncEventSubscribeData = {
|
|
1902
|
+
body?: never;
|
|
1903
|
+
path?: never;
|
|
1904
|
+
query?: never;
|
|
1905
|
+
url: "/global/sync-event";
|
|
1906
|
+
};
|
|
1907
|
+
export type GlobalSyncEventSubscribeResponses = {
|
|
1908
|
+
/**
|
|
1909
|
+
* Event stream
|
|
1910
|
+
*/
|
|
1911
|
+
200: SyncEvent;
|
|
1912
|
+
};
|
|
1913
|
+
export type GlobalSyncEventSubscribeResponse = GlobalSyncEventSubscribeResponses[keyof GlobalSyncEventSubscribeResponses];
|
|
1766
1914
|
export type GlobalConfigGetData = {
|
|
1767
1915
|
body?: never;
|
|
1768
1916
|
path?: never;
|
|
@@ -1809,65 +1957,45 @@ export type GlobalDisposeResponses = {
|
|
|
1809
1957
|
200: boolean;
|
|
1810
1958
|
};
|
|
1811
1959
|
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
|
|
1812
|
-
export type
|
|
1813
|
-
body?:
|
|
1960
|
+
export type GlobalUpgradeData = {
|
|
1961
|
+
body?: {
|
|
1962
|
+
target?: string;
|
|
1963
|
+
};
|
|
1814
1964
|
path?: never;
|
|
1815
1965
|
query?: never;
|
|
1816
|
-
url: "/
|
|
1966
|
+
url: "/global/upgrade";
|
|
1817
1967
|
};
|
|
1818
|
-
export type
|
|
1968
|
+
export type GlobalUpgradeErrors = {
|
|
1819
1969
|
/**
|
|
1820
|
-
*
|
|
1970
|
+
* Bad request
|
|
1971
|
+
*/
|
|
1972
|
+
400: BadRequestError;
|
|
1973
|
+
};
|
|
1974
|
+
export type GlobalUpgradeError = GlobalUpgradeErrors[keyof GlobalUpgradeErrors];
|
|
1975
|
+
export type GlobalUpgradeResponses = {
|
|
1976
|
+
/**
|
|
1977
|
+
* Upgrade result
|
|
1821
1978
|
*/
|
|
1822
1979
|
200: {
|
|
1823
|
-
|
|
1824
|
-
|
|
1980
|
+
success: true;
|
|
1981
|
+
version: string;
|
|
1982
|
+
} | {
|
|
1983
|
+
success: false;
|
|
1984
|
+
error: string;
|
|
1825
1985
|
};
|
|
1826
1986
|
};
|
|
1827
|
-
export type
|
|
1828
|
-
export type
|
|
1987
|
+
export type GlobalUpgradeResponse = GlobalUpgradeResponses[keyof GlobalUpgradeResponses];
|
|
1988
|
+
export type AuthRemoveData = {
|
|
1829
1989
|
body?: never;
|
|
1830
|
-
path
|
|
1990
|
+
path: {
|
|
1991
|
+
providerID: string;
|
|
1992
|
+
};
|
|
1831
1993
|
query?: never;
|
|
1832
|
-
url: "/
|
|
1994
|
+
url: "/auth/{providerID}";
|
|
1833
1995
|
};
|
|
1834
|
-
export type
|
|
1996
|
+
export type AuthRemoveErrors = {
|
|
1835
1997
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
*/
|
|
1838
|
-
200: {
|
|
1839
|
-
enabled: boolean;
|
|
1840
|
-
connected: boolean;
|
|
1841
|
-
};
|
|
1842
|
-
};
|
|
1843
|
-
export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
|
|
1844
|
-
export type RemoteStatusData = {
|
|
1845
|
-
body?: never;
|
|
1846
|
-
path?: never;
|
|
1847
|
-
query?: never;
|
|
1848
|
-
url: "/remote/status";
|
|
1849
|
-
};
|
|
1850
|
-
export type RemoteStatusResponses = {
|
|
1851
|
-
/**
|
|
1852
|
-
* Remote connection status
|
|
1853
|
-
*/
|
|
1854
|
-
200: {
|
|
1855
|
-
enabled: boolean;
|
|
1856
|
-
connected: boolean;
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
|
|
1860
|
-
export type AuthRemoveData = {
|
|
1861
|
-
body?: never;
|
|
1862
|
-
path: {
|
|
1863
|
-
providerID: string;
|
|
1864
|
-
};
|
|
1865
|
-
query?: never;
|
|
1866
|
-
url: "/auth/{providerID}";
|
|
1867
|
-
};
|
|
1868
|
-
export type AuthRemoveErrors = {
|
|
1869
|
-
/**
|
|
1870
|
-
* Bad request
|
|
1998
|
+
* Bad request
|
|
1871
1999
|
*/
|
|
1872
2000
|
400: BadRequestError;
|
|
1873
2001
|
};
|
|
@@ -1901,6 +2029,48 @@ export type AuthSetResponses = {
|
|
|
1901
2029
|
200: boolean;
|
|
1902
2030
|
};
|
|
1903
2031
|
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
2032
|
+
export type AppLogData = {
|
|
2033
|
+
body?: {
|
|
2034
|
+
/**
|
|
2035
|
+
* Service name for the log entry
|
|
2036
|
+
*/
|
|
2037
|
+
service: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* Log level
|
|
2040
|
+
*/
|
|
2041
|
+
level: "debug" | "info" | "error" | "warn";
|
|
2042
|
+
/**
|
|
2043
|
+
* Log message
|
|
2044
|
+
*/
|
|
2045
|
+
message: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* Additional metadata for the log entry
|
|
2048
|
+
*/
|
|
2049
|
+
extra?: {
|
|
2050
|
+
[key: string]: unknown;
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
2053
|
+
path?: never;
|
|
2054
|
+
query?: {
|
|
2055
|
+
directory?: string;
|
|
2056
|
+
workspace?: string;
|
|
2057
|
+
};
|
|
2058
|
+
url: "/log";
|
|
2059
|
+
};
|
|
2060
|
+
export type AppLogErrors = {
|
|
2061
|
+
/**
|
|
2062
|
+
* Bad request
|
|
2063
|
+
*/
|
|
2064
|
+
400: BadRequestError;
|
|
2065
|
+
};
|
|
2066
|
+
export type AppLogError = AppLogErrors[keyof AppLogErrors];
|
|
2067
|
+
export type AppLogResponses = {
|
|
2068
|
+
/**
|
|
2069
|
+
* Log entry written successfully
|
|
2070
|
+
*/
|
|
2071
|
+
200: boolean;
|
|
2072
|
+
};
|
|
2073
|
+
export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
1904
2074
|
export type ProjectListData = {
|
|
1905
2075
|
body?: never;
|
|
1906
2076
|
path?: never;
|
|
@@ -2621,6 +2791,7 @@ export type SessionCreateData = {
|
|
|
2621
2791
|
title?: string;
|
|
2622
2792
|
permission?: PermissionRuleset;
|
|
2623
2793
|
platform?: string;
|
|
2794
|
+
workspaceID?: string;
|
|
2624
2795
|
};
|
|
2625
2796
|
path?: never;
|
|
2626
2797
|
query?: {
|
|
@@ -2792,9 +2963,6 @@ export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChil
|
|
|
2792
2963
|
export type SessionTodoData = {
|
|
2793
2964
|
body?: never;
|
|
2794
2965
|
path: {
|
|
2795
|
-
/**
|
|
2796
|
-
* Session ID
|
|
2797
|
-
*/
|
|
2798
2966
|
sessionID: string;
|
|
2799
2967
|
};
|
|
2800
2968
|
query?: {
|
|
@@ -2828,9 +2996,6 @@ export type SessionInitData = {
|
|
|
2828
2996
|
messageID: string;
|
|
2829
2997
|
};
|
|
2830
2998
|
path: {
|
|
2831
|
-
/**
|
|
2832
|
-
* Session ID
|
|
2833
|
-
*/
|
|
2834
2999
|
sessionID: string;
|
|
2835
3000
|
};
|
|
2836
3001
|
query?: {
|
|
@@ -2990,9 +3155,6 @@ export type SessionSummarizeData = {
|
|
|
2990
3155
|
auto?: boolean;
|
|
2991
3156
|
};
|
|
2992
3157
|
path: {
|
|
2993
|
-
/**
|
|
2994
|
-
* Session ID
|
|
2995
|
-
*/
|
|
2996
3158
|
sessionID: string;
|
|
2997
3159
|
};
|
|
2998
3160
|
query?: {
|
|
@@ -3022,15 +3184,16 @@ export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSu
|
|
|
3022
3184
|
export type SessionMessagesData = {
|
|
3023
3185
|
body?: never;
|
|
3024
3186
|
path: {
|
|
3025
|
-
/**
|
|
3026
|
-
* Session ID
|
|
3027
|
-
*/
|
|
3028
3187
|
sessionID: string;
|
|
3029
3188
|
};
|
|
3030
3189
|
query?: {
|
|
3031
3190
|
directory?: string;
|
|
3032
3191
|
workspace?: string;
|
|
3192
|
+
/**
|
|
3193
|
+
* Maximum number of messages to return
|
|
3194
|
+
*/
|
|
3033
3195
|
limit?: number;
|
|
3196
|
+
before?: string;
|
|
3034
3197
|
};
|
|
3035
3198
|
url: "/session/{sessionID}/message";
|
|
3036
3199
|
};
|
|
@@ -3082,9 +3245,6 @@ export type SessionPromptData = {
|
|
|
3082
3245
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
3083
3246
|
};
|
|
3084
3247
|
path: {
|
|
3085
|
-
/**
|
|
3086
|
-
* Session ID
|
|
3087
|
-
*/
|
|
3088
3248
|
sessionID: string;
|
|
3089
3249
|
};
|
|
3090
3250
|
query?: {
|
|
@@ -3117,13 +3277,7 @@ export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptRe
|
|
|
3117
3277
|
export type SessionDeleteMessageData = {
|
|
3118
3278
|
body?: never;
|
|
3119
3279
|
path: {
|
|
3120
|
-
/**
|
|
3121
|
-
* Session ID
|
|
3122
|
-
*/
|
|
3123
3280
|
sessionID: string;
|
|
3124
|
-
/**
|
|
3125
|
-
* Message ID
|
|
3126
|
-
*/
|
|
3127
3281
|
messageID: string;
|
|
3128
3282
|
};
|
|
3129
3283
|
query?: {
|
|
@@ -3153,13 +3307,7 @@ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof S
|
|
|
3153
3307
|
export type SessionMessageData = {
|
|
3154
3308
|
body?: never;
|
|
3155
3309
|
path: {
|
|
3156
|
-
/**
|
|
3157
|
-
* Session ID
|
|
3158
|
-
*/
|
|
3159
3310
|
sessionID: string;
|
|
3160
|
-
/**
|
|
3161
|
-
* Message ID
|
|
3162
|
-
*/
|
|
3163
3311
|
messageID: string;
|
|
3164
3312
|
};
|
|
3165
3313
|
query?: {
|
|
@@ -3192,17 +3340,8 @@ export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessag
|
|
|
3192
3340
|
export type PartDeleteData = {
|
|
3193
3341
|
body?: never;
|
|
3194
3342
|
path: {
|
|
3195
|
-
/**
|
|
3196
|
-
* Session ID
|
|
3197
|
-
*/
|
|
3198
3343
|
sessionID: string;
|
|
3199
|
-
/**
|
|
3200
|
-
* Message ID
|
|
3201
|
-
*/
|
|
3202
3344
|
messageID: string;
|
|
3203
|
-
/**
|
|
3204
|
-
* Part ID
|
|
3205
|
-
*/
|
|
3206
3345
|
partID: string;
|
|
3207
3346
|
};
|
|
3208
3347
|
query?: {
|
|
@@ -3232,17 +3371,8 @@ export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
|
|
|
3232
3371
|
export type PartUpdateData = {
|
|
3233
3372
|
body?: Part;
|
|
3234
3373
|
path: {
|
|
3235
|
-
/**
|
|
3236
|
-
* Session ID
|
|
3237
|
-
*/
|
|
3238
3374
|
sessionID: string;
|
|
3239
|
-
/**
|
|
3240
|
-
* Message ID
|
|
3241
|
-
*/
|
|
3242
3375
|
messageID: string;
|
|
3243
|
-
/**
|
|
3244
|
-
* Part ID
|
|
3245
|
-
*/
|
|
3246
3376
|
partID: string;
|
|
3247
3377
|
};
|
|
3248
3378
|
query?: {
|
|
@@ -3296,9 +3426,6 @@ export type SessionPromptAsyncData = {
|
|
|
3296
3426
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
3297
3427
|
};
|
|
3298
3428
|
path: {
|
|
3299
|
-
/**
|
|
3300
|
-
* Session ID
|
|
3301
|
-
*/
|
|
3302
3429
|
sessionID: string;
|
|
3303
3430
|
};
|
|
3304
3431
|
query?: {
|
|
@@ -3343,9 +3470,6 @@ export type SessionCommandData = {
|
|
|
3343
3470
|
}>;
|
|
3344
3471
|
};
|
|
3345
3472
|
path: {
|
|
3346
|
-
/**
|
|
3347
|
-
* Session ID
|
|
3348
|
-
*/
|
|
3349
3473
|
sessionID: string;
|
|
3350
3474
|
};
|
|
3351
3475
|
query?: {
|
|
@@ -3385,9 +3509,6 @@ export type SessionShellData = {
|
|
|
3385
3509
|
command: string;
|
|
3386
3510
|
};
|
|
3387
3511
|
path: {
|
|
3388
|
-
/**
|
|
3389
|
-
* Session ID
|
|
3390
|
-
*/
|
|
3391
3512
|
sessionID: string;
|
|
3392
3513
|
};
|
|
3393
3514
|
query?: {
|
|
@@ -3606,37 +3727,6 @@ export type PermissionListResponses = {
|
|
|
3606
3727
|
200: Array<PermissionRequest>;
|
|
3607
3728
|
};
|
|
3608
3729
|
export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses];
|
|
3609
|
-
export type PermissionAllowEverythingData = {
|
|
3610
|
-
body?: {
|
|
3611
|
-
enable: boolean;
|
|
3612
|
-
requestID?: string;
|
|
3613
|
-
sessionID?: string;
|
|
3614
|
-
};
|
|
3615
|
-
path?: never;
|
|
3616
|
-
query?: {
|
|
3617
|
-
directory?: string;
|
|
3618
|
-
workspace?: string;
|
|
3619
|
-
};
|
|
3620
|
-
url: "/permission/allow-everything";
|
|
3621
|
-
};
|
|
3622
|
-
export type PermissionAllowEverythingErrors = {
|
|
3623
|
-
/**
|
|
3624
|
-
* Bad request
|
|
3625
|
-
*/
|
|
3626
|
-
400: BadRequestError;
|
|
3627
|
-
/**
|
|
3628
|
-
* Not found
|
|
3629
|
-
*/
|
|
3630
|
-
404: NotFoundError;
|
|
3631
|
-
};
|
|
3632
|
-
export type PermissionAllowEverythingError = PermissionAllowEverythingErrors[keyof PermissionAllowEverythingErrors];
|
|
3633
|
-
export type PermissionAllowEverythingResponses = {
|
|
3634
|
-
/**
|
|
3635
|
-
* Success
|
|
3636
|
-
*/
|
|
3637
|
-
200: boolean;
|
|
3638
|
-
};
|
|
3639
|
-
export type PermissionAllowEverythingResponse = PermissionAllowEverythingResponses[keyof PermissionAllowEverythingResponses];
|
|
3640
3730
|
export type QuestionListData = {
|
|
3641
3731
|
body?: never;
|
|
3642
3732
|
path?: never;
|
|
@@ -3716,80 +3806,6 @@ export type QuestionRejectResponses = {
|
|
|
3716
3806
|
200: boolean;
|
|
3717
3807
|
};
|
|
3718
3808
|
export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses];
|
|
3719
|
-
export type NetworkListData = {
|
|
3720
|
-
body?: never;
|
|
3721
|
-
path?: never;
|
|
3722
|
-
query?: {
|
|
3723
|
-
directory?: string;
|
|
3724
|
-
workspace?: string;
|
|
3725
|
-
};
|
|
3726
|
-
url: "/network";
|
|
3727
|
-
};
|
|
3728
|
-
export type NetworkListResponses = {
|
|
3729
|
-
/**
|
|
3730
|
-
* List of pending network reconnect requests
|
|
3731
|
-
*/
|
|
3732
|
-
200: Array<SessionNetworkWait>;
|
|
3733
|
-
};
|
|
3734
|
-
export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses];
|
|
3735
|
-
export type NetworkReplyData = {
|
|
3736
|
-
body?: never;
|
|
3737
|
-
path: {
|
|
3738
|
-
requestID: string;
|
|
3739
|
-
};
|
|
3740
|
-
query?: {
|
|
3741
|
-
directory?: string;
|
|
3742
|
-
workspace?: string;
|
|
3743
|
-
};
|
|
3744
|
-
url: "/network/{requestID}/reply";
|
|
3745
|
-
};
|
|
3746
|
-
export type NetworkReplyErrors = {
|
|
3747
|
-
/**
|
|
3748
|
-
* Bad request
|
|
3749
|
-
*/
|
|
3750
|
-
400: BadRequestError;
|
|
3751
|
-
/**
|
|
3752
|
-
* Not found
|
|
3753
|
-
*/
|
|
3754
|
-
404: NotFoundError;
|
|
3755
|
-
};
|
|
3756
|
-
export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors];
|
|
3757
|
-
export type NetworkReplyResponses = {
|
|
3758
|
-
/**
|
|
3759
|
-
* Network wait resumed successfully
|
|
3760
|
-
*/
|
|
3761
|
-
200: boolean;
|
|
3762
|
-
};
|
|
3763
|
-
export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses];
|
|
3764
|
-
export type NetworkRejectData = {
|
|
3765
|
-
body?: never;
|
|
3766
|
-
path: {
|
|
3767
|
-
requestID: string;
|
|
3768
|
-
};
|
|
3769
|
-
query?: {
|
|
3770
|
-
directory?: string;
|
|
3771
|
-
workspace?: string;
|
|
3772
|
-
};
|
|
3773
|
-
url: "/network/{requestID}/reject";
|
|
3774
|
-
};
|
|
3775
|
-
export type NetworkRejectErrors = {
|
|
3776
|
-
/**
|
|
3777
|
-
* Bad request
|
|
3778
|
-
*/
|
|
3779
|
-
400: BadRequestError;
|
|
3780
|
-
/**
|
|
3781
|
-
* Not found
|
|
3782
|
-
*/
|
|
3783
|
-
404: NotFoundError;
|
|
3784
|
-
};
|
|
3785
|
-
export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors];
|
|
3786
|
-
export type NetworkRejectResponses = {
|
|
3787
|
-
/**
|
|
3788
|
-
* Network wait rejected successfully
|
|
3789
|
-
*/
|
|
3790
|
-
200: boolean;
|
|
3791
|
-
};
|
|
3792
|
-
export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses];
|
|
3793
3809
|
export type ProviderListData = {
|
|
3794
3810
|
body?: never;
|
|
3795
3811
|
path?: never;
|
|
@@ -3899,6 +3915,12 @@ export type ProviderOauthAuthorizeData = {
|
|
|
3899
3915
|
* Auth method index
|
|
3900
3916
|
*/
|
|
3901
3917
|
method: number;
|
|
3918
|
+
/**
|
|
3919
|
+
* Prompt inputs
|
|
3920
|
+
*/
|
|
3921
|
+
inputs?: {
|
|
3922
|
+
[key: string]: string;
|
|
3923
|
+
};
|
|
3902
3924
|
};
|
|
3903
3925
|
path: {
|
|
3904
3926
|
/**
|
|
@@ -3963,1528 +3985,1648 @@ export type ProviderOauthCallbackResponses = {
|
|
|
3963
3985
|
200: boolean;
|
|
3964
3986
|
};
|
|
3965
3987
|
export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
|
|
3966
|
-
export type
|
|
3967
|
-
body?:
|
|
3968
|
-
/**
|
|
3969
|
-
* Event name
|
|
3970
|
-
*/
|
|
3971
|
-
event: string;
|
|
3972
|
-
/**
|
|
3973
|
-
* Event properties
|
|
3974
|
-
*/
|
|
3975
|
-
properties?: {
|
|
3976
|
-
[key: string]: unknown;
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3988
|
+
export type FindTextData = {
|
|
3989
|
+
body?: never;
|
|
3979
3990
|
path?: never;
|
|
3980
|
-
query
|
|
3991
|
+
query: {
|
|
3981
3992
|
directory?: string;
|
|
3982
3993
|
workspace?: string;
|
|
3994
|
+
pattern: string;
|
|
3983
3995
|
};
|
|
3984
|
-
url: "/
|
|
3985
|
-
};
|
|
3986
|
-
export type TelemetryCaptureErrors = {
|
|
3987
|
-
/**
|
|
3988
|
-
* Bad request
|
|
3989
|
-
*/
|
|
3990
|
-
400: BadRequestError;
|
|
3996
|
+
url: "/find";
|
|
3991
3997
|
};
|
|
3992
|
-
export type
|
|
3993
|
-
export type TelemetryCaptureResponses = {
|
|
3998
|
+
export type FindTextResponses = {
|
|
3994
3999
|
/**
|
|
3995
|
-
*
|
|
4000
|
+
* Matches
|
|
3996
4001
|
*/
|
|
3997
|
-
200:
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4002
|
+
200: Array<{
|
|
4003
|
+
path: {
|
|
4004
|
+
text: string;
|
|
4005
|
+
};
|
|
4006
|
+
lines: {
|
|
4007
|
+
text: string;
|
|
4008
|
+
};
|
|
4009
|
+
line_number: number;
|
|
4010
|
+
absolute_offset: number;
|
|
4011
|
+
submatches: Array<{
|
|
4012
|
+
match: {
|
|
4013
|
+
text: string;
|
|
4014
|
+
};
|
|
4015
|
+
start: number;
|
|
4016
|
+
end: number;
|
|
4017
|
+
}>;
|
|
4018
|
+
}>;
|
|
4019
|
+
};
|
|
4020
|
+
export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
|
|
4021
|
+
export type FindFilesData = {
|
|
4022
|
+
body?: never;
|
|
4023
|
+
path?: never;
|
|
4024
|
+
query: {
|
|
4025
|
+
directory?: string;
|
|
4026
|
+
workspace?: string;
|
|
4027
|
+
query: string;
|
|
4028
|
+
dirs?: "true" | "false";
|
|
4029
|
+
type?: "file" | "directory";
|
|
4030
|
+
limit?: number;
|
|
4031
|
+
};
|
|
4032
|
+
url: "/find/file";
|
|
4033
|
+
};
|
|
4034
|
+
export type FindFilesResponses = {
|
|
4035
|
+
/**
|
|
4036
|
+
* File paths
|
|
4037
|
+
*/
|
|
4038
|
+
200: Array<string>;
|
|
4039
|
+
};
|
|
4040
|
+
export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
|
|
4041
|
+
export type FindSymbolsData = {
|
|
4042
|
+
body?: never;
|
|
4043
|
+
path?: never;
|
|
4044
|
+
query: {
|
|
4045
|
+
directory?: string;
|
|
4046
|
+
workspace?: string;
|
|
4047
|
+
query: string;
|
|
4048
|
+
};
|
|
4049
|
+
url: "/find/symbol";
|
|
4050
|
+
};
|
|
4051
|
+
export type FindSymbolsResponses = {
|
|
4052
|
+
/**
|
|
4053
|
+
* Symbols
|
|
4054
|
+
*/
|
|
4055
|
+
200: Array<Symbol>;
|
|
4056
|
+
};
|
|
4057
|
+
export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
|
|
4058
|
+
export type FileListData = {
|
|
4059
|
+
body?: never;
|
|
4060
|
+
path?: never;
|
|
4061
|
+
query: {
|
|
4062
|
+
directory?: string;
|
|
4063
|
+
workspace?: string;
|
|
4064
|
+
path: string;
|
|
4065
|
+
};
|
|
4066
|
+
url: "/file";
|
|
4067
|
+
};
|
|
4068
|
+
export type FileListResponses = {
|
|
4069
|
+
/**
|
|
4070
|
+
* Files and directories
|
|
4071
|
+
*/
|
|
4072
|
+
200: Array<FileNode>;
|
|
4073
|
+
};
|
|
4074
|
+
export type FileListResponse = FileListResponses[keyof FileListResponses];
|
|
4075
|
+
export type FileReadData = {
|
|
4076
|
+
body?: never;
|
|
4077
|
+
path?: never;
|
|
4078
|
+
query: {
|
|
4079
|
+
directory?: string;
|
|
4080
|
+
workspace?: string;
|
|
4005
4081
|
path: string;
|
|
4006
|
-
/**
|
|
4007
|
-
* Optional subset of files to include
|
|
4008
|
-
*/
|
|
4009
|
-
selectedFiles?: Array<string>;
|
|
4010
|
-
/**
|
|
4011
|
-
* Previously generated message — triggers regeneration with a different result
|
|
4012
|
-
*/
|
|
4013
|
-
previousMessage?: string;
|
|
4014
4082
|
};
|
|
4083
|
+
url: "/file/content";
|
|
4084
|
+
};
|
|
4085
|
+
export type FileReadResponses = {
|
|
4086
|
+
/**
|
|
4087
|
+
* File content
|
|
4088
|
+
*/
|
|
4089
|
+
200: FileContent;
|
|
4090
|
+
};
|
|
4091
|
+
export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
|
|
4092
|
+
export type FileStatusData = {
|
|
4093
|
+
body?: never;
|
|
4015
4094
|
path?: never;
|
|
4016
4095
|
query?: {
|
|
4017
4096
|
directory?: string;
|
|
4018
4097
|
workspace?: string;
|
|
4019
4098
|
};
|
|
4020
|
-
url: "/
|
|
4099
|
+
url: "/file/status";
|
|
4021
4100
|
};
|
|
4022
|
-
export type
|
|
4101
|
+
export type FileStatusResponses = {
|
|
4023
4102
|
/**
|
|
4024
|
-
*
|
|
4103
|
+
* File status
|
|
4025
4104
|
*/
|
|
4026
|
-
|
|
4105
|
+
200: Array<File>;
|
|
4027
4106
|
};
|
|
4028
|
-
export type
|
|
4029
|
-
export type
|
|
4107
|
+
export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
|
|
4108
|
+
export type EventSubscribeData = {
|
|
4109
|
+
body?: never;
|
|
4110
|
+
path?: never;
|
|
4111
|
+
query?: {
|
|
4112
|
+
directory?: string;
|
|
4113
|
+
workspace?: string;
|
|
4114
|
+
};
|
|
4115
|
+
url: "/event";
|
|
4116
|
+
};
|
|
4117
|
+
export type EventSubscribeResponses = {
|
|
4030
4118
|
/**
|
|
4031
|
-
*
|
|
4119
|
+
* Event stream
|
|
4120
|
+
*/
|
|
4121
|
+
200: Event;
|
|
4122
|
+
};
|
|
4123
|
+
export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
|
|
4124
|
+
export type McpStatusData = {
|
|
4125
|
+
body?: never;
|
|
4126
|
+
path?: never;
|
|
4127
|
+
query?: {
|
|
4128
|
+
directory?: string;
|
|
4129
|
+
workspace?: string;
|
|
4130
|
+
};
|
|
4131
|
+
url: "/mcp";
|
|
4132
|
+
};
|
|
4133
|
+
export type McpStatusResponses = {
|
|
4134
|
+
/**
|
|
4135
|
+
* MCP server status
|
|
4032
4136
|
*/
|
|
4033
4137
|
200: {
|
|
4034
|
-
|
|
4138
|
+
[key: string]: McpStatus;
|
|
4035
4139
|
};
|
|
4036
4140
|
};
|
|
4037
|
-
export type
|
|
4038
|
-
export type
|
|
4141
|
+
export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
|
|
4142
|
+
export type McpAddData = {
|
|
4039
4143
|
body?: {
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
*/
|
|
4043
|
-
text: string;
|
|
4144
|
+
name: string;
|
|
4145
|
+
config: McpLocalConfig | McpRemoteConfig;
|
|
4044
4146
|
};
|
|
4045
4147
|
path?: never;
|
|
4046
4148
|
query?: {
|
|
4047
4149
|
directory?: string;
|
|
4048
4150
|
workspace?: string;
|
|
4049
4151
|
};
|
|
4050
|
-
url: "/
|
|
4152
|
+
url: "/mcp";
|
|
4051
4153
|
};
|
|
4052
|
-
export type
|
|
4154
|
+
export type McpAddErrors = {
|
|
4053
4155
|
/**
|
|
4054
4156
|
* Bad request
|
|
4055
4157
|
*/
|
|
4056
4158
|
400: BadRequestError;
|
|
4057
4159
|
};
|
|
4058
|
-
export type
|
|
4059
|
-
export type
|
|
4160
|
+
export type McpAddError = McpAddErrors[keyof McpAddErrors];
|
|
4161
|
+
export type McpAddResponses = {
|
|
4060
4162
|
/**
|
|
4061
|
-
*
|
|
4163
|
+
* MCP server added successfully
|
|
4062
4164
|
*/
|
|
4063
4165
|
200: {
|
|
4064
|
-
|
|
4166
|
+
[key: string]: McpStatus;
|
|
4065
4167
|
};
|
|
4066
4168
|
};
|
|
4067
|
-
export type
|
|
4068
|
-
export type
|
|
4069
|
-
body?:
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
vcs?: string;
|
|
4073
|
-
name?: string;
|
|
4074
|
-
iconUrl?: string;
|
|
4075
|
-
iconColor?: string;
|
|
4076
|
-
timeCreated: number;
|
|
4077
|
-
timeUpdated: number;
|
|
4078
|
-
timeInitialized?: number;
|
|
4079
|
-
sandboxes: Array<string>;
|
|
4080
|
-
commands?: {
|
|
4081
|
-
start?: string;
|
|
4082
|
-
};
|
|
4169
|
+
export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
|
|
4170
|
+
export type McpAuthRemoveData = {
|
|
4171
|
+
body?: never;
|
|
4172
|
+
path: {
|
|
4173
|
+
name: string;
|
|
4083
4174
|
};
|
|
4084
|
-
path?: never;
|
|
4085
4175
|
query?: {
|
|
4086
4176
|
directory?: string;
|
|
4087
4177
|
workspace?: string;
|
|
4088
4178
|
};
|
|
4089
|
-
url: "/
|
|
4179
|
+
url: "/mcp/{name}/auth";
|
|
4090
4180
|
};
|
|
4091
|
-
export type
|
|
4181
|
+
export type McpAuthRemoveErrors = {
|
|
4092
4182
|
/**
|
|
4093
|
-
*
|
|
4183
|
+
* Not found
|
|
4094
4184
|
*/
|
|
4095
|
-
|
|
4185
|
+
404: NotFoundError;
|
|
4096
4186
|
};
|
|
4097
|
-
export type
|
|
4098
|
-
export type
|
|
4187
|
+
export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
|
|
4188
|
+
export type McpAuthRemoveResponses = {
|
|
4099
4189
|
/**
|
|
4100
|
-
*
|
|
4190
|
+
* OAuth credentials removed
|
|
4101
4191
|
*/
|
|
4102
4192
|
200: {
|
|
4103
|
-
|
|
4104
|
-
id: string;
|
|
4105
|
-
skipped?: boolean;
|
|
4193
|
+
success: true;
|
|
4106
4194
|
};
|
|
4107
4195
|
};
|
|
4108
|
-
export type
|
|
4109
|
-
export type
|
|
4110
|
-
body?:
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
force?: boolean;
|
|
4114
|
-
workspaceID?: string;
|
|
4115
|
-
parentID?: string;
|
|
4116
|
-
slug: string;
|
|
4117
|
-
directory: string;
|
|
4118
|
-
title: string;
|
|
4119
|
-
version: string;
|
|
4120
|
-
shareURL?: string;
|
|
4121
|
-
summary?: {
|
|
4122
|
-
additions: number;
|
|
4123
|
-
deletions: number;
|
|
4124
|
-
files: number;
|
|
4125
|
-
diffs?: Array<{
|
|
4126
|
-
[key: string]: unknown;
|
|
4127
|
-
}>;
|
|
4128
|
-
};
|
|
4129
|
-
revert?: {
|
|
4130
|
-
messageID: string;
|
|
4131
|
-
partID?: string;
|
|
4132
|
-
snapshot?: string;
|
|
4133
|
-
diff?: string;
|
|
4134
|
-
};
|
|
4135
|
-
permission?: {
|
|
4136
|
-
[key: string]: unknown;
|
|
4137
|
-
};
|
|
4138
|
-
timeCreated: number;
|
|
4139
|
-
timeUpdated: number;
|
|
4140
|
-
timeCompacting?: number;
|
|
4141
|
-
timeArchived?: number;
|
|
4196
|
+
export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
|
|
4197
|
+
export type McpAuthStartData = {
|
|
4198
|
+
body?: never;
|
|
4199
|
+
path: {
|
|
4200
|
+
name: string;
|
|
4142
4201
|
};
|
|
4143
|
-
path?: never;
|
|
4144
4202
|
query?: {
|
|
4145
4203
|
directory?: string;
|
|
4146
4204
|
workspace?: string;
|
|
4147
4205
|
};
|
|
4148
|
-
url: "/
|
|
4206
|
+
url: "/mcp/{name}/auth";
|
|
4149
4207
|
};
|
|
4150
|
-
export type
|
|
4208
|
+
export type McpAuthStartErrors = {
|
|
4151
4209
|
/**
|
|
4152
4210
|
* Bad request
|
|
4153
4211
|
*/
|
|
4154
4212
|
400: BadRequestError;
|
|
4213
|
+
/**
|
|
4214
|
+
* Not found
|
|
4215
|
+
*/
|
|
4216
|
+
404: NotFoundError;
|
|
4155
4217
|
};
|
|
4156
|
-
export type
|
|
4157
|
-
export type
|
|
4218
|
+
export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
|
|
4219
|
+
export type McpAuthStartResponses = {
|
|
4158
4220
|
/**
|
|
4159
|
-
*
|
|
4221
|
+
* OAuth flow started
|
|
4160
4222
|
*/
|
|
4161
4223
|
200: {
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4224
|
+
/**
|
|
4225
|
+
* URL to open in browser for authorization
|
|
4226
|
+
*/
|
|
4227
|
+
authorizationUrl: string;
|
|
4165
4228
|
};
|
|
4166
4229
|
};
|
|
4167
|
-
export type
|
|
4168
|
-
export type
|
|
4230
|
+
export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
|
|
4231
|
+
export type McpAuthCallbackData = {
|
|
4169
4232
|
body?: {
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
};
|
|
4178
|
-
agent: string;
|
|
4179
|
-
model: {
|
|
4180
|
-
providerID: string;
|
|
4181
|
-
modelID: string;
|
|
4182
|
-
};
|
|
4183
|
-
tools?: {
|
|
4184
|
-
[key: string]: boolean;
|
|
4185
|
-
};
|
|
4186
|
-
} | {
|
|
4187
|
-
role: "assistant";
|
|
4188
|
-
time: {
|
|
4189
|
-
created: number;
|
|
4190
|
-
completed?: number;
|
|
4191
|
-
};
|
|
4192
|
-
parentID: string;
|
|
4193
|
-
modelID: string;
|
|
4194
|
-
providerID: string;
|
|
4195
|
-
mode: string;
|
|
4196
|
-
agent: string;
|
|
4197
|
-
path: {
|
|
4198
|
-
cwd: string;
|
|
4199
|
-
root: string;
|
|
4200
|
-
};
|
|
4201
|
-
summary?: boolean;
|
|
4202
|
-
cost: number;
|
|
4203
|
-
tokens: {
|
|
4204
|
-
total?: number;
|
|
4205
|
-
input: number;
|
|
4206
|
-
output: number;
|
|
4207
|
-
reasoning: number;
|
|
4208
|
-
cache: {
|
|
4209
|
-
read: number;
|
|
4210
|
-
write: number;
|
|
4211
|
-
};
|
|
4212
|
-
};
|
|
4213
|
-
structured?: unknown;
|
|
4214
|
-
variant?: string;
|
|
4215
|
-
finish?: string;
|
|
4216
|
-
};
|
|
4233
|
+
/**
|
|
4234
|
+
* Authorization code from OAuth callback
|
|
4235
|
+
*/
|
|
4236
|
+
code: string;
|
|
4237
|
+
};
|
|
4238
|
+
path: {
|
|
4239
|
+
name: string;
|
|
4217
4240
|
};
|
|
4218
|
-
path?: never;
|
|
4219
4241
|
query?: {
|
|
4220
4242
|
directory?: string;
|
|
4221
4243
|
workspace?: string;
|
|
4222
4244
|
};
|
|
4223
|
-
url: "/
|
|
4245
|
+
url: "/mcp/{name}/auth/callback";
|
|
4224
4246
|
};
|
|
4225
|
-
export type
|
|
4247
|
+
export type McpAuthCallbackErrors = {
|
|
4226
4248
|
/**
|
|
4227
4249
|
* Bad request
|
|
4228
4250
|
*/
|
|
4229
4251
|
400: BadRequestError;
|
|
4252
|
+
/**
|
|
4253
|
+
* Not found
|
|
4254
|
+
*/
|
|
4255
|
+
404: NotFoundError;
|
|
4230
4256
|
};
|
|
4231
|
-
export type
|
|
4232
|
-
export type
|
|
4257
|
+
export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
|
|
4258
|
+
export type McpAuthCallbackResponses = {
|
|
4233
4259
|
/**
|
|
4234
|
-
*
|
|
4260
|
+
* OAuth authentication completed
|
|
4235
4261
|
*/
|
|
4236
|
-
200:
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4262
|
+
200: McpStatus;
|
|
4263
|
+
};
|
|
4264
|
+
export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
|
|
4265
|
+
export type McpAuthAuthenticateData = {
|
|
4266
|
+
body?: never;
|
|
4267
|
+
path: {
|
|
4268
|
+
name: string;
|
|
4240
4269
|
};
|
|
4270
|
+
query?: {
|
|
4271
|
+
directory?: string;
|
|
4272
|
+
workspace?: string;
|
|
4273
|
+
};
|
|
4274
|
+
url: "/mcp/{name}/auth/authenticate";
|
|
4241
4275
|
};
|
|
4242
|
-
export type
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
status: "running";
|
|
4283
|
-
input: {
|
|
4284
|
-
[key: string]: unknown;
|
|
4285
|
-
};
|
|
4286
|
-
title?: string;
|
|
4287
|
-
metadata?: {
|
|
4288
|
-
[key: string]: unknown;
|
|
4289
|
-
};
|
|
4290
|
-
time: {
|
|
4291
|
-
start: number;
|
|
4292
|
-
};
|
|
4293
|
-
} | {
|
|
4294
|
-
status: "completed";
|
|
4295
|
-
input: {
|
|
4296
|
-
[key: string]: unknown;
|
|
4297
|
-
};
|
|
4298
|
-
output: string;
|
|
4299
|
-
title: string;
|
|
4300
|
-
metadata: {
|
|
4301
|
-
[key: string]: unknown;
|
|
4302
|
-
};
|
|
4303
|
-
time: {
|
|
4304
|
-
start: number;
|
|
4305
|
-
end: number;
|
|
4306
|
-
compacted?: number;
|
|
4307
|
-
};
|
|
4308
|
-
} | {
|
|
4309
|
-
status: "error";
|
|
4310
|
-
input: {
|
|
4311
|
-
[key: string]: unknown;
|
|
4312
|
-
};
|
|
4313
|
-
error: string;
|
|
4314
|
-
metadata?: {
|
|
4315
|
-
[key: string]: unknown;
|
|
4316
|
-
};
|
|
4317
|
-
time: {
|
|
4318
|
-
start: number;
|
|
4319
|
-
end: number;
|
|
4320
|
-
};
|
|
4321
|
-
};
|
|
4322
|
-
metadata?: {
|
|
4323
|
-
[key: string]: unknown;
|
|
4324
|
-
};
|
|
4325
|
-
};
|
|
4276
|
+
export type McpAuthAuthenticateErrors = {
|
|
4277
|
+
/**
|
|
4278
|
+
* Bad request
|
|
4279
|
+
*/
|
|
4280
|
+
400: BadRequestError;
|
|
4281
|
+
/**
|
|
4282
|
+
* Not found
|
|
4283
|
+
*/
|
|
4284
|
+
404: NotFoundError;
|
|
4285
|
+
};
|
|
4286
|
+
export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
|
|
4287
|
+
export type McpAuthAuthenticateResponses = {
|
|
4288
|
+
/**
|
|
4289
|
+
* OAuth authentication completed
|
|
4290
|
+
*/
|
|
4291
|
+
200: McpStatus;
|
|
4292
|
+
};
|
|
4293
|
+
export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
|
|
4294
|
+
export type McpConnectData = {
|
|
4295
|
+
body?: never;
|
|
4296
|
+
path: {
|
|
4297
|
+
name: string;
|
|
4298
|
+
};
|
|
4299
|
+
query?: {
|
|
4300
|
+
directory?: string;
|
|
4301
|
+
workspace?: string;
|
|
4302
|
+
};
|
|
4303
|
+
url: "/mcp/{name}/connect";
|
|
4304
|
+
};
|
|
4305
|
+
export type McpConnectResponses = {
|
|
4306
|
+
/**
|
|
4307
|
+
* MCP server connected successfully
|
|
4308
|
+
*/
|
|
4309
|
+
200: boolean;
|
|
4310
|
+
};
|
|
4311
|
+
export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
|
|
4312
|
+
export type McpDisconnectData = {
|
|
4313
|
+
body?: never;
|
|
4314
|
+
path: {
|
|
4315
|
+
name: string;
|
|
4326
4316
|
};
|
|
4327
|
-
path?: never;
|
|
4328
4317
|
query?: {
|
|
4329
4318
|
directory?: string;
|
|
4330
4319
|
workspace?: string;
|
|
4331
4320
|
};
|
|
4332
|
-
url: "/
|
|
4333
|
-
};
|
|
4334
|
-
export type KilocodeSessionImportPartErrors = {
|
|
4335
|
-
/**
|
|
4336
|
-
* Bad request
|
|
4337
|
-
*/
|
|
4338
|
-
400: BadRequestError;
|
|
4321
|
+
url: "/mcp/{name}/disconnect";
|
|
4339
4322
|
};
|
|
4340
|
-
export type
|
|
4341
|
-
export type KilocodeSessionImportPartResponses = {
|
|
4323
|
+
export type McpDisconnectResponses = {
|
|
4342
4324
|
/**
|
|
4343
|
-
*
|
|
4325
|
+
* MCP server disconnected successfully
|
|
4344
4326
|
*/
|
|
4345
|
-
200:
|
|
4346
|
-
ok: boolean;
|
|
4347
|
-
id: string;
|
|
4348
|
-
skipped?: boolean;
|
|
4349
|
-
};
|
|
4327
|
+
200: boolean;
|
|
4350
4328
|
};
|
|
4351
|
-
export type
|
|
4352
|
-
export type
|
|
4329
|
+
export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
|
|
4330
|
+
export type TuiAppendPromptData = {
|
|
4353
4331
|
body?: {
|
|
4354
|
-
|
|
4332
|
+
text: string;
|
|
4355
4333
|
};
|
|
4356
4334
|
path?: never;
|
|
4357
4335
|
query?: {
|
|
4358
4336
|
directory?: string;
|
|
4359
4337
|
workspace?: string;
|
|
4360
4338
|
};
|
|
4361
|
-
url: "/
|
|
4339
|
+
url: "/tui/append-prompt";
|
|
4362
4340
|
};
|
|
4363
|
-
export type
|
|
4341
|
+
export type TuiAppendPromptErrors = {
|
|
4364
4342
|
/**
|
|
4365
4343
|
* Bad request
|
|
4366
4344
|
*/
|
|
4367
4345
|
400: BadRequestError;
|
|
4368
4346
|
};
|
|
4369
|
-
export type
|
|
4370
|
-
export type
|
|
4347
|
+
export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
|
|
4348
|
+
export type TuiAppendPromptResponses = {
|
|
4371
4349
|
/**
|
|
4372
|
-
*
|
|
4350
|
+
* Prompt processed successfully
|
|
4373
4351
|
*/
|
|
4374
4352
|
200: boolean;
|
|
4375
4353
|
};
|
|
4376
|
-
export type
|
|
4377
|
-
export type
|
|
4378
|
-
body?:
|
|
4379
|
-
|
|
4354
|
+
export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
|
|
4355
|
+
export type TuiOpenHelpData = {
|
|
4356
|
+
body?: never;
|
|
4357
|
+
path?: never;
|
|
4358
|
+
query?: {
|
|
4359
|
+
directory?: string;
|
|
4360
|
+
workspace?: string;
|
|
4380
4361
|
};
|
|
4362
|
+
url: "/tui/open-help";
|
|
4363
|
+
};
|
|
4364
|
+
export type TuiOpenHelpResponses = {
|
|
4365
|
+
/**
|
|
4366
|
+
* Help dialog opened successfully
|
|
4367
|
+
*/
|
|
4368
|
+
200: boolean;
|
|
4369
|
+
};
|
|
4370
|
+
export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
|
|
4371
|
+
export type TuiOpenSessionsData = {
|
|
4372
|
+
body?: never;
|
|
4381
4373
|
path?: never;
|
|
4382
4374
|
query?: {
|
|
4383
4375
|
directory?: string;
|
|
4384
4376
|
workspace?: string;
|
|
4385
4377
|
};
|
|
4386
|
-
url: "/
|
|
4378
|
+
url: "/tui/open-sessions";
|
|
4387
4379
|
};
|
|
4388
|
-
export type
|
|
4380
|
+
export type TuiOpenSessionsResponses = {
|
|
4389
4381
|
/**
|
|
4390
|
-
*
|
|
4382
|
+
* Session dialog opened successfully
|
|
4391
4383
|
*/
|
|
4392
|
-
|
|
4384
|
+
200: boolean;
|
|
4393
4385
|
};
|
|
4394
|
-
export type
|
|
4395
|
-
export type
|
|
4386
|
+
export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
|
|
4387
|
+
export type TuiOpenThemesData = {
|
|
4388
|
+
body?: never;
|
|
4389
|
+
path?: never;
|
|
4390
|
+
query?: {
|
|
4391
|
+
directory?: string;
|
|
4392
|
+
workspace?: string;
|
|
4393
|
+
};
|
|
4394
|
+
url: "/tui/open-themes";
|
|
4395
|
+
};
|
|
4396
|
+
export type TuiOpenThemesResponses = {
|
|
4396
4397
|
/**
|
|
4397
|
-
*
|
|
4398
|
+
* Theme dialog opened successfully
|
|
4398
4399
|
*/
|
|
4399
4400
|
200: boolean;
|
|
4400
4401
|
};
|
|
4401
|
-
export type
|
|
4402
|
-
export type
|
|
4402
|
+
export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
|
|
4403
|
+
export type TuiOpenModelsData = {
|
|
4403
4404
|
body?: never;
|
|
4404
4405
|
path?: never;
|
|
4405
4406
|
query?: {
|
|
4406
4407
|
directory?: string;
|
|
4407
4408
|
workspace?: string;
|
|
4408
4409
|
};
|
|
4409
|
-
url: "/
|
|
4410
|
+
url: "/tui/open-models";
|
|
4410
4411
|
};
|
|
4411
|
-
export type
|
|
4412
|
+
export type TuiOpenModelsResponses = {
|
|
4412
4413
|
/**
|
|
4413
|
-
*
|
|
4414
|
+
* Model dialog opened successfully
|
|
4414
4415
|
*/
|
|
4415
|
-
|
|
4416
|
+
200: boolean;
|
|
4416
4417
|
};
|
|
4417
|
-
export type
|
|
4418
|
-
export type
|
|
4418
|
+
export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
|
|
4419
|
+
export type TuiSubmitPromptData = {
|
|
4420
|
+
body?: never;
|
|
4421
|
+
path?: never;
|
|
4422
|
+
query?: {
|
|
4423
|
+
directory?: string;
|
|
4424
|
+
workspace?: string;
|
|
4425
|
+
};
|
|
4426
|
+
url: "/tui/submit-prompt";
|
|
4427
|
+
};
|
|
4428
|
+
export type TuiSubmitPromptResponses = {
|
|
4419
4429
|
/**
|
|
4420
|
-
*
|
|
4430
|
+
* Prompt submitted successfully
|
|
4421
4431
|
*/
|
|
4422
|
-
200:
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
};
|
|
4432
|
-
balance: {
|
|
4433
|
-
balance: number;
|
|
4434
|
-
} | null;
|
|
4435
|
-
currentOrgId: string | null;
|
|
4432
|
+
200: boolean;
|
|
4433
|
+
};
|
|
4434
|
+
export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
|
|
4435
|
+
export type TuiClearPromptData = {
|
|
4436
|
+
body?: never;
|
|
4437
|
+
path?: never;
|
|
4438
|
+
query?: {
|
|
4439
|
+
directory?: string;
|
|
4440
|
+
workspace?: string;
|
|
4436
4441
|
};
|
|
4442
|
+
url: "/tui/clear-prompt";
|
|
4437
4443
|
};
|
|
4438
|
-
export type
|
|
4439
|
-
|
|
4444
|
+
export type TuiClearPromptResponses = {
|
|
4445
|
+
/**
|
|
4446
|
+
* Prompt cleared successfully
|
|
4447
|
+
*/
|
|
4448
|
+
200: boolean;
|
|
4449
|
+
};
|
|
4450
|
+
export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
|
|
4451
|
+
export type TuiExecuteCommandData = {
|
|
4440
4452
|
body?: {
|
|
4441
|
-
|
|
4453
|
+
command: string;
|
|
4442
4454
|
};
|
|
4443
4455
|
path?: never;
|
|
4444
4456
|
query?: {
|
|
4445
4457
|
directory?: string;
|
|
4446
4458
|
workspace?: string;
|
|
4447
4459
|
};
|
|
4448
|
-
url: "/
|
|
4460
|
+
url: "/tui/execute-command";
|
|
4449
4461
|
};
|
|
4450
|
-
export type
|
|
4462
|
+
export type TuiExecuteCommandErrors = {
|
|
4451
4463
|
/**
|
|
4452
4464
|
* Bad request
|
|
4453
4465
|
*/
|
|
4454
4466
|
400: BadRequestError;
|
|
4455
4467
|
};
|
|
4456
|
-
export type
|
|
4457
|
-
export type
|
|
4468
|
+
export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
|
|
4469
|
+
export type TuiExecuteCommandResponses = {
|
|
4458
4470
|
/**
|
|
4459
|
-
*
|
|
4471
|
+
* Command executed successfully
|
|
4460
4472
|
*/
|
|
4461
4473
|
200: boolean;
|
|
4462
4474
|
};
|
|
4463
|
-
export type
|
|
4464
|
-
export type
|
|
4465
|
-
body?:
|
|
4475
|
+
export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
|
|
4476
|
+
export type TuiShowToastData = {
|
|
4477
|
+
body?: {
|
|
4478
|
+
title?: string;
|
|
4479
|
+
message: string;
|
|
4480
|
+
variant: "info" | "success" | "warning" | "error";
|
|
4481
|
+
/**
|
|
4482
|
+
* Duration in milliseconds
|
|
4483
|
+
*/
|
|
4484
|
+
duration?: number;
|
|
4485
|
+
};
|
|
4466
4486
|
path?: never;
|
|
4467
4487
|
query?: {
|
|
4468
4488
|
directory?: string;
|
|
4469
4489
|
workspace?: string;
|
|
4470
4490
|
};
|
|
4471
|
-
url: "/
|
|
4491
|
+
url: "/tui/show-toast";
|
|
4472
4492
|
};
|
|
4473
|
-
export type
|
|
4493
|
+
export type TuiShowToastResponses = {
|
|
4474
4494
|
/**
|
|
4475
|
-
*
|
|
4495
|
+
* Toast notification shown successfully
|
|
4476
4496
|
*/
|
|
4477
|
-
200:
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
config: {
|
|
4487
|
-
roleDefinition?: string;
|
|
4488
|
-
whenToUse?: string;
|
|
4489
|
-
description?: string;
|
|
4490
|
-
customInstructions?: string;
|
|
4491
|
-
groups?: Array<string | [
|
|
4492
|
-
string,
|
|
4493
|
-
{
|
|
4494
|
-
fileRegex?: string;
|
|
4495
|
-
description?: string;
|
|
4496
|
-
}
|
|
4497
|
-
]>;
|
|
4498
|
-
};
|
|
4499
|
-
}>;
|
|
4497
|
+
200: boolean;
|
|
4498
|
+
};
|
|
4499
|
+
export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
|
|
4500
|
+
export type TuiPublishData = {
|
|
4501
|
+
body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
|
|
4502
|
+
path?: never;
|
|
4503
|
+
query?: {
|
|
4504
|
+
directory?: string;
|
|
4505
|
+
workspace?: string;
|
|
4500
4506
|
};
|
|
4507
|
+
url: "/tui/publish";
|
|
4501
4508
|
};
|
|
4502
|
-
export type
|
|
4503
|
-
|
|
4509
|
+
export type TuiPublishErrors = {
|
|
4510
|
+
/**
|
|
4511
|
+
* Bad request
|
|
4512
|
+
*/
|
|
4513
|
+
400: BadRequestError;
|
|
4514
|
+
};
|
|
4515
|
+
export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
|
|
4516
|
+
export type TuiPublishResponses = {
|
|
4517
|
+
/**
|
|
4518
|
+
* Event published successfully
|
|
4519
|
+
*/
|
|
4520
|
+
200: boolean;
|
|
4521
|
+
};
|
|
4522
|
+
export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
|
|
4523
|
+
export type TuiSelectSessionData = {
|
|
4504
4524
|
body?: {
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4525
|
+
/**
|
|
4526
|
+
* Session ID to navigate to
|
|
4527
|
+
*/
|
|
4528
|
+
sessionID: string;
|
|
4529
|
+
};
|
|
4530
|
+
path?: never;
|
|
4531
|
+
query?: {
|
|
4532
|
+
directory?: string;
|
|
4533
|
+
workspace?: string;
|
|
4510
4534
|
};
|
|
4535
|
+
url: "/tui/select-session";
|
|
4536
|
+
};
|
|
4537
|
+
export type TuiSelectSessionErrors = {
|
|
4538
|
+
/**
|
|
4539
|
+
* Bad request
|
|
4540
|
+
*/
|
|
4541
|
+
400: BadRequestError;
|
|
4542
|
+
/**
|
|
4543
|
+
* Not found
|
|
4544
|
+
*/
|
|
4545
|
+
404: NotFoundError;
|
|
4546
|
+
};
|
|
4547
|
+
export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors];
|
|
4548
|
+
export type TuiSelectSessionResponses = {
|
|
4549
|
+
/**
|
|
4550
|
+
* Session selected successfully
|
|
4551
|
+
*/
|
|
4552
|
+
200: boolean;
|
|
4553
|
+
};
|
|
4554
|
+
export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses];
|
|
4555
|
+
export type TuiControlNextData = {
|
|
4556
|
+
body?: never;
|
|
4511
4557
|
path?: never;
|
|
4512
4558
|
query?: {
|
|
4513
4559
|
directory?: string;
|
|
4514
4560
|
workspace?: string;
|
|
4515
4561
|
};
|
|
4516
|
-
url: "/
|
|
4517
|
-
};
|
|
4518
|
-
export type KiloFimErrors = {
|
|
4519
|
-
/**
|
|
4520
|
-
* Bad request
|
|
4521
|
-
*/
|
|
4522
|
-
400: BadRequestError;
|
|
4562
|
+
url: "/tui/control/next";
|
|
4523
4563
|
};
|
|
4524
|
-
export type
|
|
4525
|
-
export type KiloFimResponses = {
|
|
4564
|
+
export type TuiControlNextResponses = {
|
|
4526
4565
|
/**
|
|
4527
|
-
*
|
|
4566
|
+
* Next TUI request
|
|
4528
4567
|
*/
|
|
4529
4568
|
200: {
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
content?: string;
|
|
4533
|
-
};
|
|
4534
|
-
}>;
|
|
4535
|
-
usage?: {
|
|
4536
|
-
prompt_tokens?: number;
|
|
4537
|
-
completion_tokens?: number;
|
|
4538
|
-
};
|
|
4539
|
-
cost?: number;
|
|
4569
|
+
path: string;
|
|
4570
|
+
body: unknown;
|
|
4540
4571
|
};
|
|
4541
4572
|
};
|
|
4542
|
-
export type
|
|
4543
|
-
export type
|
|
4544
|
-
body?:
|
|
4573
|
+
export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
|
|
4574
|
+
export type TuiControlResponseData = {
|
|
4575
|
+
body?: unknown;
|
|
4545
4576
|
path?: never;
|
|
4546
4577
|
query?: {
|
|
4547
4578
|
directory?: string;
|
|
4548
4579
|
workspace?: string;
|
|
4549
4580
|
};
|
|
4550
|
-
url: "/
|
|
4581
|
+
url: "/tui/control/response";
|
|
4551
4582
|
};
|
|
4552
|
-
export type
|
|
4583
|
+
export type TuiControlResponseResponses = {
|
|
4553
4584
|
/**
|
|
4554
|
-
*
|
|
4585
|
+
* Response submitted successfully
|
|
4555
4586
|
*/
|
|
4556
|
-
|
|
4587
|
+
200: boolean;
|
|
4557
4588
|
};
|
|
4558
|
-
export type
|
|
4559
|
-
export type
|
|
4589
|
+
export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
|
|
4590
|
+
export type InstanceDisposeData = {
|
|
4591
|
+
body?: never;
|
|
4592
|
+
path?: never;
|
|
4593
|
+
query?: {
|
|
4594
|
+
directory?: string;
|
|
4595
|
+
workspace?: string;
|
|
4596
|
+
};
|
|
4597
|
+
url: "/instance/dispose";
|
|
4598
|
+
};
|
|
4599
|
+
export type InstanceDisposeResponses = {
|
|
4560
4600
|
/**
|
|
4561
|
-
*
|
|
4601
|
+
* Instance disposed
|
|
4562
4602
|
*/
|
|
4563
|
-
200:
|
|
4564
|
-
id: string;
|
|
4565
|
-
title: string;
|
|
4566
|
-
message: string;
|
|
4567
|
-
action?: {
|
|
4568
|
-
actionText: string;
|
|
4569
|
-
actionURL: string;
|
|
4570
|
-
};
|
|
4571
|
-
showIn?: Array<string>;
|
|
4572
|
-
suggestModelId?: string;
|
|
4573
|
-
}>;
|
|
4603
|
+
200: boolean;
|
|
4574
4604
|
};
|
|
4575
|
-
export type
|
|
4576
|
-
export type
|
|
4605
|
+
export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
|
|
4606
|
+
export type PathGetData = {
|
|
4577
4607
|
body?: never;
|
|
4578
|
-
path
|
|
4579
|
-
id: string;
|
|
4580
|
-
};
|
|
4608
|
+
path?: never;
|
|
4581
4609
|
query?: {
|
|
4582
4610
|
directory?: string;
|
|
4583
4611
|
workspace?: string;
|
|
4584
4612
|
};
|
|
4585
|
-
url: "/
|
|
4613
|
+
url: "/path";
|
|
4586
4614
|
};
|
|
4587
|
-
export type
|
|
4615
|
+
export type PathGetResponses = {
|
|
4588
4616
|
/**
|
|
4589
|
-
*
|
|
4617
|
+
* Path
|
|
4590
4618
|
*/
|
|
4591
|
-
|
|
4619
|
+
200: Path;
|
|
4592
4620
|
};
|
|
4593
|
-
export type
|
|
4594
|
-
export type
|
|
4621
|
+
export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
|
|
4622
|
+
export type VcsGetData = {
|
|
4623
|
+
body?: never;
|
|
4624
|
+
path?: never;
|
|
4625
|
+
query?: {
|
|
4626
|
+
directory?: string;
|
|
4627
|
+
workspace?: string;
|
|
4628
|
+
};
|
|
4629
|
+
url: "/vcs";
|
|
4630
|
+
};
|
|
4631
|
+
export type VcsGetResponses = {
|
|
4595
4632
|
/**
|
|
4596
|
-
*
|
|
4633
|
+
* VCS info
|
|
4597
4634
|
*/
|
|
4598
|
-
200:
|
|
4635
|
+
200: VcsInfo;
|
|
4599
4636
|
};
|
|
4600
|
-
export type
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
};
|
|
4637
|
+
export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
|
|
4638
|
+
export type CommandListData = {
|
|
4639
|
+
body?: never;
|
|
4604
4640
|
path?: never;
|
|
4605
4641
|
query?: {
|
|
4606
4642
|
directory?: string;
|
|
4607
4643
|
workspace?: string;
|
|
4608
4644
|
};
|
|
4609
|
-
url: "/
|
|
4645
|
+
url: "/command";
|
|
4610
4646
|
};
|
|
4611
|
-
export type
|
|
4612
|
-
/**
|
|
4613
|
-
* Bad request
|
|
4614
|
-
*/
|
|
4615
|
-
400: BadRequestError;
|
|
4647
|
+
export type CommandListResponses = {
|
|
4616
4648
|
/**
|
|
4617
|
-
*
|
|
4649
|
+
* List of commands
|
|
4618
4650
|
*/
|
|
4619
|
-
|
|
4651
|
+
200: Array<Command>;
|
|
4620
4652
|
};
|
|
4621
|
-
export type
|
|
4622
|
-
export type
|
|
4653
|
+
export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
|
|
4654
|
+
export type AppAgentsData = {
|
|
4655
|
+
body?: never;
|
|
4656
|
+
path?: never;
|
|
4657
|
+
query?: {
|
|
4658
|
+
directory?: string;
|
|
4659
|
+
workspace?: string;
|
|
4660
|
+
};
|
|
4661
|
+
url: "/agent";
|
|
4662
|
+
};
|
|
4663
|
+
export type AppAgentsResponses = {
|
|
4623
4664
|
/**
|
|
4624
|
-
*
|
|
4665
|
+
* List of agents
|
|
4625
4666
|
*/
|
|
4626
|
-
200:
|
|
4667
|
+
200: Array<Agent>;
|
|
4627
4668
|
};
|
|
4628
|
-
export type
|
|
4669
|
+
export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
|
|
4670
|
+
export type AppSkillsData = {
|
|
4629
4671
|
body?: never;
|
|
4630
4672
|
path?: never;
|
|
4631
4673
|
query?: {
|
|
4632
4674
|
directory?: string;
|
|
4633
4675
|
workspace?: string;
|
|
4634
4676
|
};
|
|
4635
|
-
url: "/
|
|
4677
|
+
url: "/skill";
|
|
4636
4678
|
};
|
|
4637
|
-
export type
|
|
4679
|
+
export type AppSkillsResponses = {
|
|
4638
4680
|
/**
|
|
4639
|
-
*
|
|
4681
|
+
* List of skills
|
|
4640
4682
|
*/
|
|
4641
|
-
200: {
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
memory_mb: number;
|
|
4648
|
-
};
|
|
4649
|
-
openclawVersion?: string | null;
|
|
4650
|
-
lastStartedAt?: string | null;
|
|
4651
|
-
lastStoppedAt?: string | null;
|
|
4652
|
-
channelCount?: number;
|
|
4653
|
-
secretCount?: number;
|
|
4654
|
-
userId?: string;
|
|
4655
|
-
};
|
|
4683
|
+
200: Array<{
|
|
4684
|
+
name: string;
|
|
4685
|
+
description: string;
|
|
4686
|
+
location: string;
|
|
4687
|
+
content: string;
|
|
4688
|
+
}>;
|
|
4656
4689
|
};
|
|
4657
|
-
export type
|
|
4658
|
-
export type
|
|
4690
|
+
export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
|
|
4691
|
+
export type LspStatusData = {
|
|
4659
4692
|
body?: never;
|
|
4660
4693
|
path?: never;
|
|
4661
4694
|
query?: {
|
|
4662
4695
|
directory?: string;
|
|
4663
4696
|
workspace?: string;
|
|
4664
4697
|
};
|
|
4665
|
-
url: "/
|
|
4698
|
+
url: "/lsp";
|
|
4666
4699
|
};
|
|
4667
|
-
export type
|
|
4700
|
+
export type LspStatusResponses = {
|
|
4668
4701
|
/**
|
|
4669
|
-
*
|
|
4702
|
+
* LSP server status
|
|
4670
4703
|
*/
|
|
4671
|
-
200:
|
|
4672
|
-
apiKey: string;
|
|
4673
|
-
userId: string;
|
|
4674
|
-
userToken: string;
|
|
4675
|
-
channelId: string;
|
|
4676
|
-
} | null;
|
|
4704
|
+
200: Array<LspStatus>;
|
|
4677
4705
|
};
|
|
4678
|
-
export type
|
|
4679
|
-
export type
|
|
4706
|
+
export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
|
|
4707
|
+
export type FormatterStatusData = {
|
|
4680
4708
|
body?: never;
|
|
4681
4709
|
path?: never;
|
|
4682
4710
|
query?: {
|
|
4683
4711
|
directory?: string;
|
|
4684
4712
|
workspace?: string;
|
|
4685
|
-
cursor?: string;
|
|
4686
|
-
limit?: number;
|
|
4687
|
-
gitUrl?: string;
|
|
4688
4713
|
};
|
|
4689
|
-
url: "/
|
|
4714
|
+
url: "/formatter";
|
|
4690
4715
|
};
|
|
4691
|
-
export type
|
|
4716
|
+
export type FormatterStatusResponses = {
|
|
4692
4717
|
/**
|
|
4693
|
-
*
|
|
4718
|
+
* Formatter status
|
|
4694
4719
|
*/
|
|
4695
|
-
|
|
4720
|
+
200: Array<FormatterStatus>;
|
|
4696
4721
|
};
|
|
4697
|
-
export type
|
|
4698
|
-
export type
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
cliSessions: Array<{
|
|
4704
|
-
session_id: string;
|
|
4705
|
-
title: string | null;
|
|
4706
|
-
created_at: string;
|
|
4707
|
-
updated_at: string;
|
|
4708
|
-
version: number;
|
|
4709
|
-
}>;
|
|
4710
|
-
nextCursor: string | null;
|
|
4722
|
+
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
|
|
4723
|
+
export type PermissionAllowEverythingData = {
|
|
4724
|
+
body?: {
|
|
4725
|
+
enable: boolean;
|
|
4726
|
+
requestID?: string;
|
|
4727
|
+
sessionID?: string;
|
|
4711
4728
|
};
|
|
4712
|
-
};
|
|
4713
|
-
export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];
|
|
4714
|
-
export type FindTextData = {
|
|
4715
|
-
body?: never;
|
|
4716
4729
|
path?: never;
|
|
4717
|
-
query
|
|
4730
|
+
query?: {
|
|
4718
4731
|
directory?: string;
|
|
4719
4732
|
workspace?: string;
|
|
4720
|
-
pattern: string;
|
|
4721
4733
|
};
|
|
4722
|
-
url: "/
|
|
4734
|
+
url: "/permission/allow-everything";
|
|
4723
4735
|
};
|
|
4724
|
-
export type
|
|
4736
|
+
export type PermissionAllowEverythingErrors = {
|
|
4725
4737
|
/**
|
|
4726
|
-
*
|
|
4727
|
-
*/
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
text: string;
|
|
4734
|
-
};
|
|
4735
|
-
line_number: number;
|
|
4736
|
-
absolute_offset: number;
|
|
4737
|
-
submatches: Array<{
|
|
4738
|
-
match: {
|
|
4739
|
-
text: string;
|
|
4740
|
-
};
|
|
4741
|
-
start: number;
|
|
4742
|
-
end: number;
|
|
4743
|
-
}>;
|
|
4744
|
-
}>;
|
|
4738
|
+
* Bad request
|
|
4739
|
+
*/
|
|
4740
|
+
400: BadRequestError;
|
|
4741
|
+
/**
|
|
4742
|
+
* Not found
|
|
4743
|
+
*/
|
|
4744
|
+
404: NotFoundError;
|
|
4745
4745
|
};
|
|
4746
|
-
export type
|
|
4747
|
-
export type
|
|
4746
|
+
export type PermissionAllowEverythingError = PermissionAllowEverythingErrors[keyof PermissionAllowEverythingErrors];
|
|
4747
|
+
export type PermissionAllowEverythingResponses = {
|
|
4748
|
+
/**
|
|
4749
|
+
* Success
|
|
4750
|
+
*/
|
|
4751
|
+
200: boolean;
|
|
4752
|
+
};
|
|
4753
|
+
export type PermissionAllowEverythingResponse = PermissionAllowEverythingResponses[keyof PermissionAllowEverythingResponses];
|
|
4754
|
+
export type NetworkListData = {
|
|
4748
4755
|
body?: never;
|
|
4749
4756
|
path?: never;
|
|
4750
|
-
query
|
|
4757
|
+
query?: {
|
|
4751
4758
|
directory?: string;
|
|
4752
4759
|
workspace?: string;
|
|
4753
|
-
query: string;
|
|
4754
|
-
dirs?: "true" | "false";
|
|
4755
|
-
type?: "file" | "directory";
|
|
4756
|
-
limit?: number;
|
|
4757
4760
|
};
|
|
4758
|
-
url: "/
|
|
4761
|
+
url: "/network";
|
|
4759
4762
|
};
|
|
4760
|
-
export type
|
|
4763
|
+
export type NetworkListResponses = {
|
|
4761
4764
|
/**
|
|
4762
|
-
*
|
|
4765
|
+
* List of pending network reconnect requests
|
|
4763
4766
|
*/
|
|
4764
|
-
200: Array<
|
|
4767
|
+
200: Array<SessionNetworkWait>;
|
|
4765
4768
|
};
|
|
4766
|
-
export type
|
|
4767
|
-
export type
|
|
4769
|
+
export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses];
|
|
4770
|
+
export type NetworkReplyData = {
|
|
4768
4771
|
body?: never;
|
|
4769
|
-
path
|
|
4770
|
-
|
|
4772
|
+
path: {
|
|
4773
|
+
requestID: string;
|
|
4774
|
+
};
|
|
4775
|
+
query?: {
|
|
4771
4776
|
directory?: string;
|
|
4772
4777
|
workspace?: string;
|
|
4773
|
-
query: string;
|
|
4774
4778
|
};
|
|
4775
|
-
url: "/
|
|
4779
|
+
url: "/network/{requestID}/reply";
|
|
4776
4780
|
};
|
|
4777
|
-
export type
|
|
4781
|
+
export type NetworkReplyErrors = {
|
|
4778
4782
|
/**
|
|
4779
|
-
*
|
|
4783
|
+
* Bad request
|
|
4780
4784
|
*/
|
|
4781
|
-
|
|
4785
|
+
400: BadRequestError;
|
|
4786
|
+
/**
|
|
4787
|
+
* Not found
|
|
4788
|
+
*/
|
|
4789
|
+
404: NotFoundError;
|
|
4782
4790
|
};
|
|
4783
|
-
export type
|
|
4784
|
-
export type
|
|
4791
|
+
export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors];
|
|
4792
|
+
export type NetworkReplyResponses = {
|
|
4793
|
+
/**
|
|
4794
|
+
* Network wait resumed successfully
|
|
4795
|
+
*/
|
|
4796
|
+
200: boolean;
|
|
4797
|
+
};
|
|
4798
|
+
export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses];
|
|
4799
|
+
export type NetworkRejectData = {
|
|
4785
4800
|
body?: never;
|
|
4786
|
-
path
|
|
4787
|
-
|
|
4801
|
+
path: {
|
|
4802
|
+
requestID: string;
|
|
4803
|
+
};
|
|
4804
|
+
query?: {
|
|
4788
4805
|
directory?: string;
|
|
4789
4806
|
workspace?: string;
|
|
4790
|
-
path: string;
|
|
4791
4807
|
};
|
|
4792
|
-
url: "/
|
|
4808
|
+
url: "/network/{requestID}/reject";
|
|
4793
4809
|
};
|
|
4794
|
-
export type
|
|
4810
|
+
export type NetworkRejectErrors = {
|
|
4795
4811
|
/**
|
|
4796
|
-
*
|
|
4812
|
+
* Bad request
|
|
4797
4813
|
*/
|
|
4798
|
-
|
|
4814
|
+
400: BadRequestError;
|
|
4815
|
+
/**
|
|
4816
|
+
* Not found
|
|
4817
|
+
*/
|
|
4818
|
+
404: NotFoundError;
|
|
4799
4819
|
};
|
|
4800
|
-
export type
|
|
4801
|
-
export type
|
|
4802
|
-
|
|
4820
|
+
export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors];
|
|
4821
|
+
export type NetworkRejectResponses = {
|
|
4822
|
+
/**
|
|
4823
|
+
* Network wait rejected successfully
|
|
4824
|
+
*/
|
|
4825
|
+
200: boolean;
|
|
4826
|
+
};
|
|
4827
|
+
export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses];
|
|
4828
|
+
export type TelemetryCaptureData = {
|
|
4829
|
+
body?: {
|
|
4830
|
+
/**
|
|
4831
|
+
* Event name
|
|
4832
|
+
*/
|
|
4833
|
+
event: string;
|
|
4834
|
+
/**
|
|
4835
|
+
* Event properties
|
|
4836
|
+
*/
|
|
4837
|
+
properties?: {
|
|
4838
|
+
[key: string]: unknown;
|
|
4839
|
+
};
|
|
4840
|
+
};
|
|
4803
4841
|
path?: never;
|
|
4804
|
-
query
|
|
4842
|
+
query?: {
|
|
4805
4843
|
directory?: string;
|
|
4806
4844
|
workspace?: string;
|
|
4807
|
-
path: string;
|
|
4808
4845
|
};
|
|
4809
|
-
url: "/
|
|
4846
|
+
url: "/telemetry/capture";
|
|
4810
4847
|
};
|
|
4811
|
-
export type
|
|
4848
|
+
export type TelemetryCaptureErrors = {
|
|
4812
4849
|
/**
|
|
4813
|
-
*
|
|
4850
|
+
* Bad request
|
|
4814
4851
|
*/
|
|
4815
|
-
|
|
4852
|
+
400: BadRequestError;
|
|
4816
4853
|
};
|
|
4817
|
-
export type
|
|
4818
|
-
export type
|
|
4854
|
+
export type TelemetryCaptureError = TelemetryCaptureErrors[keyof TelemetryCaptureErrors];
|
|
4855
|
+
export type TelemetryCaptureResponses = {
|
|
4856
|
+
/**
|
|
4857
|
+
* Event captured
|
|
4858
|
+
*/
|
|
4859
|
+
200: boolean;
|
|
4860
|
+
};
|
|
4861
|
+
export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses];
|
|
4862
|
+
export type RemoteEnableData = {
|
|
4819
4863
|
body?: never;
|
|
4820
4864
|
path?: never;
|
|
4821
4865
|
query?: {
|
|
4822
4866
|
directory?: string;
|
|
4823
4867
|
workspace?: string;
|
|
4824
4868
|
};
|
|
4825
|
-
url: "/
|
|
4869
|
+
url: "/remote/enable";
|
|
4826
4870
|
};
|
|
4827
|
-
export type
|
|
4871
|
+
export type RemoteEnableResponses = {
|
|
4828
4872
|
/**
|
|
4829
|
-
*
|
|
4873
|
+
* Remote connection enabled
|
|
4830
4874
|
*/
|
|
4831
|
-
200:
|
|
4875
|
+
200: {
|
|
4876
|
+
enabled: boolean;
|
|
4877
|
+
connected: boolean;
|
|
4878
|
+
};
|
|
4832
4879
|
};
|
|
4833
|
-
export type
|
|
4834
|
-
export type
|
|
4880
|
+
export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
|
|
4881
|
+
export type RemoteDisableData = {
|
|
4835
4882
|
body?: never;
|
|
4836
4883
|
path?: never;
|
|
4837
4884
|
query?: {
|
|
4838
4885
|
directory?: string;
|
|
4839
4886
|
workspace?: string;
|
|
4840
4887
|
};
|
|
4841
|
-
url: "/
|
|
4888
|
+
url: "/remote/disable";
|
|
4842
4889
|
};
|
|
4843
|
-
export type
|
|
4890
|
+
export type RemoteDisableResponses = {
|
|
4844
4891
|
/**
|
|
4845
|
-
*
|
|
4892
|
+
* Remote connection disabled
|
|
4846
4893
|
*/
|
|
4847
4894
|
200: {
|
|
4848
|
-
|
|
4895
|
+
enabled: boolean;
|
|
4896
|
+
connected: boolean;
|
|
4849
4897
|
};
|
|
4850
4898
|
};
|
|
4851
|
-
export type
|
|
4852
|
-
export type
|
|
4853
|
-
body?:
|
|
4854
|
-
name: string;
|
|
4855
|
-
config: McpLocalConfig | McpRemoteConfig;
|
|
4856
|
-
};
|
|
4899
|
+
export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
|
|
4900
|
+
export type RemoteStatusData = {
|
|
4901
|
+
body?: never;
|
|
4857
4902
|
path?: never;
|
|
4858
4903
|
query?: {
|
|
4859
4904
|
directory?: string;
|
|
4860
4905
|
workspace?: string;
|
|
4861
4906
|
};
|
|
4862
|
-
url: "/
|
|
4863
|
-
};
|
|
4864
|
-
export type McpAddErrors = {
|
|
4865
|
-
/**
|
|
4866
|
-
* Bad request
|
|
4867
|
-
*/
|
|
4868
|
-
400: BadRequestError;
|
|
4907
|
+
url: "/remote/status";
|
|
4869
4908
|
};
|
|
4870
|
-
export type
|
|
4871
|
-
export type McpAddResponses = {
|
|
4909
|
+
export type RemoteStatusResponses = {
|
|
4872
4910
|
/**
|
|
4873
|
-
*
|
|
4911
|
+
* Remote connection status
|
|
4874
4912
|
*/
|
|
4875
4913
|
200: {
|
|
4876
|
-
|
|
4914
|
+
enabled: boolean;
|
|
4915
|
+
connected: boolean;
|
|
4877
4916
|
};
|
|
4878
4917
|
};
|
|
4879
|
-
export type
|
|
4880
|
-
export type
|
|
4881
|
-
body?:
|
|
4882
|
-
|
|
4883
|
-
|
|
4918
|
+
export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
|
|
4919
|
+
export type CommitMessageGenerateData = {
|
|
4920
|
+
body?: {
|
|
4921
|
+
/**
|
|
4922
|
+
* Workspace/repo path
|
|
4923
|
+
*/
|
|
4924
|
+
path: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* Optional subset of files to include
|
|
4927
|
+
*/
|
|
4928
|
+
selectedFiles?: Array<string>;
|
|
4929
|
+
/**
|
|
4930
|
+
* Previously generated message — triggers regeneration with a different result
|
|
4931
|
+
*/
|
|
4932
|
+
previousMessage?: string;
|
|
4884
4933
|
};
|
|
4934
|
+
path?: never;
|
|
4885
4935
|
query?: {
|
|
4886
4936
|
directory?: string;
|
|
4887
4937
|
workspace?: string;
|
|
4888
4938
|
};
|
|
4889
|
-
url: "/
|
|
4939
|
+
url: "/commit-message";
|
|
4890
4940
|
};
|
|
4891
|
-
export type
|
|
4941
|
+
export type CommitMessageGenerateErrors = {
|
|
4892
4942
|
/**
|
|
4893
|
-
*
|
|
4943
|
+
* Bad request
|
|
4894
4944
|
*/
|
|
4895
|
-
|
|
4945
|
+
400: BadRequestError;
|
|
4896
4946
|
};
|
|
4897
|
-
export type
|
|
4898
|
-
export type
|
|
4947
|
+
export type CommitMessageGenerateError = CommitMessageGenerateErrors[keyof CommitMessageGenerateErrors];
|
|
4948
|
+
export type CommitMessageGenerateResponses = {
|
|
4899
4949
|
/**
|
|
4900
|
-
*
|
|
4950
|
+
* Generated commit message
|
|
4901
4951
|
*/
|
|
4902
4952
|
200: {
|
|
4903
|
-
|
|
4953
|
+
message: string;
|
|
4904
4954
|
};
|
|
4905
4955
|
};
|
|
4906
|
-
export type
|
|
4907
|
-
export type
|
|
4908
|
-
body?:
|
|
4909
|
-
|
|
4910
|
-
|
|
4956
|
+
export type CommitMessageGenerateResponse = CommitMessageGenerateResponses[keyof CommitMessageGenerateResponses];
|
|
4957
|
+
export type EnhancePromptEnhanceData = {
|
|
4958
|
+
body?: {
|
|
4959
|
+
/**
|
|
4960
|
+
* The user's draft prompt to enhance
|
|
4961
|
+
*/
|
|
4962
|
+
text: string;
|
|
4911
4963
|
};
|
|
4964
|
+
path?: never;
|
|
4912
4965
|
query?: {
|
|
4913
4966
|
directory?: string;
|
|
4914
4967
|
workspace?: string;
|
|
4915
4968
|
};
|
|
4916
|
-
url: "/
|
|
4969
|
+
url: "/enhance-prompt";
|
|
4917
4970
|
};
|
|
4918
|
-
export type
|
|
4971
|
+
export type EnhancePromptEnhanceErrors = {
|
|
4919
4972
|
/**
|
|
4920
4973
|
* Bad request
|
|
4921
4974
|
*/
|
|
4922
4975
|
400: BadRequestError;
|
|
4923
|
-
/**
|
|
4924
|
-
* Not found
|
|
4925
|
-
*/
|
|
4926
|
-
404: NotFoundError;
|
|
4927
4976
|
};
|
|
4928
|
-
export type
|
|
4929
|
-
export type
|
|
4977
|
+
export type EnhancePromptEnhanceError = EnhancePromptEnhanceErrors[keyof EnhancePromptEnhanceErrors];
|
|
4978
|
+
export type EnhancePromptEnhanceResponses = {
|
|
4930
4979
|
/**
|
|
4931
|
-
*
|
|
4980
|
+
* Enhanced prompt text
|
|
4932
4981
|
*/
|
|
4933
4982
|
200: {
|
|
4934
|
-
|
|
4935
|
-
* URL to open in browser for authorization
|
|
4936
|
-
*/
|
|
4937
|
-
authorizationUrl: string;
|
|
4938
|
-
};
|
|
4939
|
-
};
|
|
4940
|
-
export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
|
|
4941
|
-
export type McpAuthCallbackData = {
|
|
4942
|
-
body?: {
|
|
4943
|
-
/**
|
|
4944
|
-
* Authorization code from OAuth callback
|
|
4945
|
-
*/
|
|
4946
|
-
code: string;
|
|
4983
|
+
text: string;
|
|
4947
4984
|
};
|
|
4948
|
-
|
|
4949
|
-
|
|
4985
|
+
};
|
|
4986
|
+
export type EnhancePromptEnhanceResponse = EnhancePromptEnhanceResponses[keyof EnhancePromptEnhanceResponses];
|
|
4987
|
+
export type KilocodeSessionImportProjectData = {
|
|
4988
|
+
body?: {
|
|
4989
|
+
id: string;
|
|
4990
|
+
worktree: string;
|
|
4991
|
+
vcs?: string;
|
|
4992
|
+
name?: string;
|
|
4993
|
+
iconUrl?: string;
|
|
4994
|
+
iconColor?: string;
|
|
4995
|
+
timeCreated: number;
|
|
4996
|
+
timeUpdated: number;
|
|
4997
|
+
timeInitialized?: number;
|
|
4998
|
+
sandboxes: Array<string>;
|
|
4999
|
+
commands?: {
|
|
5000
|
+
start?: string;
|
|
5001
|
+
};
|
|
4950
5002
|
};
|
|
5003
|
+
path?: never;
|
|
4951
5004
|
query?: {
|
|
4952
5005
|
directory?: string;
|
|
4953
5006
|
workspace?: string;
|
|
4954
5007
|
};
|
|
4955
|
-
url: "/
|
|
5008
|
+
url: "/kilocode/session-import/project";
|
|
4956
5009
|
};
|
|
4957
|
-
export type
|
|
5010
|
+
export type KilocodeSessionImportProjectErrors = {
|
|
4958
5011
|
/**
|
|
4959
5012
|
* Bad request
|
|
4960
5013
|
*/
|
|
4961
5014
|
400: BadRequestError;
|
|
4962
|
-
/**
|
|
4963
|
-
* Not found
|
|
4964
|
-
*/
|
|
4965
|
-
404: NotFoundError;
|
|
4966
5015
|
};
|
|
4967
|
-
export type
|
|
4968
|
-
export type
|
|
5016
|
+
export type KilocodeSessionImportProjectError = KilocodeSessionImportProjectErrors[keyof KilocodeSessionImportProjectErrors];
|
|
5017
|
+
export type KilocodeSessionImportProjectResponses = {
|
|
4969
5018
|
/**
|
|
4970
|
-
*
|
|
5019
|
+
* Project import result
|
|
4971
5020
|
*/
|
|
4972
|
-
200:
|
|
5021
|
+
200: {
|
|
5022
|
+
ok: boolean;
|
|
5023
|
+
id: string;
|
|
5024
|
+
skipped?: boolean;
|
|
5025
|
+
};
|
|
4973
5026
|
};
|
|
4974
|
-
export type
|
|
4975
|
-
export type
|
|
4976
|
-
body?:
|
|
4977
|
-
|
|
4978
|
-
|
|
5027
|
+
export type KilocodeSessionImportProjectResponse = KilocodeSessionImportProjectResponses[keyof KilocodeSessionImportProjectResponses];
|
|
5028
|
+
export type KilocodeSessionImportSessionData = {
|
|
5029
|
+
body?: {
|
|
5030
|
+
id: string;
|
|
5031
|
+
projectID: string;
|
|
5032
|
+
force?: boolean;
|
|
5033
|
+
workspaceID?: string;
|
|
5034
|
+
parentID?: string;
|
|
5035
|
+
slug: string;
|
|
5036
|
+
directory: string;
|
|
5037
|
+
title: string;
|
|
5038
|
+
version: string;
|
|
5039
|
+
shareURL?: string;
|
|
5040
|
+
summary?: {
|
|
5041
|
+
additions: number;
|
|
5042
|
+
deletions: number;
|
|
5043
|
+
files: number;
|
|
5044
|
+
diffs?: Array<{
|
|
5045
|
+
[key: string]: unknown;
|
|
5046
|
+
}>;
|
|
5047
|
+
};
|
|
5048
|
+
revert?: {
|
|
5049
|
+
messageID: string;
|
|
5050
|
+
partID?: string;
|
|
5051
|
+
snapshot?: string;
|
|
5052
|
+
diff?: string;
|
|
5053
|
+
};
|
|
5054
|
+
permission?: {
|
|
5055
|
+
[key: string]: unknown;
|
|
5056
|
+
};
|
|
5057
|
+
timeCreated: number;
|
|
5058
|
+
timeUpdated: number;
|
|
5059
|
+
timeCompacting?: number;
|
|
5060
|
+
timeArchived?: number;
|
|
4979
5061
|
};
|
|
5062
|
+
path?: never;
|
|
4980
5063
|
query?: {
|
|
4981
5064
|
directory?: string;
|
|
4982
5065
|
workspace?: string;
|
|
4983
5066
|
};
|
|
4984
|
-
url: "/
|
|
5067
|
+
url: "/kilocode/session-import/session";
|
|
4985
5068
|
};
|
|
4986
|
-
export type
|
|
5069
|
+
export type KilocodeSessionImportSessionErrors = {
|
|
4987
5070
|
/**
|
|
4988
5071
|
* Bad request
|
|
4989
5072
|
*/
|
|
4990
5073
|
400: BadRequestError;
|
|
4991
|
-
/**
|
|
4992
|
-
* Not found
|
|
4993
|
-
*/
|
|
4994
|
-
404: NotFoundError;
|
|
4995
5074
|
};
|
|
4996
|
-
export type
|
|
4997
|
-
export type
|
|
5075
|
+
export type KilocodeSessionImportSessionError = KilocodeSessionImportSessionErrors[keyof KilocodeSessionImportSessionErrors];
|
|
5076
|
+
export type KilocodeSessionImportSessionResponses = {
|
|
4998
5077
|
/**
|
|
4999
|
-
*
|
|
5078
|
+
* Session import result
|
|
5000
5079
|
*/
|
|
5001
|
-
200:
|
|
5080
|
+
200: {
|
|
5081
|
+
ok: boolean;
|
|
5082
|
+
id: string;
|
|
5083
|
+
skipped?: boolean;
|
|
5084
|
+
};
|
|
5002
5085
|
};
|
|
5003
|
-
export type
|
|
5004
|
-
export type
|
|
5005
|
-
body?:
|
|
5006
|
-
|
|
5007
|
-
|
|
5086
|
+
export type KilocodeSessionImportSessionResponse = KilocodeSessionImportSessionResponses[keyof KilocodeSessionImportSessionResponses];
|
|
5087
|
+
export type KilocodeSessionImportMessageData = {
|
|
5088
|
+
body?: {
|
|
5089
|
+
id: string;
|
|
5090
|
+
sessionID: string;
|
|
5091
|
+
timeCreated: number;
|
|
5092
|
+
data: {
|
|
5093
|
+
role: "user";
|
|
5094
|
+
time: {
|
|
5095
|
+
created: number;
|
|
5096
|
+
};
|
|
5097
|
+
agent: string;
|
|
5098
|
+
model: {
|
|
5099
|
+
providerID: string;
|
|
5100
|
+
modelID: string;
|
|
5101
|
+
};
|
|
5102
|
+
tools?: {
|
|
5103
|
+
[key: string]: boolean;
|
|
5104
|
+
};
|
|
5105
|
+
} | {
|
|
5106
|
+
role: "assistant";
|
|
5107
|
+
time: {
|
|
5108
|
+
created: number;
|
|
5109
|
+
completed?: number;
|
|
5110
|
+
};
|
|
5111
|
+
parentID: string;
|
|
5112
|
+
modelID: string;
|
|
5113
|
+
providerID: string;
|
|
5114
|
+
mode: string;
|
|
5115
|
+
agent: string;
|
|
5116
|
+
path: {
|
|
5117
|
+
cwd: string;
|
|
5118
|
+
root: string;
|
|
5119
|
+
};
|
|
5120
|
+
summary?: boolean;
|
|
5121
|
+
cost: number;
|
|
5122
|
+
tokens: {
|
|
5123
|
+
total?: number;
|
|
5124
|
+
input: number;
|
|
5125
|
+
output: number;
|
|
5126
|
+
reasoning: number;
|
|
5127
|
+
cache: {
|
|
5128
|
+
read: number;
|
|
5129
|
+
write: number;
|
|
5130
|
+
};
|
|
5131
|
+
};
|
|
5132
|
+
structured?: unknown;
|
|
5133
|
+
variant?: string;
|
|
5134
|
+
finish?: string;
|
|
5135
|
+
};
|
|
5008
5136
|
};
|
|
5137
|
+
path?: never;
|
|
5009
5138
|
query?: {
|
|
5010
5139
|
directory?: string;
|
|
5011
5140
|
workspace?: string;
|
|
5012
5141
|
};
|
|
5013
|
-
url: "/
|
|
5142
|
+
url: "/kilocode/session-import/message";
|
|
5014
5143
|
};
|
|
5015
|
-
export type
|
|
5144
|
+
export type KilocodeSessionImportMessageErrors = {
|
|
5016
5145
|
/**
|
|
5017
|
-
*
|
|
5146
|
+
* Bad request
|
|
5018
5147
|
*/
|
|
5019
|
-
|
|
5020
|
-
};
|
|
5021
|
-
export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
|
|
5022
|
-
export type McpDisconnectData = {
|
|
5023
|
-
body?: never;
|
|
5024
|
-
path: {
|
|
5025
|
-
name: string;
|
|
5026
|
-
};
|
|
5027
|
-
query?: {
|
|
5028
|
-
directory?: string;
|
|
5029
|
-
workspace?: string;
|
|
5030
|
-
};
|
|
5031
|
-
url: "/mcp/{name}/disconnect";
|
|
5148
|
+
400: BadRequestError;
|
|
5032
5149
|
};
|
|
5033
|
-
export type
|
|
5150
|
+
export type KilocodeSessionImportMessageError = KilocodeSessionImportMessageErrors[keyof KilocodeSessionImportMessageErrors];
|
|
5151
|
+
export type KilocodeSessionImportMessageResponses = {
|
|
5034
5152
|
/**
|
|
5035
|
-
*
|
|
5153
|
+
* Message import result
|
|
5036
5154
|
*/
|
|
5037
|
-
200:
|
|
5155
|
+
200: {
|
|
5156
|
+
ok: boolean;
|
|
5157
|
+
id: string;
|
|
5158
|
+
skipped?: boolean;
|
|
5159
|
+
};
|
|
5038
5160
|
};
|
|
5039
|
-
export type
|
|
5040
|
-
export type
|
|
5161
|
+
export type KilocodeSessionImportMessageResponse = KilocodeSessionImportMessageResponses[keyof KilocodeSessionImportMessageResponses];
|
|
5162
|
+
export type KilocodeSessionImportPartData = {
|
|
5041
5163
|
body?: {
|
|
5042
|
-
|
|
5164
|
+
id: string;
|
|
5165
|
+
messageID: string;
|
|
5166
|
+
sessionID: string;
|
|
5167
|
+
timeCreated?: number;
|
|
5168
|
+
data: {
|
|
5169
|
+
type: "text";
|
|
5170
|
+
text: string;
|
|
5171
|
+
synthetic?: boolean;
|
|
5172
|
+
ignored?: boolean;
|
|
5173
|
+
time?: {
|
|
5174
|
+
start: number;
|
|
5175
|
+
end?: number;
|
|
5176
|
+
};
|
|
5177
|
+
metadata?: {
|
|
5178
|
+
[key: string]: unknown;
|
|
5179
|
+
};
|
|
5180
|
+
} | {
|
|
5181
|
+
type: "reasoning";
|
|
5182
|
+
text: string;
|
|
5183
|
+
metadata?: {
|
|
5184
|
+
[key: string]: unknown;
|
|
5185
|
+
};
|
|
5186
|
+
time: {
|
|
5187
|
+
start: number;
|
|
5188
|
+
end?: number;
|
|
5189
|
+
};
|
|
5190
|
+
} | {
|
|
5191
|
+
type: "tool";
|
|
5192
|
+
callID: string;
|
|
5193
|
+
tool: string;
|
|
5194
|
+
state: {
|
|
5195
|
+
status: "pending";
|
|
5196
|
+
input: {
|
|
5197
|
+
[key: string]: unknown;
|
|
5198
|
+
};
|
|
5199
|
+
raw: string;
|
|
5200
|
+
} | {
|
|
5201
|
+
status: "running";
|
|
5202
|
+
input: {
|
|
5203
|
+
[key: string]: unknown;
|
|
5204
|
+
};
|
|
5205
|
+
title?: string;
|
|
5206
|
+
metadata?: {
|
|
5207
|
+
[key: string]: unknown;
|
|
5208
|
+
};
|
|
5209
|
+
time: {
|
|
5210
|
+
start: number;
|
|
5211
|
+
};
|
|
5212
|
+
} | {
|
|
5213
|
+
status: "completed";
|
|
5214
|
+
input: {
|
|
5215
|
+
[key: string]: unknown;
|
|
5216
|
+
};
|
|
5217
|
+
output: string;
|
|
5218
|
+
title: string;
|
|
5219
|
+
metadata: {
|
|
5220
|
+
[key: string]: unknown;
|
|
5221
|
+
};
|
|
5222
|
+
time: {
|
|
5223
|
+
start: number;
|
|
5224
|
+
end: number;
|
|
5225
|
+
compacted?: number;
|
|
5226
|
+
};
|
|
5227
|
+
} | {
|
|
5228
|
+
status: "error";
|
|
5229
|
+
input: {
|
|
5230
|
+
[key: string]: unknown;
|
|
5231
|
+
};
|
|
5232
|
+
error: string;
|
|
5233
|
+
metadata?: {
|
|
5234
|
+
[key: string]: unknown;
|
|
5235
|
+
};
|
|
5236
|
+
time: {
|
|
5237
|
+
start: number;
|
|
5238
|
+
end: number;
|
|
5239
|
+
};
|
|
5240
|
+
};
|
|
5241
|
+
metadata?: {
|
|
5242
|
+
[key: string]: unknown;
|
|
5243
|
+
};
|
|
5244
|
+
};
|
|
5043
5245
|
};
|
|
5044
5246
|
path?: never;
|
|
5045
5247
|
query?: {
|
|
5046
5248
|
directory?: string;
|
|
5047
5249
|
workspace?: string;
|
|
5048
5250
|
};
|
|
5049
|
-
url: "/
|
|
5251
|
+
url: "/kilocode/session-import/part";
|
|
5050
5252
|
};
|
|
5051
|
-
export type
|
|
5253
|
+
export type KilocodeSessionImportPartErrors = {
|
|
5052
5254
|
/**
|
|
5053
5255
|
* Bad request
|
|
5054
5256
|
*/
|
|
5055
5257
|
400: BadRequestError;
|
|
5056
5258
|
};
|
|
5057
|
-
export type
|
|
5058
|
-
export type
|
|
5259
|
+
export type KilocodeSessionImportPartError = KilocodeSessionImportPartErrors[keyof KilocodeSessionImportPartErrors];
|
|
5260
|
+
export type KilocodeSessionImportPartResponses = {
|
|
5059
5261
|
/**
|
|
5060
|
-
*
|
|
5262
|
+
* Part import result
|
|
5061
5263
|
*/
|
|
5062
|
-
200:
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
body?: never;
|
|
5067
|
-
path?: never;
|
|
5068
|
-
query?: {
|
|
5069
|
-
directory?: string;
|
|
5070
|
-
workspace?: string;
|
|
5264
|
+
200: {
|
|
5265
|
+
ok: boolean;
|
|
5266
|
+
id: string;
|
|
5267
|
+
skipped?: boolean;
|
|
5071
5268
|
};
|
|
5072
|
-
url: "/tui/open-help";
|
|
5073
|
-
};
|
|
5074
|
-
export type TuiOpenHelpResponses = {
|
|
5075
|
-
/**
|
|
5076
|
-
* Help dialog opened successfully
|
|
5077
|
-
*/
|
|
5078
|
-
200: boolean;
|
|
5079
5269
|
};
|
|
5080
|
-
export type
|
|
5081
|
-
export type
|
|
5082
|
-
body?:
|
|
5083
|
-
|
|
5084
|
-
query?: {
|
|
5085
|
-
directory?: string;
|
|
5086
|
-
workspace?: string;
|
|
5270
|
+
export type KilocodeSessionImportPartResponse = KilocodeSessionImportPartResponses[keyof KilocodeSessionImportPartResponses];
|
|
5271
|
+
export type KilocodeRemoveSkillData = {
|
|
5272
|
+
body?: {
|
|
5273
|
+
location: string;
|
|
5087
5274
|
};
|
|
5088
|
-
url: "/tui/open-sessions";
|
|
5089
|
-
};
|
|
5090
|
-
export type TuiOpenSessionsResponses = {
|
|
5091
|
-
/**
|
|
5092
|
-
* Session dialog opened successfully
|
|
5093
|
-
*/
|
|
5094
|
-
200: boolean;
|
|
5095
|
-
};
|
|
5096
|
-
export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
|
|
5097
|
-
export type TuiOpenThemesData = {
|
|
5098
|
-
body?: never;
|
|
5099
5275
|
path?: never;
|
|
5100
5276
|
query?: {
|
|
5101
5277
|
directory?: string;
|
|
5102
5278
|
workspace?: string;
|
|
5103
5279
|
};
|
|
5104
|
-
url: "/
|
|
5280
|
+
url: "/kilocode/skill/remove";
|
|
5105
5281
|
};
|
|
5106
|
-
export type
|
|
5282
|
+
export type KilocodeRemoveSkillErrors = {
|
|
5107
5283
|
/**
|
|
5108
|
-
*
|
|
5284
|
+
* Bad request
|
|
5109
5285
|
*/
|
|
5110
|
-
|
|
5111
|
-
};
|
|
5112
|
-
export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
|
|
5113
|
-
export type TuiOpenModelsData = {
|
|
5114
|
-
body?: never;
|
|
5115
|
-
path?: never;
|
|
5116
|
-
query?: {
|
|
5117
|
-
directory?: string;
|
|
5118
|
-
workspace?: string;
|
|
5119
|
-
};
|
|
5120
|
-
url: "/tui/open-models";
|
|
5286
|
+
400: BadRequestError;
|
|
5121
5287
|
};
|
|
5122
|
-
export type
|
|
5288
|
+
export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
|
|
5289
|
+
export type KilocodeRemoveSkillResponses = {
|
|
5123
5290
|
/**
|
|
5124
|
-
*
|
|
5291
|
+
* Skill removed
|
|
5125
5292
|
*/
|
|
5126
5293
|
200: boolean;
|
|
5127
5294
|
};
|
|
5128
|
-
export type
|
|
5129
|
-
export type
|
|
5130
|
-
body?:
|
|
5295
|
+
export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
|
|
5296
|
+
export type KilocodeRemoveAgentData = {
|
|
5297
|
+
body?: {
|
|
5298
|
+
name: string;
|
|
5299
|
+
};
|
|
5131
5300
|
path?: never;
|
|
5132
5301
|
query?: {
|
|
5133
5302
|
directory?: string;
|
|
5134
5303
|
workspace?: string;
|
|
5135
5304
|
};
|
|
5136
|
-
url: "/
|
|
5305
|
+
url: "/kilocode/agent/remove";
|
|
5137
5306
|
};
|
|
5138
|
-
export type
|
|
5307
|
+
export type KilocodeRemoveAgentErrors = {
|
|
5139
5308
|
/**
|
|
5140
|
-
*
|
|
5309
|
+
* Bad request
|
|
5141
5310
|
*/
|
|
5142
|
-
|
|
5143
|
-
};
|
|
5144
|
-
export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
|
|
5145
|
-
export type TuiClearPromptData = {
|
|
5146
|
-
body?: never;
|
|
5147
|
-
path?: never;
|
|
5148
|
-
query?: {
|
|
5149
|
-
directory?: string;
|
|
5150
|
-
workspace?: string;
|
|
5151
|
-
};
|
|
5152
|
-
url: "/tui/clear-prompt";
|
|
5311
|
+
400: BadRequestError;
|
|
5153
5312
|
};
|
|
5154
|
-
export type
|
|
5313
|
+
export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
|
|
5314
|
+
export type KilocodeRemoveAgentResponses = {
|
|
5155
5315
|
/**
|
|
5156
|
-
*
|
|
5316
|
+
* Agent removed
|
|
5157
5317
|
*/
|
|
5158
5318
|
200: boolean;
|
|
5159
5319
|
};
|
|
5160
|
-
export type
|
|
5161
|
-
export type
|
|
5162
|
-
body?:
|
|
5163
|
-
command: string;
|
|
5164
|
-
};
|
|
5320
|
+
export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
|
|
5321
|
+
export type KiloProfileData = {
|
|
5322
|
+
body?: never;
|
|
5165
5323
|
path?: never;
|
|
5166
5324
|
query?: {
|
|
5167
5325
|
directory?: string;
|
|
5168
5326
|
workspace?: string;
|
|
5169
5327
|
};
|
|
5170
|
-
url: "/
|
|
5328
|
+
url: "/kilo/profile";
|
|
5171
5329
|
};
|
|
5172
|
-
export type
|
|
5330
|
+
export type KiloProfileErrors = {
|
|
5173
5331
|
/**
|
|
5174
5332
|
* Bad request
|
|
5175
5333
|
*/
|
|
5176
5334
|
400: BadRequestError;
|
|
5177
5335
|
};
|
|
5178
|
-
export type
|
|
5179
|
-
export type
|
|
5336
|
+
export type KiloProfileError = KiloProfileErrors[keyof KiloProfileErrors];
|
|
5337
|
+
export type KiloProfileResponses = {
|
|
5180
5338
|
/**
|
|
5181
|
-
*
|
|
5339
|
+
* Profile data
|
|
5182
5340
|
*/
|
|
5183
|
-
200:
|
|
5341
|
+
200: {
|
|
5342
|
+
profile: {
|
|
5343
|
+
email: string;
|
|
5344
|
+
name?: string;
|
|
5345
|
+
organizations?: Array<{
|
|
5346
|
+
id: string;
|
|
5347
|
+
name: string;
|
|
5348
|
+
role: string;
|
|
5349
|
+
}>;
|
|
5350
|
+
};
|
|
5351
|
+
balance: {
|
|
5352
|
+
balance: number;
|
|
5353
|
+
} | null;
|
|
5354
|
+
currentOrgId: string | null;
|
|
5355
|
+
};
|
|
5184
5356
|
};
|
|
5185
|
-
export type
|
|
5186
|
-
export type
|
|
5357
|
+
export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
|
|
5358
|
+
export type KiloOrganizationSetData = {
|
|
5187
5359
|
body?: {
|
|
5188
|
-
|
|
5189
|
-
message: string;
|
|
5190
|
-
variant: "info" | "success" | "warning" | "error";
|
|
5191
|
-
/**
|
|
5192
|
-
* Duration in milliseconds
|
|
5193
|
-
*/
|
|
5194
|
-
duration?: number;
|
|
5195
|
-
};
|
|
5196
|
-
path?: never;
|
|
5197
|
-
query?: {
|
|
5198
|
-
directory?: string;
|
|
5199
|
-
workspace?: string;
|
|
5360
|
+
organizationId: string | null;
|
|
5200
5361
|
};
|
|
5201
|
-
url: "/tui/show-toast";
|
|
5202
|
-
};
|
|
5203
|
-
export type TuiShowToastResponses = {
|
|
5204
|
-
/**
|
|
5205
|
-
* Toast notification shown successfully
|
|
5206
|
-
*/
|
|
5207
|
-
200: boolean;
|
|
5208
|
-
};
|
|
5209
|
-
export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
|
|
5210
|
-
export type TuiPublishData = {
|
|
5211
|
-
body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
|
|
5212
5362
|
path?: never;
|
|
5213
5363
|
query?: {
|
|
5214
5364
|
directory?: string;
|
|
5215
5365
|
workspace?: string;
|
|
5216
5366
|
};
|
|
5217
|
-
url: "/
|
|
5367
|
+
url: "/kilo/organization";
|
|
5218
5368
|
};
|
|
5219
|
-
export type
|
|
5369
|
+
export type KiloOrganizationSetErrors = {
|
|
5220
5370
|
/**
|
|
5221
5371
|
* Bad request
|
|
5222
5372
|
*/
|
|
5223
5373
|
400: BadRequestError;
|
|
5224
5374
|
};
|
|
5225
|
-
export type
|
|
5226
|
-
export type
|
|
5375
|
+
export type KiloOrganizationSetError = KiloOrganizationSetErrors[keyof KiloOrganizationSetErrors];
|
|
5376
|
+
export type KiloOrganizationSetResponses = {
|
|
5227
5377
|
/**
|
|
5228
|
-
*
|
|
5378
|
+
* Organization updated successfully
|
|
5229
5379
|
*/
|
|
5230
5380
|
200: boolean;
|
|
5231
5381
|
};
|
|
5232
|
-
export type
|
|
5233
|
-
export type
|
|
5234
|
-
body?:
|
|
5235
|
-
/**
|
|
5236
|
-
* Session ID to navigate to
|
|
5237
|
-
*/
|
|
5238
|
-
sessionID: string;
|
|
5239
|
-
};
|
|
5382
|
+
export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses];
|
|
5383
|
+
export type KiloModesData = {
|
|
5384
|
+
body?: never;
|
|
5240
5385
|
path?: never;
|
|
5241
5386
|
query?: {
|
|
5242
5387
|
directory?: string;
|
|
5243
5388
|
workspace?: string;
|
|
5244
5389
|
};
|
|
5245
|
-
url: "/
|
|
5246
|
-
};
|
|
5247
|
-
export type TuiSelectSessionErrors = {
|
|
5248
|
-
/**
|
|
5249
|
-
* Bad request
|
|
5250
|
-
*/
|
|
5251
|
-
400: BadRequestError;
|
|
5252
|
-
/**
|
|
5253
|
-
* Not found
|
|
5254
|
-
*/
|
|
5255
|
-
404: NotFoundError;
|
|
5390
|
+
url: "/kilo/modes";
|
|
5256
5391
|
};
|
|
5257
|
-
export type
|
|
5258
|
-
export type TuiSelectSessionResponses = {
|
|
5392
|
+
export type KiloModesResponses = {
|
|
5259
5393
|
/**
|
|
5260
|
-
*
|
|
5394
|
+
* Organization modes list
|
|
5261
5395
|
*/
|
|
5262
|
-
200:
|
|
5396
|
+
200: {
|
|
5397
|
+
modes: Array<{
|
|
5398
|
+
id: string;
|
|
5399
|
+
organization_id: string;
|
|
5400
|
+
name: string;
|
|
5401
|
+
slug: string;
|
|
5402
|
+
created_by: string;
|
|
5403
|
+
created_at: string;
|
|
5404
|
+
updated_at: string;
|
|
5405
|
+
config: {
|
|
5406
|
+
roleDefinition?: string;
|
|
5407
|
+
whenToUse?: string;
|
|
5408
|
+
description?: string;
|
|
5409
|
+
customInstructions?: string;
|
|
5410
|
+
groups?: Array<string | [
|
|
5411
|
+
string,
|
|
5412
|
+
{
|
|
5413
|
+
fileRegex?: string;
|
|
5414
|
+
description?: string;
|
|
5415
|
+
}
|
|
5416
|
+
]>;
|
|
5417
|
+
};
|
|
5418
|
+
}>;
|
|
5419
|
+
};
|
|
5263
5420
|
};
|
|
5264
|
-
export type
|
|
5265
|
-
export type
|
|
5266
|
-
body?:
|
|
5421
|
+
export type KiloModesResponse = KiloModesResponses[keyof KiloModesResponses];
|
|
5422
|
+
export type KiloFimData = {
|
|
5423
|
+
body?: {
|
|
5424
|
+
prefix: string;
|
|
5425
|
+
suffix: string;
|
|
5426
|
+
model?: string;
|
|
5427
|
+
maxTokens?: number;
|
|
5428
|
+
temperature?: number;
|
|
5429
|
+
};
|
|
5267
5430
|
path?: never;
|
|
5268
5431
|
query?: {
|
|
5269
5432
|
directory?: string;
|
|
5270
5433
|
workspace?: string;
|
|
5271
5434
|
};
|
|
5272
|
-
url: "/
|
|
5435
|
+
url: "/kilo/fim";
|
|
5273
5436
|
};
|
|
5274
|
-
export type
|
|
5437
|
+
export type KiloFimErrors = {
|
|
5275
5438
|
/**
|
|
5276
|
-
*
|
|
5439
|
+
* Bad request
|
|
5277
5440
|
*/
|
|
5278
|
-
|
|
5279
|
-
path: string;
|
|
5280
|
-
body: unknown;
|
|
5281
|
-
};
|
|
5282
|
-
};
|
|
5283
|
-
export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
|
|
5284
|
-
export type TuiControlResponseData = {
|
|
5285
|
-
body?: unknown;
|
|
5286
|
-
path?: never;
|
|
5287
|
-
query?: {
|
|
5288
|
-
directory?: string;
|
|
5289
|
-
workspace?: string;
|
|
5290
|
-
};
|
|
5291
|
-
url: "/tui/control/response";
|
|
5441
|
+
400: BadRequestError;
|
|
5292
5442
|
};
|
|
5293
|
-
export type
|
|
5443
|
+
export type KiloFimError = KiloFimErrors[keyof KiloFimErrors];
|
|
5444
|
+
export type KiloFimResponses = {
|
|
5294
5445
|
/**
|
|
5295
|
-
*
|
|
5446
|
+
* Streaming FIM completion response
|
|
5296
5447
|
*/
|
|
5297
|
-
200:
|
|
5448
|
+
200: {
|
|
5449
|
+
choices?: Array<{
|
|
5450
|
+
delta?: {
|
|
5451
|
+
content?: string;
|
|
5452
|
+
};
|
|
5453
|
+
}>;
|
|
5454
|
+
usage?: {
|
|
5455
|
+
prompt_tokens?: number;
|
|
5456
|
+
completion_tokens?: number;
|
|
5457
|
+
};
|
|
5458
|
+
cost?: number;
|
|
5459
|
+
};
|
|
5298
5460
|
};
|
|
5299
|
-
export type
|
|
5300
|
-
export type
|
|
5461
|
+
export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
|
|
5462
|
+
export type KiloNotificationsData = {
|
|
5301
5463
|
body?: never;
|
|
5302
5464
|
path?: never;
|
|
5303
5465
|
query?: {
|
|
5304
5466
|
directory?: string;
|
|
5305
5467
|
workspace?: string;
|
|
5306
5468
|
};
|
|
5307
|
-
url: "/
|
|
5469
|
+
url: "/kilo/notifications";
|
|
5308
5470
|
};
|
|
5309
|
-
export type
|
|
5471
|
+
export type KiloNotificationsErrors = {
|
|
5310
5472
|
/**
|
|
5311
|
-
*
|
|
5473
|
+
* Bad request
|
|
5312
5474
|
*/
|
|
5313
|
-
|
|
5314
|
-
};
|
|
5315
|
-
export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
|
|
5316
|
-
export type PathGetData = {
|
|
5317
|
-
body?: never;
|
|
5318
|
-
path?: never;
|
|
5319
|
-
query?: {
|
|
5320
|
-
directory?: string;
|
|
5321
|
-
workspace?: string;
|
|
5322
|
-
};
|
|
5323
|
-
url: "/path";
|
|
5475
|
+
400: BadRequestError;
|
|
5324
5476
|
};
|
|
5325
|
-
export type
|
|
5477
|
+
export type KiloNotificationsError = KiloNotificationsErrors[keyof KiloNotificationsErrors];
|
|
5478
|
+
export type KiloNotificationsResponses = {
|
|
5326
5479
|
/**
|
|
5327
|
-
*
|
|
5480
|
+
* Notifications list
|
|
5328
5481
|
*/
|
|
5329
|
-
200:
|
|
5482
|
+
200: Array<{
|
|
5483
|
+
id: string;
|
|
5484
|
+
title: string;
|
|
5485
|
+
message: string;
|
|
5486
|
+
action?: {
|
|
5487
|
+
actionText: string;
|
|
5488
|
+
actionURL: string;
|
|
5489
|
+
};
|
|
5490
|
+
showIn?: Array<string>;
|
|
5491
|
+
suggestModelId?: string;
|
|
5492
|
+
}>;
|
|
5330
5493
|
};
|
|
5331
|
-
export type
|
|
5332
|
-
export type
|
|
5494
|
+
export type KiloNotificationsResponse = KiloNotificationsResponses[keyof KiloNotificationsResponses];
|
|
5495
|
+
export type KiloCloudSessionGetData = {
|
|
5333
5496
|
body?: never;
|
|
5334
|
-
path
|
|
5497
|
+
path: {
|
|
5498
|
+
id: string;
|
|
5499
|
+
};
|
|
5335
5500
|
query?: {
|
|
5336
5501
|
directory?: string;
|
|
5337
5502
|
workspace?: string;
|
|
5338
5503
|
};
|
|
5339
|
-
url: "/
|
|
5504
|
+
url: "/kilo/cloud/session/{id}";
|
|
5340
5505
|
};
|
|
5341
|
-
export type
|
|
5506
|
+
export type KiloCloudSessionGetErrors = {
|
|
5342
5507
|
/**
|
|
5343
|
-
*
|
|
5508
|
+
* Not found
|
|
5344
5509
|
*/
|
|
5345
|
-
|
|
5346
|
-
};
|
|
5347
|
-
export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
|
|
5348
|
-
export type CommandListData = {
|
|
5349
|
-
body?: never;
|
|
5350
|
-
path?: never;
|
|
5351
|
-
query?: {
|
|
5352
|
-
directory?: string;
|
|
5353
|
-
workspace?: string;
|
|
5354
|
-
};
|
|
5355
|
-
url: "/command";
|
|
5510
|
+
404: NotFoundError;
|
|
5356
5511
|
};
|
|
5357
|
-
export type
|
|
5512
|
+
export type KiloCloudSessionGetError = KiloCloudSessionGetErrors[keyof KiloCloudSessionGetErrors];
|
|
5513
|
+
export type KiloCloudSessionGetResponses = {
|
|
5358
5514
|
/**
|
|
5359
|
-
*
|
|
5515
|
+
* Cloud session data
|
|
5360
5516
|
*/
|
|
5361
|
-
200:
|
|
5517
|
+
200: unknown;
|
|
5362
5518
|
};
|
|
5363
|
-
export type
|
|
5364
|
-
export type AppLogData = {
|
|
5519
|
+
export type KiloCloudSessionImportData = {
|
|
5365
5520
|
body?: {
|
|
5366
|
-
|
|
5367
|
-
* Service name for the log entry
|
|
5368
|
-
*/
|
|
5369
|
-
service: string;
|
|
5370
|
-
/**
|
|
5371
|
-
* Log level
|
|
5372
|
-
*/
|
|
5373
|
-
level: "debug" | "info" | "error" | "warn";
|
|
5374
|
-
/**
|
|
5375
|
-
* Log message
|
|
5376
|
-
*/
|
|
5377
|
-
message: string;
|
|
5378
|
-
/**
|
|
5379
|
-
* Additional metadata for the log entry
|
|
5380
|
-
*/
|
|
5381
|
-
extra?: {
|
|
5382
|
-
[key: string]: unknown;
|
|
5383
|
-
};
|
|
5521
|
+
sessionId: string;
|
|
5384
5522
|
};
|
|
5385
5523
|
path?: never;
|
|
5386
5524
|
query?: {
|
|
5387
5525
|
directory?: string;
|
|
5388
5526
|
workspace?: string;
|
|
5389
5527
|
};
|
|
5390
|
-
url: "/
|
|
5528
|
+
url: "/kilo/cloud/session/import";
|
|
5391
5529
|
};
|
|
5392
|
-
export type
|
|
5530
|
+
export type KiloCloudSessionImportErrors = {
|
|
5393
5531
|
/**
|
|
5394
5532
|
* Bad request
|
|
5395
5533
|
*/
|
|
5396
5534
|
400: BadRequestError;
|
|
5397
|
-
};
|
|
5398
|
-
export type AppLogError = AppLogErrors[keyof AppLogErrors];
|
|
5399
|
-
export type AppLogResponses = {
|
|
5400
5535
|
/**
|
|
5401
|
-
*
|
|
5536
|
+
* Not found
|
|
5402
5537
|
*/
|
|
5403
|
-
|
|
5404
|
-
};
|
|
5405
|
-
export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
5406
|
-
export type AppAgentsData = {
|
|
5407
|
-
body?: never;
|
|
5408
|
-
path?: never;
|
|
5409
|
-
query?: {
|
|
5410
|
-
directory?: string;
|
|
5411
|
-
workspace?: string;
|
|
5412
|
-
};
|
|
5413
|
-
url: "/agent";
|
|
5538
|
+
404: NotFoundError;
|
|
5414
5539
|
};
|
|
5415
|
-
export type
|
|
5540
|
+
export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
|
|
5541
|
+
export type KiloCloudSessionImportResponses = {
|
|
5416
5542
|
/**
|
|
5417
|
-
*
|
|
5543
|
+
* Imported session info
|
|
5418
5544
|
*/
|
|
5419
|
-
200:
|
|
5545
|
+
200: unknown;
|
|
5420
5546
|
};
|
|
5421
|
-
export type
|
|
5422
|
-
export type AppSkillsData = {
|
|
5547
|
+
export type KiloClawStatusData = {
|
|
5423
5548
|
body?: never;
|
|
5424
5549
|
path?: never;
|
|
5425
5550
|
query?: {
|
|
5426
5551
|
directory?: string;
|
|
5427
5552
|
workspace?: string;
|
|
5428
5553
|
};
|
|
5429
|
-
url: "/
|
|
5554
|
+
url: "/kilo/claw/status";
|
|
5430
5555
|
};
|
|
5431
|
-
export type
|
|
5556
|
+
export type KiloClawStatusResponses = {
|
|
5432
5557
|
/**
|
|
5433
|
-
*
|
|
5558
|
+
* Instance status
|
|
5434
5559
|
*/
|
|
5435
|
-
200:
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5560
|
+
200: {
|
|
5561
|
+
status: "provisioned" | "starting" | "restarting" | "running" | "stopped" | "destroying" | null;
|
|
5562
|
+
sandboxId?: string;
|
|
5563
|
+
flyRegion?: string;
|
|
5564
|
+
machineSize?: {
|
|
5565
|
+
cpus: number;
|
|
5566
|
+
memory_mb: number;
|
|
5567
|
+
};
|
|
5568
|
+
openclawVersion?: string | null;
|
|
5569
|
+
lastStartedAt?: string | null;
|
|
5570
|
+
lastStoppedAt?: string | null;
|
|
5571
|
+
channelCount?: number;
|
|
5572
|
+
secretCount?: number;
|
|
5573
|
+
userId?: string;
|
|
5574
|
+
};
|
|
5441
5575
|
};
|
|
5442
|
-
export type
|
|
5443
|
-
export type
|
|
5576
|
+
export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
|
|
5577
|
+
export type KiloClawChatCredentialsData = {
|
|
5444
5578
|
body?: never;
|
|
5445
5579
|
path?: never;
|
|
5446
5580
|
query?: {
|
|
5447
5581
|
directory?: string;
|
|
5448
5582
|
workspace?: string;
|
|
5449
5583
|
};
|
|
5450
|
-
url: "/
|
|
5584
|
+
url: "/kilo/claw/chat-credentials";
|
|
5451
5585
|
};
|
|
5452
|
-
export type
|
|
5586
|
+
export type KiloClawChatCredentialsResponses = {
|
|
5453
5587
|
/**
|
|
5454
|
-
*
|
|
5588
|
+
* Stream Chat credentials or null
|
|
5455
5589
|
*/
|
|
5456
|
-
200:
|
|
5590
|
+
200: {
|
|
5591
|
+
apiKey: string;
|
|
5592
|
+
userId: string;
|
|
5593
|
+
userToken: string;
|
|
5594
|
+
channelId: string;
|
|
5595
|
+
} | null;
|
|
5457
5596
|
};
|
|
5458
|
-
export type
|
|
5459
|
-
export type
|
|
5597
|
+
export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
|
|
5598
|
+
export type KiloCloudSessionsData = {
|
|
5460
5599
|
body?: never;
|
|
5461
5600
|
path?: never;
|
|
5462
5601
|
query?: {
|
|
5463
5602
|
directory?: string;
|
|
5464
5603
|
workspace?: string;
|
|
5604
|
+
cursor?: string;
|
|
5605
|
+
limit?: number;
|
|
5606
|
+
gitUrl?: string;
|
|
5465
5607
|
};
|
|
5466
|
-
url: "/
|
|
5608
|
+
url: "/kilo/cloud-sessions";
|
|
5467
5609
|
};
|
|
5468
|
-
export type
|
|
5610
|
+
export type KiloCloudSessionsErrors = {
|
|
5469
5611
|
/**
|
|
5470
|
-
*
|
|
5612
|
+
* Bad request
|
|
5471
5613
|
*/
|
|
5472
|
-
|
|
5473
|
-
};
|
|
5474
|
-
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
|
|
5475
|
-
export type EventSubscribeData = {
|
|
5476
|
-
body?: never;
|
|
5477
|
-
path?: never;
|
|
5478
|
-
query?: {
|
|
5479
|
-
directory?: string;
|
|
5480
|
-
workspace?: string;
|
|
5481
|
-
};
|
|
5482
|
-
url: "/event";
|
|
5614
|
+
400: BadRequestError;
|
|
5483
5615
|
};
|
|
5484
|
-
export type
|
|
5616
|
+
export type KiloCloudSessionsError = KiloCloudSessionsErrors[keyof KiloCloudSessionsErrors];
|
|
5617
|
+
export type KiloCloudSessionsResponses = {
|
|
5485
5618
|
/**
|
|
5486
|
-
*
|
|
5619
|
+
* Cloud sessions list
|
|
5487
5620
|
*/
|
|
5488
|
-
200:
|
|
5621
|
+
200: {
|
|
5622
|
+
cliSessions: Array<{
|
|
5623
|
+
session_id: string;
|
|
5624
|
+
title: string | null;
|
|
5625
|
+
created_at: string;
|
|
5626
|
+
updated_at: string;
|
|
5627
|
+
version: number;
|
|
5628
|
+
}>;
|
|
5629
|
+
nextCursor: string | null;
|
|
5630
|
+
};
|
|
5489
5631
|
};
|
|
5490
|
-
export type
|
|
5632
|
+
export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];
|