@kilocode/sdk 7.2.3 → 7.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +26 -0
- package/dist/v2/client.js +40 -3
- package/dist/v2/gen/sdk.gen.d.ts +604 -572
- package/dist/v2/gen/sdk.gen.js +670 -605
- package/dist/v2/gen/types.gen.d.ts +1783 -1641
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -21,6 +21,19 @@ class HeyApiRegistry {
|
|
|
21
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
export class SyncEvent extends HeyApiClient {
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to global sync events
|
|
27
|
+
*
|
|
28
|
+
* Get global sync events
|
|
29
|
+
*/
|
|
30
|
+
subscribe(options) {
|
|
31
|
+
return (options?.client ?? this.client).sse.get({
|
|
32
|
+
url: "/global/sync-event",
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
24
37
|
export class Config extends HeyApiClient {
|
|
25
38
|
/**
|
|
26
39
|
* Get global configuration
|
|
@@ -86,44 +99,31 @@ export class Global extends HeyApiClient {
|
|
|
86
99
|
...options,
|
|
87
100
|
});
|
|
88
101
|
}
|
|
89
|
-
_config;
|
|
90
|
-
get config() {
|
|
91
|
-
return (this._config ??= new Config({ client: this.client }));
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export class Remote extends HeyApiClient {
|
|
95
102
|
/**
|
|
96
|
-
*
|
|
103
|
+
* Upgrade kilo
|
|
97
104
|
*
|
|
98
|
-
*
|
|
105
|
+
* Upgrade kilo to the specified version or latest if not specified.
|
|
99
106
|
*/
|
|
100
|
-
|
|
107
|
+
upgrade(parameters, options) {
|
|
108
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]);
|
|
101
109
|
return (options?.client ?? this.client).post({
|
|
102
|
-
url: "/
|
|
110
|
+
url: "/global/upgrade",
|
|
103
111
|
...options,
|
|
112
|
+
...params,
|
|
113
|
+
headers: {
|
|
114
|
+
"Content-Type": "application/json",
|
|
115
|
+
...options?.headers,
|
|
116
|
+
...params.headers,
|
|
117
|
+
},
|
|
104
118
|
});
|
|
105
119
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
* Close the remote WebSocket connection to UserConnectionDO.
|
|
110
|
-
*/
|
|
111
|
-
disable(options) {
|
|
112
|
-
return (options?.client ?? this.client).post({
|
|
113
|
-
url: "/remote/disable",
|
|
114
|
-
...options,
|
|
115
|
-
});
|
|
120
|
+
_syncEvent;
|
|
121
|
+
get syncEvent() {
|
|
122
|
+
return (this._syncEvent ??= new SyncEvent({ client: this.client }));
|
|
116
123
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
* Get the current state of the remote WebSocket connection.
|
|
121
|
-
*/
|
|
122
|
-
status(options) {
|
|
123
|
-
return (options?.client ?? this.client).get({
|
|
124
|
-
url: "/remote/status",
|
|
125
|
-
...options,
|
|
126
|
-
});
|
|
124
|
+
_config;
|
|
125
|
+
get config() {
|
|
126
|
+
return (this._config ??= new Config({ client: this.client }));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
export class Auth extends HeyApiClient {
|
|
@@ -166,6 +166,77 @@ export class Auth extends HeyApiClient {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
export class App extends HeyApiClient {
|
|
170
|
+
/**
|
|
171
|
+
* Write log
|
|
172
|
+
*
|
|
173
|
+
* Write a log entry to the server logs with specified level and metadata.
|
|
174
|
+
*/
|
|
175
|
+
log(parameters, options) {
|
|
176
|
+
const params = buildClientParams([parameters], [
|
|
177
|
+
{
|
|
178
|
+
args: [
|
|
179
|
+
{ in: "query", key: "directory" },
|
|
180
|
+
{ in: "query", key: "workspace" },
|
|
181
|
+
{ in: "body", key: "service" },
|
|
182
|
+
{ in: "body", key: "level" },
|
|
183
|
+
{ in: "body", key: "message" },
|
|
184
|
+
{ in: "body", key: "extra" },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
]);
|
|
188
|
+
return (options?.client ?? this.client).post({
|
|
189
|
+
url: "/log",
|
|
190
|
+
...options,
|
|
191
|
+
...params,
|
|
192
|
+
headers: {
|
|
193
|
+
"Content-Type": "application/json",
|
|
194
|
+
...options?.headers,
|
|
195
|
+
...params.headers,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* List agents
|
|
201
|
+
*
|
|
202
|
+
* Get a list of all available AI agents in the Kilo system.
|
|
203
|
+
*/
|
|
204
|
+
agents(parameters, options) {
|
|
205
|
+
const params = buildClientParams([parameters], [
|
|
206
|
+
{
|
|
207
|
+
args: [
|
|
208
|
+
{ in: "query", key: "directory" },
|
|
209
|
+
{ in: "query", key: "workspace" },
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
]);
|
|
213
|
+
return (options?.client ?? this.client).get({
|
|
214
|
+
url: "/agent",
|
|
215
|
+
...options,
|
|
216
|
+
...params,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* List skills
|
|
221
|
+
*
|
|
222
|
+
* Get a list of all available skills in the Kilo system.
|
|
223
|
+
*/
|
|
224
|
+
skills(parameters, options) {
|
|
225
|
+
const params = buildClientParams([parameters], [
|
|
226
|
+
{
|
|
227
|
+
args: [
|
|
228
|
+
{ in: "query", key: "directory" },
|
|
229
|
+
{ in: "query", key: "workspace" },
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
]);
|
|
233
|
+
return (options?.client ?? this.client).get({
|
|
234
|
+
url: "/skill",
|
|
235
|
+
...options,
|
|
236
|
+
...params,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
169
240
|
export class Project extends HeyApiClient {
|
|
170
241
|
/**
|
|
171
242
|
* List all projects
|
|
@@ -874,6 +945,7 @@ export class Session2 extends HeyApiClient {
|
|
|
874
945
|
{ in: "body", key: "title" },
|
|
875
946
|
{ in: "body", key: "permission" },
|
|
876
947
|
{ in: "body", key: "platform" },
|
|
948
|
+
{ in: "body", key: "workspaceID" },
|
|
877
949
|
],
|
|
878
950
|
},
|
|
879
951
|
]);
|
|
@@ -1203,6 +1275,7 @@ export class Session2 extends HeyApiClient {
|
|
|
1203
1275
|
{ in: "query", key: "directory" },
|
|
1204
1276
|
{ in: "query", key: "workspace" },
|
|
1205
1277
|
{ in: "query", key: "limit" },
|
|
1278
|
+
{ in: "query", key: "before" },
|
|
1206
1279
|
],
|
|
1207
1280
|
},
|
|
1208
1281
|
]);
|
|
@@ -1723,70 +1796,6 @@ export class Question extends HeyApiClient {
|
|
|
1723
1796
|
});
|
|
1724
1797
|
}
|
|
1725
1798
|
}
|
|
1726
|
-
export class Network extends HeyApiClient {
|
|
1727
|
-
/**
|
|
1728
|
-
* List pending network waits
|
|
1729
|
-
*
|
|
1730
|
-
* Get all pending network reconnect requests across all sessions.
|
|
1731
|
-
*/
|
|
1732
|
-
list(parameters, options) {
|
|
1733
|
-
const params = buildClientParams([parameters], [
|
|
1734
|
-
{
|
|
1735
|
-
args: [
|
|
1736
|
-
{ in: "query", key: "directory" },
|
|
1737
|
-
{ in: "query", key: "workspace" },
|
|
1738
|
-
],
|
|
1739
|
-
},
|
|
1740
|
-
]);
|
|
1741
|
-
return (options?.client ?? this.client).get({
|
|
1742
|
-
url: "/network",
|
|
1743
|
-
...options,
|
|
1744
|
-
...params,
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
/**
|
|
1748
|
-
* Resume after network wait
|
|
1749
|
-
*
|
|
1750
|
-
* Resume a pending session after reconnecting network-dependent services.
|
|
1751
|
-
*/
|
|
1752
|
-
reply(parameters, options) {
|
|
1753
|
-
const params = buildClientParams([parameters], [
|
|
1754
|
-
{
|
|
1755
|
-
args: [
|
|
1756
|
-
{ in: "path", key: "requestID" },
|
|
1757
|
-
{ in: "query", key: "directory" },
|
|
1758
|
-
{ in: "query", key: "workspace" },
|
|
1759
|
-
],
|
|
1760
|
-
},
|
|
1761
|
-
]);
|
|
1762
|
-
return (options?.client ?? this.client).post({
|
|
1763
|
-
url: "/network/{requestID}/reply",
|
|
1764
|
-
...options,
|
|
1765
|
-
...params,
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
/**
|
|
1769
|
-
* Reject network resume request
|
|
1770
|
-
*
|
|
1771
|
-
* Stop a pending session instead of resuming after network reconnect.
|
|
1772
|
-
*/
|
|
1773
|
-
reject(parameters, options) {
|
|
1774
|
-
const params = buildClientParams([parameters], [
|
|
1775
|
-
{
|
|
1776
|
-
args: [
|
|
1777
|
-
{ in: "path", key: "requestID" },
|
|
1778
|
-
{ in: "query", key: "directory" },
|
|
1779
|
-
{ in: "query", key: "workspace" },
|
|
1780
|
-
],
|
|
1781
|
-
},
|
|
1782
|
-
]);
|
|
1783
|
-
return (options?.client ?? this.client).post({
|
|
1784
|
-
url: "/network/{requestID}/reject",
|
|
1785
|
-
...options,
|
|
1786
|
-
...params,
|
|
1787
|
-
});
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
1799
|
export class Oauth extends HeyApiClient {
|
|
1791
1800
|
/**
|
|
1792
1801
|
* OAuth authorize
|
|
@@ -1801,6 +1810,7 @@ export class Oauth extends HeyApiClient {
|
|
|
1801
1810
|
{ in: "query", key: "directory" },
|
|
1802
1811
|
{ in: "query", key: "workspace" },
|
|
1803
1812
|
{ in: "body", key: "method" },
|
|
1813
|
+
{ in: "body", key: "inputs" },
|
|
1804
1814
|
],
|
|
1805
1815
|
},
|
|
1806
1816
|
]);
|
|
@@ -1890,284 +1900,221 @@ export class Provider extends HeyApiClient {
|
|
|
1890
1900
|
return (this._oauth ??= new Oauth({ client: this.client }));
|
|
1891
1901
|
}
|
|
1892
1902
|
}
|
|
1893
|
-
export class
|
|
1903
|
+
export class Find extends HeyApiClient {
|
|
1894
1904
|
/**
|
|
1895
|
-
*
|
|
1905
|
+
* Find text
|
|
1896
1906
|
*
|
|
1897
|
-
*
|
|
1907
|
+
* Search for text patterns across files in the project using ripgrep.
|
|
1898
1908
|
*/
|
|
1899
|
-
|
|
1909
|
+
text(parameters, options) {
|
|
1900
1910
|
const params = buildClientParams([parameters], [
|
|
1901
1911
|
{
|
|
1902
1912
|
args: [
|
|
1903
1913
|
{ in: "query", key: "directory" },
|
|
1904
1914
|
{ in: "query", key: "workspace" },
|
|
1905
|
-
{ in: "
|
|
1906
|
-
{ in: "body", key: "properties" },
|
|
1915
|
+
{ in: "query", key: "pattern" },
|
|
1907
1916
|
],
|
|
1908
1917
|
},
|
|
1909
1918
|
]);
|
|
1910
|
-
return (options?.client ?? this.client).
|
|
1911
|
-
url: "/
|
|
1919
|
+
return (options?.client ?? this.client).get({
|
|
1920
|
+
url: "/find",
|
|
1912
1921
|
...options,
|
|
1913
1922
|
...params,
|
|
1914
|
-
headers: {
|
|
1915
|
-
"Content-Type": "application/json",
|
|
1916
|
-
...options?.headers,
|
|
1917
|
-
...params.headers,
|
|
1918
|
-
},
|
|
1919
1923
|
});
|
|
1920
1924
|
}
|
|
1921
|
-
}
|
|
1922
|
-
export class CommitMessage extends HeyApiClient {
|
|
1923
1925
|
/**
|
|
1924
|
-
*
|
|
1926
|
+
* Find files
|
|
1925
1927
|
*
|
|
1926
|
-
*
|
|
1928
|
+
* Search for files or directories by name or pattern in the project directory.
|
|
1927
1929
|
*/
|
|
1928
|
-
|
|
1930
|
+
files(parameters, options) {
|
|
1929
1931
|
const params = buildClientParams([parameters], [
|
|
1930
1932
|
{
|
|
1931
1933
|
args: [
|
|
1932
1934
|
{ in: "query", key: "directory" },
|
|
1933
1935
|
{ in: "query", key: "workspace" },
|
|
1934
|
-
{ in: "
|
|
1935
|
-
{ in: "
|
|
1936
|
-
{ in: "
|
|
1936
|
+
{ in: "query", key: "query" },
|
|
1937
|
+
{ in: "query", key: "dirs" },
|
|
1938
|
+
{ in: "query", key: "type" },
|
|
1939
|
+
{ in: "query", key: "limit" },
|
|
1937
1940
|
],
|
|
1938
1941
|
},
|
|
1939
1942
|
]);
|
|
1940
|
-
return (options?.client ?? this.client).
|
|
1941
|
-
url: "/
|
|
1943
|
+
return (options?.client ?? this.client).get({
|
|
1944
|
+
url: "/find/file",
|
|
1942
1945
|
...options,
|
|
1943
1946
|
...params,
|
|
1944
|
-
headers: {
|
|
1945
|
-
"Content-Type": "application/json",
|
|
1946
|
-
...options?.headers,
|
|
1947
|
-
...params.headers,
|
|
1948
|
-
},
|
|
1949
1947
|
});
|
|
1950
1948
|
}
|
|
1951
|
-
}
|
|
1952
|
-
export class EnhancePrompt extends HeyApiClient {
|
|
1953
1949
|
/**
|
|
1954
|
-
*
|
|
1950
|
+
* Find symbols
|
|
1955
1951
|
*
|
|
1956
|
-
*
|
|
1952
|
+
* Search for workspace symbols like functions, classes, and variables using LSP.
|
|
1957
1953
|
*/
|
|
1958
|
-
|
|
1954
|
+
symbols(parameters, options) {
|
|
1959
1955
|
const params = buildClientParams([parameters], [
|
|
1960
1956
|
{
|
|
1961
1957
|
args: [
|
|
1962
1958
|
{ in: "query", key: "directory" },
|
|
1963
1959
|
{ in: "query", key: "workspace" },
|
|
1964
|
-
{ in: "
|
|
1960
|
+
{ in: "query", key: "query" },
|
|
1965
1961
|
],
|
|
1966
1962
|
},
|
|
1967
1963
|
]);
|
|
1968
|
-
return (options?.client ?? this.client).
|
|
1969
|
-
url: "/
|
|
1964
|
+
return (options?.client ?? this.client).get({
|
|
1965
|
+
url: "/find/symbol",
|
|
1970
1966
|
...options,
|
|
1971
1967
|
...params,
|
|
1972
|
-
headers: {
|
|
1973
|
-
"Content-Type": "application/json",
|
|
1974
|
-
...options?.headers,
|
|
1975
|
-
...params.headers,
|
|
1976
|
-
},
|
|
1977
1968
|
});
|
|
1978
1969
|
}
|
|
1979
1970
|
}
|
|
1980
|
-
export class
|
|
1971
|
+
export class File extends HeyApiClient {
|
|
1981
1972
|
/**
|
|
1982
|
-
*
|
|
1973
|
+
* List files
|
|
1983
1974
|
*
|
|
1984
|
-
*
|
|
1975
|
+
* List files and directories in a specified path.
|
|
1985
1976
|
*/
|
|
1986
|
-
|
|
1977
|
+
list(parameters, options) {
|
|
1987
1978
|
const params = buildClientParams([parameters], [
|
|
1988
1979
|
{
|
|
1989
1980
|
args: [
|
|
1990
1981
|
{ in: "query", key: "directory" },
|
|
1991
1982
|
{ in: "query", key: "workspace" },
|
|
1992
|
-
{ in: "
|
|
1993
|
-
{ in: "body", key: "worktree" },
|
|
1994
|
-
{ in: "body", key: "vcs" },
|
|
1995
|
-
{ in: "body", key: "name" },
|
|
1996
|
-
{ in: "body", key: "iconUrl" },
|
|
1997
|
-
{ in: "body", key: "iconColor" },
|
|
1998
|
-
{ in: "body", key: "timeCreated" },
|
|
1999
|
-
{ in: "body", key: "timeUpdated" },
|
|
2000
|
-
{ in: "body", key: "timeInitialized" },
|
|
2001
|
-
{ in: "body", key: "sandboxes" },
|
|
2002
|
-
{ in: "body", key: "commands" },
|
|
1983
|
+
{ in: "query", key: "path" },
|
|
2003
1984
|
],
|
|
2004
1985
|
},
|
|
2005
1986
|
]);
|
|
2006
|
-
return (options?.client ?? this.client).
|
|
2007
|
-
url: "/
|
|
1987
|
+
return (options?.client ?? this.client).get({
|
|
1988
|
+
url: "/file",
|
|
2008
1989
|
...options,
|
|
2009
1990
|
...params,
|
|
2010
|
-
headers: {
|
|
2011
|
-
"Content-Type": "application/json",
|
|
2012
|
-
...options?.headers,
|
|
2013
|
-
...params.headers,
|
|
2014
|
-
},
|
|
2015
1991
|
});
|
|
2016
1992
|
}
|
|
2017
1993
|
/**
|
|
2018
|
-
*
|
|
1994
|
+
* Read file
|
|
2019
1995
|
*
|
|
2020
|
-
*
|
|
1996
|
+
* Read the content of a specified file.
|
|
2021
1997
|
*/
|
|
2022
|
-
|
|
1998
|
+
read(parameters, options) {
|
|
2023
1999
|
const params = buildClientParams([parameters], [
|
|
2024
2000
|
{
|
|
2025
2001
|
args: [
|
|
2026
|
-
{
|
|
2027
|
-
in: "query",
|
|
2028
|
-
key: "query_directory",
|
|
2029
|
-
map: "directory",
|
|
2030
|
-
},
|
|
2002
|
+
{ in: "query", key: "directory" },
|
|
2031
2003
|
{ in: "query", key: "workspace" },
|
|
2032
|
-
{ in: "
|
|
2033
|
-
{ in: "body", key: "projectID" },
|
|
2034
|
-
{ in: "body", key: "force" },
|
|
2035
|
-
{ in: "body", key: "workspaceID" },
|
|
2036
|
-
{ in: "body", key: "parentID" },
|
|
2037
|
-
{ in: "body", key: "slug" },
|
|
2038
|
-
{
|
|
2039
|
-
in: "body",
|
|
2040
|
-
key: "body_directory",
|
|
2041
|
-
map: "directory",
|
|
2042
|
-
},
|
|
2043
|
-
{ in: "body", key: "title" },
|
|
2044
|
-
{ in: "body", key: "version" },
|
|
2045
|
-
{ in: "body", key: "shareURL" },
|
|
2046
|
-
{ in: "body", key: "summary" },
|
|
2047
|
-
{ in: "body", key: "revert" },
|
|
2048
|
-
{ in: "body", key: "permission" },
|
|
2049
|
-
{ in: "body", key: "timeCreated" },
|
|
2050
|
-
{ in: "body", key: "timeUpdated" },
|
|
2051
|
-
{ in: "body", key: "timeCompacting" },
|
|
2052
|
-
{ in: "body", key: "timeArchived" },
|
|
2004
|
+
{ in: "query", key: "path" },
|
|
2053
2005
|
],
|
|
2054
2006
|
},
|
|
2055
2007
|
]);
|
|
2056
|
-
return (options?.client ?? this.client).
|
|
2057
|
-
url: "/
|
|
2008
|
+
return (options?.client ?? this.client).get({
|
|
2009
|
+
url: "/file/content",
|
|
2058
2010
|
...options,
|
|
2059
2011
|
...params,
|
|
2060
|
-
headers: {
|
|
2061
|
-
"Content-Type": "application/json",
|
|
2062
|
-
...options?.headers,
|
|
2063
|
-
...params.headers,
|
|
2064
|
-
},
|
|
2065
2012
|
});
|
|
2066
2013
|
}
|
|
2067
2014
|
/**
|
|
2068
|
-
*
|
|
2015
|
+
* Get file status
|
|
2069
2016
|
*
|
|
2070
|
-
*
|
|
2017
|
+
* Get the git status of all files in the project.
|
|
2071
2018
|
*/
|
|
2072
|
-
|
|
2019
|
+
status(parameters, options) {
|
|
2073
2020
|
const params = buildClientParams([parameters], [
|
|
2074
2021
|
{
|
|
2075
2022
|
args: [
|
|
2076
2023
|
{ in: "query", key: "directory" },
|
|
2077
2024
|
{ in: "query", key: "workspace" },
|
|
2078
|
-
{ in: "body", key: "id" },
|
|
2079
|
-
{ in: "body", key: "sessionID" },
|
|
2080
|
-
{ in: "body", key: "timeCreated" },
|
|
2081
|
-
{ in: "body", key: "data" },
|
|
2082
2025
|
],
|
|
2083
2026
|
},
|
|
2084
2027
|
]);
|
|
2085
|
-
return (options?.client ?? this.client).
|
|
2086
|
-
url: "/
|
|
2028
|
+
return (options?.client ?? this.client).get({
|
|
2029
|
+
url: "/file/status",
|
|
2087
2030
|
...options,
|
|
2088
2031
|
...params,
|
|
2089
|
-
headers: {
|
|
2090
|
-
"Content-Type": "application/json",
|
|
2091
|
-
...options?.headers,
|
|
2092
|
-
...params.headers,
|
|
2093
|
-
},
|
|
2094
2032
|
});
|
|
2095
2033
|
}
|
|
2034
|
+
}
|
|
2035
|
+
export class Event extends HeyApiClient {
|
|
2096
2036
|
/**
|
|
2097
|
-
*
|
|
2037
|
+
* Subscribe to events
|
|
2098
2038
|
*
|
|
2099
|
-
*
|
|
2039
|
+
* Get events
|
|
2100
2040
|
*/
|
|
2101
|
-
|
|
2041
|
+
subscribe(parameters, options) {
|
|
2102
2042
|
const params = buildClientParams([parameters], [
|
|
2103
2043
|
{
|
|
2104
2044
|
args: [
|
|
2105
2045
|
{ in: "query", key: "directory" },
|
|
2106
2046
|
{ in: "query", key: "workspace" },
|
|
2107
|
-
{ in: "body", key: "id" },
|
|
2108
|
-
{ in: "body", key: "messageID" },
|
|
2109
|
-
{ in: "body", key: "sessionID" },
|
|
2110
|
-
{ in: "body", key: "timeCreated" },
|
|
2111
|
-
{ in: "body", key: "data" },
|
|
2112
2047
|
],
|
|
2113
2048
|
},
|
|
2114
2049
|
]);
|
|
2115
|
-
return (options?.client ?? this.client).
|
|
2116
|
-
url: "/
|
|
2050
|
+
return (options?.client ?? this.client).sse.get({
|
|
2051
|
+
url: "/event",
|
|
2117
2052
|
...options,
|
|
2118
2053
|
...params,
|
|
2119
|
-
headers: {
|
|
2120
|
-
"Content-Type": "application/json",
|
|
2121
|
-
...options?.headers,
|
|
2122
|
-
...params.headers,
|
|
2123
|
-
},
|
|
2124
2054
|
});
|
|
2125
2055
|
}
|
|
2126
2056
|
}
|
|
2127
|
-
export class
|
|
2057
|
+
export class Auth2 extends HeyApiClient {
|
|
2128
2058
|
/**
|
|
2129
|
-
* Remove
|
|
2059
|
+
* Remove MCP OAuth
|
|
2130
2060
|
*
|
|
2131
|
-
* Remove
|
|
2061
|
+
* Remove OAuth credentials for an MCP server
|
|
2132
2062
|
*/
|
|
2133
|
-
|
|
2063
|
+
remove(parameters, options) {
|
|
2134
2064
|
const params = buildClientParams([parameters], [
|
|
2135
2065
|
{
|
|
2136
2066
|
args: [
|
|
2067
|
+
{ in: "path", key: "name" },
|
|
2137
2068
|
{ in: "query", key: "directory" },
|
|
2138
2069
|
{ in: "query", key: "workspace" },
|
|
2139
|
-
{ in: "body", key: "location" },
|
|
2140
2070
|
],
|
|
2141
2071
|
},
|
|
2142
2072
|
]);
|
|
2143
|
-
return (options?.client ?? this.client).
|
|
2144
|
-
url: "/
|
|
2073
|
+
return (options?.client ?? this.client).delete({
|
|
2074
|
+
url: "/mcp/{name}/auth",
|
|
2145
2075
|
...options,
|
|
2146
2076
|
...params,
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Start MCP OAuth
|
|
2081
|
+
*
|
|
2082
|
+
* Start OAuth authentication flow for a Model Context Protocol (MCP) server.
|
|
2083
|
+
*/
|
|
2084
|
+
start(parameters, options) {
|
|
2085
|
+
const params = buildClientParams([parameters], [
|
|
2086
|
+
{
|
|
2087
|
+
args: [
|
|
2088
|
+
{ in: "path", key: "name" },
|
|
2089
|
+
{ in: "query", key: "directory" },
|
|
2090
|
+
{ in: "query", key: "workspace" },
|
|
2091
|
+
],
|
|
2151
2092
|
},
|
|
2093
|
+
]);
|
|
2094
|
+
return (options?.client ?? this.client).post({
|
|
2095
|
+
url: "/mcp/{name}/auth",
|
|
2096
|
+
...options,
|
|
2097
|
+
...params,
|
|
2152
2098
|
});
|
|
2153
2099
|
}
|
|
2154
2100
|
/**
|
|
2155
|
-
*
|
|
2101
|
+
* Complete MCP OAuth
|
|
2156
2102
|
*
|
|
2157
|
-
*
|
|
2103
|
+
* Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
|
|
2158
2104
|
*/
|
|
2159
|
-
|
|
2105
|
+
callback(parameters, options) {
|
|
2160
2106
|
const params = buildClientParams([parameters], [
|
|
2161
2107
|
{
|
|
2162
2108
|
args: [
|
|
2109
|
+
{ in: "path", key: "name" },
|
|
2163
2110
|
{ in: "query", key: "directory" },
|
|
2164
2111
|
{ in: "query", key: "workspace" },
|
|
2165
|
-
{ in: "body", key: "
|
|
2112
|
+
{ in: "body", key: "code" },
|
|
2166
2113
|
],
|
|
2167
2114
|
},
|
|
2168
2115
|
]);
|
|
2169
2116
|
return (options?.client ?? this.client).post({
|
|
2170
|
-
url: "/
|
|
2117
|
+
url: "/mcp/{name}/auth/callback",
|
|
2171
2118
|
...options,
|
|
2172
2119
|
...params,
|
|
2173
2120
|
headers: {
|
|
@@ -2177,78 +2124,67 @@ export class Kilocode extends HeyApiClient {
|
|
|
2177
2124
|
},
|
|
2178
2125
|
});
|
|
2179
2126
|
}
|
|
2180
|
-
_sessionImport;
|
|
2181
|
-
get sessionImport() {
|
|
2182
|
-
return (this._sessionImport ??= new SessionImport({ client: this.client }));
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
export class Organization extends HeyApiClient {
|
|
2186
2127
|
/**
|
|
2187
|
-
*
|
|
2128
|
+
* Authenticate MCP OAuth
|
|
2188
2129
|
*
|
|
2189
|
-
*
|
|
2130
|
+
* Start OAuth flow and wait for callback (opens browser)
|
|
2190
2131
|
*/
|
|
2191
|
-
|
|
2132
|
+
authenticate(parameters, options) {
|
|
2192
2133
|
const params = buildClientParams([parameters], [
|
|
2193
2134
|
{
|
|
2194
2135
|
args: [
|
|
2136
|
+
{ in: "path", key: "name" },
|
|
2195
2137
|
{ in: "query", key: "directory" },
|
|
2196
2138
|
{ in: "query", key: "workspace" },
|
|
2197
|
-
{ in: "body", key: "organizationId" },
|
|
2198
2139
|
],
|
|
2199
2140
|
},
|
|
2200
2141
|
]);
|
|
2201
2142
|
return (options?.client ?? this.client).post({
|
|
2202
|
-
url: "/
|
|
2143
|
+
url: "/mcp/{name}/auth/authenticate",
|
|
2203
2144
|
...options,
|
|
2204
2145
|
...params,
|
|
2205
|
-
headers: {
|
|
2206
|
-
"Content-Type": "application/json",
|
|
2207
|
-
...options?.headers,
|
|
2208
|
-
...params.headers,
|
|
2209
|
-
},
|
|
2210
2146
|
});
|
|
2211
2147
|
}
|
|
2212
2148
|
}
|
|
2213
|
-
export class
|
|
2149
|
+
export class Mcp extends HeyApiClient {
|
|
2214
2150
|
/**
|
|
2215
|
-
* Get
|
|
2151
|
+
* Get MCP status
|
|
2216
2152
|
*
|
|
2217
|
-
*
|
|
2153
|
+
* Get the status of all Model Context Protocol (MCP) servers.
|
|
2218
2154
|
*/
|
|
2219
|
-
|
|
2155
|
+
status(parameters, options) {
|
|
2220
2156
|
const params = buildClientParams([parameters], [
|
|
2221
2157
|
{
|
|
2222
2158
|
args: [
|
|
2223
|
-
{ in: "path", key: "id" },
|
|
2224
2159
|
{ in: "query", key: "directory" },
|
|
2225
2160
|
{ in: "query", key: "workspace" },
|
|
2226
2161
|
],
|
|
2227
2162
|
},
|
|
2228
2163
|
]);
|
|
2229
2164
|
return (options?.client ?? this.client).get({
|
|
2230
|
-
url: "/
|
|
2165
|
+
url: "/mcp",
|
|
2231
2166
|
...options,
|
|
2232
2167
|
...params,
|
|
2233
2168
|
});
|
|
2234
2169
|
}
|
|
2235
2170
|
/**
|
|
2236
|
-
*
|
|
2171
|
+
* Add MCP server
|
|
2237
2172
|
*
|
|
2238
|
-
*
|
|
2173
|
+
* Dynamically add a new Model Context Protocol (MCP) server to the system.
|
|
2239
2174
|
*/
|
|
2240
|
-
|
|
2175
|
+
add(parameters, options) {
|
|
2241
2176
|
const params = buildClientParams([parameters], [
|
|
2242
2177
|
{
|
|
2243
2178
|
args: [
|
|
2244
2179
|
{ in: "query", key: "directory" },
|
|
2245
2180
|
{ in: "query", key: "workspace" },
|
|
2246
|
-
{ in: "body", key: "
|
|
2181
|
+
{ in: "body", key: "name" },
|
|
2182
|
+
{ in: "body", key: "config" },
|
|
2247
2183
|
],
|
|
2248
2184
|
},
|
|
2249
2185
|
]);
|
|
2250
2186
|
return (options?.client ?? this.client).post({
|
|
2251
|
-
url: "/
|
|
2187
|
+
url: "/mcp",
|
|
2252
2188
|
...options,
|
|
2253
2189
|
...params,
|
|
2254
2190
|
headers: {
|
|
@@ -2258,62 +2194,56 @@ export class Session3 extends HeyApiClient {
|
|
|
2258
2194
|
},
|
|
2259
2195
|
});
|
|
2260
2196
|
}
|
|
2261
|
-
}
|
|
2262
|
-
export class Cloud extends HeyApiClient {
|
|
2263
|
-
_session;
|
|
2264
|
-
get session() {
|
|
2265
|
-
return (this._session ??= new Session3({ client: this.client }));
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
export class Claw extends HeyApiClient {
|
|
2269
2197
|
/**
|
|
2270
|
-
*
|
|
2271
|
-
*
|
|
2272
|
-
* Fetch the user's KiloClaw instance status via the KiloClaw worker
|
|
2198
|
+
* Connect an MCP server
|
|
2273
2199
|
*/
|
|
2274
|
-
|
|
2200
|
+
connect(parameters, options) {
|
|
2275
2201
|
const params = buildClientParams([parameters], [
|
|
2276
2202
|
{
|
|
2277
2203
|
args: [
|
|
2204
|
+
{ in: "path", key: "name" },
|
|
2278
2205
|
{ in: "query", key: "directory" },
|
|
2279
2206
|
{ in: "query", key: "workspace" },
|
|
2280
2207
|
],
|
|
2281
2208
|
},
|
|
2282
2209
|
]);
|
|
2283
|
-
return (options?.client ?? this.client).
|
|
2284
|
-
url: "/
|
|
2210
|
+
return (options?.client ?? this.client).post({
|
|
2211
|
+
url: "/mcp/{name}/connect",
|
|
2285
2212
|
...options,
|
|
2286
2213
|
...params,
|
|
2287
2214
|
});
|
|
2288
2215
|
}
|
|
2289
2216
|
/**
|
|
2290
|
-
*
|
|
2291
|
-
*
|
|
2292
|
-
* Fetch Stream Chat credentials for the user's KiloClaw instance
|
|
2217
|
+
* Disconnect an MCP server
|
|
2293
2218
|
*/
|
|
2294
|
-
|
|
2219
|
+
disconnect(parameters, options) {
|
|
2295
2220
|
const params = buildClientParams([parameters], [
|
|
2296
2221
|
{
|
|
2297
2222
|
args: [
|
|
2223
|
+
{ in: "path", key: "name" },
|
|
2298
2224
|
{ in: "query", key: "directory" },
|
|
2299
2225
|
{ in: "query", key: "workspace" },
|
|
2300
2226
|
],
|
|
2301
2227
|
},
|
|
2302
2228
|
]);
|
|
2303
|
-
return (options?.client ?? this.client).
|
|
2304
|
-
url: "/
|
|
2229
|
+
return (options?.client ?? this.client).post({
|
|
2230
|
+
url: "/mcp/{name}/disconnect",
|
|
2305
2231
|
...options,
|
|
2306
2232
|
...params,
|
|
2307
2233
|
});
|
|
2308
2234
|
}
|
|
2235
|
+
_auth;
|
|
2236
|
+
get auth() {
|
|
2237
|
+
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2238
|
+
}
|
|
2309
2239
|
}
|
|
2310
|
-
export class
|
|
2240
|
+
export class Control extends HeyApiClient {
|
|
2311
2241
|
/**
|
|
2312
|
-
* Get
|
|
2242
|
+
* Get next TUI request
|
|
2313
2243
|
*
|
|
2314
|
-
*
|
|
2244
|
+
* Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
|
|
2315
2245
|
*/
|
|
2316
|
-
|
|
2246
|
+
next(parameters, options) {
|
|
2317
2247
|
const params = buildClientParams([parameters], [
|
|
2318
2248
|
{
|
|
2319
2249
|
args: [
|
|
@@ -2323,52 +2253,56 @@ export class Kilo extends HeyApiClient {
|
|
|
2323
2253
|
},
|
|
2324
2254
|
]);
|
|
2325
2255
|
return (options?.client ?? this.client).get({
|
|
2326
|
-
url: "/
|
|
2256
|
+
url: "/tui/control/next",
|
|
2327
2257
|
...options,
|
|
2328
2258
|
...params,
|
|
2329
2259
|
});
|
|
2330
2260
|
}
|
|
2331
2261
|
/**
|
|
2332
|
-
*
|
|
2262
|
+
* Submit TUI response
|
|
2333
2263
|
*
|
|
2334
|
-
*
|
|
2264
|
+
* Submit a response to the TUI request queue to complete a pending request.
|
|
2335
2265
|
*/
|
|
2336
|
-
|
|
2266
|
+
response(parameters, options) {
|
|
2337
2267
|
const params = buildClientParams([parameters], [
|
|
2338
2268
|
{
|
|
2339
2269
|
args: [
|
|
2340
2270
|
{ in: "query", key: "directory" },
|
|
2341
2271
|
{ in: "query", key: "workspace" },
|
|
2272
|
+
{ key: "body", map: "body" },
|
|
2342
2273
|
],
|
|
2343
2274
|
},
|
|
2344
2275
|
]);
|
|
2345
|
-
return (options?.client ?? this.client).
|
|
2346
|
-
url: "/
|
|
2276
|
+
return (options?.client ?? this.client).post({
|
|
2277
|
+
url: "/tui/control/response",
|
|
2347
2278
|
...options,
|
|
2348
2279
|
...params,
|
|
2280
|
+
headers: {
|
|
2281
|
+
"Content-Type": "application/json",
|
|
2282
|
+
...options?.headers,
|
|
2283
|
+
...params.headers,
|
|
2284
|
+
},
|
|
2349
2285
|
});
|
|
2350
2286
|
}
|
|
2287
|
+
}
|
|
2288
|
+
export class Tui extends HeyApiClient {
|
|
2351
2289
|
/**
|
|
2352
|
-
*
|
|
2290
|
+
* Append TUI prompt
|
|
2353
2291
|
*
|
|
2354
|
-
*
|
|
2292
|
+
* Append prompt to the TUI
|
|
2355
2293
|
*/
|
|
2356
|
-
|
|
2294
|
+
appendPrompt(parameters, options) {
|
|
2357
2295
|
const params = buildClientParams([parameters], [
|
|
2358
2296
|
{
|
|
2359
2297
|
args: [
|
|
2360
2298
|
{ in: "query", key: "directory" },
|
|
2361
2299
|
{ in: "query", key: "workspace" },
|
|
2362
|
-
{ in: "body", key: "
|
|
2363
|
-
{ in: "body", key: "suffix" },
|
|
2364
|
-
{ in: "body", key: "model" },
|
|
2365
|
-
{ in: "body", key: "maxTokens" },
|
|
2366
|
-
{ in: "body", key: "temperature" },
|
|
2300
|
+
{ in: "body", key: "text" },
|
|
2367
2301
|
],
|
|
2368
2302
|
},
|
|
2369
2303
|
]);
|
|
2370
|
-
return (options?.client ?? this.client).
|
|
2371
|
-
url: "/
|
|
2304
|
+
return (options?.client ?? this.client).post({
|
|
2305
|
+
url: "/tui/append-prompt",
|
|
2372
2306
|
...options,
|
|
2373
2307
|
...params,
|
|
2374
2308
|
headers: {
|
|
@@ -2379,11 +2313,11 @@ export class Kilo extends HeyApiClient {
|
|
|
2379
2313
|
});
|
|
2380
2314
|
}
|
|
2381
2315
|
/**
|
|
2382
|
-
*
|
|
2316
|
+
* Open help dialog
|
|
2383
2317
|
*
|
|
2384
|
-
*
|
|
2318
|
+
* Open the help dialog in the TUI to display user assistance information.
|
|
2385
2319
|
*/
|
|
2386
|
-
|
|
2320
|
+
openHelp(parameters, options) {
|
|
2387
2321
|
const params = buildClientParams([parameters], [
|
|
2388
2322
|
{
|
|
2389
2323
|
args: [
|
|
@@ -2392,277 +2326,317 @@ export class Kilo extends HeyApiClient {
|
|
|
2392
2326
|
],
|
|
2393
2327
|
},
|
|
2394
2328
|
]);
|
|
2395
|
-
return (options?.client ?? this.client).
|
|
2396
|
-
url: "/
|
|
2329
|
+
return (options?.client ?? this.client).post({
|
|
2330
|
+
url: "/tui/open-help",
|
|
2397
2331
|
...options,
|
|
2398
2332
|
...params,
|
|
2399
2333
|
});
|
|
2400
2334
|
}
|
|
2401
2335
|
/**
|
|
2402
|
-
*
|
|
2336
|
+
* Open sessions dialog
|
|
2403
2337
|
*
|
|
2404
|
-
*
|
|
2338
|
+
* Open the session dialog
|
|
2405
2339
|
*/
|
|
2406
|
-
|
|
2340
|
+
openSessions(parameters, options) {
|
|
2407
2341
|
const params = buildClientParams([parameters], [
|
|
2408
2342
|
{
|
|
2409
2343
|
args: [
|
|
2410
2344
|
{ in: "query", key: "directory" },
|
|
2411
2345
|
{ in: "query", key: "workspace" },
|
|
2412
|
-
{ in: "query", key: "cursor" },
|
|
2413
|
-
{ in: "query", key: "limit" },
|
|
2414
|
-
{ in: "query", key: "gitUrl" },
|
|
2415
2346
|
],
|
|
2416
2347
|
},
|
|
2417
2348
|
]);
|
|
2418
|
-
return (options?.client ?? this.client).
|
|
2419
|
-
url: "/
|
|
2349
|
+
return (options?.client ?? this.client).post({
|
|
2350
|
+
url: "/tui/open-sessions",
|
|
2420
2351
|
...options,
|
|
2421
2352
|
...params,
|
|
2422
2353
|
});
|
|
2423
2354
|
}
|
|
2424
|
-
_organization;
|
|
2425
|
-
get organization() {
|
|
2426
|
-
return (this._organization ??= new Organization({ client: this.client }));
|
|
2427
|
-
}
|
|
2428
|
-
_cloud;
|
|
2429
|
-
get cloud() {
|
|
2430
|
-
return (this._cloud ??= new Cloud({ client: this.client }));
|
|
2431
|
-
}
|
|
2432
|
-
_claw;
|
|
2433
|
-
get claw() {
|
|
2434
|
-
return (this._claw ??= new Claw({ client: this.client }));
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
export class Find extends HeyApiClient {
|
|
2438
2355
|
/**
|
|
2439
|
-
*
|
|
2356
|
+
* Open themes dialog
|
|
2440
2357
|
*
|
|
2441
|
-
*
|
|
2358
|
+
* Open the theme dialog
|
|
2442
2359
|
*/
|
|
2443
|
-
|
|
2360
|
+
openThemes(parameters, options) {
|
|
2444
2361
|
const params = buildClientParams([parameters], [
|
|
2445
2362
|
{
|
|
2446
2363
|
args: [
|
|
2447
2364
|
{ in: "query", key: "directory" },
|
|
2448
2365
|
{ in: "query", key: "workspace" },
|
|
2449
|
-
{ in: "query", key: "pattern" },
|
|
2450
2366
|
],
|
|
2451
2367
|
},
|
|
2452
2368
|
]);
|
|
2453
|
-
return (options?.client ?? this.client).
|
|
2454
|
-
url: "/
|
|
2369
|
+
return (options?.client ?? this.client).post({
|
|
2370
|
+
url: "/tui/open-themes",
|
|
2455
2371
|
...options,
|
|
2456
2372
|
...params,
|
|
2457
2373
|
});
|
|
2458
2374
|
}
|
|
2459
2375
|
/**
|
|
2460
|
-
*
|
|
2376
|
+
* Open models dialog
|
|
2461
2377
|
*
|
|
2462
|
-
*
|
|
2378
|
+
* Open the model dialog
|
|
2463
2379
|
*/
|
|
2464
|
-
|
|
2380
|
+
openModels(parameters, options) {
|
|
2465
2381
|
const params = buildClientParams([parameters], [
|
|
2466
2382
|
{
|
|
2467
2383
|
args: [
|
|
2468
2384
|
{ in: "query", key: "directory" },
|
|
2469
2385
|
{ in: "query", key: "workspace" },
|
|
2470
|
-
{ in: "query", key: "query" },
|
|
2471
|
-
{ in: "query", key: "dirs" },
|
|
2472
|
-
{ in: "query", key: "type" },
|
|
2473
|
-
{ in: "query", key: "limit" },
|
|
2474
2386
|
],
|
|
2475
2387
|
},
|
|
2476
2388
|
]);
|
|
2477
|
-
return (options?.client ?? this.client).
|
|
2478
|
-
url: "/
|
|
2389
|
+
return (options?.client ?? this.client).post({
|
|
2390
|
+
url: "/tui/open-models",
|
|
2479
2391
|
...options,
|
|
2480
2392
|
...params,
|
|
2481
2393
|
});
|
|
2482
2394
|
}
|
|
2483
2395
|
/**
|
|
2484
|
-
*
|
|
2396
|
+
* Submit TUI prompt
|
|
2485
2397
|
*
|
|
2486
|
-
*
|
|
2398
|
+
* Submit the prompt
|
|
2487
2399
|
*/
|
|
2488
|
-
|
|
2400
|
+
submitPrompt(parameters, options) {
|
|
2489
2401
|
const params = buildClientParams([parameters], [
|
|
2490
2402
|
{
|
|
2491
2403
|
args: [
|
|
2492
2404
|
{ in: "query", key: "directory" },
|
|
2493
2405
|
{ in: "query", key: "workspace" },
|
|
2494
|
-
{ in: "query", key: "query" },
|
|
2495
2406
|
],
|
|
2496
2407
|
},
|
|
2497
2408
|
]);
|
|
2498
|
-
return (options?.client ?? this.client).
|
|
2499
|
-
url: "/
|
|
2409
|
+
return (options?.client ?? this.client).post({
|
|
2410
|
+
url: "/tui/submit-prompt",
|
|
2500
2411
|
...options,
|
|
2501
2412
|
...params,
|
|
2502
2413
|
});
|
|
2503
2414
|
}
|
|
2504
|
-
}
|
|
2505
|
-
export class File extends HeyApiClient {
|
|
2506
2415
|
/**
|
|
2507
|
-
*
|
|
2416
|
+
* Clear TUI prompt
|
|
2508
2417
|
*
|
|
2509
|
-
*
|
|
2418
|
+
* Clear the prompt
|
|
2510
2419
|
*/
|
|
2511
|
-
|
|
2420
|
+
clearPrompt(parameters, options) {
|
|
2512
2421
|
const params = buildClientParams([parameters], [
|
|
2513
2422
|
{
|
|
2514
2423
|
args: [
|
|
2515
2424
|
{ in: "query", key: "directory" },
|
|
2516
2425
|
{ in: "query", key: "workspace" },
|
|
2517
|
-
{ in: "query", key: "path" },
|
|
2518
2426
|
],
|
|
2519
2427
|
},
|
|
2520
2428
|
]);
|
|
2521
|
-
return (options?.client ?? this.client).
|
|
2522
|
-
url: "/
|
|
2429
|
+
return (options?.client ?? this.client).post({
|
|
2430
|
+
url: "/tui/clear-prompt",
|
|
2523
2431
|
...options,
|
|
2524
2432
|
...params,
|
|
2525
2433
|
});
|
|
2526
2434
|
}
|
|
2527
2435
|
/**
|
|
2528
|
-
*
|
|
2436
|
+
* Execute TUI command
|
|
2529
2437
|
*
|
|
2530
|
-
*
|
|
2438
|
+
* Execute a TUI command (e.g. agent_cycle)
|
|
2531
2439
|
*/
|
|
2532
|
-
|
|
2440
|
+
executeCommand(parameters, options) {
|
|
2533
2441
|
const params = buildClientParams([parameters], [
|
|
2534
2442
|
{
|
|
2535
2443
|
args: [
|
|
2536
2444
|
{ in: "query", key: "directory" },
|
|
2537
2445
|
{ in: "query", key: "workspace" },
|
|
2538
|
-
{ in: "
|
|
2446
|
+
{ in: "body", key: "command" },
|
|
2539
2447
|
],
|
|
2540
2448
|
},
|
|
2541
2449
|
]);
|
|
2542
|
-
return (options?.client ?? this.client).
|
|
2543
|
-
url: "/
|
|
2450
|
+
return (options?.client ?? this.client).post({
|
|
2451
|
+
url: "/tui/execute-command",
|
|
2544
2452
|
...options,
|
|
2545
2453
|
...params,
|
|
2454
|
+
headers: {
|
|
2455
|
+
"Content-Type": "application/json",
|
|
2456
|
+
...options?.headers,
|
|
2457
|
+
...params.headers,
|
|
2458
|
+
},
|
|
2546
2459
|
});
|
|
2547
2460
|
}
|
|
2548
2461
|
/**
|
|
2549
|
-
*
|
|
2462
|
+
* Show TUI toast
|
|
2550
2463
|
*
|
|
2551
|
-
*
|
|
2464
|
+
* Show a toast notification in the TUI
|
|
2552
2465
|
*/
|
|
2553
|
-
|
|
2466
|
+
showToast(parameters, options) {
|
|
2554
2467
|
const params = buildClientParams([parameters], [
|
|
2555
2468
|
{
|
|
2556
2469
|
args: [
|
|
2557
2470
|
{ in: "query", key: "directory" },
|
|
2558
2471
|
{ in: "query", key: "workspace" },
|
|
2472
|
+
{ in: "body", key: "title" },
|
|
2473
|
+
{ in: "body", key: "message" },
|
|
2474
|
+
{ in: "body", key: "variant" },
|
|
2475
|
+
{ in: "body", key: "duration" },
|
|
2559
2476
|
],
|
|
2560
2477
|
},
|
|
2561
2478
|
]);
|
|
2562
|
-
return (options?.client ?? this.client).
|
|
2563
|
-
url: "/
|
|
2479
|
+
return (options?.client ?? this.client).post({
|
|
2480
|
+
url: "/tui/show-toast",
|
|
2564
2481
|
...options,
|
|
2565
2482
|
...params,
|
|
2483
|
+
headers: {
|
|
2484
|
+
"Content-Type": "application/json",
|
|
2485
|
+
...options?.headers,
|
|
2486
|
+
...params.headers,
|
|
2487
|
+
},
|
|
2566
2488
|
});
|
|
2567
2489
|
}
|
|
2568
|
-
}
|
|
2569
|
-
export class Auth2 extends HeyApiClient {
|
|
2570
2490
|
/**
|
|
2571
|
-
*
|
|
2491
|
+
* Publish TUI event
|
|
2572
2492
|
*
|
|
2573
|
-
*
|
|
2493
|
+
* Publish a TUI event
|
|
2574
2494
|
*/
|
|
2575
|
-
|
|
2495
|
+
publish(parameters, options) {
|
|
2576
2496
|
const params = buildClientParams([parameters], [
|
|
2577
2497
|
{
|
|
2578
2498
|
args: [
|
|
2579
|
-
{ in: "path", key: "name" },
|
|
2580
2499
|
{ in: "query", key: "directory" },
|
|
2581
2500
|
{ in: "query", key: "workspace" },
|
|
2501
|
+
{ key: "body", map: "body" },
|
|
2582
2502
|
],
|
|
2583
2503
|
},
|
|
2584
2504
|
]);
|
|
2585
|
-
return (options?.client ?? this.client).
|
|
2586
|
-
url: "/
|
|
2505
|
+
return (options?.client ?? this.client).post({
|
|
2506
|
+
url: "/tui/publish",
|
|
2587
2507
|
...options,
|
|
2588
2508
|
...params,
|
|
2509
|
+
headers: {
|
|
2510
|
+
"Content-Type": "application/json",
|
|
2511
|
+
...options?.headers,
|
|
2512
|
+
...params.headers,
|
|
2513
|
+
},
|
|
2589
2514
|
});
|
|
2590
2515
|
}
|
|
2591
2516
|
/**
|
|
2592
|
-
*
|
|
2517
|
+
* Select session
|
|
2593
2518
|
*
|
|
2594
|
-
*
|
|
2519
|
+
* Navigate the TUI to display the specified session.
|
|
2595
2520
|
*/
|
|
2596
|
-
|
|
2521
|
+
selectSession(parameters, options) {
|
|
2597
2522
|
const params = buildClientParams([parameters], [
|
|
2598
2523
|
{
|
|
2599
2524
|
args: [
|
|
2600
|
-
{ in: "path", key: "name" },
|
|
2601
2525
|
{ in: "query", key: "directory" },
|
|
2602
2526
|
{ in: "query", key: "workspace" },
|
|
2527
|
+
{ in: "body", key: "sessionID" },
|
|
2603
2528
|
],
|
|
2604
2529
|
},
|
|
2605
2530
|
]);
|
|
2606
2531
|
return (options?.client ?? this.client).post({
|
|
2607
|
-
url: "/
|
|
2532
|
+
url: "/tui/select-session",
|
|
2608
2533
|
...options,
|
|
2609
2534
|
...params,
|
|
2535
|
+
headers: {
|
|
2536
|
+
"Content-Type": "application/json",
|
|
2537
|
+
...options?.headers,
|
|
2538
|
+
...params.headers,
|
|
2539
|
+
},
|
|
2610
2540
|
});
|
|
2611
2541
|
}
|
|
2542
|
+
_control;
|
|
2543
|
+
get control() {
|
|
2544
|
+
return (this._control ??= new Control({ client: this.client }));
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
export class Instance extends HeyApiClient {
|
|
2612
2548
|
/**
|
|
2613
|
-
*
|
|
2549
|
+
* Dispose instance
|
|
2614
2550
|
*
|
|
2615
|
-
*
|
|
2551
|
+
* Clean up and dispose the current Kilo instance, releasing all resources.
|
|
2616
2552
|
*/
|
|
2617
|
-
|
|
2553
|
+
dispose(parameters, options) {
|
|
2618
2554
|
const params = buildClientParams([parameters], [
|
|
2619
2555
|
{
|
|
2620
2556
|
args: [
|
|
2621
|
-
{ in: "path", key: "name" },
|
|
2622
2557
|
{ in: "query", key: "directory" },
|
|
2623
2558
|
{ in: "query", key: "workspace" },
|
|
2624
|
-
{ in: "body", key: "code" },
|
|
2625
2559
|
],
|
|
2626
2560
|
},
|
|
2627
2561
|
]);
|
|
2628
2562
|
return (options?.client ?? this.client).post({
|
|
2629
|
-
url: "/
|
|
2563
|
+
url: "/instance/dispose",
|
|
2630
2564
|
...options,
|
|
2631
2565
|
...params,
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2566
|
+
});
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
export class Path extends HeyApiClient {
|
|
2570
|
+
/**
|
|
2571
|
+
* Get paths
|
|
2572
|
+
*
|
|
2573
|
+
* Retrieve the current working directory and related path information for the Kilo instance.
|
|
2574
|
+
*/
|
|
2575
|
+
get(parameters, options) {
|
|
2576
|
+
const params = buildClientParams([parameters], [
|
|
2577
|
+
{
|
|
2578
|
+
args: [
|
|
2579
|
+
{ in: "query", key: "directory" },
|
|
2580
|
+
{ in: "query", key: "workspace" },
|
|
2581
|
+
],
|
|
2582
|
+
},
|
|
2583
|
+
]);
|
|
2584
|
+
return (options?.client ?? this.client).get({
|
|
2585
|
+
url: "/path",
|
|
2586
|
+
...options,
|
|
2587
|
+
...params,
|
|
2588
|
+
});
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
export class Vcs extends HeyApiClient {
|
|
2592
|
+
/**
|
|
2593
|
+
* Get VCS info
|
|
2594
|
+
*
|
|
2595
|
+
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
2596
|
+
*/
|
|
2597
|
+
get(parameters, options) {
|
|
2598
|
+
const params = buildClientParams([parameters], [
|
|
2599
|
+
{
|
|
2600
|
+
args: [
|
|
2601
|
+
{ in: "query", key: "directory" },
|
|
2602
|
+
{ in: "query", key: "workspace" },
|
|
2603
|
+
],
|
|
2636
2604
|
},
|
|
2605
|
+
]);
|
|
2606
|
+
return (options?.client ?? this.client).get({
|
|
2607
|
+
url: "/vcs",
|
|
2608
|
+
...options,
|
|
2609
|
+
...params,
|
|
2637
2610
|
});
|
|
2638
2611
|
}
|
|
2612
|
+
}
|
|
2613
|
+
export class Command extends HeyApiClient {
|
|
2639
2614
|
/**
|
|
2640
|
-
*
|
|
2615
|
+
* List commands
|
|
2641
2616
|
*
|
|
2642
|
-
*
|
|
2617
|
+
* Get a list of all available commands in the Kilo system.
|
|
2643
2618
|
*/
|
|
2644
|
-
|
|
2619
|
+
list(parameters, options) {
|
|
2645
2620
|
const params = buildClientParams([parameters], [
|
|
2646
2621
|
{
|
|
2647
2622
|
args: [
|
|
2648
|
-
{ in: "path", key: "name" },
|
|
2649
2623
|
{ in: "query", key: "directory" },
|
|
2650
2624
|
{ in: "query", key: "workspace" },
|
|
2651
2625
|
],
|
|
2652
2626
|
},
|
|
2653
2627
|
]);
|
|
2654
|
-
return (options?.client ?? this.client).
|
|
2655
|
-
url: "/
|
|
2628
|
+
return (options?.client ?? this.client).get({
|
|
2629
|
+
url: "/command",
|
|
2656
2630
|
...options,
|
|
2657
2631
|
...params,
|
|
2658
2632
|
});
|
|
2659
2633
|
}
|
|
2660
2634
|
}
|
|
2661
|
-
export class
|
|
2635
|
+
export class Lsp extends HeyApiClient {
|
|
2662
2636
|
/**
|
|
2663
|
-
* Get
|
|
2637
|
+
* Get LSP status
|
|
2664
2638
|
*
|
|
2665
|
-
* Get
|
|
2639
|
+
* Get LSP server status
|
|
2666
2640
|
*/
|
|
2667
2641
|
status(parameters, options) {
|
|
2668
2642
|
const params = buildClientParams([parameters], [
|
|
@@ -2674,119 +2648,117 @@ export class Mcp extends HeyApiClient {
|
|
|
2674
2648
|
},
|
|
2675
2649
|
]);
|
|
2676
2650
|
return (options?.client ?? this.client).get({
|
|
2677
|
-
url: "/
|
|
2651
|
+
url: "/lsp",
|
|
2678
2652
|
...options,
|
|
2679
2653
|
...params,
|
|
2680
2654
|
});
|
|
2681
2655
|
}
|
|
2656
|
+
}
|
|
2657
|
+
export class Formatter extends HeyApiClient {
|
|
2682
2658
|
/**
|
|
2683
|
-
*
|
|
2659
|
+
* Get formatter status
|
|
2684
2660
|
*
|
|
2685
|
-
*
|
|
2661
|
+
* Get formatter status
|
|
2686
2662
|
*/
|
|
2687
|
-
|
|
2663
|
+
status(parameters, options) {
|
|
2688
2664
|
const params = buildClientParams([parameters], [
|
|
2689
2665
|
{
|
|
2690
2666
|
args: [
|
|
2691
2667
|
{ in: "query", key: "directory" },
|
|
2692
2668
|
{ in: "query", key: "workspace" },
|
|
2693
|
-
{ in: "body", key: "name" },
|
|
2694
|
-
{ in: "body", key: "config" },
|
|
2695
2669
|
],
|
|
2696
2670
|
},
|
|
2697
2671
|
]);
|
|
2698
|
-
return (options?.client ?? this.client).
|
|
2699
|
-
url: "/
|
|
2672
|
+
return (options?.client ?? this.client).get({
|
|
2673
|
+
url: "/formatter",
|
|
2700
2674
|
...options,
|
|
2701
2675
|
...params,
|
|
2702
|
-
headers: {
|
|
2703
|
-
"Content-Type": "application/json",
|
|
2704
|
-
...options?.headers,
|
|
2705
|
-
...params.headers,
|
|
2706
|
-
},
|
|
2707
2676
|
});
|
|
2708
2677
|
}
|
|
2678
|
+
}
|
|
2679
|
+
export class Network extends HeyApiClient {
|
|
2709
2680
|
/**
|
|
2710
|
-
*
|
|
2681
|
+
* List pending network waits
|
|
2682
|
+
*
|
|
2683
|
+
* Get all pending network reconnect requests across all sessions.
|
|
2711
2684
|
*/
|
|
2712
|
-
|
|
2685
|
+
list(parameters, options) {
|
|
2713
2686
|
const params = buildClientParams([parameters], [
|
|
2714
2687
|
{
|
|
2715
2688
|
args: [
|
|
2716
|
-
{ in: "path", key: "name" },
|
|
2717
2689
|
{ in: "query", key: "directory" },
|
|
2718
2690
|
{ in: "query", key: "workspace" },
|
|
2719
2691
|
],
|
|
2720
2692
|
},
|
|
2721
2693
|
]);
|
|
2722
|
-
return (options?.client ?? this.client).
|
|
2723
|
-
url: "/
|
|
2694
|
+
return (options?.client ?? this.client).get({
|
|
2695
|
+
url: "/network",
|
|
2724
2696
|
...options,
|
|
2725
2697
|
...params,
|
|
2726
2698
|
});
|
|
2727
2699
|
}
|
|
2728
2700
|
/**
|
|
2729
|
-
*
|
|
2701
|
+
* Resume after network wait
|
|
2702
|
+
*
|
|
2703
|
+
* Resume a pending session after reconnecting network-dependent services.
|
|
2730
2704
|
*/
|
|
2731
|
-
|
|
2705
|
+
reply(parameters, options) {
|
|
2732
2706
|
const params = buildClientParams([parameters], [
|
|
2733
2707
|
{
|
|
2734
2708
|
args: [
|
|
2735
|
-
{ in: "path", key: "
|
|
2709
|
+
{ in: "path", key: "requestID" },
|
|
2736
2710
|
{ in: "query", key: "directory" },
|
|
2737
2711
|
{ in: "query", key: "workspace" },
|
|
2738
2712
|
],
|
|
2739
2713
|
},
|
|
2740
2714
|
]);
|
|
2741
2715
|
return (options?.client ?? this.client).post({
|
|
2742
|
-
url: "/
|
|
2716
|
+
url: "/network/{requestID}/reply",
|
|
2743
2717
|
...options,
|
|
2744
2718
|
...params,
|
|
2745
2719
|
});
|
|
2746
2720
|
}
|
|
2747
|
-
_auth;
|
|
2748
|
-
get auth() {
|
|
2749
|
-
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
export class Control extends HeyApiClient {
|
|
2753
2721
|
/**
|
|
2754
|
-
*
|
|
2722
|
+
* Reject network resume request
|
|
2755
2723
|
*
|
|
2756
|
-
*
|
|
2724
|
+
* Stop a pending session instead of resuming after network reconnect.
|
|
2757
2725
|
*/
|
|
2758
|
-
|
|
2726
|
+
reject(parameters, options) {
|
|
2759
2727
|
const params = buildClientParams([parameters], [
|
|
2760
2728
|
{
|
|
2761
2729
|
args: [
|
|
2730
|
+
{ in: "path", key: "requestID" },
|
|
2762
2731
|
{ in: "query", key: "directory" },
|
|
2763
2732
|
{ in: "query", key: "workspace" },
|
|
2764
2733
|
],
|
|
2765
2734
|
},
|
|
2766
2735
|
]);
|
|
2767
|
-
return (options?.client ?? this.client).
|
|
2768
|
-
url: "/
|
|
2736
|
+
return (options?.client ?? this.client).post({
|
|
2737
|
+
url: "/network/{requestID}/reject",
|
|
2769
2738
|
...options,
|
|
2770
2739
|
...params,
|
|
2771
2740
|
});
|
|
2772
2741
|
}
|
|
2742
|
+
}
|
|
2743
|
+
export class Telemetry extends HeyApiClient {
|
|
2773
2744
|
/**
|
|
2774
|
-
*
|
|
2745
|
+
* Capture telemetry event
|
|
2775
2746
|
*
|
|
2776
|
-
*
|
|
2747
|
+
* Forward a telemetry event to PostHog via kilo-telemetry.
|
|
2777
2748
|
*/
|
|
2778
|
-
|
|
2749
|
+
capture(parameters, options) {
|
|
2779
2750
|
const params = buildClientParams([parameters], [
|
|
2780
2751
|
{
|
|
2781
2752
|
args: [
|
|
2782
2753
|
{ in: "query", key: "directory" },
|
|
2783
2754
|
{ in: "query", key: "workspace" },
|
|
2784
|
-
{
|
|
2755
|
+
{ in: "body", key: "event" },
|
|
2756
|
+
{ in: "body", key: "properties" },
|
|
2785
2757
|
],
|
|
2786
2758
|
},
|
|
2787
2759
|
]);
|
|
2788
2760
|
return (options?.client ?? this.client).post({
|
|
2789
|
-
url: "/
|
|
2761
|
+
url: "/telemetry/capture",
|
|
2790
2762
|
...options,
|
|
2791
2763
|
...params,
|
|
2792
2764
|
headers: {
|
|
@@ -2797,39 +2769,33 @@ export class Control extends HeyApiClient {
|
|
|
2797
2769
|
});
|
|
2798
2770
|
}
|
|
2799
2771
|
}
|
|
2800
|
-
export class
|
|
2772
|
+
export class Remote extends HeyApiClient {
|
|
2801
2773
|
/**
|
|
2802
|
-
*
|
|
2774
|
+
* Enable remote connection
|
|
2803
2775
|
*
|
|
2804
|
-
*
|
|
2776
|
+
* Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
|
|
2805
2777
|
*/
|
|
2806
|
-
|
|
2778
|
+
enable(parameters, options) {
|
|
2807
2779
|
const params = buildClientParams([parameters], [
|
|
2808
2780
|
{
|
|
2809
2781
|
args: [
|
|
2810
2782
|
{ in: "query", key: "directory" },
|
|
2811
2783
|
{ in: "query", key: "workspace" },
|
|
2812
|
-
{ in: "body", key: "text" },
|
|
2813
2784
|
],
|
|
2814
2785
|
},
|
|
2815
2786
|
]);
|
|
2816
2787
|
return (options?.client ?? this.client).post({
|
|
2817
|
-
url: "/
|
|
2788
|
+
url: "/remote/enable",
|
|
2818
2789
|
...options,
|
|
2819
2790
|
...params,
|
|
2820
|
-
headers: {
|
|
2821
|
-
"Content-Type": "application/json",
|
|
2822
|
-
...options?.headers,
|
|
2823
|
-
...params.headers,
|
|
2824
|
-
},
|
|
2825
2791
|
});
|
|
2826
2792
|
}
|
|
2827
2793
|
/**
|
|
2828
|
-
*
|
|
2794
|
+
* Disable remote connection
|
|
2829
2795
|
*
|
|
2830
|
-
*
|
|
2796
|
+
* Close the remote WebSocket connection to UserConnectionDO.
|
|
2831
2797
|
*/
|
|
2832
|
-
|
|
2798
|
+
disable(parameters, options) {
|
|
2833
2799
|
const params = buildClientParams([parameters], [
|
|
2834
2800
|
{
|
|
2835
2801
|
args: [
|
|
@@ -2839,17 +2805,17 @@ export class Tui extends HeyApiClient {
|
|
|
2839
2805
|
},
|
|
2840
2806
|
]);
|
|
2841
2807
|
return (options?.client ?? this.client).post({
|
|
2842
|
-
url: "/
|
|
2808
|
+
url: "/remote/disable",
|
|
2843
2809
|
...options,
|
|
2844
2810
|
...params,
|
|
2845
2811
|
});
|
|
2846
2812
|
}
|
|
2847
2813
|
/**
|
|
2848
|
-
*
|
|
2814
|
+
* Get remote connection status
|
|
2849
2815
|
*
|
|
2850
|
-
*
|
|
2816
|
+
* Get the current state of the remote WebSocket connection.
|
|
2851
2817
|
*/
|
|
2852
|
-
|
|
2818
|
+
status(parameters, options) {
|
|
2853
2819
|
const params = buildClientParams([parameters], [
|
|
2854
2820
|
{
|
|
2855
2821
|
args: [
|
|
@@ -2858,109 +2824,178 @@ export class Tui extends HeyApiClient {
|
|
|
2858
2824
|
],
|
|
2859
2825
|
},
|
|
2860
2826
|
]);
|
|
2861
|
-
return (options?.client ?? this.client).
|
|
2862
|
-
url: "/
|
|
2827
|
+
return (options?.client ?? this.client).get({
|
|
2828
|
+
url: "/remote/status",
|
|
2863
2829
|
...options,
|
|
2864
2830
|
...params,
|
|
2865
2831
|
});
|
|
2866
2832
|
}
|
|
2833
|
+
}
|
|
2834
|
+
export class CommitMessage extends HeyApiClient {
|
|
2867
2835
|
/**
|
|
2868
|
-
*
|
|
2836
|
+
* Generate commit message
|
|
2869
2837
|
*
|
|
2870
|
-
*
|
|
2838
|
+
* Generate a commit message using AI based on the current git diff.
|
|
2871
2839
|
*/
|
|
2872
|
-
|
|
2840
|
+
generate(parameters, options) {
|
|
2873
2841
|
const params = buildClientParams([parameters], [
|
|
2874
2842
|
{
|
|
2875
2843
|
args: [
|
|
2876
2844
|
{ in: "query", key: "directory" },
|
|
2877
2845
|
{ in: "query", key: "workspace" },
|
|
2846
|
+
{ in: "body", key: "path" },
|
|
2847
|
+
{ in: "body", key: "selectedFiles" },
|
|
2848
|
+
{ in: "body", key: "previousMessage" },
|
|
2878
2849
|
],
|
|
2879
2850
|
},
|
|
2880
2851
|
]);
|
|
2881
2852
|
return (options?.client ?? this.client).post({
|
|
2882
|
-
url: "/
|
|
2853
|
+
url: "/commit-message",
|
|
2883
2854
|
...options,
|
|
2884
2855
|
...params,
|
|
2856
|
+
headers: {
|
|
2857
|
+
"Content-Type": "application/json",
|
|
2858
|
+
...options?.headers,
|
|
2859
|
+
...params.headers,
|
|
2860
|
+
},
|
|
2885
2861
|
});
|
|
2886
2862
|
}
|
|
2863
|
+
}
|
|
2864
|
+
export class EnhancePrompt extends HeyApiClient {
|
|
2887
2865
|
/**
|
|
2888
|
-
*
|
|
2866
|
+
* Enhance prompt
|
|
2889
2867
|
*
|
|
2890
|
-
*
|
|
2868
|
+
* Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.
|
|
2891
2869
|
*/
|
|
2892
|
-
|
|
2870
|
+
enhance(parameters, options) {
|
|
2893
2871
|
const params = buildClientParams([parameters], [
|
|
2894
2872
|
{
|
|
2895
2873
|
args: [
|
|
2896
2874
|
{ in: "query", key: "directory" },
|
|
2897
2875
|
{ in: "query", key: "workspace" },
|
|
2876
|
+
{ in: "body", key: "text" },
|
|
2898
2877
|
],
|
|
2899
2878
|
},
|
|
2900
2879
|
]);
|
|
2901
2880
|
return (options?.client ?? this.client).post({
|
|
2902
|
-
url: "/
|
|
2881
|
+
url: "/enhance-prompt",
|
|
2903
2882
|
...options,
|
|
2904
2883
|
...params,
|
|
2884
|
+
headers: {
|
|
2885
|
+
"Content-Type": "application/json",
|
|
2886
|
+
...options?.headers,
|
|
2887
|
+
...params.headers,
|
|
2888
|
+
},
|
|
2905
2889
|
});
|
|
2906
2890
|
}
|
|
2891
|
+
}
|
|
2892
|
+
export class SessionImport extends HeyApiClient {
|
|
2907
2893
|
/**
|
|
2908
|
-
*
|
|
2894
|
+
* Insert project for session import
|
|
2909
2895
|
*
|
|
2910
|
-
*
|
|
2896
|
+
* Insert or update a project row used by legacy session import.
|
|
2911
2897
|
*/
|
|
2912
|
-
|
|
2898
|
+
project(parameters, options) {
|
|
2913
2899
|
const params = buildClientParams([parameters], [
|
|
2914
2900
|
{
|
|
2915
2901
|
args: [
|
|
2916
2902
|
{ in: "query", key: "directory" },
|
|
2917
2903
|
{ in: "query", key: "workspace" },
|
|
2904
|
+
{ in: "body", key: "id" },
|
|
2905
|
+
{ in: "body", key: "worktree" },
|
|
2906
|
+
{ in: "body", key: "vcs" },
|
|
2907
|
+
{ in: "body", key: "name" },
|
|
2908
|
+
{ in: "body", key: "iconUrl" },
|
|
2909
|
+
{ in: "body", key: "iconColor" },
|
|
2910
|
+
{ in: "body", key: "timeCreated" },
|
|
2911
|
+
{ in: "body", key: "timeUpdated" },
|
|
2912
|
+
{ in: "body", key: "timeInitialized" },
|
|
2913
|
+
{ in: "body", key: "sandboxes" },
|
|
2914
|
+
{ in: "body", key: "commands" },
|
|
2918
2915
|
],
|
|
2919
2916
|
},
|
|
2920
2917
|
]);
|
|
2921
2918
|
return (options?.client ?? this.client).post({
|
|
2922
|
-
url: "/
|
|
2919
|
+
url: "/kilocode/session-import/project",
|
|
2923
2920
|
...options,
|
|
2924
2921
|
...params,
|
|
2922
|
+
headers: {
|
|
2923
|
+
"Content-Type": "application/json",
|
|
2924
|
+
...options?.headers,
|
|
2925
|
+
...params.headers,
|
|
2926
|
+
},
|
|
2925
2927
|
});
|
|
2926
2928
|
}
|
|
2927
2929
|
/**
|
|
2928
|
-
*
|
|
2930
|
+
* Insert session for session import
|
|
2929
2931
|
*
|
|
2930
|
-
*
|
|
2932
|
+
* Insert or update a session row used by legacy session import.
|
|
2931
2933
|
*/
|
|
2932
|
-
|
|
2934
|
+
session(parameters, options) {
|
|
2933
2935
|
const params = buildClientParams([parameters], [
|
|
2934
2936
|
{
|
|
2935
2937
|
args: [
|
|
2936
|
-
{
|
|
2938
|
+
{
|
|
2939
|
+
in: "query",
|
|
2940
|
+
key: "query_directory",
|
|
2941
|
+
map: "directory",
|
|
2942
|
+
},
|
|
2937
2943
|
{ in: "query", key: "workspace" },
|
|
2944
|
+
{ in: "body", key: "id" },
|
|
2945
|
+
{ in: "body", key: "projectID" },
|
|
2946
|
+
{ in: "body", key: "force" },
|
|
2947
|
+
{ in: "body", key: "workspaceID" },
|
|
2948
|
+
{ in: "body", key: "parentID" },
|
|
2949
|
+
{ in: "body", key: "slug" },
|
|
2950
|
+
{
|
|
2951
|
+
in: "body",
|
|
2952
|
+
key: "body_directory",
|
|
2953
|
+
map: "directory",
|
|
2954
|
+
},
|
|
2955
|
+
{ in: "body", key: "title" },
|
|
2956
|
+
{ in: "body", key: "version" },
|
|
2957
|
+
{ in: "body", key: "shareURL" },
|
|
2958
|
+
{ in: "body", key: "summary" },
|
|
2959
|
+
{ in: "body", key: "revert" },
|
|
2960
|
+
{ in: "body", key: "permission" },
|
|
2961
|
+
{ in: "body", key: "timeCreated" },
|
|
2962
|
+
{ in: "body", key: "timeUpdated" },
|
|
2963
|
+
{ in: "body", key: "timeCompacting" },
|
|
2964
|
+
{ in: "body", key: "timeArchived" },
|
|
2938
2965
|
],
|
|
2939
2966
|
},
|
|
2940
2967
|
]);
|
|
2941
2968
|
return (options?.client ?? this.client).post({
|
|
2942
|
-
url: "/
|
|
2969
|
+
url: "/kilocode/session-import/session",
|
|
2943
2970
|
...options,
|
|
2944
2971
|
...params,
|
|
2972
|
+
headers: {
|
|
2973
|
+
"Content-Type": "application/json",
|
|
2974
|
+
...options?.headers,
|
|
2975
|
+
...params.headers,
|
|
2976
|
+
},
|
|
2945
2977
|
});
|
|
2946
2978
|
}
|
|
2947
2979
|
/**
|
|
2948
|
-
*
|
|
2980
|
+
* Insert message for session import
|
|
2949
2981
|
*
|
|
2950
|
-
*
|
|
2982
|
+
* Insert or update a message row used by legacy session import.
|
|
2951
2983
|
*/
|
|
2952
|
-
|
|
2984
|
+
message(parameters, options) {
|
|
2953
2985
|
const params = buildClientParams([parameters], [
|
|
2954
2986
|
{
|
|
2955
2987
|
args: [
|
|
2956
2988
|
{ in: "query", key: "directory" },
|
|
2957
2989
|
{ in: "query", key: "workspace" },
|
|
2958
|
-
{ in: "body", key: "
|
|
2990
|
+
{ in: "body", key: "id" },
|
|
2991
|
+
{ in: "body", key: "sessionID" },
|
|
2992
|
+
{ in: "body", key: "timeCreated" },
|
|
2993
|
+
{ in: "body", key: "data" },
|
|
2959
2994
|
],
|
|
2960
2995
|
},
|
|
2961
2996
|
]);
|
|
2962
2997
|
return (options?.client ?? this.client).post({
|
|
2963
|
-
url: "/
|
|
2998
|
+
url: "/kilocode/session-import/message",
|
|
2964
2999
|
...options,
|
|
2965
3000
|
...params,
|
|
2966
3001
|
headers: {
|
|
@@ -2971,25 +3006,26 @@ export class Tui extends HeyApiClient {
|
|
|
2971
3006
|
});
|
|
2972
3007
|
}
|
|
2973
3008
|
/**
|
|
2974
|
-
*
|
|
3009
|
+
* Insert part for session import
|
|
2975
3010
|
*
|
|
2976
|
-
*
|
|
3011
|
+
* Insert or update a part row used by legacy session import.
|
|
2977
3012
|
*/
|
|
2978
|
-
|
|
3013
|
+
part(parameters, options) {
|
|
2979
3014
|
const params = buildClientParams([parameters], [
|
|
2980
3015
|
{
|
|
2981
3016
|
args: [
|
|
2982
3017
|
{ in: "query", key: "directory" },
|
|
2983
3018
|
{ in: "query", key: "workspace" },
|
|
2984
|
-
{ in: "body", key: "
|
|
2985
|
-
{ in: "body", key: "
|
|
2986
|
-
{ in: "body", key: "
|
|
2987
|
-
{ in: "body", key: "
|
|
3019
|
+
{ in: "body", key: "id" },
|
|
3020
|
+
{ in: "body", key: "messageID" },
|
|
3021
|
+
{ in: "body", key: "sessionID" },
|
|
3022
|
+
{ in: "body", key: "timeCreated" },
|
|
3023
|
+
{ in: "body", key: "data" },
|
|
2988
3024
|
],
|
|
2989
3025
|
},
|
|
2990
3026
|
]);
|
|
2991
3027
|
return (options?.client ?? this.client).post({
|
|
2992
|
-
url: "/
|
|
3028
|
+
url: "/kilocode/session-import/part",
|
|
2993
3029
|
...options,
|
|
2994
3030
|
...params,
|
|
2995
3031
|
headers: {
|
|
@@ -2999,23 +3035,25 @@ export class Tui extends HeyApiClient {
|
|
|
2999
3035
|
},
|
|
3000
3036
|
});
|
|
3001
3037
|
}
|
|
3038
|
+
}
|
|
3039
|
+
export class Kilocode extends HeyApiClient {
|
|
3002
3040
|
/**
|
|
3003
|
-
*
|
|
3041
|
+
* Remove a skill
|
|
3004
3042
|
*
|
|
3005
|
-
*
|
|
3043
|
+
* Remove a skill by deleting its directory from disk and clearing it from cache.
|
|
3006
3044
|
*/
|
|
3007
|
-
|
|
3045
|
+
removeSkill(parameters, options) {
|
|
3008
3046
|
const params = buildClientParams([parameters], [
|
|
3009
3047
|
{
|
|
3010
3048
|
args: [
|
|
3011
3049
|
{ in: "query", key: "directory" },
|
|
3012
3050
|
{ in: "query", key: "workspace" },
|
|
3013
|
-
{
|
|
3051
|
+
{ in: "body", key: "location" },
|
|
3014
3052
|
],
|
|
3015
3053
|
},
|
|
3016
3054
|
]);
|
|
3017
3055
|
return (options?.client ?? this.client).post({
|
|
3018
|
-
url: "/
|
|
3056
|
+
url: "/kilocode/skill/remove",
|
|
3019
3057
|
...options,
|
|
3020
3058
|
...params,
|
|
3021
3059
|
headers: {
|
|
@@ -3026,22 +3064,22 @@ export class Tui extends HeyApiClient {
|
|
|
3026
3064
|
});
|
|
3027
3065
|
}
|
|
3028
3066
|
/**
|
|
3029
|
-
*
|
|
3067
|
+
* Remove a custom agent
|
|
3030
3068
|
*
|
|
3031
|
-
*
|
|
3069
|
+
* Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
|
|
3032
3070
|
*/
|
|
3033
|
-
|
|
3071
|
+
removeAgent(parameters, options) {
|
|
3034
3072
|
const params = buildClientParams([parameters], [
|
|
3035
3073
|
{
|
|
3036
3074
|
args: [
|
|
3037
3075
|
{ in: "query", key: "directory" },
|
|
3038
3076
|
{ in: "query", key: "workspace" },
|
|
3039
|
-
{ in: "body", key: "
|
|
3077
|
+
{ in: "body", key: "name" },
|
|
3040
3078
|
],
|
|
3041
3079
|
},
|
|
3042
3080
|
]);
|
|
3043
3081
|
return (options?.client ?? this.client).post({
|
|
3044
|
-
url: "/
|
|
3082
|
+
url: "/kilocode/agent/remove",
|
|
3045
3083
|
...options,
|
|
3046
3084
|
...params,
|
|
3047
3085
|
headers: {
|
|
@@ -3051,84 +3089,101 @@ export class Tui extends HeyApiClient {
|
|
|
3051
3089
|
},
|
|
3052
3090
|
});
|
|
3053
3091
|
}
|
|
3054
|
-
|
|
3055
|
-
get
|
|
3056
|
-
return (this.
|
|
3092
|
+
_sessionImport;
|
|
3093
|
+
get sessionImport() {
|
|
3094
|
+
return (this._sessionImport ??= new SessionImport({ client: this.client }));
|
|
3057
3095
|
}
|
|
3058
3096
|
}
|
|
3059
|
-
export class
|
|
3097
|
+
export class Organization extends HeyApiClient {
|
|
3060
3098
|
/**
|
|
3061
|
-
*
|
|
3099
|
+
* Update Kilo Gateway organization
|
|
3062
3100
|
*
|
|
3063
|
-
*
|
|
3101
|
+
* Switch to a different Kilo Gateway organization
|
|
3064
3102
|
*/
|
|
3065
|
-
|
|
3103
|
+
set(parameters, options) {
|
|
3066
3104
|
const params = buildClientParams([parameters], [
|
|
3067
3105
|
{
|
|
3068
3106
|
args: [
|
|
3069
3107
|
{ in: "query", key: "directory" },
|
|
3070
3108
|
{ in: "query", key: "workspace" },
|
|
3109
|
+
{ in: "body", key: "organizationId" },
|
|
3071
3110
|
],
|
|
3072
3111
|
},
|
|
3073
3112
|
]);
|
|
3074
3113
|
return (options?.client ?? this.client).post({
|
|
3075
|
-
url: "/
|
|
3114
|
+
url: "/kilo/organization",
|
|
3076
3115
|
...options,
|
|
3077
3116
|
...params,
|
|
3117
|
+
headers: {
|
|
3118
|
+
"Content-Type": "application/json",
|
|
3119
|
+
...options?.headers,
|
|
3120
|
+
...params.headers,
|
|
3121
|
+
},
|
|
3078
3122
|
});
|
|
3079
3123
|
}
|
|
3080
3124
|
}
|
|
3081
|
-
export class
|
|
3125
|
+
export class Session3 extends HeyApiClient {
|
|
3082
3126
|
/**
|
|
3083
|
-
* Get
|
|
3127
|
+
* Get cloud session
|
|
3084
3128
|
*
|
|
3085
|
-
*
|
|
3129
|
+
* Fetch full session data from the Kilo cloud for preview
|
|
3086
3130
|
*/
|
|
3087
3131
|
get(parameters, options) {
|
|
3088
3132
|
const params = buildClientParams([parameters], [
|
|
3089
3133
|
{
|
|
3090
3134
|
args: [
|
|
3135
|
+
{ in: "path", key: "id" },
|
|
3091
3136
|
{ in: "query", key: "directory" },
|
|
3092
3137
|
{ in: "query", key: "workspace" },
|
|
3093
3138
|
],
|
|
3094
3139
|
},
|
|
3095
3140
|
]);
|
|
3096
3141
|
return (options?.client ?? this.client).get({
|
|
3097
|
-
url: "/
|
|
3142
|
+
url: "/kilo/cloud/session/{id}",
|
|
3098
3143
|
...options,
|
|
3099
3144
|
...params,
|
|
3100
3145
|
});
|
|
3101
3146
|
}
|
|
3102
|
-
}
|
|
3103
|
-
export class Vcs extends HeyApiClient {
|
|
3104
3147
|
/**
|
|
3105
|
-
*
|
|
3148
|
+
* Import session from cloud
|
|
3106
3149
|
*
|
|
3107
|
-
*
|
|
3150
|
+
* Download a cloud-synced session and write it to local storage with fresh IDs.
|
|
3108
3151
|
*/
|
|
3109
|
-
|
|
3152
|
+
import(parameters, options) {
|
|
3110
3153
|
const params = buildClientParams([parameters], [
|
|
3111
3154
|
{
|
|
3112
3155
|
args: [
|
|
3113
3156
|
{ in: "query", key: "directory" },
|
|
3114
3157
|
{ in: "query", key: "workspace" },
|
|
3158
|
+
{ in: "body", key: "sessionId" },
|
|
3115
3159
|
],
|
|
3116
3160
|
},
|
|
3117
3161
|
]);
|
|
3118
|
-
return (options?.client ?? this.client).
|
|
3119
|
-
url: "/
|
|
3162
|
+
return (options?.client ?? this.client).post({
|
|
3163
|
+
url: "/kilo/cloud/session/import",
|
|
3120
3164
|
...options,
|
|
3121
3165
|
...params,
|
|
3166
|
+
headers: {
|
|
3167
|
+
"Content-Type": "application/json",
|
|
3168
|
+
...options?.headers,
|
|
3169
|
+
...params.headers,
|
|
3170
|
+
},
|
|
3122
3171
|
});
|
|
3123
3172
|
}
|
|
3124
3173
|
}
|
|
3125
|
-
export class
|
|
3174
|
+
export class Cloud extends HeyApiClient {
|
|
3175
|
+
_session;
|
|
3176
|
+
get session() {
|
|
3177
|
+
return (this._session ??= new Session3({ client: this.client }));
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
export class Claw extends HeyApiClient {
|
|
3126
3181
|
/**
|
|
3127
|
-
*
|
|
3182
|
+
* Get KiloClaw instance status
|
|
3128
3183
|
*
|
|
3129
|
-
*
|
|
3184
|
+
* Fetch the user's KiloClaw instance status via the KiloClaw worker
|
|
3130
3185
|
*/
|
|
3131
|
-
|
|
3186
|
+
status(parameters, options) {
|
|
3132
3187
|
const params = buildClientParams([parameters], [
|
|
3133
3188
|
{
|
|
3134
3189
|
args: [
|
|
@@ -3138,48 +3193,39 @@ export class Command extends HeyApiClient {
|
|
|
3138
3193
|
},
|
|
3139
3194
|
]);
|
|
3140
3195
|
return (options?.client ?? this.client).get({
|
|
3141
|
-
url: "/
|
|
3196
|
+
url: "/kilo/claw/status",
|
|
3142
3197
|
...options,
|
|
3143
3198
|
...params,
|
|
3144
3199
|
});
|
|
3145
3200
|
}
|
|
3146
|
-
}
|
|
3147
|
-
export class App extends HeyApiClient {
|
|
3148
3201
|
/**
|
|
3149
|
-
*
|
|
3202
|
+
* Get KiloClaw chat credentials
|
|
3150
3203
|
*
|
|
3151
|
-
*
|
|
3204
|
+
* Fetch Stream Chat credentials for the user's KiloClaw instance
|
|
3152
3205
|
*/
|
|
3153
|
-
|
|
3206
|
+
chatCredentials(parameters, options) {
|
|
3154
3207
|
const params = buildClientParams([parameters], [
|
|
3155
3208
|
{
|
|
3156
3209
|
args: [
|
|
3157
3210
|
{ in: "query", key: "directory" },
|
|
3158
3211
|
{ in: "query", key: "workspace" },
|
|
3159
|
-
{ in: "body", key: "service" },
|
|
3160
|
-
{ in: "body", key: "level" },
|
|
3161
|
-
{ in: "body", key: "message" },
|
|
3162
|
-
{ in: "body", key: "extra" },
|
|
3163
3212
|
],
|
|
3164
3213
|
},
|
|
3165
3214
|
]);
|
|
3166
|
-
return (options?.client ?? this.client).
|
|
3167
|
-
url: "/
|
|
3215
|
+
return (options?.client ?? this.client).get({
|
|
3216
|
+
url: "/kilo/claw/chat-credentials",
|
|
3168
3217
|
...options,
|
|
3169
3218
|
...params,
|
|
3170
|
-
headers: {
|
|
3171
|
-
"Content-Type": "application/json",
|
|
3172
|
-
...options?.headers,
|
|
3173
|
-
...params.headers,
|
|
3174
|
-
},
|
|
3175
3219
|
});
|
|
3176
3220
|
}
|
|
3221
|
+
}
|
|
3222
|
+
export class Kilo extends HeyApiClient {
|
|
3177
3223
|
/**
|
|
3178
|
-
*
|
|
3224
|
+
* Get Kilo Gateway profile
|
|
3179
3225
|
*
|
|
3180
|
-
*
|
|
3226
|
+
* Fetch user profile and organizations from Kilo Gateway
|
|
3181
3227
|
*/
|
|
3182
|
-
|
|
3228
|
+
profile(parameters, options) {
|
|
3183
3229
|
const params = buildClientParams([parameters], [
|
|
3184
3230
|
{
|
|
3185
3231
|
args: [
|
|
@@ -3189,17 +3235,17 @@ export class App extends HeyApiClient {
|
|
|
3189
3235
|
},
|
|
3190
3236
|
]);
|
|
3191
3237
|
return (options?.client ?? this.client).get({
|
|
3192
|
-
url: "/
|
|
3238
|
+
url: "/kilo/profile",
|
|
3193
3239
|
...options,
|
|
3194
3240
|
...params,
|
|
3195
3241
|
});
|
|
3196
3242
|
}
|
|
3197
3243
|
/**
|
|
3198
|
-
*
|
|
3244
|
+
* Get organization custom modes
|
|
3199
3245
|
*
|
|
3200
|
-
*
|
|
3246
|
+
* Fetch custom modes defined for the current organization
|
|
3201
3247
|
*/
|
|
3202
|
-
|
|
3248
|
+
modes(parameters, options) {
|
|
3203
3249
|
const params = buildClientParams([parameters], [
|
|
3204
3250
|
{
|
|
3205
3251
|
args: [
|
|
@@ -3209,41 +3255,47 @@ export class App extends HeyApiClient {
|
|
|
3209
3255
|
},
|
|
3210
3256
|
]);
|
|
3211
3257
|
return (options?.client ?? this.client).get({
|
|
3212
|
-
url: "/
|
|
3258
|
+
url: "/kilo/modes",
|
|
3213
3259
|
...options,
|
|
3214
3260
|
...params,
|
|
3215
3261
|
});
|
|
3216
3262
|
}
|
|
3217
|
-
}
|
|
3218
|
-
export class Lsp extends HeyApiClient {
|
|
3219
3263
|
/**
|
|
3220
|
-
*
|
|
3264
|
+
* FIM completion
|
|
3221
3265
|
*
|
|
3222
|
-
*
|
|
3266
|
+
* Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
|
|
3223
3267
|
*/
|
|
3224
|
-
|
|
3268
|
+
fim(parameters, options) {
|
|
3225
3269
|
const params = buildClientParams([parameters], [
|
|
3226
3270
|
{
|
|
3227
3271
|
args: [
|
|
3228
3272
|
{ in: "query", key: "directory" },
|
|
3229
3273
|
{ in: "query", key: "workspace" },
|
|
3274
|
+
{ in: "body", key: "prefix" },
|
|
3275
|
+
{ in: "body", key: "suffix" },
|
|
3276
|
+
{ in: "body", key: "model" },
|
|
3277
|
+
{ in: "body", key: "maxTokens" },
|
|
3278
|
+
{ in: "body", key: "temperature" },
|
|
3230
3279
|
],
|
|
3231
3280
|
},
|
|
3232
3281
|
]);
|
|
3233
|
-
return (options?.client ?? this.client).
|
|
3234
|
-
url: "/
|
|
3282
|
+
return (options?.client ?? this.client).sse.post({
|
|
3283
|
+
url: "/kilo/fim",
|
|
3235
3284
|
...options,
|
|
3236
3285
|
...params,
|
|
3286
|
+
headers: {
|
|
3287
|
+
"Content-Type": "application/json",
|
|
3288
|
+
...options?.headers,
|
|
3289
|
+
...params.headers,
|
|
3290
|
+
},
|
|
3237
3291
|
});
|
|
3238
3292
|
}
|
|
3239
|
-
}
|
|
3240
|
-
export class Formatter extends HeyApiClient {
|
|
3241
3293
|
/**
|
|
3242
|
-
* Get
|
|
3294
|
+
* Get Kilo notifications
|
|
3243
3295
|
*
|
|
3244
|
-
*
|
|
3296
|
+
* Fetch notifications from Kilo Gateway for CLI display
|
|
3245
3297
|
*/
|
|
3246
|
-
|
|
3298
|
+
notifications(parameters, options) {
|
|
3247
3299
|
const params = buildClientParams([parameters], [
|
|
3248
3300
|
{
|
|
3249
3301
|
args: [
|
|
@@ -3253,33 +3305,46 @@ export class Formatter extends HeyApiClient {
|
|
|
3253
3305
|
},
|
|
3254
3306
|
]);
|
|
3255
3307
|
return (options?.client ?? this.client).get({
|
|
3256
|
-
url: "/
|
|
3308
|
+
url: "/kilo/notifications",
|
|
3257
3309
|
...options,
|
|
3258
3310
|
...params,
|
|
3259
3311
|
});
|
|
3260
3312
|
}
|
|
3261
|
-
}
|
|
3262
|
-
export class Event extends HeyApiClient {
|
|
3263
3313
|
/**
|
|
3264
|
-
*
|
|
3314
|
+
* Get cloud sessions
|
|
3265
3315
|
*
|
|
3266
|
-
*
|
|
3316
|
+
* Fetch cloud CLI sessions from Kilo API
|
|
3267
3317
|
*/
|
|
3268
|
-
|
|
3318
|
+
cloudSessions(parameters, options) {
|
|
3269
3319
|
const params = buildClientParams([parameters], [
|
|
3270
3320
|
{
|
|
3271
3321
|
args: [
|
|
3272
3322
|
{ in: "query", key: "directory" },
|
|
3273
3323
|
{ in: "query", key: "workspace" },
|
|
3324
|
+
{ in: "query", key: "cursor" },
|
|
3325
|
+
{ in: "query", key: "limit" },
|
|
3326
|
+
{ in: "query", key: "gitUrl" },
|
|
3274
3327
|
],
|
|
3275
3328
|
},
|
|
3276
3329
|
]);
|
|
3277
|
-
return (options?.client ?? this.client).
|
|
3278
|
-
url: "/
|
|
3330
|
+
return (options?.client ?? this.client).get({
|
|
3331
|
+
url: "/kilo/cloud-sessions",
|
|
3279
3332
|
...options,
|
|
3280
3333
|
...params,
|
|
3281
3334
|
});
|
|
3282
3335
|
}
|
|
3336
|
+
_organization;
|
|
3337
|
+
get organization() {
|
|
3338
|
+
return (this._organization ??= new Organization({ client: this.client }));
|
|
3339
|
+
}
|
|
3340
|
+
_cloud;
|
|
3341
|
+
get cloud() {
|
|
3342
|
+
return (this._cloud ??= new Cloud({ client: this.client }));
|
|
3343
|
+
}
|
|
3344
|
+
_claw;
|
|
3345
|
+
get claw() {
|
|
3346
|
+
return (this._claw ??= new Claw({ client: this.client }));
|
|
3347
|
+
}
|
|
3283
3348
|
}
|
|
3284
3349
|
export class KiloClient extends HeyApiClient {
|
|
3285
3350
|
static __registry = new HeyApiRegistry();
|
|
@@ -3291,14 +3356,14 @@ export class KiloClient extends HeyApiClient {
|
|
|
3291
3356
|
get global() {
|
|
3292
3357
|
return (this._global ??= new Global({ client: this.client }));
|
|
3293
3358
|
}
|
|
3294
|
-
_remote;
|
|
3295
|
-
get remote() {
|
|
3296
|
-
return (this._remote ??= new Remote({ client: this.client }));
|
|
3297
|
-
}
|
|
3298
3359
|
_auth;
|
|
3299
3360
|
get auth() {
|
|
3300
3361
|
return (this._auth ??= new Auth({ client: this.client }));
|
|
3301
3362
|
}
|
|
3363
|
+
_app;
|
|
3364
|
+
get app() {
|
|
3365
|
+
return (this._app ??= new App({ client: this.client }));
|
|
3366
|
+
}
|
|
3302
3367
|
_project;
|
|
3303
3368
|
get project() {
|
|
3304
3369
|
return (this._project ??= new Project({ client: this.client }));
|
|
@@ -3339,34 +3404,10 @@ export class KiloClient extends HeyApiClient {
|
|
|
3339
3404
|
get question() {
|
|
3340
3405
|
return (this._question ??= new Question({ client: this.client }));
|
|
3341
3406
|
}
|
|
3342
|
-
_network;
|
|
3343
|
-
get network() {
|
|
3344
|
-
return (this._network ??= new Network({ client: this.client }));
|
|
3345
|
-
}
|
|
3346
3407
|
_provider;
|
|
3347
3408
|
get provider() {
|
|
3348
3409
|
return (this._provider ??= new Provider({ client: this.client }));
|
|
3349
3410
|
}
|
|
3350
|
-
_telemetry;
|
|
3351
|
-
get telemetry() {
|
|
3352
|
-
return (this._telemetry ??= new Telemetry({ client: this.client }));
|
|
3353
|
-
}
|
|
3354
|
-
_commitMessage;
|
|
3355
|
-
get commitMessage() {
|
|
3356
|
-
return (this._commitMessage ??= new CommitMessage({ client: this.client }));
|
|
3357
|
-
}
|
|
3358
|
-
_enhancePrompt;
|
|
3359
|
-
get enhancePrompt() {
|
|
3360
|
-
return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
|
|
3361
|
-
}
|
|
3362
|
-
_kilocode;
|
|
3363
|
-
get kilocode() {
|
|
3364
|
-
return (this._kilocode ??= new Kilocode({ client: this.client }));
|
|
3365
|
-
}
|
|
3366
|
-
_kilo;
|
|
3367
|
-
get kilo() {
|
|
3368
|
-
return (this._kilo ??= new Kilo({ client: this.client }));
|
|
3369
|
-
}
|
|
3370
3411
|
_find;
|
|
3371
3412
|
get find() {
|
|
3372
3413
|
return (this._find ??= new Find({ client: this.client }));
|
|
@@ -3375,6 +3416,10 @@ export class KiloClient extends HeyApiClient {
|
|
|
3375
3416
|
get file() {
|
|
3376
3417
|
return (this._file ??= new File({ client: this.client }));
|
|
3377
3418
|
}
|
|
3419
|
+
_event;
|
|
3420
|
+
get event() {
|
|
3421
|
+
return (this._event ??= new Event({ client: this.client }));
|
|
3422
|
+
}
|
|
3378
3423
|
_mcp;
|
|
3379
3424
|
get mcp() {
|
|
3380
3425
|
return (this._mcp ??= new Mcp({ client: this.client }));
|
|
@@ -3399,10 +3444,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
3399
3444
|
get command() {
|
|
3400
3445
|
return (this._command ??= new Command({ client: this.client }));
|
|
3401
3446
|
}
|
|
3402
|
-
_app;
|
|
3403
|
-
get app() {
|
|
3404
|
-
return (this._app ??= new App({ client: this.client }));
|
|
3405
|
-
}
|
|
3406
3447
|
_lsp;
|
|
3407
3448
|
get lsp() {
|
|
3408
3449
|
return (this._lsp ??= new Lsp({ client: this.client }));
|
|
@@ -3411,8 +3452,32 @@ export class KiloClient extends HeyApiClient {
|
|
|
3411
3452
|
get formatter() {
|
|
3412
3453
|
return (this._formatter ??= new Formatter({ client: this.client }));
|
|
3413
3454
|
}
|
|
3414
|
-
|
|
3415
|
-
get
|
|
3416
|
-
return (this.
|
|
3455
|
+
_network;
|
|
3456
|
+
get network() {
|
|
3457
|
+
return (this._network ??= new Network({ client: this.client }));
|
|
3458
|
+
}
|
|
3459
|
+
_telemetry;
|
|
3460
|
+
get telemetry() {
|
|
3461
|
+
return (this._telemetry ??= new Telemetry({ client: this.client }));
|
|
3462
|
+
}
|
|
3463
|
+
_remote;
|
|
3464
|
+
get remote() {
|
|
3465
|
+
return (this._remote ??= new Remote({ client: this.client }));
|
|
3466
|
+
}
|
|
3467
|
+
_commitMessage;
|
|
3468
|
+
get commitMessage() {
|
|
3469
|
+
return (this._commitMessage ??= new CommitMessage({ client: this.client }));
|
|
3470
|
+
}
|
|
3471
|
+
_enhancePrompt;
|
|
3472
|
+
get enhancePrompt() {
|
|
3473
|
+
return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
|
|
3474
|
+
}
|
|
3475
|
+
_kilocode;
|
|
3476
|
+
get kilocode() {
|
|
3477
|
+
return (this._kilocode ??= new Kilocode({ client: this.client }));
|
|
3478
|
+
}
|
|
3479
|
+
_kilo;
|
|
3480
|
+
get kilo() {
|
|
3481
|
+
return (this._kilo ??= new Kilo({ client: this.client }));
|
|
3417
3482
|
}
|
|
3418
3483
|
}
|