@kilocode/sdk 7.4.19 → 7.4.21
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 +162 -27
- package/dist/v2/gen/sdk.gen.js +313 -6
- package/dist/v2/gen/types.gen.d.ts +7962 -4180
- package/package.json +6 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -1870,6 +1870,7 @@ export class Pty extends HeyApiClient {
|
|
|
1870
1870
|
{ in: "body", key: "cwd" },
|
|
1871
1871
|
{ in: "body", key: "title" },
|
|
1872
1872
|
{ in: "body", key: "env" },
|
|
1873
|
+
{ in: "body", key: "size" },
|
|
1873
1874
|
],
|
|
1874
1875
|
},
|
|
1875
1876
|
]);
|
|
@@ -1939,8 +1940,8 @@ export class Pty extends HeyApiClient {
|
|
|
1939
1940
|
{ in: "query", key: "directory" },
|
|
1940
1941
|
{ in: "query", key: "workspace" },
|
|
1941
1942
|
{ in: "body", key: "title" },
|
|
1942
|
-
{ in: "body", key: "sessionID" },
|
|
1943
1943
|
{ in: "body", key: "size" },
|
|
1944
|
+
{ in: "body", key: "sessionID" },
|
|
1944
1945
|
],
|
|
1945
1946
|
},
|
|
1946
1947
|
]);
|
|
@@ -2519,6 +2520,8 @@ export class Session2 extends HeyApiClient {
|
|
|
2519
2520
|
{ in: "query", key: "directory" },
|
|
2520
2521
|
{ in: "query", key: "workspace" },
|
|
2521
2522
|
{ in: "query", key: "messageID" },
|
|
2523
|
+
{ in: "query", key: "file" },
|
|
2524
|
+
{ in: "query", key: "full" },
|
|
2522
2525
|
],
|
|
2523
2526
|
},
|
|
2524
2527
|
]);
|
|
@@ -4077,6 +4080,26 @@ export class Models extends HeyApiClient {
|
|
|
4077
4080
|
...params,
|
|
4078
4081
|
});
|
|
4079
4082
|
}
|
|
4083
|
+
/**
|
|
4084
|
+
* Speech-to-text models
|
|
4085
|
+
*
|
|
4086
|
+
* List transcription-capable models from the Kilo Gateway catalog
|
|
4087
|
+
*/
|
|
4088
|
+
transcriptions(parameters, options) {
|
|
4089
|
+
const params = buildClientParams([parameters], [
|
|
4090
|
+
{
|
|
4091
|
+
args: [
|
|
4092
|
+
{ in: "query", key: "directory" },
|
|
4093
|
+
{ in: "query", key: "workspace" },
|
|
4094
|
+
],
|
|
4095
|
+
},
|
|
4096
|
+
]);
|
|
4097
|
+
return (options?.client ?? this.client).get({
|
|
4098
|
+
url: "/kilo/models/transcriptions",
|
|
4099
|
+
...options,
|
|
4100
|
+
...params,
|
|
4101
|
+
});
|
|
4102
|
+
}
|
|
4080
4103
|
}
|
|
4081
4104
|
export class Organization extends HeyApiClient {
|
|
4082
4105
|
/**
|
|
@@ -4738,6 +4761,52 @@ export class Kilocode extends HeyApiClient {
|
|
|
4738
4761
|
...params,
|
|
4739
4762
|
});
|
|
4740
4763
|
}
|
|
4764
|
+
/**
|
|
4765
|
+
* List command files
|
|
4766
|
+
*
|
|
4767
|
+
* List commands with editable file locations for settings clients.
|
|
4768
|
+
*/
|
|
4769
|
+
commandFiles(parameters, options) {
|
|
4770
|
+
const params = buildClientParams([parameters], [
|
|
4771
|
+
{
|
|
4772
|
+
args: [
|
|
4773
|
+
{ in: "query", key: "directory" },
|
|
4774
|
+
{ in: "query", key: "workspace" },
|
|
4775
|
+
],
|
|
4776
|
+
},
|
|
4777
|
+
]);
|
|
4778
|
+
return (options?.client ?? this.client).get({
|
|
4779
|
+
url: "/kilocode/command/files",
|
|
4780
|
+
...options,
|
|
4781
|
+
...params,
|
|
4782
|
+
});
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Remove a command
|
|
4786
|
+
*
|
|
4787
|
+
* Remove a command by deleting its markdown file from disk and clearing it from cache.
|
|
4788
|
+
*/
|
|
4789
|
+
removeCommand(parameters, options) {
|
|
4790
|
+
const params = buildClientParams([parameters], [
|
|
4791
|
+
{
|
|
4792
|
+
args: [
|
|
4793
|
+
{ in: "query", key: "directory" },
|
|
4794
|
+
{ in: "query", key: "workspace" },
|
|
4795
|
+
{ in: "body", key: "location" },
|
|
4796
|
+
],
|
|
4797
|
+
},
|
|
4798
|
+
]);
|
|
4799
|
+
return (options?.client ?? this.client).post({
|
|
4800
|
+
url: "/kilocode/command/remove",
|
|
4801
|
+
...options,
|
|
4802
|
+
...params,
|
|
4803
|
+
headers: {
|
|
4804
|
+
"Content-Type": "application/json",
|
|
4805
|
+
...options?.headers,
|
|
4806
|
+
...params.headers,
|
|
4807
|
+
},
|
|
4808
|
+
});
|
|
4809
|
+
}
|
|
4741
4810
|
/**
|
|
4742
4811
|
* Remove a skill
|
|
4743
4812
|
*
|
|
@@ -5494,6 +5563,56 @@ export class Agent extends HeyApiClient {
|
|
|
5494
5563
|
});
|
|
5495
5564
|
}
|
|
5496
5565
|
}
|
|
5566
|
+
export class Revert extends HeyApiClient {
|
|
5567
|
+
/**
|
|
5568
|
+
* Stage session revert
|
|
5569
|
+
*
|
|
5570
|
+
* Stage or move a reversible session boundary and optionally apply its file changes.
|
|
5571
|
+
*/
|
|
5572
|
+
stage(parameters, options) {
|
|
5573
|
+
const params = buildClientParams([parameters], [
|
|
5574
|
+
{
|
|
5575
|
+
args: [
|
|
5576
|
+
{ in: "path", key: "sessionID" },
|
|
5577
|
+
{ in: "body", key: "messageID" },
|
|
5578
|
+
{ in: "body", key: "files" },
|
|
5579
|
+
],
|
|
5580
|
+
},
|
|
5581
|
+
]);
|
|
5582
|
+
return (options?.client ?? this.client).post({
|
|
5583
|
+
url: "/api/session/{sessionID}/revert/stage",
|
|
5584
|
+
...options,
|
|
5585
|
+
...params,
|
|
5586
|
+
headers: {
|
|
5587
|
+
"Content-Type": "application/json",
|
|
5588
|
+
...options?.headers,
|
|
5589
|
+
...params.headers,
|
|
5590
|
+
},
|
|
5591
|
+
});
|
|
5592
|
+
}
|
|
5593
|
+
/**
|
|
5594
|
+
* Clear staged revert
|
|
5595
|
+
*/
|
|
5596
|
+
clear(parameters, options) {
|
|
5597
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5598
|
+
return (options?.client ?? this.client).post({
|
|
5599
|
+
url: "/api/session/{sessionID}/revert/clear",
|
|
5600
|
+
...options,
|
|
5601
|
+
...params,
|
|
5602
|
+
});
|
|
5603
|
+
}
|
|
5604
|
+
/**
|
|
5605
|
+
* Commit staged revert
|
|
5606
|
+
*/
|
|
5607
|
+
commit(parameters, options) {
|
|
5608
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5609
|
+
return (options?.client ?? this.client).post({
|
|
5610
|
+
url: "/api/session/{sessionID}/revert/commit",
|
|
5611
|
+
...options,
|
|
5612
|
+
...params,
|
|
5613
|
+
});
|
|
5614
|
+
}
|
|
5615
|
+
}
|
|
5497
5616
|
export class Permission2 extends HeyApiClient {
|
|
5498
5617
|
/**
|
|
5499
5618
|
* List session permission requests
|
|
@@ -5508,6 +5627,57 @@ export class Permission2 extends HeyApiClient {
|
|
|
5508
5627
|
...params,
|
|
5509
5628
|
});
|
|
5510
5629
|
}
|
|
5630
|
+
/**
|
|
5631
|
+
* Create permission request
|
|
5632
|
+
*
|
|
5633
|
+
* Evaluate and, when approval is required, create a permission request for a session.
|
|
5634
|
+
*/
|
|
5635
|
+
create(parameters, options) {
|
|
5636
|
+
const params = buildClientParams([parameters], [
|
|
5637
|
+
{
|
|
5638
|
+
args: [
|
|
5639
|
+
{ in: "path", key: "sessionID" },
|
|
5640
|
+
{ in: "body", key: "id" },
|
|
5641
|
+
{ in: "body", key: "action" },
|
|
5642
|
+
{ in: "body", key: "resources" },
|
|
5643
|
+
{ in: "body", key: "save" },
|
|
5644
|
+
{ in: "body", key: "metadata" },
|
|
5645
|
+
{ in: "body", key: "source" },
|
|
5646
|
+
{ in: "body", key: "agent" },
|
|
5647
|
+
],
|
|
5648
|
+
},
|
|
5649
|
+
]);
|
|
5650
|
+
return (options?.client ?? this.client).post({
|
|
5651
|
+
url: "/api/session/{sessionID}/permission",
|
|
5652
|
+
...options,
|
|
5653
|
+
...params,
|
|
5654
|
+
headers: {
|
|
5655
|
+
"Content-Type": "application/json",
|
|
5656
|
+
...options?.headers,
|
|
5657
|
+
...params.headers,
|
|
5658
|
+
},
|
|
5659
|
+
});
|
|
5660
|
+
}
|
|
5661
|
+
/**
|
|
5662
|
+
* Get permission request
|
|
5663
|
+
*
|
|
5664
|
+
* Retrieve a pending permission request owned by a session.
|
|
5665
|
+
*/
|
|
5666
|
+
get(parameters, options) {
|
|
5667
|
+
const params = buildClientParams([parameters], [
|
|
5668
|
+
{
|
|
5669
|
+
args: [
|
|
5670
|
+
{ in: "path", key: "sessionID" },
|
|
5671
|
+
{ in: "path", key: "requestID" },
|
|
5672
|
+
],
|
|
5673
|
+
},
|
|
5674
|
+
]);
|
|
5675
|
+
return (options?.client ?? this.client).get({
|
|
5676
|
+
url: "/api/session/{sessionID}/permission/{requestID}",
|
|
5677
|
+
...options,
|
|
5678
|
+
...params,
|
|
5679
|
+
});
|
|
5680
|
+
}
|
|
5511
5681
|
/**
|
|
5512
5682
|
* Reply to pending permission request
|
|
5513
5683
|
*
|
|
@@ -5651,6 +5821,17 @@ export class Session4 extends HeyApiClient {
|
|
|
5651
5821
|
},
|
|
5652
5822
|
});
|
|
5653
5823
|
}
|
|
5824
|
+
/**
|
|
5825
|
+
* List active sessions
|
|
5826
|
+
*
|
|
5827
|
+
* Retrieve foreground Session drains currently owned by this Kilo process. Sessions absent from the result are inactive.
|
|
5828
|
+
*/
|
|
5829
|
+
active(options) {
|
|
5830
|
+
return (options?.client ?? this.client).get({
|
|
5831
|
+
url: "/api/session/active",
|
|
5832
|
+
...options,
|
|
5833
|
+
});
|
|
5834
|
+
}
|
|
5654
5835
|
/**
|
|
5655
5836
|
* Get session
|
|
5656
5837
|
*
|
|
@@ -5664,6 +5845,56 @@ export class Session4 extends HeyApiClient {
|
|
|
5664
5845
|
...params,
|
|
5665
5846
|
});
|
|
5666
5847
|
}
|
|
5848
|
+
/**
|
|
5849
|
+
* Switch session agent
|
|
5850
|
+
*
|
|
5851
|
+
* Switch the agent used by subsequent provider turns.
|
|
5852
|
+
*/
|
|
5853
|
+
switchAgent(parameters, options) {
|
|
5854
|
+
const params = buildClientParams([parameters], [
|
|
5855
|
+
{
|
|
5856
|
+
args: [
|
|
5857
|
+
{ in: "path", key: "sessionID" },
|
|
5858
|
+
{ in: "body", key: "agent" },
|
|
5859
|
+
],
|
|
5860
|
+
},
|
|
5861
|
+
]);
|
|
5862
|
+
return (options?.client ?? this.client).post({
|
|
5863
|
+
url: "/api/session/{sessionID}/agent",
|
|
5864
|
+
...options,
|
|
5865
|
+
...params,
|
|
5866
|
+
headers: {
|
|
5867
|
+
"Content-Type": "application/json",
|
|
5868
|
+
...options?.headers,
|
|
5869
|
+
...params.headers,
|
|
5870
|
+
},
|
|
5871
|
+
});
|
|
5872
|
+
}
|
|
5873
|
+
/**
|
|
5874
|
+
* Switch session model
|
|
5875
|
+
*
|
|
5876
|
+
* Switch the model used by subsequent provider turns.
|
|
5877
|
+
*/
|
|
5878
|
+
switchModel(parameters, options) {
|
|
5879
|
+
const params = buildClientParams([parameters], [
|
|
5880
|
+
{
|
|
5881
|
+
args: [
|
|
5882
|
+
{ in: "path", key: "sessionID" },
|
|
5883
|
+
{ in: "body", key: "model" },
|
|
5884
|
+
],
|
|
5885
|
+
},
|
|
5886
|
+
]);
|
|
5887
|
+
return (options?.client ?? this.client).post({
|
|
5888
|
+
url: "/api/session/{sessionID}/model",
|
|
5889
|
+
...options,
|
|
5890
|
+
...params,
|
|
5891
|
+
headers: {
|
|
5892
|
+
"Content-Type": "application/json",
|
|
5893
|
+
...options?.headers,
|
|
5894
|
+
...params.headers,
|
|
5895
|
+
},
|
|
5896
|
+
});
|
|
5897
|
+
}
|
|
5667
5898
|
/**
|
|
5668
5899
|
* Send message
|
|
5669
5900
|
*
|
|
@@ -5731,6 +5962,80 @@ export class Session4 extends HeyApiClient {
|
|
|
5731
5962
|
...params,
|
|
5732
5963
|
});
|
|
5733
5964
|
}
|
|
5965
|
+
/**
|
|
5966
|
+
* Get session history
|
|
5967
|
+
*
|
|
5968
|
+
* Read one finite page of public durable Session events after an exclusive aggregate sequence. Newly committed events may appear on later pages.
|
|
5969
|
+
*/
|
|
5970
|
+
history(parameters, options) {
|
|
5971
|
+
const params = buildClientParams([parameters], [
|
|
5972
|
+
{
|
|
5973
|
+
args: [
|
|
5974
|
+
{ in: "path", key: "sessionID" },
|
|
5975
|
+
{ in: "query", key: "limit" },
|
|
5976
|
+
{ in: "query", key: "after" },
|
|
5977
|
+
],
|
|
5978
|
+
},
|
|
5979
|
+
]);
|
|
5980
|
+
return (options?.client ?? this.client).get({
|
|
5981
|
+
url: "/api/session/{sessionID}/history",
|
|
5982
|
+
...options,
|
|
5983
|
+
...params,
|
|
5984
|
+
});
|
|
5985
|
+
}
|
|
5986
|
+
/**
|
|
5987
|
+
* Subscribe to session events
|
|
5988
|
+
*
|
|
5989
|
+
* Replay durable events after an aggregate sequence, then continue with new durable events.
|
|
5990
|
+
*/
|
|
5991
|
+
events(parameters, options) {
|
|
5992
|
+
const params = buildClientParams([parameters], [
|
|
5993
|
+
{
|
|
5994
|
+
args: [
|
|
5995
|
+
{ in: "path", key: "sessionID" },
|
|
5996
|
+
{ in: "query", key: "after" },
|
|
5997
|
+
],
|
|
5998
|
+
},
|
|
5999
|
+
]);
|
|
6000
|
+
return (options?.client ?? this.client).sse.get({
|
|
6001
|
+
url: "/api/session/{sessionID}/event",
|
|
6002
|
+
...options,
|
|
6003
|
+
...params,
|
|
6004
|
+
});
|
|
6005
|
+
}
|
|
6006
|
+
/**
|
|
6007
|
+
* Interrupt session execution
|
|
6008
|
+
*
|
|
6009
|
+
* Interrupt active execution owned by this Kilo process. Idle interruption is a no-op.
|
|
6010
|
+
*/
|
|
6011
|
+
interrupt(parameters, options) {
|
|
6012
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
6013
|
+
return (options?.client ?? this.client).post({
|
|
6014
|
+
url: "/api/session/{sessionID}/interrupt",
|
|
6015
|
+
...options,
|
|
6016
|
+
...params,
|
|
6017
|
+
});
|
|
6018
|
+
}
|
|
6019
|
+
/**
|
|
6020
|
+
* Get session message
|
|
6021
|
+
*
|
|
6022
|
+
* Retrieve one projected message owned by the Session.
|
|
6023
|
+
*/
|
|
6024
|
+
message(parameters, options) {
|
|
6025
|
+
const params = buildClientParams([parameters], [
|
|
6026
|
+
{
|
|
6027
|
+
args: [
|
|
6028
|
+
{ in: "path", key: "sessionID" },
|
|
6029
|
+
{ in: "path", key: "messageID" },
|
|
6030
|
+
],
|
|
6031
|
+
},
|
|
6032
|
+
]);
|
|
6033
|
+
return (options?.client ?? this.client).get({
|
|
6034
|
+
url: "/api/session/{sessionID}/message/{messageID}",
|
|
6035
|
+
...options,
|
|
6036
|
+
...params,
|
|
6037
|
+
});
|
|
6038
|
+
}
|
|
5734
6039
|
/**
|
|
5735
6040
|
* Get session messages
|
|
5736
6041
|
*
|
|
@@ -5753,6 +6058,10 @@ export class Session4 extends HeyApiClient {
|
|
|
5753
6058
|
...params,
|
|
5754
6059
|
});
|
|
5755
6060
|
}
|
|
6061
|
+
_revert;
|
|
6062
|
+
get revert() {
|
|
6063
|
+
return (this._revert ??= new Revert({ client: this.client }));
|
|
6064
|
+
}
|
|
5756
6065
|
_permission;
|
|
5757
6066
|
get permission() {
|
|
5758
6067
|
return (this._permission ??= new Permission2({ client: this.client }));
|
|
@@ -6179,14 +6488,12 @@ export class Event2 extends HeyApiClient {
|
|
|
6179
6488
|
/**
|
|
6180
6489
|
* Subscribe to events
|
|
6181
6490
|
*
|
|
6182
|
-
* Subscribe to native event payloads for
|
|
6491
|
+
* Subscribe to native event payloads for the server.
|
|
6183
6492
|
*/
|
|
6184
|
-
subscribe(
|
|
6185
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
6493
|
+
subscribe(options) {
|
|
6186
6494
|
return (options?.client ?? this.client).sse.get({
|
|
6187
6495
|
url: "/api/event",
|
|
6188
6496
|
...options,
|
|
6189
|
-
...params,
|
|
6190
6497
|
});
|
|
6191
6498
|
}
|
|
6192
6499
|
}
|
|
@@ -6219,6 +6526,7 @@ export class Pty2 extends HeyApiClient {
|
|
|
6219
6526
|
{ in: "body", key: "cwd" },
|
|
6220
6527
|
{ in: "body", key: "title" },
|
|
6221
6528
|
{ in: "body", key: "env" },
|
|
6529
|
+
{ in: "body", key: "size" },
|
|
6222
6530
|
],
|
|
6223
6531
|
},
|
|
6224
6532
|
]);
|
|
@@ -6285,7 +6593,6 @@ export class Pty2 extends HeyApiClient {
|
|
|
6285
6593
|
{ in: "path", key: "ptyID" },
|
|
6286
6594
|
{ in: "query", key: "location" },
|
|
6287
6595
|
{ in: "body", key: "title" },
|
|
6288
|
-
{ in: "body", key: "sessionID" },
|
|
6289
6596
|
{ in: "body", key: "size" },
|
|
6290
6597
|
],
|
|
6291
6598
|
},
|