@kilocode/sdk 7.2.4 → 7.2.6

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
@@ -453,13 +559,13 @@ export class Config2 extends HeyApiClient {
453
559
  });
454
560
  }
455
561
  }
456
- export class Tool extends HeyApiClient {
562
+ export class Console extends HeyApiClient {
457
563
  /**
458
- * List tool IDs
564
+ * Get active Console provider metadata
459
565
  *
460
- * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
566
+ * Get the active Console org name and the set of provider IDs managed by that Console org.
461
567
  */
462
- ids(parameters, options) {
568
+ get(parameters, options) {
463
569
  const params = buildClientParams([parameters], [
464
570
  {
465
571
  args: [
@@ -469,31 +575,56 @@ export class Tool extends HeyApiClient {
469
575
  },
470
576
  ]);
471
577
  return (options?.client ?? this.client).get({
472
- url: "/experimental/tool/ids",
578
+ url: "/experimental/console",
473
579
  ...options,
474
580
  ...params,
475
581
  });
476
582
  }
477
583
  /**
478
- * List tools
584
+ * List switchable Console orgs
479
585
  *
480
- * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
586
+ * Get the available Console orgs across logged-in accounts, including the current active org.
481
587
  */
482
- list(parameters, options) {
588
+ listOrgs(parameters, options) {
483
589
  const params = buildClientParams([parameters], [
484
590
  {
485
591
  args: [
486
592
  { in: "query", key: "directory" },
487
593
  { in: "query", key: "workspace" },
488
- { in: "query", key: "provider" },
489
- { in: "query", key: "model" },
490
594
  ],
491
595
  },
492
596
  ]);
493
597
  return (options?.client ?? this.client).get({
494
- url: "/experimental/tool",
598
+ url: "/experimental/console/orgs",
599
+ ...options,
600
+ ...params,
601
+ });
602
+ }
603
+ /**
604
+ * Switch active Console org
605
+ *
606
+ * Persist a new active Console account/org selection for the current local Kilo state.
607
+ */
608
+ switchOrg(parameters, options) {
609
+ const params = buildClientParams([parameters], [
610
+ {
611
+ args: [
612
+ { in: "query", key: "directory" },
613
+ { in: "query", key: "workspace" },
614
+ { in: "body", key: "accountID" },
615
+ { in: "body", key: "orgID" },
616
+ ],
617
+ },
618
+ ]);
619
+ return (options?.client ?? this.client).post({
620
+ url: "/experimental/console/switch",
495
621
  ...options,
496
622
  ...params,
623
+ headers: {
624
+ "Content-Type": "application/json",
625
+ ...options?.headers,
626
+ ...params.headers,
627
+ },
497
628
  });
498
629
  }
499
630
  }
@@ -622,6 +753,10 @@ export class Resource extends HeyApiClient {
622
753
  }
623
754
  }
624
755
  export class Experimental extends HeyApiClient {
756
+ _console;
757
+ get console() {
758
+ return (this._console ??= new Console({ client: this.client }));
759
+ }
625
760
  _workspace;
626
761
  get workspace() {
627
762
  return (this._workspace ??= new Workspace({ client: this.client }));
@@ -635,6 +770,50 @@ export class Experimental extends HeyApiClient {
635
770
  return (this._resource ??= new Resource({ client: this.client }));
636
771
  }
637
772
  }
773
+ export class Tool extends HeyApiClient {
774
+ /**
775
+ * List tool IDs
776
+ *
777
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
778
+ */
779
+ ids(parameters, options) {
780
+ const params = buildClientParams([parameters], [
781
+ {
782
+ args: [
783
+ { in: "query", key: "directory" },
784
+ { in: "query", key: "workspace" },
785
+ ],
786
+ },
787
+ ]);
788
+ return (options?.client ?? this.client).get({
789
+ url: "/experimental/tool/ids",
790
+ ...options,
791
+ ...params,
792
+ });
793
+ }
794
+ /**
795
+ * List tools
796
+ *
797
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
798
+ */
799
+ list(parameters, options) {
800
+ const params = buildClientParams([parameters], [
801
+ {
802
+ args: [
803
+ { in: "query", key: "directory" },
804
+ { in: "query", key: "workspace" },
805
+ { in: "query", key: "provider" },
806
+ { in: "query", key: "model" },
807
+ ],
808
+ },
809
+ ]);
810
+ return (options?.client ?? this.client).get({
811
+ url: "/experimental/tool",
812
+ ...options,
813
+ ...params,
814
+ });
815
+ }
816
+ }
638
817
  export class Worktree extends HeyApiClient {
639
818
  /**
640
819
  * Remove worktree
@@ -1169,6 +1348,7 @@ export class Session2 extends HeyApiClient {
1169
1348
  { in: "query", key: "directory" },
1170
1349
  { in: "query", key: "workspace" },
1171
1350
  { in: "query", key: "limit" },
1351
+ { in: "query", key: "before" },
1172
1352
  ],
1173
1353
  },
1174
1354
  ]);
@@ -1339,6 +1519,7 @@ export class Session2 extends HeyApiClient {
1339
1519
  { in: "path", key: "sessionID" },
1340
1520
  { in: "query", key: "directory" },
1341
1521
  { in: "query", key: "workspace" },
1522
+ { in: "body", key: "messageID" },
1342
1523
  { in: "body", key: "agent" },
1343
1524
  { in: "body", key: "model" },
1344
1525
  { in: "body", key: "command" },
@@ -1689,70 +1870,6 @@ export class Question extends HeyApiClient {
1689
1870
  });
1690
1871
  }
1691
1872
  }
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
1873
  export class Oauth extends HeyApiClient {
1757
1874
  /**
1758
1875
  * OAuth authorize
@@ -1767,6 +1884,7 @@ export class Oauth extends HeyApiClient {
1767
1884
  { in: "query", key: "directory" },
1768
1885
  { in: "query", key: "workspace" },
1769
1886
  { in: "body", key: "method" },
1887
+ { in: "body", key: "inputs" },
1770
1888
  ],
1771
1889
  },
1772
1890
  ]);
@@ -1856,292 +1974,221 @@ export class Provider extends HeyApiClient {
1856
1974
  return (this._oauth ??= new Oauth({ client: this.client }));
1857
1975
  }
1858
1976
  }
1859
- export class Telemetry extends HeyApiClient {
1977
+ export class Find extends HeyApiClient {
1860
1978
  /**
1861
- * Capture telemetry event
1979
+ * Find text
1862
1980
  *
1863
- * Forward a telemetry event to PostHog via kilo-telemetry.
1981
+ * Search for text patterns across files in the project using ripgrep.
1864
1982
  */
1865
- capture(parameters, options) {
1983
+ text(parameters, options) {
1866
1984
  const params = buildClientParams([parameters], [
1867
1985
  {
1868
1986
  args: [
1869
1987
  { in: "query", key: "directory" },
1870
1988
  { in: "query", key: "workspace" },
1871
- { in: "body", key: "event" },
1872
- { in: "body", key: "properties" },
1989
+ { in: "query", key: "pattern" },
1873
1990
  ],
1874
1991
  },
1875
1992
  ]);
1876
- return (options?.client ?? this.client).post({
1877
- url: "/telemetry/capture",
1993
+ return (options?.client ?? this.client).get({
1994
+ url: "/find",
1878
1995
  ...options,
1879
1996
  ...params,
1880
- headers: {
1881
- "Content-Type": "application/json",
1882
- ...options?.headers,
1883
- ...params.headers,
1884
- },
1885
1997
  });
1886
1998
  }
1887
- }
1888
- export class Remote extends HeyApiClient {
1889
1999
  /**
1890
- * Enable remote connection
2000
+ * Find files
1891
2001
  *
1892
- * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
2002
+ * Search for files or directories by name or pattern in the project directory.
1893
2003
  */
1894
- enable(parameters, options) {
2004
+ files(parameters, options) {
1895
2005
  const params = buildClientParams([parameters], [
1896
2006
  {
1897
2007
  args: [
1898
2008
  { in: "query", key: "directory" },
1899
2009
  { in: "query", key: "workspace" },
2010
+ { in: "query", key: "query" },
2011
+ { in: "query", key: "dirs" },
2012
+ { in: "query", key: "type" },
2013
+ { in: "query", key: "limit" },
1900
2014
  ],
1901
2015
  },
1902
2016
  ]);
1903
- return (options?.client ?? this.client).post({
1904
- url: "/remote/enable",
2017
+ return (options?.client ?? this.client).get({
2018
+ url: "/find/file",
1905
2019
  ...options,
1906
2020
  ...params,
1907
2021
  });
1908
2022
  }
1909
2023
  /**
1910
- * Disable remote connection
2024
+ * Find symbols
1911
2025
  *
1912
- * Close the remote WebSocket connection to UserConnectionDO.
2026
+ * Search for workspace symbols like functions, classes, and variables using LSP.
1913
2027
  */
1914
- disable(parameters, options) {
2028
+ symbols(parameters, options) {
1915
2029
  const params = buildClientParams([parameters], [
1916
2030
  {
1917
2031
  args: [
1918
2032
  { in: "query", key: "directory" },
1919
2033
  { in: "query", key: "workspace" },
2034
+ { in: "query", key: "query" },
1920
2035
  ],
1921
2036
  },
1922
2037
  ]);
1923
- return (options?.client ?? this.client).post({
1924
- url: "/remote/disable",
2038
+ return (options?.client ?? this.client).get({
2039
+ url: "/find/symbol",
1925
2040
  ...options,
1926
2041
  ...params,
1927
2042
  });
1928
2043
  }
2044
+ }
2045
+ export class File extends HeyApiClient {
1929
2046
  /**
1930
- * Get remote connection status
2047
+ * List files
1931
2048
  *
1932
- * Get the current state of the remote WebSocket connection.
2049
+ * List files and directories in a specified path.
1933
2050
  */
1934
- status(parameters, options) {
2051
+ list(parameters, options) {
1935
2052
  const params = buildClientParams([parameters], [
1936
2053
  {
1937
2054
  args: [
1938
2055
  { in: "query", key: "directory" },
1939
2056
  { in: "query", key: "workspace" },
2057
+ { in: "query", key: "path" },
1940
2058
  ],
1941
2059
  },
1942
2060
  ]);
1943
2061
  return (options?.client ?? this.client).get({
1944
- url: "/remote/status",
2062
+ url: "/file",
1945
2063
  ...options,
1946
2064
  ...params,
1947
2065
  });
1948
2066
  }
1949
- }
1950
- export class CommitMessage extends HeyApiClient {
1951
2067
  /**
1952
- * Generate commit message
2068
+ * Read file
1953
2069
  *
1954
- * Generate a commit message using AI based on the current git diff.
2070
+ * Read the content of a specified file.
1955
2071
  */
1956
- generate(parameters, options) {
2072
+ read(parameters, options) {
1957
2073
  const params = buildClientParams([parameters], [
1958
2074
  {
1959
2075
  args: [
1960
2076
  { in: "query", key: "directory" },
1961
2077
  { in: "query", key: "workspace" },
1962
- { in: "body", key: "path" },
1963
- { in: "body", key: "selectedFiles" },
1964
- { in: "body", key: "previousMessage" },
2078
+ { in: "query", key: "path" },
1965
2079
  ],
1966
2080
  },
1967
2081
  ]);
1968
- return (options?.client ?? this.client).post({
1969
- url: "/commit-message",
2082
+ return (options?.client ?? this.client).get({
2083
+ url: "/file/content",
1970
2084
  ...options,
1971
2085
  ...params,
1972
- headers: {
1973
- "Content-Type": "application/json",
1974
- ...options?.headers,
1975
- ...params.headers,
1976
- },
1977
2086
  });
1978
2087
  }
1979
- }
1980
- export class EnhancePrompt extends HeyApiClient {
1981
2088
  /**
1982
- * Enhance prompt
2089
+ * Get file status
1983
2090
  *
1984
- * Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.
2091
+ * Get the git status of all files in the project.
1985
2092
  */
1986
- enhance(parameters, options) {
2093
+ status(parameters, options) {
1987
2094
  const params = buildClientParams([parameters], [
1988
2095
  {
1989
2096
  args: [
1990
2097
  { in: "query", key: "directory" },
1991
2098
  { in: "query", key: "workspace" },
1992
- { in: "body", key: "text" },
1993
2099
  ],
1994
2100
  },
1995
2101
  ]);
1996
- return (options?.client ?? this.client).post({
1997
- url: "/enhance-prompt",
2102
+ return (options?.client ?? this.client).get({
2103
+ url: "/file/status",
1998
2104
  ...options,
1999
2105
  ...params,
2000
- headers: {
2001
- "Content-Type": "application/json",
2002
- ...options?.headers,
2003
- ...params.headers,
2004
- },
2005
2106
  });
2006
2107
  }
2007
2108
  }
2008
- export class SessionImport extends HeyApiClient {
2109
+ export class Event extends HeyApiClient {
2009
2110
  /**
2010
- * Insert project for session import
2111
+ * Subscribe to events
2011
2112
  *
2012
- * Insert or update a project row used by legacy session import.
2113
+ * Get events
2013
2114
  */
2014
- project(parameters, options) {
2115
+ subscribe(parameters, options) {
2015
2116
  const params = buildClientParams([parameters], [
2016
2117
  {
2017
2118
  args: [
2018
2119
  { in: "query", key: "directory" },
2019
2120
  { 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
2121
  ],
2032
2122
  },
2033
2123
  ]);
2034
- return (options?.client ?? this.client).post({
2035
- url: "/kilocode/session-import/project",
2124
+ return (options?.client ?? this.client).sse.get({
2125
+ url: "/event",
2036
2126
  ...options,
2037
2127
  ...params,
2038
- headers: {
2039
- "Content-Type": "application/json",
2040
- ...options?.headers,
2041
- ...params.headers,
2042
- },
2043
2128
  });
2044
2129
  }
2130
+ }
2131
+ export class Auth2 extends HeyApiClient {
2045
2132
  /**
2046
- * Insert session for session import
2133
+ * Remove MCP OAuth
2047
2134
  *
2048
- * Insert or update a session row used by legacy session import.
2135
+ * Remove OAuth credentials for an MCP server
2049
2136
  */
2050
- session(parameters, options) {
2137
+ remove(parameters, options) {
2051
2138
  const params = buildClientParams([parameters], [
2052
2139
  {
2053
2140
  args: [
2054
- {
2055
- in: "query",
2056
- key: "query_directory",
2057
- map: "directory",
2058
- },
2141
+ { in: "path", key: "name" },
2142
+ { in: "query", key: "directory" },
2059
2143
  { 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
2144
  ],
2082
2145
  },
2083
2146
  ]);
2084
- return (options?.client ?? this.client).post({
2085
- url: "/kilocode/session-import/session",
2147
+ return (options?.client ?? this.client).delete({
2148
+ url: "/mcp/{name}/auth",
2086
2149
  ...options,
2087
2150
  ...params,
2088
- headers: {
2089
- "Content-Type": "application/json",
2090
- ...options?.headers,
2091
- ...params.headers,
2092
- },
2093
2151
  });
2094
2152
  }
2095
2153
  /**
2096
- * Insert message for session import
2154
+ * Start MCP OAuth
2097
2155
  *
2098
- * Insert or update a message row used by legacy session import.
2156
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
2099
2157
  */
2100
- message(parameters, options) {
2158
+ start(parameters, options) {
2101
2159
  const params = buildClientParams([parameters], [
2102
2160
  {
2103
2161
  args: [
2162
+ { in: "path", key: "name" },
2104
2163
  { in: "query", key: "directory" },
2105
2164
  { 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
2165
  ],
2111
2166
  },
2112
2167
  ]);
2113
2168
  return (options?.client ?? this.client).post({
2114
- url: "/kilocode/session-import/message",
2169
+ url: "/mcp/{name}/auth",
2115
2170
  ...options,
2116
2171
  ...params,
2117
- headers: {
2118
- "Content-Type": "application/json",
2119
- ...options?.headers,
2120
- ...params.headers,
2121
- },
2122
2172
  });
2123
2173
  }
2124
2174
  /**
2125
- * Insert part for session import
2175
+ * Complete MCP OAuth
2126
2176
  *
2127
- * Insert or update a part row used by legacy session import.
2177
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
2128
2178
  */
2129
- part(parameters, options) {
2179
+ callback(parameters, options) {
2130
2180
  const params = buildClientParams([parameters], [
2131
2181
  {
2132
2182
  args: [
2183
+ { in: "path", key: "name" },
2133
2184
  { in: "query", key: "directory" },
2134
2185
  { 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" },
2186
+ { in: "body", key: "code" },
2140
2187
  ],
2141
2188
  },
2142
2189
  ]);
2143
2190
  return (options?.client ?? this.client).post({
2144
- url: "/kilocode/session-import/part",
2191
+ url: "/mcp/{name}/auth/callback",
2145
2192
  ...options,
2146
2193
  ...params,
2147
2194
  headers: {
@@ -2151,83 +2198,67 @@ export class SessionImport extends HeyApiClient {
2151
2198
  },
2152
2199
  });
2153
2200
  }
2154
- }
2155
- export class Kilocode extends HeyApiClient {
2156
2201
  /**
2157
- * Remove a skill
2202
+ * Authenticate MCP OAuth
2158
2203
  *
2159
- * Remove a skill by deleting its directory from disk and clearing it from cache.
2204
+ * Start OAuth flow and wait for callback (opens browser)
2160
2205
  */
2161
- removeSkill(parameters, options) {
2206
+ authenticate(parameters, options) {
2162
2207
  const params = buildClientParams([parameters], [
2163
2208
  {
2164
2209
  args: [
2210
+ { in: "path", key: "name" },
2165
2211
  { in: "query", key: "directory" },
2166
2212
  { in: "query", key: "workspace" },
2167
- { in: "body", key: "location" },
2168
2213
  ],
2169
2214
  },
2170
2215
  ]);
2171
2216
  return (options?.client ?? this.client).post({
2172
- url: "/kilocode/skill/remove",
2217
+ url: "/mcp/{name}/auth/authenticate",
2173
2218
  ...options,
2174
2219
  ...params,
2175
- headers: {
2176
- "Content-Type": "application/json",
2177
- ...options?.headers,
2178
- ...params.headers,
2179
- },
2180
2220
  });
2181
2221
  }
2222
+ }
2223
+ export class Mcp extends HeyApiClient {
2182
2224
  /**
2183
- * Remove a custom agent
2225
+ * Get MCP status
2184
2226
  *
2185
- * Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
2227
+ * Get the status of all Model Context Protocol (MCP) servers.
2186
2228
  */
2187
- removeAgent(parameters, options) {
2229
+ status(parameters, options) {
2188
2230
  const params = buildClientParams([parameters], [
2189
2231
  {
2190
2232
  args: [
2191
2233
  { in: "query", key: "directory" },
2192
2234
  { in: "query", key: "workspace" },
2193
- { in: "body", key: "name" },
2194
2235
  ],
2195
2236
  },
2196
2237
  ]);
2197
- return (options?.client ?? this.client).post({
2198
- url: "/kilocode/agent/remove",
2238
+ return (options?.client ?? this.client).get({
2239
+ url: "/mcp",
2199
2240
  ...options,
2200
2241
  ...params,
2201
- headers: {
2202
- "Content-Type": "application/json",
2203
- ...options?.headers,
2204
- ...params.headers,
2205
- },
2206
2242
  });
2207
2243
  }
2208
- _sessionImport;
2209
- get sessionImport() {
2210
- return (this._sessionImport ??= new SessionImport({ client: this.client }));
2211
- }
2212
- }
2213
- export class Organization extends HeyApiClient {
2214
2244
  /**
2215
- * Update Kilo Gateway organization
2245
+ * Add MCP server
2216
2246
  *
2217
- * Switch to a different Kilo Gateway organization
2247
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
2218
2248
  */
2219
- set(parameters, options) {
2249
+ add(parameters, options) {
2220
2250
  const params = buildClientParams([parameters], [
2221
2251
  {
2222
2252
  args: [
2223
2253
  { in: "query", key: "directory" },
2224
2254
  { in: "query", key: "workspace" },
2225
- { in: "body", key: "organizationId" },
2255
+ { in: "body", key: "name" },
2256
+ { in: "body", key: "config" },
2226
2257
  ],
2227
2258
  },
2228
2259
  ]);
2229
2260
  return (options?.client ?? this.client).post({
2230
- url: "/kilo/organization",
2261
+ url: "/mcp",
2231
2262
  ...options,
2232
2263
  ...params,
2233
2264
  headers: {
@@ -2237,69 +2268,56 @@ export class Organization extends HeyApiClient {
2237
2268
  },
2238
2269
  });
2239
2270
  }
2240
- }
2241
- export class Session3 extends HeyApiClient {
2242
2271
  /**
2243
- * Get cloud session
2244
- *
2245
- * Fetch full session data from the Kilo cloud for preview
2272
+ * Connect an MCP server
2246
2273
  */
2247
- get(parameters, options) {
2274
+ connect(parameters, options) {
2248
2275
  const params = buildClientParams([parameters], [
2249
2276
  {
2250
2277
  args: [
2251
- { in: "path", key: "id" },
2278
+ { in: "path", key: "name" },
2252
2279
  { in: "query", key: "directory" },
2253
2280
  { in: "query", key: "workspace" },
2254
2281
  ],
2255
2282
  },
2256
2283
  ]);
2257
- return (options?.client ?? this.client).get({
2258
- url: "/kilo/cloud/session/{id}",
2284
+ return (options?.client ?? this.client).post({
2285
+ url: "/mcp/{name}/connect",
2259
2286
  ...options,
2260
2287
  ...params,
2261
2288
  });
2262
2289
  }
2263
2290
  /**
2264
- * Import session from cloud
2265
- *
2266
- * Download a cloud-synced session and write it to local storage with fresh IDs.
2291
+ * Disconnect an MCP server
2267
2292
  */
2268
- import(parameters, options) {
2293
+ disconnect(parameters, options) {
2269
2294
  const params = buildClientParams([parameters], [
2270
2295
  {
2271
2296
  args: [
2297
+ { in: "path", key: "name" },
2272
2298
  { in: "query", key: "directory" },
2273
2299
  { in: "query", key: "workspace" },
2274
- { in: "body", key: "sessionId" },
2275
2300
  ],
2276
2301
  },
2277
2302
  ]);
2278
2303
  return (options?.client ?? this.client).post({
2279
- url: "/kilo/cloud/session/import",
2304
+ url: "/mcp/{name}/disconnect",
2280
2305
  ...options,
2281
2306
  ...params,
2282
- headers: {
2283
- "Content-Type": "application/json",
2284
- ...options?.headers,
2285
- ...params.headers,
2286
- },
2287
2307
  });
2288
2308
  }
2289
- }
2290
- export class Cloud extends HeyApiClient {
2291
- _session;
2292
- get session() {
2293
- return (this._session ??= new Session3({ client: this.client }));
2309
+ _auth;
2310
+ get auth() {
2311
+ return (this._auth ??= new Auth2({ client: this.client }));
2294
2312
  }
2295
2313
  }
2296
- export class Claw extends HeyApiClient {
2314
+ export class Control extends HeyApiClient {
2297
2315
  /**
2298
- * Get KiloClaw instance status
2316
+ * Get next TUI request
2299
2317
  *
2300
- * Fetch the user's KiloClaw instance status via the KiloClaw worker
2318
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
2301
2319
  */
2302
- status(parameters, options) {
2320
+ next(parameters, options) {
2303
2321
  const params = buildClientParams([parameters], [
2304
2322
  {
2305
2323
  args: [
@@ -2309,39 +2327,71 @@ export class Claw extends HeyApiClient {
2309
2327
  },
2310
2328
  ]);
2311
2329
  return (options?.client ?? this.client).get({
2312
- url: "/kilo/claw/status",
2330
+ url: "/tui/control/next",
2331
+ ...options,
2332
+ ...params,
2333
+ });
2334
+ }
2335
+ /**
2336
+ * Submit TUI response
2337
+ *
2338
+ * Submit a response to the TUI request queue to complete a pending request.
2339
+ */
2340
+ response(parameters, options) {
2341
+ const params = buildClientParams([parameters], [
2342
+ {
2343
+ args: [
2344
+ { in: "query", key: "directory" },
2345
+ { in: "query", key: "workspace" },
2346
+ { key: "body", map: "body" },
2347
+ ],
2348
+ },
2349
+ ]);
2350
+ return (options?.client ?? this.client).post({
2351
+ url: "/tui/control/response",
2313
2352
  ...options,
2314
2353
  ...params,
2354
+ headers: {
2355
+ "Content-Type": "application/json",
2356
+ ...options?.headers,
2357
+ ...params.headers,
2358
+ },
2315
2359
  });
2316
2360
  }
2361
+ }
2362
+ export class Tui extends HeyApiClient {
2317
2363
  /**
2318
- * Get KiloClaw chat credentials
2364
+ * Append TUI prompt
2319
2365
  *
2320
- * Fetch Stream Chat credentials for the user's KiloClaw instance
2366
+ * Append prompt to the TUI
2321
2367
  */
2322
- chatCredentials(parameters, options) {
2368
+ appendPrompt(parameters, options) {
2323
2369
  const params = buildClientParams([parameters], [
2324
2370
  {
2325
2371
  args: [
2326
2372
  { in: "query", key: "directory" },
2327
2373
  { in: "query", key: "workspace" },
2374
+ { in: "body", key: "text" },
2328
2375
  ],
2329
2376
  },
2330
2377
  ]);
2331
- return (options?.client ?? this.client).get({
2332
- url: "/kilo/claw/chat-credentials",
2378
+ return (options?.client ?? this.client).post({
2379
+ url: "/tui/append-prompt",
2333
2380
  ...options,
2334
2381
  ...params,
2382
+ headers: {
2383
+ "Content-Type": "application/json",
2384
+ ...options?.headers,
2385
+ ...params.headers,
2386
+ },
2335
2387
  });
2336
2388
  }
2337
- }
2338
- export class Kilo extends HeyApiClient {
2339
2389
  /**
2340
- * Get Kilo Gateway profile
2390
+ * Open help dialog
2341
2391
  *
2342
- * Fetch user profile and organizations from Kilo Gateway
2392
+ * Open the help dialog in the TUI to display user assistance information.
2343
2393
  */
2344
- profile(parameters, options) {
2394
+ openHelp(parameters, options) {
2345
2395
  const params = buildClientParams([parameters], [
2346
2396
  {
2347
2397
  args: [
@@ -2350,18 +2400,18 @@ export class Kilo extends HeyApiClient {
2350
2400
  ],
2351
2401
  },
2352
2402
  ]);
2353
- return (options?.client ?? this.client).get({
2354
- url: "/kilo/profile",
2403
+ return (options?.client ?? this.client).post({
2404
+ url: "/tui/open-help",
2355
2405
  ...options,
2356
2406
  ...params,
2357
2407
  });
2358
2408
  }
2359
2409
  /**
2360
- * Get organization custom modes
2410
+ * Open sessions dialog
2361
2411
  *
2362
- * Fetch custom modes defined for the current organization
2412
+ * Open the session dialog
2363
2413
  */
2364
- modes(parameters, options) {
2414
+ openSessions(parameters, options) {
2365
2415
  const params = buildClientParams([parameters], [
2366
2416
  {
2367
2417
  args: [
@@ -2370,48 +2420,38 @@ export class Kilo extends HeyApiClient {
2370
2420
  ],
2371
2421
  },
2372
2422
  ]);
2373
- return (options?.client ?? this.client).get({
2374
- url: "/kilo/modes",
2423
+ return (options?.client ?? this.client).post({
2424
+ url: "/tui/open-sessions",
2375
2425
  ...options,
2376
2426
  ...params,
2377
2427
  });
2378
2428
  }
2379
2429
  /**
2380
- * FIM completion
2430
+ * Open themes dialog
2381
2431
  *
2382
- * Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
2432
+ * Open the theme dialog
2383
2433
  */
2384
- fim(parameters, options) {
2434
+ openThemes(parameters, options) {
2385
2435
  const params = buildClientParams([parameters], [
2386
2436
  {
2387
2437
  args: [
2388
2438
  { in: "query", key: "directory" },
2389
2439
  { 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
2440
  ],
2396
2441
  },
2397
2442
  ]);
2398
- return (options?.client ?? this.client).sse.post({
2399
- url: "/kilo/fim",
2443
+ return (options?.client ?? this.client).post({
2444
+ url: "/tui/open-themes",
2400
2445
  ...options,
2401
2446
  ...params,
2402
- headers: {
2403
- "Content-Type": "application/json",
2404
- ...options?.headers,
2405
- ...params.headers,
2406
- },
2407
2447
  });
2408
2448
  }
2409
2449
  /**
2410
- * Get Kilo notifications
2450
+ * Open models dialog
2411
2451
  *
2412
- * Fetch notifications from Kilo Gateway for CLI display
2452
+ * Open the model dialog
2413
2453
  */
2414
- notifications(parameters, options) {
2454
+ openModels(parameters, options) {
2415
2455
  const params = buildClientParams([parameters], [
2416
2456
  {
2417
2457
  args: [
@@ -2420,165 +2460,171 @@ export class Kilo extends HeyApiClient {
2420
2460
  ],
2421
2461
  },
2422
2462
  ]);
2423
- return (options?.client ?? this.client).get({
2424
- url: "/kilo/notifications",
2463
+ return (options?.client ?? this.client).post({
2464
+ url: "/tui/open-models",
2425
2465
  ...options,
2426
2466
  ...params,
2427
2467
  });
2428
2468
  }
2429
2469
  /**
2430
- * Get cloud sessions
2470
+ * Submit TUI prompt
2431
2471
  *
2432
- * Fetch cloud CLI sessions from Kilo API
2472
+ * Submit the prompt
2433
2473
  */
2434
- cloudSessions(parameters, options) {
2474
+ submitPrompt(parameters, options) {
2435
2475
  const params = buildClientParams([parameters], [
2436
2476
  {
2437
2477
  args: [
2438
2478
  { in: "query", key: "directory" },
2439
2479
  { in: "query", key: "workspace" },
2440
- { in: "query", key: "cursor" },
2441
- { in: "query", key: "limit" },
2442
- { in: "query", key: "gitUrl" },
2443
2480
  ],
2444
2481
  },
2445
2482
  ]);
2446
- return (options?.client ?? this.client).get({
2447
- url: "/kilo/cloud-sessions",
2483
+ return (options?.client ?? this.client).post({
2484
+ url: "/tui/submit-prompt",
2448
2485
  ...options,
2449
2486
  ...params,
2450
2487
  });
2451
2488
  }
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
2489
  /**
2467
- * Find text
2490
+ * Clear TUI prompt
2468
2491
  *
2469
- * Search for text patterns across files in the project using ripgrep.
2492
+ * Clear the prompt
2470
2493
  */
2471
- text(parameters, options) {
2494
+ clearPrompt(parameters, options) {
2472
2495
  const params = buildClientParams([parameters], [
2473
2496
  {
2474
2497
  args: [
2475
2498
  { in: "query", key: "directory" },
2476
2499
  { in: "query", key: "workspace" },
2477
- { in: "query", key: "pattern" },
2478
2500
  ],
2479
2501
  },
2480
2502
  ]);
2481
- return (options?.client ?? this.client).get({
2482
- url: "/find",
2503
+ return (options?.client ?? this.client).post({
2504
+ url: "/tui/clear-prompt",
2483
2505
  ...options,
2484
2506
  ...params,
2485
2507
  });
2486
2508
  }
2487
2509
  /**
2488
- * Find files
2510
+ * Execute TUI command
2489
2511
  *
2490
- * Search for files or directories by name or pattern in the project directory.
2512
+ * Execute a TUI command (e.g. agent_cycle)
2491
2513
  */
2492
- files(parameters, options) {
2514
+ executeCommand(parameters, options) {
2493
2515
  const params = buildClientParams([parameters], [
2494
2516
  {
2495
2517
  args: [
2496
2518
  { in: "query", key: "directory" },
2497
2519
  { in: "query", key: "workspace" },
2498
- { in: "query", key: "query" },
2499
- { in: "query", key: "dirs" },
2500
- { in: "query", key: "type" },
2501
- { in: "query", key: "limit" },
2520
+ { in: "body", key: "command" },
2502
2521
  ],
2503
2522
  },
2504
2523
  ]);
2505
- return (options?.client ?? this.client).get({
2506
- url: "/find/file",
2524
+ return (options?.client ?? this.client).post({
2525
+ url: "/tui/execute-command",
2507
2526
  ...options,
2508
2527
  ...params,
2528
+ headers: {
2529
+ "Content-Type": "application/json",
2530
+ ...options?.headers,
2531
+ ...params.headers,
2532
+ },
2509
2533
  });
2510
2534
  }
2511
2535
  /**
2512
- * Find symbols
2536
+ * Show TUI toast
2513
2537
  *
2514
- * Search for workspace symbols like functions, classes, and variables using LSP.
2538
+ * Show a toast notification in the TUI
2515
2539
  */
2516
- symbols(parameters, options) {
2540
+ showToast(parameters, options) {
2517
2541
  const params = buildClientParams([parameters], [
2518
2542
  {
2519
2543
  args: [
2520
2544
  { in: "query", key: "directory" },
2521
2545
  { in: "query", key: "workspace" },
2522
- { in: "query", key: "query" },
2546
+ { in: "body", key: "title" },
2547
+ { in: "body", key: "message" },
2548
+ { in: "body", key: "variant" },
2549
+ { in: "body", key: "duration" },
2523
2550
  ],
2524
2551
  },
2525
2552
  ]);
2526
- return (options?.client ?? this.client).get({
2527
- url: "/find/symbol",
2553
+ return (options?.client ?? this.client).post({
2554
+ url: "/tui/show-toast",
2528
2555
  ...options,
2529
2556
  ...params,
2557
+ headers: {
2558
+ "Content-Type": "application/json",
2559
+ ...options?.headers,
2560
+ ...params.headers,
2561
+ },
2530
2562
  });
2531
2563
  }
2532
- }
2533
- export class File extends HeyApiClient {
2534
2564
  /**
2535
- * List files
2565
+ * Publish TUI event
2536
2566
  *
2537
- * List files and directories in a specified path.
2567
+ * Publish a TUI event
2538
2568
  */
2539
- list(parameters, options) {
2569
+ publish(parameters, options) {
2540
2570
  const params = buildClientParams([parameters], [
2541
2571
  {
2542
2572
  args: [
2543
2573
  { in: "query", key: "directory" },
2544
2574
  { in: "query", key: "workspace" },
2545
- { in: "query", key: "path" },
2575
+ { key: "body", map: "body" },
2546
2576
  ],
2547
2577
  },
2548
2578
  ]);
2549
- return (options?.client ?? this.client).get({
2550
- url: "/file",
2579
+ return (options?.client ?? this.client).post({
2580
+ url: "/tui/publish",
2551
2581
  ...options,
2552
2582
  ...params,
2583
+ headers: {
2584
+ "Content-Type": "application/json",
2585
+ ...options?.headers,
2586
+ ...params.headers,
2587
+ },
2553
2588
  });
2554
2589
  }
2555
2590
  /**
2556
- * Read file
2591
+ * Select session
2557
2592
  *
2558
- * Read the content of a specified file.
2593
+ * Navigate the TUI to display the specified session.
2559
2594
  */
2560
- read(parameters, options) {
2595
+ selectSession(parameters, options) {
2561
2596
  const params = buildClientParams([parameters], [
2562
2597
  {
2563
2598
  args: [
2564
2599
  { in: "query", key: "directory" },
2565
2600
  { in: "query", key: "workspace" },
2566
- { in: "query", key: "path" },
2601
+ { in: "body", key: "sessionID" },
2567
2602
  ],
2568
2603
  },
2569
2604
  ]);
2570
- return (options?.client ?? this.client).get({
2571
- url: "/file/content",
2605
+ return (options?.client ?? this.client).post({
2606
+ url: "/tui/select-session",
2572
2607
  ...options,
2573
2608
  ...params,
2609
+ headers: {
2610
+ "Content-Type": "application/json",
2611
+ ...options?.headers,
2612
+ ...params.headers,
2613
+ },
2574
2614
  });
2575
2615
  }
2616
+ _control;
2617
+ get control() {
2618
+ return (this._control ??= new Control({ client: this.client }));
2619
+ }
2620
+ }
2621
+ export class Instance extends HeyApiClient {
2576
2622
  /**
2577
- * Get file status
2623
+ * Dispose instance
2578
2624
  *
2579
- * Get the git status of all files in the project.
2625
+ * Clean up and dispose the current Kilo instance, releasing all resources.
2580
2626
  */
2581
- status(parameters, options) {
2627
+ dispose(parameters, options) {
2582
2628
  const params = buildClientParams([parameters], [
2583
2629
  {
2584
2630
  args: [
@@ -2587,110 +2633,105 @@ export class File extends HeyApiClient {
2587
2633
  ],
2588
2634
  },
2589
2635
  ]);
2590
- return (options?.client ?? this.client).get({
2591
- url: "/file/status",
2636
+ return (options?.client ?? this.client).post({
2637
+ url: "/instance/dispose",
2592
2638
  ...options,
2593
2639
  ...params,
2594
2640
  });
2595
2641
  }
2596
2642
  }
2597
- export class Auth2 extends HeyApiClient {
2643
+ export class Path extends HeyApiClient {
2598
2644
  /**
2599
- * Remove MCP OAuth
2645
+ * Get paths
2600
2646
  *
2601
- * Remove OAuth credentials for an MCP server
2647
+ * Retrieve the current working directory and related path information for the Kilo instance.
2602
2648
  */
2603
- remove(parameters, options) {
2649
+ get(parameters, options) {
2604
2650
  const params = buildClientParams([parameters], [
2605
2651
  {
2606
2652
  args: [
2607
- { in: "path", key: "name" },
2608
2653
  { in: "query", key: "directory" },
2609
2654
  { in: "query", key: "workspace" },
2610
2655
  ],
2611
2656
  },
2612
2657
  ]);
2613
- return (options?.client ?? this.client).delete({
2614
- url: "/mcp/{name}/auth",
2658
+ return (options?.client ?? this.client).get({
2659
+ url: "/path",
2615
2660
  ...options,
2616
2661
  ...params,
2617
2662
  });
2618
2663
  }
2664
+ }
2665
+ export class Vcs extends HeyApiClient {
2619
2666
  /**
2620
- * Start MCP OAuth
2667
+ * Get VCS info
2621
2668
  *
2622
- * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
2669
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
2623
2670
  */
2624
- start(parameters, options) {
2671
+ get(parameters, options) {
2625
2672
  const params = buildClientParams([parameters], [
2626
2673
  {
2627
2674
  args: [
2628
- { in: "path", key: "name" },
2629
2675
  { in: "query", key: "directory" },
2630
2676
  { in: "query", key: "workspace" },
2631
2677
  ],
2632
2678
  },
2633
2679
  ]);
2634
- return (options?.client ?? this.client).post({
2635
- url: "/mcp/{name}/auth",
2680
+ return (options?.client ?? this.client).get({
2681
+ url: "/vcs",
2636
2682
  ...options,
2637
2683
  ...params,
2638
2684
  });
2639
2685
  }
2640
2686
  /**
2641
- * Complete MCP OAuth
2687
+ * Get VCS diff
2642
2688
  *
2643
- * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
2689
+ * Retrieve the current git diff for the working tree or against the default branch.
2644
2690
  */
2645
- callback(parameters, options) {
2691
+ diff(parameters, options) {
2646
2692
  const params = buildClientParams([parameters], [
2647
2693
  {
2648
2694
  args: [
2649
- { in: "path", key: "name" },
2650
2695
  { in: "query", key: "directory" },
2651
2696
  { in: "query", key: "workspace" },
2652
- { in: "body", key: "code" },
2697
+ { in: "query", key: "mode" },
2653
2698
  ],
2654
2699
  },
2655
2700
  ]);
2656
- return (options?.client ?? this.client).post({
2657
- url: "/mcp/{name}/auth/callback",
2701
+ return (options?.client ?? this.client).get({
2702
+ url: "/vcs/diff",
2658
2703
  ...options,
2659
2704
  ...params,
2660
- headers: {
2661
- "Content-Type": "application/json",
2662
- ...options?.headers,
2663
- ...params.headers,
2664
- },
2665
2705
  });
2666
2706
  }
2707
+ }
2708
+ export class Command extends HeyApiClient {
2667
2709
  /**
2668
- * Authenticate MCP OAuth
2710
+ * List commands
2669
2711
  *
2670
- * Start OAuth flow and wait for callback (opens browser)
2712
+ * Get a list of all available commands in the Kilo system.
2671
2713
  */
2672
- authenticate(parameters, options) {
2714
+ list(parameters, options) {
2673
2715
  const params = buildClientParams([parameters], [
2674
2716
  {
2675
2717
  args: [
2676
- { in: "path", key: "name" },
2677
2718
  { in: "query", key: "directory" },
2678
2719
  { in: "query", key: "workspace" },
2679
2720
  ],
2680
2721
  },
2681
2722
  ]);
2682
- return (options?.client ?? this.client).post({
2683
- url: "/mcp/{name}/auth/authenticate",
2723
+ return (options?.client ?? this.client).get({
2724
+ url: "/command",
2684
2725
  ...options,
2685
2726
  ...params,
2686
2727
  });
2687
2728
  }
2688
2729
  }
2689
- export class Mcp extends HeyApiClient {
2730
+ export class Lsp extends HeyApiClient {
2690
2731
  /**
2691
- * Get MCP status
2732
+ * Get LSP status
2692
2733
  *
2693
- * Get the status of all Model Context Protocol (MCP) servers.
2734
+ * Get LSP server status
2694
2735
  */
2695
2736
  status(parameters, options) {
2696
2737
  const params = buildClientParams([parameters], [
@@ -2702,119 +2743,117 @@ export class Mcp extends HeyApiClient {
2702
2743
  },
2703
2744
  ]);
2704
2745
  return (options?.client ?? this.client).get({
2705
- url: "/mcp",
2746
+ url: "/lsp",
2706
2747
  ...options,
2707
2748
  ...params,
2708
2749
  });
2709
2750
  }
2751
+ }
2752
+ export class Formatter extends HeyApiClient {
2710
2753
  /**
2711
- * Add MCP server
2754
+ * Get formatter status
2712
2755
  *
2713
- * Dynamically add a new Model Context Protocol (MCP) server to the system.
2756
+ * Get formatter status
2714
2757
  */
2715
- add(parameters, options) {
2758
+ status(parameters, options) {
2716
2759
  const params = buildClientParams([parameters], [
2717
2760
  {
2718
2761
  args: [
2719
2762
  { in: "query", key: "directory" },
2720
2763
  { in: "query", key: "workspace" },
2721
- { in: "body", key: "name" },
2722
- { in: "body", key: "config" },
2723
2764
  ],
2724
2765
  },
2725
2766
  ]);
2726
- return (options?.client ?? this.client).post({
2727
- url: "/mcp",
2767
+ return (options?.client ?? this.client).get({
2768
+ url: "/formatter",
2728
2769
  ...options,
2729
2770
  ...params,
2730
- headers: {
2731
- "Content-Type": "application/json",
2732
- ...options?.headers,
2733
- ...params.headers,
2734
- },
2735
2771
  });
2736
2772
  }
2773
+ }
2774
+ export class Network extends HeyApiClient {
2737
2775
  /**
2738
- * Connect an MCP server
2776
+ * List pending network waits
2777
+ *
2778
+ * Get all pending network reconnect requests across all sessions.
2739
2779
  */
2740
- connect(parameters, options) {
2780
+ list(parameters, options) {
2741
2781
  const params = buildClientParams([parameters], [
2742
2782
  {
2743
2783
  args: [
2744
- { in: "path", key: "name" },
2745
2784
  { in: "query", key: "directory" },
2746
2785
  { in: "query", key: "workspace" },
2747
2786
  ],
2748
2787
  },
2749
2788
  ]);
2750
- return (options?.client ?? this.client).post({
2751
- url: "/mcp/{name}/connect",
2789
+ return (options?.client ?? this.client).get({
2790
+ url: "/network",
2752
2791
  ...options,
2753
2792
  ...params,
2754
2793
  });
2755
2794
  }
2756
2795
  /**
2757
- * Disconnect an MCP server
2796
+ * Resume after network wait
2797
+ *
2798
+ * Resume a pending session after reconnecting network-dependent services.
2758
2799
  */
2759
- disconnect(parameters, options) {
2800
+ reply(parameters, options) {
2760
2801
  const params = buildClientParams([parameters], [
2761
2802
  {
2762
2803
  args: [
2763
- { in: "path", key: "name" },
2804
+ { in: "path", key: "requestID" },
2764
2805
  { in: "query", key: "directory" },
2765
2806
  { in: "query", key: "workspace" },
2766
2807
  ],
2767
2808
  },
2768
2809
  ]);
2769
2810
  return (options?.client ?? this.client).post({
2770
- url: "/mcp/{name}/disconnect",
2811
+ url: "/network/{requestID}/reply",
2771
2812
  ...options,
2772
2813
  ...params,
2773
2814
  });
2774
2815
  }
2775
- _auth;
2776
- get auth() {
2777
- return (this._auth ??= new Auth2({ client: this.client }));
2778
- }
2779
- }
2780
- export class Control extends HeyApiClient {
2781
2816
  /**
2782
- * Get next TUI request
2817
+ * Reject network resume request
2783
2818
  *
2784
- * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
2819
+ * Stop a pending session instead of resuming after network reconnect.
2785
2820
  */
2786
- next(parameters, options) {
2821
+ reject(parameters, options) {
2787
2822
  const params = buildClientParams([parameters], [
2788
2823
  {
2789
2824
  args: [
2825
+ { in: "path", key: "requestID" },
2790
2826
  { in: "query", key: "directory" },
2791
2827
  { in: "query", key: "workspace" },
2792
2828
  ],
2793
2829
  },
2794
2830
  ]);
2795
- return (options?.client ?? this.client).get({
2796
- url: "/tui/control/next",
2831
+ return (options?.client ?? this.client).post({
2832
+ url: "/network/{requestID}/reject",
2797
2833
  ...options,
2798
2834
  ...params,
2799
2835
  });
2800
2836
  }
2837
+ }
2838
+ export class Telemetry extends HeyApiClient {
2801
2839
  /**
2802
- * Submit TUI response
2840
+ * Capture telemetry event
2803
2841
  *
2804
- * Submit a response to the TUI request queue to complete a pending request.
2842
+ * Forward a telemetry event to PostHog via kilo-telemetry.
2805
2843
  */
2806
- response(parameters, options) {
2844
+ capture(parameters, options) {
2807
2845
  const params = buildClientParams([parameters], [
2808
2846
  {
2809
2847
  args: [
2810
2848
  { in: "query", key: "directory" },
2811
2849
  { in: "query", key: "workspace" },
2812
- { key: "body", map: "body" },
2850
+ { in: "body", key: "event" },
2851
+ { in: "body", key: "properties" },
2813
2852
  ],
2814
2853
  },
2815
2854
  ]);
2816
2855
  return (options?.client ?? this.client).post({
2817
- url: "/tui/control/response",
2856
+ url: "/telemetry/capture",
2818
2857
  ...options,
2819
2858
  ...params,
2820
2859
  headers: {
@@ -2825,39 +2864,33 @@ export class Control extends HeyApiClient {
2825
2864
  });
2826
2865
  }
2827
2866
  }
2828
- export class Tui extends HeyApiClient {
2867
+ export class Remote extends HeyApiClient {
2829
2868
  /**
2830
- * Append TUI prompt
2869
+ * Enable remote connection
2831
2870
  *
2832
- * Append prompt to the TUI
2871
+ * Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
2833
2872
  */
2834
- appendPrompt(parameters, options) {
2873
+ enable(parameters, options) {
2835
2874
  const params = buildClientParams([parameters], [
2836
2875
  {
2837
2876
  args: [
2838
2877
  { in: "query", key: "directory" },
2839
2878
  { in: "query", key: "workspace" },
2840
- { in: "body", key: "text" },
2841
2879
  ],
2842
2880
  },
2843
2881
  ]);
2844
2882
  return (options?.client ?? this.client).post({
2845
- url: "/tui/append-prompt",
2883
+ url: "/remote/enable",
2846
2884
  ...options,
2847
2885
  ...params,
2848
- headers: {
2849
- "Content-Type": "application/json",
2850
- ...options?.headers,
2851
- ...params.headers,
2852
- },
2853
2886
  });
2854
2887
  }
2855
2888
  /**
2856
- * Open help dialog
2889
+ * Disable remote connection
2857
2890
  *
2858
- * Open the help dialog in the TUI to display user assistance information.
2891
+ * Close the remote WebSocket connection to UserConnectionDO.
2859
2892
  */
2860
- openHelp(parameters, options) {
2893
+ disable(parameters, options) {
2861
2894
  const params = buildClientParams([parameters], [
2862
2895
  {
2863
2896
  args: [
@@ -2867,17 +2900,17 @@ export class Tui extends HeyApiClient {
2867
2900
  },
2868
2901
  ]);
2869
2902
  return (options?.client ?? this.client).post({
2870
- url: "/tui/open-help",
2903
+ url: "/remote/disable",
2871
2904
  ...options,
2872
2905
  ...params,
2873
2906
  });
2874
2907
  }
2875
2908
  /**
2876
- * Open sessions dialog
2909
+ * Get remote connection status
2877
2910
  *
2878
- * Open the session dialog
2911
+ * Get the current state of the remote WebSocket connection.
2879
2912
  */
2880
- openSessions(parameters, options) {
2913
+ status(parameters, options) {
2881
2914
  const params = buildClientParams([parameters], [
2882
2915
  {
2883
2916
  args: [
@@ -2886,109 +2919,178 @@ export class Tui extends HeyApiClient {
2886
2919
  ],
2887
2920
  },
2888
2921
  ]);
2889
- return (options?.client ?? this.client).post({
2890
- url: "/tui/open-sessions",
2922
+ return (options?.client ?? this.client).get({
2923
+ url: "/remote/status",
2891
2924
  ...options,
2892
2925
  ...params,
2893
2926
  });
2894
2927
  }
2928
+ }
2929
+ export class CommitMessage extends HeyApiClient {
2895
2930
  /**
2896
- * Open themes dialog
2931
+ * Generate commit message
2897
2932
  *
2898
- * Open the theme dialog
2933
+ * Generate a commit message using AI based on the current git diff.
2899
2934
  */
2900
- openThemes(parameters, options) {
2935
+ generate(parameters, options) {
2901
2936
  const params = buildClientParams([parameters], [
2902
2937
  {
2903
2938
  args: [
2904
2939
  { in: "query", key: "directory" },
2905
2940
  { in: "query", key: "workspace" },
2941
+ { in: "body", key: "path" },
2942
+ { in: "body", key: "selectedFiles" },
2943
+ { in: "body", key: "previousMessage" },
2906
2944
  ],
2907
2945
  },
2908
2946
  ]);
2909
2947
  return (options?.client ?? this.client).post({
2910
- url: "/tui/open-themes",
2948
+ url: "/commit-message",
2911
2949
  ...options,
2912
2950
  ...params,
2951
+ headers: {
2952
+ "Content-Type": "application/json",
2953
+ ...options?.headers,
2954
+ ...params.headers,
2955
+ },
2913
2956
  });
2914
2957
  }
2958
+ }
2959
+ export class EnhancePrompt extends HeyApiClient {
2915
2960
  /**
2916
- * Open models dialog
2961
+ * Enhance prompt
2917
2962
  *
2918
- * Open the model dialog
2963
+ * Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.
2919
2964
  */
2920
- openModels(parameters, options) {
2965
+ enhance(parameters, options) {
2921
2966
  const params = buildClientParams([parameters], [
2922
2967
  {
2923
2968
  args: [
2924
2969
  { in: "query", key: "directory" },
2925
2970
  { in: "query", key: "workspace" },
2971
+ { in: "body", key: "text" },
2926
2972
  ],
2927
2973
  },
2928
2974
  ]);
2929
2975
  return (options?.client ?? this.client).post({
2930
- url: "/tui/open-models",
2976
+ url: "/enhance-prompt",
2931
2977
  ...options,
2932
2978
  ...params,
2979
+ headers: {
2980
+ "Content-Type": "application/json",
2981
+ ...options?.headers,
2982
+ ...params.headers,
2983
+ },
2933
2984
  });
2934
2985
  }
2986
+ }
2987
+ export class SessionImport extends HeyApiClient {
2935
2988
  /**
2936
- * Submit TUI prompt
2989
+ * Insert project for session import
2937
2990
  *
2938
- * Submit the prompt
2991
+ * Insert or update a project row used by legacy session import.
2939
2992
  */
2940
- submitPrompt(parameters, options) {
2993
+ project(parameters, options) {
2941
2994
  const params = buildClientParams([parameters], [
2942
2995
  {
2943
2996
  args: [
2944
2997
  { in: "query", key: "directory" },
2945
2998
  { in: "query", key: "workspace" },
2999
+ { in: "body", key: "id" },
3000
+ { in: "body", key: "worktree" },
3001
+ { in: "body", key: "vcs" },
3002
+ { in: "body", key: "name" },
3003
+ { in: "body", key: "iconUrl" },
3004
+ { in: "body", key: "iconColor" },
3005
+ { in: "body", key: "timeCreated" },
3006
+ { in: "body", key: "timeUpdated" },
3007
+ { in: "body", key: "timeInitialized" },
3008
+ { in: "body", key: "sandboxes" },
3009
+ { in: "body", key: "commands" },
2946
3010
  ],
2947
3011
  },
2948
3012
  ]);
2949
3013
  return (options?.client ?? this.client).post({
2950
- url: "/tui/submit-prompt",
3014
+ url: "/kilocode/session-import/project",
2951
3015
  ...options,
2952
3016
  ...params,
3017
+ headers: {
3018
+ "Content-Type": "application/json",
3019
+ ...options?.headers,
3020
+ ...params.headers,
3021
+ },
2953
3022
  });
2954
3023
  }
2955
3024
  /**
2956
- * Clear TUI prompt
3025
+ * Insert session for session import
2957
3026
  *
2958
- * Clear the prompt
3027
+ * Insert or update a session row used by legacy session import.
2959
3028
  */
2960
- clearPrompt(parameters, options) {
3029
+ session(parameters, options) {
2961
3030
  const params = buildClientParams([parameters], [
2962
3031
  {
2963
3032
  args: [
2964
- { in: "query", key: "directory" },
3033
+ {
3034
+ in: "query",
3035
+ key: "query_directory",
3036
+ map: "directory",
3037
+ },
2965
3038
  { in: "query", key: "workspace" },
3039
+ { in: "body", key: "id" },
3040
+ { in: "body", key: "projectID" },
3041
+ { in: "body", key: "force" },
3042
+ { in: "body", key: "workspaceID" },
3043
+ { in: "body", key: "parentID" },
3044
+ { in: "body", key: "slug" },
3045
+ {
3046
+ in: "body",
3047
+ key: "body_directory",
3048
+ map: "directory",
3049
+ },
3050
+ { in: "body", key: "title" },
3051
+ { in: "body", key: "version" },
3052
+ { in: "body", key: "shareURL" },
3053
+ { in: "body", key: "summary" },
3054
+ { in: "body", key: "revert" },
3055
+ { in: "body", key: "permission" },
3056
+ { in: "body", key: "timeCreated" },
3057
+ { in: "body", key: "timeUpdated" },
3058
+ { in: "body", key: "timeCompacting" },
3059
+ { in: "body", key: "timeArchived" },
2966
3060
  ],
2967
3061
  },
2968
3062
  ]);
2969
3063
  return (options?.client ?? this.client).post({
2970
- url: "/tui/clear-prompt",
3064
+ url: "/kilocode/session-import/session",
2971
3065
  ...options,
2972
3066
  ...params,
3067
+ headers: {
3068
+ "Content-Type": "application/json",
3069
+ ...options?.headers,
3070
+ ...params.headers,
3071
+ },
2973
3072
  });
2974
3073
  }
2975
3074
  /**
2976
- * Execute TUI command
3075
+ * Insert message for session import
2977
3076
  *
2978
- * Execute a TUI command (e.g. agent_cycle)
3077
+ * Insert or update a message row used by legacy session import.
2979
3078
  */
2980
- executeCommand(parameters, options) {
3079
+ message(parameters, options) {
2981
3080
  const params = buildClientParams([parameters], [
2982
3081
  {
2983
3082
  args: [
2984
3083
  { in: "query", key: "directory" },
2985
3084
  { in: "query", key: "workspace" },
2986
- { in: "body", key: "command" },
3085
+ { in: "body", key: "id" },
3086
+ { in: "body", key: "sessionID" },
3087
+ { in: "body", key: "timeCreated" },
3088
+ { in: "body", key: "data" },
2987
3089
  ],
2988
3090
  },
2989
3091
  ]);
2990
3092
  return (options?.client ?? this.client).post({
2991
- url: "/tui/execute-command",
3093
+ url: "/kilocode/session-import/message",
2992
3094
  ...options,
2993
3095
  ...params,
2994
3096
  headers: {
@@ -2999,25 +3101,26 @@ export class Tui extends HeyApiClient {
2999
3101
  });
3000
3102
  }
3001
3103
  /**
3002
- * Show TUI toast
3104
+ * Insert part for session import
3003
3105
  *
3004
- * Show a toast notification in the TUI
3106
+ * Insert or update a part row used by legacy session import.
3005
3107
  */
3006
- showToast(parameters, options) {
3108
+ part(parameters, options) {
3007
3109
  const params = buildClientParams([parameters], [
3008
3110
  {
3009
3111
  args: [
3010
3112
  { in: "query", key: "directory" },
3011
3113
  { in: "query", key: "workspace" },
3012
- { in: "body", key: "title" },
3013
- { in: "body", key: "message" },
3014
- { in: "body", key: "variant" },
3015
- { in: "body", key: "duration" },
3114
+ { in: "body", key: "id" },
3115
+ { in: "body", key: "messageID" },
3116
+ { in: "body", key: "sessionID" },
3117
+ { in: "body", key: "timeCreated" },
3118
+ { in: "body", key: "data" },
3016
3119
  ],
3017
3120
  },
3018
3121
  ]);
3019
3122
  return (options?.client ?? this.client).post({
3020
- url: "/tui/show-toast",
3123
+ url: "/kilocode/session-import/part",
3021
3124
  ...options,
3022
3125
  ...params,
3023
3126
  headers: {
@@ -3027,23 +3130,25 @@ export class Tui extends HeyApiClient {
3027
3130
  },
3028
3131
  });
3029
3132
  }
3133
+ }
3134
+ export class Kilocode extends HeyApiClient {
3030
3135
  /**
3031
- * Publish TUI event
3136
+ * Remove a skill
3032
3137
  *
3033
- * Publish a TUI event
3138
+ * Remove a skill by deleting its directory from disk and clearing it from cache.
3034
3139
  */
3035
- publish(parameters, options) {
3140
+ removeSkill(parameters, options) {
3036
3141
  const params = buildClientParams([parameters], [
3037
3142
  {
3038
3143
  args: [
3039
3144
  { in: "query", key: "directory" },
3040
3145
  { in: "query", key: "workspace" },
3041
- { key: "body", map: "body" },
3146
+ { in: "body", key: "location" },
3042
3147
  ],
3043
3148
  },
3044
3149
  ]);
3045
3150
  return (options?.client ?? this.client).post({
3046
- url: "/tui/publish",
3151
+ url: "/kilocode/skill/remove",
3047
3152
  ...options,
3048
3153
  ...params,
3049
3154
  headers: {
@@ -3054,22 +3159,22 @@ export class Tui extends HeyApiClient {
3054
3159
  });
3055
3160
  }
3056
3161
  /**
3057
- * Select session
3162
+ * Remove a custom agent
3058
3163
  *
3059
- * Navigate the TUI to display the specified session.
3164
+ * Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
3060
3165
  */
3061
- selectSession(parameters, options) {
3166
+ removeAgent(parameters, options) {
3062
3167
  const params = buildClientParams([parameters], [
3063
3168
  {
3064
3169
  args: [
3065
3170
  { in: "query", key: "directory" },
3066
3171
  { in: "query", key: "workspace" },
3067
- { in: "body", key: "sessionID" },
3172
+ { in: "body", key: "name" },
3068
3173
  ],
3069
3174
  },
3070
3175
  ]);
3071
3176
  return (options?.client ?? this.client).post({
3072
- url: "/tui/select-session",
3177
+ url: "/kilocode/agent/remove",
3073
3178
  ...options,
3074
3179
  ...params,
3075
3180
  headers: {
@@ -3079,84 +3184,101 @@ export class Tui extends HeyApiClient {
3079
3184
  },
3080
3185
  });
3081
3186
  }
3082
- _control;
3083
- get control() {
3084
- return (this._control ??= new Control({ client: this.client }));
3187
+ _sessionImport;
3188
+ get sessionImport() {
3189
+ return (this._sessionImport ??= new SessionImport({ client: this.client }));
3085
3190
  }
3086
3191
  }
3087
- export class Instance extends HeyApiClient {
3192
+ export class Organization extends HeyApiClient {
3088
3193
  /**
3089
- * Dispose instance
3194
+ * Update Kilo Gateway organization
3090
3195
  *
3091
- * Clean up and dispose the current Kilo instance, releasing all resources.
3196
+ * Switch to a different Kilo Gateway organization
3092
3197
  */
3093
- dispose(parameters, options) {
3198
+ set(parameters, options) {
3094
3199
  const params = buildClientParams([parameters], [
3095
3200
  {
3096
3201
  args: [
3097
3202
  { in: "query", key: "directory" },
3098
3203
  { in: "query", key: "workspace" },
3204
+ { in: "body", key: "organizationId" },
3099
3205
  ],
3100
3206
  },
3101
3207
  ]);
3102
3208
  return (options?.client ?? this.client).post({
3103
- url: "/instance/dispose",
3209
+ url: "/kilo/organization",
3104
3210
  ...options,
3105
3211
  ...params,
3212
+ headers: {
3213
+ "Content-Type": "application/json",
3214
+ ...options?.headers,
3215
+ ...params.headers,
3216
+ },
3106
3217
  });
3107
3218
  }
3108
3219
  }
3109
- export class Path extends HeyApiClient {
3220
+ export class Session3 extends HeyApiClient {
3110
3221
  /**
3111
- * Get paths
3222
+ * Get cloud session
3112
3223
  *
3113
- * Retrieve the current working directory and related path information for the Kilo instance.
3224
+ * Fetch full session data from the Kilo cloud for preview
3114
3225
  */
3115
3226
  get(parameters, options) {
3116
3227
  const params = buildClientParams([parameters], [
3117
3228
  {
3118
3229
  args: [
3230
+ { in: "path", key: "id" },
3119
3231
  { in: "query", key: "directory" },
3120
3232
  { in: "query", key: "workspace" },
3121
3233
  ],
3122
3234
  },
3123
3235
  ]);
3124
3236
  return (options?.client ?? this.client).get({
3125
- url: "/path",
3237
+ url: "/kilo/cloud/session/{id}",
3126
3238
  ...options,
3127
3239
  ...params,
3128
3240
  });
3129
3241
  }
3130
- }
3131
- export class Vcs extends HeyApiClient {
3132
3242
  /**
3133
- * Get VCS info
3243
+ * Import session from cloud
3134
3244
  *
3135
- * Retrieve version control system (VCS) information for the current project, such as git branch.
3245
+ * Download a cloud-synced session and write it to local storage with fresh IDs.
3136
3246
  */
3137
- get(parameters, options) {
3247
+ import(parameters, options) {
3138
3248
  const params = buildClientParams([parameters], [
3139
3249
  {
3140
3250
  args: [
3141
3251
  { in: "query", key: "directory" },
3142
3252
  { in: "query", key: "workspace" },
3253
+ { in: "body", key: "sessionId" },
3143
3254
  ],
3144
3255
  },
3145
3256
  ]);
3146
- return (options?.client ?? this.client).get({
3147
- url: "/vcs",
3257
+ return (options?.client ?? this.client).post({
3258
+ url: "/kilo/cloud/session/import",
3148
3259
  ...options,
3149
3260
  ...params,
3261
+ headers: {
3262
+ "Content-Type": "application/json",
3263
+ ...options?.headers,
3264
+ ...params.headers,
3265
+ },
3150
3266
  });
3151
3267
  }
3152
3268
  }
3153
- export class Command extends HeyApiClient {
3269
+ export class Cloud extends HeyApiClient {
3270
+ _session;
3271
+ get session() {
3272
+ return (this._session ??= new Session3({ client: this.client }));
3273
+ }
3274
+ }
3275
+ export class Claw extends HeyApiClient {
3154
3276
  /**
3155
- * List commands
3277
+ * Get KiloClaw instance status
3156
3278
  *
3157
- * Get a list of all available commands in the Kilo system.
3279
+ * Fetch the user's KiloClaw instance status via the KiloClaw worker
3158
3280
  */
3159
- list(parameters, options) {
3281
+ status(parameters, options) {
3160
3282
  const params = buildClientParams([parameters], [
3161
3283
  {
3162
3284
  args: [
@@ -3166,48 +3288,39 @@ export class Command extends HeyApiClient {
3166
3288
  },
3167
3289
  ]);
3168
3290
  return (options?.client ?? this.client).get({
3169
- url: "/command",
3291
+ url: "/kilo/claw/status",
3170
3292
  ...options,
3171
3293
  ...params,
3172
3294
  });
3173
3295
  }
3174
- }
3175
- export class App extends HeyApiClient {
3176
3296
  /**
3177
- * Write log
3297
+ * Get KiloClaw chat credentials
3178
3298
  *
3179
- * Write a log entry to the server logs with specified level and metadata.
3299
+ * Fetch Stream Chat credentials for the user's KiloClaw instance
3180
3300
  */
3181
- log(parameters, options) {
3301
+ chatCredentials(parameters, options) {
3182
3302
  const params = buildClientParams([parameters], [
3183
3303
  {
3184
3304
  args: [
3185
3305
  { in: "query", key: "directory" },
3186
3306
  { 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
3307
  ],
3192
3308
  },
3193
3309
  ]);
3194
- return (options?.client ?? this.client).post({
3195
- url: "/log",
3310
+ return (options?.client ?? this.client).get({
3311
+ url: "/kilo/claw/chat-credentials",
3196
3312
  ...options,
3197
3313
  ...params,
3198
- headers: {
3199
- "Content-Type": "application/json",
3200
- ...options?.headers,
3201
- ...params.headers,
3202
- },
3203
3314
  });
3204
3315
  }
3316
+ }
3317
+ export class Kilo extends HeyApiClient {
3205
3318
  /**
3206
- * List agents
3319
+ * Get Kilo Gateway profile
3207
3320
  *
3208
- * Get a list of all available AI agents in the Kilo system.
3321
+ * Fetch user profile and organizations from Kilo Gateway
3209
3322
  */
3210
- agents(parameters, options) {
3323
+ profile(parameters, options) {
3211
3324
  const params = buildClientParams([parameters], [
3212
3325
  {
3213
3326
  args: [
@@ -3217,17 +3330,17 @@ export class App extends HeyApiClient {
3217
3330
  },
3218
3331
  ]);
3219
3332
  return (options?.client ?? this.client).get({
3220
- url: "/agent",
3333
+ url: "/kilo/profile",
3221
3334
  ...options,
3222
3335
  ...params,
3223
3336
  });
3224
3337
  }
3225
3338
  /**
3226
- * List skills
3339
+ * Get organization custom modes
3227
3340
  *
3228
- * Get a list of all available skills in the Kilo system.
3341
+ * Fetch custom modes defined for the current organization
3229
3342
  */
3230
- skills(parameters, options) {
3343
+ modes(parameters, options) {
3231
3344
  const params = buildClientParams([parameters], [
3232
3345
  {
3233
3346
  args: [
@@ -3237,41 +3350,47 @@ export class App extends HeyApiClient {
3237
3350
  },
3238
3351
  ]);
3239
3352
  return (options?.client ?? this.client).get({
3240
- url: "/skill",
3353
+ url: "/kilo/modes",
3241
3354
  ...options,
3242
3355
  ...params,
3243
3356
  });
3244
3357
  }
3245
- }
3246
- export class Lsp extends HeyApiClient {
3247
3358
  /**
3248
- * Get LSP status
3359
+ * FIM completion
3249
3360
  *
3250
- * Get LSP server status
3361
+ * Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
3251
3362
  */
3252
- status(parameters, options) {
3363
+ fim(parameters, options) {
3253
3364
  const params = buildClientParams([parameters], [
3254
3365
  {
3255
3366
  args: [
3256
3367
  { in: "query", key: "directory" },
3257
3368
  { in: "query", key: "workspace" },
3369
+ { in: "body", key: "prefix" },
3370
+ { in: "body", key: "suffix" },
3371
+ { in: "body", key: "model" },
3372
+ { in: "body", key: "maxTokens" },
3373
+ { in: "body", key: "temperature" },
3258
3374
  ],
3259
3375
  },
3260
3376
  ]);
3261
- return (options?.client ?? this.client).get({
3262
- url: "/lsp",
3377
+ return (options?.client ?? this.client).sse.post({
3378
+ url: "/kilo/fim",
3263
3379
  ...options,
3264
3380
  ...params,
3381
+ headers: {
3382
+ "Content-Type": "application/json",
3383
+ ...options?.headers,
3384
+ ...params.headers,
3385
+ },
3265
3386
  });
3266
3387
  }
3267
- }
3268
- export class Formatter extends HeyApiClient {
3269
3388
  /**
3270
- * Get formatter status
3389
+ * Get Kilo notifications
3271
3390
  *
3272
- * Get formatter status
3391
+ * Fetch notifications from Kilo Gateway for CLI display
3273
3392
  */
3274
- status(parameters, options) {
3393
+ notifications(parameters, options) {
3275
3394
  const params = buildClientParams([parameters], [
3276
3395
  {
3277
3396
  args: [
@@ -3281,33 +3400,46 @@ export class Formatter extends HeyApiClient {
3281
3400
  },
3282
3401
  ]);
3283
3402
  return (options?.client ?? this.client).get({
3284
- url: "/formatter",
3403
+ url: "/kilo/notifications",
3285
3404
  ...options,
3286
3405
  ...params,
3287
3406
  });
3288
3407
  }
3289
- }
3290
- export class Event extends HeyApiClient {
3291
3408
  /**
3292
- * Subscribe to events
3409
+ * Get cloud sessions
3293
3410
  *
3294
- * Get events
3411
+ * Fetch cloud CLI sessions from Kilo API
3295
3412
  */
3296
- subscribe(parameters, options) {
3413
+ cloudSessions(parameters, options) {
3297
3414
  const params = buildClientParams([parameters], [
3298
3415
  {
3299
3416
  args: [
3300
3417
  { in: "query", key: "directory" },
3301
3418
  { in: "query", key: "workspace" },
3419
+ { in: "query", key: "cursor" },
3420
+ { in: "query", key: "limit" },
3421
+ { in: "query", key: "gitUrl" },
3302
3422
  ],
3303
3423
  },
3304
3424
  ]);
3305
- return (options?.client ?? this.client).sse.get({
3306
- url: "/event",
3425
+ return (options?.client ?? this.client).get({
3426
+ url: "/kilo/cloud-sessions",
3307
3427
  ...options,
3308
3428
  ...params,
3309
3429
  });
3310
3430
  }
3431
+ _organization;
3432
+ get organization() {
3433
+ return (this._organization ??= new Organization({ client: this.client }));
3434
+ }
3435
+ _cloud;
3436
+ get cloud() {
3437
+ return (this._cloud ??= new Cloud({ client: this.client }));
3438
+ }
3439
+ _claw;
3440
+ get claw() {
3441
+ return (this._claw ??= new Claw({ client: this.client }));
3442
+ }
3311
3443
  }
3312
3444
  export class KiloClient extends HeyApiClient {
3313
3445
  static __registry = new HeyApiRegistry();
@@ -3323,6 +3455,10 @@ export class KiloClient extends HeyApiClient {
3323
3455
  get auth() {
3324
3456
  return (this._auth ??= new Auth({ client: this.client }));
3325
3457
  }
3458
+ _app;
3459
+ get app() {
3460
+ return (this._app ??= new App({ client: this.client }));
3461
+ }
3326
3462
  _project;
3327
3463
  get project() {
3328
3464
  return (this._project ??= new Project({ client: this.client }));
@@ -3335,14 +3471,14 @@ export class KiloClient extends HeyApiClient {
3335
3471
  get config() {
3336
3472
  return (this._config ??= new Config2({ client: this.client }));
3337
3473
  }
3338
- _tool;
3339
- get tool() {
3340
- return (this._tool ??= new Tool({ client: this.client }));
3341
- }
3342
3474
  _experimental;
3343
3475
  get experimental() {
3344
3476
  return (this._experimental ??= new Experimental({ client: this.client }));
3345
3477
  }
3478
+ _tool;
3479
+ get tool() {
3480
+ return (this._tool ??= new Tool({ client: this.client }));
3481
+ }
3346
3482
  _worktree;
3347
3483
  get worktree() {
3348
3484
  return (this._worktree ??= new Worktree({ client: this.client }));
@@ -3363,38 +3499,10 @@ export class KiloClient extends HeyApiClient {
3363
3499
  get question() {
3364
3500
  return (this._question ??= new Question({ client: this.client }));
3365
3501
  }
3366
- _network;
3367
- get network() {
3368
- return (this._network ??= new Network({ client: this.client }));
3369
- }
3370
3502
  _provider;
3371
3503
  get provider() {
3372
3504
  return (this._provider ??= new Provider({ client: this.client }));
3373
3505
  }
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
3506
  _find;
3399
3507
  get find() {
3400
3508
  return (this._find ??= new Find({ client: this.client }));
@@ -3403,6 +3511,10 @@ export class KiloClient extends HeyApiClient {
3403
3511
  get file() {
3404
3512
  return (this._file ??= new File({ client: this.client }));
3405
3513
  }
3514
+ _event;
3515
+ get event() {
3516
+ return (this._event ??= new Event({ client: this.client }));
3517
+ }
3406
3518
  _mcp;
3407
3519
  get mcp() {
3408
3520
  return (this._mcp ??= new Mcp({ client: this.client }));
@@ -3427,10 +3539,6 @@ export class KiloClient extends HeyApiClient {
3427
3539
  get command() {
3428
3540
  return (this._command ??= new Command({ client: this.client }));
3429
3541
  }
3430
- _app;
3431
- get app() {
3432
- return (this._app ??= new App({ client: this.client }));
3433
- }
3434
3542
  _lsp;
3435
3543
  get lsp() {
3436
3544
  return (this._lsp ??= new Lsp({ client: this.client }));
@@ -3439,8 +3547,32 @@ export class KiloClient extends HeyApiClient {
3439
3547
  get formatter() {
3440
3548
  return (this._formatter ??= new Formatter({ client: this.client }));
3441
3549
  }
3442
- _event;
3443
- get event() {
3444
- return (this._event ??= new Event({ client: this.client }));
3550
+ _network;
3551
+ get network() {
3552
+ return (this._network ??= new Network({ client: this.client }));
3553
+ }
3554
+ _telemetry;
3555
+ get telemetry() {
3556
+ return (this._telemetry ??= new Telemetry({ client: this.client }));
3557
+ }
3558
+ _remote;
3559
+ get remote() {
3560
+ return (this._remote ??= new Remote({ client: this.client }));
3561
+ }
3562
+ _commitMessage;
3563
+ get commitMessage() {
3564
+ return (this._commitMessage ??= new CommitMessage({ client: this.client }));
3565
+ }
3566
+ _enhancePrompt;
3567
+ get enhancePrompt() {
3568
+ return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
3569
+ }
3570
+ _kilocode;
3571
+ get kilocode() {
3572
+ return (this._kilocode ??= new Kilocode({ client: this.client }));
3573
+ }
3574
+ _kilo;
3575
+ get kilo() {
3576
+ return (this._kilo ??= new Kilo({ client: this.client }));
3445
3577
  }
3446
3578
  }