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