@kilocode/sdk 7.0.47 → 7.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +127 -93
- package/dist/v2/gen/sdk.gen.js +216 -129
- package/dist/v2/gen/types.gen.d.ts +172 -89
- package/package.json +7 -28
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -25,7 +25,7 @@ export class Config extends HeyApiClient {
|
|
|
25
25
|
/**
|
|
26
26
|
* Get global configuration
|
|
27
27
|
*
|
|
28
|
-
* Retrieve the current global
|
|
28
|
+
* Retrieve the current global Kilo configuration settings and preferences.
|
|
29
29
|
*/
|
|
30
30
|
get(options) {
|
|
31
31
|
return (options?.client ?? this.client).get({
|
|
@@ -36,7 +36,7 @@ export class Config extends HeyApiClient {
|
|
|
36
36
|
/**
|
|
37
37
|
* Update global configuration
|
|
38
38
|
*
|
|
39
|
-
* Update global
|
|
39
|
+
* Update global Kilo configuration settings and preferences.
|
|
40
40
|
*/
|
|
41
41
|
update(parameters, options) {
|
|
42
42
|
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
|
|
@@ -56,7 +56,7 @@ export class Global extends HeyApiClient {
|
|
|
56
56
|
/**
|
|
57
57
|
* Get health
|
|
58
58
|
*
|
|
59
|
-
* Get health information about the
|
|
59
|
+
* Get health information about the Kilo server.
|
|
60
60
|
*/
|
|
61
61
|
health(options) {
|
|
62
62
|
return (options?.client ?? this.client).get({
|
|
@@ -67,7 +67,7 @@ export class Global extends HeyApiClient {
|
|
|
67
67
|
/**
|
|
68
68
|
* Get global events
|
|
69
69
|
*
|
|
70
|
-
* Subscribe to global events from the
|
|
70
|
+
* Subscribe to global events from the Kilo system using server-sent events.
|
|
71
71
|
*/
|
|
72
72
|
event(options) {
|
|
73
73
|
return (options?.client ?? this.client).sse.get({
|
|
@@ -78,7 +78,7 @@ export class Global extends HeyApiClient {
|
|
|
78
78
|
/**
|
|
79
79
|
* Dispose instance
|
|
80
80
|
*
|
|
81
|
-
* Clean up and dispose all
|
|
81
|
+
* Clean up and dispose all Kilo instances, releasing all resources.
|
|
82
82
|
*/
|
|
83
83
|
dispose(options) {
|
|
84
84
|
return (options?.client ?? this.client).post({
|
|
@@ -135,7 +135,7 @@ export class Project extends HeyApiClient {
|
|
|
135
135
|
/**
|
|
136
136
|
* List all projects
|
|
137
137
|
*
|
|
138
|
-
* Get a list of projects that have been opened with
|
|
138
|
+
* Get a list of projects that have been opened with Kilo.
|
|
139
139
|
*/
|
|
140
140
|
list(parameters, options) {
|
|
141
141
|
const params = buildClientParams([parameters], [
|
|
@@ -155,7 +155,7 @@ export class Project extends HeyApiClient {
|
|
|
155
155
|
/**
|
|
156
156
|
* Get current project
|
|
157
157
|
*
|
|
158
|
-
* Retrieve the currently active project that
|
|
158
|
+
* Retrieve the currently active project that Kilo is working with.
|
|
159
159
|
*/
|
|
160
160
|
current(parameters, options) {
|
|
161
161
|
const params = buildClientParams([parameters], [
|
|
@@ -206,7 +206,7 @@ export class Pty extends HeyApiClient {
|
|
|
206
206
|
/**
|
|
207
207
|
* List PTY sessions
|
|
208
208
|
*
|
|
209
|
-
* Get a list of all active pseudo-terminal (PTY) sessions managed by
|
|
209
|
+
* Get a list of all active pseudo-terminal (PTY) sessions managed by Kilo.
|
|
210
210
|
*/
|
|
211
211
|
list(parameters, options) {
|
|
212
212
|
const params = buildClientParams([parameters], [
|
|
@@ -349,7 +349,7 @@ export class Config2 extends HeyApiClient {
|
|
|
349
349
|
/**
|
|
350
350
|
* Get configuration
|
|
351
351
|
*
|
|
352
|
-
* Retrieve the current
|
|
352
|
+
* Retrieve the current Kilo configuration settings and preferences.
|
|
353
353
|
*/
|
|
354
354
|
get(parameters, options) {
|
|
355
355
|
const params = buildClientParams([parameters], [
|
|
@@ -369,7 +369,7 @@ export class Config2 extends HeyApiClient {
|
|
|
369
369
|
/**
|
|
370
370
|
* Update configuration
|
|
371
371
|
*
|
|
372
|
-
* Update
|
|
372
|
+
* Update Kilo configuration settings and preferences.
|
|
373
373
|
*/
|
|
374
374
|
update(parameters, options) {
|
|
375
375
|
const params = buildClientParams([parameters], [
|
|
@@ -457,211 +457,232 @@ export class Tool extends HeyApiClient {
|
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
export class
|
|
460
|
+
export class Workspace extends HeyApiClient {
|
|
461
461
|
/**
|
|
462
|
-
*
|
|
462
|
+
* List workspaces
|
|
463
463
|
*
|
|
464
|
-
*
|
|
464
|
+
* List all workspaces.
|
|
465
465
|
*/
|
|
466
|
-
|
|
466
|
+
list(parameters, options) {
|
|
467
467
|
const params = buildClientParams([parameters], [
|
|
468
468
|
{
|
|
469
469
|
args: [
|
|
470
470
|
{ in: "query", key: "directory" },
|
|
471
471
|
{ in: "query", key: "workspace" },
|
|
472
|
-
{ key: "worktreeRemoveInput", map: "body" },
|
|
473
472
|
],
|
|
474
473
|
},
|
|
475
474
|
]);
|
|
476
|
-
return (options?.client ?? this.client).
|
|
477
|
-
url: "/experimental/
|
|
475
|
+
return (options?.client ?? this.client).get({
|
|
476
|
+
url: "/experimental/workspace",
|
|
478
477
|
...options,
|
|
479
478
|
...params,
|
|
480
|
-
headers: {
|
|
481
|
-
"Content-Type": "application/json",
|
|
482
|
-
...options?.headers,
|
|
483
|
-
...params.headers,
|
|
484
|
-
},
|
|
485
479
|
});
|
|
486
480
|
}
|
|
487
481
|
/**
|
|
488
|
-
*
|
|
482
|
+
* Create workspace
|
|
489
483
|
*
|
|
490
|
-
*
|
|
484
|
+
* Create a workspace for the current project.
|
|
491
485
|
*/
|
|
492
|
-
|
|
486
|
+
create(parameters, options) {
|
|
493
487
|
const params = buildClientParams([parameters], [
|
|
494
488
|
{
|
|
495
489
|
args: [
|
|
496
490
|
{ in: "query", key: "directory" },
|
|
497
491
|
{ in: "query", key: "workspace" },
|
|
492
|
+
{ in: "body", key: "id" },
|
|
493
|
+
{ in: "body", key: "type" },
|
|
494
|
+
{ in: "body", key: "branch" },
|
|
495
|
+
{ in: "body", key: "extra" },
|
|
498
496
|
],
|
|
499
497
|
},
|
|
500
498
|
]);
|
|
501
|
-
return (options?.client ?? this.client).
|
|
502
|
-
url: "/experimental/
|
|
499
|
+
return (options?.client ?? this.client).post({
|
|
500
|
+
url: "/experimental/workspace",
|
|
503
501
|
...options,
|
|
504
502
|
...params,
|
|
503
|
+
headers: {
|
|
504
|
+
"Content-Type": "application/json",
|
|
505
|
+
...options?.headers,
|
|
506
|
+
...params.headers,
|
|
507
|
+
},
|
|
505
508
|
});
|
|
506
509
|
}
|
|
507
510
|
/**
|
|
508
|
-
*
|
|
511
|
+
* Remove workspace
|
|
509
512
|
*
|
|
510
|
-
*
|
|
513
|
+
* Remove an existing workspace.
|
|
511
514
|
*/
|
|
512
|
-
|
|
515
|
+
remove(parameters, options) {
|
|
513
516
|
const params = buildClientParams([parameters], [
|
|
514
517
|
{
|
|
515
518
|
args: [
|
|
519
|
+
{ in: "path", key: "id" },
|
|
516
520
|
{ in: "query", key: "directory" },
|
|
517
521
|
{ in: "query", key: "workspace" },
|
|
518
|
-
{ key: "worktreeCreateInput", map: "body" },
|
|
519
522
|
],
|
|
520
523
|
},
|
|
521
524
|
]);
|
|
522
|
-
return (options?.client ?? this.client).
|
|
523
|
-
url: "/experimental/
|
|
525
|
+
return (options?.client ?? this.client).delete({
|
|
526
|
+
url: "/experimental/workspace/{id}",
|
|
524
527
|
...options,
|
|
525
528
|
...params,
|
|
526
|
-
headers: {
|
|
527
|
-
"Content-Type": "application/json",
|
|
528
|
-
...options?.headers,
|
|
529
|
-
...params.headers,
|
|
530
|
-
},
|
|
531
529
|
});
|
|
532
530
|
}
|
|
531
|
+
}
|
|
532
|
+
export class Session extends HeyApiClient {
|
|
533
533
|
/**
|
|
534
|
-
*
|
|
534
|
+
* List sessions
|
|
535
535
|
*
|
|
536
|
-
*
|
|
536
|
+
* Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
|
|
537
537
|
*/
|
|
538
|
-
|
|
538
|
+
list(parameters, options) {
|
|
539
539
|
const params = buildClientParams([parameters], [
|
|
540
540
|
{
|
|
541
541
|
args: [
|
|
542
542
|
{ in: "query", key: "directory" },
|
|
543
543
|
{ in: "query", key: "workspace" },
|
|
544
|
-
{
|
|
544
|
+
{ in: "query", key: "roots" },
|
|
545
|
+
{ in: "query", key: "start" },
|
|
546
|
+
{ in: "query", key: "cursor" },
|
|
547
|
+
{ in: "query", key: "search" },
|
|
548
|
+
{ in: "query", key: "limit" },
|
|
549
|
+
{ in: "query", key: "archived" },
|
|
545
550
|
],
|
|
546
551
|
},
|
|
547
552
|
]);
|
|
548
|
-
return (options?.client ?? this.client).
|
|
549
|
-
url: "/experimental/
|
|
553
|
+
return (options?.client ?? this.client).get({
|
|
554
|
+
url: "/experimental/session",
|
|
550
555
|
...options,
|
|
551
556
|
...params,
|
|
552
|
-
headers: {
|
|
553
|
-
"Content-Type": "application/json",
|
|
554
|
-
...options?.headers,
|
|
555
|
-
...params.headers,
|
|
556
|
-
},
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
+
}
|
|
560
|
+
export class Resource extends HeyApiClient {
|
|
559
561
|
/**
|
|
560
|
-
* Get
|
|
562
|
+
* Get MCP resources
|
|
561
563
|
*
|
|
562
|
-
* Get
|
|
564
|
+
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
563
565
|
*/
|
|
564
|
-
|
|
566
|
+
list(parameters, options) {
|
|
565
567
|
const params = buildClientParams([parameters], [
|
|
566
568
|
{
|
|
567
569
|
args: [
|
|
568
570
|
{ in: "query", key: "directory" },
|
|
569
571
|
{ in: "query", key: "workspace" },
|
|
570
|
-
{ in: "query", key: "base" },
|
|
571
572
|
],
|
|
572
573
|
},
|
|
573
574
|
]);
|
|
574
575
|
return (options?.client ?? this.client).get({
|
|
575
|
-
url: "/experimental/
|
|
576
|
+
url: "/experimental/resource",
|
|
576
577
|
...options,
|
|
577
578
|
...params,
|
|
578
579
|
});
|
|
579
580
|
}
|
|
581
|
+
}
|
|
582
|
+
export class Experimental extends HeyApiClient {
|
|
583
|
+
_workspace;
|
|
584
|
+
get workspace() {
|
|
585
|
+
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
586
|
+
}
|
|
587
|
+
_session;
|
|
588
|
+
get session() {
|
|
589
|
+
return (this._session ??= new Session({ client: this.client }));
|
|
590
|
+
}
|
|
591
|
+
_resource;
|
|
592
|
+
get resource() {
|
|
593
|
+
return (this._resource ??= new Resource({ client: this.client }));
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
export class Worktree extends HeyApiClient {
|
|
580
597
|
/**
|
|
581
|
-
*
|
|
598
|
+
* Remove worktree
|
|
582
599
|
*
|
|
583
|
-
*
|
|
600
|
+
* Remove a git worktree and delete its branch.
|
|
584
601
|
*/
|
|
585
|
-
|
|
602
|
+
remove(parameters, options) {
|
|
586
603
|
const params = buildClientParams([parameters], [
|
|
587
604
|
{
|
|
588
605
|
args: [
|
|
589
606
|
{ in: "query", key: "directory" },
|
|
590
607
|
{ in: "query", key: "workspace" },
|
|
591
|
-
{
|
|
608
|
+
{ key: "worktreeRemoveInput", map: "body" },
|
|
592
609
|
],
|
|
593
610
|
},
|
|
594
611
|
]);
|
|
595
|
-
return (options?.client ?? this.client).
|
|
596
|
-
url: "/experimental/worktree
|
|
612
|
+
return (options?.client ?? this.client).delete({
|
|
613
|
+
url: "/experimental/worktree",
|
|
597
614
|
...options,
|
|
598
615
|
...params,
|
|
616
|
+
headers: {
|
|
617
|
+
"Content-Type": "application/json",
|
|
618
|
+
...options?.headers,
|
|
619
|
+
...params.headers,
|
|
620
|
+
},
|
|
599
621
|
});
|
|
600
622
|
}
|
|
601
623
|
/**
|
|
602
|
-
*
|
|
624
|
+
* List worktrees
|
|
603
625
|
*
|
|
604
|
-
*
|
|
626
|
+
* List all sandbox worktrees for the current project.
|
|
605
627
|
*/
|
|
606
|
-
|
|
628
|
+
list(parameters, options) {
|
|
607
629
|
const params = buildClientParams([parameters], [
|
|
608
630
|
{
|
|
609
631
|
args: [
|
|
610
632
|
{ in: "query", key: "directory" },
|
|
611
633
|
{ in: "query", key: "workspace" },
|
|
612
|
-
{ in: "query", key: "base" },
|
|
613
|
-
{ in: "query", key: "file" },
|
|
614
634
|
],
|
|
615
635
|
},
|
|
616
636
|
]);
|
|
617
637
|
return (options?.client ?? this.client).get({
|
|
618
|
-
url: "/experimental/worktree
|
|
638
|
+
url: "/experimental/worktree",
|
|
619
639
|
...options,
|
|
620
640
|
...params,
|
|
621
641
|
});
|
|
622
642
|
}
|
|
623
|
-
}
|
|
624
|
-
export class Workspace extends HeyApiClient {
|
|
625
643
|
/**
|
|
626
|
-
*
|
|
644
|
+
* Create worktree
|
|
627
645
|
*
|
|
628
|
-
*
|
|
646
|
+
* Create a new git worktree for the current project and run any configured startup scripts.
|
|
629
647
|
*/
|
|
630
|
-
|
|
648
|
+
create(parameters, options) {
|
|
631
649
|
const params = buildClientParams([parameters], [
|
|
632
650
|
{
|
|
633
651
|
args: [
|
|
634
|
-
{ in: "path", key: "id" },
|
|
635
652
|
{ in: "query", key: "directory" },
|
|
636
653
|
{ in: "query", key: "workspace" },
|
|
654
|
+
{ key: "worktreeCreateInput", map: "body" },
|
|
637
655
|
],
|
|
638
656
|
},
|
|
639
657
|
]);
|
|
640
|
-
return (options?.client ?? this.client).
|
|
641
|
-
url: "/experimental/
|
|
658
|
+
return (options?.client ?? this.client).post({
|
|
659
|
+
url: "/experimental/worktree",
|
|
642
660
|
...options,
|
|
643
661
|
...params,
|
|
662
|
+
headers: {
|
|
663
|
+
"Content-Type": "application/json",
|
|
664
|
+
...options?.headers,
|
|
665
|
+
...params.headers,
|
|
666
|
+
},
|
|
644
667
|
});
|
|
645
668
|
}
|
|
646
669
|
/**
|
|
647
|
-
*
|
|
670
|
+
* Reset worktree
|
|
648
671
|
*
|
|
649
|
-
*
|
|
672
|
+
* Reset a worktree branch to the primary default branch.
|
|
650
673
|
*/
|
|
651
|
-
|
|
674
|
+
reset(parameters, options) {
|
|
652
675
|
const params = buildClientParams([parameters], [
|
|
653
676
|
{
|
|
654
677
|
args: [
|
|
655
|
-
{ in: "path", key: "id" },
|
|
656
678
|
{ in: "query", key: "directory" },
|
|
657
679
|
{ in: "query", key: "workspace" },
|
|
658
|
-
{
|
|
659
|
-
{ in: "body", key: "config" },
|
|
680
|
+
{ key: "worktreeResetInput", map: "body" },
|
|
660
681
|
],
|
|
661
682
|
},
|
|
662
683
|
]);
|
|
663
684
|
return (options?.client ?? this.client).post({
|
|
664
|
-
url: "/experimental/
|
|
685
|
+
url: "/experimental/worktree/reset",
|
|
665
686
|
...options,
|
|
666
687
|
...params,
|
|
667
688
|
headers: {
|
|
@@ -672,95 +693,75 @@ export class Workspace extends HeyApiClient {
|
|
|
672
693
|
});
|
|
673
694
|
}
|
|
674
695
|
/**
|
|
675
|
-
*
|
|
696
|
+
* Get worktree diff
|
|
676
697
|
*
|
|
677
|
-
*
|
|
698
|
+
* Get file diffs for a worktree compared to its base branch. Includes uncommitted changes.
|
|
678
699
|
*/
|
|
679
|
-
|
|
700
|
+
diff(parameters, options) {
|
|
680
701
|
const params = buildClientParams([parameters], [
|
|
681
702
|
{
|
|
682
703
|
args: [
|
|
683
704
|
{ in: "query", key: "directory" },
|
|
684
705
|
{ in: "query", key: "workspace" },
|
|
706
|
+
{ in: "query", key: "base" },
|
|
685
707
|
],
|
|
686
708
|
},
|
|
687
709
|
]);
|
|
688
710
|
return (options?.client ?? this.client).get({
|
|
689
|
-
url: "/experimental/
|
|
711
|
+
url: "/experimental/worktree/diff",
|
|
690
712
|
...options,
|
|
691
713
|
...params,
|
|
692
714
|
});
|
|
693
715
|
}
|
|
694
|
-
}
|
|
695
|
-
export class Session extends HeyApiClient {
|
|
696
716
|
/**
|
|
697
|
-
*
|
|
717
|
+
* Get worktree diff summary
|
|
698
718
|
*
|
|
699
|
-
* Get
|
|
719
|
+
* Get lightweight file diff metadata for a worktree compared to its base branch.
|
|
700
720
|
*/
|
|
701
|
-
|
|
721
|
+
diffSummary(parameters, options) {
|
|
702
722
|
const params = buildClientParams([parameters], [
|
|
703
723
|
{
|
|
704
724
|
args: [
|
|
705
725
|
{ in: "query", key: "directory" },
|
|
706
726
|
{ in: "query", key: "workspace" },
|
|
707
|
-
{ in: "query", key: "
|
|
708
|
-
{ in: "query", key: "start" },
|
|
709
|
-
{ in: "query", key: "cursor" },
|
|
710
|
-
{ in: "query", key: "search" },
|
|
711
|
-
{ in: "query", key: "limit" },
|
|
712
|
-
{ in: "query", key: "archived" },
|
|
727
|
+
{ in: "query", key: "base" },
|
|
713
728
|
],
|
|
714
729
|
},
|
|
715
730
|
]);
|
|
716
731
|
return (options?.client ?? this.client).get({
|
|
717
|
-
url: "/experimental/
|
|
732
|
+
url: "/experimental/worktree/diff/summary",
|
|
718
733
|
...options,
|
|
719
734
|
...params,
|
|
720
735
|
});
|
|
721
736
|
}
|
|
722
|
-
}
|
|
723
|
-
export class Resource extends HeyApiClient {
|
|
724
737
|
/**
|
|
725
|
-
* Get
|
|
738
|
+
* Get worktree diff detail
|
|
726
739
|
*
|
|
727
|
-
* Get
|
|
740
|
+
* Get full diff contents for one worktree file compared to its base branch.
|
|
728
741
|
*/
|
|
729
|
-
|
|
742
|
+
diffFile(parameters, options) {
|
|
730
743
|
const params = buildClientParams([parameters], [
|
|
731
744
|
{
|
|
732
745
|
args: [
|
|
733
746
|
{ in: "query", key: "directory" },
|
|
734
747
|
{ in: "query", key: "workspace" },
|
|
748
|
+
{ in: "query", key: "base" },
|
|
749
|
+
{ in: "query", key: "file" },
|
|
735
750
|
],
|
|
736
751
|
},
|
|
737
752
|
]);
|
|
738
753
|
return (options?.client ?? this.client).get({
|
|
739
|
-
url: "/experimental/
|
|
754
|
+
url: "/experimental/worktree/diff/file",
|
|
740
755
|
...options,
|
|
741
756
|
...params,
|
|
742
757
|
});
|
|
743
758
|
}
|
|
744
759
|
}
|
|
745
|
-
export class Experimental extends HeyApiClient {
|
|
746
|
-
_workspace;
|
|
747
|
-
get workspace() {
|
|
748
|
-
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
749
|
-
}
|
|
750
|
-
_session;
|
|
751
|
-
get session() {
|
|
752
|
-
return (this._session ??= new Session({ client: this.client }));
|
|
753
|
-
}
|
|
754
|
-
_resource;
|
|
755
|
-
get resource() {
|
|
756
|
-
return (this._resource ??= new Resource({ client: this.client }));
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
760
|
export class Session2 extends HeyApiClient {
|
|
760
761
|
/**
|
|
761
762
|
* List sessions
|
|
762
763
|
*
|
|
763
|
-
* Get a list of all
|
|
764
|
+
* Get a list of all Kilo sessions, sorted by most recently updated.
|
|
764
765
|
*/
|
|
765
766
|
list(parameters, options) {
|
|
766
767
|
const params = buildClientParams([parameters], [
|
|
@@ -784,7 +785,7 @@ export class Session2 extends HeyApiClient {
|
|
|
784
785
|
/**
|
|
785
786
|
* Create session
|
|
786
787
|
*
|
|
787
|
-
* Create a new
|
|
788
|
+
* Create a new Kilo session for interacting with AI assistants and managing conversations.
|
|
788
789
|
*/
|
|
789
790
|
create(parameters, options) {
|
|
790
791
|
const params = buildClientParams([parameters], [
|
|
@@ -854,7 +855,7 @@ export class Session2 extends HeyApiClient {
|
|
|
854
855
|
/**
|
|
855
856
|
* Get session
|
|
856
857
|
*
|
|
857
|
-
* Retrieve detailed information about a specific
|
|
858
|
+
* Retrieve detailed information about a specific Kilo session.
|
|
858
859
|
*/
|
|
859
860
|
get(parameters, options) {
|
|
860
861
|
const params = buildClientParams([parameters], [
|
|
@@ -1471,6 +1472,34 @@ export class Permission extends HeyApiClient {
|
|
|
1471
1472
|
},
|
|
1472
1473
|
});
|
|
1473
1474
|
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Save always-allow/deny permission rules
|
|
1477
|
+
*
|
|
1478
|
+
* Save approved/denied always-rules for a pending permission request.
|
|
1479
|
+
*/
|
|
1480
|
+
saveAlwaysRules(parameters, options) {
|
|
1481
|
+
const params = buildClientParams([parameters], [
|
|
1482
|
+
{
|
|
1483
|
+
args: [
|
|
1484
|
+
{ in: "path", key: "requestID" },
|
|
1485
|
+
{ in: "query", key: "directory" },
|
|
1486
|
+
{ in: "query", key: "workspace" },
|
|
1487
|
+
{ in: "body", key: "approvedAlways" },
|
|
1488
|
+
{ in: "body", key: "deniedAlways" },
|
|
1489
|
+
],
|
|
1490
|
+
},
|
|
1491
|
+
]);
|
|
1492
|
+
return (options?.client ?? this.client).post({
|
|
1493
|
+
url: "/permission/{requestID}/always-rules",
|
|
1494
|
+
...options,
|
|
1495
|
+
...params,
|
|
1496
|
+
headers: {
|
|
1497
|
+
"Content-Type": "application/json",
|
|
1498
|
+
...options?.headers,
|
|
1499
|
+
...params.headers,
|
|
1500
|
+
},
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1474
1503
|
/**
|
|
1475
1504
|
* List pending permissions
|
|
1476
1505
|
*
|
|
@@ -1752,6 +1781,60 @@ export class EnhancePrompt extends HeyApiClient {
|
|
|
1752
1781
|
});
|
|
1753
1782
|
}
|
|
1754
1783
|
}
|
|
1784
|
+
export class Kilocode extends HeyApiClient {
|
|
1785
|
+
/**
|
|
1786
|
+
* Remove a skill
|
|
1787
|
+
*
|
|
1788
|
+
* Remove a skill by deleting its directory from disk and clearing it from cache.
|
|
1789
|
+
*/
|
|
1790
|
+
removeSkill(parameters, options) {
|
|
1791
|
+
const params = buildClientParams([parameters], [
|
|
1792
|
+
{
|
|
1793
|
+
args: [
|
|
1794
|
+
{ in: "query", key: "directory" },
|
|
1795
|
+
{ in: "query", key: "workspace" },
|
|
1796
|
+
{ in: "body", key: "location" },
|
|
1797
|
+
],
|
|
1798
|
+
},
|
|
1799
|
+
]);
|
|
1800
|
+
return (options?.client ?? this.client).post({
|
|
1801
|
+
url: "/kilocode/skill/remove",
|
|
1802
|
+
...options,
|
|
1803
|
+
...params,
|
|
1804
|
+
headers: {
|
|
1805
|
+
"Content-Type": "application/json",
|
|
1806
|
+
...options?.headers,
|
|
1807
|
+
...params.headers,
|
|
1808
|
+
},
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Remove a custom agent
|
|
1813
|
+
*
|
|
1814
|
+
* Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
|
|
1815
|
+
*/
|
|
1816
|
+
removeAgent(parameters, options) {
|
|
1817
|
+
const params = buildClientParams([parameters], [
|
|
1818
|
+
{
|
|
1819
|
+
args: [
|
|
1820
|
+
{ in: "query", key: "directory" },
|
|
1821
|
+
{ in: "query", key: "workspace" },
|
|
1822
|
+
{ in: "body", key: "name" },
|
|
1823
|
+
],
|
|
1824
|
+
},
|
|
1825
|
+
]);
|
|
1826
|
+
return (options?.client ?? this.client).post({
|
|
1827
|
+
url: "/kilocode/agent/remove",
|
|
1828
|
+
...options,
|
|
1829
|
+
...params,
|
|
1830
|
+
headers: {
|
|
1831
|
+
"Content-Type": "application/json",
|
|
1832
|
+
...options?.headers,
|
|
1833
|
+
...params.headers,
|
|
1834
|
+
},
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1755
1838
|
export class Organization extends HeyApiClient {
|
|
1756
1839
|
/**
|
|
1757
1840
|
* Update Kilo Gateway organization
|
|
@@ -2564,7 +2647,7 @@ export class Instance extends HeyApiClient {
|
|
|
2564
2647
|
/**
|
|
2565
2648
|
* Dispose instance
|
|
2566
2649
|
*
|
|
2567
|
-
* Clean up and dispose the current
|
|
2650
|
+
* Clean up and dispose the current Kilo instance, releasing all resources.
|
|
2568
2651
|
*/
|
|
2569
2652
|
dispose(parameters, options) {
|
|
2570
2653
|
const params = buildClientParams([parameters], [
|
|
@@ -2586,7 +2669,7 @@ export class Path extends HeyApiClient {
|
|
|
2586
2669
|
/**
|
|
2587
2670
|
* Get paths
|
|
2588
2671
|
*
|
|
2589
|
-
* Retrieve the current working directory and related path information for the
|
|
2672
|
+
* Retrieve the current working directory and related path information for the Kilo instance.
|
|
2590
2673
|
*/
|
|
2591
2674
|
get(parameters, options) {
|
|
2592
2675
|
const params = buildClientParams([parameters], [
|
|
@@ -2630,7 +2713,7 @@ export class Command extends HeyApiClient {
|
|
|
2630
2713
|
/**
|
|
2631
2714
|
* List commands
|
|
2632
2715
|
*
|
|
2633
|
-
* Get a list of all available commands in the
|
|
2716
|
+
* Get a list of all available commands in the Kilo system.
|
|
2634
2717
|
*/
|
|
2635
2718
|
list(parameters, options) {
|
|
2636
2719
|
const params = buildClientParams([parameters], [
|
|
@@ -2681,7 +2764,7 @@ export class App extends HeyApiClient {
|
|
|
2681
2764
|
/**
|
|
2682
2765
|
* List agents
|
|
2683
2766
|
*
|
|
2684
|
-
* Get a list of all available AI agents in the
|
|
2767
|
+
* Get a list of all available AI agents in the Kilo system.
|
|
2685
2768
|
*/
|
|
2686
2769
|
agents(parameters, options) {
|
|
2687
2770
|
const params = buildClientParams([parameters], [
|
|
@@ -2701,7 +2784,7 @@ export class App extends HeyApiClient {
|
|
|
2701
2784
|
/**
|
|
2702
2785
|
* List skills
|
|
2703
2786
|
*
|
|
2704
|
-
* Get a list of all available skills in the
|
|
2787
|
+
* Get a list of all available skills in the Kilo system.
|
|
2705
2788
|
*/
|
|
2706
2789
|
skills(parameters, options) {
|
|
2707
2790
|
const params = buildClientParams([parameters], [
|
|
@@ -2815,14 +2898,14 @@ export class KiloClient extends HeyApiClient {
|
|
|
2815
2898
|
get tool() {
|
|
2816
2899
|
return (this._tool ??= new Tool({ client: this.client }));
|
|
2817
2900
|
}
|
|
2818
|
-
_worktree;
|
|
2819
|
-
get worktree() {
|
|
2820
|
-
return (this._worktree ??= new Worktree({ client: this.client }));
|
|
2821
|
-
}
|
|
2822
2901
|
_experimental;
|
|
2823
2902
|
get experimental() {
|
|
2824
2903
|
return (this._experimental ??= new Experimental({ client: this.client }));
|
|
2825
2904
|
}
|
|
2905
|
+
_worktree;
|
|
2906
|
+
get worktree() {
|
|
2907
|
+
return (this._worktree ??= new Worktree({ client: this.client }));
|
|
2908
|
+
}
|
|
2826
2909
|
_session;
|
|
2827
2910
|
get session() {
|
|
2828
2911
|
return (this._session ??= new Session2({ client: this.client }));
|
|
@@ -2855,6 +2938,10 @@ export class KiloClient extends HeyApiClient {
|
|
|
2855
2938
|
get enhancePrompt() {
|
|
2856
2939
|
return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
|
|
2857
2940
|
}
|
|
2941
|
+
_kilocode;
|
|
2942
|
+
get kilocode() {
|
|
2943
|
+
return (this._kilocode ??= new Kilocode({ client: this.client }));
|
|
2944
|
+
}
|
|
2858
2945
|
_kilo;
|
|
2859
2946
|
get kilo() {
|
|
2860
2947
|
return (this._kilo ??= new Kilo({ client: this.client }));
|