@kilocode/sdk 7.3.1 → 7.3.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.
- package/dist/v2/client.js +20 -0
- package/dist/v2/gen/sdk.gen.d.ts +913 -829
- package/dist/v2/gen/sdk.gen.js +1417 -1251
- package/dist/v2/gen/types.gen.d.ts +3932 -3116
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -21,6 +21,117 @@ class HeyApiRegistry {
|
|
|
21
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
export class Auth extends HeyApiClient {
|
|
25
|
+
/**
|
|
26
|
+
* Remove auth credentials
|
|
27
|
+
*
|
|
28
|
+
* Remove authentication credentials
|
|
29
|
+
*/
|
|
30
|
+
remove(parameters, options) {
|
|
31
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
|
|
32
|
+
return (options?.client ?? this.client).delete({
|
|
33
|
+
url: "/auth/{providerID}",
|
|
34
|
+
...options,
|
|
35
|
+
...params,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Set auth credentials
|
|
40
|
+
*
|
|
41
|
+
* Set authentication credentials
|
|
42
|
+
*/
|
|
43
|
+
set(parameters, options) {
|
|
44
|
+
const params = buildClientParams([parameters], [
|
|
45
|
+
{
|
|
46
|
+
args: [
|
|
47
|
+
{ in: "path", key: "providerID" },
|
|
48
|
+
{ key: "auth", map: "body" },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
]);
|
|
52
|
+
return (options?.client ?? this.client).put({
|
|
53
|
+
url: "/auth/{providerID}",
|
|
54
|
+
...options,
|
|
55
|
+
...params,
|
|
56
|
+
headers: {
|
|
57
|
+
"Content-Type": "application/json",
|
|
58
|
+
...options?.headers,
|
|
59
|
+
...params.headers,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export class App extends HeyApiClient {
|
|
65
|
+
/**
|
|
66
|
+
* Write log
|
|
67
|
+
*
|
|
68
|
+
* Write a log entry to the server logs with specified level and metadata.
|
|
69
|
+
*/
|
|
70
|
+
log(parameters, options) {
|
|
71
|
+
const params = buildClientParams([parameters], [
|
|
72
|
+
{
|
|
73
|
+
args: [
|
|
74
|
+
{ in: "query", key: "directory" },
|
|
75
|
+
{ in: "query", key: "workspace" },
|
|
76
|
+
{ in: "body", key: "service" },
|
|
77
|
+
{ in: "body", key: "level" },
|
|
78
|
+
{ in: "body", key: "message" },
|
|
79
|
+
{ in: "body", key: "extra" },
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
]);
|
|
83
|
+
return (options?.client ?? this.client).post({
|
|
84
|
+
url: "/log",
|
|
85
|
+
...options,
|
|
86
|
+
...params,
|
|
87
|
+
headers: {
|
|
88
|
+
"Content-Type": "application/json",
|
|
89
|
+
...options?.headers,
|
|
90
|
+
...params.headers,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* List agents
|
|
96
|
+
*
|
|
97
|
+
* Get a list of all available AI agents in the Kilo system.
|
|
98
|
+
*/
|
|
99
|
+
agents(parameters, options) {
|
|
100
|
+
const params = buildClientParams([parameters], [
|
|
101
|
+
{
|
|
102
|
+
args: [
|
|
103
|
+
{ in: "query", key: "directory" },
|
|
104
|
+
{ in: "query", key: "workspace" },
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
]);
|
|
108
|
+
return (options?.client ?? this.client).get({
|
|
109
|
+
url: "/agent",
|
|
110
|
+
...options,
|
|
111
|
+
...params,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* List skills
|
|
116
|
+
*
|
|
117
|
+
* Get a list of all available skills in the Kilo system.
|
|
118
|
+
*/
|
|
119
|
+
skills(parameters, options) {
|
|
120
|
+
const params = buildClientParams([parameters], [
|
|
121
|
+
{
|
|
122
|
+
args: [
|
|
123
|
+
{ in: "query", key: "directory" },
|
|
124
|
+
{ in: "query", key: "workspace" },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
]);
|
|
128
|
+
return (options?.client ?? this.client).get({
|
|
129
|
+
url: "/skill",
|
|
130
|
+
...options,
|
|
131
|
+
...params,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
24
135
|
export class Config extends HeyApiClient {
|
|
25
136
|
/**
|
|
26
137
|
* Get global configuration
|
|
@@ -109,67 +220,66 @@ export class Global extends HeyApiClient {
|
|
|
109
220
|
return (this._config ??= new Config({ client: this.client }));
|
|
110
221
|
}
|
|
111
222
|
}
|
|
112
|
-
export class
|
|
223
|
+
export class Event extends HeyApiClient {
|
|
113
224
|
/**
|
|
114
|
-
*
|
|
225
|
+
* Subscribe to events
|
|
115
226
|
*
|
|
116
|
-
*
|
|
227
|
+
* Get events
|
|
117
228
|
*/
|
|
118
|
-
|
|
119
|
-
const params = buildClientParams([parameters], [
|
|
120
|
-
|
|
121
|
-
|
|
229
|
+
subscribe(parameters, options) {
|
|
230
|
+
const params = buildClientParams([parameters], [
|
|
231
|
+
{
|
|
232
|
+
args: [
|
|
233
|
+
{ in: "query", key: "directory" },
|
|
234
|
+
{ in: "query", key: "workspace" },
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
]);
|
|
238
|
+
return (options?.client ?? this.client).sse.get({
|
|
239
|
+
url: "/event",
|
|
122
240
|
...options,
|
|
123
241
|
...params,
|
|
124
242
|
});
|
|
125
243
|
}
|
|
244
|
+
}
|
|
245
|
+
export class Config2 extends HeyApiClient {
|
|
126
246
|
/**
|
|
127
|
-
*
|
|
247
|
+
* Get configuration
|
|
128
248
|
*
|
|
129
|
-
*
|
|
249
|
+
* Retrieve the current Kilo configuration settings and preferences.
|
|
130
250
|
*/
|
|
131
|
-
|
|
251
|
+
get(parameters, options) {
|
|
132
252
|
const params = buildClientParams([parameters], [
|
|
133
253
|
{
|
|
134
254
|
args: [
|
|
135
|
-
{ in: "
|
|
136
|
-
{
|
|
255
|
+
{ in: "query", key: "directory" },
|
|
256
|
+
{ in: "query", key: "workspace" },
|
|
137
257
|
],
|
|
138
258
|
},
|
|
139
259
|
]);
|
|
140
|
-
return (options?.client ?? this.client).
|
|
141
|
-
url: "/
|
|
260
|
+
return (options?.client ?? this.client).get({
|
|
261
|
+
url: "/config",
|
|
142
262
|
...options,
|
|
143
263
|
...params,
|
|
144
|
-
headers: {
|
|
145
|
-
"Content-Type": "application/json",
|
|
146
|
-
...options?.headers,
|
|
147
|
-
...params.headers,
|
|
148
|
-
},
|
|
149
264
|
});
|
|
150
265
|
}
|
|
151
|
-
}
|
|
152
|
-
export class App extends HeyApiClient {
|
|
153
266
|
/**
|
|
154
|
-
*
|
|
267
|
+
* Update configuration
|
|
155
268
|
*
|
|
156
|
-
*
|
|
269
|
+
* Update Kilo configuration settings and preferences.
|
|
157
270
|
*/
|
|
158
|
-
|
|
271
|
+
update(parameters, options) {
|
|
159
272
|
const params = buildClientParams([parameters], [
|
|
160
273
|
{
|
|
161
274
|
args: [
|
|
162
275
|
{ in: "query", key: "directory" },
|
|
163
276
|
{ in: "query", key: "workspace" },
|
|
164
|
-
{
|
|
165
|
-
{ in: "body", key: "level" },
|
|
166
|
-
{ in: "body", key: "message" },
|
|
167
|
-
{ in: "body", key: "extra" },
|
|
277
|
+
{ key: "config", map: "body" },
|
|
168
278
|
],
|
|
169
279
|
},
|
|
170
280
|
]);
|
|
171
|
-
return (options?.client ?? this.client).
|
|
172
|
-
url: "/
|
|
281
|
+
return (options?.client ?? this.client).patch({
|
|
282
|
+
url: "/config",
|
|
173
283
|
...options,
|
|
174
284
|
...params,
|
|
175
285
|
headers: {
|
|
@@ -180,11 +290,11 @@ export class App extends HeyApiClient {
|
|
|
180
290
|
});
|
|
181
291
|
}
|
|
182
292
|
/**
|
|
183
|
-
*
|
|
293
|
+
* Get config warnings
|
|
184
294
|
*
|
|
185
|
-
* Get
|
|
295
|
+
* Get warnings generated during config loading (e.g., invalid JSON, schema errors).
|
|
186
296
|
*/
|
|
187
|
-
|
|
297
|
+
warnings(parameters, options) {
|
|
188
298
|
const params = buildClientParams([parameters], [
|
|
189
299
|
{
|
|
190
300
|
args: [
|
|
@@ -194,17 +304,17 @@ export class App extends HeyApiClient {
|
|
|
194
304
|
},
|
|
195
305
|
]);
|
|
196
306
|
return (options?.client ?? this.client).get({
|
|
197
|
-
url: "/
|
|
307
|
+
url: "/config/warnings",
|
|
198
308
|
...options,
|
|
199
309
|
...params,
|
|
200
310
|
});
|
|
201
311
|
}
|
|
202
312
|
/**
|
|
203
|
-
* List
|
|
313
|
+
* List config providers
|
|
204
314
|
*
|
|
205
|
-
* Get a list of all
|
|
315
|
+
* Get a list of all configured AI providers and their default models.
|
|
206
316
|
*/
|
|
207
|
-
|
|
317
|
+
providers(parameters, options) {
|
|
208
318
|
const params = buildClientParams([parameters], [
|
|
209
319
|
{
|
|
210
320
|
args: [
|
|
@@ -214,19 +324,19 @@ export class App extends HeyApiClient {
|
|
|
214
324
|
},
|
|
215
325
|
]);
|
|
216
326
|
return (options?.client ?? this.client).get({
|
|
217
|
-
url: "/
|
|
327
|
+
url: "/config/providers",
|
|
218
328
|
...options,
|
|
219
329
|
...params,
|
|
220
330
|
});
|
|
221
331
|
}
|
|
222
332
|
}
|
|
223
|
-
export class
|
|
333
|
+
export class Console extends HeyApiClient {
|
|
224
334
|
/**
|
|
225
|
-
*
|
|
335
|
+
* Get active Console provider metadata
|
|
226
336
|
*
|
|
227
|
-
*
|
|
337
|
+
* Get the active Console org name and the set of provider IDs managed by that Console org.
|
|
228
338
|
*/
|
|
229
|
-
|
|
339
|
+
get(parameters, options) {
|
|
230
340
|
const params = buildClientParams([parameters], [
|
|
231
341
|
{
|
|
232
342
|
args: [
|
|
@@ -236,19 +346,17 @@ export class Adapter extends HeyApiClient {
|
|
|
236
346
|
},
|
|
237
347
|
]);
|
|
238
348
|
return (options?.client ?? this.client).get({
|
|
239
|
-
url: "/experimental/
|
|
349
|
+
url: "/experimental/console",
|
|
240
350
|
...options,
|
|
241
351
|
...params,
|
|
242
352
|
});
|
|
243
353
|
}
|
|
244
|
-
}
|
|
245
|
-
export class Workspace extends HeyApiClient {
|
|
246
354
|
/**
|
|
247
|
-
* List
|
|
355
|
+
* List switchable Console orgs
|
|
248
356
|
*
|
|
249
|
-
*
|
|
357
|
+
* Get the available Console orgs across logged-in accounts, including the current active org.
|
|
250
358
|
*/
|
|
251
|
-
|
|
359
|
+
listOrgs(parameters, options) {
|
|
252
360
|
const params = buildClientParams([parameters], [
|
|
253
361
|
{
|
|
254
362
|
args: [
|
|
@@ -258,31 +366,29 @@ export class Workspace extends HeyApiClient {
|
|
|
258
366
|
},
|
|
259
367
|
]);
|
|
260
368
|
return (options?.client ?? this.client).get({
|
|
261
|
-
url: "/experimental/
|
|
369
|
+
url: "/experimental/console/orgs",
|
|
262
370
|
...options,
|
|
263
371
|
...params,
|
|
264
372
|
});
|
|
265
373
|
}
|
|
266
374
|
/**
|
|
267
|
-
*
|
|
375
|
+
* Switch active Console org
|
|
268
376
|
*
|
|
269
|
-
*
|
|
377
|
+
* Persist a new active Console account/org selection for the current local Kilo state.
|
|
270
378
|
*/
|
|
271
|
-
|
|
379
|
+
switchOrg(parameters, options) {
|
|
272
380
|
const params = buildClientParams([parameters], [
|
|
273
381
|
{
|
|
274
382
|
args: [
|
|
275
383
|
{ in: "query", key: "directory" },
|
|
276
384
|
{ in: "query", key: "workspace" },
|
|
277
|
-
{ in: "body", key: "
|
|
278
|
-
{ in: "body", key: "
|
|
279
|
-
{ in: "body", key: "branch" },
|
|
280
|
-
{ in: "body", key: "extra" },
|
|
385
|
+
{ in: "body", key: "accountID" },
|
|
386
|
+
{ in: "body", key: "orgID" },
|
|
281
387
|
],
|
|
282
388
|
},
|
|
283
389
|
]);
|
|
284
390
|
return (options?.client ?? this.client).post({
|
|
285
|
-
url: "/experimental/
|
|
391
|
+
url: "/experimental/console/switch",
|
|
286
392
|
...options,
|
|
287
393
|
...params,
|
|
288
394
|
headers: {
|
|
@@ -292,86 +398,88 @@ export class Workspace extends HeyApiClient {
|
|
|
292
398
|
},
|
|
293
399
|
});
|
|
294
400
|
}
|
|
401
|
+
}
|
|
402
|
+
export class Session extends HeyApiClient {
|
|
295
403
|
/**
|
|
296
|
-
*
|
|
404
|
+
* List sessions
|
|
297
405
|
*
|
|
298
|
-
* Get
|
|
406
|
+
* Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
|
|
299
407
|
*/
|
|
300
|
-
|
|
408
|
+
list(parameters, options) {
|
|
301
409
|
const params = buildClientParams([parameters], [
|
|
302
410
|
{
|
|
303
411
|
args: [
|
|
304
412
|
{ in: "query", key: "directory" },
|
|
305
413
|
{ in: "query", key: "workspace" },
|
|
414
|
+
{ in: "query", key: "projectID" },
|
|
415
|
+
{ in: "query", key: "worktrees" },
|
|
416
|
+
{ in: "query", key: "roots" },
|
|
417
|
+
{ in: "query", key: "start" },
|
|
418
|
+
{ in: "query", key: "cursor" },
|
|
419
|
+
{ in: "query", key: "search" },
|
|
420
|
+
{ in: "query", key: "limit" },
|
|
421
|
+
{ in: "query", key: "archived" },
|
|
306
422
|
],
|
|
307
423
|
},
|
|
308
424
|
]);
|
|
309
425
|
return (options?.client ?? this.client).get({
|
|
310
|
-
url: "/experimental/
|
|
426
|
+
url: "/experimental/session",
|
|
311
427
|
...options,
|
|
312
428
|
...params,
|
|
313
429
|
});
|
|
314
430
|
}
|
|
431
|
+
}
|
|
432
|
+
export class Resource extends HeyApiClient {
|
|
315
433
|
/**
|
|
316
|
-
*
|
|
434
|
+
* Get MCP resources
|
|
317
435
|
*
|
|
318
|
-
*
|
|
436
|
+
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
319
437
|
*/
|
|
320
|
-
|
|
438
|
+
list(parameters, options) {
|
|
321
439
|
const params = buildClientParams([parameters], [
|
|
322
440
|
{
|
|
323
441
|
args: [
|
|
324
|
-
{ in: "path", key: "id" },
|
|
325
442
|
{ in: "query", key: "directory" },
|
|
326
443
|
{ in: "query", key: "workspace" },
|
|
327
444
|
],
|
|
328
445
|
},
|
|
329
446
|
]);
|
|
330
|
-
return (options?.client ?? this.client).
|
|
331
|
-
url: "/experimental/
|
|
447
|
+
return (options?.client ?? this.client).get({
|
|
448
|
+
url: "/experimental/resource",
|
|
332
449
|
...options,
|
|
333
450
|
...params,
|
|
334
451
|
});
|
|
335
452
|
}
|
|
453
|
+
}
|
|
454
|
+
export class Adapter extends HeyApiClient {
|
|
336
455
|
/**
|
|
337
|
-
*
|
|
456
|
+
* List workspace adapters
|
|
338
457
|
*
|
|
339
|
-
*
|
|
458
|
+
* List all available workspace adapters for the current project.
|
|
340
459
|
*/
|
|
341
|
-
|
|
460
|
+
list(parameters, options) {
|
|
342
461
|
const params = buildClientParams([parameters], [
|
|
343
462
|
{
|
|
344
463
|
args: [
|
|
345
|
-
{ in: "path", key: "id" },
|
|
346
464
|
{ in: "query", key: "directory" },
|
|
347
465
|
{ in: "query", key: "workspace" },
|
|
348
|
-
{ in: "body", key: "sessionID" },
|
|
349
466
|
],
|
|
350
467
|
},
|
|
351
468
|
]);
|
|
352
|
-
return (options?.client ?? this.client).
|
|
353
|
-
url: "/experimental/workspace/
|
|
469
|
+
return (options?.client ?? this.client).get({
|
|
470
|
+
url: "/experimental/workspace/adapter",
|
|
354
471
|
...options,
|
|
355
472
|
...params,
|
|
356
|
-
headers: {
|
|
357
|
-
"Content-Type": "application/json",
|
|
358
|
-
...options?.headers,
|
|
359
|
-
...params.headers,
|
|
360
|
-
},
|
|
361
473
|
});
|
|
362
474
|
}
|
|
363
|
-
_adapter;
|
|
364
|
-
get adapter() {
|
|
365
|
-
return (this._adapter ??= new Adapter({ client: this.client }));
|
|
366
|
-
}
|
|
367
475
|
}
|
|
368
|
-
export class
|
|
476
|
+
export class Workspace extends HeyApiClient {
|
|
369
477
|
/**
|
|
370
|
-
*
|
|
478
|
+
* List workspaces
|
|
371
479
|
*
|
|
372
|
-
*
|
|
480
|
+
* List all workspaces.
|
|
373
481
|
*/
|
|
374
|
-
|
|
482
|
+
list(parameters, options) {
|
|
375
483
|
const params = buildClientParams([parameters], [
|
|
376
484
|
{
|
|
377
485
|
args: [
|
|
@@ -381,116 +489,114 @@ export class Console extends HeyApiClient {
|
|
|
381
489
|
},
|
|
382
490
|
]);
|
|
383
491
|
return (options?.client ?? this.client).get({
|
|
384
|
-
url: "/experimental/
|
|
492
|
+
url: "/experimental/workspace",
|
|
385
493
|
...options,
|
|
386
494
|
...params,
|
|
387
495
|
});
|
|
388
496
|
}
|
|
389
497
|
/**
|
|
390
|
-
*
|
|
498
|
+
* Create workspace
|
|
391
499
|
*
|
|
392
|
-
*
|
|
500
|
+
* Create a workspace for the current project.
|
|
393
501
|
*/
|
|
394
|
-
|
|
502
|
+
create(parameters, options) {
|
|
395
503
|
const params = buildClientParams([parameters], [
|
|
396
504
|
{
|
|
397
505
|
args: [
|
|
398
506
|
{ in: "query", key: "directory" },
|
|
399
507
|
{ in: "query", key: "workspace" },
|
|
508
|
+
{ in: "body", key: "id" },
|
|
509
|
+
{ in: "body", key: "type" },
|
|
510
|
+
{ in: "body", key: "branch" },
|
|
511
|
+
{ in: "body", key: "extra" },
|
|
400
512
|
],
|
|
401
513
|
},
|
|
402
514
|
]);
|
|
403
|
-
return (options?.client ?? this.client).
|
|
404
|
-
url: "/experimental/
|
|
515
|
+
return (options?.client ?? this.client).post({
|
|
516
|
+
url: "/experimental/workspace",
|
|
405
517
|
...options,
|
|
406
518
|
...params,
|
|
519
|
+
headers: {
|
|
520
|
+
"Content-Type": "application/json",
|
|
521
|
+
...options?.headers,
|
|
522
|
+
...params.headers,
|
|
523
|
+
},
|
|
407
524
|
});
|
|
408
525
|
}
|
|
409
526
|
/**
|
|
410
|
-
*
|
|
527
|
+
* Workspace status
|
|
411
528
|
*
|
|
412
|
-
*
|
|
529
|
+
* Get connection status for workspaces in the current project.
|
|
413
530
|
*/
|
|
414
|
-
|
|
531
|
+
status(parameters, options) {
|
|
415
532
|
const params = buildClientParams([parameters], [
|
|
416
533
|
{
|
|
417
534
|
args: [
|
|
418
535
|
{ in: "query", key: "directory" },
|
|
419
536
|
{ in: "query", key: "workspace" },
|
|
420
|
-
{ in: "body", key: "accountID" },
|
|
421
|
-
{ in: "body", key: "orgID" },
|
|
422
537
|
],
|
|
423
538
|
},
|
|
424
539
|
]);
|
|
425
|
-
return (options?.client ?? this.client).
|
|
426
|
-
url: "/experimental/
|
|
540
|
+
return (options?.client ?? this.client).get({
|
|
541
|
+
url: "/experimental/workspace/status",
|
|
427
542
|
...options,
|
|
428
543
|
...params,
|
|
429
|
-
headers: {
|
|
430
|
-
"Content-Type": "application/json",
|
|
431
|
-
...options?.headers,
|
|
432
|
-
...params.headers,
|
|
433
|
-
},
|
|
434
544
|
});
|
|
435
545
|
}
|
|
436
|
-
}
|
|
437
|
-
export class Session extends HeyApiClient {
|
|
438
546
|
/**
|
|
439
|
-
*
|
|
547
|
+
* Remove workspace
|
|
440
548
|
*
|
|
441
|
-
*
|
|
549
|
+
* Remove an existing workspace.
|
|
442
550
|
*/
|
|
443
|
-
|
|
551
|
+
remove(parameters, options) {
|
|
444
552
|
const params = buildClientParams([parameters], [
|
|
445
553
|
{
|
|
446
554
|
args: [
|
|
555
|
+
{ in: "path", key: "id" },
|
|
447
556
|
{ in: "query", key: "directory" },
|
|
448
557
|
{ in: "query", key: "workspace" },
|
|
449
|
-
{ in: "query", key: "projectID" },
|
|
450
|
-
{ in: "query", key: "worktrees" },
|
|
451
|
-
{ in: "query", key: "roots" },
|
|
452
|
-
{ in: "query", key: "start" },
|
|
453
|
-
{ in: "query", key: "cursor" },
|
|
454
|
-
{ in: "query", key: "search" },
|
|
455
|
-
{ in: "query", key: "limit" },
|
|
456
|
-
{ in: "query", key: "archived" },
|
|
457
558
|
],
|
|
458
559
|
},
|
|
459
560
|
]);
|
|
460
|
-
return (options?.client ?? this.client).
|
|
461
|
-
url: "/experimental/
|
|
561
|
+
return (options?.client ?? this.client).delete({
|
|
562
|
+
url: "/experimental/workspace/{id}",
|
|
462
563
|
...options,
|
|
463
564
|
...params,
|
|
464
565
|
});
|
|
465
566
|
}
|
|
466
|
-
}
|
|
467
|
-
export class Resource extends HeyApiClient {
|
|
468
567
|
/**
|
|
469
|
-
*
|
|
568
|
+
* Restore session into workspace
|
|
470
569
|
*
|
|
471
|
-
*
|
|
570
|
+
* Replay a session's sync events into the target workspace in batches.
|
|
472
571
|
*/
|
|
473
|
-
|
|
572
|
+
sessionRestore(parameters, options) {
|
|
474
573
|
const params = buildClientParams([parameters], [
|
|
475
574
|
{
|
|
476
575
|
args: [
|
|
576
|
+
{ in: "path", key: "id" },
|
|
477
577
|
{ in: "query", key: "directory" },
|
|
478
578
|
{ in: "query", key: "workspace" },
|
|
579
|
+
{ in: "body", key: "sessionID" },
|
|
479
580
|
],
|
|
480
581
|
},
|
|
481
582
|
]);
|
|
482
|
-
return (options?.client ?? this.client).
|
|
483
|
-
url: "/experimental/
|
|
583
|
+
return (options?.client ?? this.client).post({
|
|
584
|
+
url: "/experimental/workspace/{id}/session-restore",
|
|
484
585
|
...options,
|
|
485
586
|
...params,
|
|
587
|
+
headers: {
|
|
588
|
+
"Content-Type": "application/json",
|
|
589
|
+
...options?.headers,
|
|
590
|
+
...params.headers,
|
|
591
|
+
},
|
|
486
592
|
});
|
|
487
593
|
}
|
|
594
|
+
_adapter;
|
|
595
|
+
get adapter() {
|
|
596
|
+
return (this._adapter ??= new Adapter({ client: this.client }));
|
|
597
|
+
}
|
|
488
598
|
}
|
|
489
599
|
export class Experimental extends HeyApiClient {
|
|
490
|
-
_workspace;
|
|
491
|
-
get workspace() {
|
|
492
|
-
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
493
|
-
}
|
|
494
600
|
_console;
|
|
495
601
|
get console() {
|
|
496
602
|
return (this._console ??= new Console({ client: this.client }));
|
|
@@ -503,12 +609,16 @@ export class Experimental extends HeyApiClient {
|
|
|
503
609
|
get resource() {
|
|
504
610
|
return (this._resource ??= new Resource({ client: this.client }));
|
|
505
611
|
}
|
|
612
|
+
_workspace;
|
|
613
|
+
get workspace() {
|
|
614
|
+
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
615
|
+
}
|
|
506
616
|
}
|
|
507
|
-
export class
|
|
617
|
+
export class Tool extends HeyApiClient {
|
|
508
618
|
/**
|
|
509
|
-
* List
|
|
619
|
+
* List tools
|
|
510
620
|
*
|
|
511
|
-
* Get a list of
|
|
621
|
+
* Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
|
|
512
622
|
*/
|
|
513
623
|
list(parameters, options) {
|
|
514
624
|
const params = buildClientParams([parameters], [
|
|
@@ -516,21 +626,23 @@ export class Project extends HeyApiClient {
|
|
|
516
626
|
args: [
|
|
517
627
|
{ in: "query", key: "directory" },
|
|
518
628
|
{ in: "query", key: "workspace" },
|
|
629
|
+
{ in: "query", key: "provider" },
|
|
630
|
+
{ in: "query", key: "model" },
|
|
519
631
|
],
|
|
520
632
|
},
|
|
521
633
|
]);
|
|
522
634
|
return (options?.client ?? this.client).get({
|
|
523
|
-
url: "/
|
|
635
|
+
url: "/experimental/tool",
|
|
524
636
|
...options,
|
|
525
637
|
...params,
|
|
526
638
|
});
|
|
527
639
|
}
|
|
528
640
|
/**
|
|
529
|
-
*
|
|
641
|
+
* List tool IDs
|
|
530
642
|
*
|
|
531
|
-
*
|
|
643
|
+
* Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
|
|
532
644
|
*/
|
|
533
|
-
|
|
645
|
+
ids(parameters, options) {
|
|
534
646
|
const params = buildClientParams([parameters], [
|
|
535
647
|
{
|
|
536
648
|
args: [
|
|
@@ -540,51 +652,30 @@ export class Project extends HeyApiClient {
|
|
|
540
652
|
},
|
|
541
653
|
]);
|
|
542
654
|
return (options?.client ?? this.client).get({
|
|
543
|
-
url: "/
|
|
544
|
-
...options,
|
|
545
|
-
...params,
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Initialize git repository
|
|
550
|
-
*
|
|
551
|
-
* Create a git repository for the current project and return the refreshed project info.
|
|
552
|
-
*/
|
|
553
|
-
initGit(parameters, options) {
|
|
554
|
-
const params = buildClientParams([parameters], [
|
|
555
|
-
{
|
|
556
|
-
args: [
|
|
557
|
-
{ in: "query", key: "directory" },
|
|
558
|
-
{ in: "query", key: "workspace" },
|
|
559
|
-
],
|
|
560
|
-
},
|
|
561
|
-
]);
|
|
562
|
-
return (options?.client ?? this.client).post({
|
|
563
|
-
url: "/project/git/init",
|
|
655
|
+
url: "/experimental/tool/ids",
|
|
564
656
|
...options,
|
|
565
657
|
...params,
|
|
566
658
|
});
|
|
567
659
|
}
|
|
660
|
+
}
|
|
661
|
+
export class Worktree extends HeyApiClient {
|
|
568
662
|
/**
|
|
569
|
-
*
|
|
663
|
+
* Remove worktree
|
|
570
664
|
*
|
|
571
|
-
*
|
|
665
|
+
* Remove a git worktree and delete its branch.
|
|
572
666
|
*/
|
|
573
|
-
|
|
667
|
+
remove(parameters, options) {
|
|
574
668
|
const params = buildClientParams([parameters], [
|
|
575
669
|
{
|
|
576
670
|
args: [
|
|
577
|
-
{ in: "path", key: "projectID" },
|
|
578
671
|
{ in: "query", key: "directory" },
|
|
579
672
|
{ in: "query", key: "workspace" },
|
|
580
|
-
{
|
|
581
|
-
{ in: "body", key: "icon" },
|
|
582
|
-
{ in: "body", key: "commands" },
|
|
673
|
+
{ key: "worktreeRemoveInput", map: "body" },
|
|
583
674
|
],
|
|
584
675
|
},
|
|
585
676
|
]);
|
|
586
|
-
return (options?.client ?? this.client).
|
|
587
|
-
url: "/
|
|
677
|
+
return (options?.client ?? this.client).delete({
|
|
678
|
+
url: "/experimental/worktree",
|
|
588
679
|
...options,
|
|
589
680
|
...params,
|
|
590
681
|
headers: {
|
|
@@ -594,14 +685,12 @@ export class Project extends HeyApiClient {
|
|
|
594
685
|
},
|
|
595
686
|
});
|
|
596
687
|
}
|
|
597
|
-
}
|
|
598
|
-
export class Pty extends HeyApiClient {
|
|
599
688
|
/**
|
|
600
|
-
* List
|
|
689
|
+
* List worktrees
|
|
601
690
|
*
|
|
602
|
-
*
|
|
691
|
+
* List all sandbox worktrees for the current project.
|
|
603
692
|
*/
|
|
604
|
-
|
|
693
|
+
list(parameters, options) {
|
|
605
694
|
const params = buildClientParams([parameters], [
|
|
606
695
|
{
|
|
607
696
|
args: [
|
|
@@ -611,52 +700,54 @@ export class Pty extends HeyApiClient {
|
|
|
611
700
|
},
|
|
612
701
|
]);
|
|
613
702
|
return (options?.client ?? this.client).get({
|
|
614
|
-
url: "/
|
|
703
|
+
url: "/experimental/worktree",
|
|
615
704
|
...options,
|
|
616
705
|
...params,
|
|
617
706
|
});
|
|
618
707
|
}
|
|
619
708
|
/**
|
|
620
|
-
*
|
|
709
|
+
* Create worktree
|
|
621
710
|
*
|
|
622
|
-
*
|
|
711
|
+
* Create a new git worktree for the current project and run any configured startup scripts.
|
|
623
712
|
*/
|
|
624
|
-
|
|
713
|
+
create(parameters, options) {
|
|
625
714
|
const params = buildClientParams([parameters], [
|
|
626
715
|
{
|
|
627
716
|
args: [
|
|
628
717
|
{ in: "query", key: "directory" },
|
|
629
718
|
{ in: "query", key: "workspace" },
|
|
719
|
+
{ key: "worktreeCreateInput", map: "body" },
|
|
630
720
|
],
|
|
631
721
|
},
|
|
632
722
|
]);
|
|
633
|
-
return (options?.client ?? this.client).
|
|
634
|
-
url: "/
|
|
723
|
+
return (options?.client ?? this.client).post({
|
|
724
|
+
url: "/experimental/worktree",
|
|
635
725
|
...options,
|
|
636
726
|
...params,
|
|
727
|
+
headers: {
|
|
728
|
+
"Content-Type": "application/json",
|
|
729
|
+
...options?.headers,
|
|
730
|
+
...params.headers,
|
|
731
|
+
},
|
|
637
732
|
});
|
|
638
733
|
}
|
|
639
734
|
/**
|
|
640
|
-
*
|
|
735
|
+
* Reset worktree
|
|
641
736
|
*
|
|
642
|
-
*
|
|
737
|
+
* Reset a worktree branch to the primary default branch.
|
|
643
738
|
*/
|
|
644
|
-
|
|
739
|
+
reset(parameters, options) {
|
|
645
740
|
const params = buildClientParams([parameters], [
|
|
646
741
|
{
|
|
647
742
|
args: [
|
|
648
743
|
{ in: "query", key: "directory" },
|
|
649
744
|
{ in: "query", key: "workspace" },
|
|
650
|
-
{
|
|
651
|
-
{ in: "body", key: "args" },
|
|
652
|
-
{ in: "body", key: "cwd" },
|
|
653
|
-
{ in: "body", key: "title" },
|
|
654
|
-
{ in: "body", key: "env" },
|
|
745
|
+
{ key: "worktreeResetInput", map: "body" },
|
|
655
746
|
],
|
|
656
747
|
},
|
|
657
748
|
]);
|
|
658
749
|
return (options?.client ?? this.client).post({
|
|
659
|
-
url: "/
|
|
750
|
+
url: "/experimental/worktree/reset",
|
|
660
751
|
...options,
|
|
661
752
|
...params,
|
|
662
753
|
headers: {
|
|
@@ -667,192 +758,187 @@ export class Pty extends HeyApiClient {
|
|
|
667
758
|
});
|
|
668
759
|
}
|
|
669
760
|
/**
|
|
670
|
-
*
|
|
761
|
+
* Get worktree diff
|
|
671
762
|
*
|
|
672
|
-
*
|
|
763
|
+
* Get file diffs for a worktree compared to its base branch. Includes uncommitted changes.
|
|
673
764
|
*/
|
|
674
|
-
|
|
765
|
+
diff(parameters, options) {
|
|
675
766
|
const params = buildClientParams([parameters], [
|
|
676
767
|
{
|
|
677
768
|
args: [
|
|
678
|
-
{ in: "path", key: "ptyID" },
|
|
679
769
|
{ in: "query", key: "directory" },
|
|
680
770
|
{ in: "query", key: "workspace" },
|
|
771
|
+
{ in: "query", key: "base" },
|
|
681
772
|
],
|
|
682
773
|
},
|
|
683
774
|
]);
|
|
684
|
-
return (options?.client ?? this.client).
|
|
685
|
-
url: "/
|
|
775
|
+
return (options?.client ?? this.client).get({
|
|
776
|
+
url: "/experimental/worktree/diff",
|
|
686
777
|
...options,
|
|
687
778
|
...params,
|
|
688
779
|
});
|
|
689
780
|
}
|
|
690
781
|
/**
|
|
691
|
-
* Get
|
|
782
|
+
* Get worktree diff summary
|
|
692
783
|
*
|
|
693
|
-
*
|
|
784
|
+
* Get lightweight file diff metadata for a worktree compared to its base branch.
|
|
694
785
|
*/
|
|
695
|
-
|
|
786
|
+
diffSummary(parameters, options) {
|
|
696
787
|
const params = buildClientParams([parameters], [
|
|
697
788
|
{
|
|
698
789
|
args: [
|
|
699
|
-
{ in: "path", key: "ptyID" },
|
|
700
790
|
{ in: "query", key: "directory" },
|
|
701
791
|
{ in: "query", key: "workspace" },
|
|
792
|
+
{ in: "query", key: "base" },
|
|
702
793
|
],
|
|
703
794
|
},
|
|
704
795
|
]);
|
|
705
796
|
return (options?.client ?? this.client).get({
|
|
706
|
-
url: "/
|
|
797
|
+
url: "/experimental/worktree/diff/summary",
|
|
707
798
|
...options,
|
|
708
799
|
...params,
|
|
709
800
|
});
|
|
710
801
|
}
|
|
711
802
|
/**
|
|
712
|
-
*
|
|
803
|
+
* Get worktree diff detail
|
|
713
804
|
*
|
|
714
|
-
*
|
|
805
|
+
* Get full diff contents for one worktree file compared to its base branch.
|
|
715
806
|
*/
|
|
716
|
-
|
|
807
|
+
diffFile(parameters, options) {
|
|
717
808
|
const params = buildClientParams([parameters], [
|
|
718
809
|
{
|
|
719
810
|
args: [
|
|
720
|
-
{ in: "path", key: "ptyID" },
|
|
721
811
|
{ in: "query", key: "directory" },
|
|
722
812
|
{ in: "query", key: "workspace" },
|
|
723
|
-
{ in: "
|
|
724
|
-
{ in: "
|
|
813
|
+
{ in: "query", key: "base" },
|
|
814
|
+
{ in: "query", key: "file" },
|
|
725
815
|
],
|
|
726
816
|
},
|
|
727
817
|
]);
|
|
728
|
-
return (options?.client ?? this.client).
|
|
729
|
-
url: "/
|
|
818
|
+
return (options?.client ?? this.client).get({
|
|
819
|
+
url: "/experimental/worktree/diff/file",
|
|
730
820
|
...options,
|
|
731
821
|
...params,
|
|
732
|
-
headers: {
|
|
733
|
-
"Content-Type": "application/json",
|
|
734
|
-
...options?.headers,
|
|
735
|
-
...params.headers,
|
|
736
|
-
},
|
|
737
822
|
});
|
|
738
823
|
}
|
|
824
|
+
}
|
|
825
|
+
export class Find extends HeyApiClient {
|
|
739
826
|
/**
|
|
740
|
-
*
|
|
827
|
+
* Find text
|
|
741
828
|
*
|
|
742
|
-
*
|
|
829
|
+
* Search for text patterns across files in the project using ripgrep.
|
|
743
830
|
*/
|
|
744
|
-
|
|
831
|
+
text(parameters, options) {
|
|
745
832
|
const params = buildClientParams([parameters], [
|
|
746
833
|
{
|
|
747
834
|
args: [
|
|
748
|
-
{ in: "path", key: "ptyID" },
|
|
749
835
|
{ in: "query", key: "directory" },
|
|
750
836
|
{ in: "query", key: "workspace" },
|
|
837
|
+
{ in: "query", key: "pattern" },
|
|
751
838
|
],
|
|
752
839
|
},
|
|
753
840
|
]);
|
|
754
841
|
return (options?.client ?? this.client).get({
|
|
755
|
-
url: "/
|
|
842
|
+
url: "/find",
|
|
756
843
|
...options,
|
|
757
844
|
...params,
|
|
758
845
|
});
|
|
759
846
|
}
|
|
760
|
-
}
|
|
761
|
-
export class Config2 extends HeyApiClient {
|
|
762
847
|
/**
|
|
763
|
-
*
|
|
848
|
+
* Find files
|
|
764
849
|
*
|
|
765
|
-
*
|
|
850
|
+
* Search for files or directories by name or pattern in the project directory.
|
|
766
851
|
*/
|
|
767
|
-
|
|
852
|
+
files(parameters, options) {
|
|
768
853
|
const params = buildClientParams([parameters], [
|
|
769
854
|
{
|
|
770
855
|
args: [
|
|
771
856
|
{ in: "query", key: "directory" },
|
|
772
857
|
{ in: "query", key: "workspace" },
|
|
858
|
+
{ in: "query", key: "query" },
|
|
859
|
+
{ in: "query", key: "dirs" },
|
|
860
|
+
{ in: "query", key: "type" },
|
|
861
|
+
{ in: "query", key: "limit" },
|
|
773
862
|
],
|
|
774
863
|
},
|
|
775
864
|
]);
|
|
776
865
|
return (options?.client ?? this.client).get({
|
|
777
|
-
url: "/
|
|
866
|
+
url: "/find/file",
|
|
778
867
|
...options,
|
|
779
868
|
...params,
|
|
780
869
|
});
|
|
781
870
|
}
|
|
782
871
|
/**
|
|
783
|
-
*
|
|
872
|
+
* Find symbols
|
|
784
873
|
*
|
|
785
|
-
*
|
|
874
|
+
* Search for workspace symbols like functions, classes, and variables using LSP.
|
|
786
875
|
*/
|
|
787
|
-
|
|
876
|
+
symbols(parameters, options) {
|
|
788
877
|
const params = buildClientParams([parameters], [
|
|
789
878
|
{
|
|
790
879
|
args: [
|
|
791
880
|
{ in: "query", key: "directory" },
|
|
792
881
|
{ in: "query", key: "workspace" },
|
|
793
|
-
{
|
|
882
|
+
{ in: "query", key: "query" },
|
|
794
883
|
],
|
|
795
884
|
},
|
|
796
885
|
]);
|
|
797
|
-
return (options?.client ?? this.client).
|
|
798
|
-
url: "/
|
|
886
|
+
return (options?.client ?? this.client).get({
|
|
887
|
+
url: "/find/symbol",
|
|
799
888
|
...options,
|
|
800
889
|
...params,
|
|
801
|
-
headers: {
|
|
802
|
-
"Content-Type": "application/json",
|
|
803
|
-
...options?.headers,
|
|
804
|
-
...params.headers,
|
|
805
|
-
},
|
|
806
890
|
});
|
|
807
891
|
}
|
|
892
|
+
}
|
|
893
|
+
export class File extends HeyApiClient {
|
|
808
894
|
/**
|
|
809
|
-
*
|
|
895
|
+
* List files
|
|
810
896
|
*
|
|
811
|
-
*
|
|
897
|
+
* List files and directories in a specified path.
|
|
812
898
|
*/
|
|
813
|
-
|
|
899
|
+
list(parameters, options) {
|
|
814
900
|
const params = buildClientParams([parameters], [
|
|
815
901
|
{
|
|
816
902
|
args: [
|
|
817
903
|
{ in: "query", key: "directory" },
|
|
818
904
|
{ in: "query", key: "workspace" },
|
|
905
|
+
{ in: "query", key: "path" },
|
|
819
906
|
],
|
|
820
907
|
},
|
|
821
908
|
]);
|
|
822
909
|
return (options?.client ?? this.client).get({
|
|
823
|
-
url: "/
|
|
910
|
+
url: "/file",
|
|
824
911
|
...options,
|
|
825
912
|
...params,
|
|
826
913
|
});
|
|
827
914
|
}
|
|
828
915
|
/**
|
|
829
|
-
*
|
|
916
|
+
* Read file
|
|
830
917
|
*
|
|
831
|
-
*
|
|
918
|
+
* Read the content of a specified file.
|
|
832
919
|
*/
|
|
833
|
-
|
|
920
|
+
read(parameters, options) {
|
|
834
921
|
const params = buildClientParams([parameters], [
|
|
835
922
|
{
|
|
836
923
|
args: [
|
|
837
924
|
{ in: "query", key: "directory" },
|
|
838
925
|
{ in: "query", key: "workspace" },
|
|
926
|
+
{ in: "query", key: "path" },
|
|
839
927
|
],
|
|
840
928
|
},
|
|
841
929
|
]);
|
|
842
930
|
return (options?.client ?? this.client).get({
|
|
843
|
-
url: "/
|
|
931
|
+
url: "/file/content",
|
|
844
932
|
...options,
|
|
845
933
|
...params,
|
|
846
934
|
});
|
|
847
935
|
}
|
|
848
|
-
}
|
|
849
|
-
export class Tool extends HeyApiClient {
|
|
850
936
|
/**
|
|
851
|
-
*
|
|
937
|
+
* Get file status
|
|
852
938
|
*
|
|
853
|
-
* Get
|
|
939
|
+
* Get the git status of all files in the project.
|
|
854
940
|
*/
|
|
855
|
-
|
|
941
|
+
status(parameters, options) {
|
|
856
942
|
const params = buildClientParams([parameters], [
|
|
857
943
|
{
|
|
858
944
|
args: [
|
|
@@ -862,67 +948,63 @@ export class Tool extends HeyApiClient {
|
|
|
862
948
|
},
|
|
863
949
|
]);
|
|
864
950
|
return (options?.client ?? this.client).get({
|
|
865
|
-
url: "/
|
|
951
|
+
url: "/file/status",
|
|
866
952
|
...options,
|
|
867
953
|
...params,
|
|
868
954
|
});
|
|
869
955
|
}
|
|
956
|
+
}
|
|
957
|
+
export class Instance extends HeyApiClient {
|
|
870
958
|
/**
|
|
871
|
-
*
|
|
959
|
+
* Dispose instance
|
|
872
960
|
*
|
|
873
|
-
*
|
|
961
|
+
* Clean up and dispose the current Kilo instance, releasing all resources.
|
|
874
962
|
*/
|
|
875
|
-
|
|
963
|
+
dispose(parameters, options) {
|
|
876
964
|
const params = buildClientParams([parameters], [
|
|
877
965
|
{
|
|
878
966
|
args: [
|
|
879
967
|
{ in: "query", key: "directory" },
|
|
880
968
|
{ in: "query", key: "workspace" },
|
|
881
|
-
{ in: "query", key: "provider" },
|
|
882
|
-
{ in: "query", key: "model" },
|
|
883
969
|
],
|
|
884
970
|
},
|
|
885
971
|
]);
|
|
886
|
-
return (options?.client ?? this.client).
|
|
887
|
-
url: "/
|
|
972
|
+
return (options?.client ?? this.client).post({
|
|
973
|
+
url: "/instance/dispose",
|
|
888
974
|
...options,
|
|
889
975
|
...params,
|
|
890
976
|
});
|
|
891
977
|
}
|
|
892
978
|
}
|
|
893
|
-
export class
|
|
979
|
+
export class Path extends HeyApiClient {
|
|
894
980
|
/**
|
|
895
|
-
*
|
|
981
|
+
* Get paths
|
|
896
982
|
*
|
|
897
|
-
*
|
|
983
|
+
* Retrieve the current working directory and related path information for the Kilo instance.
|
|
898
984
|
*/
|
|
899
|
-
|
|
985
|
+
get(parameters, options) {
|
|
900
986
|
const params = buildClientParams([parameters], [
|
|
901
987
|
{
|
|
902
988
|
args: [
|
|
903
989
|
{ in: "query", key: "directory" },
|
|
904
990
|
{ in: "query", key: "workspace" },
|
|
905
|
-
{ key: "worktreeRemoveInput", map: "body" },
|
|
906
991
|
],
|
|
907
992
|
},
|
|
908
993
|
]);
|
|
909
|
-
return (options?.client ?? this.client).
|
|
910
|
-
url: "/
|
|
994
|
+
return (options?.client ?? this.client).get({
|
|
995
|
+
url: "/path",
|
|
911
996
|
...options,
|
|
912
997
|
...params,
|
|
913
|
-
headers: {
|
|
914
|
-
"Content-Type": "application/json",
|
|
915
|
-
...options?.headers,
|
|
916
|
-
...params.headers,
|
|
917
|
-
},
|
|
918
998
|
});
|
|
919
999
|
}
|
|
1000
|
+
}
|
|
1001
|
+
export class Vcs extends HeyApiClient {
|
|
920
1002
|
/**
|
|
921
|
-
*
|
|
1003
|
+
* Get VCS info
|
|
922
1004
|
*
|
|
923
|
-
*
|
|
1005
|
+
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
924
1006
|
*/
|
|
925
|
-
|
|
1007
|
+
get(parameters, options) {
|
|
926
1008
|
const params = buildClientParams([parameters], [
|
|
927
1009
|
{
|
|
928
1010
|
args: [
|
|
@@ -932,176 +1014,160 @@ export class Worktree extends HeyApiClient {
|
|
|
932
1014
|
},
|
|
933
1015
|
]);
|
|
934
1016
|
return (options?.client ?? this.client).get({
|
|
935
|
-
url: "/
|
|
1017
|
+
url: "/vcs",
|
|
936
1018
|
...options,
|
|
937
1019
|
...params,
|
|
938
1020
|
});
|
|
939
1021
|
}
|
|
940
1022
|
/**
|
|
941
|
-
*
|
|
1023
|
+
* Get VCS diff
|
|
942
1024
|
*
|
|
943
|
-
*
|
|
1025
|
+
* Retrieve the current git diff for the working tree or against the default branch.
|
|
944
1026
|
*/
|
|
945
|
-
|
|
1027
|
+
diff(parameters, options) {
|
|
946
1028
|
const params = buildClientParams([parameters], [
|
|
947
1029
|
{
|
|
948
1030
|
args: [
|
|
949
1031
|
{ in: "query", key: "directory" },
|
|
950
1032
|
{ in: "query", key: "workspace" },
|
|
951
|
-
{
|
|
1033
|
+
{ in: "query", key: "mode" },
|
|
952
1034
|
],
|
|
953
1035
|
},
|
|
954
1036
|
]);
|
|
955
|
-
return (options?.client ?? this.client).
|
|
956
|
-
url: "/
|
|
1037
|
+
return (options?.client ?? this.client).get({
|
|
1038
|
+
url: "/vcs/diff",
|
|
957
1039
|
...options,
|
|
958
1040
|
...params,
|
|
959
|
-
headers: {
|
|
960
|
-
"Content-Type": "application/json",
|
|
961
|
-
...options?.headers,
|
|
962
|
-
...params.headers,
|
|
963
|
-
},
|
|
964
1041
|
});
|
|
965
1042
|
}
|
|
1043
|
+
}
|
|
1044
|
+
export class Command extends HeyApiClient {
|
|
966
1045
|
/**
|
|
967
|
-
*
|
|
1046
|
+
* List commands
|
|
968
1047
|
*
|
|
969
|
-
*
|
|
1048
|
+
* Get a list of all available commands in the Kilo system.
|
|
970
1049
|
*/
|
|
971
|
-
|
|
1050
|
+
list(parameters, options) {
|
|
972
1051
|
const params = buildClientParams([parameters], [
|
|
973
1052
|
{
|
|
974
1053
|
args: [
|
|
975
1054
|
{ in: "query", key: "directory" },
|
|
976
1055
|
{ in: "query", key: "workspace" },
|
|
977
|
-
{ key: "worktreeResetInput", map: "body" },
|
|
978
1056
|
],
|
|
979
1057
|
},
|
|
980
1058
|
]);
|
|
981
|
-
return (options?.client ?? this.client).
|
|
982
|
-
url: "/
|
|
1059
|
+
return (options?.client ?? this.client).get({
|
|
1060
|
+
url: "/command",
|
|
983
1061
|
...options,
|
|
984
1062
|
...params,
|
|
985
|
-
headers: {
|
|
986
|
-
"Content-Type": "application/json",
|
|
987
|
-
...options?.headers,
|
|
988
|
-
...params.headers,
|
|
989
|
-
},
|
|
990
1063
|
});
|
|
991
1064
|
}
|
|
1065
|
+
}
|
|
1066
|
+
export class Lsp extends HeyApiClient {
|
|
992
1067
|
/**
|
|
993
|
-
* Get
|
|
1068
|
+
* Get LSP status
|
|
994
1069
|
*
|
|
995
|
-
* Get
|
|
1070
|
+
* Get LSP server status
|
|
996
1071
|
*/
|
|
997
|
-
|
|
1072
|
+
status(parameters, options) {
|
|
998
1073
|
const params = buildClientParams([parameters], [
|
|
999
1074
|
{
|
|
1000
1075
|
args: [
|
|
1001
1076
|
{ in: "query", key: "directory" },
|
|
1002
1077
|
{ in: "query", key: "workspace" },
|
|
1003
|
-
{ in: "query", key: "base" },
|
|
1004
1078
|
],
|
|
1005
1079
|
},
|
|
1006
1080
|
]);
|
|
1007
1081
|
return (options?.client ?? this.client).get({
|
|
1008
|
-
url: "/
|
|
1082
|
+
url: "/lsp",
|
|
1009
1083
|
...options,
|
|
1010
1084
|
...params,
|
|
1011
1085
|
});
|
|
1012
1086
|
}
|
|
1087
|
+
}
|
|
1088
|
+
export class Formatter extends HeyApiClient {
|
|
1013
1089
|
/**
|
|
1014
|
-
* Get
|
|
1090
|
+
* Get formatter status
|
|
1015
1091
|
*
|
|
1016
|
-
* Get
|
|
1092
|
+
* Get formatter status
|
|
1017
1093
|
*/
|
|
1018
|
-
|
|
1094
|
+
status(parameters, options) {
|
|
1019
1095
|
const params = buildClientParams([parameters], [
|
|
1020
1096
|
{
|
|
1021
1097
|
args: [
|
|
1022
1098
|
{ in: "query", key: "directory" },
|
|
1023
1099
|
{ in: "query", key: "workspace" },
|
|
1024
|
-
{ in: "query", key: "base" },
|
|
1025
1100
|
],
|
|
1026
1101
|
},
|
|
1027
1102
|
]);
|
|
1028
1103
|
return (options?.client ?? this.client).get({
|
|
1029
|
-
url: "/
|
|
1104
|
+
url: "/formatter",
|
|
1030
1105
|
...options,
|
|
1031
1106
|
...params,
|
|
1032
1107
|
});
|
|
1033
1108
|
}
|
|
1109
|
+
}
|
|
1110
|
+
export class Auth2 extends HeyApiClient {
|
|
1034
1111
|
/**
|
|
1035
|
-
*
|
|
1112
|
+
* Remove MCP OAuth
|
|
1036
1113
|
*
|
|
1037
|
-
*
|
|
1114
|
+
* Remove OAuth credentials for an MCP server.
|
|
1038
1115
|
*/
|
|
1039
|
-
|
|
1116
|
+
remove(parameters, options) {
|
|
1040
1117
|
const params = buildClientParams([parameters], [
|
|
1041
1118
|
{
|
|
1042
1119
|
args: [
|
|
1120
|
+
{ in: "path", key: "name" },
|
|
1043
1121
|
{ in: "query", key: "directory" },
|
|
1044
1122
|
{ in: "query", key: "workspace" },
|
|
1045
|
-
{ in: "query", key: "base" },
|
|
1046
|
-
{ in: "query", key: "file" },
|
|
1047
1123
|
],
|
|
1048
1124
|
},
|
|
1049
1125
|
]);
|
|
1050
|
-
return (options?.client ?? this.client).
|
|
1051
|
-
url: "/
|
|
1126
|
+
return (options?.client ?? this.client).delete({
|
|
1127
|
+
url: "/mcp/{name}/auth",
|
|
1052
1128
|
...options,
|
|
1053
1129
|
...params,
|
|
1054
1130
|
});
|
|
1055
1131
|
}
|
|
1056
|
-
}
|
|
1057
|
-
export class Session2 extends HeyApiClient {
|
|
1058
1132
|
/**
|
|
1059
|
-
*
|
|
1133
|
+
* Start MCP OAuth
|
|
1060
1134
|
*
|
|
1061
|
-
*
|
|
1135
|
+
* Start OAuth authentication flow for a Model Context Protocol (MCP) server.
|
|
1062
1136
|
*/
|
|
1063
|
-
|
|
1137
|
+
start(parameters, options) {
|
|
1064
1138
|
const params = buildClientParams([parameters], [
|
|
1065
1139
|
{
|
|
1066
1140
|
args: [
|
|
1141
|
+
{ in: "path", key: "name" },
|
|
1067
1142
|
{ in: "query", key: "directory" },
|
|
1068
1143
|
{ in: "query", key: "workspace" },
|
|
1069
|
-
{ in: "query", key: "scope" },
|
|
1070
|
-
{ in: "query", key: "path" },
|
|
1071
|
-
{ in: "query", key: "roots" },
|
|
1072
|
-
{ in: "query", key: "start" },
|
|
1073
|
-
{ in: "query", key: "search" },
|
|
1074
|
-
{ in: "query", key: "limit" },
|
|
1075
1144
|
],
|
|
1076
1145
|
},
|
|
1077
1146
|
]);
|
|
1078
|
-
return (options?.client ?? this.client).
|
|
1079
|
-
url: "/
|
|
1147
|
+
return (options?.client ?? this.client).post({
|
|
1148
|
+
url: "/mcp/{name}/auth",
|
|
1080
1149
|
...options,
|
|
1081
1150
|
...params,
|
|
1082
1151
|
});
|
|
1083
1152
|
}
|
|
1084
1153
|
/**
|
|
1085
|
-
*
|
|
1154
|
+
* Complete MCP OAuth
|
|
1086
1155
|
*
|
|
1087
|
-
*
|
|
1156
|
+
* Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
|
|
1088
1157
|
*/
|
|
1089
|
-
|
|
1158
|
+
callback(parameters, options) {
|
|
1090
1159
|
const params = buildClientParams([parameters], [
|
|
1091
1160
|
{
|
|
1092
1161
|
args: [
|
|
1162
|
+
{ in: "path", key: "name" },
|
|
1093
1163
|
{ in: "query", key: "directory" },
|
|
1094
1164
|
{ in: "query", key: "workspace" },
|
|
1095
|
-
{ in: "body", key: "
|
|
1096
|
-
{ in: "body", key: "title" },
|
|
1097
|
-
{ in: "body", key: "permission" },
|
|
1098
|
-
{ in: "body", key: "platform" },
|
|
1099
|
-
{ in: "body", key: "workspaceID" },
|
|
1165
|
+
{ in: "body", key: "code" },
|
|
1100
1166
|
],
|
|
1101
1167
|
},
|
|
1102
1168
|
]);
|
|
1103
1169
|
return (options?.client ?? this.client).post({
|
|
1104
|
-
url: "/
|
|
1170
|
+
url: "/mcp/{name}/auth/callback",
|
|
1105
1171
|
...options,
|
|
1106
1172
|
...params,
|
|
1107
1173
|
headers: {
|
|
@@ -1112,358 +1178,341 @@ export class Session2 extends HeyApiClient {
|
|
|
1112
1178
|
});
|
|
1113
1179
|
}
|
|
1114
1180
|
/**
|
|
1115
|
-
*
|
|
1181
|
+
* Authenticate MCP OAuth
|
|
1116
1182
|
*
|
|
1117
|
-
*
|
|
1183
|
+
* Start OAuth flow and wait for callback (opens browser).
|
|
1118
1184
|
*/
|
|
1119
|
-
|
|
1185
|
+
authenticate(parameters, options) {
|
|
1120
1186
|
const params = buildClientParams([parameters], [
|
|
1121
1187
|
{
|
|
1122
1188
|
args: [
|
|
1189
|
+
{ in: "path", key: "name" },
|
|
1123
1190
|
{ in: "query", key: "directory" },
|
|
1124
1191
|
{ in: "query", key: "workspace" },
|
|
1125
1192
|
],
|
|
1126
1193
|
},
|
|
1127
1194
|
]);
|
|
1128
|
-
return (options?.client ?? this.client).
|
|
1129
|
-
url: "/
|
|
1195
|
+
return (options?.client ?? this.client).post({
|
|
1196
|
+
url: "/mcp/{name}/auth/authenticate",
|
|
1130
1197
|
...options,
|
|
1131
1198
|
...params,
|
|
1132
1199
|
});
|
|
1133
1200
|
}
|
|
1201
|
+
}
|
|
1202
|
+
export class Mcp extends HeyApiClient {
|
|
1134
1203
|
/**
|
|
1135
|
-
*
|
|
1204
|
+
* Get MCP status
|
|
1136
1205
|
*
|
|
1137
|
-
*
|
|
1206
|
+
* Get the status of all Model Context Protocol (MCP) servers.
|
|
1138
1207
|
*/
|
|
1139
|
-
|
|
1208
|
+
status(parameters, options) {
|
|
1140
1209
|
const params = buildClientParams([parameters], [
|
|
1141
1210
|
{
|
|
1142
1211
|
args: [
|
|
1143
|
-
{ in: "path", key: "sessionID" },
|
|
1144
1212
|
{ in: "query", key: "directory" },
|
|
1145
1213
|
{ in: "query", key: "workspace" },
|
|
1146
1214
|
],
|
|
1147
1215
|
},
|
|
1148
1216
|
]);
|
|
1149
|
-
return (options?.client ?? this.client).
|
|
1150
|
-
url: "/
|
|
1217
|
+
return (options?.client ?? this.client).get({
|
|
1218
|
+
url: "/mcp",
|
|
1151
1219
|
...options,
|
|
1152
1220
|
...params,
|
|
1153
1221
|
});
|
|
1154
1222
|
}
|
|
1155
1223
|
/**
|
|
1156
|
-
*
|
|
1224
|
+
* Add MCP server
|
|
1157
1225
|
*
|
|
1158
|
-
*
|
|
1226
|
+
* Dynamically add a new Model Context Protocol (MCP) server to the system.
|
|
1159
1227
|
*/
|
|
1160
|
-
|
|
1228
|
+
add(parameters, options) {
|
|
1161
1229
|
const params = buildClientParams([parameters], [
|
|
1162
1230
|
{
|
|
1163
1231
|
args: [
|
|
1164
|
-
{ in: "path", key: "sessionID" },
|
|
1165
1232
|
{ in: "query", key: "directory" },
|
|
1166
1233
|
{ in: "query", key: "workspace" },
|
|
1234
|
+
{ in: "body", key: "name" },
|
|
1235
|
+
{ in: "body", key: "config" },
|
|
1167
1236
|
],
|
|
1168
1237
|
},
|
|
1169
1238
|
]);
|
|
1170
|
-
return (options?.client ?? this.client).
|
|
1171
|
-
url: "/
|
|
1239
|
+
return (options?.client ?? this.client).post({
|
|
1240
|
+
url: "/mcp",
|
|
1172
1241
|
...options,
|
|
1173
1242
|
...params,
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1243
|
+
headers: {
|
|
1244
|
+
"Content-Type": "application/json",
|
|
1245
|
+
...options?.headers,
|
|
1246
|
+
...params.headers,
|
|
1247
|
+
},
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Connect an MCP server.
|
|
1180
1252
|
*/
|
|
1181
|
-
|
|
1253
|
+
connect(parameters, options) {
|
|
1182
1254
|
const params = buildClientParams([parameters], [
|
|
1183
1255
|
{
|
|
1184
1256
|
args: [
|
|
1185
|
-
{ in: "path", key: "
|
|
1257
|
+
{ in: "path", key: "name" },
|
|
1186
1258
|
{ in: "query", key: "directory" },
|
|
1187
1259
|
{ in: "query", key: "workspace" },
|
|
1188
|
-
{ in: "body", key: "title" },
|
|
1189
|
-
{ in: "body", key: "permission" },
|
|
1190
|
-
{ in: "body", key: "time" },
|
|
1191
1260
|
],
|
|
1192
1261
|
},
|
|
1193
1262
|
]);
|
|
1194
|
-
return (options?.client ?? this.client).
|
|
1195
|
-
url: "/
|
|
1263
|
+
return (options?.client ?? this.client).post({
|
|
1264
|
+
url: "/mcp/{name}/connect",
|
|
1196
1265
|
...options,
|
|
1197
1266
|
...params,
|
|
1198
|
-
headers: {
|
|
1199
|
-
"Content-Type": "application/json",
|
|
1200
|
-
...options?.headers,
|
|
1201
|
-
...params.headers,
|
|
1202
|
-
},
|
|
1203
1267
|
});
|
|
1204
1268
|
}
|
|
1205
1269
|
/**
|
|
1206
|
-
*
|
|
1207
|
-
*
|
|
1208
|
-
* Retrieve all child sessions that were forked from the specified parent session.
|
|
1270
|
+
* Disconnect an MCP server.
|
|
1209
1271
|
*/
|
|
1210
|
-
|
|
1272
|
+
disconnect(parameters, options) {
|
|
1211
1273
|
const params = buildClientParams([parameters], [
|
|
1212
1274
|
{
|
|
1213
1275
|
args: [
|
|
1214
|
-
{ in: "path", key: "
|
|
1276
|
+
{ in: "path", key: "name" },
|
|
1215
1277
|
{ in: "query", key: "directory" },
|
|
1216
1278
|
{ in: "query", key: "workspace" },
|
|
1217
1279
|
],
|
|
1218
1280
|
},
|
|
1219
1281
|
]);
|
|
1220
|
-
return (options?.client ?? this.client).
|
|
1221
|
-
url: "/
|
|
1282
|
+
return (options?.client ?? this.client).post({
|
|
1283
|
+
url: "/mcp/{name}/disconnect",
|
|
1222
1284
|
...options,
|
|
1223
1285
|
...params,
|
|
1224
1286
|
});
|
|
1225
1287
|
}
|
|
1288
|
+
_auth;
|
|
1289
|
+
get auth() {
|
|
1290
|
+
return (this._auth ??= new Auth2({ client: this.client }));
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
export class Project extends HeyApiClient {
|
|
1226
1294
|
/**
|
|
1227
|
-
*
|
|
1295
|
+
* List all projects
|
|
1228
1296
|
*
|
|
1229
|
-
*
|
|
1297
|
+
* Get a list of projects that have been opened with Kilo.
|
|
1230
1298
|
*/
|
|
1231
|
-
|
|
1299
|
+
list(parameters, options) {
|
|
1232
1300
|
const params = buildClientParams([parameters], [
|
|
1233
1301
|
{
|
|
1234
1302
|
args: [
|
|
1235
|
-
{ in: "path", key: "sessionID" },
|
|
1236
1303
|
{ in: "query", key: "directory" },
|
|
1237
1304
|
{ in: "query", key: "workspace" },
|
|
1238
1305
|
],
|
|
1239
1306
|
},
|
|
1240
1307
|
]);
|
|
1241
1308
|
return (options?.client ?? this.client).get({
|
|
1242
|
-
url: "/
|
|
1309
|
+
url: "/project",
|
|
1243
1310
|
...options,
|
|
1244
1311
|
...params,
|
|
1245
1312
|
});
|
|
1246
1313
|
}
|
|
1247
1314
|
/**
|
|
1248
|
-
*
|
|
1315
|
+
* Get current project
|
|
1249
1316
|
*
|
|
1250
|
-
*
|
|
1317
|
+
* Retrieve the currently active project that Kilo is working with.
|
|
1251
1318
|
*/
|
|
1252
|
-
|
|
1319
|
+
current(parameters, options) {
|
|
1253
1320
|
const params = buildClientParams([parameters], [
|
|
1254
1321
|
{
|
|
1255
1322
|
args: [
|
|
1256
|
-
{ in: "path", key: "sessionID" },
|
|
1257
1323
|
{ in: "query", key: "directory" },
|
|
1258
1324
|
{ in: "query", key: "workspace" },
|
|
1259
|
-
{ in: "body", key: "modelID" },
|
|
1260
|
-
{ in: "body", key: "providerID" },
|
|
1261
|
-
{ in: "body", key: "messageID" },
|
|
1262
1325
|
],
|
|
1263
1326
|
},
|
|
1264
1327
|
]);
|
|
1265
|
-
return (options?.client ?? this.client).
|
|
1266
|
-
url: "/
|
|
1328
|
+
return (options?.client ?? this.client).get({
|
|
1329
|
+
url: "/project/current",
|
|
1267
1330
|
...options,
|
|
1268
1331
|
...params,
|
|
1269
|
-
headers: {
|
|
1270
|
-
"Content-Type": "application/json",
|
|
1271
|
-
...options?.headers,
|
|
1272
|
-
...params.headers,
|
|
1273
|
-
},
|
|
1274
1332
|
});
|
|
1275
1333
|
}
|
|
1276
1334
|
/**
|
|
1277
|
-
*
|
|
1335
|
+
* Initialize git repository
|
|
1278
1336
|
*
|
|
1279
|
-
* Create a
|
|
1337
|
+
* Create a git repository for the current project and return the refreshed project info.
|
|
1280
1338
|
*/
|
|
1281
|
-
|
|
1339
|
+
initGit(parameters, options) {
|
|
1282
1340
|
const params = buildClientParams([parameters], [
|
|
1283
1341
|
{
|
|
1284
1342
|
args: [
|
|
1285
|
-
{ in: "path", key: "sessionID" },
|
|
1286
1343
|
{ in: "query", key: "directory" },
|
|
1287
1344
|
{ in: "query", key: "workspace" },
|
|
1288
|
-
{ in: "body", key: "messageID" },
|
|
1289
1345
|
],
|
|
1290
1346
|
},
|
|
1291
1347
|
]);
|
|
1292
1348
|
return (options?.client ?? this.client).post({
|
|
1293
|
-
url: "/
|
|
1349
|
+
url: "/project/git/init",
|
|
1294
1350
|
...options,
|
|
1295
1351
|
...params,
|
|
1296
|
-
headers: {
|
|
1297
|
-
"Content-Type": "application/json",
|
|
1298
|
-
...options?.headers,
|
|
1299
|
-
...params.headers,
|
|
1300
|
-
},
|
|
1301
1352
|
});
|
|
1302
1353
|
}
|
|
1303
1354
|
/**
|
|
1304
|
-
*
|
|
1355
|
+
* Update project
|
|
1305
1356
|
*
|
|
1306
|
-
*
|
|
1357
|
+
* Update project properties such as name, icon, and commands.
|
|
1307
1358
|
*/
|
|
1308
|
-
|
|
1359
|
+
update(parameters, options) {
|
|
1309
1360
|
const params = buildClientParams([parameters], [
|
|
1310
1361
|
{
|
|
1311
1362
|
args: [
|
|
1312
|
-
{ in: "path", key: "
|
|
1363
|
+
{ in: "path", key: "projectID" },
|
|
1313
1364
|
{ in: "query", key: "directory" },
|
|
1314
1365
|
{ in: "query", key: "workspace" },
|
|
1366
|
+
{ in: "body", key: "name" },
|
|
1367
|
+
{ in: "body", key: "icon" },
|
|
1368
|
+
{ in: "body", key: "commands" },
|
|
1315
1369
|
],
|
|
1316
1370
|
},
|
|
1317
1371
|
]);
|
|
1318
|
-
return (options?.client ?? this.client).
|
|
1319
|
-
url: "/
|
|
1372
|
+
return (options?.client ?? this.client).patch({
|
|
1373
|
+
url: "/project/{projectID}",
|
|
1320
1374
|
...options,
|
|
1321
1375
|
...params,
|
|
1376
|
+
headers: {
|
|
1377
|
+
"Content-Type": "application/json",
|
|
1378
|
+
...options?.headers,
|
|
1379
|
+
...params.headers,
|
|
1380
|
+
},
|
|
1322
1381
|
});
|
|
1323
1382
|
}
|
|
1383
|
+
}
|
|
1384
|
+
export class Pty extends HeyApiClient {
|
|
1324
1385
|
/**
|
|
1325
|
-
*
|
|
1386
|
+
* List available shells
|
|
1326
1387
|
*
|
|
1327
|
-
*
|
|
1388
|
+
* Get a list of available shells on the system.
|
|
1328
1389
|
*/
|
|
1329
|
-
|
|
1390
|
+
shells(parameters, options) {
|
|
1330
1391
|
const params = buildClientParams([parameters], [
|
|
1331
1392
|
{
|
|
1332
1393
|
args: [
|
|
1333
|
-
{ in: "path", key: "sessionID" },
|
|
1334
1394
|
{ in: "query", key: "directory" },
|
|
1335
1395
|
{ in: "query", key: "workspace" },
|
|
1336
1396
|
],
|
|
1337
1397
|
},
|
|
1338
1398
|
]);
|
|
1339
|
-
return (options?.client ?? this.client).
|
|
1340
|
-
url: "/
|
|
1399
|
+
return (options?.client ?? this.client).get({
|
|
1400
|
+
url: "/pty/shells",
|
|
1341
1401
|
...options,
|
|
1342
1402
|
...params,
|
|
1343
1403
|
});
|
|
1344
1404
|
}
|
|
1345
1405
|
/**
|
|
1346
|
-
*
|
|
1406
|
+
* List PTY sessions
|
|
1347
1407
|
*
|
|
1348
|
-
*
|
|
1408
|
+
* Get a list of all active pseudo-terminal (PTY) sessions managed by Kilo.
|
|
1349
1409
|
*/
|
|
1350
|
-
|
|
1410
|
+
list(parameters, options) {
|
|
1351
1411
|
const params = buildClientParams([parameters], [
|
|
1352
1412
|
{
|
|
1353
1413
|
args: [
|
|
1354
|
-
{ in: "path", key: "sessionID" },
|
|
1355
1414
|
{ in: "query", key: "directory" },
|
|
1356
1415
|
{ in: "query", key: "workspace" },
|
|
1357
1416
|
],
|
|
1358
1417
|
},
|
|
1359
1418
|
]);
|
|
1360
|
-
return (options?.client ?? this.client).
|
|
1361
|
-
url: "/
|
|
1419
|
+
return (options?.client ?? this.client).get({
|
|
1420
|
+
url: "/pty",
|
|
1362
1421
|
...options,
|
|
1363
1422
|
...params,
|
|
1364
1423
|
});
|
|
1365
1424
|
}
|
|
1366
1425
|
/**
|
|
1367
|
-
*
|
|
1426
|
+
* Create PTY session
|
|
1368
1427
|
*
|
|
1369
|
-
*
|
|
1428
|
+
* Create a new pseudo-terminal (PTY) session for running shell commands and processes.
|
|
1370
1429
|
*/
|
|
1371
|
-
|
|
1430
|
+
create(parameters, options) {
|
|
1372
1431
|
const params = buildClientParams([parameters], [
|
|
1373
1432
|
{
|
|
1374
1433
|
args: [
|
|
1375
|
-
{ in: "path", key: "sessionID" },
|
|
1376
1434
|
{ in: "query", key: "directory" },
|
|
1377
1435
|
{ in: "query", key: "workspace" },
|
|
1378
|
-
{ in: "
|
|
1436
|
+
{ in: "body", key: "command" },
|
|
1437
|
+
{ in: "body", key: "args" },
|
|
1438
|
+
{ in: "body", key: "cwd" },
|
|
1439
|
+
{ in: "body", key: "title" },
|
|
1440
|
+
{ in: "body", key: "env" },
|
|
1379
1441
|
],
|
|
1380
1442
|
},
|
|
1381
1443
|
]);
|
|
1382
|
-
return (options?.client ?? this.client).
|
|
1383
|
-
url: "/
|
|
1444
|
+
return (options?.client ?? this.client).post({
|
|
1445
|
+
url: "/pty",
|
|
1384
1446
|
...options,
|
|
1385
1447
|
...params,
|
|
1448
|
+
headers: {
|
|
1449
|
+
"Content-Type": "application/json",
|
|
1450
|
+
...options?.headers,
|
|
1451
|
+
...params.headers,
|
|
1452
|
+
},
|
|
1386
1453
|
});
|
|
1387
1454
|
}
|
|
1388
1455
|
/**
|
|
1389
|
-
*
|
|
1456
|
+
* Remove PTY session
|
|
1390
1457
|
*
|
|
1391
|
-
*
|
|
1458
|
+
* Remove and terminate a specific pseudo-terminal (PTY) session.
|
|
1392
1459
|
*/
|
|
1393
|
-
|
|
1460
|
+
remove(parameters, options) {
|
|
1394
1461
|
const params = buildClientParams([parameters], [
|
|
1395
1462
|
{
|
|
1396
1463
|
args: [
|
|
1397
|
-
{ in: "path", key: "
|
|
1464
|
+
{ in: "path", key: "ptyID" },
|
|
1398
1465
|
{ in: "query", key: "directory" },
|
|
1399
1466
|
{ in: "query", key: "workspace" },
|
|
1400
|
-
{ in: "body", key: "providerID" },
|
|
1401
|
-
{ in: "body", key: "modelID" },
|
|
1402
|
-
{ in: "body", key: "auto" },
|
|
1403
1467
|
],
|
|
1404
1468
|
},
|
|
1405
1469
|
]);
|
|
1406
|
-
return (options?.client ?? this.client).
|
|
1407
|
-
url: "/
|
|
1470
|
+
return (options?.client ?? this.client).delete({
|
|
1471
|
+
url: "/pty/{ptyID}",
|
|
1408
1472
|
...options,
|
|
1409
1473
|
...params,
|
|
1410
|
-
headers: {
|
|
1411
|
-
"Content-Type": "application/json",
|
|
1412
|
-
...options?.headers,
|
|
1413
|
-
...params.headers,
|
|
1414
|
-
},
|
|
1415
1474
|
});
|
|
1416
1475
|
}
|
|
1417
1476
|
/**
|
|
1418
|
-
* Get session
|
|
1477
|
+
* Get PTY session
|
|
1419
1478
|
*
|
|
1420
|
-
* Retrieve
|
|
1479
|
+
* Retrieve detailed information about a specific pseudo-terminal (PTY) session.
|
|
1421
1480
|
*/
|
|
1422
|
-
|
|
1481
|
+
get(parameters, options) {
|
|
1423
1482
|
const params = buildClientParams([parameters], [
|
|
1424
1483
|
{
|
|
1425
1484
|
args: [
|
|
1426
|
-
{ in: "path", key: "
|
|
1485
|
+
{ in: "path", key: "ptyID" },
|
|
1427
1486
|
{ in: "query", key: "directory" },
|
|
1428
1487
|
{ in: "query", key: "workspace" },
|
|
1429
|
-
{ in: "query", key: "limit" },
|
|
1430
|
-
{ in: "query", key: "before" },
|
|
1431
1488
|
],
|
|
1432
1489
|
},
|
|
1433
1490
|
]);
|
|
1434
1491
|
return (options?.client ?? this.client).get({
|
|
1435
|
-
url: "/
|
|
1492
|
+
url: "/pty/{ptyID}",
|
|
1436
1493
|
...options,
|
|
1437
1494
|
...params,
|
|
1438
1495
|
});
|
|
1439
1496
|
}
|
|
1440
1497
|
/**
|
|
1441
|
-
*
|
|
1498
|
+
* Update PTY session
|
|
1442
1499
|
*
|
|
1443
|
-
*
|
|
1500
|
+
* Update properties of an existing pseudo-terminal (PTY) session.
|
|
1444
1501
|
*/
|
|
1445
|
-
|
|
1502
|
+
update(parameters, options) {
|
|
1446
1503
|
const params = buildClientParams([parameters], [
|
|
1447
1504
|
{
|
|
1448
1505
|
args: [
|
|
1449
|
-
{ in: "path", key: "
|
|
1506
|
+
{ in: "path", key: "ptyID" },
|
|
1450
1507
|
{ in: "query", key: "directory" },
|
|
1451
1508
|
{ in: "query", key: "workspace" },
|
|
1452
|
-
{ in: "body", key: "
|
|
1453
|
-
{ in: "body", key: "
|
|
1454
|
-
{ in: "body", key: "agent" },
|
|
1455
|
-
{ in: "body", key: "noReply" },
|
|
1456
|
-
{ in: "body", key: "tools" },
|
|
1457
|
-
{ in: "body", key: "format" },
|
|
1458
|
-
{ in: "body", key: "system" },
|
|
1459
|
-
{ in: "body", key: "variant" },
|
|
1460
|
-
{ in: "body", key: "editorContext" },
|
|
1461
|
-
{ in: "body", key: "parts" },
|
|
1509
|
+
{ in: "body", key: "title" },
|
|
1510
|
+
{ in: "body", key: "size" },
|
|
1462
1511
|
],
|
|
1463
1512
|
},
|
|
1464
1513
|
]);
|
|
1465
|
-
return (options?.client ?? this.client).
|
|
1466
|
-
url: "/
|
|
1514
|
+
return (options?.client ?? this.client).put({
|
|
1515
|
+
url: "/pty/{ptyID}",
|
|
1467
1516
|
...options,
|
|
1468
1517
|
...params,
|
|
1469
1518
|
headers: {
|
|
@@ -1474,109 +1523,87 @@ export class Session2 extends HeyApiClient {
|
|
|
1474
1523
|
});
|
|
1475
1524
|
}
|
|
1476
1525
|
/**
|
|
1477
|
-
*
|
|
1526
|
+
* Create PTY WebSocket token
|
|
1478
1527
|
*
|
|
1479
|
-
*
|
|
1528
|
+
* Create a short-lived ticket for opening a PTY WebSocket connection.
|
|
1480
1529
|
*/
|
|
1481
|
-
|
|
1530
|
+
connectToken(parameters, options) {
|
|
1482
1531
|
const params = buildClientParams([parameters], [
|
|
1483
1532
|
{
|
|
1484
1533
|
args: [
|
|
1485
|
-
{ in: "path", key: "
|
|
1486
|
-
{ in: "path", key: "messageID" },
|
|
1534
|
+
{ in: "path", key: "ptyID" },
|
|
1487
1535
|
{ in: "query", key: "directory" },
|
|
1488
1536
|
{ in: "query", key: "workspace" },
|
|
1489
1537
|
],
|
|
1490
1538
|
},
|
|
1491
1539
|
]);
|
|
1492
|
-
return (options?.client ?? this.client).
|
|
1493
|
-
url: "/
|
|
1540
|
+
return (options?.client ?? this.client).post({
|
|
1541
|
+
url: "/pty/{ptyID}/connect-token",
|
|
1494
1542
|
...options,
|
|
1495
1543
|
...params,
|
|
1496
1544
|
});
|
|
1497
1545
|
}
|
|
1498
1546
|
/**
|
|
1499
|
-
*
|
|
1547
|
+
* Connect to PTY session
|
|
1500
1548
|
*
|
|
1501
|
-
*
|
|
1549
|
+
* Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
|
|
1502
1550
|
*/
|
|
1503
|
-
|
|
1551
|
+
connect(parameters, options) {
|
|
1504
1552
|
const params = buildClientParams([parameters], [
|
|
1505
1553
|
{
|
|
1506
1554
|
args: [
|
|
1507
|
-
{ in: "path", key: "
|
|
1508
|
-
{ in: "path", key: "messageID" },
|
|
1555
|
+
{ in: "path", key: "ptyID" },
|
|
1509
1556
|
{ in: "query", key: "directory" },
|
|
1510
1557
|
{ in: "query", key: "workspace" },
|
|
1511
1558
|
],
|
|
1512
1559
|
},
|
|
1513
1560
|
]);
|
|
1514
1561
|
return (options?.client ?? this.client).get({
|
|
1515
|
-
url: "/
|
|
1562
|
+
url: "/pty/{ptyID}/connect",
|
|
1516
1563
|
...options,
|
|
1517
1564
|
...params,
|
|
1518
1565
|
});
|
|
1519
1566
|
}
|
|
1567
|
+
}
|
|
1568
|
+
export class Question extends HeyApiClient {
|
|
1520
1569
|
/**
|
|
1521
|
-
*
|
|
1570
|
+
* List pending questions
|
|
1522
1571
|
*
|
|
1523
|
-
*
|
|
1572
|
+
* Get all pending question requests across all sessions.
|
|
1524
1573
|
*/
|
|
1525
|
-
|
|
1574
|
+
list(parameters, options) {
|
|
1526
1575
|
const params = buildClientParams([parameters], [
|
|
1527
1576
|
{
|
|
1528
1577
|
args: [
|
|
1529
|
-
{ in: "path", key: "sessionID" },
|
|
1530
1578
|
{ in: "query", key: "directory" },
|
|
1531
1579
|
{ in: "query", key: "workspace" },
|
|
1532
|
-
{ in: "body", key: "messageID" },
|
|
1533
|
-
{ in: "body", key: "model" },
|
|
1534
|
-
{ in: "body", key: "agent" },
|
|
1535
|
-
{ in: "body", key: "noReply" },
|
|
1536
|
-
{ in: "body", key: "tools" },
|
|
1537
|
-
{ in: "body", key: "format" },
|
|
1538
|
-
{ in: "body", key: "system" },
|
|
1539
|
-
{ in: "body", key: "variant" },
|
|
1540
|
-
{ in: "body", key: "editorContext" },
|
|
1541
|
-
{ in: "body", key: "parts" },
|
|
1542
1580
|
],
|
|
1543
1581
|
},
|
|
1544
1582
|
]);
|
|
1545
|
-
return (options?.client ?? this.client).
|
|
1546
|
-
url: "/
|
|
1583
|
+
return (options?.client ?? this.client).get({
|
|
1584
|
+
url: "/question",
|
|
1547
1585
|
...options,
|
|
1548
1586
|
...params,
|
|
1549
|
-
headers: {
|
|
1550
|
-
"Content-Type": "application/json",
|
|
1551
|
-
...options?.headers,
|
|
1552
|
-
...params.headers,
|
|
1553
|
-
},
|
|
1554
1587
|
});
|
|
1555
1588
|
}
|
|
1556
1589
|
/**
|
|
1557
|
-
*
|
|
1590
|
+
* Reply to question request
|
|
1558
1591
|
*
|
|
1559
|
-
*
|
|
1592
|
+
* Provide answers to a question request from the AI assistant.
|
|
1560
1593
|
*/
|
|
1561
|
-
|
|
1594
|
+
reply(parameters, options) {
|
|
1562
1595
|
const params = buildClientParams([parameters], [
|
|
1563
1596
|
{
|
|
1564
1597
|
args: [
|
|
1565
|
-
{ in: "path", key: "
|
|
1598
|
+
{ in: "path", key: "requestID" },
|
|
1566
1599
|
{ in: "query", key: "directory" },
|
|
1567
1600
|
{ in: "query", key: "workspace" },
|
|
1568
|
-
{ in: "body", key: "
|
|
1569
|
-
{ in: "body", key: "agent" },
|
|
1570
|
-
{ in: "body", key: "model" },
|
|
1571
|
-
{ in: "body", key: "arguments" },
|
|
1572
|
-
{ in: "body", key: "command" },
|
|
1573
|
-
{ in: "body", key: "variant" },
|
|
1574
|
-
{ in: "body", key: "parts" },
|
|
1601
|
+
{ in: "body", key: "answers" },
|
|
1575
1602
|
],
|
|
1576
1603
|
},
|
|
1577
1604
|
]);
|
|
1578
1605
|
return (options?.client ?? this.client).post({
|
|
1579
|
-
url: "/
|
|
1606
|
+
url: "/question/{requestID}/reply",
|
|
1580
1607
|
...options,
|
|
1581
1608
|
...params,
|
|
1582
1609
|
headers: {
|
|
@@ -1587,102 +1614,95 @@ export class Session2 extends HeyApiClient {
|
|
|
1587
1614
|
});
|
|
1588
1615
|
}
|
|
1589
1616
|
/**
|
|
1590
|
-
*
|
|
1617
|
+
* Reject question request
|
|
1591
1618
|
*
|
|
1592
|
-
*
|
|
1619
|
+
* Reject a question request from the AI assistant.
|
|
1593
1620
|
*/
|
|
1594
|
-
|
|
1621
|
+
reject(parameters, options) {
|
|
1595
1622
|
const params = buildClientParams([parameters], [
|
|
1596
1623
|
{
|
|
1597
1624
|
args: [
|
|
1598
|
-
{ in: "path", key: "
|
|
1625
|
+
{ in: "path", key: "requestID" },
|
|
1599
1626
|
{ in: "query", key: "directory" },
|
|
1600
1627
|
{ in: "query", key: "workspace" },
|
|
1601
|
-
{ in: "body", key: "messageID" },
|
|
1602
|
-
{ in: "body", key: "agent" },
|
|
1603
|
-
{ in: "body", key: "model" },
|
|
1604
|
-
{ in: "body", key: "command" },
|
|
1605
1628
|
],
|
|
1606
1629
|
},
|
|
1607
1630
|
]);
|
|
1608
1631
|
return (options?.client ?? this.client).post({
|
|
1609
|
-
url: "/
|
|
1632
|
+
url: "/question/{requestID}/reject",
|
|
1610
1633
|
...options,
|
|
1611
1634
|
...params,
|
|
1612
|
-
headers: {
|
|
1613
|
-
"Content-Type": "application/json",
|
|
1614
|
-
...options?.headers,
|
|
1615
|
-
...params.headers,
|
|
1616
|
-
},
|
|
1617
1635
|
});
|
|
1618
1636
|
}
|
|
1637
|
+
}
|
|
1638
|
+
export class Permission extends HeyApiClient {
|
|
1619
1639
|
/**
|
|
1620
|
-
*
|
|
1640
|
+
* List pending permissions
|
|
1621
1641
|
*
|
|
1622
|
-
*
|
|
1642
|
+
* Get all pending permission requests across all sessions.
|
|
1623
1643
|
*/
|
|
1624
|
-
|
|
1644
|
+
list(parameters, options) {
|
|
1625
1645
|
const params = buildClientParams([parameters], [
|
|
1626
1646
|
{
|
|
1627
1647
|
args: [
|
|
1628
|
-
{ in: "path", key: "sessionID" },
|
|
1629
1648
|
{ in: "query", key: "directory" },
|
|
1630
1649
|
{ in: "query", key: "workspace" },
|
|
1631
|
-
{ in: "body", key: "messageID" },
|
|
1632
|
-
{ in: "body", key: "partID" },
|
|
1633
1650
|
],
|
|
1634
1651
|
},
|
|
1635
1652
|
]);
|
|
1636
|
-
return (options?.client ?? this.client).
|
|
1637
|
-
url: "/
|
|
1653
|
+
return (options?.client ?? this.client).get({
|
|
1654
|
+
url: "/permission",
|
|
1638
1655
|
...options,
|
|
1639
1656
|
...params,
|
|
1640
|
-
headers: {
|
|
1641
|
-
"Content-Type": "application/json",
|
|
1642
|
-
...options?.headers,
|
|
1643
|
-
...params.headers,
|
|
1644
|
-
},
|
|
1645
1657
|
});
|
|
1646
1658
|
}
|
|
1647
1659
|
/**
|
|
1648
|
-
*
|
|
1660
|
+
* Respond to permission request
|
|
1649
1661
|
*
|
|
1650
|
-
*
|
|
1662
|
+
* Approve or deny a permission request from the AI assistant.
|
|
1651
1663
|
*/
|
|
1652
|
-
|
|
1664
|
+
reply(parameters, options) {
|
|
1653
1665
|
const params = buildClientParams([parameters], [
|
|
1654
1666
|
{
|
|
1655
1667
|
args: [
|
|
1656
|
-
{ in: "path", key: "
|
|
1668
|
+
{ in: "path", key: "requestID" },
|
|
1657
1669
|
{ in: "query", key: "directory" },
|
|
1658
1670
|
{ in: "query", key: "workspace" },
|
|
1671
|
+
{ in: "body", key: "reply" },
|
|
1672
|
+
{ in: "body", key: "message" },
|
|
1659
1673
|
],
|
|
1660
1674
|
},
|
|
1661
1675
|
]);
|
|
1662
1676
|
return (options?.client ?? this.client).post({
|
|
1663
|
-
url: "/
|
|
1677
|
+
url: "/permission/{requestID}/reply",
|
|
1664
1678
|
...options,
|
|
1665
1679
|
...params,
|
|
1680
|
+
headers: {
|
|
1681
|
+
"Content-Type": "application/json",
|
|
1682
|
+
...options?.headers,
|
|
1683
|
+
...params.headers,
|
|
1684
|
+
},
|
|
1666
1685
|
});
|
|
1667
1686
|
}
|
|
1668
1687
|
/**
|
|
1669
|
-
*
|
|
1688
|
+
* Save always-allow/deny permission rules
|
|
1670
1689
|
*
|
|
1671
|
-
*
|
|
1690
|
+
* Save approved/denied always-rules for a pending permission request.
|
|
1672
1691
|
*/
|
|
1673
|
-
|
|
1692
|
+
saveAlwaysRules(parameters, options) {
|
|
1674
1693
|
const params = buildClientParams([parameters], [
|
|
1675
1694
|
{
|
|
1676
1695
|
args: [
|
|
1696
|
+
{ in: "path", key: "requestID" },
|
|
1677
1697
|
{ in: "query", key: "directory" },
|
|
1678
1698
|
{ in: "query", key: "workspace" },
|
|
1679
|
-
{ in: "body", key: "
|
|
1680
|
-
{ in: "body", key: "
|
|
1699
|
+
{ in: "body", key: "approvedAlways" },
|
|
1700
|
+
{ in: "body", key: "deniedAlways" },
|
|
1681
1701
|
],
|
|
1682
1702
|
},
|
|
1683
1703
|
]);
|
|
1684
1704
|
return (options?.client ?? this.client).post({
|
|
1685
|
-
url: "/
|
|
1705
|
+
url: "/permission/{requestID}/always-rules",
|
|
1686
1706
|
...options,
|
|
1687
1707
|
...params,
|
|
1688
1708
|
headers: {
|
|
@@ -1692,47 +1712,25 @@ export class Session2 extends HeyApiClient {
|
|
|
1692
1712
|
},
|
|
1693
1713
|
});
|
|
1694
1714
|
}
|
|
1695
|
-
}
|
|
1696
|
-
export class Part extends HeyApiClient {
|
|
1697
|
-
/**
|
|
1698
|
-
* Delete a part from a message
|
|
1699
|
-
*/
|
|
1700
|
-
delete(parameters, options) {
|
|
1701
|
-
const params = buildClientParams([parameters], [
|
|
1702
|
-
{
|
|
1703
|
-
args: [
|
|
1704
|
-
{ in: "path", key: "sessionID" },
|
|
1705
|
-
{ in: "path", key: "messageID" },
|
|
1706
|
-
{ in: "path", key: "partID" },
|
|
1707
|
-
{ in: "query", key: "directory" },
|
|
1708
|
-
{ in: "query", key: "workspace" },
|
|
1709
|
-
],
|
|
1710
|
-
},
|
|
1711
|
-
]);
|
|
1712
|
-
return (options?.client ?? this.client).delete({
|
|
1713
|
-
url: "/session/{sessionID}/message/{messageID}/part/{partID}",
|
|
1714
|
-
...options,
|
|
1715
|
-
...params,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
1715
|
/**
|
|
1719
|
-
*
|
|
1716
|
+
* Allow everything
|
|
1717
|
+
*
|
|
1718
|
+
* Enable or disable allowing all permissions without prompts.
|
|
1720
1719
|
*/
|
|
1721
|
-
|
|
1720
|
+
allowEverything(parameters, options) {
|
|
1722
1721
|
const params = buildClientParams([parameters], [
|
|
1723
1722
|
{
|
|
1724
1723
|
args: [
|
|
1725
|
-
{ in: "path", key: "sessionID" },
|
|
1726
|
-
{ in: "path", key: "messageID" },
|
|
1727
|
-
{ in: "path", key: "partID" },
|
|
1728
1724
|
{ in: "query", key: "directory" },
|
|
1729
1725
|
{ in: "query", key: "workspace" },
|
|
1730
|
-
{
|
|
1726
|
+
{ in: "body", key: "enable" },
|
|
1727
|
+
{ in: "body", key: "requestID" },
|
|
1728
|
+
{ in: "body", key: "sessionID" },
|
|
1731
1729
|
],
|
|
1732
1730
|
},
|
|
1733
1731
|
]);
|
|
1734
|
-
return (options?.client ?? this.client).
|
|
1735
|
-
url: "/
|
|
1732
|
+
return (options?.client ?? this.client).post({
|
|
1733
|
+
url: "/permission/allow-everything",
|
|
1736
1734
|
...options,
|
|
1737
1735
|
...params,
|
|
1738
1736
|
headers: {
|
|
@@ -1742,8 +1740,6 @@ export class Part extends HeyApiClient {
|
|
|
1742
1740
|
},
|
|
1743
1741
|
});
|
|
1744
1742
|
}
|
|
1745
|
-
}
|
|
1746
|
-
export class Permission extends HeyApiClient {
|
|
1747
1743
|
/**
|
|
1748
1744
|
* Respond to permission
|
|
1749
1745
|
*
|
|
@@ -1774,25 +1770,27 @@ export class Permission extends HeyApiClient {
|
|
|
1774
1770
|
},
|
|
1775
1771
|
});
|
|
1776
1772
|
}
|
|
1773
|
+
}
|
|
1774
|
+
export class Oauth extends HeyApiClient {
|
|
1777
1775
|
/**
|
|
1778
|
-
*
|
|
1776
|
+
* Start OAuth authorization
|
|
1779
1777
|
*
|
|
1780
|
-
*
|
|
1778
|
+
* Start the OAuth authorization flow for a provider.
|
|
1781
1779
|
*/
|
|
1782
|
-
|
|
1780
|
+
authorize(parameters, options) {
|
|
1783
1781
|
const params = buildClientParams([parameters], [
|
|
1784
1782
|
{
|
|
1785
1783
|
args: [
|
|
1786
|
-
{ in: "path", key: "
|
|
1784
|
+
{ in: "path", key: "providerID" },
|
|
1787
1785
|
{ in: "query", key: "directory" },
|
|
1788
1786
|
{ in: "query", key: "workspace" },
|
|
1789
|
-
{ in: "body", key: "
|
|
1790
|
-
{ in: "body", key: "
|
|
1787
|
+
{ in: "body", key: "method" },
|
|
1788
|
+
{ in: "body", key: "inputs" },
|
|
1791
1789
|
],
|
|
1792
1790
|
},
|
|
1793
1791
|
]);
|
|
1794
1792
|
return (options?.client ?? this.client).post({
|
|
1795
|
-
url: "/
|
|
1793
|
+
url: "/provider/{providerID}/oauth/authorize",
|
|
1796
1794
|
...options,
|
|
1797
1795
|
...params,
|
|
1798
1796
|
headers: {
|
|
@@ -1803,24 +1801,24 @@ export class Permission extends HeyApiClient {
|
|
|
1803
1801
|
});
|
|
1804
1802
|
}
|
|
1805
1803
|
/**
|
|
1806
|
-
*
|
|
1804
|
+
* Handle OAuth callback
|
|
1807
1805
|
*
|
|
1808
|
-
*
|
|
1806
|
+
* Handle the OAuth callback from a provider after user authorization.
|
|
1809
1807
|
*/
|
|
1810
|
-
|
|
1808
|
+
callback(parameters, options) {
|
|
1811
1809
|
const params = buildClientParams([parameters], [
|
|
1812
1810
|
{
|
|
1813
1811
|
args: [
|
|
1814
|
-
{ in: "path", key: "
|
|
1812
|
+
{ in: "path", key: "providerID" },
|
|
1815
1813
|
{ in: "query", key: "directory" },
|
|
1816
1814
|
{ in: "query", key: "workspace" },
|
|
1817
|
-
{ in: "body", key: "
|
|
1818
|
-
{ in: "body", key: "
|
|
1815
|
+
{ in: "body", key: "method" },
|
|
1816
|
+
{ in: "body", key: "code" },
|
|
1819
1817
|
],
|
|
1820
1818
|
},
|
|
1821
1819
|
]);
|
|
1822
1820
|
return (options?.client ?? this.client).post({
|
|
1823
|
-
url: "/
|
|
1821
|
+
url: "/provider/{providerID}/oauth/callback",
|
|
1824
1822
|
...options,
|
|
1825
1823
|
...params,
|
|
1826
1824
|
headers: {
|
|
@@ -1830,10 +1828,12 @@ export class Permission extends HeyApiClient {
|
|
|
1830
1828
|
},
|
|
1831
1829
|
});
|
|
1832
1830
|
}
|
|
1831
|
+
}
|
|
1832
|
+
export class Provider extends HeyApiClient {
|
|
1833
1833
|
/**
|
|
1834
|
-
* List
|
|
1834
|
+
* List providers
|
|
1835
1835
|
*
|
|
1836
|
-
* Get all
|
|
1836
|
+
* Get a list of all available AI providers, including both available and connected ones.
|
|
1837
1837
|
*/
|
|
1838
1838
|
list(parameters, options) {
|
|
1839
1839
|
const params = buildClientParams([parameters], [
|
|
@@ -1845,45 +1845,41 @@ export class Permission extends HeyApiClient {
|
|
|
1845
1845
|
},
|
|
1846
1846
|
]);
|
|
1847
1847
|
return (options?.client ?? this.client).get({
|
|
1848
|
-
url: "/
|
|
1848
|
+
url: "/provider",
|
|
1849
1849
|
...options,
|
|
1850
1850
|
...params,
|
|
1851
1851
|
});
|
|
1852
1852
|
}
|
|
1853
1853
|
/**
|
|
1854
|
-
*
|
|
1854
|
+
* Get provider auth methods
|
|
1855
1855
|
*
|
|
1856
|
-
*
|
|
1856
|
+
* Retrieve available authentication methods for all AI providers.
|
|
1857
1857
|
*/
|
|
1858
|
-
|
|
1858
|
+
auth(parameters, options) {
|
|
1859
1859
|
const params = buildClientParams([parameters], [
|
|
1860
1860
|
{
|
|
1861
1861
|
args: [
|
|
1862
1862
|
{ in: "query", key: "directory" },
|
|
1863
1863
|
{ in: "query", key: "workspace" },
|
|
1864
|
-
{ in: "body", key: "enable" },
|
|
1865
|
-
{ in: "body", key: "requestID" },
|
|
1866
|
-
{ in: "body", key: "sessionID" },
|
|
1867
1864
|
],
|
|
1868
1865
|
},
|
|
1869
1866
|
]);
|
|
1870
|
-
return (options?.client ?? this.client).
|
|
1871
|
-
url: "/
|
|
1867
|
+
return (options?.client ?? this.client).get({
|
|
1868
|
+
url: "/provider/auth",
|
|
1872
1869
|
...options,
|
|
1873
1870
|
...params,
|
|
1874
|
-
headers: {
|
|
1875
|
-
"Content-Type": "application/json",
|
|
1876
|
-
...options?.headers,
|
|
1877
|
-
...params.headers,
|
|
1878
|
-
},
|
|
1879
1871
|
});
|
|
1880
1872
|
}
|
|
1873
|
+
_oauth;
|
|
1874
|
+
get oauth() {
|
|
1875
|
+
return (this._oauth ??= new Oauth({ client: this.client }));
|
|
1876
|
+
}
|
|
1881
1877
|
}
|
|
1882
|
-
export class
|
|
1878
|
+
export class Session2 extends HeyApiClient {
|
|
1883
1879
|
/**
|
|
1884
|
-
* List
|
|
1880
|
+
* List sessions
|
|
1885
1881
|
*
|
|
1886
|
-
* Get all
|
|
1882
|
+
* Get a list of all Kilo sessions, sorted by most recently updated.
|
|
1887
1883
|
*/
|
|
1888
1884
|
list(parameters, options) {
|
|
1889
1885
|
const params = buildClientParams([parameters], [
|
|
@@ -1891,33 +1887,44 @@ export class Question extends HeyApiClient {
|
|
|
1891
1887
|
args: [
|
|
1892
1888
|
{ in: "query", key: "directory" },
|
|
1893
1889
|
{ in: "query", key: "workspace" },
|
|
1890
|
+
{ in: "query", key: "scope" },
|
|
1891
|
+
{ in: "query", key: "path" },
|
|
1892
|
+
{ in: "query", key: "roots" },
|
|
1893
|
+
{ in: "query", key: "start" },
|
|
1894
|
+
{ in: "query", key: "search" },
|
|
1895
|
+
{ in: "query", key: "limit" },
|
|
1894
1896
|
],
|
|
1895
1897
|
},
|
|
1896
1898
|
]);
|
|
1897
1899
|
return (options?.client ?? this.client).get({
|
|
1898
|
-
url: "/
|
|
1900
|
+
url: "/session",
|
|
1899
1901
|
...options,
|
|
1900
1902
|
...params,
|
|
1901
1903
|
});
|
|
1902
1904
|
}
|
|
1903
1905
|
/**
|
|
1904
|
-
*
|
|
1906
|
+
* Create session
|
|
1905
1907
|
*
|
|
1906
|
-
*
|
|
1908
|
+
* Create a new Kilo session for interacting with AI assistants and managing conversations.
|
|
1907
1909
|
*/
|
|
1908
|
-
|
|
1910
|
+
create(parameters, options) {
|
|
1909
1911
|
const params = buildClientParams([parameters], [
|
|
1910
1912
|
{
|
|
1911
1913
|
args: [
|
|
1912
|
-
{ in: "path", key: "requestID" },
|
|
1913
1914
|
{ in: "query", key: "directory" },
|
|
1914
1915
|
{ in: "query", key: "workspace" },
|
|
1915
|
-
{ in: "body", key: "
|
|
1916
|
+
{ in: "body", key: "parentID" },
|
|
1917
|
+
{ in: "body", key: "title" },
|
|
1918
|
+
{ in: "body", key: "agent" },
|
|
1919
|
+
{ in: "body", key: "model" },
|
|
1920
|
+
{ in: "body", key: "permission" },
|
|
1921
|
+
{ in: "body", key: "platform" },
|
|
1922
|
+
{ in: "body", key: "workspaceID" },
|
|
1916
1923
|
],
|
|
1917
1924
|
},
|
|
1918
1925
|
]);
|
|
1919
1926
|
return (options?.client ?? this.client).post({
|
|
1920
|
-
url: "/
|
|
1927
|
+
url: "/session",
|
|
1921
1928
|
...options,
|
|
1922
1929
|
...params,
|
|
1923
1930
|
headers: {
|
|
@@ -1928,75 +1935,87 @@ export class Question extends HeyApiClient {
|
|
|
1928
1935
|
});
|
|
1929
1936
|
}
|
|
1930
1937
|
/**
|
|
1931
|
-
*
|
|
1938
|
+
* Get session status
|
|
1932
1939
|
*
|
|
1933
|
-
*
|
|
1940
|
+
* Retrieve the current status of all sessions, including active, idle, and completed states.
|
|
1934
1941
|
*/
|
|
1935
|
-
|
|
1942
|
+
status(parameters, options) {
|
|
1936
1943
|
const params = buildClientParams([parameters], [
|
|
1937
1944
|
{
|
|
1938
1945
|
args: [
|
|
1939
|
-
{ in: "path", key: "requestID" },
|
|
1940
1946
|
{ in: "query", key: "directory" },
|
|
1941
1947
|
{ in: "query", key: "workspace" },
|
|
1942
1948
|
],
|
|
1943
1949
|
},
|
|
1944
1950
|
]);
|
|
1945
|
-
return (options?.client ?? this.client).
|
|
1946
|
-
url: "/
|
|
1951
|
+
return (options?.client ?? this.client).get({
|
|
1952
|
+
url: "/session/status",
|
|
1947
1953
|
...options,
|
|
1948
1954
|
...params,
|
|
1949
1955
|
});
|
|
1950
1956
|
}
|
|
1951
|
-
}
|
|
1952
|
-
export class Oauth extends HeyApiClient {
|
|
1953
1957
|
/**
|
|
1954
|
-
*
|
|
1958
|
+
* Delete session
|
|
1955
1959
|
*
|
|
1956
|
-
*
|
|
1960
|
+
* Delete a session and permanently remove all associated data, including messages and history.
|
|
1957
1961
|
*/
|
|
1958
|
-
|
|
1962
|
+
delete(parameters, options) {
|
|
1959
1963
|
const params = buildClientParams([parameters], [
|
|
1960
1964
|
{
|
|
1961
1965
|
args: [
|
|
1962
|
-
{ in: "path", key: "
|
|
1966
|
+
{ in: "path", key: "sessionID" },
|
|
1963
1967
|
{ in: "query", key: "directory" },
|
|
1964
1968
|
{ in: "query", key: "workspace" },
|
|
1965
|
-
{ in: "body", key: "method" },
|
|
1966
|
-
{ in: "body", key: "inputs" },
|
|
1967
1969
|
],
|
|
1968
1970
|
},
|
|
1969
1971
|
]);
|
|
1970
|
-
return (options?.client ?? this.client).
|
|
1971
|
-
url: "/
|
|
1972
|
+
return (options?.client ?? this.client).delete({
|
|
1973
|
+
url: "/session/{sessionID}",
|
|
1972
1974
|
...options,
|
|
1973
1975
|
...params,
|
|
1974
|
-
headers: {
|
|
1975
|
-
"Content-Type": "application/json",
|
|
1976
|
-
...options?.headers,
|
|
1977
|
-
...params.headers,
|
|
1978
|
-
},
|
|
1979
1976
|
});
|
|
1980
1977
|
}
|
|
1981
1978
|
/**
|
|
1982
|
-
*
|
|
1979
|
+
* Get session
|
|
1983
1980
|
*
|
|
1984
|
-
*
|
|
1981
|
+
* Retrieve detailed information about a specific Kilo session.
|
|
1985
1982
|
*/
|
|
1986
|
-
|
|
1983
|
+
get(parameters, options) {
|
|
1987
1984
|
const params = buildClientParams([parameters], [
|
|
1988
1985
|
{
|
|
1989
1986
|
args: [
|
|
1990
|
-
{ in: "path", key: "
|
|
1987
|
+
{ in: "path", key: "sessionID" },
|
|
1991
1988
|
{ in: "query", key: "directory" },
|
|
1992
1989
|
{ in: "query", key: "workspace" },
|
|
1993
|
-
{ in: "body", key: "method" },
|
|
1994
|
-
{ in: "body", key: "code" },
|
|
1995
1990
|
],
|
|
1996
1991
|
},
|
|
1997
1992
|
]);
|
|
1998
|
-
return (options?.client ?? this.client).
|
|
1999
|
-
url: "/
|
|
1993
|
+
return (options?.client ?? this.client).get({
|
|
1994
|
+
url: "/session/{sessionID}",
|
|
1995
|
+
...options,
|
|
1996
|
+
...params,
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* Update session
|
|
2001
|
+
*
|
|
2002
|
+
* Update properties of an existing session, such as title or other metadata.
|
|
2003
|
+
*/
|
|
2004
|
+
update(parameters, options) {
|
|
2005
|
+
const params = buildClientParams([parameters], [
|
|
2006
|
+
{
|
|
2007
|
+
args: [
|
|
2008
|
+
{ in: "path", key: "sessionID" },
|
|
2009
|
+
{ in: "query", key: "directory" },
|
|
2010
|
+
{ in: "query", key: "workspace" },
|
|
2011
|
+
{ in: "body", key: "title" },
|
|
2012
|
+
{ in: "body", key: "permission" },
|
|
2013
|
+
{ in: "body", key: "time" },
|
|
2014
|
+
],
|
|
2015
|
+
},
|
|
2016
|
+
]);
|
|
2017
|
+
return (options?.client ?? this.client).patch({
|
|
2018
|
+
url: "/session/{sessionID}",
|
|
2000
2019
|
...options,
|
|
2001
2020
|
...params,
|
|
2002
2021
|
headers: {
|
|
@@ -2006,128 +2025,120 @@ export class Oauth extends HeyApiClient {
|
|
|
2006
2025
|
},
|
|
2007
2026
|
});
|
|
2008
2027
|
}
|
|
2009
|
-
}
|
|
2010
|
-
export class Provider extends HeyApiClient {
|
|
2011
2028
|
/**
|
|
2012
|
-
*
|
|
2029
|
+
* Get session children
|
|
2013
2030
|
*
|
|
2014
|
-
*
|
|
2031
|
+
* Retrieve all child sessions that were forked from the specified parent session.
|
|
2015
2032
|
*/
|
|
2016
|
-
|
|
2033
|
+
children(parameters, options) {
|
|
2017
2034
|
const params = buildClientParams([parameters], [
|
|
2018
2035
|
{
|
|
2019
2036
|
args: [
|
|
2037
|
+
{ in: "path", key: "sessionID" },
|
|
2020
2038
|
{ in: "query", key: "directory" },
|
|
2021
2039
|
{ in: "query", key: "workspace" },
|
|
2022
2040
|
],
|
|
2023
2041
|
},
|
|
2024
2042
|
]);
|
|
2025
2043
|
return (options?.client ?? this.client).get({
|
|
2026
|
-
url: "/
|
|
2044
|
+
url: "/session/{sessionID}/children",
|
|
2027
2045
|
...options,
|
|
2028
2046
|
...params,
|
|
2029
2047
|
});
|
|
2030
2048
|
}
|
|
2031
2049
|
/**
|
|
2032
|
-
* Get
|
|
2050
|
+
* Get session todos
|
|
2033
2051
|
*
|
|
2034
|
-
* Retrieve
|
|
2052
|
+
* Retrieve the todo list associated with a specific session, showing tasks and action items.
|
|
2035
2053
|
*/
|
|
2036
|
-
|
|
2054
|
+
todo(parameters, options) {
|
|
2037
2055
|
const params = buildClientParams([parameters], [
|
|
2038
2056
|
{
|
|
2039
2057
|
args: [
|
|
2058
|
+
{ in: "path", key: "sessionID" },
|
|
2040
2059
|
{ in: "query", key: "directory" },
|
|
2041
2060
|
{ in: "query", key: "workspace" },
|
|
2042
2061
|
],
|
|
2043
2062
|
},
|
|
2044
2063
|
]);
|
|
2045
2064
|
return (options?.client ?? this.client).get({
|
|
2046
|
-
url: "/
|
|
2065
|
+
url: "/session/{sessionID}/todo",
|
|
2047
2066
|
...options,
|
|
2048
2067
|
...params,
|
|
2049
2068
|
});
|
|
2050
2069
|
}
|
|
2051
|
-
_oauth;
|
|
2052
|
-
get oauth() {
|
|
2053
|
-
return (this._oauth ??= new Oauth({ client: this.client }));
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
export class History extends HeyApiClient {
|
|
2057
2070
|
/**
|
|
2058
|
-
*
|
|
2071
|
+
* Get message diff
|
|
2059
2072
|
*
|
|
2060
|
-
*
|
|
2073
|
+
* Get the file changes (diff) that resulted from a specific user message in the session.
|
|
2061
2074
|
*/
|
|
2062
|
-
|
|
2075
|
+
diff(parameters, options) {
|
|
2063
2076
|
const params = buildClientParams([parameters], [
|
|
2064
2077
|
{
|
|
2065
2078
|
args: [
|
|
2079
|
+
{ in: "path", key: "sessionID" },
|
|
2066
2080
|
{ in: "query", key: "directory" },
|
|
2067
2081
|
{ in: "query", key: "workspace" },
|
|
2068
|
-
{
|
|
2082
|
+
{ in: "query", key: "messageID" },
|
|
2069
2083
|
],
|
|
2070
2084
|
},
|
|
2071
2085
|
]);
|
|
2072
|
-
return (options?.client ?? this.client).
|
|
2073
|
-
url: "/
|
|
2086
|
+
return (options?.client ?? this.client).get({
|
|
2087
|
+
url: "/session/{sessionID}/diff",
|
|
2074
2088
|
...options,
|
|
2075
2089
|
...params,
|
|
2076
|
-
headers: {
|
|
2077
|
-
"Content-Type": "application/json",
|
|
2078
|
-
...options?.headers,
|
|
2079
|
-
...params.headers,
|
|
2080
|
-
},
|
|
2081
2090
|
});
|
|
2082
2091
|
}
|
|
2083
|
-
}
|
|
2084
|
-
export class Sync extends HeyApiClient {
|
|
2085
2092
|
/**
|
|
2086
|
-
*
|
|
2093
|
+
* Get session messages
|
|
2087
2094
|
*
|
|
2088
|
-
*
|
|
2095
|
+
* Retrieve all messages in a session, including user prompts and AI responses.
|
|
2089
2096
|
*/
|
|
2090
|
-
|
|
2097
|
+
messages(parameters, options) {
|
|
2091
2098
|
const params = buildClientParams([parameters], [
|
|
2092
2099
|
{
|
|
2093
2100
|
args: [
|
|
2101
|
+
{ in: "path", key: "sessionID" },
|
|
2094
2102
|
{ in: "query", key: "directory" },
|
|
2095
2103
|
{ in: "query", key: "workspace" },
|
|
2104
|
+
{ in: "query", key: "limit" },
|
|
2105
|
+
{ in: "query", key: "before" },
|
|
2096
2106
|
],
|
|
2097
2107
|
},
|
|
2098
2108
|
]);
|
|
2099
|
-
return (options?.client ?? this.client).
|
|
2100
|
-
url: "/
|
|
2109
|
+
return (options?.client ?? this.client).get({
|
|
2110
|
+
url: "/session/{sessionID}/message",
|
|
2101
2111
|
...options,
|
|
2102
2112
|
...params,
|
|
2103
2113
|
});
|
|
2104
2114
|
}
|
|
2105
2115
|
/**
|
|
2106
|
-
*
|
|
2116
|
+
* Send message
|
|
2107
2117
|
*
|
|
2108
|
-
*
|
|
2118
|
+
* Create and send a new message to a session, streaming the AI response.
|
|
2109
2119
|
*/
|
|
2110
|
-
|
|
2120
|
+
prompt(parameters, options) {
|
|
2111
2121
|
const params = buildClientParams([parameters], [
|
|
2112
2122
|
{
|
|
2113
2123
|
args: [
|
|
2114
|
-
{
|
|
2115
|
-
|
|
2116
|
-
key: "query_directory",
|
|
2117
|
-
map: "directory",
|
|
2118
|
-
},
|
|
2124
|
+
{ in: "path", key: "sessionID" },
|
|
2125
|
+
{ in: "query", key: "directory" },
|
|
2119
2126
|
{ in: "query", key: "workspace" },
|
|
2120
|
-
{
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
},
|
|
2125
|
-
{ in: "body", key: "
|
|
2127
|
+
{ in: "body", key: "messageID" },
|
|
2128
|
+
{ in: "body", key: "model" },
|
|
2129
|
+
{ in: "body", key: "agent" },
|
|
2130
|
+
{ in: "body", key: "noReply" },
|
|
2131
|
+
{ in: "body", key: "tools" },
|
|
2132
|
+
{ in: "body", key: "format" },
|
|
2133
|
+
{ in: "body", key: "system" },
|
|
2134
|
+
{ in: "body", key: "variant" },
|
|
2135
|
+
{ in: "body", key: "editorContext" },
|
|
2136
|
+
{ in: "body", key: "parts" },
|
|
2126
2137
|
],
|
|
2127
2138
|
},
|
|
2128
2139
|
]);
|
|
2129
2140
|
return (options?.client ?? this.client).post({
|
|
2130
|
-
url: "/
|
|
2141
|
+
url: "/session/{sessionID}/message",
|
|
2131
2142
|
...options,
|
|
2132
2143
|
...params,
|
|
2133
2144
|
headers: {
|
|
@@ -2137,226 +2148,225 @@ export class Sync extends HeyApiClient {
|
|
|
2137
2148
|
},
|
|
2138
2149
|
});
|
|
2139
2150
|
}
|
|
2140
|
-
_history;
|
|
2141
|
-
get history() {
|
|
2142
|
-
return (this._history ??= new History({ client: this.client }));
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
export class Find extends HeyApiClient {
|
|
2146
2151
|
/**
|
|
2147
|
-
*
|
|
2152
|
+
* Delete message
|
|
2148
2153
|
*
|
|
2149
|
-
*
|
|
2154
|
+
* Permanently delete a specific message and all of its parts from a session without reverting file changes.
|
|
2150
2155
|
*/
|
|
2151
|
-
|
|
2156
|
+
deleteMessage(parameters, options) {
|
|
2152
2157
|
const params = buildClientParams([parameters], [
|
|
2153
2158
|
{
|
|
2154
2159
|
args: [
|
|
2160
|
+
{ in: "path", key: "sessionID" },
|
|
2161
|
+
{ in: "path", key: "messageID" },
|
|
2155
2162
|
{ in: "query", key: "directory" },
|
|
2156
2163
|
{ in: "query", key: "workspace" },
|
|
2157
|
-
{ in: "query", key: "pattern" },
|
|
2158
2164
|
],
|
|
2159
2165
|
},
|
|
2160
2166
|
]);
|
|
2161
|
-
return (options?.client ?? this.client).
|
|
2162
|
-
url: "/
|
|
2167
|
+
return (options?.client ?? this.client).delete({
|
|
2168
|
+
url: "/session/{sessionID}/message/{messageID}",
|
|
2163
2169
|
...options,
|
|
2164
2170
|
...params,
|
|
2165
2171
|
});
|
|
2166
2172
|
}
|
|
2167
2173
|
/**
|
|
2168
|
-
*
|
|
2174
|
+
* Get message
|
|
2169
2175
|
*
|
|
2170
|
-
*
|
|
2176
|
+
* Retrieve a specific message from a session by its message ID.
|
|
2171
2177
|
*/
|
|
2172
|
-
|
|
2178
|
+
message(parameters, options) {
|
|
2173
2179
|
const params = buildClientParams([parameters], [
|
|
2174
2180
|
{
|
|
2175
2181
|
args: [
|
|
2182
|
+
{ in: "path", key: "sessionID" },
|
|
2183
|
+
{ in: "path", key: "messageID" },
|
|
2176
2184
|
{ in: "query", key: "directory" },
|
|
2177
2185
|
{ in: "query", key: "workspace" },
|
|
2178
|
-
{ in: "query", key: "query" },
|
|
2179
|
-
{ in: "query", key: "dirs" },
|
|
2180
|
-
{ in: "query", key: "type" },
|
|
2181
|
-
{ in: "query", key: "limit" },
|
|
2182
2186
|
],
|
|
2183
2187
|
},
|
|
2184
2188
|
]);
|
|
2185
2189
|
return (options?.client ?? this.client).get({
|
|
2186
|
-
url: "/
|
|
2190
|
+
url: "/session/{sessionID}/message/{messageID}",
|
|
2187
2191
|
...options,
|
|
2188
2192
|
...params,
|
|
2189
2193
|
});
|
|
2190
2194
|
}
|
|
2191
2195
|
/**
|
|
2192
|
-
*
|
|
2196
|
+
* Fork session
|
|
2193
2197
|
*
|
|
2194
|
-
*
|
|
2198
|
+
* Create a new session by forking an existing session at a specific message point.
|
|
2195
2199
|
*/
|
|
2196
|
-
|
|
2200
|
+
fork(parameters, options) {
|
|
2197
2201
|
const params = buildClientParams([parameters], [
|
|
2198
2202
|
{
|
|
2199
2203
|
args: [
|
|
2204
|
+
{ in: "path", key: "sessionID" },
|
|
2200
2205
|
{ in: "query", key: "directory" },
|
|
2201
2206
|
{ in: "query", key: "workspace" },
|
|
2202
|
-
{ in: "
|
|
2207
|
+
{ in: "body", key: "messageID" },
|
|
2203
2208
|
],
|
|
2204
2209
|
},
|
|
2205
2210
|
]);
|
|
2206
|
-
return (options?.client ?? this.client).
|
|
2207
|
-
url: "/
|
|
2211
|
+
return (options?.client ?? this.client).post({
|
|
2212
|
+
url: "/session/{sessionID}/fork",
|
|
2208
2213
|
...options,
|
|
2209
2214
|
...params,
|
|
2215
|
+
headers: {
|
|
2216
|
+
"Content-Type": "application/json",
|
|
2217
|
+
...options?.headers,
|
|
2218
|
+
...params.headers,
|
|
2219
|
+
},
|
|
2210
2220
|
});
|
|
2211
2221
|
}
|
|
2212
|
-
}
|
|
2213
|
-
export class File extends HeyApiClient {
|
|
2214
2222
|
/**
|
|
2215
|
-
*
|
|
2223
|
+
* Abort session
|
|
2216
2224
|
*
|
|
2217
|
-
*
|
|
2225
|
+
* Abort an active session and stop any ongoing AI processing or command execution.
|
|
2218
2226
|
*/
|
|
2219
|
-
|
|
2227
|
+
abort(parameters, options) {
|
|
2220
2228
|
const params = buildClientParams([parameters], [
|
|
2221
2229
|
{
|
|
2222
2230
|
args: [
|
|
2231
|
+
{ in: "path", key: "sessionID" },
|
|
2223
2232
|
{ in: "query", key: "directory" },
|
|
2224
2233
|
{ in: "query", key: "workspace" },
|
|
2225
|
-
{ in: "query", key: "path" },
|
|
2226
2234
|
],
|
|
2227
2235
|
},
|
|
2228
2236
|
]);
|
|
2229
|
-
return (options?.client ?? this.client).
|
|
2230
|
-
url: "/
|
|
2237
|
+
return (options?.client ?? this.client).post({
|
|
2238
|
+
url: "/session/{sessionID}/abort",
|
|
2231
2239
|
...options,
|
|
2232
2240
|
...params,
|
|
2233
2241
|
});
|
|
2234
2242
|
}
|
|
2235
2243
|
/**
|
|
2236
|
-
*
|
|
2244
|
+
* Initialize session
|
|
2237
2245
|
*
|
|
2238
|
-
*
|
|
2246
|
+
* Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
|
|
2239
2247
|
*/
|
|
2240
|
-
|
|
2248
|
+
init(parameters, options) {
|
|
2241
2249
|
const params = buildClientParams([parameters], [
|
|
2242
2250
|
{
|
|
2243
2251
|
args: [
|
|
2252
|
+
{ in: "path", key: "sessionID" },
|
|
2244
2253
|
{ in: "query", key: "directory" },
|
|
2245
2254
|
{ in: "query", key: "workspace" },
|
|
2246
|
-
{ in: "
|
|
2255
|
+
{ in: "body", key: "modelID" },
|
|
2256
|
+
{ in: "body", key: "providerID" },
|
|
2257
|
+
{ in: "body", key: "messageID" },
|
|
2247
2258
|
],
|
|
2248
2259
|
},
|
|
2249
2260
|
]);
|
|
2250
|
-
return (options?.client ?? this.client).
|
|
2251
|
-
url: "/
|
|
2261
|
+
return (options?.client ?? this.client).post({
|
|
2262
|
+
url: "/session/{sessionID}/init",
|
|
2252
2263
|
...options,
|
|
2253
2264
|
...params,
|
|
2265
|
+
headers: {
|
|
2266
|
+
"Content-Type": "application/json",
|
|
2267
|
+
...options?.headers,
|
|
2268
|
+
...params.headers,
|
|
2269
|
+
},
|
|
2254
2270
|
});
|
|
2255
2271
|
}
|
|
2256
2272
|
/**
|
|
2257
|
-
*
|
|
2273
|
+
* Unshare session
|
|
2258
2274
|
*
|
|
2259
|
-
*
|
|
2275
|
+
* Remove the shareable link for a session, making it private again.
|
|
2260
2276
|
*/
|
|
2261
|
-
|
|
2277
|
+
unshare(parameters, options) {
|
|
2262
2278
|
const params = buildClientParams([parameters], [
|
|
2263
2279
|
{
|
|
2264
2280
|
args: [
|
|
2281
|
+
{ in: "path", key: "sessionID" },
|
|
2265
2282
|
{ in: "query", key: "directory" },
|
|
2266
2283
|
{ in: "query", key: "workspace" },
|
|
2267
2284
|
],
|
|
2268
2285
|
},
|
|
2269
2286
|
]);
|
|
2270
|
-
return (options?.client ?? this.client).
|
|
2271
|
-
url: "/
|
|
2287
|
+
return (options?.client ?? this.client).delete({
|
|
2288
|
+
url: "/session/{sessionID}/share",
|
|
2272
2289
|
...options,
|
|
2273
2290
|
...params,
|
|
2274
2291
|
});
|
|
2275
2292
|
}
|
|
2276
|
-
}
|
|
2277
|
-
export class Event extends HeyApiClient {
|
|
2278
2293
|
/**
|
|
2279
|
-
*
|
|
2294
|
+
* Share session
|
|
2280
2295
|
*
|
|
2281
|
-
*
|
|
2296
|
+
* Create a shareable link for a session, allowing others to view the conversation.
|
|
2282
2297
|
*/
|
|
2283
|
-
|
|
2298
|
+
share(parameters, options) {
|
|
2284
2299
|
const params = buildClientParams([parameters], [
|
|
2285
2300
|
{
|
|
2286
2301
|
args: [
|
|
2302
|
+
{ in: "path", key: "sessionID" },
|
|
2287
2303
|
{ in: "query", key: "directory" },
|
|
2288
2304
|
{ in: "query", key: "workspace" },
|
|
2289
2305
|
],
|
|
2290
2306
|
},
|
|
2291
2307
|
]);
|
|
2292
|
-
return (options?.client ?? this.client).
|
|
2293
|
-
url: "/
|
|
2308
|
+
return (options?.client ?? this.client).post({
|
|
2309
|
+
url: "/session/{sessionID}/share",
|
|
2294
2310
|
...options,
|
|
2295
2311
|
...params,
|
|
2296
2312
|
});
|
|
2297
2313
|
}
|
|
2298
|
-
}
|
|
2299
|
-
export class Auth2 extends HeyApiClient {
|
|
2300
2314
|
/**
|
|
2301
|
-
*
|
|
2315
|
+
* Summarize session
|
|
2302
2316
|
*
|
|
2303
|
-
*
|
|
2317
|
+
* Generate a concise summary of the session using AI compaction to preserve key information.
|
|
2304
2318
|
*/
|
|
2305
|
-
|
|
2319
|
+
summarize(parameters, options) {
|
|
2306
2320
|
const params = buildClientParams([parameters], [
|
|
2307
2321
|
{
|
|
2308
2322
|
args: [
|
|
2309
|
-
{ in: "path", key: "
|
|
2323
|
+
{ in: "path", key: "sessionID" },
|
|
2310
2324
|
{ in: "query", key: "directory" },
|
|
2311
2325
|
{ in: "query", key: "workspace" },
|
|
2326
|
+
{ in: "body", key: "providerID" },
|
|
2327
|
+
{ in: "body", key: "modelID" },
|
|
2328
|
+
{ in: "body", key: "auto" },
|
|
2312
2329
|
],
|
|
2313
2330
|
},
|
|
2314
2331
|
]);
|
|
2315
|
-
return (options?.client ?? this.client).
|
|
2316
|
-
url: "/
|
|
2332
|
+
return (options?.client ?? this.client).post({
|
|
2333
|
+
url: "/session/{sessionID}/summarize",
|
|
2317
2334
|
...options,
|
|
2318
2335
|
...params,
|
|
2336
|
+
headers: {
|
|
2337
|
+
"Content-Type": "application/json",
|
|
2338
|
+
...options?.headers,
|
|
2339
|
+
...params.headers,
|
|
2340
|
+
},
|
|
2319
2341
|
});
|
|
2320
2342
|
}
|
|
2321
2343
|
/**
|
|
2322
|
-
*
|
|
2344
|
+
* Send async message
|
|
2323
2345
|
*
|
|
2324
|
-
*
|
|
2346
|
+
* Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
|
|
2325
2347
|
*/
|
|
2326
|
-
|
|
2348
|
+
promptAsync(parameters, options) {
|
|
2327
2349
|
const params = buildClientParams([parameters], [
|
|
2328
2350
|
{
|
|
2329
2351
|
args: [
|
|
2330
|
-
{ in: "path", key: "
|
|
2352
|
+
{ in: "path", key: "sessionID" },
|
|
2331
2353
|
{ in: "query", key: "directory" },
|
|
2332
2354
|
{ in: "query", key: "workspace" },
|
|
2355
|
+
{ in: "body", key: "messageID" },
|
|
2356
|
+
{ in: "body", key: "model" },
|
|
2357
|
+
{ in: "body", key: "agent" },
|
|
2358
|
+
{ in: "body", key: "noReply" },
|
|
2359
|
+
{ in: "body", key: "tools" },
|
|
2360
|
+
{ in: "body", key: "format" },
|
|
2361
|
+
{ in: "body", key: "system" },
|
|
2362
|
+
{ in: "body", key: "variant" },
|
|
2363
|
+
{ in: "body", key: "editorContext" },
|
|
2364
|
+
{ in: "body", key: "parts" },
|
|
2333
2365
|
],
|
|
2334
2366
|
},
|
|
2335
2367
|
]);
|
|
2336
2368
|
return (options?.client ?? this.client).post({
|
|
2337
|
-
url: "/
|
|
2338
|
-
...options,
|
|
2339
|
-
...params,
|
|
2340
|
-
});
|
|
2341
|
-
}
|
|
2342
|
-
/**
|
|
2343
|
-
* Complete MCP OAuth
|
|
2344
|
-
*
|
|
2345
|
-
* Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
|
|
2346
|
-
*/
|
|
2347
|
-
callback(parameters, options) {
|
|
2348
|
-
const params = buildClientParams([parameters], [
|
|
2349
|
-
{
|
|
2350
|
-
args: [
|
|
2351
|
-
{ in: "path", key: "name" },
|
|
2352
|
-
{ in: "query", key: "directory" },
|
|
2353
|
-
{ in: "query", key: "workspace" },
|
|
2354
|
-
{ in: "body", key: "code" },
|
|
2355
|
-
],
|
|
2356
|
-
},
|
|
2357
|
-
]);
|
|
2358
|
-
return (options?.client ?? this.client).post({
|
|
2359
|
-
url: "/mcp/{name}/auth/callback",
|
|
2369
|
+
url: "/session/{sessionID}/prompt_async",
|
|
2360
2370
|
...options,
|
|
2361
2371
|
...params,
|
|
2362
2372
|
headers: {
|
|
@@ -2367,66 +2377,87 @@ export class Auth2 extends HeyApiClient {
|
|
|
2367
2377
|
});
|
|
2368
2378
|
}
|
|
2369
2379
|
/**
|
|
2370
|
-
*
|
|
2380
|
+
* Send command
|
|
2371
2381
|
*
|
|
2372
|
-
*
|
|
2382
|
+
* Send a new command to a session for execution by the AI assistant.
|
|
2373
2383
|
*/
|
|
2374
|
-
|
|
2384
|
+
command(parameters, options) {
|
|
2375
2385
|
const params = buildClientParams([parameters], [
|
|
2376
2386
|
{
|
|
2377
2387
|
args: [
|
|
2378
|
-
{ in: "path", key: "
|
|
2388
|
+
{ in: "path", key: "sessionID" },
|
|
2379
2389
|
{ in: "query", key: "directory" },
|
|
2380
2390
|
{ in: "query", key: "workspace" },
|
|
2391
|
+
{ in: "body", key: "messageID" },
|
|
2392
|
+
{ in: "body", key: "agent" },
|
|
2393
|
+
{ in: "body", key: "model" },
|
|
2394
|
+
{ in: "body", key: "arguments" },
|
|
2395
|
+
{ in: "body", key: "command" },
|
|
2396
|
+
{ in: "body", key: "variant" },
|
|
2397
|
+
{ in: "body", key: "parts" },
|
|
2381
2398
|
],
|
|
2382
2399
|
},
|
|
2383
2400
|
]);
|
|
2384
2401
|
return (options?.client ?? this.client).post({
|
|
2385
|
-
url: "/
|
|
2402
|
+
url: "/session/{sessionID}/command",
|
|
2386
2403
|
...options,
|
|
2387
2404
|
...params,
|
|
2405
|
+
headers: {
|
|
2406
|
+
"Content-Type": "application/json",
|
|
2407
|
+
...options?.headers,
|
|
2408
|
+
...params.headers,
|
|
2409
|
+
},
|
|
2388
2410
|
});
|
|
2389
2411
|
}
|
|
2390
|
-
}
|
|
2391
|
-
export class Mcp extends HeyApiClient {
|
|
2392
2412
|
/**
|
|
2393
|
-
*
|
|
2413
|
+
* Run shell command
|
|
2394
2414
|
*
|
|
2395
|
-
*
|
|
2415
|
+
* Execute a shell command within the session context and return the AI's response.
|
|
2396
2416
|
*/
|
|
2397
|
-
|
|
2417
|
+
shell(parameters, options) {
|
|
2398
2418
|
const params = buildClientParams([parameters], [
|
|
2399
2419
|
{
|
|
2400
2420
|
args: [
|
|
2421
|
+
{ in: "path", key: "sessionID" },
|
|
2401
2422
|
{ in: "query", key: "directory" },
|
|
2402
2423
|
{ in: "query", key: "workspace" },
|
|
2424
|
+
{ in: "body", key: "messageID" },
|
|
2425
|
+
{ in: "body", key: "agent" },
|
|
2426
|
+
{ in: "body", key: "model" },
|
|
2427
|
+
{ in: "body", key: "command" },
|
|
2403
2428
|
],
|
|
2404
2429
|
},
|
|
2405
2430
|
]);
|
|
2406
|
-
return (options?.client ?? this.client).
|
|
2407
|
-
url: "/
|
|
2431
|
+
return (options?.client ?? this.client).post({
|
|
2432
|
+
url: "/session/{sessionID}/shell",
|
|
2408
2433
|
...options,
|
|
2409
2434
|
...params,
|
|
2435
|
+
headers: {
|
|
2436
|
+
"Content-Type": "application/json",
|
|
2437
|
+
...options?.headers,
|
|
2438
|
+
...params.headers,
|
|
2439
|
+
},
|
|
2410
2440
|
});
|
|
2411
2441
|
}
|
|
2412
2442
|
/**
|
|
2413
|
-
*
|
|
2443
|
+
* Revert message
|
|
2414
2444
|
*
|
|
2415
|
-
*
|
|
2445
|
+
* Revert a specific message in a session, undoing its effects and restoring the previous state.
|
|
2416
2446
|
*/
|
|
2417
|
-
|
|
2447
|
+
revert(parameters, options) {
|
|
2418
2448
|
const params = buildClientParams([parameters], [
|
|
2419
2449
|
{
|
|
2420
2450
|
args: [
|
|
2451
|
+
{ in: "path", key: "sessionID" },
|
|
2421
2452
|
{ in: "query", key: "directory" },
|
|
2422
2453
|
{ in: "query", key: "workspace" },
|
|
2423
|
-
{ in: "body", key: "
|
|
2424
|
-
{ in: "body", key: "
|
|
2454
|
+
{ in: "body", key: "messageID" },
|
|
2455
|
+
{ in: "body", key: "partID" },
|
|
2425
2456
|
],
|
|
2426
2457
|
},
|
|
2427
2458
|
]);
|
|
2428
2459
|
return (options?.client ?? this.client).post({
|
|
2429
|
-
url: "/
|
|
2460
|
+
url: "/session/{sessionID}/revert",
|
|
2430
2461
|
...options,
|
|
2431
2462
|
...params,
|
|
2432
2463
|
headers: {
|
|
@@ -2437,86 +2468,94 @@ export class Mcp extends HeyApiClient {
|
|
|
2437
2468
|
});
|
|
2438
2469
|
}
|
|
2439
2470
|
/**
|
|
2440
|
-
*
|
|
2471
|
+
* Restore reverted messages
|
|
2472
|
+
*
|
|
2473
|
+
* Restore all previously reverted messages in a session.
|
|
2441
2474
|
*/
|
|
2442
|
-
|
|
2475
|
+
unrevert(parameters, options) {
|
|
2443
2476
|
const params = buildClientParams([parameters], [
|
|
2444
2477
|
{
|
|
2445
2478
|
args: [
|
|
2446
|
-
{ in: "path", key: "
|
|
2479
|
+
{ in: "path", key: "sessionID" },
|
|
2447
2480
|
{ in: "query", key: "directory" },
|
|
2448
2481
|
{ in: "query", key: "workspace" },
|
|
2449
2482
|
],
|
|
2450
2483
|
},
|
|
2451
2484
|
]);
|
|
2452
2485
|
return (options?.client ?? this.client).post({
|
|
2453
|
-
url: "/
|
|
2486
|
+
url: "/session/{sessionID}/unrevert",
|
|
2454
2487
|
...options,
|
|
2455
2488
|
...params,
|
|
2456
2489
|
});
|
|
2457
2490
|
}
|
|
2458
2491
|
/**
|
|
2459
|
-
*
|
|
2492
|
+
* Set viewed sessions
|
|
2493
|
+
*
|
|
2494
|
+
* Notify the server which sessions the user is currently viewing, or clear all.
|
|
2460
2495
|
*/
|
|
2461
|
-
|
|
2496
|
+
viewed(parameters, options) {
|
|
2462
2497
|
const params = buildClientParams([parameters], [
|
|
2463
2498
|
{
|
|
2464
2499
|
args: [
|
|
2465
|
-
{ in: "path", key: "name" },
|
|
2466
2500
|
{ in: "query", key: "directory" },
|
|
2467
2501
|
{ in: "query", key: "workspace" },
|
|
2502
|
+
{ in: "body", key: "focused" },
|
|
2503
|
+
{ in: "body", key: "open" },
|
|
2468
2504
|
],
|
|
2469
2505
|
},
|
|
2470
2506
|
]);
|
|
2471
2507
|
return (options?.client ?? this.client).post({
|
|
2472
|
-
url: "/
|
|
2508
|
+
url: "/session/viewed",
|
|
2473
2509
|
...options,
|
|
2474
2510
|
...params,
|
|
2511
|
+
headers: {
|
|
2512
|
+
"Content-Type": "application/json",
|
|
2513
|
+
...options?.headers,
|
|
2514
|
+
...params.headers,
|
|
2515
|
+
},
|
|
2475
2516
|
});
|
|
2476
2517
|
}
|
|
2477
|
-
_auth;
|
|
2478
|
-
get auth() {
|
|
2479
|
-
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2480
|
-
}
|
|
2481
2518
|
}
|
|
2482
|
-
export class
|
|
2519
|
+
export class Part extends HeyApiClient {
|
|
2483
2520
|
/**
|
|
2484
|
-
*
|
|
2485
|
-
*
|
|
2486
|
-
* Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
|
|
2521
|
+
* Delete a part from a message.
|
|
2487
2522
|
*/
|
|
2488
|
-
|
|
2523
|
+
delete(parameters, options) {
|
|
2489
2524
|
const params = buildClientParams([parameters], [
|
|
2490
2525
|
{
|
|
2491
2526
|
args: [
|
|
2527
|
+
{ in: "path", key: "sessionID" },
|
|
2528
|
+
{ in: "path", key: "messageID" },
|
|
2529
|
+
{ in: "path", key: "partID" },
|
|
2492
2530
|
{ in: "query", key: "directory" },
|
|
2493
2531
|
{ in: "query", key: "workspace" },
|
|
2494
2532
|
],
|
|
2495
2533
|
},
|
|
2496
2534
|
]);
|
|
2497
|
-
return (options?.client ?? this.client).
|
|
2498
|
-
url: "/
|
|
2535
|
+
return (options?.client ?? this.client).delete({
|
|
2536
|
+
url: "/session/{sessionID}/message/{messageID}/part/{partID}",
|
|
2499
2537
|
...options,
|
|
2500
2538
|
...params,
|
|
2501
2539
|
});
|
|
2502
2540
|
}
|
|
2503
2541
|
/**
|
|
2504
|
-
*
|
|
2505
|
-
*
|
|
2506
|
-
* Submit a response to the TUI request queue to complete a pending request.
|
|
2542
|
+
* Update a part in a message.
|
|
2507
2543
|
*/
|
|
2508
|
-
|
|
2544
|
+
update(parameters, options) {
|
|
2509
2545
|
const params = buildClientParams([parameters], [
|
|
2510
2546
|
{
|
|
2511
2547
|
args: [
|
|
2548
|
+
{ in: "path", key: "sessionID" },
|
|
2549
|
+
{ in: "path", key: "messageID" },
|
|
2550
|
+
{ in: "path", key: "partID" },
|
|
2512
2551
|
{ in: "query", key: "directory" },
|
|
2513
2552
|
{ in: "query", key: "workspace" },
|
|
2514
|
-
{ key: "
|
|
2553
|
+
{ key: "part", map: "body" },
|
|
2515
2554
|
],
|
|
2516
2555
|
},
|
|
2517
2556
|
]);
|
|
2518
|
-
return (options?.client ?? this.client).
|
|
2519
|
-
url: "/
|
|
2557
|
+
return (options?.client ?? this.client).patch({
|
|
2558
|
+
url: "/session/{sessionID}/message/{messageID}/part/{partID}",
|
|
2520
2559
|
...options,
|
|
2521
2560
|
...params,
|
|
2522
2561
|
headers: {
|
|
@@ -2527,24 +2566,24 @@ export class Control extends HeyApiClient {
|
|
|
2527
2566
|
});
|
|
2528
2567
|
}
|
|
2529
2568
|
}
|
|
2530
|
-
export class
|
|
2569
|
+
export class History extends HeyApiClient {
|
|
2531
2570
|
/**
|
|
2532
|
-
*
|
|
2571
|
+
* List sync events
|
|
2533
2572
|
*
|
|
2534
|
-
*
|
|
2573
|
+
* List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.
|
|
2535
2574
|
*/
|
|
2536
|
-
|
|
2575
|
+
list(parameters, options) {
|
|
2537
2576
|
const params = buildClientParams([parameters], [
|
|
2538
2577
|
{
|
|
2539
2578
|
args: [
|
|
2540
2579
|
{ in: "query", key: "directory" },
|
|
2541
2580
|
{ in: "query", key: "workspace" },
|
|
2542
|
-
{
|
|
2581
|
+
{ key: "body", map: "body" },
|
|
2543
2582
|
],
|
|
2544
2583
|
},
|
|
2545
2584
|
]);
|
|
2546
2585
|
return (options?.client ?? this.client).post({
|
|
2547
|
-
url: "/
|
|
2586
|
+
url: "/sync/history",
|
|
2548
2587
|
...options,
|
|
2549
2588
|
...params,
|
|
2550
2589
|
headers: {
|
|
@@ -2554,12 +2593,14 @@ export class Tui extends HeyApiClient {
|
|
|
2554
2593
|
},
|
|
2555
2594
|
});
|
|
2556
2595
|
}
|
|
2596
|
+
}
|
|
2597
|
+
export class Sync extends HeyApiClient {
|
|
2557
2598
|
/**
|
|
2558
|
-
*
|
|
2599
|
+
* Start workspace sync
|
|
2559
2600
|
*
|
|
2560
|
-
*
|
|
2601
|
+
* Start sync loops for workspaces in the current project that have active sessions.
|
|
2561
2602
|
*/
|
|
2562
|
-
|
|
2603
|
+
start(parameters, options) {
|
|
2563
2604
|
const params = buildClientParams([parameters], [
|
|
2564
2605
|
{
|
|
2565
2606
|
args: [
|
|
@@ -2569,37 +2610,58 @@ export class Tui extends HeyApiClient {
|
|
|
2569
2610
|
},
|
|
2570
2611
|
]);
|
|
2571
2612
|
return (options?.client ?? this.client).post({
|
|
2572
|
-
url: "/
|
|
2613
|
+
url: "/sync/start",
|
|
2573
2614
|
...options,
|
|
2574
2615
|
...params,
|
|
2575
2616
|
});
|
|
2576
2617
|
}
|
|
2577
2618
|
/**
|
|
2578
|
-
*
|
|
2619
|
+
* Replay sync events
|
|
2579
2620
|
*
|
|
2580
|
-
*
|
|
2621
|
+
* Validate and replay a complete sync event history.
|
|
2581
2622
|
*/
|
|
2582
|
-
|
|
2623
|
+
replay(parameters, options) {
|
|
2583
2624
|
const params = buildClientParams([parameters], [
|
|
2584
2625
|
{
|
|
2585
2626
|
args: [
|
|
2586
|
-
{
|
|
2627
|
+
{
|
|
2628
|
+
in: "query",
|
|
2629
|
+
key: "query_directory",
|
|
2630
|
+
map: "directory",
|
|
2631
|
+
},
|
|
2587
2632
|
{ in: "query", key: "workspace" },
|
|
2633
|
+
{
|
|
2634
|
+
in: "body",
|
|
2635
|
+
key: "body_directory",
|
|
2636
|
+
map: "directory",
|
|
2637
|
+
},
|
|
2638
|
+
{ in: "body", key: "events" },
|
|
2588
2639
|
],
|
|
2589
2640
|
},
|
|
2590
2641
|
]);
|
|
2591
2642
|
return (options?.client ?? this.client).post({
|
|
2592
|
-
url: "/
|
|
2643
|
+
url: "/sync/replay",
|
|
2593
2644
|
...options,
|
|
2594
2645
|
...params,
|
|
2646
|
+
headers: {
|
|
2647
|
+
"Content-Type": "application/json",
|
|
2648
|
+
...options?.headers,
|
|
2649
|
+
...params.headers,
|
|
2650
|
+
},
|
|
2595
2651
|
});
|
|
2596
2652
|
}
|
|
2653
|
+
_history;
|
|
2654
|
+
get history() {
|
|
2655
|
+
return (this._history ??= new History({ client: this.client }));
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
export class Session3 extends HeyApiClient {
|
|
2597
2659
|
/**
|
|
2598
|
-
*
|
|
2660
|
+
* List v2 sessions
|
|
2599
2661
|
*
|
|
2600
|
-
*
|
|
2662
|
+
* Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
|
|
2601
2663
|
*/
|
|
2602
|
-
|
|
2664
|
+
list(parameters, options) {
|
|
2603
2665
|
const params = buildClientParams([parameters], [
|
|
2604
2666
|
{
|
|
2605
2667
|
args: [
|
|
@@ -2608,170 +2670,169 @@ export class Tui extends HeyApiClient {
|
|
|
2608
2670
|
],
|
|
2609
2671
|
},
|
|
2610
2672
|
]);
|
|
2611
|
-
return (options?.client ?? this.client).
|
|
2612
|
-
url: "/
|
|
2673
|
+
return (options?.client ?? this.client).get({
|
|
2674
|
+
url: "/api/session",
|
|
2613
2675
|
...options,
|
|
2614
2676
|
...params,
|
|
2615
2677
|
});
|
|
2616
2678
|
}
|
|
2617
2679
|
/**
|
|
2618
|
-
*
|
|
2680
|
+
* Send v2 message
|
|
2619
2681
|
*
|
|
2620
|
-
*
|
|
2682
|
+
* Create a v2 session message and queue it for the agent loop.
|
|
2621
2683
|
*/
|
|
2622
|
-
|
|
2684
|
+
prompt(parameters, options) {
|
|
2623
2685
|
const params = buildClientParams([parameters], [
|
|
2624
2686
|
{
|
|
2625
2687
|
args: [
|
|
2688
|
+
{ in: "path", key: "sessionID" },
|
|
2626
2689
|
{ in: "query", key: "directory" },
|
|
2627
2690
|
{ in: "query", key: "workspace" },
|
|
2691
|
+
{ in: "body", key: "prompt" },
|
|
2692
|
+
{ in: "body", key: "delivery" },
|
|
2628
2693
|
],
|
|
2629
2694
|
},
|
|
2630
2695
|
]);
|
|
2631
2696
|
return (options?.client ?? this.client).post({
|
|
2632
|
-
url: "/
|
|
2697
|
+
url: "/api/session/{sessionID}/prompt",
|
|
2633
2698
|
...options,
|
|
2634
2699
|
...params,
|
|
2700
|
+
headers: {
|
|
2701
|
+
"Content-Type": "application/json",
|
|
2702
|
+
...options?.headers,
|
|
2703
|
+
...params.headers,
|
|
2704
|
+
},
|
|
2635
2705
|
});
|
|
2636
2706
|
}
|
|
2637
2707
|
/**
|
|
2638
|
-
*
|
|
2708
|
+
* Compact v2 session
|
|
2639
2709
|
*
|
|
2640
|
-
*
|
|
2710
|
+
* Compact a v2 session conversation.
|
|
2641
2711
|
*/
|
|
2642
|
-
|
|
2712
|
+
compact(parameters, options) {
|
|
2643
2713
|
const params = buildClientParams([parameters], [
|
|
2644
2714
|
{
|
|
2645
2715
|
args: [
|
|
2716
|
+
{ in: "path", key: "sessionID" },
|
|
2646
2717
|
{ in: "query", key: "directory" },
|
|
2647
2718
|
{ in: "query", key: "workspace" },
|
|
2648
2719
|
],
|
|
2649
2720
|
},
|
|
2650
2721
|
]);
|
|
2651
2722
|
return (options?.client ?? this.client).post({
|
|
2652
|
-
url: "/
|
|
2723
|
+
url: "/api/session/{sessionID}/compact",
|
|
2653
2724
|
...options,
|
|
2654
2725
|
...params,
|
|
2655
2726
|
});
|
|
2656
2727
|
}
|
|
2657
2728
|
/**
|
|
2658
|
-
*
|
|
2729
|
+
* Wait for v2 session
|
|
2659
2730
|
*
|
|
2660
|
-
*
|
|
2731
|
+
* Wait for a v2 session agent loop to become idle.
|
|
2661
2732
|
*/
|
|
2662
|
-
|
|
2733
|
+
wait(parameters, options) {
|
|
2663
2734
|
const params = buildClientParams([parameters], [
|
|
2664
2735
|
{
|
|
2665
2736
|
args: [
|
|
2737
|
+
{ in: "path", key: "sessionID" },
|
|
2666
2738
|
{ in: "query", key: "directory" },
|
|
2667
2739
|
{ in: "query", key: "workspace" },
|
|
2668
2740
|
],
|
|
2669
2741
|
},
|
|
2670
2742
|
]);
|
|
2671
2743
|
return (options?.client ?? this.client).post({
|
|
2672
|
-
url: "/
|
|
2744
|
+
url: "/api/session/{sessionID}/wait",
|
|
2673
2745
|
...options,
|
|
2674
2746
|
...params,
|
|
2675
2747
|
});
|
|
2676
2748
|
}
|
|
2677
2749
|
/**
|
|
2678
|
-
*
|
|
2750
|
+
* Get v2 session context
|
|
2679
2751
|
*
|
|
2680
|
-
*
|
|
2752
|
+
* Retrieve the active context messages for a v2 session (all messages after the last compaction).
|
|
2681
2753
|
*/
|
|
2682
|
-
|
|
2754
|
+
context(parameters, options) {
|
|
2683
2755
|
const params = buildClientParams([parameters], [
|
|
2684
2756
|
{
|
|
2685
2757
|
args: [
|
|
2758
|
+
{ in: "path", key: "sessionID" },
|
|
2686
2759
|
{ in: "query", key: "directory" },
|
|
2687
2760
|
{ in: "query", key: "workspace" },
|
|
2688
|
-
{ in: "body", key: "command" },
|
|
2689
2761
|
],
|
|
2690
2762
|
},
|
|
2691
2763
|
]);
|
|
2692
|
-
return (options?.client ?? this.client).
|
|
2693
|
-
url: "/
|
|
2764
|
+
return (options?.client ?? this.client).get({
|
|
2765
|
+
url: "/api/session/{sessionID}/context",
|
|
2694
2766
|
...options,
|
|
2695
2767
|
...params,
|
|
2696
|
-
headers: {
|
|
2697
|
-
"Content-Type": "application/json",
|
|
2698
|
-
...options?.headers,
|
|
2699
|
-
...params.headers,
|
|
2700
|
-
},
|
|
2701
2768
|
});
|
|
2702
2769
|
}
|
|
2703
2770
|
/**
|
|
2704
|
-
*
|
|
2771
|
+
* Get v2 session messages
|
|
2705
2772
|
*
|
|
2706
|
-
*
|
|
2773
|
+
* Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
|
|
2707
2774
|
*/
|
|
2708
|
-
|
|
2775
|
+
messages(parameters, options) {
|
|
2709
2776
|
const params = buildClientParams([parameters], [
|
|
2710
2777
|
{
|
|
2711
2778
|
args: [
|
|
2779
|
+
{ in: "path", key: "sessionID" },
|
|
2712
2780
|
{ in: "query", key: "directory" },
|
|
2713
2781
|
{ in: "query", key: "workspace" },
|
|
2714
|
-
{ in: "body", key: "title" },
|
|
2715
|
-
{ in: "body", key: "message" },
|
|
2716
|
-
{ in: "body", key: "variant" },
|
|
2717
|
-
{ in: "body", key: "duration" },
|
|
2718
2782
|
],
|
|
2719
2783
|
},
|
|
2720
2784
|
]);
|
|
2721
|
-
return (options?.client ?? this.client).
|
|
2722
|
-
url: "/
|
|
2785
|
+
return (options?.client ?? this.client).get({
|
|
2786
|
+
url: "/api/session/{sessionID}/message",
|
|
2723
2787
|
...options,
|
|
2724
2788
|
...params,
|
|
2725
|
-
headers: {
|
|
2726
|
-
"Content-Type": "application/json",
|
|
2727
|
-
...options?.headers,
|
|
2728
|
-
...params.headers,
|
|
2729
|
-
},
|
|
2730
2789
|
});
|
|
2731
2790
|
}
|
|
2791
|
+
}
|
|
2792
|
+
export class V2 extends HeyApiClient {
|
|
2793
|
+
_session;
|
|
2794
|
+
get session() {
|
|
2795
|
+
return (this._session ??= new Session3({ client: this.client }));
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
export class Control extends HeyApiClient {
|
|
2732
2799
|
/**
|
|
2733
|
-
*
|
|
2800
|
+
* Get next TUI request
|
|
2734
2801
|
*
|
|
2735
|
-
*
|
|
2802
|
+
* Retrieve the next TUI request from the queue for processing.
|
|
2736
2803
|
*/
|
|
2737
|
-
|
|
2804
|
+
next(parameters, options) {
|
|
2738
2805
|
const params = buildClientParams([parameters], [
|
|
2739
2806
|
{
|
|
2740
2807
|
args: [
|
|
2741
2808
|
{ in: "query", key: "directory" },
|
|
2742
2809
|
{ in: "query", key: "workspace" },
|
|
2743
|
-
{ key: "body", map: "body" },
|
|
2744
2810
|
],
|
|
2745
2811
|
},
|
|
2746
2812
|
]);
|
|
2747
|
-
return (options?.client ?? this.client).
|
|
2748
|
-
url: "/tui/
|
|
2813
|
+
return (options?.client ?? this.client).get({
|
|
2814
|
+
url: "/tui/control/next",
|
|
2749
2815
|
...options,
|
|
2750
2816
|
...params,
|
|
2751
|
-
headers: {
|
|
2752
|
-
"Content-Type": "application/json",
|
|
2753
|
-
...options?.headers,
|
|
2754
|
-
...params.headers,
|
|
2755
|
-
},
|
|
2756
2817
|
});
|
|
2757
2818
|
}
|
|
2758
2819
|
/**
|
|
2759
|
-
*
|
|
2820
|
+
* Submit TUI response
|
|
2760
2821
|
*
|
|
2761
|
-
*
|
|
2822
|
+
* Submit a response to the TUI request queue to complete a pending request.
|
|
2762
2823
|
*/
|
|
2763
|
-
|
|
2824
|
+
response(parameters, options) {
|
|
2764
2825
|
const params = buildClientParams([parameters], [
|
|
2765
2826
|
{
|
|
2766
2827
|
args: [
|
|
2767
2828
|
{ in: "query", key: "directory" },
|
|
2768
2829
|
{ in: "query", key: "workspace" },
|
|
2769
|
-
{
|
|
2830
|
+
{ key: "body", map: "body" },
|
|
2770
2831
|
],
|
|
2771
2832
|
},
|
|
2772
2833
|
]);
|
|
2773
2834
|
return (options?.client ?? this.client).post({
|
|
2774
|
-
url: "/tui/
|
|
2835
|
+
url: "/tui/control/response",
|
|
2775
2836
|
...options,
|
|
2776
2837
|
...params,
|
|
2777
2838
|
headers: {
|
|
@@ -2781,40 +2842,40 @@ export class Tui extends HeyApiClient {
|
|
|
2781
2842
|
},
|
|
2782
2843
|
});
|
|
2783
2844
|
}
|
|
2784
|
-
_control;
|
|
2785
|
-
get control() {
|
|
2786
|
-
return (this._control ??= new Control({ client: this.client }));
|
|
2787
|
-
}
|
|
2788
2845
|
}
|
|
2789
|
-
export class
|
|
2846
|
+
export class Tui extends HeyApiClient {
|
|
2790
2847
|
/**
|
|
2791
|
-
*
|
|
2848
|
+
* Append TUI prompt
|
|
2792
2849
|
*
|
|
2793
|
-
*
|
|
2850
|
+
* Append prompt to the TUI.
|
|
2794
2851
|
*/
|
|
2795
|
-
|
|
2852
|
+
appendPrompt(parameters, options) {
|
|
2796
2853
|
const params = buildClientParams([parameters], [
|
|
2797
2854
|
{
|
|
2798
2855
|
args: [
|
|
2799
2856
|
{ in: "query", key: "directory" },
|
|
2800
2857
|
{ in: "query", key: "workspace" },
|
|
2858
|
+
{ in: "body", key: "text" },
|
|
2801
2859
|
],
|
|
2802
2860
|
},
|
|
2803
2861
|
]);
|
|
2804
2862
|
return (options?.client ?? this.client).post({
|
|
2805
|
-
url: "/
|
|
2863
|
+
url: "/tui/append-prompt",
|
|
2806
2864
|
...options,
|
|
2807
2865
|
...params,
|
|
2866
|
+
headers: {
|
|
2867
|
+
"Content-Type": "application/json",
|
|
2868
|
+
...options?.headers,
|
|
2869
|
+
...params.headers,
|
|
2870
|
+
},
|
|
2808
2871
|
});
|
|
2809
2872
|
}
|
|
2810
|
-
}
|
|
2811
|
-
export class Path extends HeyApiClient {
|
|
2812
2873
|
/**
|
|
2813
|
-
*
|
|
2874
|
+
* Open help dialog
|
|
2814
2875
|
*
|
|
2815
|
-
*
|
|
2876
|
+
* Open the help dialog in the TUI to display user assistance information.
|
|
2816
2877
|
*/
|
|
2817
|
-
|
|
2878
|
+
openHelp(parameters, options) {
|
|
2818
2879
|
const params = buildClientParams([parameters], [
|
|
2819
2880
|
{
|
|
2820
2881
|
args: [
|
|
@@ -2823,20 +2884,18 @@ export class Path extends HeyApiClient {
|
|
|
2823
2884
|
],
|
|
2824
2885
|
},
|
|
2825
2886
|
]);
|
|
2826
|
-
return (options?.client ?? this.client).
|
|
2827
|
-
url: "/
|
|
2887
|
+
return (options?.client ?? this.client).post({
|
|
2888
|
+
url: "/tui/open-help",
|
|
2828
2889
|
...options,
|
|
2829
2890
|
...params,
|
|
2830
2891
|
});
|
|
2831
2892
|
}
|
|
2832
|
-
}
|
|
2833
|
-
export class Vcs extends HeyApiClient {
|
|
2834
2893
|
/**
|
|
2835
|
-
*
|
|
2894
|
+
* Open sessions dialog
|
|
2836
2895
|
*
|
|
2837
|
-
*
|
|
2896
|
+
* Open the session dialog.
|
|
2838
2897
|
*/
|
|
2839
|
-
|
|
2898
|
+
openSessions(parameters, options) {
|
|
2840
2899
|
const params = buildClientParams([parameters], [
|
|
2841
2900
|
{
|
|
2842
2901
|
args: [
|
|
@@ -2845,41 +2904,38 @@ export class Vcs extends HeyApiClient {
|
|
|
2845
2904
|
],
|
|
2846
2905
|
},
|
|
2847
2906
|
]);
|
|
2848
|
-
return (options?.client ?? this.client).
|
|
2849
|
-
url: "/
|
|
2907
|
+
return (options?.client ?? this.client).post({
|
|
2908
|
+
url: "/tui/open-sessions",
|
|
2850
2909
|
...options,
|
|
2851
2910
|
...params,
|
|
2852
2911
|
});
|
|
2853
2912
|
}
|
|
2854
2913
|
/**
|
|
2855
|
-
*
|
|
2914
|
+
* Open themes dialog
|
|
2856
2915
|
*
|
|
2857
|
-
*
|
|
2916
|
+
* Open the theme dialog.
|
|
2858
2917
|
*/
|
|
2859
|
-
|
|
2918
|
+
openThemes(parameters, options) {
|
|
2860
2919
|
const params = buildClientParams([parameters], [
|
|
2861
2920
|
{
|
|
2862
2921
|
args: [
|
|
2863
2922
|
{ in: "query", key: "directory" },
|
|
2864
2923
|
{ in: "query", key: "workspace" },
|
|
2865
|
-
{ in: "query", key: "mode" },
|
|
2866
2924
|
],
|
|
2867
2925
|
},
|
|
2868
2926
|
]);
|
|
2869
|
-
return (options?.client ?? this.client).
|
|
2870
|
-
url: "/
|
|
2927
|
+
return (options?.client ?? this.client).post({
|
|
2928
|
+
url: "/tui/open-themes",
|
|
2871
2929
|
...options,
|
|
2872
2930
|
...params,
|
|
2873
2931
|
});
|
|
2874
2932
|
}
|
|
2875
|
-
}
|
|
2876
|
-
export class Command extends HeyApiClient {
|
|
2877
2933
|
/**
|
|
2878
|
-
*
|
|
2934
|
+
* Open models dialog
|
|
2879
2935
|
*
|
|
2880
|
-
*
|
|
2936
|
+
* Open the model dialog.
|
|
2881
2937
|
*/
|
|
2882
|
-
|
|
2938
|
+
openModels(parameters, options) {
|
|
2883
2939
|
const params = buildClientParams([parameters], [
|
|
2884
2940
|
{
|
|
2885
2941
|
args: [
|
|
@@ -2888,20 +2944,18 @@ export class Command extends HeyApiClient {
|
|
|
2888
2944
|
],
|
|
2889
2945
|
},
|
|
2890
2946
|
]);
|
|
2891
|
-
return (options?.client ?? this.client).
|
|
2892
|
-
url: "/
|
|
2947
|
+
return (options?.client ?? this.client).post({
|
|
2948
|
+
url: "/tui/open-models",
|
|
2893
2949
|
...options,
|
|
2894
2950
|
...params,
|
|
2895
2951
|
});
|
|
2896
2952
|
}
|
|
2897
|
-
}
|
|
2898
|
-
export class Lsp extends HeyApiClient {
|
|
2899
2953
|
/**
|
|
2900
|
-
*
|
|
2954
|
+
* Submit TUI prompt
|
|
2901
2955
|
*
|
|
2902
|
-
*
|
|
2956
|
+
* Submit the prompt.
|
|
2903
2957
|
*/
|
|
2904
|
-
|
|
2958
|
+
submitPrompt(parameters, options) {
|
|
2905
2959
|
const params = buildClientParams([parameters], [
|
|
2906
2960
|
{
|
|
2907
2961
|
args: [
|
|
@@ -2910,20 +2964,18 @@ export class Lsp extends HeyApiClient {
|
|
|
2910
2964
|
],
|
|
2911
2965
|
},
|
|
2912
2966
|
]);
|
|
2913
|
-
return (options?.client ?? this.client).
|
|
2914
|
-
url: "/
|
|
2967
|
+
return (options?.client ?? this.client).post({
|
|
2968
|
+
url: "/tui/submit-prompt",
|
|
2915
2969
|
...options,
|
|
2916
2970
|
...params,
|
|
2917
2971
|
});
|
|
2918
2972
|
}
|
|
2919
|
-
}
|
|
2920
|
-
export class Formatter extends HeyApiClient {
|
|
2921
2973
|
/**
|
|
2922
|
-
*
|
|
2974
|
+
* Clear TUI prompt
|
|
2923
2975
|
*
|
|
2924
|
-
*
|
|
2976
|
+
* Clear the prompt.
|
|
2925
2977
|
*/
|
|
2926
|
-
|
|
2978
|
+
clearPrompt(parameters, options) {
|
|
2927
2979
|
const params = buildClientParams([parameters], [
|
|
2928
2980
|
{
|
|
2929
2981
|
args: [
|
|
@@ -2932,138 +2984,172 @@ export class Formatter extends HeyApiClient {
|
|
|
2932
2984
|
],
|
|
2933
2985
|
},
|
|
2934
2986
|
]);
|
|
2935
|
-
return (options?.client ?? this.client).
|
|
2936
|
-
url: "/
|
|
2987
|
+
return (options?.client ?? this.client).post({
|
|
2988
|
+
url: "/tui/clear-prompt",
|
|
2937
2989
|
...options,
|
|
2938
2990
|
...params,
|
|
2939
2991
|
});
|
|
2940
2992
|
}
|
|
2941
|
-
}
|
|
2942
|
-
export class Network extends HeyApiClient {
|
|
2943
2993
|
/**
|
|
2944
|
-
*
|
|
2994
|
+
* Execute TUI command
|
|
2945
2995
|
*
|
|
2946
|
-
*
|
|
2996
|
+
* Execute a TUI command.
|
|
2947
2997
|
*/
|
|
2948
|
-
|
|
2998
|
+
executeCommand(parameters, options) {
|
|
2949
2999
|
const params = buildClientParams([parameters], [
|
|
2950
3000
|
{
|
|
2951
3001
|
args: [
|
|
2952
3002
|
{ in: "query", key: "directory" },
|
|
2953
3003
|
{ in: "query", key: "workspace" },
|
|
3004
|
+
{ in: "body", key: "command" },
|
|
2954
3005
|
],
|
|
2955
3006
|
},
|
|
2956
3007
|
]);
|
|
2957
|
-
return (options?.client ?? this.client).
|
|
2958
|
-
url: "/
|
|
3008
|
+
return (options?.client ?? this.client).post({
|
|
3009
|
+
url: "/tui/execute-command",
|
|
2959
3010
|
...options,
|
|
2960
3011
|
...params,
|
|
3012
|
+
headers: {
|
|
3013
|
+
"Content-Type": "application/json",
|
|
3014
|
+
...options?.headers,
|
|
3015
|
+
...params.headers,
|
|
3016
|
+
},
|
|
2961
3017
|
});
|
|
2962
3018
|
}
|
|
2963
3019
|
/**
|
|
2964
|
-
*
|
|
3020
|
+
* Show TUI toast
|
|
2965
3021
|
*
|
|
2966
|
-
*
|
|
3022
|
+
* Show a toast notification in the TUI.
|
|
2967
3023
|
*/
|
|
2968
|
-
|
|
3024
|
+
showToast(parameters, options) {
|
|
2969
3025
|
const params = buildClientParams([parameters], [
|
|
2970
3026
|
{
|
|
2971
3027
|
args: [
|
|
2972
|
-
{ in: "path", key: "requestID" },
|
|
2973
3028
|
{ in: "query", key: "directory" },
|
|
2974
3029
|
{ in: "query", key: "workspace" },
|
|
3030
|
+
{ in: "body", key: "title" },
|
|
3031
|
+
{ in: "body", key: "message" },
|
|
3032
|
+
{ in: "body", key: "variant" },
|
|
3033
|
+
{ in: "body", key: "duration" },
|
|
2975
3034
|
],
|
|
2976
3035
|
},
|
|
2977
3036
|
]);
|
|
2978
3037
|
return (options?.client ?? this.client).post({
|
|
2979
|
-
url: "/
|
|
3038
|
+
url: "/tui/show-toast",
|
|
2980
3039
|
...options,
|
|
2981
3040
|
...params,
|
|
3041
|
+
headers: {
|
|
3042
|
+
"Content-Type": "application/json",
|
|
3043
|
+
...options?.headers,
|
|
3044
|
+
...params.headers,
|
|
3045
|
+
},
|
|
2982
3046
|
});
|
|
2983
3047
|
}
|
|
2984
3048
|
/**
|
|
2985
|
-
*
|
|
3049
|
+
* Publish TUI event
|
|
2986
3050
|
*
|
|
2987
|
-
*
|
|
3051
|
+
* Publish a TUI event.
|
|
2988
3052
|
*/
|
|
2989
|
-
|
|
3053
|
+
publish(parameters, options) {
|
|
2990
3054
|
const params = buildClientParams([parameters], [
|
|
2991
3055
|
{
|
|
2992
3056
|
args: [
|
|
2993
|
-
{ in: "path", key: "requestID" },
|
|
2994
3057
|
{ in: "query", key: "directory" },
|
|
2995
3058
|
{ in: "query", key: "workspace" },
|
|
3059
|
+
{ key: "body", map: "body" },
|
|
2996
3060
|
],
|
|
2997
3061
|
},
|
|
2998
3062
|
]);
|
|
2999
3063
|
return (options?.client ?? this.client).post({
|
|
3000
|
-
url: "/
|
|
3064
|
+
url: "/tui/publish",
|
|
3001
3065
|
...options,
|
|
3002
3066
|
...params,
|
|
3067
|
+
headers: {
|
|
3068
|
+
"Content-Type": "application/json",
|
|
3069
|
+
...options?.headers,
|
|
3070
|
+
...params.headers,
|
|
3071
|
+
},
|
|
3003
3072
|
});
|
|
3004
3073
|
}
|
|
3005
|
-
}
|
|
3006
|
-
export class Indexing extends HeyApiClient {
|
|
3007
3074
|
/**
|
|
3008
|
-
*
|
|
3075
|
+
* Select session
|
|
3009
3076
|
*
|
|
3010
|
-
*
|
|
3077
|
+
* Navigate the TUI to display the specified session.
|
|
3011
3078
|
*/
|
|
3012
|
-
|
|
3079
|
+
selectSession(parameters, options) {
|
|
3013
3080
|
const params = buildClientParams([parameters], [
|
|
3014
3081
|
{
|
|
3015
3082
|
args: [
|
|
3016
3083
|
{ in: "query", key: "directory" },
|
|
3017
3084
|
{ in: "query", key: "workspace" },
|
|
3085
|
+
{ in: "body", key: "sessionID" },
|
|
3018
3086
|
],
|
|
3019
3087
|
},
|
|
3020
3088
|
]);
|
|
3021
|
-
return (options?.client ?? this.client).
|
|
3022
|
-
url: "/
|
|
3089
|
+
return (options?.client ?? this.client).post({
|
|
3090
|
+
url: "/tui/select-session",
|
|
3023
3091
|
...options,
|
|
3024
3092
|
...params,
|
|
3093
|
+
headers: {
|
|
3094
|
+
"Content-Type": "application/json",
|
|
3095
|
+
...options?.headers,
|
|
3096
|
+
...params.headers,
|
|
3097
|
+
},
|
|
3025
3098
|
});
|
|
3026
3099
|
}
|
|
3100
|
+
_control;
|
|
3101
|
+
get control() {
|
|
3102
|
+
return (this._control ??= new Control({ client: this.client }));
|
|
3103
|
+
}
|
|
3027
3104
|
}
|
|
3028
|
-
export class
|
|
3105
|
+
export class CommitMessage extends HeyApiClient {
|
|
3029
3106
|
/**
|
|
3030
|
-
*
|
|
3107
|
+
* Generate commit message
|
|
3031
3108
|
*
|
|
3032
|
-
*
|
|
3109
|
+
* Generate a commit message using AI based on the current git diff.
|
|
3033
3110
|
*/
|
|
3034
|
-
|
|
3111
|
+
generate(parameters, options) {
|
|
3035
3112
|
const params = buildClientParams([parameters], [
|
|
3036
3113
|
{
|
|
3037
3114
|
args: [
|
|
3038
3115
|
{ in: "query", key: "directory" },
|
|
3039
3116
|
{ in: "query", key: "workspace" },
|
|
3117
|
+
{ in: "body", key: "path" },
|
|
3118
|
+
{ in: "body", key: "selectedFiles" },
|
|
3119
|
+
{ in: "body", key: "previousMessage" },
|
|
3040
3120
|
],
|
|
3041
3121
|
},
|
|
3042
3122
|
]);
|
|
3043
|
-
return (options?.client ?? this.client).
|
|
3044
|
-
url: "/
|
|
3123
|
+
return (options?.client ?? this.client).post({
|
|
3124
|
+
url: "/commit-message",
|
|
3045
3125
|
...options,
|
|
3046
3126
|
...params,
|
|
3127
|
+
headers: {
|
|
3128
|
+
"Content-Type": "application/json",
|
|
3129
|
+
...options?.headers,
|
|
3130
|
+
...params.headers,
|
|
3131
|
+
},
|
|
3047
3132
|
});
|
|
3048
3133
|
}
|
|
3134
|
+
}
|
|
3135
|
+
export class EnhancePrompt extends HeyApiClient {
|
|
3049
3136
|
/**
|
|
3050
|
-
*
|
|
3137
|
+
* Enhance prompt
|
|
3051
3138
|
*
|
|
3052
|
-
*
|
|
3139
|
+
* Rewrite a user's draft prompt into a clearer, more specific, and more effective prompt.
|
|
3053
3140
|
*/
|
|
3054
|
-
|
|
3141
|
+
enhance(parameters, options) {
|
|
3055
3142
|
const params = buildClientParams([parameters], [
|
|
3056
3143
|
{
|
|
3057
3144
|
args: [
|
|
3058
|
-
{ in: "path", key: "requestID" },
|
|
3059
3145
|
{ in: "query", key: "directory" },
|
|
3060
3146
|
{ in: "query", key: "workspace" },
|
|
3061
|
-
{ in: "body", key: "
|
|
3147
|
+
{ in: "body", key: "text" },
|
|
3062
3148
|
],
|
|
3063
3149
|
},
|
|
3064
3150
|
]);
|
|
3065
3151
|
return (options?.client ?? this.client).post({
|
|
3066
|
-
url: "/
|
|
3152
|
+
url: "/enhance-prompt",
|
|
3067
3153
|
...options,
|
|
3068
3154
|
...params,
|
|
3069
3155
|
headers: {
|
|
@@ -3073,47 +3159,50 @@ export class Suggestion extends HeyApiClient {
|
|
|
3073
3159
|
},
|
|
3074
3160
|
});
|
|
3075
3161
|
}
|
|
3162
|
+
}
|
|
3163
|
+
export class Indexing extends HeyApiClient {
|
|
3076
3164
|
/**
|
|
3077
|
-
*
|
|
3165
|
+
* Get indexing status
|
|
3078
3166
|
*
|
|
3079
|
-
*
|
|
3167
|
+
* Retrieve the current code indexing status for the active project.
|
|
3080
3168
|
*/
|
|
3081
|
-
|
|
3169
|
+
status(parameters, options) {
|
|
3082
3170
|
const params = buildClientParams([parameters], [
|
|
3083
3171
|
{
|
|
3084
3172
|
args: [
|
|
3085
|
-
{ in: "path", key: "requestID" },
|
|
3086
3173
|
{ in: "query", key: "directory" },
|
|
3087
3174
|
{ in: "query", key: "workspace" },
|
|
3088
3175
|
],
|
|
3089
3176
|
},
|
|
3090
3177
|
]);
|
|
3091
|
-
return (options?.client ?? this.client).
|
|
3092
|
-
url: "/
|
|
3178
|
+
return (options?.client ?? this.client).get({
|
|
3179
|
+
url: "/indexing/status",
|
|
3093
3180
|
...options,
|
|
3094
3181
|
...params,
|
|
3095
3182
|
});
|
|
3096
3183
|
}
|
|
3097
3184
|
}
|
|
3098
|
-
export class
|
|
3185
|
+
export class Audio extends HeyApiClient {
|
|
3099
3186
|
/**
|
|
3100
|
-
*
|
|
3187
|
+
* Speech to text transcription
|
|
3101
3188
|
*
|
|
3102
|
-
*
|
|
3189
|
+
* Proxy an audio transcription request to the Kilo Gateway
|
|
3103
3190
|
*/
|
|
3104
|
-
|
|
3191
|
+
transcriptions(parameters, options) {
|
|
3105
3192
|
const params = buildClientParams([parameters], [
|
|
3106
3193
|
{
|
|
3107
3194
|
args: [
|
|
3108
3195
|
{ in: "query", key: "directory" },
|
|
3109
3196
|
{ in: "query", key: "workspace" },
|
|
3110
|
-
{ in: "body", key: "
|
|
3111
|
-
{ in: "body", key: "
|
|
3197
|
+
{ in: "body", key: "model" },
|
|
3198
|
+
{ in: "body", key: "input_audio" },
|
|
3199
|
+
{ in: "body", key: "language" },
|
|
3200
|
+
{ in: "body", key: "temperature" },
|
|
3112
3201
|
],
|
|
3113
3202
|
},
|
|
3114
3203
|
]);
|
|
3115
3204
|
return (options?.client ?? this.client).post({
|
|
3116
|
-
url: "/
|
|
3205
|
+
url: "/kilo/audio/transcriptions",
|
|
3117
3206
|
...options,
|
|
3118
3207
|
...params,
|
|
3119
3208
|
headers: {
|
|
@@ -3123,23 +3212,25 @@ export class Telemetry extends HeyApiClient {
|
|
|
3123
3212
|
},
|
|
3124
3213
|
});
|
|
3125
3214
|
}
|
|
3215
|
+
}
|
|
3216
|
+
export class Organization extends HeyApiClient {
|
|
3126
3217
|
/**
|
|
3127
|
-
*
|
|
3218
|
+
* Update Kilo Gateway organization
|
|
3128
3219
|
*
|
|
3129
|
-
*
|
|
3220
|
+
* Switch to a different Kilo Gateway organization
|
|
3130
3221
|
*/
|
|
3131
|
-
|
|
3222
|
+
set(parameters, options) {
|
|
3132
3223
|
const params = buildClientParams([parameters], [
|
|
3133
3224
|
{
|
|
3134
3225
|
args: [
|
|
3135
3226
|
{ in: "query", key: "directory" },
|
|
3136
3227
|
{ in: "query", key: "workspace" },
|
|
3137
|
-
{ in: "body", key: "
|
|
3228
|
+
{ in: "body", key: "organizationId" },
|
|
3138
3229
|
],
|
|
3139
3230
|
},
|
|
3140
3231
|
]);
|
|
3141
3232
|
return (options?.client ?? this.client).post({
|
|
3142
|
-
url: "/
|
|
3233
|
+
url: "/kilo/organization",
|
|
3143
3234
|
...options,
|
|
3144
3235
|
...params,
|
|
3145
3236
|
headers: {
|
|
@@ -3150,13 +3241,13 @@ export class Telemetry extends HeyApiClient {
|
|
|
3150
3241
|
});
|
|
3151
3242
|
}
|
|
3152
3243
|
}
|
|
3153
|
-
export class
|
|
3244
|
+
export class Claw extends HeyApiClient {
|
|
3154
3245
|
/**
|
|
3155
|
-
*
|
|
3246
|
+
* Get KiloClaw instance status
|
|
3156
3247
|
*
|
|
3157
|
-
*
|
|
3248
|
+
* Fetch the user's KiloClaw instance status via the KiloClaw worker
|
|
3158
3249
|
*/
|
|
3159
|
-
|
|
3250
|
+
status(parameters, options) {
|
|
3160
3251
|
const params = buildClientParams([parameters], [
|
|
3161
3252
|
{
|
|
3162
3253
|
args: [
|
|
@@ -3165,18 +3256,18 @@ export class Remote extends HeyApiClient {
|
|
|
3165
3256
|
],
|
|
3166
3257
|
},
|
|
3167
3258
|
]);
|
|
3168
|
-
return (options?.client ?? this.client).
|
|
3169
|
-
url: "/
|
|
3259
|
+
return (options?.client ?? this.client).get({
|
|
3260
|
+
url: "/kilo/claw/status",
|
|
3170
3261
|
...options,
|
|
3171
3262
|
...params,
|
|
3172
3263
|
});
|
|
3173
3264
|
}
|
|
3174
3265
|
/**
|
|
3175
|
-
*
|
|
3266
|
+
* Get KiloClaw chat credentials
|
|
3176
3267
|
*
|
|
3177
|
-
*
|
|
3268
|
+
* Returns the bearer token and endpoint URLs the client uses to talk to the Kilo Chat worker and the Event Service. The bearer is the user's existing long-lived Kilo JWT — kilo-chat and event-service both verify it directly with NEXTAUTH_SECRET, so no separate token mint is needed.
|
|
3178
3269
|
*/
|
|
3179
|
-
|
|
3270
|
+
chatCredentials(parameters, options) {
|
|
3180
3271
|
const params = buildClientParams([parameters], [
|
|
3181
3272
|
{
|
|
3182
3273
|
args: [
|
|
@@ -3185,53 +3276,52 @@ export class Remote extends HeyApiClient {
|
|
|
3185
3276
|
],
|
|
3186
3277
|
},
|
|
3187
3278
|
]);
|
|
3188
|
-
return (options?.client ?? this.client).
|
|
3189
|
-
url: "/
|
|
3279
|
+
return (options?.client ?? this.client).get({
|
|
3280
|
+
url: "/kilo/claw/chat-credentials",
|
|
3190
3281
|
...options,
|
|
3191
3282
|
...params,
|
|
3192
3283
|
});
|
|
3193
3284
|
}
|
|
3285
|
+
}
|
|
3286
|
+
export class Session4 extends HeyApiClient {
|
|
3194
3287
|
/**
|
|
3195
|
-
* Get
|
|
3288
|
+
* Get cloud session
|
|
3196
3289
|
*
|
|
3197
|
-
*
|
|
3290
|
+
* Fetch full session data from the Kilo cloud for preview
|
|
3198
3291
|
*/
|
|
3199
|
-
|
|
3292
|
+
get(parameters, options) {
|
|
3200
3293
|
const params = buildClientParams([parameters], [
|
|
3201
3294
|
{
|
|
3202
3295
|
args: [
|
|
3296
|
+
{ in: "path", key: "id" },
|
|
3203
3297
|
{ in: "query", key: "directory" },
|
|
3204
3298
|
{ in: "query", key: "workspace" },
|
|
3205
3299
|
],
|
|
3206
3300
|
},
|
|
3207
3301
|
]);
|
|
3208
3302
|
return (options?.client ?? this.client).get({
|
|
3209
|
-
url: "/
|
|
3303
|
+
url: "/kilo/cloud/session/{id}",
|
|
3210
3304
|
...options,
|
|
3211
3305
|
...params,
|
|
3212
3306
|
});
|
|
3213
3307
|
}
|
|
3214
|
-
}
|
|
3215
|
-
export class CommitMessage extends HeyApiClient {
|
|
3216
3308
|
/**
|
|
3217
|
-
*
|
|
3309
|
+
* Import session from cloud
|
|
3218
3310
|
*
|
|
3219
|
-
*
|
|
3311
|
+
* Download a cloud-synced session and write it to local storage with fresh IDs.
|
|
3220
3312
|
*/
|
|
3221
|
-
|
|
3313
|
+
import(parameters, options) {
|
|
3222
3314
|
const params = buildClientParams([parameters], [
|
|
3223
3315
|
{
|
|
3224
3316
|
args: [
|
|
3225
3317
|
{ in: "query", key: "directory" },
|
|
3226
3318
|
{ in: "query", key: "workspace" },
|
|
3227
|
-
{ in: "body", key: "
|
|
3228
|
-
{ in: "body", key: "selectedFiles" },
|
|
3229
|
-
{ in: "body", key: "previousMessage" },
|
|
3319
|
+
{ in: "body", key: "sessionId" },
|
|
3230
3320
|
],
|
|
3231
3321
|
},
|
|
3232
3322
|
]);
|
|
3233
3323
|
return (options?.client ?? this.client).post({
|
|
3234
|
-
url: "/
|
|
3324
|
+
url: "/kilo/cloud/session/import",
|
|
3235
3325
|
...options,
|
|
3236
3326
|
...params,
|
|
3237
3327
|
headers: {
|
|
@@ -3242,24 +3332,74 @@ export class CommitMessage extends HeyApiClient {
|
|
|
3242
3332
|
});
|
|
3243
3333
|
}
|
|
3244
3334
|
}
|
|
3245
|
-
export class
|
|
3335
|
+
export class Cloud extends HeyApiClient {
|
|
3336
|
+
_session;
|
|
3337
|
+
get session() {
|
|
3338
|
+
return (this._session ??= new Session4({ client: this.client }));
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
export class Kilo extends HeyApiClient {
|
|
3246
3342
|
/**
|
|
3247
|
-
*
|
|
3343
|
+
* Get Kilo Gateway profile
|
|
3248
3344
|
*
|
|
3249
|
-
*
|
|
3345
|
+
* Fetch user profile and organizations from Kilo Gateway
|
|
3250
3346
|
*/
|
|
3251
|
-
|
|
3347
|
+
profile(parameters, options) {
|
|
3252
3348
|
const params = buildClientParams([parameters], [
|
|
3253
3349
|
{
|
|
3254
3350
|
args: [
|
|
3255
3351
|
{ in: "query", key: "directory" },
|
|
3256
3352
|
{ in: "query", key: "workspace" },
|
|
3257
|
-
{ in: "body", key: "text" },
|
|
3258
3353
|
],
|
|
3259
3354
|
},
|
|
3260
3355
|
]);
|
|
3261
|
-
return (options?.client ?? this.client).
|
|
3262
|
-
url: "/
|
|
3356
|
+
return (options?.client ?? this.client).get({
|
|
3357
|
+
url: "/kilo/profile",
|
|
3358
|
+
...options,
|
|
3359
|
+
...params,
|
|
3360
|
+
});
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* Get organization custom modes
|
|
3364
|
+
*
|
|
3365
|
+
* Fetch custom modes defined for the current organization
|
|
3366
|
+
*/
|
|
3367
|
+
modes(parameters, options) {
|
|
3368
|
+
const params = buildClientParams([parameters], [
|
|
3369
|
+
{
|
|
3370
|
+
args: [
|
|
3371
|
+
{ in: "query", key: "directory" },
|
|
3372
|
+
{ in: "query", key: "workspace" },
|
|
3373
|
+
],
|
|
3374
|
+
},
|
|
3375
|
+
]);
|
|
3376
|
+
return (options?.client ?? this.client).get({
|
|
3377
|
+
url: "/kilo/modes",
|
|
3378
|
+
...options,
|
|
3379
|
+
...params,
|
|
3380
|
+
});
|
|
3381
|
+
}
|
|
3382
|
+
/**
|
|
3383
|
+
* FIM completion
|
|
3384
|
+
*
|
|
3385
|
+
* Proxy a Fill-in-the-Middle completion request to the Kilo Gateway
|
|
3386
|
+
*/
|
|
3387
|
+
fim(parameters, options) {
|
|
3388
|
+
const params = buildClientParams([parameters], [
|
|
3389
|
+
{
|
|
3390
|
+
args: [
|
|
3391
|
+
{ in: "query", key: "directory" },
|
|
3392
|
+
{ in: "query", key: "workspace" },
|
|
3393
|
+
{ in: "body", key: "prefix" },
|
|
3394
|
+
{ in: "body", key: "suffix" },
|
|
3395
|
+
{ in: "body", key: "model" },
|
|
3396
|
+
{ in: "body", key: "maxTokens" },
|
|
3397
|
+
{ in: "body", key: "temperature" },
|
|
3398
|
+
],
|
|
3399
|
+
},
|
|
3400
|
+
]);
|
|
3401
|
+
return (options?.client ?? this.client).sse.post({
|
|
3402
|
+
url: "/kilo/fim",
|
|
3263
3403
|
...options,
|
|
3264
3404
|
...params,
|
|
3265
3405
|
headers: {
|
|
@@ -3269,6 +3409,87 @@ export class EnhancePrompt extends HeyApiClient {
|
|
|
3269
3409
|
},
|
|
3270
3410
|
});
|
|
3271
3411
|
}
|
|
3412
|
+
/**
|
|
3413
|
+
* Get Kilo notifications
|
|
3414
|
+
*
|
|
3415
|
+
* Fetch notifications from Kilo Gateway for CLI display
|
|
3416
|
+
*/
|
|
3417
|
+
notifications(parameters, options) {
|
|
3418
|
+
const params = buildClientParams([parameters], [
|
|
3419
|
+
{
|
|
3420
|
+
args: [
|
|
3421
|
+
{ in: "query", key: "directory" },
|
|
3422
|
+
{ in: "query", key: "workspace" },
|
|
3423
|
+
],
|
|
3424
|
+
},
|
|
3425
|
+
]);
|
|
3426
|
+
return (options?.client ?? this.client).get({
|
|
3427
|
+
url: "/kilo/notifications",
|
|
3428
|
+
...options,
|
|
3429
|
+
...params,
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* Get cloud sessions
|
|
3434
|
+
*
|
|
3435
|
+
* Fetch cloud CLI sessions from Kilo API
|
|
3436
|
+
*/
|
|
3437
|
+
cloudSessions(parameters, options) {
|
|
3438
|
+
const params = buildClientParams([parameters], [
|
|
3439
|
+
{
|
|
3440
|
+
args: [
|
|
3441
|
+
{ in: "query", key: "directory" },
|
|
3442
|
+
{ in: "query", key: "workspace" },
|
|
3443
|
+
{ in: "query", key: "cursor" },
|
|
3444
|
+
{ in: "query", key: "limit" },
|
|
3445
|
+
{ in: "query", key: "gitUrl" },
|
|
3446
|
+
],
|
|
3447
|
+
},
|
|
3448
|
+
]);
|
|
3449
|
+
return (options?.client ?? this.client).get({
|
|
3450
|
+
url: "/kilo/cloud-sessions",
|
|
3451
|
+
...options,
|
|
3452
|
+
...params,
|
|
3453
|
+
});
|
|
3454
|
+
}
|
|
3455
|
+
_audio;
|
|
3456
|
+
get audio() {
|
|
3457
|
+
return (this._audio ??= new Audio({ client: this.client }));
|
|
3458
|
+
}
|
|
3459
|
+
_organization;
|
|
3460
|
+
get organization() {
|
|
3461
|
+
return (this._organization ??= new Organization({ client: this.client }));
|
|
3462
|
+
}
|
|
3463
|
+
_claw;
|
|
3464
|
+
get claw() {
|
|
3465
|
+
return (this._claw ??= new Claw({ client: this.client }));
|
|
3466
|
+
}
|
|
3467
|
+
_cloud;
|
|
3468
|
+
get cloud() {
|
|
3469
|
+
return (this._cloud ??= new Cloud({ client: this.client }));
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
export class Heap extends HeyApiClient {
|
|
3473
|
+
/**
|
|
3474
|
+
* Write heap snapshot
|
|
3475
|
+
*
|
|
3476
|
+
* Write a heap snapshot for the CLI process to the log directory.
|
|
3477
|
+
*/
|
|
3478
|
+
snapshot(parameters, options) {
|
|
3479
|
+
const params = buildClientParams([parameters], [
|
|
3480
|
+
{
|
|
3481
|
+
args: [
|
|
3482
|
+
{ in: "query", key: "directory" },
|
|
3483
|
+
{ in: "query", key: "workspace" },
|
|
3484
|
+
],
|
|
3485
|
+
},
|
|
3486
|
+
]);
|
|
3487
|
+
return (options?.client ?? this.client).post({
|
|
3488
|
+
url: "/kilocode/heap/snapshot",
|
|
3489
|
+
...options,
|
|
3490
|
+
...params,
|
|
3491
|
+
});
|
|
3492
|
+
}
|
|
3272
3493
|
}
|
|
3273
3494
|
export class SessionImport extends HeyApiClient {
|
|
3274
3495
|
/**
|
|
@@ -3417,28 +3638,6 @@ export class SessionImport extends HeyApiClient {
|
|
|
3417
3638
|
});
|
|
3418
3639
|
}
|
|
3419
3640
|
}
|
|
3420
|
-
export class Heap extends HeyApiClient {
|
|
3421
|
-
/**
|
|
3422
|
-
* Write heap snapshot
|
|
3423
|
-
*
|
|
3424
|
-
* Write a heap snapshot for the CLI process to the log directory.
|
|
3425
|
-
*/
|
|
3426
|
-
snapshot(parameters, options) {
|
|
3427
|
-
const params = buildClientParams([parameters], [
|
|
3428
|
-
{
|
|
3429
|
-
args: [
|
|
3430
|
-
{ in: "query", key: "directory" },
|
|
3431
|
-
{ in: "query", key: "workspace" },
|
|
3432
|
-
],
|
|
3433
|
-
},
|
|
3434
|
-
]);
|
|
3435
|
-
return (options?.client ?? this.client).post({
|
|
3436
|
-
url: "/kilocode/heap/snapshot",
|
|
3437
|
-
...options,
|
|
3438
|
-
...params,
|
|
3439
|
-
});
|
|
3440
|
-
}
|
|
3441
|
-
}
|
|
3442
3641
|
export class Kilocode extends HeyApiClient {
|
|
3443
3642
|
/**
|
|
3444
3643
|
* Remove a skill
|
|
@@ -3492,137 +3691,106 @@ export class Kilocode extends HeyApiClient {
|
|
|
3492
3691
|
},
|
|
3493
3692
|
});
|
|
3494
3693
|
}
|
|
3495
|
-
_sessionImport;
|
|
3496
|
-
get sessionImport() {
|
|
3497
|
-
return (this._sessionImport ??= new SessionImport({ client: this.client }));
|
|
3498
|
-
}
|
|
3499
3694
|
_heap;
|
|
3500
3695
|
get heap() {
|
|
3501
3696
|
return (this._heap ??= new Heap({ client: this.client }));
|
|
3502
3697
|
}
|
|
3698
|
+
_sessionImport;
|
|
3699
|
+
get sessionImport() {
|
|
3700
|
+
return (this._sessionImport ??= new SessionImport({ client: this.client }));
|
|
3701
|
+
}
|
|
3503
3702
|
}
|
|
3504
|
-
export class
|
|
3703
|
+
export class Network extends HeyApiClient {
|
|
3505
3704
|
/**
|
|
3506
|
-
*
|
|
3705
|
+
* List pending network waits
|
|
3507
3706
|
*
|
|
3508
|
-
*
|
|
3707
|
+
* Get all pending network reconnect requests across all sessions.
|
|
3509
3708
|
*/
|
|
3510
|
-
|
|
3709
|
+
list(parameters, options) {
|
|
3511
3710
|
const params = buildClientParams([parameters], [
|
|
3512
3711
|
{
|
|
3513
3712
|
args: [
|
|
3514
3713
|
{ in: "query", key: "directory" },
|
|
3515
3714
|
{ in: "query", key: "workspace" },
|
|
3516
|
-
{ in: "body", key: "organizationId" },
|
|
3517
3715
|
],
|
|
3518
3716
|
},
|
|
3519
3717
|
]);
|
|
3520
|
-
return (options?.client ?? this.client).
|
|
3521
|
-
url: "/
|
|
3718
|
+
return (options?.client ?? this.client).get({
|
|
3719
|
+
url: "/network",
|
|
3522
3720
|
...options,
|
|
3523
3721
|
...params,
|
|
3524
|
-
headers: {
|
|
3525
|
-
"Content-Type": "application/json",
|
|
3526
|
-
...options?.headers,
|
|
3527
|
-
...params.headers,
|
|
3528
|
-
},
|
|
3529
3722
|
});
|
|
3530
3723
|
}
|
|
3531
|
-
}
|
|
3532
|
-
export class Audio extends HeyApiClient {
|
|
3533
3724
|
/**
|
|
3534
|
-
*
|
|
3725
|
+
* Resume after network wait
|
|
3535
3726
|
*
|
|
3536
|
-
*
|
|
3727
|
+
* Resume a pending session after reconnecting network-dependent services.
|
|
3537
3728
|
*/
|
|
3538
|
-
|
|
3729
|
+
reply(parameters, options) {
|
|
3539
3730
|
const params = buildClientParams([parameters], [
|
|
3540
3731
|
{
|
|
3541
3732
|
args: [
|
|
3733
|
+
{ in: "path", key: "requestID" },
|
|
3542
3734
|
{ in: "query", key: "directory" },
|
|
3543
3735
|
{ in: "query", key: "workspace" },
|
|
3544
|
-
{ in: "body", key: "model" },
|
|
3545
|
-
{ in: "body", key: "input_audio" },
|
|
3546
|
-
{ in: "body", key: "language" },
|
|
3547
|
-
{ in: "body", key: "prompt" },
|
|
3548
|
-
{ in: "body", key: "temperature" },
|
|
3549
3736
|
],
|
|
3550
3737
|
},
|
|
3551
3738
|
]);
|
|
3552
3739
|
return (options?.client ?? this.client).post({
|
|
3553
|
-
url: "/
|
|
3740
|
+
url: "/network/{requestID}/reply",
|
|
3554
3741
|
...options,
|
|
3555
3742
|
...params,
|
|
3556
|
-
headers: {
|
|
3557
|
-
"Content-Type": "application/json",
|
|
3558
|
-
...options?.headers,
|
|
3559
|
-
...params.headers,
|
|
3560
|
-
},
|
|
3561
3743
|
});
|
|
3562
3744
|
}
|
|
3563
|
-
}
|
|
3564
|
-
export class Session3 extends HeyApiClient {
|
|
3565
3745
|
/**
|
|
3566
|
-
*
|
|
3746
|
+
* Reject network resume request
|
|
3567
3747
|
*
|
|
3568
|
-
*
|
|
3748
|
+
* Stop a pending session instead of resuming after network reconnect.
|
|
3569
3749
|
*/
|
|
3570
|
-
|
|
3750
|
+
reject(parameters, options) {
|
|
3571
3751
|
const params = buildClientParams([parameters], [
|
|
3572
3752
|
{
|
|
3573
3753
|
args: [
|
|
3574
|
-
{ in: "path", key: "
|
|
3754
|
+
{ in: "path", key: "requestID" },
|
|
3575
3755
|
{ in: "query", key: "directory" },
|
|
3576
3756
|
{ in: "query", key: "workspace" },
|
|
3577
3757
|
],
|
|
3578
3758
|
},
|
|
3579
3759
|
]);
|
|
3580
|
-
return (options?.client ?? this.client).
|
|
3581
|
-
url: "/
|
|
3760
|
+
return (options?.client ?? this.client).post({
|
|
3761
|
+
url: "/network/{requestID}/reject",
|
|
3582
3762
|
...options,
|
|
3583
3763
|
...params,
|
|
3584
3764
|
});
|
|
3585
3765
|
}
|
|
3766
|
+
}
|
|
3767
|
+
export class Remote extends HeyApiClient {
|
|
3586
3768
|
/**
|
|
3587
|
-
*
|
|
3769
|
+
* Enable remote connection
|
|
3588
3770
|
*
|
|
3589
|
-
*
|
|
3771
|
+
* Enable WebSocket connection to UserConnectionDO for real-time session relay and commands.
|
|
3590
3772
|
*/
|
|
3591
|
-
|
|
3773
|
+
enable(parameters, options) {
|
|
3592
3774
|
const params = buildClientParams([parameters], [
|
|
3593
3775
|
{
|
|
3594
3776
|
args: [
|
|
3595
3777
|
{ in: "query", key: "directory" },
|
|
3596
3778
|
{ in: "query", key: "workspace" },
|
|
3597
|
-
{ in: "body", key: "sessionId" },
|
|
3598
3779
|
],
|
|
3599
3780
|
},
|
|
3600
3781
|
]);
|
|
3601
3782
|
return (options?.client ?? this.client).post({
|
|
3602
|
-
url: "/
|
|
3783
|
+
url: "/remote/enable",
|
|
3603
3784
|
...options,
|
|
3604
3785
|
...params,
|
|
3605
|
-
headers: {
|
|
3606
|
-
"Content-Type": "application/json",
|
|
3607
|
-
...options?.headers,
|
|
3608
|
-
...params.headers,
|
|
3609
|
-
},
|
|
3610
3786
|
});
|
|
3611
3787
|
}
|
|
3612
|
-
}
|
|
3613
|
-
export class Cloud extends HeyApiClient {
|
|
3614
|
-
_session;
|
|
3615
|
-
get session() {
|
|
3616
|
-
return (this._session ??= new Session3({ client: this.client }));
|
|
3617
|
-
}
|
|
3618
|
-
}
|
|
3619
|
-
export class Claw extends HeyApiClient {
|
|
3620
3788
|
/**
|
|
3621
|
-
*
|
|
3789
|
+
* Disable remote connection
|
|
3622
3790
|
*
|
|
3623
|
-
*
|
|
3791
|
+
* Close the remote WebSocket connection to UserConnectionDO.
|
|
3624
3792
|
*/
|
|
3625
|
-
|
|
3793
|
+
disable(parameters, options) {
|
|
3626
3794
|
const params = buildClientParams([parameters], [
|
|
3627
3795
|
{
|
|
3628
3796
|
args: [
|
|
@@ -3631,18 +3799,18 @@ export class Claw extends HeyApiClient {
|
|
|
3631
3799
|
],
|
|
3632
3800
|
},
|
|
3633
3801
|
]);
|
|
3634
|
-
return (options?.client ?? this.client).
|
|
3635
|
-
url: "/
|
|
3802
|
+
return (options?.client ?? this.client).post({
|
|
3803
|
+
url: "/remote/disable",
|
|
3636
3804
|
...options,
|
|
3637
3805
|
...params,
|
|
3638
3806
|
});
|
|
3639
3807
|
}
|
|
3640
3808
|
/**
|
|
3641
|
-
* Get
|
|
3809
|
+
* Get remote connection status
|
|
3642
3810
|
*
|
|
3643
|
-
*
|
|
3811
|
+
* Get the current state of the remote WebSocket connection.
|
|
3644
3812
|
*/
|
|
3645
|
-
|
|
3813
|
+
status(parameters, options) {
|
|
3646
3814
|
const params = buildClientParams([parameters], [
|
|
3647
3815
|
{
|
|
3648
3816
|
args: [
|
|
@@ -3652,19 +3820,19 @@ export class Claw extends HeyApiClient {
|
|
|
3652
3820
|
},
|
|
3653
3821
|
]);
|
|
3654
3822
|
return (options?.client ?? this.client).get({
|
|
3655
|
-
url: "/
|
|
3823
|
+
url: "/remote/status",
|
|
3656
3824
|
...options,
|
|
3657
3825
|
...params,
|
|
3658
3826
|
});
|
|
3659
3827
|
}
|
|
3660
3828
|
}
|
|
3661
|
-
export class
|
|
3829
|
+
export class Suggestion extends HeyApiClient {
|
|
3662
3830
|
/**
|
|
3663
|
-
*
|
|
3831
|
+
* List pending suggestions
|
|
3664
3832
|
*
|
|
3665
|
-
*
|
|
3833
|
+
* Get all pending suggestion requests across all sessions.
|
|
3666
3834
|
*/
|
|
3667
|
-
|
|
3835
|
+
list(parameters, options) {
|
|
3668
3836
|
const params = buildClientParams([parameters], [
|
|
3669
3837
|
{
|
|
3670
3838
|
args: [
|
|
@@ -3674,120 +3842,114 @@ export class Kilo extends HeyApiClient {
|
|
|
3674
3842
|
},
|
|
3675
3843
|
]);
|
|
3676
3844
|
return (options?.client ?? this.client).get({
|
|
3677
|
-
url: "/
|
|
3845
|
+
url: "/suggestion",
|
|
3678
3846
|
...options,
|
|
3679
3847
|
...params,
|
|
3680
3848
|
});
|
|
3681
3849
|
}
|
|
3682
3850
|
/**
|
|
3683
|
-
*
|
|
3851
|
+
* Accept suggestion request
|
|
3684
3852
|
*
|
|
3685
|
-
*
|
|
3853
|
+
* Accept a suggestion request from the AI assistant.
|
|
3686
3854
|
*/
|
|
3687
|
-
|
|
3855
|
+
accept(parameters, options) {
|
|
3688
3856
|
const params = buildClientParams([parameters], [
|
|
3689
3857
|
{
|
|
3690
3858
|
args: [
|
|
3859
|
+
{ in: "path", key: "requestID" },
|
|
3691
3860
|
{ in: "query", key: "directory" },
|
|
3692
3861
|
{ in: "query", key: "workspace" },
|
|
3862
|
+
{ in: "body", key: "index" },
|
|
3693
3863
|
],
|
|
3694
3864
|
},
|
|
3695
3865
|
]);
|
|
3696
|
-
return (options?.client ?? this.client).
|
|
3697
|
-
url: "/
|
|
3866
|
+
return (options?.client ?? this.client).post({
|
|
3867
|
+
url: "/suggestion/{requestID}/accept",
|
|
3698
3868
|
...options,
|
|
3699
3869
|
...params,
|
|
3870
|
+
headers: {
|
|
3871
|
+
"Content-Type": "application/json",
|
|
3872
|
+
...options?.headers,
|
|
3873
|
+
...params.headers,
|
|
3874
|
+
},
|
|
3700
3875
|
});
|
|
3701
3876
|
}
|
|
3702
3877
|
/**
|
|
3703
|
-
*
|
|
3878
|
+
* Dismiss suggestion request
|
|
3704
3879
|
*
|
|
3705
|
-
*
|
|
3880
|
+
* Dismiss a suggestion request from the AI assistant.
|
|
3706
3881
|
*/
|
|
3707
|
-
|
|
3882
|
+
dismiss(parameters, options) {
|
|
3708
3883
|
const params = buildClientParams([parameters], [
|
|
3709
3884
|
{
|
|
3710
3885
|
args: [
|
|
3886
|
+
{ in: "path", key: "requestID" },
|
|
3711
3887
|
{ in: "query", key: "directory" },
|
|
3712
3888
|
{ in: "query", key: "workspace" },
|
|
3713
|
-
{ in: "body", key: "prefix" },
|
|
3714
|
-
{ in: "body", key: "suffix" },
|
|
3715
|
-
{ in: "body", key: "model" },
|
|
3716
|
-
{ in: "body", key: "maxTokens" },
|
|
3717
|
-
{ in: "body", key: "temperature" },
|
|
3718
3889
|
],
|
|
3719
3890
|
},
|
|
3720
3891
|
]);
|
|
3721
|
-
return (options?.client ?? this.client).
|
|
3722
|
-
url: "/
|
|
3892
|
+
return (options?.client ?? this.client).post({
|
|
3893
|
+
url: "/suggestion/{requestID}/dismiss",
|
|
3723
3894
|
...options,
|
|
3724
3895
|
...params,
|
|
3725
|
-
headers: {
|
|
3726
|
-
"Content-Type": "application/json",
|
|
3727
|
-
...options?.headers,
|
|
3728
|
-
...params.headers,
|
|
3729
|
-
},
|
|
3730
3896
|
});
|
|
3731
3897
|
}
|
|
3898
|
+
}
|
|
3899
|
+
export class Telemetry extends HeyApiClient {
|
|
3732
3900
|
/**
|
|
3733
|
-
*
|
|
3901
|
+
* Capture telemetry event
|
|
3734
3902
|
*
|
|
3735
|
-
*
|
|
3903
|
+
* Forward a telemetry event to PostHog via kilo-telemetry.
|
|
3736
3904
|
*/
|
|
3737
|
-
|
|
3905
|
+
capture(parameters, options) {
|
|
3738
3906
|
const params = buildClientParams([parameters], [
|
|
3739
3907
|
{
|
|
3740
3908
|
args: [
|
|
3741
3909
|
{ in: "query", key: "directory" },
|
|
3742
3910
|
{ in: "query", key: "workspace" },
|
|
3911
|
+
{ in: "body", key: "event" },
|
|
3912
|
+
{ in: "body", key: "properties" },
|
|
3743
3913
|
],
|
|
3744
3914
|
},
|
|
3745
3915
|
]);
|
|
3746
|
-
return (options?.client ?? this.client).
|
|
3747
|
-
url: "/
|
|
3916
|
+
return (options?.client ?? this.client).post({
|
|
3917
|
+
url: "/telemetry/capture",
|
|
3748
3918
|
...options,
|
|
3749
3919
|
...params,
|
|
3920
|
+
headers: {
|
|
3921
|
+
"Content-Type": "application/json",
|
|
3922
|
+
...options?.headers,
|
|
3923
|
+
...params.headers,
|
|
3924
|
+
},
|
|
3750
3925
|
});
|
|
3751
3926
|
}
|
|
3752
3927
|
/**
|
|
3753
|
-
*
|
|
3928
|
+
* Set PostHog telemetry enabled state
|
|
3754
3929
|
*
|
|
3755
|
-
*
|
|
3930
|
+
* Update the PostHog client's opt-in/out state at runtime. The CLI reads KILO_TELEMETRY_LEVEL once at spawn — this route lets clients (e.g. the VS Code extension) propagate runtime telemetry consent changes.
|
|
3756
3931
|
*/
|
|
3757
|
-
|
|
3932
|
+
setEnabled(parameters, options) {
|
|
3758
3933
|
const params = buildClientParams([parameters], [
|
|
3759
3934
|
{
|
|
3760
3935
|
args: [
|
|
3761
3936
|
{ in: "query", key: "directory" },
|
|
3762
3937
|
{ in: "query", key: "workspace" },
|
|
3763
|
-
{ in: "
|
|
3764
|
-
{ in: "query", key: "limit" },
|
|
3765
|
-
{ in: "query", key: "gitUrl" },
|
|
3938
|
+
{ in: "body", key: "enabled" },
|
|
3766
3939
|
],
|
|
3767
3940
|
},
|
|
3768
3941
|
]);
|
|
3769
|
-
return (options?.client ?? this.client).
|
|
3770
|
-
url: "/
|
|
3942
|
+
return (options?.client ?? this.client).post({
|
|
3943
|
+
url: "/telemetry/setEnabled",
|
|
3771
3944
|
...options,
|
|
3772
3945
|
...params,
|
|
3946
|
+
headers: {
|
|
3947
|
+
"Content-Type": "application/json",
|
|
3948
|
+
...options?.headers,
|
|
3949
|
+
...params.headers,
|
|
3950
|
+
},
|
|
3773
3951
|
});
|
|
3774
3952
|
}
|
|
3775
|
-
_organization;
|
|
3776
|
-
get organization() {
|
|
3777
|
-
return (this._organization ??= new Organization({ client: this.client }));
|
|
3778
|
-
}
|
|
3779
|
-
_audio;
|
|
3780
|
-
get audio() {
|
|
3781
|
-
return (this._audio ??= new Audio({ client: this.client }));
|
|
3782
|
-
}
|
|
3783
|
-
_cloud;
|
|
3784
|
-
get cloud() {
|
|
3785
|
-
return (this._cloud ??= new Cloud({ client: this.client }));
|
|
3786
|
-
}
|
|
3787
|
-
_claw;
|
|
3788
|
-
get claw() {
|
|
3789
|
-
return (this._claw ??= new Claw({ client: this.client }));
|
|
3790
|
-
}
|
|
3791
3953
|
}
|
|
3792
3954
|
export class KiloClient extends HeyApiClient {
|
|
3793
3955
|
static __registry = new HeyApiRegistry();
|
|
@@ -3795,10 +3957,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
3795
3957
|
super(args);
|
|
3796
3958
|
KiloClient.__registry.set(this, args?.key);
|
|
3797
3959
|
}
|
|
3798
|
-
_global;
|
|
3799
|
-
get global() {
|
|
3800
|
-
return (this._global ??= new Global({ client: this.client }));
|
|
3801
|
-
}
|
|
3802
3960
|
_auth;
|
|
3803
3961
|
get auth() {
|
|
3804
3962
|
return (this._auth ??= new Auth({ client: this.client }));
|
|
@@ -3807,22 +3965,22 @@ export class KiloClient extends HeyApiClient {
|
|
|
3807
3965
|
get app() {
|
|
3808
3966
|
return (this._app ??= new App({ client: this.client }));
|
|
3809
3967
|
}
|
|
3810
|
-
|
|
3811
|
-
get
|
|
3812
|
-
return (this.
|
|
3813
|
-
}
|
|
3814
|
-
_project;
|
|
3815
|
-
get project() {
|
|
3816
|
-
return (this._project ??= new Project({ client: this.client }));
|
|
3968
|
+
_global;
|
|
3969
|
+
get global() {
|
|
3970
|
+
return (this._global ??= new Global({ client: this.client }));
|
|
3817
3971
|
}
|
|
3818
|
-
|
|
3819
|
-
get
|
|
3820
|
-
return (this.
|
|
3972
|
+
_event;
|
|
3973
|
+
get event() {
|
|
3974
|
+
return (this._event ??= new Event({ client: this.client }));
|
|
3821
3975
|
}
|
|
3822
3976
|
_config;
|
|
3823
3977
|
get config() {
|
|
3824
3978
|
return (this._config ??= new Config2({ client: this.client }));
|
|
3825
3979
|
}
|
|
3980
|
+
_experimental;
|
|
3981
|
+
get experimental() {
|
|
3982
|
+
return (this._experimental ??= new Experimental({ client: this.client }));
|
|
3983
|
+
}
|
|
3826
3984
|
_tool;
|
|
3827
3985
|
get tool() {
|
|
3828
3986
|
return (this._tool ??= new Tool({ client: this.client }));
|
|
@@ -3831,30 +3989,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
3831
3989
|
get worktree() {
|
|
3832
3990
|
return (this._worktree ??= new Worktree({ client: this.client }));
|
|
3833
3991
|
}
|
|
3834
|
-
_session;
|
|
3835
|
-
get session() {
|
|
3836
|
-
return (this._session ??= new Session2({ client: this.client }));
|
|
3837
|
-
}
|
|
3838
|
-
_part;
|
|
3839
|
-
get part() {
|
|
3840
|
-
return (this._part ??= new Part({ client: this.client }));
|
|
3841
|
-
}
|
|
3842
|
-
_permission;
|
|
3843
|
-
get permission() {
|
|
3844
|
-
return (this._permission ??= new Permission({ client: this.client }));
|
|
3845
|
-
}
|
|
3846
|
-
_question;
|
|
3847
|
-
get question() {
|
|
3848
|
-
return (this._question ??= new Question({ client: this.client }));
|
|
3849
|
-
}
|
|
3850
|
-
_provider;
|
|
3851
|
-
get provider() {
|
|
3852
|
-
return (this._provider ??= new Provider({ client: this.client }));
|
|
3853
|
-
}
|
|
3854
|
-
_sync;
|
|
3855
|
-
get sync() {
|
|
3856
|
-
return (this._sync ??= new Sync({ client: this.client }));
|
|
3857
|
-
}
|
|
3858
3992
|
_find;
|
|
3859
3993
|
get find() {
|
|
3860
3994
|
return (this._find ??= new Find({ client: this.client }));
|
|
@@ -3863,18 +3997,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
3863
3997
|
get file() {
|
|
3864
3998
|
return (this._file ??= new File({ client: this.client }));
|
|
3865
3999
|
}
|
|
3866
|
-
_event;
|
|
3867
|
-
get event() {
|
|
3868
|
-
return (this._event ??= new Event({ client: this.client }));
|
|
3869
|
-
}
|
|
3870
|
-
_mcp;
|
|
3871
|
-
get mcp() {
|
|
3872
|
-
return (this._mcp ??= new Mcp({ client: this.client }));
|
|
3873
|
-
}
|
|
3874
|
-
_tui;
|
|
3875
|
-
get tui() {
|
|
3876
|
-
return (this._tui ??= new Tui({ client: this.client }));
|
|
3877
|
-
}
|
|
3878
4000
|
_instance;
|
|
3879
4001
|
get instance() {
|
|
3880
4002
|
return (this._instance ??= new Instance({ client: this.client }));
|
|
@@ -3899,25 +4021,49 @@ export class KiloClient extends HeyApiClient {
|
|
|
3899
4021
|
get formatter() {
|
|
3900
4022
|
return (this._formatter ??= new Formatter({ client: this.client }));
|
|
3901
4023
|
}
|
|
3902
|
-
|
|
3903
|
-
get
|
|
3904
|
-
return (this.
|
|
4024
|
+
_mcp;
|
|
4025
|
+
get mcp() {
|
|
4026
|
+
return (this._mcp ??= new Mcp({ client: this.client }));
|
|
3905
4027
|
}
|
|
3906
|
-
|
|
3907
|
-
get
|
|
3908
|
-
return (this.
|
|
4028
|
+
_project;
|
|
4029
|
+
get project() {
|
|
4030
|
+
return (this._project ??= new Project({ client: this.client }));
|
|
3909
4031
|
}
|
|
3910
|
-
|
|
3911
|
-
get
|
|
3912
|
-
return (this.
|
|
4032
|
+
_pty;
|
|
4033
|
+
get pty() {
|
|
4034
|
+
return (this._pty ??= new Pty({ client: this.client }));
|
|
3913
4035
|
}
|
|
3914
|
-
|
|
3915
|
-
get
|
|
3916
|
-
return (this.
|
|
4036
|
+
_question;
|
|
4037
|
+
get question() {
|
|
4038
|
+
return (this._question ??= new Question({ client: this.client }));
|
|
3917
4039
|
}
|
|
3918
|
-
|
|
3919
|
-
get
|
|
3920
|
-
return (this.
|
|
4040
|
+
_permission;
|
|
4041
|
+
get permission() {
|
|
4042
|
+
return (this._permission ??= new Permission({ client: this.client }));
|
|
4043
|
+
}
|
|
4044
|
+
_provider;
|
|
4045
|
+
get provider() {
|
|
4046
|
+
return (this._provider ??= new Provider({ client: this.client }));
|
|
4047
|
+
}
|
|
4048
|
+
_session;
|
|
4049
|
+
get session() {
|
|
4050
|
+
return (this._session ??= new Session2({ client: this.client }));
|
|
4051
|
+
}
|
|
4052
|
+
_part;
|
|
4053
|
+
get part() {
|
|
4054
|
+
return (this._part ??= new Part({ client: this.client }));
|
|
4055
|
+
}
|
|
4056
|
+
_sync;
|
|
4057
|
+
get sync() {
|
|
4058
|
+
return (this._sync ??= new Sync({ client: this.client }));
|
|
4059
|
+
}
|
|
4060
|
+
_v2;
|
|
4061
|
+
get v2() {
|
|
4062
|
+
return (this._v2 ??= new V2({ client: this.client }));
|
|
4063
|
+
}
|
|
4064
|
+
_tui;
|
|
4065
|
+
get tui() {
|
|
4066
|
+
return (this._tui ??= new Tui({ client: this.client }));
|
|
3921
4067
|
}
|
|
3922
4068
|
_commitMessage;
|
|
3923
4069
|
get commitMessage() {
|
|
@@ -3927,12 +4073,32 @@ export class KiloClient extends HeyApiClient {
|
|
|
3927
4073
|
get enhancePrompt() {
|
|
3928
4074
|
return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
|
|
3929
4075
|
}
|
|
3930
|
-
|
|
3931
|
-
get
|
|
3932
|
-
return (this.
|
|
4076
|
+
_indexing;
|
|
4077
|
+
get indexing() {
|
|
4078
|
+
return (this._indexing ??= new Indexing({ client: this.client }));
|
|
3933
4079
|
}
|
|
3934
4080
|
_kilo;
|
|
3935
4081
|
get kilo() {
|
|
3936
4082
|
return (this._kilo ??= new Kilo({ client: this.client }));
|
|
3937
4083
|
}
|
|
4084
|
+
_kilocode;
|
|
4085
|
+
get kilocode() {
|
|
4086
|
+
return (this._kilocode ??= new Kilocode({ client: this.client }));
|
|
4087
|
+
}
|
|
4088
|
+
_network;
|
|
4089
|
+
get network() {
|
|
4090
|
+
return (this._network ??= new Network({ client: this.client }));
|
|
4091
|
+
}
|
|
4092
|
+
_remote;
|
|
4093
|
+
get remote() {
|
|
4094
|
+
return (this._remote ??= new Remote({ client: this.client }));
|
|
4095
|
+
}
|
|
4096
|
+
_suggestion;
|
|
4097
|
+
get suggestion() {
|
|
4098
|
+
return (this._suggestion ??= new Suggestion({ client: this.client }));
|
|
4099
|
+
}
|
|
4100
|
+
_telemetry;
|
|
4101
|
+
get telemetry() {
|
|
4102
|
+
return (this._telemetry ??= new Telemetry({ client: this.client }));
|
|
4103
|
+
}
|
|
3938
4104
|
}
|