@kilocode/sdk 7.2.4 → 7.2.6

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,335 +827,172 @@ 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;
580
- };
581
- };
582
- export type EventPermissionAsked = {
583
- type: "permission.asked";
584
- properties: PermissionRequest;
585
- };
586
- export type EventPermissionReplied = {
587
- type: "permission.replied";
588
- properties: {
589
- sessionID: string;
590
- requestID: string;
591
- reply: "once" | "always" | "reject";
592
- };
593
- };
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";
610
- properties: {
611
- sessionID: string;
612
- status: SessionStatus;
613
- };
614
- };
615
- export type EventSessionIdle = {
616
- type: "session.idle";
617
- properties: {
618
- sessionID: string;
619
- };
620
- };
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;
634
- };
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;
656
- };
657
- export type QuestionRequest = {
658
- id: string;
659
- sessionID: string;
660
- /**
661
- * Questions to ask
662
- */
663
- questions: Array<QuestionInfo>;
664
- tool?: {
665
- messageID: string;
666
- callID: string;
667
- };
668
- };
669
- export type EventQuestionAsked = {
670
- type: "question.asked";
671
- properties: QuestionRequest;
672
- };
673
- export type QuestionAnswer = Array<string>;
674
- export type EventQuestionReplied = {
675
- type: "question.replied";
676
- properties: {
677
- sessionID: string;
678
- requestID: string;
679
- answers: Array<QuestionAnswer>;
680
- };
681
- };
682
- export type EventQuestionRejected = {
683
- type: "question.rejected";
684
- properties: {
685
- sessionID: string;
686
- requestID: string;
687
- };
688
- };
689
- export type EventSessionCompacted = {
690
- type: "session.compacted";
691
- properties: {
692
- sessionID: string;
693
- };
694
- };
695
- export type EventFileWatcherUpdated = {
696
- type: "file.watcher.updated";
697
- properties: {
698
- file: string;
699
- event: "add" | "change" | "unlink";
700
- };
701
- };
702
- export type Todo = {
703
- /**
704
- * Brief description of the task
705
- */
706
- content: string;
707
- /**
708
- * Current status of the task: pending, in_progress, completed, cancelled
709
- */
710
- status: string;
711
- /**
712
- * Priority level of the task: high, medium, low
713
- */
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
- };
731
- };
732
- export type PermissionAction = "allow" | "deny" | "ask";
733
- export type PermissionRule = {
734
- permission: string;
735
- pattern: string;
736
- action: PermissionAction;
737
- };
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;
767
- };
768
- permission?: PermissionRuleset;
769
- revert?: {
770
- messageID: string;
771
- partID?: string;
772
- snapshot?: string;
773
- diff?: string;
869
+ partID?: string;
870
+ snapshot?: string;
871
+ diff?: string;
774
872
  };
775
873
  };
776
874
  export type EventSessionCreated = {
777
875
  type: "session.created";
778
876
  properties: {
877
+ sessionID: string;
779
878
  info: Session;
780
879
  };
781
880
  };
782
881
  export type EventSessionUpdated = {
783
882
  type: "session.updated";
784
883
  properties: {
884
+ sessionID: string;
785
885
  info: Session;
786
886
  };
787
887
  };
788
888
  export type EventSessionDeleted = {
789
889
  type: "session.deleted";
790
- properties: {
791
- info: Session;
792
- };
793
- };
794
- export type EventSessionDiff = {
795
- type: "session.diff";
796
890
  properties: {
797
891
  sessionID: string;
798
- diff: Array<FileDiff>;
892
+ info: Session;
799
893
  };
800
894
  };
801
- export type EventSessionError = {
802
- type: "session.error";
803
- properties: {
804
- sessionID?: string;
805
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
806
- };
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;
807
899
  };
808
- export type EventSessionTurnOpen = {
809
- type: "session.turn.open";
810
- properties: {
900
+ export type SyncEventMessageUpdated = {
901
+ type: "message.updated.1";
902
+ aggregate: "sessionID";
903
+ data: {
811
904
  sessionID: string;
905
+ info: Message;
812
906
  };
813
907
  };
814
- export type EventSessionTurnClose = {
815
- type: "session.turn.close";
816
- properties: {
908
+ export type SyncEventMessageRemoved = {
909
+ type: "message.removed.1";
910
+ aggregate: "sessionID";
911
+ data: {
817
912
  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;
913
+ messageID: string;
858
914
  };
859
915
  };
860
- export type EventPtyExited = {
861
- type: "pty.exited";
862
- properties: {
863
- id: string;
864
- exitCode: number;
916
+ export type SyncEventMessagePartUpdated = {
917
+ type: "message.part.updated.1";
918
+ aggregate: "sessionID";
919
+ data: {
920
+ sessionID: string;
921
+ part: Part;
922
+ time: number;
865
923
  };
866
924
  };
867
- export type EventPtyDeleted = {
868
- type: "pty.deleted";
869
- properties: {
870
- id: string;
925
+ export type SyncEventMessagePartRemoved = {
926
+ type: "message.part.removed.1";
927
+ aggregate: "sessionID";
928
+ data: {
929
+ sessionID: string;
930
+ messageID: string;
931
+ partID: string;
871
932
  };
872
933
  };
873
- export type EventWorktreeReady = {
874
- type: "worktree.ready";
875
- properties: {
876
- name: string;
877
- branch: string;
934
+ export type SyncEventSessionCreated = {
935
+ type: "session.created.1";
936
+ aggregate: "sessionID";
937
+ data: {
938
+ sessionID: string;
939
+ info: Session;
878
940
  };
879
941
  };
880
- export type EventWorktreeFailed = {
881
- type: "worktree.failed";
882
- properties: {
883
- message: string;
942
+ export type SyncEventSessionUpdated = {
943
+ type: "session.updated.1";
944
+ aggregate: "sessionID";
945
+ data: {
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
+ };
884
984
  };
885
985
  };
886
- export type EventKiloSessionsRemoteStatusChanged = {
887
- type: "kilo-sessions.remote-status-changed";
888
- properties: {
889
- enabled: boolean;
890
- connected: boolean;
986
+ export type SyncEventSessionDeleted = {
987
+ type: "session.deleted.1";
988
+ aggregate: "sessionID";
989
+ data: {
990
+ sessionID: string;
991
+ info: Session;
891
992
  };
892
993
  };
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;
994
+ export type SyncEvent = {
995
+ payload: SyncEvent;
897
996
  };
898
997
  /**
899
998
  * Log level
@@ -940,7 +1039,6 @@ export type PermissionConfig = {
940
1039
  task?: PermissionRuleConfig;
941
1040
  external_directory?: PermissionRuleConfig;
942
1041
  todowrite?: PermissionActionConfig;
943
- todoread?: PermissionActionConfig;
944
1042
  question?: PermissionActionConfig;
945
1043
  webfetch?: PermissionActionConfig;
946
1044
  websearch?: PermissionActionConfig;
@@ -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
  */
@@ -1376,6 +1482,9 @@ export type OAuth = {
1376
1482
  export type ApiAuth = {
1377
1483
  type: "api";
1378
1484
  key: string;
1485
+ metadata?: {
1486
+ [key: string]: string;
1487
+ };
1379
1488
  };
1380
1489
  export type WellKnownAuth = {
1381
1490
  type: "wellknown";
@@ -1618,6 +1727,31 @@ export type SubtaskPartInput = {
1618
1727
  export type ProviderAuthMethod = {
1619
1728
  type: "oauth" | "api";
1620
1729
  label: string;
1730
+ prompts?: Array<{
1731
+ type: "text";
1732
+ key: string;
1733
+ message: string;
1734
+ placeholder?: string;
1735
+ when?: {
1736
+ key: string;
1737
+ op: "eq" | "neq";
1738
+ value: string;
1739
+ };
1740
+ } | {
1741
+ type: "select";
1742
+ key: string;
1743
+ message: string;
1744
+ options: Array<{
1745
+ label: string;
1746
+ value: string;
1747
+ hint?: string;
1748
+ }>;
1749
+ when?: {
1750
+ key: string;
1751
+ op: "eq" | "neq";
1752
+ value: string;
1753
+ };
1754
+ }>;
1621
1755
  };
1622
1756
  export type ProviderAuthAuthorization = {
1623
1757
  url: string;
@@ -1692,7 +1826,8 @@ export type Path = {
1692
1826
  directory: string;
1693
1827
  };
1694
1828
  export type VcsInfo = {
1695
- branch: string;
1829
+ branch?: string;
1830
+ default_branch?: string;
1696
1831
  };
1697
1832
  export type Command = {
1698
1833
  name: string;
@@ -1708,10 +1843,10 @@ export type Agent = {
1708
1843
  name: string;
1709
1844
  displayName?: string;
1710
1845
  description?: string;
1846
+ deprecated?: boolean;
1711
1847
  mode: "subagent" | "primary" | "all";
1712
1848
  native?: boolean;
1713
1849
  hidden?: boolean;
1714
- deprecated?: boolean;
1715
1850
  topP?: number;
1716
1851
  temperature?: number;
1717
1852
  color?: string;
@@ -1767,6 +1902,19 @@ export type GlobalEventResponses = {
1767
1902
  200: GlobalEvent;
1768
1903
  };
1769
1904
  export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
1905
+ export type GlobalSyncEventSubscribeData = {
1906
+ body?: never;
1907
+ path?: never;
1908
+ query?: never;
1909
+ url: "/global/sync-event";
1910
+ };
1911
+ export type GlobalSyncEventSubscribeResponses = {
1912
+ /**
1913
+ * Event stream
1914
+ */
1915
+ 200: SyncEvent;
1916
+ };
1917
+ export type GlobalSyncEventSubscribeResponse = GlobalSyncEventSubscribeResponses[keyof GlobalSyncEventSubscribeResponses];
1770
1918
  export type GlobalConfigGetData = {
1771
1919
  body?: never;
1772
1920
  path?: never;
@@ -1813,6 +1961,34 @@ export type GlobalDisposeResponses = {
1813
1961
  200: boolean;
1814
1962
  };
1815
1963
  export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
1964
+ export type GlobalUpgradeData = {
1965
+ body?: {
1966
+ target?: string;
1967
+ };
1968
+ path?: never;
1969
+ query?: never;
1970
+ url: "/global/upgrade";
1971
+ };
1972
+ export type GlobalUpgradeErrors = {
1973
+ /**
1974
+ * Bad request
1975
+ */
1976
+ 400: BadRequestError;
1977
+ };
1978
+ export type GlobalUpgradeError = GlobalUpgradeErrors[keyof GlobalUpgradeErrors];
1979
+ export type GlobalUpgradeResponses = {
1980
+ /**
1981
+ * Upgrade result
1982
+ */
1983
+ 200: {
1984
+ success: true;
1985
+ version: string;
1986
+ } | {
1987
+ success: false;
1988
+ error: string;
1989
+ };
1990
+ };
1991
+ export type GlobalUpgradeResponse = GlobalUpgradeResponses[keyof GlobalUpgradeResponses];
1816
1992
  export type AuthRemoveData = {
1817
1993
  body?: never;
1818
1994
  path: {
@@ -1840,23 +2016,65 @@ export type AuthSetData = {
1840
2016
  path: {
1841
2017
  providerID: string;
1842
2018
  };
1843
- query?: never;
1844
- url: "/auth/{providerID}";
2019
+ query?: never;
2020
+ url: "/auth/{providerID}";
2021
+ };
2022
+ export type AuthSetErrors = {
2023
+ /**
2024
+ * Bad request
2025
+ */
2026
+ 400: BadRequestError;
2027
+ };
2028
+ export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
2029
+ export type AuthSetResponses = {
2030
+ /**
2031
+ * Successfully set authentication credentials
2032
+ */
2033
+ 200: boolean;
2034
+ };
2035
+ export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
2036
+ export type AppLogData = {
2037
+ body?: {
2038
+ /**
2039
+ * Service name for the log entry
2040
+ */
2041
+ service: string;
2042
+ /**
2043
+ * Log level
2044
+ */
2045
+ level: "debug" | "info" | "error" | "warn";
2046
+ /**
2047
+ * Log message
2048
+ */
2049
+ message: string;
2050
+ /**
2051
+ * Additional metadata for the log entry
2052
+ */
2053
+ extra?: {
2054
+ [key: string]: unknown;
2055
+ };
2056
+ };
2057
+ path?: never;
2058
+ query?: {
2059
+ directory?: string;
2060
+ workspace?: string;
2061
+ };
2062
+ url: "/log";
1845
2063
  };
1846
- export type AuthSetErrors = {
2064
+ export type AppLogErrors = {
1847
2065
  /**
1848
2066
  * Bad request
1849
2067
  */
1850
2068
  400: BadRequestError;
1851
2069
  };
1852
- export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
1853
- export type AuthSetResponses = {
2070
+ export type AppLogError = AppLogErrors[keyof AppLogErrors];
2071
+ export type AppLogResponses = {
1854
2072
  /**
1855
- * Successfully set authentication credentials
2073
+ * Log entry written successfully
1856
2074
  */
1857
2075
  200: boolean;
1858
2076
  };
1859
- export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
2077
+ export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
1860
2078
  export type ProjectListData = {
1861
2079
  body?: never;
1862
2080
  path?: never;
@@ -2180,6 +2398,70 @@ export type ConfigProvidersResponses = {
2180
2398
  };
2181
2399
  };
2182
2400
  export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
2401
+ export type ExperimentalConsoleGetData = {
2402
+ body?: never;
2403
+ path?: never;
2404
+ query?: {
2405
+ directory?: string;
2406
+ workspace?: string;
2407
+ };
2408
+ url: "/experimental/console";
2409
+ };
2410
+ export type ExperimentalConsoleGetResponses = {
2411
+ /**
2412
+ * Active Console provider metadata
2413
+ */
2414
+ 200: {
2415
+ consoleManagedProviders: Array<string>;
2416
+ activeOrgName?: string;
2417
+ switchableOrgCount: number;
2418
+ };
2419
+ };
2420
+ export type ExperimentalConsoleGetResponse = ExperimentalConsoleGetResponses[keyof ExperimentalConsoleGetResponses];
2421
+ export type ExperimentalConsoleListOrgsData = {
2422
+ body?: never;
2423
+ path?: never;
2424
+ query?: {
2425
+ directory?: string;
2426
+ workspace?: string;
2427
+ };
2428
+ url: "/experimental/console/orgs";
2429
+ };
2430
+ export type ExperimentalConsoleListOrgsResponses = {
2431
+ /**
2432
+ * Switchable Console orgs
2433
+ */
2434
+ 200: {
2435
+ orgs: Array<{
2436
+ accountID: string;
2437
+ accountEmail: string;
2438
+ accountUrl: string;
2439
+ orgID: string;
2440
+ orgName: string;
2441
+ active: boolean;
2442
+ }>;
2443
+ };
2444
+ };
2445
+ export type ExperimentalConsoleListOrgsResponse = ExperimentalConsoleListOrgsResponses[keyof ExperimentalConsoleListOrgsResponses];
2446
+ export type ExperimentalConsoleSwitchOrgData = {
2447
+ body?: {
2448
+ accountID: string;
2449
+ orgID: string;
2450
+ };
2451
+ path?: never;
2452
+ query?: {
2453
+ directory?: string;
2454
+ workspace?: string;
2455
+ };
2456
+ url: "/experimental/console/switch";
2457
+ };
2458
+ export type ExperimentalConsoleSwitchOrgResponses = {
2459
+ /**
2460
+ * Switch success
2461
+ */
2462
+ 200: boolean;
2463
+ };
2464
+ export type ExperimentalConsoleSwitchOrgResponse = ExperimentalConsoleSwitchOrgResponses[keyof ExperimentalConsoleSwitchOrgResponses];
2183
2465
  export type ToolIdsData = {
2184
2466
  body?: never;
2185
2467
  path?: never;
@@ -2975,7 +3257,11 @@ export type SessionMessagesData = {
2975
3257
  query?: {
2976
3258
  directory?: string;
2977
3259
  workspace?: string;
3260
+ /**
3261
+ * Maximum number of messages to return
3262
+ */
2978
3263
  limit?: number;
3264
+ before?: string;
2979
3265
  };
2980
3266
  url: "/session/{sessionID}/message";
2981
3267
  };
@@ -3283,6 +3569,7 @@ export type SessionCommandResponses = {
3283
3569
  export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
3284
3570
  export type SessionShellData = {
3285
3571
  body?: {
3572
+ messageID?: string;
3286
3573
  agent: string;
3287
3574
  model?: {
3288
3575
  providerID: string;
@@ -3509,37 +3796,6 @@ export type PermissionListResponses = {
3509
3796
  200: Array<PermissionRequest>;
3510
3797
  };
3511
3798
  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
3799
  export type QuestionListData = {
3544
3800
  body?: never;
3545
3801
  path?: never;
@@ -3619,80 +3875,6 @@ export type QuestionRejectResponses = {
3619
3875
  200: boolean;
3620
3876
  };
3621
3877
  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
3878
  export type ProviderListData = {
3697
3879
  body?: never;
3698
3880
  path?: never;
@@ -3802,6 +3984,49 @@ export type ProviderOauthAuthorizeData = {
3802
3984
  * Auth method index
3803
3985
  */
3804
3986
  method: number;
3987
+ /**
3988
+ * Prompt inputs
3989
+ */
3990
+ inputs?: {
3991
+ [key: string]: string;
3992
+ };
3993
+ };
3994
+ path: {
3995
+ /**
3996
+ * Provider ID
3997
+ */
3998
+ providerID: string;
3999
+ };
4000
+ query?: {
4001
+ directory?: string;
4002
+ workspace?: string;
4003
+ };
4004
+ url: "/provider/{providerID}/oauth/authorize";
4005
+ };
4006
+ export type ProviderOauthAuthorizeErrors = {
4007
+ /**
4008
+ * Bad request
4009
+ */
4010
+ 400: BadRequestError;
4011
+ };
4012
+ export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors];
4013
+ export type ProviderOauthAuthorizeResponses = {
4014
+ /**
4015
+ * Authorization URL and method
4016
+ */
4017
+ 200: ProviderAuthAuthorization;
4018
+ };
4019
+ export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses];
4020
+ export type ProviderOauthCallbackData = {
4021
+ body?: {
4022
+ /**
4023
+ * Auth method index
4024
+ */
4025
+ method: number;
4026
+ /**
4027
+ * OAuth authorization code
4028
+ */
4029
+ code?: string;
3805
4030
  };
3806
4031
  path: {
3807
4032
  /**
@@ -3813,1638 +4038,1681 @@ export type ProviderOauthAuthorizeData = {
3813
4038
  directory?: string;
3814
4039
  workspace?: string;
3815
4040
  };
3816
- url: "/provider/{providerID}/oauth/authorize";
4041
+ url: "/provider/{providerID}/oauth/callback";
4042
+ };
4043
+ export type ProviderOauthCallbackErrors = {
4044
+ /**
4045
+ * Bad request
4046
+ */
4047
+ 400: BadRequestError;
4048
+ };
4049
+ export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors];
4050
+ export type ProviderOauthCallbackResponses = {
4051
+ /**
4052
+ * OAuth callback processed successfully
4053
+ */
4054
+ 200: boolean;
4055
+ };
4056
+ export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
4057
+ export type FindTextData = {
4058
+ body?: never;
4059
+ path?: never;
4060
+ query: {
4061
+ directory?: string;
4062
+ workspace?: string;
4063
+ pattern: string;
4064
+ };
4065
+ url: "/find";
4066
+ };
4067
+ export type FindTextResponses = {
4068
+ /**
4069
+ * Matches
4070
+ */
4071
+ 200: Array<{
4072
+ path: {
4073
+ text: string;
4074
+ };
4075
+ lines: {
4076
+ text: string;
4077
+ };
4078
+ line_number: number;
4079
+ absolute_offset: number;
4080
+ submatches: Array<{
4081
+ match: {
4082
+ text: string;
4083
+ };
4084
+ start: number;
4085
+ end: number;
4086
+ }>;
4087
+ }>;
4088
+ };
4089
+ export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
4090
+ export type FindFilesData = {
4091
+ body?: never;
4092
+ path?: never;
4093
+ query: {
4094
+ directory?: string;
4095
+ workspace?: string;
4096
+ query: string;
4097
+ dirs?: "true" | "false";
4098
+ type?: "file" | "directory";
4099
+ limit?: number;
4100
+ };
4101
+ url: "/find/file";
3817
4102
  };
3818
- export type ProviderOauthAuthorizeErrors = {
4103
+ export type FindFilesResponses = {
3819
4104
  /**
3820
- * Bad request
4105
+ * File paths
3821
4106
  */
3822
- 400: BadRequestError;
4107
+ 200: Array<string>;
3823
4108
  };
3824
- export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors];
3825
- export type ProviderOauthAuthorizeResponses = {
4109
+ export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
4110
+ export type FindSymbolsData = {
4111
+ body?: never;
4112
+ path?: never;
4113
+ query: {
4114
+ directory?: string;
4115
+ workspace?: string;
4116
+ query: string;
4117
+ };
4118
+ url: "/find/symbol";
4119
+ };
4120
+ export type FindSymbolsResponses = {
3826
4121
  /**
3827
- * Authorization URL and method
4122
+ * Symbols
3828
4123
  */
3829
- 200: ProviderAuthAuthorization;
4124
+ 200: Array<Symbol>;
3830
4125
  };
3831
- export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses];
3832
- export type ProviderOauthCallbackData = {
3833
- body?: {
3834
- /**
3835
- * Auth method index
3836
- */
3837
- method: number;
3838
- /**
3839
- * OAuth authorization code
3840
- */
3841
- code?: string;
3842
- };
3843
- path: {
3844
- /**
3845
- * Provider ID
3846
- */
3847
- providerID: string;
3848
- };
3849
- query?: {
4126
+ export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
4127
+ export type FileListData = {
4128
+ body?: never;
4129
+ path?: never;
4130
+ query: {
3850
4131
  directory?: string;
3851
4132
  workspace?: string;
4133
+ path: string;
3852
4134
  };
3853
- url: "/provider/{providerID}/oauth/callback";
4135
+ url: "/file";
3854
4136
  };
3855
- export type ProviderOauthCallbackErrors = {
4137
+ export type FileListResponses = {
3856
4138
  /**
3857
- * Bad request
4139
+ * Files and directories
3858
4140
  */
3859
- 400: BadRequestError;
4141
+ 200: Array<FileNode>;
3860
4142
  };
3861
- export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors];
3862
- export type ProviderOauthCallbackResponses = {
4143
+ export type FileListResponse = FileListResponses[keyof FileListResponses];
4144
+ export type FileReadData = {
4145
+ body?: never;
4146
+ path?: never;
4147
+ query: {
4148
+ directory?: string;
4149
+ workspace?: string;
4150
+ path: string;
4151
+ };
4152
+ url: "/file/content";
4153
+ };
4154
+ export type FileReadResponses = {
3863
4155
  /**
3864
- * OAuth callback processed successfully
4156
+ * File content
3865
4157
  */
3866
- 200: boolean;
4158
+ 200: FileContent;
3867
4159
  };
3868
- 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
- };
4160
+ export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
4161
+ export type FileStatusData = {
4162
+ body?: never;
3882
4163
  path?: never;
3883
4164
  query?: {
3884
4165
  directory?: string;
3885
4166
  workspace?: string;
3886
4167
  };
3887
- url: "/telemetry/capture";
3888
- };
3889
- export type TelemetryCaptureErrors = {
3890
- /**
3891
- * Bad request
3892
- */
3893
- 400: BadRequestError;
4168
+ url: "/file/status";
3894
4169
  };
3895
- export type TelemetryCaptureError = TelemetryCaptureErrors[keyof TelemetryCaptureErrors];
3896
- export type TelemetryCaptureResponses = {
4170
+ export type FileStatusResponses = {
3897
4171
  /**
3898
- * Event captured
4172
+ * File status
3899
4173
  */
3900
- 200: boolean;
4174
+ 200: Array<File>;
3901
4175
  };
3902
- export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses];
3903
- export type RemoteEnableData = {
4176
+ export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
4177
+ export type EventSubscribeData = {
3904
4178
  body?: never;
3905
4179
  path?: never;
3906
4180
  query?: {
3907
4181
  directory?: string;
3908
4182
  workspace?: string;
3909
4183
  };
3910
- url: "/remote/enable";
4184
+ url: "/event";
3911
4185
  };
3912
- export type RemoteEnableResponses = {
4186
+ export type EventSubscribeResponses = {
3913
4187
  /**
3914
- * Remote connection enabled
4188
+ * Event stream
3915
4189
  */
3916
- 200: {
3917
- enabled: boolean;
3918
- connected: boolean;
3919
- };
4190
+ 200: Event;
3920
4191
  };
3921
- export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
3922
- export type RemoteDisableData = {
4192
+ export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
4193
+ export type McpStatusData = {
3923
4194
  body?: never;
3924
4195
  path?: never;
3925
4196
  query?: {
3926
4197
  directory?: string;
3927
4198
  workspace?: string;
3928
4199
  };
3929
- url: "/remote/disable";
4200
+ url: "/mcp";
3930
4201
  };
3931
- export type RemoteDisableResponses = {
4202
+ export type McpStatusResponses = {
3932
4203
  /**
3933
- * Remote connection disabled
4204
+ * MCP server status
3934
4205
  */
3935
4206
  200: {
3936
- enabled: boolean;
3937
- connected: boolean;
4207
+ [key: string]: McpStatus;
3938
4208
  };
3939
4209
  };
3940
- export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
3941
- export type RemoteStatusData = {
3942
- body?: never;
4210
+ export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
4211
+ export type McpAddData = {
4212
+ body?: {
4213
+ name: string;
4214
+ config: McpLocalConfig | McpRemoteConfig;
4215
+ };
3943
4216
  path?: never;
3944
4217
  query?: {
3945
4218
  directory?: string;
3946
4219
  workspace?: string;
3947
4220
  };
3948
- url: "/remote/status";
4221
+ url: "/mcp";
3949
4222
  };
3950
- export type RemoteStatusResponses = {
4223
+ export type McpAddErrors = {
3951
4224
  /**
3952
- * Remote connection status
4225
+ * Bad request
4226
+ */
4227
+ 400: BadRequestError;
4228
+ };
4229
+ export type McpAddError = McpAddErrors[keyof McpAddErrors];
4230
+ export type McpAddResponses = {
4231
+ /**
4232
+ * MCP server added successfully
3953
4233
  */
3954
4234
  200: {
3955
- enabled: boolean;
3956
- connected: boolean;
4235
+ [key: string]: McpStatus;
3957
4236
  };
3958
4237
  };
3959
- export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
3960
- export type CommitMessageGenerateData = {
3961
- 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;
4238
+ export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
4239
+ export type McpAuthRemoveData = {
4240
+ body?: never;
4241
+ path: {
4242
+ name: string;
3974
4243
  };
3975
- path?: never;
3976
4244
  query?: {
3977
4245
  directory?: string;
3978
4246
  workspace?: string;
3979
4247
  };
3980
- url: "/commit-message";
4248
+ url: "/mcp/{name}/auth";
3981
4249
  };
3982
- export type CommitMessageGenerateErrors = {
4250
+ export type McpAuthRemoveErrors = {
3983
4251
  /**
3984
- * Bad request
4252
+ * Not found
3985
4253
  */
3986
- 400: BadRequestError;
4254
+ 404: NotFoundError;
3987
4255
  };
3988
- export type CommitMessageGenerateError = CommitMessageGenerateErrors[keyof CommitMessageGenerateErrors];
3989
- export type CommitMessageGenerateResponses = {
4256
+ export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4257
+ export type McpAuthRemoveResponses = {
3990
4258
  /**
3991
- * Generated commit message
4259
+ * OAuth credentials removed
3992
4260
  */
3993
4261
  200: {
3994
- message: string;
4262
+ success: true;
3995
4263
  };
3996
4264
  };
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;
4265
+ export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
4266
+ export type McpAuthStartData = {
4267
+ body?: never;
4268
+ path: {
4269
+ name: string;
4004
4270
  };
4005
- path?: never;
4006
4271
  query?: {
4007
4272
  directory?: string;
4008
4273
  workspace?: string;
4009
4274
  };
4010
- url: "/enhance-prompt";
4275
+ url: "/mcp/{name}/auth";
4011
4276
  };
4012
- export type EnhancePromptEnhanceErrors = {
4277
+ export type McpAuthStartErrors = {
4013
4278
  /**
4014
4279
  * Bad request
4015
4280
  */
4016
4281
  400: BadRequestError;
4282
+ /**
4283
+ * Not found
4284
+ */
4285
+ 404: NotFoundError;
4017
4286
  };
4018
- export type EnhancePromptEnhanceError = EnhancePromptEnhanceErrors[keyof EnhancePromptEnhanceErrors];
4019
- export type EnhancePromptEnhanceResponses = {
4287
+ export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4288
+ export type McpAuthStartResponses = {
4020
4289
  /**
4021
- * Enhanced prompt text
4290
+ * OAuth flow started
4022
4291
  */
4023
4292
  200: {
4024
- text: string;
4293
+ /**
4294
+ * URL to open in browser for authorization
4295
+ */
4296
+ authorizationUrl: string;
4025
4297
  };
4026
4298
  };
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
- };
4299
+ export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
4300
+ export type McpAuthCallbackData = {
4301
+ body?: {
4302
+ /**
4303
+ * Authorization code from OAuth callback
4304
+ */
4305
+ code: string;
4306
+ };
4307
+ path: {
4308
+ name: string;
4043
4309
  };
4044
- path?: never;
4045
4310
  query?: {
4046
4311
  directory?: string;
4047
4312
  workspace?: string;
4048
4313
  };
4049
- url: "/kilocode/session-import/project";
4314
+ url: "/mcp/{name}/auth/callback";
4050
4315
  };
4051
- export type KilocodeSessionImportProjectErrors = {
4316
+ export type McpAuthCallbackErrors = {
4052
4317
  /**
4053
4318
  * Bad request
4054
4319
  */
4055
4320
  400: BadRequestError;
4321
+ /**
4322
+ * Not found
4323
+ */
4324
+ 404: NotFoundError;
4056
4325
  };
4057
- export type KilocodeSessionImportProjectError = KilocodeSessionImportProjectErrors[keyof KilocodeSessionImportProjectErrors];
4058
- export type KilocodeSessionImportProjectResponses = {
4326
+ export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4327
+ export type McpAuthCallbackResponses = {
4059
4328
  /**
4060
- * Project import result
4329
+ * OAuth authentication completed
4061
4330
  */
4062
- 200: {
4063
- ok: boolean;
4064
- id: string;
4065
- skipped?: boolean;
4066
- };
4331
+ 200: McpStatus;
4067
4332
  };
4068
- export type KilocodeSessionImportProjectResponse = KilocodeSessionImportProjectResponses[keyof KilocodeSessionImportProjectResponses];
4069
- export type KilocodeSessionImportSessionData = {
4070
- 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;
4333
+ export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
4334
+ export type McpAuthAuthenticateData = {
4335
+ body?: never;
4336
+ path: {
4337
+ name: string;
4102
4338
  };
4103
- path?: never;
4104
4339
  query?: {
4105
4340
  directory?: string;
4106
4341
  workspace?: string;
4107
4342
  };
4108
- url: "/kilocode/session-import/session";
4343
+ url: "/mcp/{name}/auth/authenticate";
4109
4344
  };
4110
- export type KilocodeSessionImportSessionErrors = {
4345
+ export type McpAuthAuthenticateErrors = {
4111
4346
  /**
4112
4347
  * Bad request
4113
4348
  */
4114
4349
  400: BadRequestError;
4350
+ /**
4351
+ * Not found
4352
+ */
4353
+ 404: NotFoundError;
4115
4354
  };
4116
- export type KilocodeSessionImportSessionError = KilocodeSessionImportSessionErrors[keyof KilocodeSessionImportSessionErrors];
4117
- export type KilocodeSessionImportSessionResponses = {
4355
+ export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4356
+ export type McpAuthAuthenticateResponses = {
4118
4357
  /**
4119
- * Session import result
4358
+ * OAuth authentication completed
4120
4359
  */
4121
- 200: {
4122
- ok: boolean;
4123
- id: string;
4124
- skipped?: boolean;
4125
- };
4360
+ 200: McpStatus;
4126
4361
  };
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
- };
4362
+ export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
4363
+ export type McpConnectData = {
4364
+ body?: never;
4365
+ path: {
4366
+ name: string;
4177
4367
  };
4178
- path?: never;
4179
4368
  query?: {
4180
4369
  directory?: string;
4181
4370
  workspace?: string;
4182
4371
  };
4183
- url: "/kilocode/session-import/message";
4372
+ url: "/mcp/{name}/connect";
4184
4373
  };
4185
- export type KilocodeSessionImportMessageErrors = {
4374
+ export type McpConnectResponses = {
4186
4375
  /**
4187
- * Bad request
4376
+ * MCP server connected successfully
4188
4377
  */
4189
- 400: BadRequestError;
4378
+ 200: boolean;
4190
4379
  };
4191
- export type KilocodeSessionImportMessageError = KilocodeSessionImportMessageErrors[keyof KilocodeSessionImportMessageErrors];
4192
- export type KilocodeSessionImportMessageResponses = {
4193
- /**
4194
- * Message import result
4195
- */
4196
- 200: {
4197
- ok: boolean;
4198
- id: string;
4199
- skipped?: boolean;
4380
+ export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
4381
+ export type McpDisconnectData = {
4382
+ body?: never;
4383
+ path: {
4384
+ name: string;
4200
4385
  };
4201
- };
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
- };
4386
+ query?: {
4387
+ directory?: string;
4388
+ workspace?: string;
4389
+ };
4390
+ url: "/mcp/{name}/disconnect";
4391
+ };
4392
+ export type McpDisconnectResponses = {
4393
+ /**
4394
+ * MCP server disconnected successfully
4395
+ */
4396
+ 200: boolean;
4397
+ };
4398
+ export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
4399
+ export type TuiAppendPromptData = {
4400
+ body?: {
4401
+ text: string;
4286
4402
  };
4287
4403
  path?: never;
4288
4404
  query?: {
4289
4405
  directory?: string;
4290
4406
  workspace?: string;
4291
4407
  };
4292
- url: "/kilocode/session-import/part";
4408
+ url: "/tui/append-prompt";
4293
4409
  };
4294
- export type KilocodeSessionImportPartErrors = {
4410
+ export type TuiAppendPromptErrors = {
4295
4411
  /**
4296
4412
  * Bad request
4297
4413
  */
4298
4414
  400: BadRequestError;
4299
4415
  };
4300
- export type KilocodeSessionImportPartError = KilocodeSessionImportPartErrors[keyof KilocodeSessionImportPartErrors];
4301
- export type KilocodeSessionImportPartResponses = {
4416
+ export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
4417
+ export type TuiAppendPromptResponses = {
4302
4418
  /**
4303
- * Part import result
4419
+ * Prompt processed successfully
4304
4420
  */
4305
- 200: {
4306
- ok: boolean;
4307
- id: string;
4308
- skipped?: boolean;
4309
- };
4421
+ 200: boolean;
4310
4422
  };
4311
- export type KilocodeSessionImportPartResponse = KilocodeSessionImportPartResponses[keyof KilocodeSessionImportPartResponses];
4312
- export type KilocodeRemoveSkillData = {
4313
- body?: {
4314
- location: string;
4315
- };
4423
+ export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
4424
+ export type TuiOpenHelpData = {
4425
+ body?: never;
4316
4426
  path?: never;
4317
4427
  query?: {
4318
4428
  directory?: string;
4319
4429
  workspace?: string;
4320
4430
  };
4321
- url: "/kilocode/skill/remove";
4431
+ url: "/tui/open-help";
4322
4432
  };
4323
- export type KilocodeRemoveSkillErrors = {
4433
+ export type TuiOpenHelpResponses = {
4324
4434
  /**
4325
- * Bad request
4435
+ * Help dialog opened successfully
4326
4436
  */
4327
- 400: BadRequestError;
4437
+ 200: boolean;
4328
4438
  };
4329
- export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
4330
- export type KilocodeRemoveSkillResponses = {
4439
+ export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
4440
+ export type TuiOpenSessionsData = {
4441
+ body?: never;
4442
+ path?: never;
4443
+ query?: {
4444
+ directory?: string;
4445
+ workspace?: string;
4446
+ };
4447
+ url: "/tui/open-sessions";
4448
+ };
4449
+ export type TuiOpenSessionsResponses = {
4331
4450
  /**
4332
- * Skill removed
4451
+ * Session dialog opened successfully
4333
4452
  */
4334
4453
  200: boolean;
4335
4454
  };
4336
- export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
4337
- export type KilocodeRemoveAgentData = {
4338
- body?: {
4339
- name: string;
4340
- };
4455
+ export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
4456
+ export type TuiOpenThemesData = {
4457
+ body?: never;
4341
4458
  path?: never;
4342
4459
  query?: {
4343
4460
  directory?: string;
4344
4461
  workspace?: string;
4345
4462
  };
4346
- url: "/kilocode/agent/remove";
4463
+ url: "/tui/open-themes";
4347
4464
  };
4348
- export type KilocodeRemoveAgentErrors = {
4465
+ export type TuiOpenThemesResponses = {
4349
4466
  /**
4350
- * Bad request
4467
+ * Theme dialog opened successfully
4351
4468
  */
4352
- 400: BadRequestError;
4469
+ 200: boolean;
4353
4470
  };
4354
- export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
4355
- export type KilocodeRemoveAgentResponses = {
4471
+ export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
4472
+ export type TuiOpenModelsData = {
4473
+ body?: never;
4474
+ path?: never;
4475
+ query?: {
4476
+ directory?: string;
4477
+ workspace?: string;
4478
+ };
4479
+ url: "/tui/open-models";
4480
+ };
4481
+ export type TuiOpenModelsResponses = {
4356
4482
  /**
4357
- * Agent removed
4483
+ * Model dialog opened successfully
4358
4484
  */
4359
4485
  200: boolean;
4360
4486
  };
4361
- export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
4362
- export type KiloProfileData = {
4487
+ export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
4488
+ export type TuiSubmitPromptData = {
4363
4489
  body?: never;
4364
4490
  path?: never;
4365
4491
  query?: {
4366
4492
  directory?: string;
4367
4493
  workspace?: string;
4368
4494
  };
4369
- url: "/kilo/profile";
4495
+ url: "/tui/submit-prompt";
4370
4496
  };
4371
- export type KiloProfileErrors = {
4497
+ export type TuiSubmitPromptResponses = {
4372
4498
  /**
4373
- * Bad request
4499
+ * Prompt submitted successfully
4374
4500
  */
4375
- 400: BadRequestError;
4501
+ 200: boolean;
4376
4502
  };
4377
- export type KiloProfileError = KiloProfileErrors[keyof KiloProfileErrors];
4378
- export type KiloProfileResponses = {
4503
+ export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
4504
+ export type TuiClearPromptData = {
4505
+ body?: never;
4506
+ path?: never;
4507
+ query?: {
4508
+ directory?: string;
4509
+ workspace?: string;
4510
+ };
4511
+ url: "/tui/clear-prompt";
4512
+ };
4513
+ export type TuiClearPromptResponses = {
4379
4514
  /**
4380
- * Profile data
4515
+ * Prompt cleared successfully
4381
4516
  */
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;
4396
- };
4517
+ 200: boolean;
4397
4518
  };
4398
- export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
4399
- export type KiloOrganizationSetData = {
4519
+ export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
4520
+ export type TuiExecuteCommandData = {
4400
4521
  body?: {
4401
- organizationId: string | null;
4522
+ command: string;
4402
4523
  };
4403
4524
  path?: never;
4404
4525
  query?: {
4405
4526
  directory?: string;
4406
4527
  workspace?: string;
4407
4528
  };
4408
- url: "/kilo/organization";
4529
+ url: "/tui/execute-command";
4409
4530
  };
4410
- export type KiloOrganizationSetErrors = {
4531
+ export type TuiExecuteCommandErrors = {
4411
4532
  /**
4412
4533
  * Bad request
4413
4534
  */
4414
4535
  400: BadRequestError;
4415
4536
  };
4416
- export type KiloOrganizationSetError = KiloOrganizationSetErrors[keyof KiloOrganizationSetErrors];
4417
- export type KiloOrganizationSetResponses = {
4537
+ export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
4538
+ export type TuiExecuteCommandResponses = {
4418
4539
  /**
4419
- * Organization updated successfully
4540
+ * Command executed successfully
4420
4541
  */
4421
4542
  200: boolean;
4422
4543
  };
4423
- export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses];
4424
- export type KiloModesData = {
4425
- body?: never;
4544
+ export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
4545
+ export type TuiShowToastData = {
4546
+ body?: {
4547
+ title?: string;
4548
+ message: string;
4549
+ variant: "info" | "success" | "warning" | "error";
4550
+ /**
4551
+ * Duration in milliseconds
4552
+ */
4553
+ duration?: number;
4554
+ };
4426
4555
  path?: never;
4427
4556
  query?: {
4428
4557
  directory?: string;
4429
4558
  workspace?: string;
4430
4559
  };
4431
- url: "/kilo/modes";
4560
+ url: "/tui/show-toast";
4432
4561
  };
4433
- export type KiloModesResponses = {
4562
+ export type TuiShowToastResponses = {
4434
4563
  /**
4435
- * Organization modes list
4564
+ * Toast notification shown successfully
4436
4565
  */
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
- }>;
4566
+ 200: boolean;
4567
+ };
4568
+ export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
4569
+ export type TuiPublishData = {
4570
+ body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
4571
+ path?: never;
4572
+ query?: {
4573
+ directory?: string;
4574
+ workspace?: string;
4460
4575
  };
4576
+ url: "/tui/publish";
4461
4577
  };
4462
- export type KiloModesResponse = KiloModesResponses[keyof KiloModesResponses];
4463
- export type KiloFimData = {
4578
+ export type TuiPublishErrors = {
4579
+ /**
4580
+ * Bad request
4581
+ */
4582
+ 400: BadRequestError;
4583
+ };
4584
+ export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
4585
+ export type TuiPublishResponses = {
4586
+ /**
4587
+ * Event published successfully
4588
+ */
4589
+ 200: boolean;
4590
+ };
4591
+ export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
4592
+ export type TuiSelectSessionData = {
4464
4593
  body?: {
4465
- prefix: string;
4466
- suffix: string;
4467
- model?: string;
4468
- maxTokens?: number;
4469
- temperature?: number;
4594
+ /**
4595
+ * Session ID to navigate to
4596
+ */
4597
+ sessionID: string;
4598
+ };
4599
+ path?: never;
4600
+ query?: {
4601
+ directory?: string;
4602
+ workspace?: string;
4470
4603
  };
4604
+ url: "/tui/select-session";
4605
+ };
4606
+ export type TuiSelectSessionErrors = {
4607
+ /**
4608
+ * Bad request
4609
+ */
4610
+ 400: BadRequestError;
4611
+ /**
4612
+ * Not found
4613
+ */
4614
+ 404: NotFoundError;
4615
+ };
4616
+ export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors];
4617
+ export type TuiSelectSessionResponses = {
4618
+ /**
4619
+ * Session selected successfully
4620
+ */
4621
+ 200: boolean;
4622
+ };
4623
+ export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses];
4624
+ export type TuiControlNextData = {
4625
+ body?: never;
4471
4626
  path?: never;
4472
4627
  query?: {
4473
4628
  directory?: string;
4474
4629
  workspace?: string;
4475
4630
  };
4476
- url: "/kilo/fim";
4631
+ url: "/tui/control/next";
4477
4632
  };
4478
- export type KiloFimErrors = {
4633
+ export type TuiControlNextResponses = {
4479
4634
  /**
4480
- * Bad request
4635
+ * Next TUI request
4481
4636
  */
4482
- 400: BadRequestError;
4637
+ 200: {
4638
+ path: string;
4639
+ body: unknown;
4640
+ };
4483
4641
  };
4484
- export type KiloFimError = KiloFimErrors[keyof KiloFimErrors];
4485
- export type KiloFimResponses = {
4642
+ export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
4643
+ export type TuiControlResponseData = {
4644
+ body?: unknown;
4645
+ path?: never;
4646
+ query?: {
4647
+ directory?: string;
4648
+ workspace?: string;
4649
+ };
4650
+ url: "/tui/control/response";
4651
+ };
4652
+ export type TuiControlResponseResponses = {
4486
4653
  /**
4487
- * Streaming FIM completion response
4654
+ * Response submitted successfully
4488
4655
  */
4489
- 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;
4500
- };
4656
+ 200: boolean;
4501
4657
  };
4502
- export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
4503
- export type KiloNotificationsData = {
4658
+ export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
4659
+ export type InstanceDisposeData = {
4504
4660
  body?: never;
4505
4661
  path?: never;
4506
4662
  query?: {
4507
4663
  directory?: string;
4508
4664
  workspace?: string;
4509
4665
  };
4510
- url: "/kilo/notifications";
4666
+ url: "/instance/dispose";
4511
4667
  };
4512
- export type KiloNotificationsErrors = {
4668
+ export type InstanceDisposeResponses = {
4513
4669
  /**
4514
- * Bad request
4670
+ * Instance disposed
4515
4671
  */
4516
- 400: BadRequestError;
4672
+ 200: boolean;
4517
4673
  };
4518
- export type KiloNotificationsError = KiloNotificationsErrors[keyof KiloNotificationsErrors];
4519
- export type KiloNotificationsResponses = {
4674
+ export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
4675
+ export type PathGetData = {
4676
+ body?: never;
4677
+ path?: never;
4678
+ query?: {
4679
+ directory?: string;
4680
+ workspace?: string;
4681
+ };
4682
+ url: "/path";
4683
+ };
4684
+ export type PathGetResponses = {
4520
4685
  /**
4521
- * Notifications list
4686
+ * Path
4522
4687
  */
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
- }>;
4688
+ 200: Path;
4534
4689
  };
4535
- export type KiloNotificationsResponse = KiloNotificationsResponses[keyof KiloNotificationsResponses];
4536
- export type KiloCloudSessionGetData = {
4690
+ export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
4691
+ export type VcsGetData = {
4537
4692
  body?: never;
4538
- path: {
4539
- id: string;
4540
- };
4693
+ path?: never;
4541
4694
  query?: {
4542
4695
  directory?: string;
4543
4696
  workspace?: string;
4544
4697
  };
4545
- url: "/kilo/cloud/session/{id}";
4698
+ url: "/vcs";
4546
4699
  };
4547
- export type KiloCloudSessionGetErrors = {
4700
+ export type VcsGetResponses = {
4548
4701
  /**
4549
- * Not found
4702
+ * VCS info
4550
4703
  */
4551
- 404: NotFoundError;
4704
+ 200: VcsInfo;
4552
4705
  };
4553
- export type KiloCloudSessionGetError = KiloCloudSessionGetErrors[keyof KiloCloudSessionGetErrors];
4554
- export type KiloCloudSessionGetResponses = {
4706
+ export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
4707
+ export type VcsDiffData = {
4708
+ body?: never;
4709
+ path?: never;
4710
+ query: {
4711
+ directory?: string;
4712
+ workspace?: string;
4713
+ mode: "git" | "branch";
4714
+ };
4715
+ url: "/vcs/diff";
4716
+ };
4717
+ export type VcsDiffResponses = {
4555
4718
  /**
4556
- * Cloud session data
4719
+ * VCS diff
4557
4720
  */
4558
- 200: unknown;
4721
+ 200: Array<FileDiff>;
4559
4722
  };
4560
- export type KiloCloudSessionImportData = {
4561
- body?: {
4562
- sessionId: string;
4563
- };
4723
+ export type VcsDiffResponse = VcsDiffResponses[keyof VcsDiffResponses];
4724
+ export type CommandListData = {
4725
+ body?: never;
4564
4726
  path?: never;
4565
4727
  query?: {
4566
4728
  directory?: string;
4567
4729
  workspace?: string;
4568
4730
  };
4569
- url: "/kilo/cloud/session/import";
4731
+ url: "/command";
4570
4732
  };
4571
- export type KiloCloudSessionImportErrors = {
4572
- /**
4573
- * Bad request
4574
- */
4575
- 400: BadRequestError;
4733
+ export type CommandListResponses = {
4576
4734
  /**
4577
- * Not found
4735
+ * List of commands
4578
4736
  */
4579
- 404: NotFoundError;
4737
+ 200: Array<Command>;
4580
4738
  };
4581
- export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
4582
- export type KiloCloudSessionImportResponses = {
4739
+ export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
4740
+ export type AppAgentsData = {
4741
+ body?: never;
4742
+ path?: never;
4743
+ query?: {
4744
+ directory?: string;
4745
+ workspace?: string;
4746
+ };
4747
+ url: "/agent";
4748
+ };
4749
+ export type AppAgentsResponses = {
4583
4750
  /**
4584
- * Imported session info
4751
+ * List of agents
4585
4752
  */
4586
- 200: unknown;
4753
+ 200: Array<Agent>;
4587
4754
  };
4588
- export type KiloClawStatusData = {
4755
+ export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
4756
+ export type AppSkillsData = {
4589
4757
  body?: never;
4590
4758
  path?: never;
4591
4759
  query?: {
4592
4760
  directory?: string;
4593
4761
  workspace?: string;
4594
4762
  };
4595
- url: "/kilo/claw/status";
4763
+ url: "/skill";
4596
4764
  };
4597
- export type KiloClawStatusResponses = {
4765
+ export type AppSkillsResponses = {
4598
4766
  /**
4599
- * Instance status
4767
+ * List of skills
4600
4768
  */
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
- };
4769
+ 200: Array<{
4770
+ name: string;
4771
+ description: string;
4772
+ location: string;
4773
+ content: string;
4774
+ }>;
4616
4775
  };
4617
- export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
4618
- export type KiloClawChatCredentialsData = {
4776
+ export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
4777
+ export type LspStatusData = {
4619
4778
  body?: never;
4620
4779
  path?: never;
4621
4780
  query?: {
4622
4781
  directory?: string;
4623
4782
  workspace?: string;
4624
4783
  };
4625
- url: "/kilo/claw/chat-credentials";
4784
+ url: "/lsp";
4626
4785
  };
4627
- export type KiloClawChatCredentialsResponses = {
4786
+ export type LspStatusResponses = {
4628
4787
  /**
4629
- * Stream Chat credentials or null
4788
+ * LSP server status
4630
4789
  */
4631
- 200: {
4632
- apiKey: string;
4633
- userId: string;
4634
- userToken: string;
4635
- channelId: string;
4636
- } | null;
4790
+ 200: Array<LspStatus>;
4637
4791
  };
4638
- export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
4639
- export type KiloCloudSessionsData = {
4792
+ export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
4793
+ export type FormatterStatusData = {
4640
4794
  body?: never;
4641
4795
  path?: never;
4642
4796
  query?: {
4643
4797
  directory?: string;
4644
4798
  workspace?: string;
4645
- cursor?: string;
4646
- limit?: number;
4647
- gitUrl?: string;
4648
4799
  };
4649
- url: "/kilo/cloud-sessions";
4800
+ url: "/formatter";
4650
4801
  };
4651
- export type KiloCloudSessionsErrors = {
4802
+ export type FormatterStatusResponses = {
4652
4803
  /**
4653
- * Bad request
4804
+ * Formatter status
4654
4805
  */
4655
- 400: BadRequestError;
4806
+ 200: Array<FormatterStatus>;
4656
4807
  };
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;
4808
+ export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
4809
+ export type PermissionAllowEverythingData = {
4810
+ body?: {
4811
+ enable: boolean;
4812
+ requestID?: string;
4813
+ sessionID?: string;
4671
4814
  };
4672
- };
4673
- export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];
4674
- export type FindTextData = {
4675
- body?: never;
4676
4815
  path?: never;
4677
- query: {
4816
+ query?: {
4678
4817
  directory?: string;
4679
4818
  workspace?: string;
4680
- pattern: string;
4681
4819
  };
4682
- url: "/find";
4820
+ url: "/permission/allow-everything";
4683
4821
  };
4684
- export type FindTextResponses = {
4822
+ export type PermissionAllowEverythingErrors = {
4685
4823
  /**
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
- }>;
4824
+ * Bad request
4825
+ */
4826
+ 400: BadRequestError;
4827
+ /**
4828
+ * Not found
4829
+ */
4830
+ 404: NotFoundError;
4705
4831
  };
4706
- export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
4707
- export type FindFilesData = {
4832
+ export type PermissionAllowEverythingError = PermissionAllowEverythingErrors[keyof PermissionAllowEverythingErrors];
4833
+ export type PermissionAllowEverythingResponses = {
4834
+ /**
4835
+ * Success
4836
+ */
4837
+ 200: boolean;
4838
+ };
4839
+ export type PermissionAllowEverythingResponse = PermissionAllowEverythingResponses[keyof PermissionAllowEverythingResponses];
4840
+ export type NetworkListData = {
4708
4841
  body?: never;
4709
4842
  path?: never;
4710
- query: {
4843
+ query?: {
4711
4844
  directory?: string;
4712
4845
  workspace?: string;
4713
- query: string;
4714
- dirs?: "true" | "false";
4715
- type?: "file" | "directory";
4716
- limit?: number;
4717
4846
  };
4718
- url: "/find/file";
4847
+ url: "/network";
4719
4848
  };
4720
- export type FindFilesResponses = {
4849
+ export type NetworkListResponses = {
4721
4850
  /**
4722
- * File paths
4851
+ * List of pending network reconnect requests
4723
4852
  */
4724
- 200: Array<string>;
4853
+ 200: Array<SessionNetworkWait>;
4725
4854
  };
4726
- export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
4727
- export type FindSymbolsData = {
4855
+ export type NetworkListResponse = NetworkListResponses[keyof NetworkListResponses];
4856
+ export type NetworkReplyData = {
4728
4857
  body?: never;
4729
- path?: never;
4730
- query: {
4858
+ path: {
4859
+ requestID: string;
4860
+ };
4861
+ query?: {
4731
4862
  directory?: string;
4732
4863
  workspace?: string;
4733
- query: string;
4734
4864
  };
4735
- url: "/find/symbol";
4865
+ url: "/network/{requestID}/reply";
4736
4866
  };
4737
- export type FindSymbolsResponses = {
4867
+ export type NetworkReplyErrors = {
4738
4868
  /**
4739
- * Symbols
4869
+ * Bad request
4740
4870
  */
4741
- 200: Array<Symbol>;
4871
+ 400: BadRequestError;
4872
+ /**
4873
+ * Not found
4874
+ */
4875
+ 404: NotFoundError;
4742
4876
  };
4743
- export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
4744
- export type FileListData = {
4877
+ export type NetworkReplyError = NetworkReplyErrors[keyof NetworkReplyErrors];
4878
+ export type NetworkReplyResponses = {
4879
+ /**
4880
+ * Network wait resumed successfully
4881
+ */
4882
+ 200: boolean;
4883
+ };
4884
+ export type NetworkReplyResponse = NetworkReplyResponses[keyof NetworkReplyResponses];
4885
+ export type NetworkRejectData = {
4745
4886
  body?: never;
4746
- path?: never;
4747
- query: {
4887
+ path: {
4888
+ requestID: string;
4889
+ };
4890
+ query?: {
4748
4891
  directory?: string;
4749
4892
  workspace?: string;
4750
- path: string;
4751
4893
  };
4752
- url: "/file";
4894
+ url: "/network/{requestID}/reject";
4753
4895
  };
4754
- export type FileListResponses = {
4896
+ export type NetworkRejectErrors = {
4755
4897
  /**
4756
- * Files and directories
4898
+ * Bad request
4757
4899
  */
4758
- 200: Array<FileNode>;
4900
+ 400: BadRequestError;
4901
+ /**
4902
+ * Not found
4903
+ */
4904
+ 404: NotFoundError;
4759
4905
  };
4760
- export type FileListResponse = FileListResponses[keyof FileListResponses];
4761
- export type FileReadData = {
4762
- body?: never;
4906
+ export type NetworkRejectError = NetworkRejectErrors[keyof NetworkRejectErrors];
4907
+ export type NetworkRejectResponses = {
4908
+ /**
4909
+ * Network wait rejected successfully
4910
+ */
4911
+ 200: boolean;
4912
+ };
4913
+ export type NetworkRejectResponse = NetworkRejectResponses[keyof NetworkRejectResponses];
4914
+ export type TelemetryCaptureData = {
4915
+ body?: {
4916
+ /**
4917
+ * Event name
4918
+ */
4919
+ event: string;
4920
+ /**
4921
+ * Event properties
4922
+ */
4923
+ properties?: {
4924
+ [key: string]: unknown;
4925
+ };
4926
+ };
4763
4927
  path?: never;
4764
- query: {
4928
+ query?: {
4765
4929
  directory?: string;
4766
4930
  workspace?: string;
4767
- path: string;
4768
4931
  };
4769
- url: "/file/content";
4932
+ url: "/telemetry/capture";
4770
4933
  };
4771
- export type FileReadResponses = {
4934
+ export type TelemetryCaptureErrors = {
4772
4935
  /**
4773
- * File content
4936
+ * Bad request
4774
4937
  */
4775
- 200: FileContent;
4938
+ 400: BadRequestError;
4776
4939
  };
4777
- export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
4778
- export type FileStatusData = {
4940
+ export type TelemetryCaptureError = TelemetryCaptureErrors[keyof TelemetryCaptureErrors];
4941
+ export type TelemetryCaptureResponses = {
4942
+ /**
4943
+ * Event captured
4944
+ */
4945
+ 200: boolean;
4946
+ };
4947
+ export type TelemetryCaptureResponse = TelemetryCaptureResponses[keyof TelemetryCaptureResponses];
4948
+ export type RemoteEnableData = {
4779
4949
  body?: never;
4780
4950
  path?: never;
4781
4951
  query?: {
4782
4952
  directory?: string;
4783
4953
  workspace?: string;
4784
4954
  };
4785
- url: "/file/status";
4955
+ url: "/remote/enable";
4786
4956
  };
4787
- export type FileStatusResponses = {
4957
+ export type RemoteEnableResponses = {
4788
4958
  /**
4789
- * File status
4959
+ * Remote connection enabled
4790
4960
  */
4791
- 200: Array<File>;
4961
+ 200: {
4962
+ enabled: boolean;
4963
+ connected: boolean;
4964
+ };
4792
4965
  };
4793
- export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
4794
- export type McpStatusData = {
4966
+ export type RemoteEnableResponse = RemoteEnableResponses[keyof RemoteEnableResponses];
4967
+ export type RemoteDisableData = {
4795
4968
  body?: never;
4796
4969
  path?: never;
4797
4970
  query?: {
4798
4971
  directory?: string;
4799
4972
  workspace?: string;
4800
4973
  };
4801
- url: "/mcp";
4974
+ url: "/remote/disable";
4802
4975
  };
4803
- export type McpStatusResponses = {
4976
+ export type RemoteDisableResponses = {
4804
4977
  /**
4805
- * MCP server status
4978
+ * Remote connection disabled
4806
4979
  */
4807
4980
  200: {
4808
- [key: string]: McpStatus;
4981
+ enabled: boolean;
4982
+ connected: boolean;
4809
4983
  };
4810
4984
  };
4811
- export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
4812
- export type McpAddData = {
4813
- body?: {
4814
- name: string;
4815
- config: McpLocalConfig | McpRemoteConfig;
4816
- };
4985
+ export type RemoteDisableResponse = RemoteDisableResponses[keyof RemoteDisableResponses];
4986
+ export type RemoteStatusData = {
4987
+ body?: never;
4817
4988
  path?: never;
4818
4989
  query?: {
4819
4990
  directory?: string;
4820
4991
  workspace?: string;
4821
4992
  };
4822
- url: "/mcp";
4823
- };
4824
- export type McpAddErrors = {
4825
- /**
4826
- * Bad request
4827
- */
4828
- 400: BadRequestError;
4993
+ url: "/remote/status";
4829
4994
  };
4830
- export type McpAddError = McpAddErrors[keyof McpAddErrors];
4831
- export type McpAddResponses = {
4995
+ export type RemoteStatusResponses = {
4832
4996
  /**
4833
- * MCP server added successfully
4997
+ * Remote connection status
4834
4998
  */
4835
4999
  200: {
4836
- [key: string]: McpStatus;
5000
+ enabled: boolean;
5001
+ connected: boolean;
4837
5002
  };
4838
5003
  };
4839
- export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
4840
- export type McpAuthRemoveData = {
4841
- body?: never;
4842
- path: {
4843
- name: string;
5004
+ export type RemoteStatusResponse = RemoteStatusResponses[keyof RemoteStatusResponses];
5005
+ export type CommitMessageGenerateData = {
5006
+ body?: {
5007
+ /**
5008
+ * Workspace/repo path
5009
+ */
5010
+ path: string;
5011
+ /**
5012
+ * Optional subset of files to include
5013
+ */
5014
+ selectedFiles?: Array<string>;
5015
+ /**
5016
+ * Previously generated message — triggers regeneration with a different result
5017
+ */
5018
+ previousMessage?: string;
4844
5019
  };
5020
+ path?: never;
4845
5021
  query?: {
4846
5022
  directory?: string;
4847
5023
  workspace?: string;
4848
5024
  };
4849
- url: "/mcp/{name}/auth";
5025
+ url: "/commit-message";
4850
5026
  };
4851
- export type McpAuthRemoveErrors = {
5027
+ export type CommitMessageGenerateErrors = {
4852
5028
  /**
4853
- * Not found
5029
+ * Bad request
4854
5030
  */
4855
- 404: NotFoundError;
5031
+ 400: BadRequestError;
4856
5032
  };
4857
- export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4858
- export type McpAuthRemoveResponses = {
5033
+ export type CommitMessageGenerateError = CommitMessageGenerateErrors[keyof CommitMessageGenerateErrors];
5034
+ export type CommitMessageGenerateResponses = {
4859
5035
  /**
4860
- * OAuth credentials removed
5036
+ * Generated commit message
4861
5037
  */
4862
5038
  200: {
4863
- success: true;
5039
+ message: string;
4864
5040
  };
4865
5041
  };
4866
- export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
4867
- export type McpAuthStartData = {
4868
- body?: never;
4869
- path: {
4870
- name: string;
5042
+ export type CommitMessageGenerateResponse = CommitMessageGenerateResponses[keyof CommitMessageGenerateResponses];
5043
+ export type EnhancePromptEnhanceData = {
5044
+ body?: {
5045
+ /**
5046
+ * The user's draft prompt to enhance
5047
+ */
5048
+ text: string;
4871
5049
  };
5050
+ path?: never;
4872
5051
  query?: {
4873
5052
  directory?: string;
4874
5053
  workspace?: string;
4875
5054
  };
4876
- url: "/mcp/{name}/auth";
5055
+ url: "/enhance-prompt";
4877
5056
  };
4878
- export type McpAuthStartErrors = {
5057
+ export type EnhancePromptEnhanceErrors = {
4879
5058
  /**
4880
5059
  * Bad request
4881
5060
  */
4882
5061
  400: BadRequestError;
4883
- /**
4884
- * Not found
4885
- */
4886
- 404: NotFoundError;
4887
5062
  };
4888
- export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4889
- export type McpAuthStartResponses = {
5063
+ export type EnhancePromptEnhanceError = EnhancePromptEnhanceErrors[keyof EnhancePromptEnhanceErrors];
5064
+ export type EnhancePromptEnhanceResponses = {
4890
5065
  /**
4891
- * OAuth flow started
5066
+ * Enhanced prompt text
4892
5067
  */
4893
5068
  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;
5069
+ text: string;
4907
5070
  };
4908
- path: {
4909
- name: string;
5071
+ };
5072
+ export type EnhancePromptEnhanceResponse = EnhancePromptEnhanceResponses[keyof EnhancePromptEnhanceResponses];
5073
+ export type KilocodeSessionImportProjectData = {
5074
+ body?: {
5075
+ id: string;
5076
+ worktree: string;
5077
+ vcs?: string;
5078
+ name?: string;
5079
+ iconUrl?: string;
5080
+ iconColor?: string;
5081
+ timeCreated: number;
5082
+ timeUpdated: number;
5083
+ timeInitialized?: number;
5084
+ sandboxes: Array<string>;
5085
+ commands?: {
5086
+ start?: string;
5087
+ };
4910
5088
  };
5089
+ path?: never;
4911
5090
  query?: {
4912
5091
  directory?: string;
4913
5092
  workspace?: string;
4914
5093
  };
4915
- url: "/mcp/{name}/auth/callback";
5094
+ url: "/kilocode/session-import/project";
4916
5095
  };
4917
- export type McpAuthCallbackErrors = {
5096
+ export type KilocodeSessionImportProjectErrors = {
4918
5097
  /**
4919
5098
  * Bad request
4920
5099
  */
4921
5100
  400: BadRequestError;
4922
- /**
4923
- * Not found
4924
- */
4925
- 404: NotFoundError;
4926
5101
  };
4927
- export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4928
- export type McpAuthCallbackResponses = {
5102
+ export type KilocodeSessionImportProjectError = KilocodeSessionImportProjectErrors[keyof KilocodeSessionImportProjectErrors];
5103
+ export type KilocodeSessionImportProjectResponses = {
4929
5104
  /**
4930
- * OAuth authentication completed
5105
+ * Project import result
4931
5106
  */
4932
- 200: McpStatus;
5107
+ 200: {
5108
+ ok: boolean;
5109
+ id: string;
5110
+ skipped?: boolean;
5111
+ };
4933
5112
  };
4934
- export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
4935
- export type McpAuthAuthenticateData = {
4936
- body?: never;
4937
- path: {
4938
- name: string;
5113
+ export type KilocodeSessionImportProjectResponse = KilocodeSessionImportProjectResponses[keyof KilocodeSessionImportProjectResponses];
5114
+ export type KilocodeSessionImportSessionData = {
5115
+ body?: {
5116
+ id: string;
5117
+ projectID: string;
5118
+ force?: boolean;
5119
+ workspaceID?: string;
5120
+ parentID?: string;
5121
+ slug: string;
5122
+ directory: string;
5123
+ title: string;
5124
+ version: string;
5125
+ shareURL?: string;
5126
+ summary?: {
5127
+ additions: number;
5128
+ deletions: number;
5129
+ files: number;
5130
+ diffs?: Array<{
5131
+ [key: string]: unknown;
5132
+ }>;
5133
+ };
5134
+ revert?: {
5135
+ messageID: string;
5136
+ partID?: string;
5137
+ snapshot?: string;
5138
+ diff?: string;
5139
+ };
5140
+ permission?: {
5141
+ [key: string]: unknown;
5142
+ };
5143
+ timeCreated: number;
5144
+ timeUpdated: number;
5145
+ timeCompacting?: number;
5146
+ timeArchived?: number;
4939
5147
  };
5148
+ path?: never;
4940
5149
  query?: {
4941
5150
  directory?: string;
4942
5151
  workspace?: string;
4943
5152
  };
4944
- url: "/mcp/{name}/auth/authenticate";
5153
+ url: "/kilocode/session-import/session";
4945
5154
  };
4946
- export type McpAuthAuthenticateErrors = {
5155
+ export type KilocodeSessionImportSessionErrors = {
4947
5156
  /**
4948
5157
  * Bad request
4949
5158
  */
4950
5159
  400: BadRequestError;
4951
- /**
4952
- * Not found
4953
- */
4954
- 404: NotFoundError;
4955
5160
  };
4956
- export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4957
- export type McpAuthAuthenticateResponses = {
5161
+ export type KilocodeSessionImportSessionError = KilocodeSessionImportSessionErrors[keyof KilocodeSessionImportSessionErrors];
5162
+ export type KilocodeSessionImportSessionResponses = {
4958
5163
  /**
4959
- * OAuth authentication completed
5164
+ * Session import result
4960
5165
  */
4961
- 200: McpStatus;
5166
+ 200: {
5167
+ ok: boolean;
5168
+ id: string;
5169
+ skipped?: boolean;
5170
+ };
4962
5171
  };
4963
- export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
4964
- export type McpConnectData = {
4965
- body?: never;
4966
- path: {
4967
- name: string;
5172
+ export type KilocodeSessionImportSessionResponse = KilocodeSessionImportSessionResponses[keyof KilocodeSessionImportSessionResponses];
5173
+ export type KilocodeSessionImportMessageData = {
5174
+ body?: {
5175
+ id: string;
5176
+ sessionID: string;
5177
+ timeCreated: number;
5178
+ data: {
5179
+ role: "user";
5180
+ time: {
5181
+ created: number;
5182
+ };
5183
+ agent: string;
5184
+ model: {
5185
+ providerID: string;
5186
+ modelID: string;
5187
+ };
5188
+ tools?: {
5189
+ [key: string]: boolean;
5190
+ };
5191
+ } | {
5192
+ role: "assistant";
5193
+ time: {
5194
+ created: number;
5195
+ completed?: number;
5196
+ };
5197
+ parentID: string;
5198
+ modelID: string;
5199
+ providerID: string;
5200
+ mode: string;
5201
+ agent: string;
5202
+ path: {
5203
+ cwd: string;
5204
+ root: string;
5205
+ };
5206
+ summary?: boolean;
5207
+ cost: number;
5208
+ tokens: {
5209
+ total?: number;
5210
+ input: number;
5211
+ output: number;
5212
+ reasoning: number;
5213
+ cache: {
5214
+ read: number;
5215
+ write: number;
5216
+ };
5217
+ };
5218
+ structured?: unknown;
5219
+ variant?: string;
5220
+ finish?: string;
5221
+ };
4968
5222
  };
5223
+ path?: never;
4969
5224
  query?: {
4970
5225
  directory?: string;
4971
5226
  workspace?: string;
4972
5227
  };
4973
- url: "/mcp/{name}/connect";
5228
+ url: "/kilocode/session-import/message";
4974
5229
  };
4975
- export type McpConnectResponses = {
5230
+ export type KilocodeSessionImportMessageErrors = {
4976
5231
  /**
4977
- * MCP server connected successfully
5232
+ * Bad request
4978
5233
  */
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";
5234
+ 400: BadRequestError;
4992
5235
  };
4993
- export type McpDisconnectResponses = {
5236
+ export type KilocodeSessionImportMessageError = KilocodeSessionImportMessageErrors[keyof KilocodeSessionImportMessageErrors];
5237
+ export type KilocodeSessionImportMessageResponses = {
4994
5238
  /**
4995
- * MCP server disconnected successfully
5239
+ * Message import result
4996
5240
  */
4997
- 200: boolean;
5241
+ 200: {
5242
+ ok: boolean;
5243
+ id: string;
5244
+ skipped?: boolean;
5245
+ };
4998
5246
  };
4999
- export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
5000
- export type TuiAppendPromptData = {
5247
+ export type KilocodeSessionImportMessageResponse = KilocodeSessionImportMessageResponses[keyof KilocodeSessionImportMessageResponses];
5248
+ export type KilocodeSessionImportPartData = {
5001
5249
  body?: {
5002
- text: string;
5250
+ id: string;
5251
+ messageID: string;
5252
+ sessionID: string;
5253
+ timeCreated?: number;
5254
+ data: {
5255
+ type: "text";
5256
+ text: string;
5257
+ synthetic?: boolean;
5258
+ ignored?: boolean;
5259
+ time?: {
5260
+ start: number;
5261
+ end?: number;
5262
+ };
5263
+ metadata?: {
5264
+ [key: string]: unknown;
5265
+ };
5266
+ } | {
5267
+ type: "reasoning";
5268
+ text: string;
5269
+ metadata?: {
5270
+ [key: string]: unknown;
5271
+ };
5272
+ time: {
5273
+ start: number;
5274
+ end?: number;
5275
+ };
5276
+ } | {
5277
+ type: "tool";
5278
+ callID: string;
5279
+ tool: string;
5280
+ state: {
5281
+ status: "pending";
5282
+ input: {
5283
+ [key: string]: unknown;
5284
+ };
5285
+ raw: string;
5286
+ } | {
5287
+ status: "running";
5288
+ input: {
5289
+ [key: string]: unknown;
5290
+ };
5291
+ title?: string;
5292
+ metadata?: {
5293
+ [key: string]: unknown;
5294
+ };
5295
+ time: {
5296
+ start: number;
5297
+ };
5298
+ } | {
5299
+ status: "completed";
5300
+ input: {
5301
+ [key: string]: unknown;
5302
+ };
5303
+ output: string;
5304
+ title: string;
5305
+ metadata: {
5306
+ [key: string]: unknown;
5307
+ };
5308
+ time: {
5309
+ start: number;
5310
+ end: number;
5311
+ compacted?: number;
5312
+ };
5313
+ } | {
5314
+ status: "error";
5315
+ input: {
5316
+ [key: string]: unknown;
5317
+ };
5318
+ error: string;
5319
+ metadata?: {
5320
+ [key: string]: unknown;
5321
+ };
5322
+ time: {
5323
+ start: number;
5324
+ end: number;
5325
+ };
5326
+ };
5327
+ metadata?: {
5328
+ [key: string]: unknown;
5329
+ };
5330
+ };
5003
5331
  };
5004
5332
  path?: never;
5005
5333
  query?: {
5006
5334
  directory?: string;
5007
5335
  workspace?: string;
5008
5336
  };
5009
- url: "/tui/append-prompt";
5337
+ url: "/kilocode/session-import/part";
5010
5338
  };
5011
- export type TuiAppendPromptErrors = {
5339
+ export type KilocodeSessionImportPartErrors = {
5012
5340
  /**
5013
5341
  * Bad request
5014
5342
  */
5015
5343
  400: BadRequestError;
5016
5344
  };
5017
- export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
5018
- export type TuiAppendPromptResponses = {
5345
+ export type KilocodeSessionImportPartError = KilocodeSessionImportPartErrors[keyof KilocodeSessionImportPartErrors];
5346
+ export type KilocodeSessionImportPartResponses = {
5019
5347
  /**
5020
- * Prompt processed successfully
5348
+ * Part import result
5021
5349
  */
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;
5350
+ 200: {
5351
+ ok: boolean;
5352
+ id: string;
5353
+ skipped?: boolean;
5031
5354
  };
5032
- url: "/tui/open-help";
5033
- };
5034
- export type TuiOpenHelpResponses = {
5035
- /**
5036
- * Help dialog opened successfully
5037
- */
5038
- 200: boolean;
5039
5355
  };
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;
5356
+ export type KilocodeSessionImportPartResponse = KilocodeSessionImportPartResponses[keyof KilocodeSessionImportPartResponses];
5357
+ export type KilocodeRemoveSkillData = {
5358
+ body?: {
5359
+ location: string;
5047
5360
  };
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
5361
  path?: never;
5060
5362
  query?: {
5061
5363
  directory?: string;
5062
5364
  workspace?: string;
5063
5365
  };
5064
- url: "/tui/open-themes";
5366
+ url: "/kilocode/skill/remove";
5065
5367
  };
5066
- export type TuiOpenThemesResponses = {
5368
+ export type KilocodeRemoveSkillErrors = {
5067
5369
  /**
5068
- * Theme dialog opened successfully
5370
+ * Bad request
5069
5371
  */
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";
5372
+ 400: BadRequestError;
5081
5373
  };
5082
- export type TuiOpenModelsResponses = {
5374
+ export type KilocodeRemoveSkillError = KilocodeRemoveSkillErrors[keyof KilocodeRemoveSkillErrors];
5375
+ export type KilocodeRemoveSkillResponses = {
5083
5376
  /**
5084
- * Model dialog opened successfully
5377
+ * Skill removed
5085
5378
  */
5086
5379
  200: boolean;
5087
5380
  };
5088
- export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
5089
- export type TuiSubmitPromptData = {
5090
- body?: never;
5381
+ export type KilocodeRemoveSkillResponse = KilocodeRemoveSkillResponses[keyof KilocodeRemoveSkillResponses];
5382
+ export type KilocodeRemoveAgentData = {
5383
+ body?: {
5384
+ name: string;
5385
+ };
5091
5386
  path?: never;
5092
5387
  query?: {
5093
5388
  directory?: string;
5094
5389
  workspace?: string;
5095
5390
  };
5096
- url: "/tui/submit-prompt";
5391
+ url: "/kilocode/agent/remove";
5097
5392
  };
5098
- export type TuiSubmitPromptResponses = {
5393
+ export type KilocodeRemoveAgentErrors = {
5099
5394
  /**
5100
- * Prompt submitted successfully
5395
+ * Bad request
5101
5396
  */
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";
5397
+ 400: BadRequestError;
5113
5398
  };
5114
- export type TuiClearPromptResponses = {
5399
+ export type KilocodeRemoveAgentError = KilocodeRemoveAgentErrors[keyof KilocodeRemoveAgentErrors];
5400
+ export type KilocodeRemoveAgentResponses = {
5115
5401
  /**
5116
- * Prompt cleared successfully
5402
+ * Agent removed
5117
5403
  */
5118
5404
  200: boolean;
5119
5405
  };
5120
- export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
5121
- export type TuiExecuteCommandData = {
5122
- body?: {
5123
- command: string;
5124
- };
5406
+ export type KilocodeRemoveAgentResponse = KilocodeRemoveAgentResponses[keyof KilocodeRemoveAgentResponses];
5407
+ export type KiloProfileData = {
5408
+ body?: never;
5125
5409
  path?: never;
5126
5410
  query?: {
5127
5411
  directory?: string;
5128
5412
  workspace?: string;
5129
5413
  };
5130
- url: "/tui/execute-command";
5414
+ url: "/kilo/profile";
5131
5415
  };
5132
- export type TuiExecuteCommandErrors = {
5416
+ export type KiloProfileErrors = {
5133
5417
  /**
5134
5418
  * Bad request
5135
5419
  */
5136
5420
  400: BadRequestError;
5137
5421
  };
5138
- export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
5139
- export type TuiExecuteCommandResponses = {
5422
+ export type KiloProfileError = KiloProfileErrors[keyof KiloProfileErrors];
5423
+ export type KiloProfileResponses = {
5140
5424
  /**
5141
- * Command executed successfully
5425
+ * Profile data
5142
5426
  */
5143
- 200: boolean;
5427
+ 200: {
5428
+ profile: {
5429
+ email: string;
5430
+ name?: string;
5431
+ organizations?: Array<{
5432
+ id: string;
5433
+ name: string;
5434
+ role: string;
5435
+ }>;
5436
+ };
5437
+ balance: {
5438
+ balance: number;
5439
+ } | null;
5440
+ currentOrgId: string | null;
5441
+ };
5144
5442
  };
5145
- export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
5146
- export type TuiShowToastData = {
5443
+ export type KiloProfileResponse = KiloProfileResponses[keyof KiloProfileResponses];
5444
+ export type KiloOrganizationSetData = {
5147
5445
  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;
5446
+ organizationId: string | null;
5160
5447
  };
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
5448
  path?: never;
5173
5449
  query?: {
5174
5450
  directory?: string;
5175
5451
  workspace?: string;
5176
5452
  };
5177
- url: "/tui/publish";
5453
+ url: "/kilo/organization";
5178
5454
  };
5179
- export type TuiPublishErrors = {
5455
+ export type KiloOrganizationSetErrors = {
5180
5456
  /**
5181
5457
  * Bad request
5182
5458
  */
5183
5459
  400: BadRequestError;
5184
5460
  };
5185
- export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
5186
- export type TuiPublishResponses = {
5461
+ export type KiloOrganizationSetError = KiloOrganizationSetErrors[keyof KiloOrganizationSetErrors];
5462
+ export type KiloOrganizationSetResponses = {
5187
5463
  /**
5188
- * Event published successfully
5464
+ * Organization updated successfully
5189
5465
  */
5190
5466
  200: boolean;
5191
5467
  };
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
- };
5468
+ export type KiloOrganizationSetResponse = KiloOrganizationSetResponses[keyof KiloOrganizationSetResponses];
5469
+ export type KiloModesData = {
5470
+ body?: never;
5200
5471
  path?: never;
5201
5472
  query?: {
5202
5473
  directory?: string;
5203
5474
  workspace?: string;
5204
5475
  };
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;
5476
+ url: "/kilo/modes";
5216
5477
  };
5217
- export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors];
5218
- export type TuiSelectSessionResponses = {
5478
+ export type KiloModesResponses = {
5219
5479
  /**
5220
- * Session selected successfully
5480
+ * Organization modes list
5221
5481
  */
5222
- 200: boolean;
5482
+ 200: {
5483
+ modes: Array<{
5484
+ id: string;
5485
+ organization_id: string;
5486
+ name: string;
5487
+ slug: string;
5488
+ created_by: string;
5489
+ created_at: string;
5490
+ updated_at: string;
5491
+ config: {
5492
+ roleDefinition?: string;
5493
+ whenToUse?: string;
5494
+ description?: string;
5495
+ customInstructions?: string;
5496
+ groups?: Array<string | [
5497
+ string,
5498
+ {
5499
+ fileRegex?: string;
5500
+ description?: string;
5501
+ }
5502
+ ]>;
5503
+ };
5504
+ }>;
5505
+ };
5223
5506
  };
5224
- export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses];
5225
- export type TuiControlNextData = {
5226
- body?: never;
5507
+ export type KiloModesResponse = KiloModesResponses[keyof KiloModesResponses];
5508
+ export type KiloFimData = {
5509
+ body?: {
5510
+ prefix: string;
5511
+ suffix: string;
5512
+ model?: string;
5513
+ maxTokens?: number;
5514
+ temperature?: number;
5515
+ };
5227
5516
  path?: never;
5228
5517
  query?: {
5229
5518
  directory?: string;
5230
5519
  workspace?: string;
5231
5520
  };
5232
- url: "/tui/control/next";
5521
+ url: "/kilo/fim";
5233
5522
  };
5234
- export type TuiControlNextResponses = {
5523
+ export type KiloFimErrors = {
5235
5524
  /**
5236
- * Next TUI request
5525
+ * Bad request
5237
5526
  */
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";
5527
+ 400: BadRequestError;
5252
5528
  };
5253
- export type TuiControlResponseResponses = {
5529
+ export type KiloFimError = KiloFimErrors[keyof KiloFimErrors];
5530
+ export type KiloFimResponses = {
5254
5531
  /**
5255
- * Response submitted successfully
5532
+ * Streaming FIM completion response
5256
5533
  */
5257
- 200: boolean;
5534
+ 200: {
5535
+ choices?: Array<{
5536
+ delta?: {
5537
+ content?: string;
5538
+ };
5539
+ }>;
5540
+ usage?: {
5541
+ prompt_tokens?: number;
5542
+ completion_tokens?: number;
5543
+ };
5544
+ cost?: number;
5545
+ };
5258
5546
  };
5259
- export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
5260
- export type InstanceDisposeData = {
5547
+ export type KiloFimResponse = KiloFimResponses[keyof KiloFimResponses];
5548
+ export type KiloNotificationsData = {
5261
5549
  body?: never;
5262
5550
  path?: never;
5263
5551
  query?: {
5264
5552
  directory?: string;
5265
5553
  workspace?: string;
5266
5554
  };
5267
- url: "/instance/dispose";
5555
+ url: "/kilo/notifications";
5268
5556
  };
5269
- export type InstanceDisposeResponses = {
5557
+ export type KiloNotificationsErrors = {
5270
5558
  /**
5271
- * Instance disposed
5559
+ * Bad request
5272
5560
  */
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";
5561
+ 400: BadRequestError;
5284
5562
  };
5285
- export type PathGetResponses = {
5563
+ export type KiloNotificationsError = KiloNotificationsErrors[keyof KiloNotificationsErrors];
5564
+ export type KiloNotificationsResponses = {
5286
5565
  /**
5287
- * Path
5566
+ * Notifications list
5288
5567
  */
5289
- 200: Path;
5568
+ 200: Array<{
5569
+ id: string;
5570
+ title: string;
5571
+ message: string;
5572
+ action?: {
5573
+ actionText: string;
5574
+ actionURL: string;
5575
+ };
5576
+ showIn?: Array<string>;
5577
+ suggestModelId?: string;
5578
+ }>;
5290
5579
  };
5291
- export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
5292
- export type VcsGetData = {
5580
+ export type KiloNotificationsResponse = KiloNotificationsResponses[keyof KiloNotificationsResponses];
5581
+ export type KiloCloudSessionGetData = {
5293
5582
  body?: never;
5294
- path?: never;
5583
+ path: {
5584
+ id: string;
5585
+ };
5295
5586
  query?: {
5296
5587
  directory?: string;
5297
5588
  workspace?: string;
5298
5589
  };
5299
- url: "/vcs";
5590
+ url: "/kilo/cloud/session/{id}";
5300
5591
  };
5301
- export type VcsGetResponses = {
5592
+ export type KiloCloudSessionGetErrors = {
5302
5593
  /**
5303
- * VCS info
5594
+ * Not found
5304
5595
  */
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";
5596
+ 404: NotFoundError;
5316
5597
  };
5317
- export type CommandListResponses = {
5598
+ export type KiloCloudSessionGetError = KiloCloudSessionGetErrors[keyof KiloCloudSessionGetErrors];
5599
+ export type KiloCloudSessionGetResponses = {
5318
5600
  /**
5319
- * List of commands
5601
+ * Cloud session data
5320
5602
  */
5321
- 200: Array<Command>;
5603
+ 200: unknown;
5322
5604
  };
5323
- export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
5324
- export type AppLogData = {
5605
+ export type KiloCloudSessionImportData = {
5325
5606
  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
- };
5607
+ sessionId: string;
5344
5608
  };
5345
5609
  path?: never;
5346
5610
  query?: {
5347
5611
  directory?: string;
5348
5612
  workspace?: string;
5349
5613
  };
5350
- url: "/log";
5614
+ url: "/kilo/cloud/session/import";
5351
5615
  };
5352
- export type AppLogErrors = {
5616
+ export type KiloCloudSessionImportErrors = {
5353
5617
  /**
5354
5618
  * Bad request
5355
5619
  */
5356
5620
  400: BadRequestError;
5357
- };
5358
- export type AppLogError = AppLogErrors[keyof AppLogErrors];
5359
- export type AppLogResponses = {
5360
5621
  /**
5361
- * Log entry written successfully
5622
+ * Not found
5362
5623
  */
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";
5624
+ 404: NotFoundError;
5374
5625
  };
5375
- export type AppAgentsResponses = {
5626
+ export type KiloCloudSessionImportError = KiloCloudSessionImportErrors[keyof KiloCloudSessionImportErrors];
5627
+ export type KiloCloudSessionImportResponses = {
5376
5628
  /**
5377
- * List of agents
5629
+ * Imported session info
5378
5630
  */
5379
- 200: Array<Agent>;
5631
+ 200: unknown;
5380
5632
  };
5381
- export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
5382
- export type AppSkillsData = {
5633
+ export type KiloClawStatusData = {
5383
5634
  body?: never;
5384
5635
  path?: never;
5385
5636
  query?: {
5386
5637
  directory?: string;
5387
5638
  workspace?: string;
5388
5639
  };
5389
- url: "/skill";
5640
+ url: "/kilo/claw/status";
5390
5641
  };
5391
- export type AppSkillsResponses = {
5642
+ export type KiloClawStatusResponses = {
5392
5643
  /**
5393
- * List of skills
5644
+ * Instance status
5394
5645
  */
5395
- 200: Array<{
5396
- name: string;
5397
- description: string;
5398
- location: string;
5399
- content: string;
5400
- }>;
5646
+ 200: {
5647
+ status: "provisioned" | "starting" | "restarting" | "running" | "stopped" | "destroying" | null;
5648
+ sandboxId?: string;
5649
+ flyRegion?: string;
5650
+ machineSize?: {
5651
+ cpus: number;
5652
+ memory_mb: number;
5653
+ };
5654
+ openclawVersion?: string | null;
5655
+ lastStartedAt?: string | null;
5656
+ lastStoppedAt?: string | null;
5657
+ channelCount?: number;
5658
+ secretCount?: number;
5659
+ userId?: string;
5660
+ };
5401
5661
  };
5402
- export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
5403
- export type LspStatusData = {
5662
+ export type KiloClawStatusResponse = KiloClawStatusResponses[keyof KiloClawStatusResponses];
5663
+ export type KiloClawChatCredentialsData = {
5404
5664
  body?: never;
5405
5665
  path?: never;
5406
5666
  query?: {
5407
5667
  directory?: string;
5408
5668
  workspace?: string;
5409
5669
  };
5410
- url: "/lsp";
5670
+ url: "/kilo/claw/chat-credentials";
5411
5671
  };
5412
- export type LspStatusResponses = {
5672
+ export type KiloClawChatCredentialsResponses = {
5413
5673
  /**
5414
- * LSP server status
5674
+ * Stream Chat credentials or null
5415
5675
  */
5416
- 200: Array<LspStatus>;
5676
+ 200: {
5677
+ apiKey: string;
5678
+ userId: string;
5679
+ userToken: string;
5680
+ channelId: string;
5681
+ } | null;
5417
5682
  };
5418
- export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
5419
- export type FormatterStatusData = {
5683
+ export type KiloClawChatCredentialsResponse = KiloClawChatCredentialsResponses[keyof KiloClawChatCredentialsResponses];
5684
+ export type KiloCloudSessionsData = {
5420
5685
  body?: never;
5421
5686
  path?: never;
5422
5687
  query?: {
5423
5688
  directory?: string;
5424
5689
  workspace?: string;
5690
+ cursor?: string;
5691
+ limit?: number;
5692
+ gitUrl?: string;
5425
5693
  };
5426
- url: "/formatter";
5694
+ url: "/kilo/cloud-sessions";
5427
5695
  };
5428
- export type FormatterStatusResponses = {
5696
+ export type KiloCloudSessionsErrors = {
5429
5697
  /**
5430
- * Formatter status
5698
+ * Bad request
5431
5699
  */
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";
5700
+ 400: BadRequestError;
5443
5701
  };
5444
- export type EventSubscribeResponses = {
5702
+ export type KiloCloudSessionsError = KiloCloudSessionsErrors[keyof KiloCloudSessionsErrors];
5703
+ export type KiloCloudSessionsResponses = {
5445
5704
  /**
5446
- * Event stream
5705
+ * Cloud sessions list
5447
5706
  */
5448
- 200: Event;
5707
+ 200: {
5708
+ cliSessions: Array<{
5709
+ session_id: string;
5710
+ title: string | null;
5711
+ created_at: string;
5712
+ updated_at: string;
5713
+ version: number;
5714
+ }>;
5715
+ nextCursor: string | null;
5716
+ };
5449
5717
  };
5450
- export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
5718
+ export type KiloCloudSessionsResponse = KiloCloudSessionsResponses[keyof KiloCloudSessionsResponses];