@kilocode/sdk 7.2.4 → 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.
@@ -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 OutputFormatText = {
167
- type: "text";
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 JsonSchema = {
170
- [key: string]: unknown;
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 OutputFormatJsonSchema = {
173
- type: "json_schema";
174
- schema: JsonSchema;
175
- retryCount?: number;
184
+ export type EventPermissionAsked = {
185
+ type: "permission.asked";
186
+ properties: PermissionRequest;
176
187
  };
177
- export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
178
- export type FileDiff = {
179
- file: string;
180
- before: string;
181
- after: string;
182
- additions: number;
183
- deletions: number;
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 UserMessage = {
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
- role: "user";
190
- time: {
191
- created: number;
231
+ /**
232
+ * Questions to ask
233
+ */
234
+ questions: Array<QuestionInfo>;
235
+ tool?: {
236
+ messageID: string;
237
+ callID: string;
192
238
  };
193
- format?: OutputFormat;
194
- summary?: {
195
- title?: string;
196
- body?: string;
197
- diffs: Array<FileDiff>;
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
- agent: string;
200
- model: {
201
- providerID: string;
202
- modelID: string;
252
+ };
253
+ export type EventQuestionRejected = {
254
+ type: "question.rejected";
255
+ properties: {
256
+ sessionID: string;
257
+ requestID: string;
203
258
  };
204
- system?: string;
205
- tools?: {
206
- [key: string]: boolean;
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
- variant?: string;
209
- editorContext?: {
210
- visibleFiles?: Array<string>;
211
- openTabs?: Array<string>;
212
- activeFile?: string;
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 ProviderAuthError = {
217
- name: "ProviderAuthError";
218
- data: {
219
- providerID: string;
220
- message: string;
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 UnknownError = {
224
- name: "UnknownError";
225
- data: {
226
- message: string;
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 MessageOutputLengthError = {
230
- name: "MessageOutputLengthError";
231
- data: {
232
- [key: string]: unknown;
315
+ export type EventSessionIdle = {
316
+ type: "session.idle";
317
+ properties: {
318
+ sessionID: string;
233
319
  };
234
320
  };
235
- export type MessageAbortedError = {
236
- name: "MessageAbortedError";
237
- data: {
238
- message: string;
321
+ export type EventSessionCompacted = {
322
+ type: "session.compacted";
323
+ properties: {
324
+ sessionID: string;
239
325
  };
240
326
  };
241
- export type StructuredOutputError = {
242
- name: "StructuredOutputError";
243
- data: {
244
- message: string;
245
- retries: number;
327
+ export type EventFileEdited = {
328
+ type: "file.edited";
329
+ properties: {
330
+ file: string;
246
331
  };
247
332
  };
248
- export type ContextOverflowError = {
249
- name: "ContextOverflowError";
250
- data: {
251
- message: string;
252
- responseBody?: string;
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 ApiError = {
256
- name: "APIError";
257
- data: {
258
- message: string;
259
- statusCode?: number;
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
- messageID: string;
555
- partID: string;
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 PermissionRequest = {
569
- id: string;
570
- sessionID: string;
830
+ export type PermissionAction = "allow" | "deny" | "ask";
831
+ export type PermissionRule = {
571
832
  permission: string;
572
- patterns: Array<string>;
573
- metadata: {
574
- [key: string]: unknown;
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
- always: Array<string>;
577
- tool?: {
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
- callID: string;
869
+ partID?: string;
870
+ snapshot?: string;
871
+ diff?: string;
580
872
  };
581
873
  };
582
- export type EventPermissionAsked = {
583
- type: "permission.asked";
584
- properties: PermissionRequest;
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
- requestID: string;
591
- reply: "once" | "always" | "reject";
878
+ info: Session;
592
879
  };
593
880
  };
594
- export type SessionStatus = {
595
- type: "idle";
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
- status: SessionStatus;
885
+ info: Session;
613
886
  };
614
887
  };
615
- export type EventSessionIdle = {
616
- type: "session.idle";
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 QuestionOption = {
622
- /**
623
- * Display text (1-5 words, concise)
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 QuestionInfo = {
636
- /**
637
- * Complete question
638
- */
639
- question: string;
640
- /**
641
- * Very short label (max 30 chars)
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 QuestionRequest = {
658
- id: string;
659
- sessionID: string;
660
- /**
661
- * Questions to ask
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 EventQuestionAsked = {
670
- type: "question.asked";
671
- properties: QuestionRequest;
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 QuestionAnswer = Array<string>;
674
- export type EventQuestionReplied = {
675
- type: "question.replied";
676
- properties: {
925
+ export type SyncEventMessagePartRemoved = {
926
+ type: "message.part.removed.1";
927
+ aggregate: "sessionID";
928
+ data: {
677
929
  sessionID: string;
678
- requestID: string;
679
- answers: Array<QuestionAnswer>;
930
+ messageID: string;
931
+ partID: string;
680
932
  };
681
933
  };
682
- export type EventQuestionRejected = {
683
- type: "question.rejected";
684
- properties: {
934
+ export type SyncEventSessionCreated = {
935
+ type: "session.created.1";
936
+ aggregate: "sessionID";
937
+ data: {
685
938
  sessionID: string;
686
- requestID: string;
939
+ info: Session;
687
940
  };
688
941
  };
689
- export type EventSessionCompacted = {
690
- type: "session.compacted";
691
- properties: {
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 EventFileWatcherUpdated = {
696
- type: "file.watcher.updated";
697
- properties: {
698
- file: string;
699
- event: "add" | "change" | "unlink";
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 Todo = {
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
- * Brief description of the task
1006
+ * Port to listen on
705
1007
  */
706
- content: string;
1008
+ port?: number;
707
1009
  /**
708
- * Current status of the task: pending, in_progress, completed, cancelled
1010
+ * Hostname to listen on
709
1011
  */
710
- status: string;
1012
+ hostname?: string;
711
1013
  /**
712
- * Priority level of the task: high, medium, low
1014
+ * Enable mDNS service discovery
713
1015
  */
714
- priority: string;
715
- };
716
- export type EventTodoUpdated = {
717
- type: "todo.updated";
718
- properties: {
719
- sessionID: string;
720
- todos: Array<Todo>;
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 PermissionAction = "allow" | "deny" | "ask";
733
- export type PermissionRule = {
734
- permission: string;
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 PermissionRuleset = Array<PermissionRule>;
739
- export type Session = {
740
- id: string;
741
- slug: string;
742
- projectID: string;
743
- workspaceID?: string;
744
- directory: string;
745
- parentID?: string;
746
- summary?: {
747
- additions: number;
748
- deletions: number;
749
- files: number;
750
- diffs?: Array<{
751
- file: string;
752
- additions: number;
753
- deletions: number;
754
- status?: "added" | "deleted" | "modified";
755
- }>;
756
- };
757
- share?: {
758
- url: string;
759
- };
760
- title: string;
761
- version: string;
762
- time: {
763
- created: number;
764
- updated: number;
765
- compacting?: number;
766
- archived?: number;
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
- permission?: PermissionRuleset;
769
- revert?: {
770
- messageID: string;
771
- partID?: string;
772
- snapshot?: string;
773
- diff?: string;
774
- };
775
- };
776
- export type EventSessionCreated = {
777
- type: "session.created";
778
- properties: {
779
- info: Session;
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)
@@ -1196,8 +1294,16 @@ export type Config = {
1196
1294
  watcher?: {
1197
1295
  ignore?: Array<string>;
1198
1296
  };
1199
- plugin?: Array<string>;
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
+ */
1200
1300
  snapshot?: boolean;
1301
+ plugin?: Array<string | [
1302
+ string,
1303
+ {
1304
+ [key: string]: unknown;
1305
+ }
1306
+ ]>;
1201
1307
  /**
1202
1308
  * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
1203
1309
  */
@@ -1618,6 +1724,31 @@ export type SubtaskPartInput = {
1618
1724
  export type ProviderAuthMethod = {
1619
1725
  type: "oauth" | "api";
1620
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
+ }>;
1621
1752
  };
1622
1753
  export type ProviderAuthAuthorization = {
1623
1754
  url: string;
@@ -1692,7 +1823,7 @@ export type Path = {
1692
1823
  directory: string;
1693
1824
  };
1694
1825
  export type VcsInfo = {
1695
- branch: string;
1826
+ branch?: string;
1696
1827
  };
1697
1828
  export type Command = {
1698
1829
  name: string;
@@ -1708,10 +1839,10 @@ export type Agent = {
1708
1839
  name: string;
1709
1840
  displayName?: string;
1710
1841
  description?: string;
1842
+ deprecated?: boolean;
1711
1843
  mode: "subagent" | "primary" | "all";
1712
1844
  native?: boolean;
1713
1845
  hidden?: boolean;
1714
- deprecated?: boolean;
1715
1846
  topP?: number;
1716
1847
  temperature?: number;
1717
1848
  color?: string;
@@ -1767,6 +1898,19 @@ export type GlobalEventResponses = {
1767
1898
  200: GlobalEvent;
1768
1899
  };
1769
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];
1770
1914
  export type GlobalConfigGetData = {
1771
1915
  body?: never;
1772
1916
  path?: never;
@@ -1813,6 +1957,34 @@ export type GlobalDisposeResponses = {
1813
1957
  200: boolean;
1814
1958
  };
1815
1959
  export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
1960
+ export type GlobalUpgradeData = {
1961
+ body?: {
1962
+ target?: string;
1963
+ };
1964
+ path?: never;
1965
+ query?: never;
1966
+ url: "/global/upgrade";
1967
+ };
1968
+ export type GlobalUpgradeErrors = {
1969
+ /**
1970
+ * Bad request
1971
+ */
1972
+ 400: BadRequestError;
1973
+ };
1974
+ export type GlobalUpgradeError = GlobalUpgradeErrors[keyof GlobalUpgradeErrors];
1975
+ export type GlobalUpgradeResponses = {
1976
+ /**
1977
+ * Upgrade result
1978
+ */
1979
+ 200: {
1980
+ success: true;
1981
+ version: string;
1982
+ } | {
1983
+ success: false;
1984
+ error: string;
1985
+ };
1986
+ };
1987
+ export type GlobalUpgradeResponse = GlobalUpgradeResponses[keyof GlobalUpgradeResponses];
1816
1988
  export type AuthRemoveData = {
1817
1989
  body?: never;
1818
1990
  path: {
@@ -1857,21 +2029,63 @@ export type AuthSetResponses = {
1857
2029
  200: boolean;
1858
2030
  };
1859
2031
  export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
1860
- export type ProjectListData = {
1861
- body?: never;
1862
- path?: never;
1863
- query?: {
1864
- directory?: string;
1865
- workspace?: string;
1866
- };
1867
- url: "/project";
1868
- };
1869
- export type ProjectListResponses = {
1870
- /**
1871
- * List of projects
1872
- */
1873
- 200: Array<Project>;
1874
- };
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];
2074
+ export type ProjectListData = {
2075
+ body?: never;
2076
+ path?: never;
2077
+ query?: {
2078
+ directory?: string;
2079
+ workspace?: string;
2080
+ };
2081
+ url: "/project";
2082
+ };
2083
+ export type ProjectListResponses = {
2084
+ /**
2085
+ * List of projects
2086
+ */
2087
+ 200: Array<Project>;
2088
+ };
1875
2089
  export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
1876
2090
  export type ProjectCurrentData = {
1877
2091
  body?: never;
@@ -2975,7 +3189,11 @@ export type SessionMessagesData = {
2975
3189
  query?: {
2976
3190
  directory?: string;
2977
3191
  workspace?: string;
3192
+ /**
3193
+ * Maximum number of messages to return
3194
+ */
2978
3195
  limit?: number;
3196
+ before?: string;
2979
3197
  };
2980
3198
  url: "/session/{sessionID}/message";
2981
3199
  };
@@ -3509,37 +3727,6 @@ export type PermissionListResponses = {
3509
3727
  200: Array<PermissionRequest>;
3510
3728
  };
3511
3729
  export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses];
3512
- export type PermissionAllowEverythingData = {
3513
- body?: {
3514
- enable: boolean;
3515
- requestID?: string;
3516
- sessionID?: string;
3517
- };
3518
- path?: never;
3519
- query?: {
3520
- directory?: string;
3521
- workspace?: string;
3522
- };
3523
- url: "/permission/allow-everything";
3524
- };
3525
- export type PermissionAllowEverythingErrors = {
3526
- /**
3527
- * Bad request
3528
- */
3529
- 400: BadRequestError;
3530
- /**
3531
- * Not found
3532
- */
3533
- 404: NotFoundError;
3534
- };
3535
- export type PermissionAllowEverythingError = PermissionAllowEverythingErrors[keyof PermissionAllowEverythingErrors];
3536
- export type PermissionAllowEverythingResponses = {
3537
- /**
3538
- * Success
3539
- */
3540
- 200: boolean;
3541
- };
3542
- export type PermissionAllowEverythingResponse = PermissionAllowEverythingResponses[keyof PermissionAllowEverythingResponses];
3543
3730
  export type QuestionListData = {
3544
3731
  body?: never;
3545
3732
  path?: never;
@@ -3619,80 +3806,6 @@ export type QuestionRejectResponses = {
3619
3806
  200: boolean;
3620
3807
  };
3621
3808
  export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses];
3622
- export type NetworkListData = {
3623
- body?: never;
3624
- path?: never;
3625
- query?: {
3626
- directory?: string;
3627
- workspace?: string;
3628
- };
3629
- url: "/network";
3630
- };
3631
- export type NetworkListResponses = {
3632
- /**
3633
- * List of pending network reconnect requests
3634
- */
3635
- 200: Array<SessionNetworkWait>;
3636
- };
3637
- export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses];
3638
- export type NetworkReplyData = {
3639
- body?: never;
3640
- path: {
3641
- requestID: string;
3642
- };
3643
- query?: {
3644
- directory?: string;
3645
- workspace?: string;
3646
- };
3647
- url: "/network/{requestID}/reply";
3648
- };
3649
- export type NetworkReplyErrors = {
3650
- /**
3651
- * Bad request
3652
- */
3653
- 400: BadRequestError;
3654
- /**
3655
- * Not found
3656
- */
3657
- 404: NotFoundError;
3658
- };
3659
- export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors];
3660
- export type NetworkReplyResponses = {
3661
- /**
3662
- * Network wait resumed successfully
3663
- */
3664
- 200: boolean;
3665
- };
3666
- export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses];
3667
- export type NetworkRejectData = {
3668
- body?: never;
3669
- path: {
3670
- requestID: string;
3671
- };
3672
- query?: {
3673
- directory?: string;
3674
- workspace?: string;
3675
- };
3676
- url: "/network/{requestID}/reject";
3677
- };
3678
- export type NetworkRejectErrors = {
3679
- /**
3680
- * Bad request
3681
- */
3682
- 400: BadRequestError;
3683
- /**
3684
- * Not found
3685
- */
3686
- 404: NotFoundError;
3687
- };
3688
- export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors];
3689
- export type NetworkRejectResponses = {
3690
- /**
3691
- * Network wait rejected successfully
3692
- */
3693
- 200: boolean;
3694
- };
3695
- export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses];
3696
3809
  export type ProviderListData = {
3697
3810
  body?: never;
3698
3811
  path?: never;
@@ -3802,6 +3915,12 @@ export type ProviderOauthAuthorizeData = {
3802
3915
  * Auth method index
3803
3916
  */
3804
3917
  method: number;
3918
+ /**
3919
+ * Prompt inputs
3920
+ */
3921
+ inputs?: {
3922
+ [key: string]: string;
3923
+ };
3805
3924
  };
3806
3925
  path: {
3807
3926
  /**
@@ -3866,1585 +3985,1648 @@ export type ProviderOauthCallbackResponses = {
3866
3985
  200: boolean;
3867
3986
  };
3868
3987
  export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
3869
- export type TelemetryCaptureData = {
3870
- body?: {
3871
- /**
3872
- * Event name
3873
- */
3874
- event: string;
3875
- /**
3876
- * Event properties
3877
- */
3878
- properties?: {
3879
- [key: string]: unknown;
3880
- };
3881
- };
3988
+ export type FindTextData = {
3989
+ body?: never;
3882
3990
  path?: never;
3883
- query?: {
3991
+ query: {
3884
3992
  directory?: string;
3885
3993
  workspace?: string;
3994
+ pattern: string;
3886
3995
  };
3887
- url: "/telemetry/capture";
3888
- };
3889
- export type TelemetryCaptureErrors = {
3890
- /**
3891
- * Bad request
3892
- */
3893
- 400: BadRequestError;
3996
+ url: "/find";
3894
3997
  };
3895
- export type TelemetryCaptureError = TelemetryCaptureErrors[keyof TelemetryCaptureErrors];
3896
- export type TelemetryCaptureResponses = {
3998
+ export type FindTextResponses = {
3897
3999
  /**
3898
- * Event captured
4000
+ * Matches
3899
4001
  */
3900
- 200: boolean;
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
+ }>;
3901
4019
  };
3902
- export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses];
3903
- export type RemoteEnableData = {
4020
+ export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
4021
+ export type FindFilesData = {
3904
4022
  body?: never;
3905
4023
  path?: never;
3906
- query?: {
4024
+ query: {
3907
4025
  directory?: string;
3908
4026
  workspace?: string;
4027
+ query: string;
4028
+ dirs?: "true" | "false";
4029
+ type?: "file" | "directory";
4030
+ limit?: number;
3909
4031
  };
3910
- url: "/remote/enable";
4032
+ url: "/find/file";
3911
4033
  };
3912
- export type RemoteEnableResponses = {
4034
+ export type FindFilesResponses = {
3913
4035
  /**
3914
- * Remote connection enabled
4036
+ * File paths
3915
4037
  */
3916
- 200: {
3917
- enabled: boolean;
3918
- connected: boolean;
3919
- };
4038
+ 200: Array<string>;
3920
4039
  };
3921
- export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
3922
- export type RemoteDisableData = {
4040
+ export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
4041
+ export type FindSymbolsData = {
3923
4042
  body?: never;
3924
4043
  path?: never;
3925
- query?: {
4044
+ query: {
3926
4045
  directory?: string;
3927
4046
  workspace?: string;
4047
+ query: string;
3928
4048
  };
3929
- url: "/remote/disable";
4049
+ url: "/find/symbol";
3930
4050
  };
3931
- export type RemoteDisableResponses = {
4051
+ export type FindSymbolsResponses = {
3932
4052
  /**
3933
- * Remote connection disabled
4053
+ * Symbols
3934
4054
  */
3935
- 200: {
3936
- enabled: boolean;
3937
- connected: boolean;
3938
- };
4055
+ 200: Array<Symbol>;
3939
4056
  };
3940
- export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
3941
- export type RemoteStatusData = {
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;
4081
+ path: string;
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 = {
3942
4093
  body?: never;
3943
4094
  path?: never;
3944
4095
  query?: {
3945
4096
  directory?: string;
3946
4097
  workspace?: string;
3947
4098
  };
3948
- url: "/remote/status";
4099
+ url: "/file/status";
3949
4100
  };
3950
- export type RemoteStatusResponses = {
4101
+ export type FileStatusResponses = {
3951
4102
  /**
3952
- * Remote connection status
4103
+ * File status
4104
+ */
4105
+ 200: Array<File>;
4106
+ };
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 = {
4118
+ /**
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
3953
4136
  */
3954
4137
  200: {
3955
- enabled: boolean;
3956
- connected: boolean;
4138
+ [key: string]: McpStatus;
3957
4139
  };
3958
4140
  };
3959
- export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
3960
- export type CommitMessageGenerateData = {
4141
+ export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
4142
+ export type McpAddData = {
3961
4143
  body?: {
3962
- /**
3963
- * Workspace/repo path
3964
- */
3965
- path: string;
3966
- /**
3967
- * Optional subset of files to include
3968
- */
3969
- selectedFiles?: Array<string>;
3970
- /**
3971
- * Previously generated message — triggers regeneration with a different result
3972
- */
3973
- previousMessage?: string;
4144
+ name: string;
4145
+ config: McpLocalConfig | McpRemoteConfig;
3974
4146
  };
3975
4147
  path?: never;
3976
4148
  query?: {
3977
4149
  directory?: string;
3978
4150
  workspace?: string;
3979
4151
  };
3980
- url: "/commit-message";
4152
+ url: "/mcp";
3981
4153
  };
3982
- export type CommitMessageGenerateErrors = {
4154
+ export type McpAddErrors = {
3983
4155
  /**
3984
4156
  * Bad request
3985
4157
  */
3986
4158
  400: BadRequestError;
3987
4159
  };
3988
- export type CommitMessageGenerateError = CommitMessageGenerateErrors[keyof CommitMessageGenerateErrors];
3989
- export type CommitMessageGenerateResponses = {
4160
+ export type McpAddError = McpAddErrors[keyof McpAddErrors];
4161
+ export type McpAddResponses = {
3990
4162
  /**
3991
- * Generated commit message
4163
+ * MCP server added successfully
3992
4164
  */
3993
4165
  200: {
3994
- message: string;
4166
+ [key: string]: McpStatus;
3995
4167
  };
3996
4168
  };
3997
- export type CommitMessageGenerateResponse = CommitMessageGenerateResponses[keyof CommitMessageGenerateResponses];
3998
- export type EnhancePromptEnhanceData = {
3999
- body?: {
4000
- /**
4001
- * The user's draft prompt to enhance
4002
- */
4003
- text: string;
4169
+ export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
4170
+ export type McpAuthRemoveData = {
4171
+ body?: never;
4172
+ path: {
4173
+ name: string;
4004
4174
  };
4005
- path?: never;
4006
4175
  query?: {
4007
4176
  directory?: string;
4008
4177
  workspace?: string;
4009
4178
  };
4010
- url: "/enhance-prompt";
4179
+ url: "/mcp/{name}/auth";
4011
4180
  };
4012
- export type EnhancePromptEnhanceErrors = {
4181
+ export type McpAuthRemoveErrors = {
4013
4182
  /**
4014
- * Bad request
4183
+ * Not found
4015
4184
  */
4016
- 400: BadRequestError;
4185
+ 404: NotFoundError;
4017
4186
  };
4018
- export type EnhancePromptEnhanceError = EnhancePromptEnhanceErrors[keyof EnhancePromptEnhanceErrors];
4019
- export type EnhancePromptEnhanceResponses = {
4187
+ export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4188
+ export type McpAuthRemoveResponses = {
4020
4189
  /**
4021
- * Enhanced prompt text
4190
+ * OAuth credentials removed
4022
4191
  */
4023
4192
  200: {
4024
- text: string;
4193
+ success: true;
4025
4194
  };
4026
4195
  };
4027
- export type EnhancePromptEnhanceResponse = EnhancePromptEnhanceResponses[keyof EnhancePromptEnhanceResponses];
4028
- export type KilocodeSessionImportProjectData = {
4029
- body?: {
4030
- id: string;
4031
- worktree: string;
4032
- vcs?: string;
4033
- name?: string;
4034
- iconUrl?: string;
4035
- iconColor?: string;
4036
- timeCreated: number;
4037
- timeUpdated: number;
4038
- timeInitialized?: number;
4039
- sandboxes: Array<string>;
4040
- commands?: {
4041
- start?: string;
4042
- };
4196
+ export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
4197
+ export type McpAuthStartData = {
4198
+ body?: never;
4199
+ path: {
4200
+ name: string;
4043
4201
  };
4044
- path?: never;
4045
4202
  query?: {
4046
4203
  directory?: string;
4047
4204
  workspace?: string;
4048
4205
  };
4049
- url: "/kilocode/session-import/project";
4206
+ url: "/mcp/{name}/auth";
4050
4207
  };
4051
- export type KilocodeSessionImportProjectErrors = {
4208
+ export type McpAuthStartErrors = {
4052
4209
  /**
4053
4210
  * Bad request
4054
4211
  */
4055
4212
  400: BadRequestError;
4213
+ /**
4214
+ * Not found
4215
+ */
4216
+ 404: NotFoundError;
4056
4217
  };
4057
- export type KilocodeSessionImportProjectError = KilocodeSessionImportProjectErrors[keyof KilocodeSessionImportProjectErrors];
4058
- export type KilocodeSessionImportProjectResponses = {
4218
+ export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4219
+ export type McpAuthStartResponses = {
4059
4220
  /**
4060
- * Project import result
4221
+ * OAuth flow started
4061
4222
  */
4062
4223
  200: {
4063
- ok: boolean;
4064
- id: string;
4065
- skipped?: boolean;
4224
+ /**
4225
+ * URL to open in browser for authorization
4226
+ */
4227
+ authorizationUrl: string;
4066
4228
  };
4067
4229
  };
4068
- export type KilocodeSessionImportProjectResponse = KilocodeSessionImportProjectResponses[keyof KilocodeSessionImportProjectResponses];
4069
- export type KilocodeSessionImportSessionData = {
4230
+ export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
4231
+ export type McpAuthCallbackData = {
4070
4232
  body?: {
4071
- id: string;
4072
- projectID: string;
4073
- force?: boolean;
4074
- workspaceID?: string;
4075
- parentID?: string;
4076
- slug: string;
4077
- directory: string;
4078
- title: string;
4079
- version: string;
4080
- shareURL?: string;
4081
- summary?: {
4082
- additions: number;
4083
- deletions: number;
4084
- files: number;
4085
- diffs?: Array<{
4086
- [key: string]: unknown;
4087
- }>;
4088
- };
4089
- revert?: {
4090
- messageID: string;
4091
- partID?: string;
4092
- snapshot?: string;
4093
- diff?: string;
4094
- };
4095
- permission?: {
4096
- [key: string]: unknown;
4097
- };
4098
- timeCreated: number;
4099
- timeUpdated: number;
4100
- timeCompacting?: number;
4101
- timeArchived?: number;
4233
+ /**
4234
+ * Authorization code from OAuth callback
4235
+ */
4236
+ code: string;
4237
+ };
4238
+ path: {
4239
+ name: string;
4102
4240
  };
4103
- path?: never;
4104
4241
  query?: {
4105
4242
  directory?: string;
4106
4243
  workspace?: string;
4107
4244
  };
4108
- url: "/kilocode/session-import/session";
4245
+ url: "/mcp/{name}/auth/callback";
4109
4246
  };
4110
- export type KilocodeSessionImportSessionErrors = {
4247
+ export type McpAuthCallbackErrors = {
4111
4248
  /**
4112
4249
  * Bad request
4113
4250
  */
4114
4251
  400: BadRequestError;
4252
+ /**
4253
+ * Not found
4254
+ */
4255
+ 404: NotFoundError;
4115
4256
  };
4116
- export type KilocodeSessionImportSessionError = KilocodeSessionImportSessionErrors[keyof KilocodeSessionImportSessionErrors];
4117
- export type KilocodeSessionImportSessionResponses = {
4257
+ export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4258
+ export type McpAuthCallbackResponses = {
4118
4259
  /**
4119
- * Session import result
4260
+ * OAuth authentication completed
4120
4261
  */
4121
- 200: {
4122
- ok: boolean;
4123
- id: string;
4124
- skipped?: boolean;
4125
- };
4262
+ 200: McpStatus;
4126
4263
  };
4127
- export type KilocodeSessionImportSessionResponse = KilocodeSessionImportSessionResponses[keyof KilocodeSessionImportSessionResponses];
4128
- export type KilocodeSessionImportMessageData = {
4129
- body?: {
4130
- id: string;
4131
- sessionID: string;
4132
- timeCreated: number;
4133
- data: {
4134
- role: "user";
4135
- time: {
4136
- created: number;
4137
- };
4138
- agent: string;
4139
- model: {
4140
- providerID: string;
4141
- modelID: string;
4142
- };
4143
- tools?: {
4144
- [key: string]: boolean;
4145
- };
4146
- } | {
4147
- role: "assistant";
4148
- time: {
4149
- created: number;
4150
- completed?: number;
4151
- };
4152
- parentID: string;
4153
- modelID: string;
4154
- providerID: string;
4155
- mode: string;
4156
- agent: string;
4157
- path: {
4158
- cwd: string;
4159
- root: string;
4160
- };
4161
- summary?: boolean;
4162
- cost: number;
4163
- tokens: {
4164
- total?: number;
4165
- input: number;
4166
- output: number;
4167
- reasoning: number;
4168
- cache: {
4169
- read: number;
4170
- write: number;
4171
- };
4172
- };
4173
- structured?: unknown;
4174
- variant?: string;
4175
- finish?: string;
4176
- };
4264
+ export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
4265
+ export type McpAuthAuthenticateData = {
4266
+ body?: never;
4267
+ path: {
4268
+ name: string;
4177
4269
  };
4178
- path?: never;
4179
4270
  query?: {
4180
4271
  directory?: string;
4181
4272
  workspace?: string;
4182
4273
  };
4183
- url: "/kilocode/session-import/message";
4274
+ url: "/mcp/{name}/auth/authenticate";
4184
4275
  };
4185
- export type KilocodeSessionImportMessageErrors = {
4276
+ export type McpAuthAuthenticateErrors = {
4186
4277
  /**
4187
4278
  * Bad request
4188
4279
  */
4189
4280
  400: BadRequestError;
4281
+ /**
4282
+ * Not found
4283
+ */
4284
+ 404: NotFoundError;
4190
4285
  };
4191
- export type KilocodeSessionImportMessageError = KilocodeSessionImportMessageErrors[keyof KilocodeSessionImportMessageErrors];
4192
- export type KilocodeSessionImportMessageResponses = {
4286
+ export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4287
+ export type McpAuthAuthenticateResponses = {
4193
4288
  /**
4194
- * Message import result
4289
+ * OAuth authentication completed
4195
4290
  */
4196
- 200: {
4197
- ok: boolean;
4198
- id: string;
4199
- skipped?: boolean;
4291
+ 200: McpStatus;
4292
+ };
4293
+ export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
4294
+ export type McpConnectData = {
4295
+ body?: never;
4296
+ path: {
4297
+ name: string;
4200
4298
  };
4299
+ query?: {
4300
+ directory?: string;
4301
+ workspace?: string;
4302
+ };
4303
+ url: "/mcp/{name}/connect";
4201
4304
  };
4202
- export type KilocodeSessionImportMessageResponse = KilocodeSessionImportMessageResponses[keyof KilocodeSessionImportMessageResponses];
4203
- export type KilocodeSessionImportPartData = {
4204
- body?: {
4205
- id: string;
4206
- messageID: string;
4207
- sessionID: string;
4208
- timeCreated?: number;
4209
- data: {
4210
- type: "text";
4211
- text: string;
4212
- synthetic?: boolean;
4213
- ignored?: boolean;
4214
- time?: {
4215
- start: number;
4216
- end?: number;
4217
- };
4218
- metadata?: {
4219
- [key: string]: unknown;
4220
- };
4221
- } | {
4222
- type: "reasoning";
4223
- text: string;
4224
- metadata?: {
4225
- [key: string]: unknown;
4226
- };
4227
- time: {
4228
- start: number;
4229
- end?: number;
4230
- };
4231
- } | {
4232
- type: "tool";
4233
- callID: string;
4234
- tool: string;
4235
- state: {
4236
- status: "pending";
4237
- input: {
4238
- [key: string]: unknown;
4239
- };
4240
- raw: string;
4241
- } | {
4242
- status: "running";
4243
- input: {
4244
- [key: string]: unknown;
4245
- };
4246
- title?: string;
4247
- metadata?: {
4248
- [key: string]: unknown;
4249
- };
4250
- time: {
4251
- start: number;
4252
- };
4253
- } | {
4254
- status: "completed";
4255
- input: {
4256
- [key: string]: unknown;
4257
- };
4258
- output: string;
4259
- title: string;
4260
- metadata: {
4261
- [key: string]: unknown;
4262
- };
4263
- time: {
4264
- start: number;
4265
- end: number;
4266
- compacted?: number;
4267
- };
4268
- } | {
4269
- status: "error";
4270
- input: {
4271
- [key: string]: unknown;
4272
- };
4273
- error: string;
4274
- metadata?: {
4275
- [key: string]: unknown;
4276
- };
4277
- time: {
4278
- start: number;
4279
- end: number;
4280
- };
4281
- };
4282
- metadata?: {
4283
- [key: string]: unknown;
4284
- };
4285
- };
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;
4286
4316
  };
4287
- path?: never;
4288
4317
  query?: {
4289
4318
  directory?: string;
4290
4319
  workspace?: string;
4291
4320
  };
4292
- url: "/kilocode/session-import/part";
4293
- };
4294
- export type KilocodeSessionImportPartErrors = {
4295
- /**
4296
- * Bad request
4297
- */
4298
- 400: BadRequestError;
4321
+ url: "/mcp/{name}/disconnect";
4299
4322
  };
4300
- export type KilocodeSessionImportPartError = KilocodeSessionImportPartErrors[keyof KilocodeSessionImportPartErrors];
4301
- export type KilocodeSessionImportPartResponses = {
4323
+ export type McpDisconnectResponses = {
4302
4324
  /**
4303
- * Part import result
4325
+ * MCP server disconnected successfully
4304
4326
  */
4305
- 200: {
4306
- ok: boolean;
4307
- id: string;
4308
- skipped?: boolean;
4309
- };
4327
+ 200: boolean;
4310
4328
  };
4311
- export type KilocodeSessionImportPartResponse = KilocodeSessionImportPartResponses[keyof KilocodeSessionImportPartResponses];
4312
- export type KilocodeRemoveSkillData = {
4329
+ export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
4330
+ export type TuiAppendPromptData = {
4313
4331
  body?: {
4314
- location: string;
4332
+ text: string;
4315
4333
  };
4316
4334
  path?: never;
4317
4335
  query?: {
4318
4336
  directory?: string;
4319
4337
  workspace?: string;
4320
4338
  };
4321
- url: "/kilocode/skill/remove";
4339
+ url: "/tui/append-prompt";
4322
4340
  };
4323
- export type KilocodeRemoveSkillErrors = {
4341
+ export type TuiAppendPromptErrors = {
4324
4342
  /**
4325
4343
  * Bad request
4326
4344
  */
4327
4345
  400: BadRequestError;
4328
4346
  };
4329
- export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
4330
- export type KilocodeRemoveSkillResponses = {
4347
+ export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
4348
+ export type TuiAppendPromptResponses = {
4331
4349
  /**
4332
- * Skill removed
4350
+ * Prompt processed successfully
4333
4351
  */
4334
4352
  200: boolean;
4335
4353
  };
4336
- export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
4337
- export type KilocodeRemoveAgentData = {
4338
- body?: {
4339
- name: string;
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;
4340
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;
4341
4373
  path?: never;
4342
4374
  query?: {
4343
4375
  directory?: string;
4344
4376
  workspace?: string;
4345
4377
  };
4346
- url: "/kilocode/agent/remove";
4378
+ url: "/tui/open-sessions";
4347
4379
  };
4348
- export type KilocodeRemoveAgentErrors = {
4380
+ export type TuiOpenSessionsResponses = {
4349
4381
  /**
4350
- * Bad request
4382
+ * Session dialog opened successfully
4351
4383
  */
4352
- 400: BadRequestError;
4384
+ 200: boolean;
4353
4385
  };
4354
- export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
4355
- export type KilocodeRemoveAgentResponses = {
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 = {
4356
4397
  /**
4357
- * Agent removed
4398
+ * Theme dialog opened successfully
4358
4399
  */
4359
4400
  200: boolean;
4360
4401
  };
4361
- export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
4362
- export type KiloProfileData = {
4402
+ export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
4403
+ export type TuiOpenModelsData = {
4363
4404
  body?: never;
4364
4405
  path?: never;
4365
4406
  query?: {
4366
4407
  directory?: string;
4367
4408
  workspace?: string;
4368
4409
  };
4369
- url: "/kilo/profile";
4410
+ url: "/tui/open-models";
4370
4411
  };
4371
- export type KiloProfileErrors = {
4412
+ export type TuiOpenModelsResponses = {
4372
4413
  /**
4373
- * Bad request
4414
+ * Model dialog opened successfully
4374
4415
  */
4375
- 400: BadRequestError;
4416
+ 200: boolean;
4376
4417
  };
4377
- export type KiloProfileError = KiloProfileErrors[keyof KiloProfileErrors];
4378
- export type KiloProfileResponses = {
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 = {
4379
4429
  /**
4380
- * Profile data
4430
+ * Prompt submitted successfully
4381
4431
  */
4382
- 200: {
4383
- profile: {
4384
- email: string;
4385
- name?: string;
4386
- organizations?: Array<{
4387
- id: string;
4388
- name: string;
4389
- role: string;
4390
- }>;
4391
- };
4392
- balance: {
4393
- balance: number;
4394
- } | null;
4395
- 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;
4396
4441
  };
4442
+ url: "/tui/clear-prompt";
4397
4443
  };
4398
- export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
4399
- export type KiloOrganizationSetData = {
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 = {
4400
4452
  body?: {
4401
- organizationId: string | null;
4453
+ command: string;
4402
4454
  };
4403
4455
  path?: never;
4404
4456
  query?: {
4405
4457
  directory?: string;
4406
4458
  workspace?: string;
4407
4459
  };
4408
- url: "/kilo/organization";
4460
+ url: "/tui/execute-command";
4409
4461
  };
4410
- export type KiloOrganizationSetErrors = {
4462
+ export type TuiExecuteCommandErrors = {
4411
4463
  /**
4412
4464
  * Bad request
4413
4465
  */
4414
4466
  400: BadRequestError;
4415
4467
  };
4416
- export type KiloOrganizationSetError = KiloOrganizationSetErrors[keyof KiloOrganizationSetErrors];
4417
- export type KiloOrganizationSetResponses = {
4468
+ export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
4469
+ export type TuiExecuteCommandResponses = {
4418
4470
  /**
4419
- * Organization updated successfully
4471
+ * Command executed successfully
4420
4472
  */
4421
4473
  200: boolean;
4422
4474
  };
4423
- export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses];
4424
- export type KiloModesData = {
4425
- body?: never;
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
+ };
4426
4486
  path?: never;
4427
4487
  query?: {
4428
4488
  directory?: string;
4429
4489
  workspace?: string;
4430
4490
  };
4431
- url: "/kilo/modes";
4491
+ url: "/tui/show-toast";
4432
4492
  };
4433
- export type KiloModesResponses = {
4493
+ export type TuiShowToastResponses = {
4434
4494
  /**
4435
- * Organization modes list
4495
+ * Toast notification shown successfully
4436
4496
  */
4437
- 200: {
4438
- modes: Array<{
4439
- id: string;
4440
- organization_id: string;
4441
- name: string;
4442
- slug: string;
4443
- created_by: string;
4444
- created_at: string;
4445
- updated_at: string;
4446
- config: {
4447
- roleDefinition?: string;
4448
- whenToUse?: string;
4449
- description?: string;
4450
- customInstructions?: string;
4451
- groups?: Array<string | [
4452
- string,
4453
- {
4454
- fileRegex?: string;
4455
- description?: string;
4456
- }
4457
- ]>;
4458
- };
4459
- }>;
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;
4460
4506
  };
4507
+ url: "/tui/publish";
4461
4508
  };
4462
- export type KiloModesResponse = KiloModesResponses[keyof KiloModesResponses];
4463
- export type KiloFimData = {
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 = {
4464
4524
  body?: {
4465
- prefix: string;
4466
- suffix: string;
4467
- model?: string;
4468
- maxTokens?: number;
4469
- temperature?: number;
4525
+ /**
4526
+ * Session ID to navigate to
4527
+ */
4528
+ sessionID: string;
4529
+ };
4530
+ path?: never;
4531
+ query?: {
4532
+ directory?: string;
4533
+ workspace?: string;
4470
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;
4471
4557
  path?: never;
4472
4558
  query?: {
4473
4559
  directory?: string;
4474
4560
  workspace?: string;
4475
4561
  };
4476
- url: "/kilo/fim";
4477
- };
4478
- export type KiloFimErrors = {
4479
- /**
4480
- * Bad request
4481
- */
4482
- 400: BadRequestError;
4562
+ url: "/tui/control/next";
4483
4563
  };
4484
- export type KiloFimError = KiloFimErrors[keyof KiloFimErrors];
4485
- export type KiloFimResponses = {
4564
+ export type TuiControlNextResponses = {
4486
4565
  /**
4487
- * Streaming FIM completion response
4566
+ * Next TUI request
4488
4567
  */
4489
4568
  200: {
4490
- choices?: Array<{
4491
- delta?: {
4492
- content?: string;
4493
- };
4494
- }>;
4495
- usage?: {
4496
- prompt_tokens?: number;
4497
- completion_tokens?: number;
4498
- };
4499
- cost?: number;
4569
+ path: string;
4570
+ body: unknown;
4500
4571
  };
4501
4572
  };
4502
- export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
4503
- export type KiloNotificationsData = {
4504
- body?: never;
4573
+ export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
4574
+ export type TuiControlResponseData = {
4575
+ body?: unknown;
4505
4576
  path?: never;
4506
4577
  query?: {
4507
4578
  directory?: string;
4508
4579
  workspace?: string;
4509
4580
  };
4510
- url: "/kilo/notifications";
4581
+ url: "/tui/control/response";
4511
4582
  };
4512
- export type KiloNotificationsErrors = {
4583
+ export type TuiControlResponseResponses = {
4513
4584
  /**
4514
- * Bad request
4585
+ * Response submitted successfully
4515
4586
  */
4516
- 400: BadRequestError;
4587
+ 200: boolean;
4517
4588
  };
4518
- export type KiloNotificationsError = KiloNotificationsErrors[keyof KiloNotificationsErrors];
4519
- export type KiloNotificationsResponses = {
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 = {
4520
4600
  /**
4521
- * Notifications list
4601
+ * Instance disposed
4522
4602
  */
4523
- 200: Array<{
4524
- id: string;
4525
- title: string;
4526
- message: string;
4527
- action?: {
4528
- actionText: string;
4529
- actionURL: string;
4530
- };
4531
- showIn?: Array<string>;
4532
- suggestModelId?: string;
4533
- }>;
4603
+ 200: boolean;
4534
4604
  };
4535
- export type KiloNotificationsResponse = KiloNotificationsResponses[keyof KiloNotificationsResponses];
4536
- export type KiloCloudSessionGetData = {
4605
+ export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
4606
+ export type PathGetData = {
4537
4607
  body?: never;
4538
- path: {
4539
- id: string;
4540
- };
4608
+ path?: never;
4541
4609
  query?: {
4542
4610
  directory?: string;
4543
4611
  workspace?: string;
4544
4612
  };
4545
- url: "/kilo/cloud/session/{id}";
4613
+ url: "/path";
4546
4614
  };
4547
- export type KiloCloudSessionGetErrors = {
4615
+ export type PathGetResponses = {
4548
4616
  /**
4549
- * Not found
4617
+ * Path
4550
4618
  */
4551
- 404: NotFoundError;
4619
+ 200: Path;
4552
4620
  };
4553
- export type KiloCloudSessionGetError = KiloCloudSessionGetErrors[keyof KiloCloudSessionGetErrors];
4554
- export type KiloCloudSessionGetResponses = {
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 = {
4555
4632
  /**
4556
- * Cloud session data
4633
+ * VCS info
4557
4634
  */
4558
- 200: unknown;
4635
+ 200: VcsInfo;
4559
4636
  };
4560
- export type KiloCloudSessionImportData = {
4561
- body?: {
4562
- sessionId: string;
4563
- };
4637
+ export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
4638
+ export type CommandListData = {
4639
+ body?: never;
4564
4640
  path?: never;
4565
4641
  query?: {
4566
4642
  directory?: string;
4567
4643
  workspace?: string;
4568
4644
  };
4569
- url: "/kilo/cloud/session/import";
4645
+ url: "/command";
4570
4646
  };
4571
- export type KiloCloudSessionImportErrors = {
4572
- /**
4573
- * Bad request
4574
- */
4575
- 400: BadRequestError;
4647
+ export type CommandListResponses = {
4576
4648
  /**
4577
- * Not found
4649
+ * List of commands
4578
4650
  */
4579
- 404: NotFoundError;
4651
+ 200: Array<Command>;
4580
4652
  };
4581
- export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
4582
- export type KiloCloudSessionImportResponses = {
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 = {
4583
4664
  /**
4584
- * Imported session info
4665
+ * List of agents
4585
4666
  */
4586
- 200: unknown;
4667
+ 200: Array<Agent>;
4587
4668
  };
4588
- export type KiloClawStatusData = {
4669
+ export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
4670
+ export type AppSkillsData = {
4589
4671
  body?: never;
4590
4672
  path?: never;
4591
4673
  query?: {
4592
4674
  directory?: string;
4593
4675
  workspace?: string;
4594
4676
  };
4595
- url: "/kilo/claw/status";
4677
+ url: "/skill";
4596
4678
  };
4597
- export type KiloClawStatusResponses = {
4679
+ export type AppSkillsResponses = {
4598
4680
  /**
4599
- * Instance status
4681
+ * List of skills
4600
4682
  */
4601
- 200: {
4602
- status: "provisioned" | "starting" | "restarting" | "running" | "stopped" | "destroying" | null;
4603
- sandboxId?: string;
4604
- flyRegion?: string;
4605
- machineSize?: {
4606
- cpus: number;
4607
- memory_mb: number;
4608
- };
4609
- openclawVersion?: string | null;
4610
- lastStartedAt?: string | null;
4611
- lastStoppedAt?: string | null;
4612
- channelCount?: number;
4613
- secretCount?: number;
4614
- userId?: string;
4615
- };
4683
+ 200: Array<{
4684
+ name: string;
4685
+ description: string;
4686
+ location: string;
4687
+ content: string;
4688
+ }>;
4616
4689
  };
4617
- export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
4618
- export type KiloClawChatCredentialsData = {
4690
+ export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
4691
+ export type LspStatusData = {
4619
4692
  body?: never;
4620
4693
  path?: never;
4621
4694
  query?: {
4622
4695
  directory?: string;
4623
4696
  workspace?: string;
4624
4697
  };
4625
- url: "/kilo/claw/chat-credentials";
4698
+ url: "/lsp";
4626
4699
  };
4627
- export type KiloClawChatCredentialsResponses = {
4700
+ export type LspStatusResponses = {
4628
4701
  /**
4629
- * Stream Chat credentials or null
4702
+ * LSP server status
4630
4703
  */
4631
- 200: {
4632
- apiKey: string;
4633
- userId: string;
4634
- userToken: string;
4635
- channelId: string;
4636
- } | null;
4704
+ 200: Array<LspStatus>;
4637
4705
  };
4638
- export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
4639
- export type KiloCloudSessionsData = {
4706
+ export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
4707
+ export type FormatterStatusData = {
4640
4708
  body?: never;
4641
4709
  path?: never;
4642
4710
  query?: {
4643
4711
  directory?: string;
4644
4712
  workspace?: string;
4645
- cursor?: string;
4646
- limit?: number;
4647
- gitUrl?: string;
4648
4713
  };
4649
- url: "/kilo/cloud-sessions";
4714
+ url: "/formatter";
4650
4715
  };
4651
- export type KiloCloudSessionsErrors = {
4716
+ export type FormatterStatusResponses = {
4652
4717
  /**
4653
- * Bad request
4718
+ * Formatter status
4654
4719
  */
4655
- 400: BadRequestError;
4720
+ 200: Array<FormatterStatus>;
4656
4721
  };
4657
- export type KiloCloudSessionsError = KiloCloudSessionsErrors[keyof KiloCloudSessionsErrors];
4658
- export type KiloCloudSessionsResponses = {
4659
- /**
4660
- * Cloud sessions list
4661
- */
4662
- 200: {
4663
- cliSessions: Array<{
4664
- session_id: string;
4665
- title: string | null;
4666
- created_at: string;
4667
- updated_at: string;
4668
- version: number;
4669
- }>;
4670
- 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;
4671
4728
  };
4672
- };
4673
- export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];
4674
- export type FindTextData = {
4675
- body?: never;
4676
4729
  path?: never;
4677
- query: {
4730
+ query?: {
4678
4731
  directory?: string;
4679
4732
  workspace?: string;
4680
- pattern: string;
4681
4733
  };
4682
- url: "/find";
4734
+ url: "/permission/allow-everything";
4683
4735
  };
4684
- export type FindTextResponses = {
4736
+ export type PermissionAllowEverythingErrors = {
4685
4737
  /**
4686
- * Matches
4687
- */
4688
- 200: Array<{
4689
- path: {
4690
- text: string;
4691
- };
4692
- lines: {
4693
- text: string;
4694
- };
4695
- line_number: number;
4696
- absolute_offset: number;
4697
- submatches: Array<{
4698
- match: {
4699
- text: string;
4700
- };
4701
- start: number;
4702
- end: number;
4703
- }>;
4704
- }>;
4738
+ * Bad request
4739
+ */
4740
+ 400: BadRequestError;
4741
+ /**
4742
+ * Not found
4743
+ */
4744
+ 404: NotFoundError;
4705
4745
  };
4706
- export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
4707
- export type FindFilesData = {
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 = {
4708
4755
  body?: never;
4709
4756
  path?: never;
4710
- query: {
4757
+ query?: {
4711
4758
  directory?: string;
4712
4759
  workspace?: string;
4713
- query: string;
4714
- dirs?: "true" | "false";
4715
- type?: "file" | "directory";
4716
- limit?: number;
4717
4760
  };
4718
- url: "/find/file";
4761
+ url: "/network";
4719
4762
  };
4720
- export type FindFilesResponses = {
4763
+ export type NetworkListResponses = {
4721
4764
  /**
4722
- * File paths
4765
+ * List of pending network reconnect requests
4723
4766
  */
4724
- 200: Array<string>;
4767
+ 200: Array<SessionNetworkWait>;
4725
4768
  };
4726
- export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
4727
- export type FindSymbolsData = {
4769
+ export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses];
4770
+ export type NetworkReplyData = {
4728
4771
  body?: never;
4729
- path?: never;
4730
- query: {
4772
+ path: {
4773
+ requestID: string;
4774
+ };
4775
+ query?: {
4731
4776
  directory?: string;
4732
4777
  workspace?: string;
4733
- query: string;
4734
4778
  };
4735
- url: "/find/symbol";
4779
+ url: "/network/{requestID}/reply";
4736
4780
  };
4737
- export type FindSymbolsResponses = {
4781
+ export type NetworkReplyErrors = {
4738
4782
  /**
4739
- * Symbols
4783
+ * Bad request
4740
4784
  */
4741
- 200: Array<Symbol>;
4785
+ 400: BadRequestError;
4786
+ /**
4787
+ * Not found
4788
+ */
4789
+ 404: NotFoundError;
4742
4790
  };
4743
- export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
4744
- export type FileListData = {
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 = {
4745
4800
  body?: never;
4746
- path?: never;
4747
- query: {
4801
+ path: {
4802
+ requestID: string;
4803
+ };
4804
+ query?: {
4748
4805
  directory?: string;
4749
4806
  workspace?: string;
4750
- path: string;
4751
4807
  };
4752
- url: "/file";
4808
+ url: "/network/{requestID}/reject";
4753
4809
  };
4754
- export type FileListResponses = {
4810
+ export type NetworkRejectErrors = {
4755
4811
  /**
4756
- * Files and directories
4812
+ * Bad request
4757
4813
  */
4758
- 200: Array<FileNode>;
4814
+ 400: BadRequestError;
4815
+ /**
4816
+ * Not found
4817
+ */
4818
+ 404: NotFoundError;
4759
4819
  };
4760
- export type FileListResponse = FileListResponses[keyof FileListResponses];
4761
- export type FileReadData = {
4762
- body?: never;
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
+ };
4763
4841
  path?: never;
4764
- query: {
4842
+ query?: {
4765
4843
  directory?: string;
4766
4844
  workspace?: string;
4767
- path: string;
4768
4845
  };
4769
- url: "/file/content";
4846
+ url: "/telemetry/capture";
4770
4847
  };
4771
- export type FileReadResponses = {
4848
+ export type TelemetryCaptureErrors = {
4772
4849
  /**
4773
- * File content
4850
+ * Bad request
4774
4851
  */
4775
- 200: FileContent;
4852
+ 400: BadRequestError;
4776
4853
  };
4777
- export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
4778
- export type FileStatusData = {
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 = {
4779
4863
  body?: never;
4780
4864
  path?: never;
4781
4865
  query?: {
4782
4866
  directory?: string;
4783
4867
  workspace?: string;
4784
4868
  };
4785
- url: "/file/status";
4869
+ url: "/remote/enable";
4786
4870
  };
4787
- export type FileStatusResponses = {
4871
+ export type RemoteEnableResponses = {
4788
4872
  /**
4789
- * File status
4873
+ * Remote connection enabled
4790
4874
  */
4791
- 200: Array<File>;
4875
+ 200: {
4876
+ enabled: boolean;
4877
+ connected: boolean;
4878
+ };
4792
4879
  };
4793
- export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
4794
- export type McpStatusData = {
4880
+ export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
4881
+ export type RemoteDisableData = {
4795
4882
  body?: never;
4796
4883
  path?: never;
4797
4884
  query?: {
4798
4885
  directory?: string;
4799
4886
  workspace?: string;
4800
4887
  };
4801
- url: "/mcp";
4888
+ url: "/remote/disable";
4802
4889
  };
4803
- export type McpStatusResponses = {
4890
+ export type RemoteDisableResponses = {
4804
4891
  /**
4805
- * MCP server status
4892
+ * Remote connection disabled
4806
4893
  */
4807
4894
  200: {
4808
- [key: string]: McpStatus;
4895
+ enabled: boolean;
4896
+ connected: boolean;
4809
4897
  };
4810
4898
  };
4811
- export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
4812
- export type McpAddData = {
4813
- body?: {
4814
- name: string;
4815
- config: McpLocalConfig | McpRemoteConfig;
4816
- };
4899
+ export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
4900
+ export type RemoteStatusData = {
4901
+ body?: never;
4817
4902
  path?: never;
4818
4903
  query?: {
4819
4904
  directory?: string;
4820
4905
  workspace?: string;
4821
4906
  };
4822
- url: "/mcp";
4823
- };
4824
- export type McpAddErrors = {
4825
- /**
4826
- * Bad request
4827
- */
4828
- 400: BadRequestError;
4907
+ url: "/remote/status";
4829
4908
  };
4830
- export type McpAddError = McpAddErrors[keyof McpAddErrors];
4831
- export type McpAddResponses = {
4909
+ export type RemoteStatusResponses = {
4832
4910
  /**
4833
- * MCP server added successfully
4911
+ * Remote connection status
4834
4912
  */
4835
4913
  200: {
4836
- [key: string]: McpStatus;
4914
+ enabled: boolean;
4915
+ connected: boolean;
4837
4916
  };
4838
4917
  };
4839
- export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
4840
- export type McpAuthRemoveData = {
4841
- body?: never;
4842
- path: {
4843
- name: string;
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;
4844
4933
  };
4934
+ path?: never;
4845
4935
  query?: {
4846
4936
  directory?: string;
4847
4937
  workspace?: string;
4848
4938
  };
4849
- url: "/mcp/{name}/auth";
4939
+ url: "/commit-message";
4850
4940
  };
4851
- export type McpAuthRemoveErrors = {
4941
+ export type CommitMessageGenerateErrors = {
4852
4942
  /**
4853
- * Not found
4943
+ * Bad request
4854
4944
  */
4855
- 404: NotFoundError;
4945
+ 400: BadRequestError;
4856
4946
  };
4857
- export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4858
- export type McpAuthRemoveResponses = {
4947
+ export type CommitMessageGenerateError = CommitMessageGenerateErrors[keyof CommitMessageGenerateErrors];
4948
+ export type CommitMessageGenerateResponses = {
4859
4949
  /**
4860
- * OAuth credentials removed
4950
+ * Generated commit message
4861
4951
  */
4862
4952
  200: {
4863
- success: true;
4953
+ message: string;
4864
4954
  };
4865
4955
  };
4866
- export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
4867
- export type McpAuthStartData = {
4868
- body?: never;
4869
- path: {
4870
- name: string;
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;
4871
4963
  };
4964
+ path?: never;
4872
4965
  query?: {
4873
4966
  directory?: string;
4874
4967
  workspace?: string;
4875
4968
  };
4876
- url: "/mcp/{name}/auth";
4969
+ url: "/enhance-prompt";
4877
4970
  };
4878
- export type McpAuthStartErrors = {
4971
+ export type EnhancePromptEnhanceErrors = {
4879
4972
  /**
4880
4973
  * Bad request
4881
4974
  */
4882
4975
  400: BadRequestError;
4883
- /**
4884
- * Not found
4885
- */
4886
- 404: NotFoundError;
4887
4976
  };
4888
- export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4889
- export type McpAuthStartResponses = {
4977
+ export type EnhancePromptEnhanceError = EnhancePromptEnhanceErrors[keyof EnhancePromptEnhanceErrors];
4978
+ export type EnhancePromptEnhanceResponses = {
4890
4979
  /**
4891
- * OAuth flow started
4980
+ * Enhanced prompt text
4892
4981
  */
4893
4982
  200: {
4894
- /**
4895
- * URL to open in browser for authorization
4896
- */
4897
- authorizationUrl: string;
4898
- };
4899
- };
4900
- export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
4901
- export type McpAuthCallbackData = {
4902
- body?: {
4903
- /**
4904
- * Authorization code from OAuth callback
4905
- */
4906
- code: string;
4983
+ text: string;
4907
4984
  };
4908
- path: {
4909
- name: string;
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
+ };
4910
5002
  };
5003
+ path?: never;
4911
5004
  query?: {
4912
5005
  directory?: string;
4913
5006
  workspace?: string;
4914
5007
  };
4915
- url: "/mcp/{name}/auth/callback";
5008
+ url: "/kilocode/session-import/project";
4916
5009
  };
4917
- export type McpAuthCallbackErrors = {
5010
+ export type KilocodeSessionImportProjectErrors = {
4918
5011
  /**
4919
5012
  * Bad request
4920
5013
  */
4921
5014
  400: BadRequestError;
4922
- /**
4923
- * Not found
4924
- */
4925
- 404: NotFoundError;
4926
5015
  };
4927
- export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4928
- export type McpAuthCallbackResponses = {
5016
+ export type KilocodeSessionImportProjectError = KilocodeSessionImportProjectErrors[keyof KilocodeSessionImportProjectErrors];
5017
+ export type KilocodeSessionImportProjectResponses = {
4929
5018
  /**
4930
- * OAuth authentication completed
5019
+ * Project import result
4931
5020
  */
4932
- 200: McpStatus;
5021
+ 200: {
5022
+ ok: boolean;
5023
+ id: string;
5024
+ skipped?: boolean;
5025
+ };
4933
5026
  };
4934
- export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
4935
- export type McpAuthAuthenticateData = {
4936
- body?: never;
4937
- path: {
4938
- name: string;
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;
4939
5061
  };
5062
+ path?: never;
4940
5063
  query?: {
4941
5064
  directory?: string;
4942
5065
  workspace?: string;
4943
5066
  };
4944
- url: "/mcp/{name}/auth/authenticate";
5067
+ url: "/kilocode/session-import/session";
4945
5068
  };
4946
- export type McpAuthAuthenticateErrors = {
5069
+ export type KilocodeSessionImportSessionErrors = {
4947
5070
  /**
4948
5071
  * Bad request
4949
5072
  */
4950
5073
  400: BadRequestError;
4951
- /**
4952
- * Not found
4953
- */
4954
- 404: NotFoundError;
4955
5074
  };
4956
- export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4957
- export type McpAuthAuthenticateResponses = {
5075
+ export type KilocodeSessionImportSessionError = KilocodeSessionImportSessionErrors[keyof KilocodeSessionImportSessionErrors];
5076
+ export type KilocodeSessionImportSessionResponses = {
4958
5077
  /**
4959
- * OAuth authentication completed
5078
+ * Session import result
4960
5079
  */
4961
- 200: McpStatus;
5080
+ 200: {
5081
+ ok: boolean;
5082
+ id: string;
5083
+ skipped?: boolean;
5084
+ };
4962
5085
  };
4963
- export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
4964
- export type McpConnectData = {
4965
- body?: never;
4966
- path: {
4967
- name: string;
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
+ };
4968
5136
  };
5137
+ path?: never;
4969
5138
  query?: {
4970
5139
  directory?: string;
4971
5140
  workspace?: string;
4972
5141
  };
4973
- url: "/mcp/{name}/connect";
5142
+ url: "/kilocode/session-import/message";
4974
5143
  };
4975
- export type McpConnectResponses = {
5144
+ export type KilocodeSessionImportMessageErrors = {
4976
5145
  /**
4977
- * MCP server connected successfully
5146
+ * Bad request
4978
5147
  */
4979
- 200: boolean;
4980
- };
4981
- export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
4982
- export type McpDisconnectData = {
4983
- body?: never;
4984
- path: {
4985
- name: string;
4986
- };
4987
- query?: {
4988
- directory?: string;
4989
- workspace?: string;
4990
- };
4991
- url: "/mcp/{name}/disconnect";
5148
+ 400: BadRequestError;
4992
5149
  };
4993
- export type McpDisconnectResponses = {
5150
+ export type KilocodeSessionImportMessageError = KilocodeSessionImportMessageErrors[keyof KilocodeSessionImportMessageErrors];
5151
+ export type KilocodeSessionImportMessageResponses = {
4994
5152
  /**
4995
- * MCP server disconnected successfully
5153
+ * Message import result
4996
5154
  */
4997
- 200: boolean;
5155
+ 200: {
5156
+ ok: boolean;
5157
+ id: string;
5158
+ skipped?: boolean;
5159
+ };
4998
5160
  };
4999
- export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
5000
- export type TuiAppendPromptData = {
5161
+ export type KilocodeSessionImportMessageResponse = KilocodeSessionImportMessageResponses[keyof KilocodeSessionImportMessageResponses];
5162
+ export type KilocodeSessionImportPartData = {
5001
5163
  body?: {
5002
- text: string;
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
+ };
5003
5245
  };
5004
5246
  path?: never;
5005
5247
  query?: {
5006
5248
  directory?: string;
5007
5249
  workspace?: string;
5008
5250
  };
5009
- url: "/tui/append-prompt";
5251
+ url: "/kilocode/session-import/part";
5010
5252
  };
5011
- export type TuiAppendPromptErrors = {
5253
+ export type KilocodeSessionImportPartErrors = {
5012
5254
  /**
5013
5255
  * Bad request
5014
5256
  */
5015
5257
  400: BadRequestError;
5016
5258
  };
5017
- export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
5018
- export type TuiAppendPromptResponses = {
5259
+ export type KilocodeSessionImportPartError = KilocodeSessionImportPartErrors[keyof KilocodeSessionImportPartErrors];
5260
+ export type KilocodeSessionImportPartResponses = {
5019
5261
  /**
5020
- * Prompt processed successfully
5262
+ * Part import result
5021
5263
  */
5022
- 200: boolean;
5023
- };
5024
- export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
5025
- export type TuiOpenHelpData = {
5026
- body?: never;
5027
- path?: never;
5028
- query?: {
5029
- directory?: string;
5030
- workspace?: string;
5264
+ 200: {
5265
+ ok: boolean;
5266
+ id: string;
5267
+ skipped?: boolean;
5031
5268
  };
5032
- url: "/tui/open-help";
5033
- };
5034
- export type TuiOpenHelpResponses = {
5035
- /**
5036
- * Help dialog opened successfully
5037
- */
5038
- 200: boolean;
5039
5269
  };
5040
- export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
5041
- export type TuiOpenSessionsData = {
5042
- body?: never;
5043
- path?: never;
5044
- query?: {
5045
- directory?: string;
5046
- workspace?: string;
5270
+ export type KilocodeSessionImportPartResponse = KilocodeSessionImportPartResponses[keyof KilocodeSessionImportPartResponses];
5271
+ export type KilocodeRemoveSkillData = {
5272
+ body?: {
5273
+ location: string;
5047
5274
  };
5048
- url: "/tui/open-sessions";
5049
- };
5050
- export type TuiOpenSessionsResponses = {
5051
- /**
5052
- * Session dialog opened successfully
5053
- */
5054
- 200: boolean;
5055
- };
5056
- export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
5057
- export type TuiOpenThemesData = {
5058
- body?: never;
5059
5275
  path?: never;
5060
5276
  query?: {
5061
5277
  directory?: string;
5062
5278
  workspace?: string;
5063
5279
  };
5064
- url: "/tui/open-themes";
5280
+ url: "/kilocode/skill/remove";
5065
5281
  };
5066
- export type TuiOpenThemesResponses = {
5282
+ export type KilocodeRemoveSkillErrors = {
5067
5283
  /**
5068
- * Theme dialog opened successfully
5284
+ * Bad request
5069
5285
  */
5070
- 200: boolean;
5071
- };
5072
- export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
5073
- export type TuiOpenModelsData = {
5074
- body?: never;
5075
- path?: never;
5076
- query?: {
5077
- directory?: string;
5078
- workspace?: string;
5079
- };
5080
- url: "/tui/open-models";
5286
+ 400: BadRequestError;
5081
5287
  };
5082
- export type TuiOpenModelsResponses = {
5288
+ export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
5289
+ export type KilocodeRemoveSkillResponses = {
5083
5290
  /**
5084
- * Model dialog opened successfully
5291
+ * Skill removed
5085
5292
  */
5086
5293
  200: boolean;
5087
5294
  };
5088
- export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
5089
- export type TuiSubmitPromptData = {
5090
- body?: never;
5295
+ export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
5296
+ export type KilocodeRemoveAgentData = {
5297
+ body?: {
5298
+ name: string;
5299
+ };
5091
5300
  path?: never;
5092
5301
  query?: {
5093
5302
  directory?: string;
5094
5303
  workspace?: string;
5095
5304
  };
5096
- url: "/tui/submit-prompt";
5305
+ url: "/kilocode/agent/remove";
5097
5306
  };
5098
- export type TuiSubmitPromptResponses = {
5307
+ export type KilocodeRemoveAgentErrors = {
5099
5308
  /**
5100
- * Prompt submitted successfully
5309
+ * Bad request
5101
5310
  */
5102
- 200: boolean;
5103
- };
5104
- export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
5105
- export type TuiClearPromptData = {
5106
- body?: never;
5107
- path?: never;
5108
- query?: {
5109
- directory?: string;
5110
- workspace?: string;
5111
- };
5112
- url: "/tui/clear-prompt";
5311
+ 400: BadRequestError;
5113
5312
  };
5114
- export type TuiClearPromptResponses = {
5313
+ export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
5314
+ export type KilocodeRemoveAgentResponses = {
5115
5315
  /**
5116
- * Prompt cleared successfully
5316
+ * Agent removed
5117
5317
  */
5118
5318
  200: boolean;
5119
5319
  };
5120
- export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
5121
- export type TuiExecuteCommandData = {
5122
- body?: {
5123
- command: string;
5124
- };
5320
+ export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
5321
+ export type KiloProfileData = {
5322
+ body?: never;
5125
5323
  path?: never;
5126
5324
  query?: {
5127
5325
  directory?: string;
5128
5326
  workspace?: string;
5129
5327
  };
5130
- url: "/tui/execute-command";
5328
+ url: "/kilo/profile";
5131
5329
  };
5132
- export type TuiExecuteCommandErrors = {
5330
+ export type KiloProfileErrors = {
5133
5331
  /**
5134
5332
  * Bad request
5135
5333
  */
5136
5334
  400: BadRequestError;
5137
5335
  };
5138
- export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
5139
- export type TuiExecuteCommandResponses = {
5336
+ export type KiloProfileError = KiloProfileErrors[keyof KiloProfileErrors];
5337
+ export type KiloProfileResponses = {
5140
5338
  /**
5141
- * Command executed successfully
5339
+ * Profile data
5142
5340
  */
5143
- 200: boolean;
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
+ };
5144
5356
  };
5145
- export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
5146
- export type TuiShowToastData = {
5357
+ export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
5358
+ export type KiloOrganizationSetData = {
5147
5359
  body?: {
5148
- title?: string;
5149
- message: string;
5150
- variant: "info" | "success" | "warning" | "error";
5151
- /**
5152
- * Duration in milliseconds
5153
- */
5154
- duration?: number;
5155
- };
5156
- path?: never;
5157
- query?: {
5158
- directory?: string;
5159
- workspace?: string;
5360
+ organizationId: string | null;
5160
5361
  };
5161
- url: "/tui/show-toast";
5162
- };
5163
- export type TuiShowToastResponses = {
5164
- /**
5165
- * Toast notification shown successfully
5166
- */
5167
- 200: boolean;
5168
- };
5169
- export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
5170
- export type TuiPublishData = {
5171
- body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
5172
5362
  path?: never;
5173
5363
  query?: {
5174
5364
  directory?: string;
5175
5365
  workspace?: string;
5176
5366
  };
5177
- url: "/tui/publish";
5367
+ url: "/kilo/organization";
5178
5368
  };
5179
- export type TuiPublishErrors = {
5369
+ export type KiloOrganizationSetErrors = {
5180
5370
  /**
5181
5371
  * Bad request
5182
5372
  */
5183
5373
  400: BadRequestError;
5184
5374
  };
5185
- export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
5186
- export type TuiPublishResponses = {
5375
+ export type KiloOrganizationSetError = KiloOrganizationSetErrors[keyof KiloOrganizationSetErrors];
5376
+ export type KiloOrganizationSetResponses = {
5187
5377
  /**
5188
- * Event published successfully
5378
+ * Organization updated successfully
5189
5379
  */
5190
5380
  200: boolean;
5191
5381
  };
5192
- export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
5193
- export type TuiSelectSessionData = {
5194
- body?: {
5195
- /**
5196
- * Session ID to navigate to
5197
- */
5198
- sessionID: string;
5199
- };
5382
+ export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses];
5383
+ export type KiloModesData = {
5384
+ body?: never;
5200
5385
  path?: never;
5201
5386
  query?: {
5202
5387
  directory?: string;
5203
5388
  workspace?: string;
5204
5389
  };
5205
- url: "/tui/select-session";
5206
- };
5207
- export type TuiSelectSessionErrors = {
5208
- /**
5209
- * Bad request
5210
- */
5211
- 400: BadRequestError;
5212
- /**
5213
- * Not found
5214
- */
5215
- 404: NotFoundError;
5390
+ url: "/kilo/modes";
5216
5391
  };
5217
- export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors];
5218
- export type TuiSelectSessionResponses = {
5392
+ export type KiloModesResponses = {
5219
5393
  /**
5220
- * Session selected successfully
5394
+ * Organization modes list
5221
5395
  */
5222
- 200: boolean;
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
+ };
5223
5420
  };
5224
- export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses];
5225
- export type TuiControlNextData = {
5226
- body?: never;
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
+ };
5227
5430
  path?: never;
5228
5431
  query?: {
5229
5432
  directory?: string;
5230
5433
  workspace?: string;
5231
5434
  };
5232
- url: "/tui/control/next";
5435
+ url: "/kilo/fim";
5233
5436
  };
5234
- export type TuiControlNextResponses = {
5437
+ export type KiloFimErrors = {
5235
5438
  /**
5236
- * Next TUI request
5439
+ * Bad request
5237
5440
  */
5238
- 200: {
5239
- path: string;
5240
- body: unknown;
5241
- };
5242
- };
5243
- export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
5244
- export type TuiControlResponseData = {
5245
- body?: unknown;
5246
- path?: never;
5247
- query?: {
5248
- directory?: string;
5249
- workspace?: string;
5250
- };
5251
- url: "/tui/control/response";
5441
+ 400: BadRequestError;
5252
5442
  };
5253
- export type TuiControlResponseResponses = {
5443
+ export type KiloFimError = KiloFimErrors[keyof KiloFimErrors];
5444
+ export type KiloFimResponses = {
5254
5445
  /**
5255
- * Response submitted successfully
5446
+ * Streaming FIM completion response
5256
5447
  */
5257
- 200: boolean;
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
+ };
5258
5460
  };
5259
- export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
5260
- export type InstanceDisposeData = {
5461
+ export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
5462
+ export type KiloNotificationsData = {
5261
5463
  body?: never;
5262
5464
  path?: never;
5263
5465
  query?: {
5264
5466
  directory?: string;
5265
5467
  workspace?: string;
5266
5468
  };
5267
- url: "/instance/dispose";
5469
+ url: "/kilo/notifications";
5268
5470
  };
5269
- export type InstanceDisposeResponses = {
5471
+ export type KiloNotificationsErrors = {
5270
5472
  /**
5271
- * Instance disposed
5473
+ * Bad request
5272
5474
  */
5273
- 200: boolean;
5274
- };
5275
- export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
5276
- export type PathGetData = {
5277
- body?: never;
5278
- path?: never;
5279
- query?: {
5280
- directory?: string;
5281
- workspace?: string;
5282
- };
5283
- url: "/path";
5475
+ 400: BadRequestError;
5284
5476
  };
5285
- export type PathGetResponses = {
5477
+ export type KiloNotificationsError = KiloNotificationsErrors[keyof KiloNotificationsErrors];
5478
+ export type KiloNotificationsResponses = {
5286
5479
  /**
5287
- * Path
5480
+ * Notifications list
5288
5481
  */
5289
- 200: Path;
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
+ }>;
5290
5493
  };
5291
- export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
5292
- export type VcsGetData = {
5494
+ export type KiloNotificationsResponse = KiloNotificationsResponses[keyof KiloNotificationsResponses];
5495
+ export type KiloCloudSessionGetData = {
5293
5496
  body?: never;
5294
- path?: never;
5497
+ path: {
5498
+ id: string;
5499
+ };
5295
5500
  query?: {
5296
5501
  directory?: string;
5297
5502
  workspace?: string;
5298
5503
  };
5299
- url: "/vcs";
5504
+ url: "/kilo/cloud/session/{id}";
5300
5505
  };
5301
- export type VcsGetResponses = {
5506
+ export type KiloCloudSessionGetErrors = {
5302
5507
  /**
5303
- * VCS info
5508
+ * Not found
5304
5509
  */
5305
- 200: VcsInfo;
5306
- };
5307
- export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
5308
- export type CommandListData = {
5309
- body?: never;
5310
- path?: never;
5311
- query?: {
5312
- directory?: string;
5313
- workspace?: string;
5314
- };
5315
- url: "/command";
5510
+ 404: NotFoundError;
5316
5511
  };
5317
- export type CommandListResponses = {
5512
+ export type KiloCloudSessionGetError = KiloCloudSessionGetErrors[keyof KiloCloudSessionGetErrors];
5513
+ export type KiloCloudSessionGetResponses = {
5318
5514
  /**
5319
- * List of commands
5515
+ * Cloud session data
5320
5516
  */
5321
- 200: Array<Command>;
5517
+ 200: unknown;
5322
5518
  };
5323
- export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
5324
- export type AppLogData = {
5519
+ export type KiloCloudSessionImportData = {
5325
5520
  body?: {
5326
- /**
5327
- * Service name for the log entry
5328
- */
5329
- service: string;
5330
- /**
5331
- * Log level
5332
- */
5333
- level: "debug" | "info" | "error" | "warn";
5334
- /**
5335
- * Log message
5336
- */
5337
- message: string;
5338
- /**
5339
- * Additional metadata for the log entry
5340
- */
5341
- extra?: {
5342
- [key: string]: unknown;
5343
- };
5521
+ sessionId: string;
5344
5522
  };
5345
5523
  path?: never;
5346
5524
  query?: {
5347
5525
  directory?: string;
5348
5526
  workspace?: string;
5349
5527
  };
5350
- url: "/log";
5528
+ url: "/kilo/cloud/session/import";
5351
5529
  };
5352
- export type AppLogErrors = {
5530
+ export type KiloCloudSessionImportErrors = {
5353
5531
  /**
5354
5532
  * Bad request
5355
5533
  */
5356
5534
  400: BadRequestError;
5357
- };
5358
- export type AppLogError = AppLogErrors[keyof AppLogErrors];
5359
- export type AppLogResponses = {
5360
5535
  /**
5361
- * Log entry written successfully
5536
+ * Not found
5362
5537
  */
5363
- 200: boolean;
5364
- };
5365
- export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
5366
- export type AppAgentsData = {
5367
- body?: never;
5368
- path?: never;
5369
- query?: {
5370
- directory?: string;
5371
- workspace?: string;
5372
- };
5373
- url: "/agent";
5538
+ 404: NotFoundError;
5374
5539
  };
5375
- export type AppAgentsResponses = {
5540
+ export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
5541
+ export type KiloCloudSessionImportResponses = {
5376
5542
  /**
5377
- * List of agents
5543
+ * Imported session info
5378
5544
  */
5379
- 200: Array<Agent>;
5545
+ 200: unknown;
5380
5546
  };
5381
- export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
5382
- export type AppSkillsData = {
5547
+ export type KiloClawStatusData = {
5383
5548
  body?: never;
5384
5549
  path?: never;
5385
5550
  query?: {
5386
5551
  directory?: string;
5387
5552
  workspace?: string;
5388
5553
  };
5389
- url: "/skill";
5554
+ url: "/kilo/claw/status";
5390
5555
  };
5391
- export type AppSkillsResponses = {
5556
+ export type KiloClawStatusResponses = {
5392
5557
  /**
5393
- * List of skills
5558
+ * Instance status
5394
5559
  */
5395
- 200: Array<{
5396
- name: string;
5397
- description: string;
5398
- location: string;
5399
- content: string;
5400
- }>;
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
+ };
5401
5575
  };
5402
- export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
5403
- export type LspStatusData = {
5576
+ export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
5577
+ export type KiloClawChatCredentialsData = {
5404
5578
  body?: never;
5405
5579
  path?: never;
5406
5580
  query?: {
5407
5581
  directory?: string;
5408
5582
  workspace?: string;
5409
5583
  };
5410
- url: "/lsp";
5584
+ url: "/kilo/claw/chat-credentials";
5411
5585
  };
5412
- export type LspStatusResponses = {
5586
+ export type KiloClawChatCredentialsResponses = {
5413
5587
  /**
5414
- * LSP server status
5588
+ * Stream Chat credentials or null
5415
5589
  */
5416
- 200: Array<LspStatus>;
5590
+ 200: {
5591
+ apiKey: string;
5592
+ userId: string;
5593
+ userToken: string;
5594
+ channelId: string;
5595
+ } | null;
5417
5596
  };
5418
- export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
5419
- export type FormatterStatusData = {
5597
+ export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
5598
+ export type KiloCloudSessionsData = {
5420
5599
  body?: never;
5421
5600
  path?: never;
5422
5601
  query?: {
5423
5602
  directory?: string;
5424
5603
  workspace?: string;
5604
+ cursor?: string;
5605
+ limit?: number;
5606
+ gitUrl?: string;
5425
5607
  };
5426
- url: "/formatter";
5608
+ url: "/kilo/cloud-sessions";
5427
5609
  };
5428
- export type FormatterStatusResponses = {
5610
+ export type KiloCloudSessionsErrors = {
5429
5611
  /**
5430
- * Formatter status
5612
+ * Bad request
5431
5613
  */
5432
- 200: Array<FormatterStatus>;
5433
- };
5434
- export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
5435
- export type EventSubscribeData = {
5436
- body?: never;
5437
- path?: never;
5438
- query?: {
5439
- directory?: string;
5440
- workspace?: string;
5441
- };
5442
- url: "/event";
5614
+ 400: BadRequestError;
5443
5615
  };
5444
- export type EventSubscribeResponses = {
5616
+ export type KiloCloudSessionsError = KiloCloudSessionsErrors[keyof KiloCloudSessionsErrors];
5617
+ export type KiloCloudSessionsResponses = {
5445
5618
  /**
5446
- * Event stream
5619
+ * Cloud sessions list
5447
5620
  */
5448
- 200: Event;
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
+ };
5449
5631
  };
5450
- export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
5632
+ export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];