@kilocode/sdk 7.4.20 → 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 +153 -27
- package/dist/v2/gen/sdk.gen.js +293 -6
- package/dist/v2/gen/types.gen.d.ts +7925 -4170
- 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
|
]);
|
|
@@ -4758,6 +4761,52 @@ export class Kilocode extends HeyApiClient {
|
|
|
4758
4761
|
...params,
|
|
4759
4762
|
});
|
|
4760
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
|
+
}
|
|
4761
4810
|
/**
|
|
4762
4811
|
* Remove a skill
|
|
4763
4812
|
*
|
|
@@ -5514,6 +5563,56 @@ export class Agent extends HeyApiClient {
|
|
|
5514
5563
|
});
|
|
5515
5564
|
}
|
|
5516
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
|
+
}
|
|
5517
5616
|
export class Permission2 extends HeyApiClient {
|
|
5518
5617
|
/**
|
|
5519
5618
|
* List session permission requests
|
|
@@ -5528,6 +5627,57 @@ export class Permission2 extends HeyApiClient {
|
|
|
5528
5627
|
...params,
|
|
5529
5628
|
});
|
|
5530
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
|
+
}
|
|
5531
5681
|
/**
|
|
5532
5682
|
* Reply to pending permission request
|
|
5533
5683
|
*
|
|
@@ -5671,6 +5821,17 @@ export class Session4 extends HeyApiClient {
|
|
|
5671
5821
|
},
|
|
5672
5822
|
});
|
|
5673
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
|
+
}
|
|
5674
5835
|
/**
|
|
5675
5836
|
* Get session
|
|
5676
5837
|
*
|
|
@@ -5684,6 +5845,56 @@ export class Session4 extends HeyApiClient {
|
|
|
5684
5845
|
...params,
|
|
5685
5846
|
});
|
|
5686
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
|
+
}
|
|
5687
5898
|
/**
|
|
5688
5899
|
* Send message
|
|
5689
5900
|
*
|
|
@@ -5751,6 +5962,80 @@ export class Session4 extends HeyApiClient {
|
|
|
5751
5962
|
...params,
|
|
5752
5963
|
});
|
|
5753
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
|
+
}
|
|
5754
6039
|
/**
|
|
5755
6040
|
* Get session messages
|
|
5756
6041
|
*
|
|
@@ -5773,6 +6058,10 @@ export class Session4 extends HeyApiClient {
|
|
|
5773
6058
|
...params,
|
|
5774
6059
|
});
|
|
5775
6060
|
}
|
|
6061
|
+
_revert;
|
|
6062
|
+
get revert() {
|
|
6063
|
+
return (this._revert ??= new Revert({ client: this.client }));
|
|
6064
|
+
}
|
|
5776
6065
|
_permission;
|
|
5777
6066
|
get permission() {
|
|
5778
6067
|
return (this._permission ??= new Permission2({ client: this.client }));
|
|
@@ -6199,14 +6488,12 @@ export class Event2 extends HeyApiClient {
|
|
|
6199
6488
|
/**
|
|
6200
6489
|
* Subscribe to events
|
|
6201
6490
|
*
|
|
6202
|
-
* Subscribe to native event payloads for
|
|
6491
|
+
* Subscribe to native event payloads for the server.
|
|
6203
6492
|
*/
|
|
6204
|
-
subscribe(
|
|
6205
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
6493
|
+
subscribe(options) {
|
|
6206
6494
|
return (options?.client ?? this.client).sse.get({
|
|
6207
6495
|
url: "/api/event",
|
|
6208
6496
|
...options,
|
|
6209
|
-
...params,
|
|
6210
6497
|
});
|
|
6211
6498
|
}
|
|
6212
6499
|
}
|
|
@@ -6239,6 +6526,7 @@ export class Pty2 extends HeyApiClient {
|
|
|
6239
6526
|
{ in: "body", key: "cwd" },
|
|
6240
6527
|
{ in: "body", key: "title" },
|
|
6241
6528
|
{ in: "body", key: "env" },
|
|
6529
|
+
{ in: "body", key: "size" },
|
|
6242
6530
|
],
|
|
6243
6531
|
},
|
|
6244
6532
|
]);
|
|
@@ -6305,7 +6593,6 @@ export class Pty2 extends HeyApiClient {
|
|
|
6305
6593
|
{ in: "path", key: "ptyID" },
|
|
6306
6594
|
{ in: "query", key: "location" },
|
|
6307
6595
|
{ in: "body", key: "title" },
|
|
6308
|
-
{ in: "body", key: "sessionID" },
|
|
6309
6596
|
{ in: "body", key: "size" },
|
|
6310
6597
|
],
|
|
6311
6598
|
},
|