@kilocode/sdk 7.4.7 → 7.4.9
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.d.ts +1 -0
- package/dist/v2/client.js +4 -2
- package/dist/v2/gen/sdk.gen.d.ts +584 -277
- package/dist/v2/gen/sdk.gen.js +1256 -715
- package/dist/v2/gen/types.gen.d.ts +6082 -4342
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -132,80 +132,24 @@ export class App extends HeyApiClient {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
export class
|
|
136
|
-
/**
|
|
137
|
-
* Get global configuration
|
|
138
|
-
*
|
|
139
|
-
* Retrieve the current global Kilo configuration settings and preferences.
|
|
140
|
-
*/
|
|
141
|
-
get(options) {
|
|
142
|
-
return (options?.client ?? this.client).get({
|
|
143
|
-
url: "/global/config",
|
|
144
|
-
...options,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
135
|
+
export class ControlPlane extends HeyApiClient {
|
|
147
136
|
/**
|
|
148
|
-
*
|
|
137
|
+
* Move session
|
|
149
138
|
*
|
|
150
|
-
*
|
|
139
|
+
* Move a session to another project directory, optionally transferring local changes.
|
|
151
140
|
*/
|
|
152
|
-
|
|
153
|
-
const params = buildClientParams([parameters], [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
...options?.headers,
|
|
161
|
-
...params.headers,
|
|
141
|
+
moveSession(parameters, options) {
|
|
142
|
+
const params = buildClientParams([parameters], [
|
|
143
|
+
{
|
|
144
|
+
args: [
|
|
145
|
+
{ in: "body", key: "sessionID" },
|
|
146
|
+
{ in: "body", key: "destination" },
|
|
147
|
+
{ in: "body", key: "moveChanges" },
|
|
148
|
+
],
|
|
162
149
|
},
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export class Global extends HeyApiClient {
|
|
167
|
-
/**
|
|
168
|
-
* Get health
|
|
169
|
-
*
|
|
170
|
-
* Get health information about the Kilo server.
|
|
171
|
-
*/
|
|
172
|
-
health(options) {
|
|
173
|
-
return (options?.client ?? this.client).get({
|
|
174
|
-
url: "/global/health",
|
|
175
|
-
...options,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Get global events
|
|
180
|
-
*
|
|
181
|
-
* Subscribe to global events from the Kilo system using server-sent events.
|
|
182
|
-
*/
|
|
183
|
-
event(options) {
|
|
184
|
-
return (options?.client ?? this.client).sse.get({
|
|
185
|
-
url: "/global/event",
|
|
186
|
-
...options,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Dispose instance
|
|
191
|
-
*
|
|
192
|
-
* Clean up and dispose all Kilo instances, releasing all resources.
|
|
193
|
-
*/
|
|
194
|
-
dispose(options) {
|
|
195
|
-
return (options?.client ?? this.client).post({
|
|
196
|
-
url: "/global/dispose",
|
|
197
|
-
...options,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Upgrade kilo
|
|
202
|
-
*
|
|
203
|
-
* Upgrade kilo to the specified version or latest if not specified.
|
|
204
|
-
*/
|
|
205
|
-
upgrade(parameters, options) {
|
|
206
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]);
|
|
150
|
+
]);
|
|
207
151
|
return (options?.client ?? this.client).post({
|
|
208
|
-
url: "/
|
|
152
|
+
url: "/experimental/control-plane/move-session",
|
|
209
153
|
...options,
|
|
210
154
|
...params,
|
|
211
155
|
headers: {
|
|
@@ -215,18 +159,14 @@ export class Global extends HeyApiClient {
|
|
|
215
159
|
},
|
|
216
160
|
});
|
|
217
161
|
}
|
|
218
|
-
_config;
|
|
219
|
-
get config() {
|
|
220
|
-
return (this._config ??= new Config({ client: this.client }));
|
|
221
|
-
}
|
|
222
162
|
}
|
|
223
|
-
export class
|
|
163
|
+
export class Console extends HeyApiClient {
|
|
224
164
|
/**
|
|
225
|
-
*
|
|
165
|
+
* Get active Console provider metadata
|
|
226
166
|
*
|
|
227
|
-
* Get
|
|
167
|
+
* Get the active Console org name and the set of provider IDs managed by that Console org.
|
|
228
168
|
*/
|
|
229
|
-
|
|
169
|
+
get(parameters, options) {
|
|
230
170
|
const params = buildClientParams([parameters], [
|
|
231
171
|
{
|
|
232
172
|
args: [
|
|
@@ -235,20 +175,18 @@ export class Event extends HeyApiClient {
|
|
|
235
175
|
],
|
|
236
176
|
},
|
|
237
177
|
]);
|
|
238
|
-
return (options?.client ?? this.client).
|
|
239
|
-
url: "/
|
|
178
|
+
return (options?.client ?? this.client).get({
|
|
179
|
+
url: "/experimental/console",
|
|
240
180
|
...options,
|
|
241
181
|
...params,
|
|
242
182
|
});
|
|
243
183
|
}
|
|
244
|
-
}
|
|
245
|
-
export class Config2 extends HeyApiClient {
|
|
246
184
|
/**
|
|
247
|
-
*
|
|
185
|
+
* List switchable Console orgs
|
|
248
186
|
*
|
|
249
|
-
*
|
|
187
|
+
* Get the available Console orgs across logged-in accounts, including the current active org.
|
|
250
188
|
*/
|
|
251
|
-
|
|
189
|
+
listOrgs(parameters, options) {
|
|
252
190
|
const params = buildClientParams([parameters], [
|
|
253
191
|
{
|
|
254
192
|
args: [
|
|
@@ -258,28 +196,29 @@ export class Config2 extends HeyApiClient {
|
|
|
258
196
|
},
|
|
259
197
|
]);
|
|
260
198
|
return (options?.client ?? this.client).get({
|
|
261
|
-
url: "/
|
|
199
|
+
url: "/experimental/console/orgs",
|
|
262
200
|
...options,
|
|
263
201
|
...params,
|
|
264
202
|
});
|
|
265
203
|
}
|
|
266
204
|
/**
|
|
267
|
-
*
|
|
205
|
+
* Switch active Console org
|
|
268
206
|
*
|
|
269
|
-
*
|
|
207
|
+
* Persist a new active Console account/org selection for the current local Kilo state.
|
|
270
208
|
*/
|
|
271
|
-
|
|
209
|
+
switchOrg(parameters, options) {
|
|
272
210
|
const params = buildClientParams([parameters], [
|
|
273
211
|
{
|
|
274
212
|
args: [
|
|
275
213
|
{ in: "query", key: "directory" },
|
|
276
214
|
{ in: "query", key: "workspace" },
|
|
277
|
-
{
|
|
215
|
+
{ in: "body", key: "accountID" },
|
|
216
|
+
{ in: "body", key: "orgID" },
|
|
278
217
|
],
|
|
279
218
|
},
|
|
280
219
|
]);
|
|
281
|
-
return (options?.client ?? this.client).
|
|
282
|
-
url: "/
|
|
220
|
+
return (options?.client ?? this.client).post({
|
|
221
|
+
url: "/experimental/console/switch",
|
|
283
222
|
...options,
|
|
284
223
|
...params,
|
|
285
224
|
headers: {
|
|
@@ -289,86 +228,108 @@ export class Config2 extends HeyApiClient {
|
|
|
289
228
|
},
|
|
290
229
|
});
|
|
291
230
|
}
|
|
231
|
+
}
|
|
232
|
+
export class Session extends HeyApiClient {
|
|
292
233
|
/**
|
|
293
|
-
*
|
|
234
|
+
* List sessions
|
|
294
235
|
*
|
|
295
|
-
* Get
|
|
236
|
+
* Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
|
|
296
237
|
*/
|
|
297
|
-
|
|
238
|
+
list(parameters, options) {
|
|
298
239
|
const params = buildClientParams([parameters], [
|
|
299
240
|
{
|
|
300
241
|
args: [
|
|
301
242
|
{ in: "query", key: "directory" },
|
|
302
243
|
{ in: "query", key: "workspace" },
|
|
244
|
+
{ in: "query", key: "projectID" },
|
|
245
|
+
{ in: "query", key: "worktrees" },
|
|
246
|
+
{ in: "query", key: "current" },
|
|
247
|
+
{ in: "query", key: "roots" },
|
|
248
|
+
{ in: "query", key: "start" },
|
|
249
|
+
{ in: "query", key: "cursor" },
|
|
250
|
+
{ in: "query", key: "search" },
|
|
251
|
+
{ in: "query", key: "limit" },
|
|
252
|
+
{ in: "query", key: "archived" },
|
|
303
253
|
],
|
|
304
254
|
},
|
|
305
255
|
]);
|
|
306
256
|
return (options?.client ?? this.client).get({
|
|
307
|
-
url: "/
|
|
257
|
+
url: "/experimental/session",
|
|
308
258
|
...options,
|
|
309
259
|
...params,
|
|
310
260
|
});
|
|
311
261
|
}
|
|
312
262
|
/**
|
|
313
|
-
*
|
|
263
|
+
* Background subagents
|
|
314
264
|
*
|
|
315
|
-
*
|
|
265
|
+
* Detach any synchronous subagents currently blocking the session and continue them in the background.
|
|
316
266
|
*/
|
|
317
|
-
|
|
267
|
+
background(parameters, options) {
|
|
318
268
|
const params = buildClientParams([parameters], [
|
|
319
269
|
{
|
|
320
270
|
args: [
|
|
271
|
+
{ in: "path", key: "sessionID" },
|
|
321
272
|
{ in: "query", key: "directory" },
|
|
322
273
|
{ in: "query", key: "workspace" },
|
|
323
274
|
],
|
|
324
275
|
},
|
|
325
276
|
]);
|
|
326
|
-
return (options?.client ?? this.client).
|
|
327
|
-
url: "/
|
|
277
|
+
return (options?.client ?? this.client).post({
|
|
278
|
+
url: "/experimental/session/{sessionID}/background",
|
|
328
279
|
...options,
|
|
329
280
|
...params,
|
|
330
281
|
});
|
|
331
282
|
}
|
|
283
|
+
}
|
|
284
|
+
export class Resource extends HeyApiClient {
|
|
332
285
|
/**
|
|
333
|
-
* Get
|
|
286
|
+
* Get MCP resources
|
|
334
287
|
*
|
|
335
|
-
*
|
|
288
|
+
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
336
289
|
*/
|
|
337
|
-
|
|
290
|
+
list(parameters, options) {
|
|
338
291
|
const params = buildClientParams([parameters], [
|
|
339
292
|
{
|
|
340
293
|
args: [
|
|
341
294
|
{ in: "query", key: "directory" },
|
|
342
295
|
{ in: "query", key: "workspace" },
|
|
343
|
-
{ in: "query", key: "scope" },
|
|
344
296
|
],
|
|
345
297
|
},
|
|
346
298
|
]);
|
|
347
299
|
return (options?.client ?? this.client).get({
|
|
348
|
-
url: "/
|
|
300
|
+
url: "/experimental/resource",
|
|
349
301
|
...options,
|
|
350
302
|
...params,
|
|
351
303
|
});
|
|
352
304
|
}
|
|
305
|
+
}
|
|
306
|
+
export class ProjectCopy extends HeyApiClient {
|
|
353
307
|
/**
|
|
354
|
-
*
|
|
308
|
+
* Remove project copy
|
|
355
309
|
*
|
|
356
|
-
*
|
|
310
|
+
* Remove a local physical copy of a project using the selected strategy.
|
|
357
311
|
*/
|
|
358
|
-
|
|
312
|
+
remove(parameters, options) {
|
|
359
313
|
const params = buildClientParams([parameters], [
|
|
360
314
|
{
|
|
361
315
|
args: [
|
|
362
|
-
{ in: "
|
|
316
|
+
{ in: "path", key: "projectID" },
|
|
317
|
+
{
|
|
318
|
+
in: "query",
|
|
319
|
+
key: "query_directory",
|
|
320
|
+
map: "directory",
|
|
321
|
+
},
|
|
363
322
|
{ in: "query", key: "workspace" },
|
|
364
|
-
{
|
|
365
|
-
|
|
366
|
-
|
|
323
|
+
{
|
|
324
|
+
in: "body",
|
|
325
|
+
key: "body_directory",
|
|
326
|
+
map: "directory",
|
|
327
|
+
},
|
|
367
328
|
],
|
|
368
329
|
},
|
|
369
330
|
]);
|
|
370
|
-
return (options?.client ?? this.client).
|
|
371
|
-
url: "/
|
|
331
|
+
return (options?.client ?? this.client).delete({
|
|
332
|
+
url: "/experimental/project/{projectID}/copy",
|
|
372
333
|
...options,
|
|
373
334
|
...params,
|
|
374
335
|
headers: {
|
|
@@ -379,147 +340,154 @@ export class Config2 extends HeyApiClient {
|
|
|
379
340
|
});
|
|
380
341
|
}
|
|
381
342
|
/**
|
|
382
|
-
*
|
|
343
|
+
* Create project copy
|
|
383
344
|
*
|
|
384
|
-
*
|
|
345
|
+
* Create a local physical copy of a project using the selected strategy.
|
|
385
346
|
*/
|
|
386
|
-
|
|
347
|
+
create(parameters, options) {
|
|
387
348
|
const params = buildClientParams([parameters], [
|
|
388
349
|
{
|
|
389
350
|
args: [
|
|
390
|
-
{ in: "
|
|
351
|
+
{ in: "path", key: "projectID" },
|
|
391
352
|
{ in: "query", key: "workspace" },
|
|
353
|
+
{ in: "body", key: "strategy" },
|
|
354
|
+
{ in: "body", key: "directory" },
|
|
355
|
+
{ in: "body", key: "name" },
|
|
356
|
+
{ in: "body", key: "context" },
|
|
392
357
|
],
|
|
393
358
|
},
|
|
394
359
|
]);
|
|
395
|
-
return (options?.client ?? this.client).
|
|
396
|
-
url: "/
|
|
360
|
+
return (options?.client ?? this.client).post({
|
|
361
|
+
url: "/experimental/project/{projectID}/copy",
|
|
397
362
|
...options,
|
|
398
363
|
...params,
|
|
364
|
+
headers: {
|
|
365
|
+
"Content-Type": "application/json",
|
|
366
|
+
...options?.headers,
|
|
367
|
+
...params.headers,
|
|
368
|
+
},
|
|
399
369
|
});
|
|
400
370
|
}
|
|
401
371
|
/**
|
|
402
|
-
*
|
|
372
|
+
* Refresh project copies
|
|
403
373
|
*
|
|
404
|
-
*
|
|
374
|
+
* Discover local project copies using one or all configured strategies.
|
|
405
375
|
*/
|
|
406
|
-
|
|
376
|
+
refresh(parameters, options) {
|
|
407
377
|
const params = buildClientParams([parameters], [
|
|
408
378
|
{
|
|
409
379
|
args: [
|
|
380
|
+
{ in: "path", key: "projectID" },
|
|
410
381
|
{ in: "query", key: "directory" },
|
|
411
382
|
{ in: "query", key: "workspace" },
|
|
412
383
|
],
|
|
413
384
|
},
|
|
414
385
|
]);
|
|
415
|
-
return (options?.client ?? this.client).
|
|
416
|
-
url: "/
|
|
386
|
+
return (options?.client ?? this.client).post({
|
|
387
|
+
url: "/experimental/project/{projectID}/copy/refresh",
|
|
417
388
|
...options,
|
|
418
389
|
...params,
|
|
419
390
|
});
|
|
420
391
|
}
|
|
392
|
+
}
|
|
393
|
+
export class Adapter extends HeyApiClient {
|
|
421
394
|
/**
|
|
422
|
-
*
|
|
395
|
+
* List workspace adapters
|
|
423
396
|
*
|
|
424
|
-
* List
|
|
397
|
+
* List all available workspace adapters for the current project.
|
|
425
398
|
*/
|
|
426
|
-
|
|
399
|
+
list(parameters, options) {
|
|
427
400
|
const params = buildClientParams([parameters], [
|
|
428
401
|
{
|
|
429
402
|
args: [
|
|
430
403
|
{ in: "query", key: "directory" },
|
|
431
404
|
{ in: "query", key: "workspace" },
|
|
432
|
-
{ in: "query", key: "scope" },
|
|
433
405
|
],
|
|
434
406
|
},
|
|
435
407
|
]);
|
|
436
408
|
return (options?.client ?? this.client).get({
|
|
437
|
-
url: "/
|
|
409
|
+
url: "/experimental/workspace/adapter",
|
|
438
410
|
...options,
|
|
439
411
|
...params,
|
|
440
412
|
});
|
|
441
413
|
}
|
|
414
|
+
}
|
|
415
|
+
export class Workspace extends HeyApiClient {
|
|
442
416
|
/**
|
|
443
|
-
*
|
|
417
|
+
* List workspaces
|
|
444
418
|
*
|
|
445
|
-
*
|
|
419
|
+
* List all workspaces.
|
|
446
420
|
*/
|
|
447
|
-
|
|
421
|
+
list(parameters, options) {
|
|
448
422
|
const params = buildClientParams([parameters], [
|
|
449
423
|
{
|
|
450
424
|
args: [
|
|
451
425
|
{ in: "query", key: "directory" },
|
|
452
426
|
{ in: "query", key: "workspace" },
|
|
453
|
-
{ in: "body", key: "scope" },
|
|
454
|
-
{ in: "body", key: "content" },
|
|
455
427
|
],
|
|
456
428
|
},
|
|
457
429
|
]);
|
|
458
|
-
return (options?.client ?? this.client).
|
|
459
|
-
url: "/
|
|
430
|
+
return (options?.client ?? this.client).get({
|
|
431
|
+
url: "/experimental/workspace",
|
|
460
432
|
...options,
|
|
461
433
|
...params,
|
|
462
|
-
headers: {
|
|
463
|
-
"Content-Type": "application/json",
|
|
464
|
-
...options?.headers,
|
|
465
|
-
...params.headers,
|
|
466
|
-
},
|
|
467
434
|
});
|
|
468
435
|
}
|
|
469
436
|
/**
|
|
470
|
-
*
|
|
437
|
+
* Create workspace
|
|
471
438
|
*
|
|
472
|
-
*
|
|
439
|
+
* Create a workspace for the current project.
|
|
473
440
|
*/
|
|
474
|
-
|
|
441
|
+
create(parameters, options) {
|
|
475
442
|
const params = buildClientParams([parameters], [
|
|
476
443
|
{
|
|
477
444
|
args: [
|
|
478
445
|
{ in: "query", key: "directory" },
|
|
479
446
|
{ in: "query", key: "workspace" },
|
|
447
|
+
{ in: "body", key: "id" },
|
|
448
|
+
{ in: "body", key: "type" },
|
|
449
|
+
{ in: "body", key: "branch" },
|
|
450
|
+
{ in: "body", key: "extra" },
|
|
480
451
|
],
|
|
481
452
|
},
|
|
482
453
|
]);
|
|
483
|
-
return (options?.client ?? this.client).
|
|
484
|
-
url: "/
|
|
454
|
+
return (options?.client ?? this.client).post({
|
|
455
|
+
url: "/experimental/workspace",
|
|
485
456
|
...options,
|
|
486
457
|
...params,
|
|
458
|
+
headers: {
|
|
459
|
+
"Content-Type": "application/json",
|
|
460
|
+
...options?.headers,
|
|
461
|
+
...params.headers,
|
|
462
|
+
},
|
|
487
463
|
});
|
|
488
464
|
}
|
|
489
465
|
/**
|
|
490
|
-
*
|
|
466
|
+
* Sync workspace list
|
|
491
467
|
*
|
|
492
|
-
*
|
|
468
|
+
* Register missing workspaces returned by workspace adapters.
|
|
493
469
|
*/
|
|
494
|
-
|
|
470
|
+
syncList(parameters, options) {
|
|
495
471
|
const params = buildClientParams([parameters], [
|
|
496
472
|
{
|
|
497
473
|
args: [
|
|
498
474
|
{ in: "query", key: "directory" },
|
|
499
475
|
{ in: "query", key: "workspace" },
|
|
500
|
-
{ in: "body", key: "favorite" },
|
|
501
476
|
],
|
|
502
477
|
},
|
|
503
478
|
]);
|
|
504
|
-
return (options?.client ?? this.client).
|
|
505
|
-
url: "/
|
|
479
|
+
return (options?.client ?? this.client).post({
|
|
480
|
+
url: "/experimental/workspace/sync-list",
|
|
506
481
|
...options,
|
|
507
482
|
...params,
|
|
508
|
-
headers: {
|
|
509
|
-
"Content-Type": "application/json",
|
|
510
|
-
...options?.headers,
|
|
511
|
-
...params.headers,
|
|
512
|
-
},
|
|
513
483
|
});
|
|
514
484
|
}
|
|
515
|
-
}
|
|
516
|
-
export class Console extends HeyApiClient {
|
|
517
485
|
/**
|
|
518
|
-
*
|
|
486
|
+
* Workspace status
|
|
519
487
|
*
|
|
520
|
-
* Get
|
|
488
|
+
* Get connection status for workspaces in the current project.
|
|
521
489
|
*/
|
|
522
|
-
|
|
490
|
+
status(parameters, options) {
|
|
523
491
|
const params = buildClientParams([parameters], [
|
|
524
492
|
{
|
|
525
493
|
args: [
|
|
@@ -529,49 +497,51 @@ export class Console extends HeyApiClient {
|
|
|
529
497
|
},
|
|
530
498
|
]);
|
|
531
499
|
return (options?.client ?? this.client).get({
|
|
532
|
-
url: "/experimental/
|
|
500
|
+
url: "/experimental/workspace/status",
|
|
533
501
|
...options,
|
|
534
502
|
...params,
|
|
535
503
|
});
|
|
536
504
|
}
|
|
537
505
|
/**
|
|
538
|
-
*
|
|
506
|
+
* Remove workspace
|
|
539
507
|
*
|
|
540
|
-
*
|
|
508
|
+
* Remove an existing workspace.
|
|
541
509
|
*/
|
|
542
|
-
|
|
510
|
+
remove(parameters, options) {
|
|
543
511
|
const params = buildClientParams([parameters], [
|
|
544
512
|
{
|
|
545
513
|
args: [
|
|
514
|
+
{ in: "path", key: "id" },
|
|
546
515
|
{ in: "query", key: "directory" },
|
|
547
516
|
{ in: "query", key: "workspace" },
|
|
548
517
|
],
|
|
549
518
|
},
|
|
550
519
|
]);
|
|
551
|
-
return (options?.client ?? this.client).
|
|
552
|
-
url: "/experimental/
|
|
520
|
+
return (options?.client ?? this.client).delete({
|
|
521
|
+
url: "/experimental/workspace/{id}",
|
|
553
522
|
...options,
|
|
554
523
|
...params,
|
|
555
524
|
});
|
|
556
525
|
}
|
|
557
526
|
/**
|
|
558
|
-
*
|
|
527
|
+
* Warp session into workspace
|
|
559
528
|
*
|
|
560
|
-
*
|
|
529
|
+
* Move a session's sync history into the target workspace, or detach it to the local project.
|
|
561
530
|
*/
|
|
562
|
-
|
|
531
|
+
warp(parameters, options) {
|
|
563
532
|
const params = buildClientParams([parameters], [
|
|
564
533
|
{
|
|
565
534
|
args: [
|
|
566
535
|
{ in: "query", key: "directory" },
|
|
567
536
|
{ in: "query", key: "workspace" },
|
|
568
|
-
{ in: "body", key: "
|
|
569
|
-
{ in: "body", key: "
|
|
537
|
+
{ in: "body", key: "id" },
|
|
538
|
+
{ in: "body", key: "sessionID" },
|
|
539
|
+
{ in: "body", key: "copyChanges" },
|
|
570
540
|
],
|
|
571
541
|
},
|
|
572
542
|
]);
|
|
573
543
|
return (options?.client ?? this.client).post({
|
|
574
|
-
url: "/experimental/
|
|
544
|
+
url: "/experimental/workspace/warp",
|
|
575
545
|
...options,
|
|
576
546
|
...params,
|
|
577
547
|
headers: {
|
|
@@ -581,67 +551,132 @@ export class Console extends HeyApiClient {
|
|
|
581
551
|
},
|
|
582
552
|
});
|
|
583
553
|
}
|
|
554
|
+
_adapter;
|
|
555
|
+
get adapter() {
|
|
556
|
+
return (this._adapter ??= new Adapter({ client: this.client }));
|
|
557
|
+
}
|
|
584
558
|
}
|
|
585
|
-
export class
|
|
559
|
+
export class Experimental extends HeyApiClient {
|
|
560
|
+
_controlPlane;
|
|
561
|
+
get controlPlane() {
|
|
562
|
+
return (this._controlPlane ??= new ControlPlane({ client: this.client }));
|
|
563
|
+
}
|
|
564
|
+
_console;
|
|
565
|
+
get console() {
|
|
566
|
+
return (this._console ??= new Console({ client: this.client }));
|
|
567
|
+
}
|
|
568
|
+
_session;
|
|
569
|
+
get session() {
|
|
570
|
+
return (this._session ??= new Session({ client: this.client }));
|
|
571
|
+
}
|
|
572
|
+
_resource;
|
|
573
|
+
get resource() {
|
|
574
|
+
return (this._resource ??= new Resource({ client: this.client }));
|
|
575
|
+
}
|
|
576
|
+
_projectCopy;
|
|
577
|
+
get projectCopy() {
|
|
578
|
+
return (this._projectCopy ??= new ProjectCopy({ client: this.client }));
|
|
579
|
+
}
|
|
580
|
+
_workspace;
|
|
581
|
+
get workspace() {
|
|
582
|
+
return (this._workspace ??= new Workspace({ client: this.client }));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
export class Config extends HeyApiClient {
|
|
586
586
|
/**
|
|
587
|
-
*
|
|
587
|
+
* Get global configuration
|
|
588
588
|
*
|
|
589
|
-
*
|
|
589
|
+
* Retrieve the current global Kilo configuration settings and preferences.
|
|
590
590
|
*/
|
|
591
|
-
|
|
592
|
-
const params = buildClientParams([parameters], [
|
|
593
|
-
{
|
|
594
|
-
args: [
|
|
595
|
-
{ in: "query", key: "directory" },
|
|
596
|
-
{ in: "query", key: "workspace" },
|
|
597
|
-
{ in: "query", key: "projectID" },
|
|
598
|
-
{ in: "query", key: "worktrees" },
|
|
599
|
-
{ in: "query", key: "current" },
|
|
600
|
-
{ in: "query", key: "roots" },
|
|
601
|
-
{ in: "query", key: "start" },
|
|
602
|
-
{ in: "query", key: "cursor" },
|
|
603
|
-
{ in: "query", key: "search" },
|
|
604
|
-
{ in: "query", key: "limit" },
|
|
605
|
-
{ in: "query", key: "archived" },
|
|
606
|
-
],
|
|
607
|
-
},
|
|
608
|
-
]);
|
|
591
|
+
get(options) {
|
|
609
592
|
return (options?.client ?? this.client).get({
|
|
610
|
-
url: "/
|
|
593
|
+
url: "/global/config",
|
|
594
|
+
...options,
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Update global configuration
|
|
599
|
+
*
|
|
600
|
+
* Update global Kilo configuration settings and preferences.
|
|
601
|
+
*/
|
|
602
|
+
update(parameters, options) {
|
|
603
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
|
|
604
|
+
return (options?.client ?? this.client).patch({
|
|
605
|
+
url: "/global/config",
|
|
611
606
|
...options,
|
|
612
607
|
...params,
|
|
608
|
+
headers: {
|
|
609
|
+
"Content-Type": "application/json",
|
|
610
|
+
...options?.headers,
|
|
611
|
+
...params.headers,
|
|
612
|
+
},
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
export class
|
|
616
|
+
export class Global extends HeyApiClient {
|
|
617
617
|
/**
|
|
618
|
-
* Get
|
|
618
|
+
* Get health
|
|
619
619
|
*
|
|
620
|
-
* Get
|
|
620
|
+
* Get health information about the Kilo server.
|
|
621
621
|
*/
|
|
622
|
-
|
|
623
|
-
const params = buildClientParams([parameters], [
|
|
624
|
-
{
|
|
625
|
-
args: [
|
|
626
|
-
{ in: "query", key: "directory" },
|
|
627
|
-
{ in: "query", key: "workspace" },
|
|
628
|
-
],
|
|
629
|
-
},
|
|
630
|
-
]);
|
|
622
|
+
health(options) {
|
|
631
623
|
return (options?.client ?? this.client).get({
|
|
632
|
-
url: "/
|
|
624
|
+
url: "/global/health",
|
|
625
|
+
...options,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Get global events
|
|
630
|
+
*
|
|
631
|
+
* Subscribe to global events from the Kilo system using server-sent events.
|
|
632
|
+
*/
|
|
633
|
+
event(options) {
|
|
634
|
+
return (options?.client ?? this.client).sse.get({
|
|
635
|
+
url: "/global/event",
|
|
636
|
+
...options,
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Dispose instance
|
|
641
|
+
*
|
|
642
|
+
* Clean up and dispose all Kilo instances, releasing all resources.
|
|
643
|
+
*/
|
|
644
|
+
dispose(options) {
|
|
645
|
+
return (options?.client ?? this.client).post({
|
|
646
|
+
url: "/global/dispose",
|
|
647
|
+
...options,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Upgrade kilo
|
|
652
|
+
*
|
|
653
|
+
* Upgrade kilo to the specified version or latest if not specified.
|
|
654
|
+
*/
|
|
655
|
+
upgrade(parameters, options) {
|
|
656
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]);
|
|
657
|
+
return (options?.client ?? this.client).post({
|
|
658
|
+
url: "/global/upgrade",
|
|
633
659
|
...options,
|
|
634
660
|
...params,
|
|
661
|
+
headers: {
|
|
662
|
+
"Content-Type": "application/json",
|
|
663
|
+
...options?.headers,
|
|
664
|
+
...params.headers,
|
|
665
|
+
},
|
|
635
666
|
});
|
|
636
667
|
}
|
|
668
|
+
_config;
|
|
669
|
+
get config() {
|
|
670
|
+
return (this._config ??= new Config({ client: this.client }));
|
|
671
|
+
}
|
|
637
672
|
}
|
|
638
|
-
export class
|
|
673
|
+
export class Event extends HeyApiClient {
|
|
639
674
|
/**
|
|
640
|
-
*
|
|
675
|
+
* Subscribe to events
|
|
641
676
|
*
|
|
642
|
-
*
|
|
677
|
+
* Get events
|
|
643
678
|
*/
|
|
644
|
-
|
|
679
|
+
subscribe(parameters, options) {
|
|
645
680
|
const params = buildClientParams([parameters], [
|
|
646
681
|
{
|
|
647
682
|
args: [
|
|
@@ -650,20 +685,20 @@ export class Adapter extends HeyApiClient {
|
|
|
650
685
|
],
|
|
651
686
|
},
|
|
652
687
|
]);
|
|
653
|
-
return (options?.client ?? this.client).get({
|
|
654
|
-
url: "/
|
|
688
|
+
return (options?.client ?? this.client).sse.get({
|
|
689
|
+
url: "/event",
|
|
655
690
|
...options,
|
|
656
691
|
...params,
|
|
657
692
|
});
|
|
658
693
|
}
|
|
659
694
|
}
|
|
660
|
-
export class
|
|
695
|
+
export class Config2 extends HeyApiClient {
|
|
661
696
|
/**
|
|
662
|
-
*
|
|
697
|
+
* Get configuration
|
|
663
698
|
*
|
|
664
|
-
*
|
|
699
|
+
* Retrieve the current Kilo configuration settings and preferences.
|
|
665
700
|
*/
|
|
666
|
-
|
|
701
|
+
get(parameters, options) {
|
|
667
702
|
const params = buildClientParams([parameters], [
|
|
668
703
|
{
|
|
669
704
|
args: [
|
|
@@ -673,31 +708,28 @@ export class Workspace extends HeyApiClient {
|
|
|
673
708
|
},
|
|
674
709
|
]);
|
|
675
710
|
return (options?.client ?? this.client).get({
|
|
676
|
-
url: "/
|
|
711
|
+
url: "/config",
|
|
677
712
|
...options,
|
|
678
713
|
...params,
|
|
679
714
|
});
|
|
680
715
|
}
|
|
681
716
|
/**
|
|
682
|
-
*
|
|
717
|
+
* Update configuration
|
|
683
718
|
*
|
|
684
|
-
*
|
|
719
|
+
* Update Kilo configuration settings and preferences.
|
|
685
720
|
*/
|
|
686
|
-
|
|
721
|
+
update(parameters, options) {
|
|
687
722
|
const params = buildClientParams([parameters], [
|
|
688
723
|
{
|
|
689
724
|
args: [
|
|
690
725
|
{ in: "query", key: "directory" },
|
|
691
726
|
{ in: "query", key: "workspace" },
|
|
692
|
-
{
|
|
693
|
-
{ in: "body", key: "type" },
|
|
694
|
-
{ in: "body", key: "branch" },
|
|
695
|
-
{ in: "body", key: "extra" },
|
|
727
|
+
{ key: "config", map: "body" },
|
|
696
728
|
],
|
|
697
729
|
},
|
|
698
730
|
]);
|
|
699
|
-
return (options?.client ?? this.client).
|
|
700
|
-
url: "/
|
|
731
|
+
return (options?.client ?? this.client).patch({
|
|
732
|
+
url: "/config",
|
|
701
733
|
...options,
|
|
702
734
|
...params,
|
|
703
735
|
headers: {
|
|
@@ -708,11 +740,11 @@ export class Workspace extends HeyApiClient {
|
|
|
708
740
|
});
|
|
709
741
|
}
|
|
710
742
|
/**
|
|
711
|
-
*
|
|
743
|
+
* Get config warnings
|
|
712
744
|
*
|
|
713
|
-
*
|
|
745
|
+
* Get warnings generated during config loading (e.g., invalid JSON, schema errors).
|
|
714
746
|
*/
|
|
715
|
-
|
|
747
|
+
warnings(parameters, options) {
|
|
716
748
|
const params = buildClientParams([parameters], [
|
|
717
749
|
{
|
|
718
750
|
args: [
|
|
@@ -721,18 +753,18 @@ export class Workspace extends HeyApiClient {
|
|
|
721
753
|
],
|
|
722
754
|
},
|
|
723
755
|
]);
|
|
724
|
-
return (options?.client ?? this.client).
|
|
725
|
-
url: "/
|
|
756
|
+
return (options?.client ?? this.client).get({
|
|
757
|
+
url: "/config/warnings",
|
|
726
758
|
...options,
|
|
727
759
|
...params,
|
|
728
760
|
});
|
|
729
761
|
}
|
|
730
762
|
/**
|
|
731
|
-
*
|
|
763
|
+
* List config providers
|
|
732
764
|
*
|
|
733
|
-
* Get
|
|
765
|
+
* Get a list of all configured AI providers and their default models.
|
|
734
766
|
*/
|
|
735
|
-
|
|
767
|
+
providers(parameters, options) {
|
|
736
768
|
const params = buildClientParams([parameters], [
|
|
737
769
|
{
|
|
738
770
|
args: [
|
|
@@ -742,51 +774,51 @@ export class Workspace extends HeyApiClient {
|
|
|
742
774
|
},
|
|
743
775
|
]);
|
|
744
776
|
return (options?.client ?? this.client).get({
|
|
745
|
-
url: "/
|
|
777
|
+
url: "/config/providers",
|
|
746
778
|
...options,
|
|
747
779
|
...params,
|
|
748
780
|
});
|
|
749
781
|
}
|
|
750
782
|
/**
|
|
751
|
-
*
|
|
783
|
+
* Get config overlay
|
|
752
784
|
*
|
|
753
|
-
*
|
|
785
|
+
* Resolve global, project, and effective config values with source metadata for inheritance-aware settings UI.
|
|
754
786
|
*/
|
|
755
|
-
|
|
787
|
+
overlay(parameters, options) {
|
|
756
788
|
const params = buildClientParams([parameters], [
|
|
757
789
|
{
|
|
758
790
|
args: [
|
|
759
|
-
{ in: "path", key: "id" },
|
|
760
791
|
{ in: "query", key: "directory" },
|
|
761
792
|
{ in: "query", key: "workspace" },
|
|
793
|
+
{ in: "query", key: "scope" },
|
|
762
794
|
],
|
|
763
795
|
},
|
|
764
796
|
]);
|
|
765
|
-
return (options?.client ?? this.client).
|
|
766
|
-
url: "/
|
|
797
|
+
return (options?.client ?? this.client).get({
|
|
798
|
+
url: "/config/overlay",
|
|
767
799
|
...options,
|
|
768
800
|
...params,
|
|
769
801
|
});
|
|
770
802
|
}
|
|
771
803
|
/**
|
|
772
|
-
*
|
|
804
|
+
* Patch config overlay
|
|
773
805
|
*
|
|
774
|
-
*
|
|
806
|
+
* Apply a minimal global or project config patch, including unset paths for reverting local overrides.
|
|
775
807
|
*/
|
|
776
|
-
|
|
808
|
+
overlayUpdate(parameters, options) {
|
|
777
809
|
const params = buildClientParams([parameters], [
|
|
778
810
|
{
|
|
779
811
|
args: [
|
|
780
812
|
{ in: "query", key: "directory" },
|
|
781
813
|
{ in: "query", key: "workspace" },
|
|
782
|
-
{ in: "body", key: "
|
|
783
|
-
{ in: "body", key: "
|
|
784
|
-
{ in: "body", key: "
|
|
814
|
+
{ in: "body", key: "scope" },
|
|
815
|
+
{ in: "body", key: "set" },
|
|
816
|
+
{ in: "body", key: "unset" },
|
|
785
817
|
],
|
|
786
818
|
},
|
|
787
819
|
]);
|
|
788
|
-
return (options?.client ?? this.client).
|
|
789
|
-
url: "/
|
|
820
|
+
return (options?.client ?? this.client).patch({
|
|
821
|
+
url: "/config/overlay",
|
|
790
822
|
...options,
|
|
791
823
|
...params,
|
|
792
824
|
headers: {
|
|
@@ -796,27 +828,139 @@ export class Workspace extends HeyApiClient {
|
|
|
796
828
|
},
|
|
797
829
|
});
|
|
798
830
|
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
831
|
+
/**
|
|
832
|
+
* List config sources
|
|
833
|
+
*
|
|
834
|
+
* List config source metadata in load order without exposing config contents or secrets.
|
|
835
|
+
*/
|
|
836
|
+
sources(parameters, options) {
|
|
837
|
+
const params = buildClientParams([parameters], [
|
|
838
|
+
{
|
|
839
|
+
args: [
|
|
840
|
+
{ in: "query", key: "directory" },
|
|
841
|
+
{ in: "query", key: "workspace" },
|
|
842
|
+
],
|
|
843
|
+
},
|
|
844
|
+
]);
|
|
845
|
+
return (options?.client ?? this.client).get({
|
|
846
|
+
url: "/config/sources",
|
|
847
|
+
...options,
|
|
848
|
+
...params,
|
|
849
|
+
});
|
|
808
850
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
851
|
+
/**
|
|
852
|
+
* Get effective configuration
|
|
853
|
+
*
|
|
854
|
+
* Retrieve effective config for the current instance directory.
|
|
855
|
+
*/
|
|
856
|
+
effective(parameters, options) {
|
|
857
|
+
const params = buildClientParams([parameters], [
|
|
858
|
+
{
|
|
859
|
+
args: [
|
|
860
|
+
{ in: "query", key: "directory" },
|
|
861
|
+
{ in: "query", key: "workspace" },
|
|
862
|
+
],
|
|
863
|
+
},
|
|
864
|
+
]);
|
|
865
|
+
return (options?.client ?? this.client).get({
|
|
866
|
+
url: "/config/effective",
|
|
867
|
+
...options,
|
|
868
|
+
...params,
|
|
869
|
+
});
|
|
812
870
|
}
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
871
|
+
/**
|
|
872
|
+
* Get project rules
|
|
873
|
+
*
|
|
874
|
+
* List project instruction files used by Kilo and return their current contents.
|
|
875
|
+
*/
|
|
876
|
+
rules(parameters, options) {
|
|
877
|
+
const params = buildClientParams([parameters], [
|
|
878
|
+
{
|
|
879
|
+
args: [
|
|
880
|
+
{ in: "query", key: "directory" },
|
|
881
|
+
{ in: "query", key: "workspace" },
|
|
882
|
+
{ in: "query", key: "scope" },
|
|
883
|
+
],
|
|
884
|
+
},
|
|
885
|
+
]);
|
|
886
|
+
return (options?.client ?? this.client).get({
|
|
887
|
+
url: "/config/rules",
|
|
888
|
+
...options,
|
|
889
|
+
...params,
|
|
890
|
+
});
|
|
816
891
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
892
|
+
/**
|
|
893
|
+
* Update project rules
|
|
894
|
+
*
|
|
895
|
+
* Create or update the project AGENTS.md rules file.
|
|
896
|
+
*/
|
|
897
|
+
rulesUpdate(parameters, options) {
|
|
898
|
+
const params = buildClientParams([parameters], [
|
|
899
|
+
{
|
|
900
|
+
args: [
|
|
901
|
+
{ in: "query", key: "directory" },
|
|
902
|
+
{ in: "query", key: "workspace" },
|
|
903
|
+
{ in: "body", key: "scope" },
|
|
904
|
+
{ in: "body", key: "content" },
|
|
905
|
+
],
|
|
906
|
+
},
|
|
907
|
+
]);
|
|
908
|
+
return (options?.client ?? this.client).put({
|
|
909
|
+
url: "/config/rules",
|
|
910
|
+
...options,
|
|
911
|
+
...params,
|
|
912
|
+
headers: {
|
|
913
|
+
"Content-Type": "application/json",
|
|
914
|
+
...options?.headers,
|
|
915
|
+
...params.headers,
|
|
916
|
+
},
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Get model state
|
|
921
|
+
*
|
|
922
|
+
* Retrieve TUI-compatible recent and favorite model selections.
|
|
923
|
+
*/
|
|
924
|
+
modelState(parameters, options) {
|
|
925
|
+
const params = buildClientParams([parameters], [
|
|
926
|
+
{
|
|
927
|
+
args: [
|
|
928
|
+
{ in: "query", key: "directory" },
|
|
929
|
+
{ in: "query", key: "workspace" },
|
|
930
|
+
],
|
|
931
|
+
},
|
|
932
|
+
]);
|
|
933
|
+
return (options?.client ?? this.client).get({
|
|
934
|
+
url: "/config/model-state",
|
|
935
|
+
...options,
|
|
936
|
+
...params,
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Update model state
|
|
941
|
+
*
|
|
942
|
+
* Patch TUI-compatible model selections shared with Kilo Console.
|
|
943
|
+
*/
|
|
944
|
+
modelStateUpdate(parameters, options) {
|
|
945
|
+
const params = buildClientParams([parameters], [
|
|
946
|
+
{
|
|
947
|
+
args: [
|
|
948
|
+
{ in: "query", key: "directory" },
|
|
949
|
+
{ in: "query", key: "workspace" },
|
|
950
|
+
{ in: "body", key: "favorite" },
|
|
951
|
+
],
|
|
952
|
+
},
|
|
953
|
+
]);
|
|
954
|
+
return (options?.client ?? this.client).patch({
|
|
955
|
+
url: "/config/model-state",
|
|
956
|
+
...options,
|
|
957
|
+
...params,
|
|
958
|
+
headers: {
|
|
959
|
+
"Content-Type": "application/json",
|
|
960
|
+
...options?.headers,
|
|
961
|
+
...params.headers,
|
|
962
|
+
},
|
|
963
|
+
});
|
|
820
964
|
}
|
|
821
965
|
}
|
|
822
966
|
export class Tool extends HeyApiClient {
|
|
@@ -1678,6 +1822,27 @@ export class Project extends HeyApiClient {
|
|
|
1678
1822
|
},
|
|
1679
1823
|
});
|
|
1680
1824
|
}
|
|
1825
|
+
/**
|
|
1826
|
+
* List project directories
|
|
1827
|
+
*
|
|
1828
|
+
* List known local absolute directories for a project.
|
|
1829
|
+
*/
|
|
1830
|
+
directories(parameters, options) {
|
|
1831
|
+
const params = buildClientParams([parameters], [
|
|
1832
|
+
{
|
|
1833
|
+
args: [
|
|
1834
|
+
{ in: "path", key: "projectID" },
|
|
1835
|
+
{ in: "query", key: "directory" },
|
|
1836
|
+
{ in: "query", key: "workspace" },
|
|
1837
|
+
],
|
|
1838
|
+
},
|
|
1839
|
+
]);
|
|
1840
|
+
return (options?.client ?? this.client).get({
|
|
1841
|
+
url: "/project/{projectID}/directories",
|
|
1842
|
+
...options,
|
|
1843
|
+
...params,
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1681
1846
|
}
|
|
1682
1847
|
export class Pty extends HeyApiClient {
|
|
1683
1848
|
/**
|
|
@@ -2222,6 +2387,7 @@ export class Session2 extends HeyApiClient {
|
|
|
2222
2387
|
{ in: "body", key: "permission" },
|
|
2223
2388
|
{ in: "body", key: "platform" },
|
|
2224
2389
|
{ in: "body", key: "workspaceID" },
|
|
2390
|
+
{ in: "body", key: "sandboxInheritanceToken" },
|
|
2225
2391
|
],
|
|
2226
2392
|
},
|
|
2227
2393
|
]);
|
|
@@ -2805,8 +2971,9 @@ export class Session2 extends HeyApiClient {
|
|
|
2805
2971
|
args: [
|
|
2806
2972
|
{ in: "query", key: "directory" },
|
|
2807
2973
|
{ in: "query", key: "workspace" },
|
|
2808
|
-
{ in: "body", key: "
|
|
2809
|
-
{ in: "body", key: "
|
|
2974
|
+
{ in: "body", key: "viewer" },
|
|
2975
|
+
{ in: "body", key: "attached" },
|
|
2976
|
+
{ in: "body", key: "visible" },
|
|
2810
2977
|
],
|
|
2811
2978
|
},
|
|
2812
2979
|
]);
|
|
@@ -2987,53 +3154,44 @@ export class Sync extends HeyApiClient {
|
|
|
2987
3154
|
return (this._history ??= new History({ client: this.client }));
|
|
2988
3155
|
}
|
|
2989
3156
|
}
|
|
2990
|
-
export class
|
|
3157
|
+
export class Control extends HeyApiClient {
|
|
2991
3158
|
/**
|
|
2992
|
-
*
|
|
3159
|
+
* Get next TUI request
|
|
2993
3160
|
*
|
|
2994
|
-
* Retrieve
|
|
3161
|
+
* Retrieve the next TUI request from the queue for processing.
|
|
2995
3162
|
*/
|
|
2996
|
-
|
|
3163
|
+
next(parameters, options) {
|
|
2997
3164
|
const params = buildClientParams([parameters], [
|
|
2998
3165
|
{
|
|
2999
3166
|
args: [
|
|
3000
3167
|
{ in: "query", key: "directory" },
|
|
3001
3168
|
{ in: "query", key: "workspace" },
|
|
3002
|
-
{ in: "query", key: "limit" },
|
|
3003
|
-
{ in: "query", key: "order" },
|
|
3004
|
-
{ in: "query", key: "path" },
|
|
3005
|
-
{ in: "query", key: "roots" },
|
|
3006
|
-
{ in: "query", key: "start" },
|
|
3007
|
-
{ in: "query", key: "search" },
|
|
3008
|
-
{ in: "query", key: "cursor" },
|
|
3009
3169
|
],
|
|
3010
3170
|
},
|
|
3011
3171
|
]);
|
|
3012
3172
|
return (options?.client ?? this.client).get({
|
|
3013
|
-
url: "/
|
|
3173
|
+
url: "/tui/control/next",
|
|
3014
3174
|
...options,
|
|
3015
3175
|
...params,
|
|
3016
3176
|
});
|
|
3017
3177
|
}
|
|
3018
3178
|
/**
|
|
3019
|
-
*
|
|
3179
|
+
* Submit TUI response
|
|
3020
3180
|
*
|
|
3021
|
-
*
|
|
3181
|
+
* Submit a response to the TUI request queue to complete a pending request.
|
|
3022
3182
|
*/
|
|
3023
|
-
|
|
3183
|
+
response(parameters, options) {
|
|
3024
3184
|
const params = buildClientParams([parameters], [
|
|
3025
3185
|
{
|
|
3026
3186
|
args: [
|
|
3027
|
-
{ in: "path", key: "sessionID" },
|
|
3028
3187
|
{ in: "query", key: "directory" },
|
|
3029
3188
|
{ in: "query", key: "workspace" },
|
|
3030
|
-
{
|
|
3031
|
-
{ in: "body", key: "delivery" },
|
|
3189
|
+
{ key: "body", map: "body" },
|
|
3032
3190
|
],
|
|
3033
3191
|
},
|
|
3034
3192
|
]);
|
|
3035
3193
|
return (options?.client ?? this.client).post({
|
|
3036
|
-
url: "/
|
|
3194
|
+
url: "/tui/control/response",
|
|
3037
3195
|
...options,
|
|
3038
3196
|
...params,
|
|
3039
3197
|
headers: {
|
|
@@ -3043,300 +3201,101 @@ export class Session3 extends HeyApiClient {
|
|
|
3043
3201
|
},
|
|
3044
3202
|
});
|
|
3045
3203
|
}
|
|
3204
|
+
}
|
|
3205
|
+
export class Config3 extends HeyApiClient {
|
|
3046
3206
|
/**
|
|
3047
|
-
*
|
|
3207
|
+
* Get TUI configuration
|
|
3048
3208
|
*
|
|
3049
|
-
*
|
|
3209
|
+
* Retrieve the effective TUI configuration for the current instance directory.
|
|
3050
3210
|
*/
|
|
3051
|
-
|
|
3211
|
+
get(parameters, options) {
|
|
3052
3212
|
const params = buildClientParams([parameters], [
|
|
3053
3213
|
{
|
|
3054
3214
|
args: [
|
|
3055
|
-
{ in: "path", key: "sessionID" },
|
|
3056
3215
|
{ in: "query", key: "directory" },
|
|
3057
3216
|
{ in: "query", key: "workspace" },
|
|
3058
3217
|
],
|
|
3059
3218
|
},
|
|
3060
3219
|
]);
|
|
3061
|
-
return (options?.client ?? this.client).
|
|
3062
|
-
url: "/
|
|
3220
|
+
return (options?.client ?? this.client).get({
|
|
3221
|
+
url: "/tui/config",
|
|
3063
3222
|
...options,
|
|
3064
3223
|
...params,
|
|
3065
3224
|
});
|
|
3066
3225
|
}
|
|
3067
3226
|
/**
|
|
3068
|
-
*
|
|
3227
|
+
* Update TUI configuration
|
|
3069
3228
|
*
|
|
3070
|
-
*
|
|
3229
|
+
* Patch global or project TUI configuration and return the effective TUI configuration.
|
|
3071
3230
|
*/
|
|
3072
|
-
|
|
3231
|
+
update(parameters, options) {
|
|
3073
3232
|
const params = buildClientParams([parameters], [
|
|
3074
3233
|
{
|
|
3075
3234
|
args: [
|
|
3076
|
-
{ in: "path", key: "sessionID" },
|
|
3077
3235
|
{ in: "query", key: "directory" },
|
|
3078
3236
|
{ in: "query", key: "workspace" },
|
|
3237
|
+
{ in: "query", key: "scope" },
|
|
3238
|
+
{ in: "body", key: "$schema" },
|
|
3239
|
+
{ in: "body", key: "theme" },
|
|
3240
|
+
{ in: "body", key: "keybinds" },
|
|
3241
|
+
{ in: "body", key: "plugin" },
|
|
3242
|
+
{ in: "body", key: "plugin_enabled" },
|
|
3243
|
+
{ in: "body", key: "title_icon" },
|
|
3244
|
+
{ in: "body", key: "scroll_speed" },
|
|
3245
|
+
{ in: "body", key: "scroll_acceleration" },
|
|
3246
|
+
{ in: "body", key: "diff_style" },
|
|
3247
|
+
{ in: "body", key: "mouse" },
|
|
3248
|
+
{ in: "body", key: "attention" },
|
|
3079
3249
|
],
|
|
3080
3250
|
},
|
|
3081
3251
|
]);
|
|
3082
|
-
return (options?.client ?? this.client).
|
|
3083
|
-
url: "/
|
|
3252
|
+
return (options?.client ?? this.client).patch({
|
|
3253
|
+
url: "/tui/config",
|
|
3084
3254
|
...options,
|
|
3085
3255
|
...params,
|
|
3256
|
+
headers: {
|
|
3257
|
+
"Content-Type": "application/json",
|
|
3258
|
+
...options?.headers,
|
|
3259
|
+
...params.headers,
|
|
3260
|
+
},
|
|
3086
3261
|
});
|
|
3087
3262
|
}
|
|
3263
|
+
}
|
|
3264
|
+
export class Keybind extends HeyApiClient {
|
|
3088
3265
|
/**
|
|
3089
|
-
*
|
|
3266
|
+
* List TUI keybinds
|
|
3090
3267
|
*
|
|
3091
|
-
*
|
|
3268
|
+
* List valid TUI keybind commands, descriptions, groups, and default bindings from the CLI schema.
|
|
3092
3269
|
*/
|
|
3093
|
-
|
|
3270
|
+
list(parameters, options) {
|
|
3094
3271
|
const params = buildClientParams([parameters], [
|
|
3095
3272
|
{
|
|
3096
3273
|
args: [
|
|
3097
|
-
{ in: "path", key: "sessionID" },
|
|
3098
3274
|
{ in: "query", key: "directory" },
|
|
3099
3275
|
{ in: "query", key: "workspace" },
|
|
3100
3276
|
],
|
|
3101
3277
|
},
|
|
3102
3278
|
]);
|
|
3103
3279
|
return (options?.client ?? this.client).get({
|
|
3104
|
-
url: "/
|
|
3280
|
+
url: "/tui/keybinds",
|
|
3105
3281
|
...options,
|
|
3106
3282
|
...params,
|
|
3107
3283
|
});
|
|
3108
3284
|
}
|
|
3285
|
+
}
|
|
3286
|
+
export class Tui extends HeyApiClient {
|
|
3109
3287
|
/**
|
|
3110
|
-
*
|
|
3288
|
+
* Append TUI prompt
|
|
3111
3289
|
*
|
|
3112
|
-
*
|
|
3290
|
+
* Append prompt to the TUI.
|
|
3113
3291
|
*/
|
|
3114
|
-
|
|
3292
|
+
appendPrompt(parameters, options) {
|
|
3115
3293
|
const params = buildClientParams([parameters], [
|
|
3116
3294
|
{
|
|
3117
3295
|
args: [
|
|
3118
|
-
{ in: "path", key: "sessionID" },
|
|
3119
3296
|
{ in: "query", key: "directory" },
|
|
3120
3297
|
{ in: "query", key: "workspace" },
|
|
3121
|
-
{ in: "
|
|
3122
|
-
{ in: "query", key: "order" },
|
|
3123
|
-
{ in: "query", key: "cursor" },
|
|
3124
|
-
],
|
|
3125
|
-
},
|
|
3126
|
-
]);
|
|
3127
|
-
return (options?.client ?? this.client).get({
|
|
3128
|
-
url: "/api/session/{sessionID}/message",
|
|
3129
|
-
...options,
|
|
3130
|
-
...params,
|
|
3131
|
-
});
|
|
3132
|
-
}
|
|
3133
|
-
}
|
|
3134
|
-
export class Model extends HeyApiClient {
|
|
3135
|
-
/**
|
|
3136
|
-
* List v2 models
|
|
3137
|
-
*
|
|
3138
|
-
* Retrieve available v2 models ordered by release date.
|
|
3139
|
-
*/
|
|
3140
|
-
list(parameters, options) {
|
|
3141
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3142
|
-
return (options?.client ?? this.client).get({
|
|
3143
|
-
url: "/api/model",
|
|
3144
|
-
...options,
|
|
3145
|
-
...params,
|
|
3146
|
-
});
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
export class Provider2 extends HeyApiClient {
|
|
3150
|
-
/**
|
|
3151
|
-
* List v2 providers
|
|
3152
|
-
*
|
|
3153
|
-
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
3154
|
-
*/
|
|
3155
|
-
list(parameters, options) {
|
|
3156
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3157
|
-
return (options?.client ?? this.client).get({
|
|
3158
|
-
url: "/api/provider",
|
|
3159
|
-
...options,
|
|
3160
|
-
...params,
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
/**
|
|
3164
|
-
* Get v2 provider
|
|
3165
|
-
*
|
|
3166
|
-
* Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.
|
|
3167
|
-
*/
|
|
3168
|
-
get(parameters, options) {
|
|
3169
|
-
const params = buildClientParams([parameters], [
|
|
3170
|
-
{
|
|
3171
|
-
args: [
|
|
3172
|
-
{ in: "path", key: "providerID" },
|
|
3173
|
-
{ in: "query", key: "location" },
|
|
3174
|
-
],
|
|
3175
|
-
},
|
|
3176
|
-
]);
|
|
3177
|
-
return (options?.client ?? this.client).get({
|
|
3178
|
-
url: "/api/provider/{providerID}",
|
|
3179
|
-
...options,
|
|
3180
|
-
...params,
|
|
3181
|
-
});
|
|
3182
|
-
}
|
|
3183
|
-
}
|
|
3184
|
-
export class V2 extends HeyApiClient {
|
|
3185
|
-
_session;
|
|
3186
|
-
get session() {
|
|
3187
|
-
return (this._session ??= new Session3({ client: this.client }));
|
|
3188
|
-
}
|
|
3189
|
-
_model;
|
|
3190
|
-
get model() {
|
|
3191
|
-
return (this._model ??= new Model({ client: this.client }));
|
|
3192
|
-
}
|
|
3193
|
-
_provider;
|
|
3194
|
-
get provider() {
|
|
3195
|
-
return (this._provider ??= new Provider2({ client: this.client }));
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
|
-
export class Control extends HeyApiClient {
|
|
3199
|
-
/**
|
|
3200
|
-
* Get next TUI request
|
|
3201
|
-
*
|
|
3202
|
-
* Retrieve the next TUI request from the queue for processing.
|
|
3203
|
-
*/
|
|
3204
|
-
next(parameters, options) {
|
|
3205
|
-
const params = buildClientParams([parameters], [
|
|
3206
|
-
{
|
|
3207
|
-
args: [
|
|
3208
|
-
{ in: "query", key: "directory" },
|
|
3209
|
-
{ in: "query", key: "workspace" },
|
|
3210
|
-
],
|
|
3211
|
-
},
|
|
3212
|
-
]);
|
|
3213
|
-
return (options?.client ?? this.client).get({
|
|
3214
|
-
url: "/tui/control/next",
|
|
3215
|
-
...options,
|
|
3216
|
-
...params,
|
|
3217
|
-
});
|
|
3218
|
-
}
|
|
3219
|
-
/**
|
|
3220
|
-
* Submit TUI response
|
|
3221
|
-
*
|
|
3222
|
-
* Submit a response to the TUI request queue to complete a pending request.
|
|
3223
|
-
*/
|
|
3224
|
-
response(parameters, options) {
|
|
3225
|
-
const params = buildClientParams([parameters], [
|
|
3226
|
-
{
|
|
3227
|
-
args: [
|
|
3228
|
-
{ in: "query", key: "directory" },
|
|
3229
|
-
{ in: "query", key: "workspace" },
|
|
3230
|
-
{ key: "body", map: "body" },
|
|
3231
|
-
],
|
|
3232
|
-
},
|
|
3233
|
-
]);
|
|
3234
|
-
return (options?.client ?? this.client).post({
|
|
3235
|
-
url: "/tui/control/response",
|
|
3236
|
-
...options,
|
|
3237
|
-
...params,
|
|
3238
|
-
headers: {
|
|
3239
|
-
"Content-Type": "application/json",
|
|
3240
|
-
...options?.headers,
|
|
3241
|
-
...params.headers,
|
|
3242
|
-
},
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
export class Config3 extends HeyApiClient {
|
|
3247
|
-
/**
|
|
3248
|
-
* Get TUI configuration
|
|
3249
|
-
*
|
|
3250
|
-
* Retrieve the effective TUI configuration for the current instance directory.
|
|
3251
|
-
*/
|
|
3252
|
-
get(parameters, options) {
|
|
3253
|
-
const params = buildClientParams([parameters], [
|
|
3254
|
-
{
|
|
3255
|
-
args: [
|
|
3256
|
-
{ in: "query", key: "directory" },
|
|
3257
|
-
{ in: "query", key: "workspace" },
|
|
3258
|
-
],
|
|
3259
|
-
},
|
|
3260
|
-
]);
|
|
3261
|
-
return (options?.client ?? this.client).get({
|
|
3262
|
-
url: "/tui/config",
|
|
3263
|
-
...options,
|
|
3264
|
-
...params,
|
|
3265
|
-
});
|
|
3266
|
-
}
|
|
3267
|
-
/**
|
|
3268
|
-
* Update TUI configuration
|
|
3269
|
-
*
|
|
3270
|
-
* Patch global or project TUI configuration and return the effective TUI configuration.
|
|
3271
|
-
*/
|
|
3272
|
-
update(parameters, options) {
|
|
3273
|
-
const params = buildClientParams([parameters], [
|
|
3274
|
-
{
|
|
3275
|
-
args: [
|
|
3276
|
-
{ in: "query", key: "directory" },
|
|
3277
|
-
{ in: "query", key: "workspace" },
|
|
3278
|
-
{ in: "query", key: "scope" },
|
|
3279
|
-
{ in: "body", key: "$schema" },
|
|
3280
|
-
{ in: "body", key: "theme" },
|
|
3281
|
-
{ in: "body", key: "keybinds" },
|
|
3282
|
-
{ in: "body", key: "plugin" },
|
|
3283
|
-
{ in: "body", key: "plugin_enabled" },
|
|
3284
|
-
{ in: "body", key: "title_icon" },
|
|
3285
|
-
{ in: "body", key: "scroll_speed" },
|
|
3286
|
-
{ in: "body", key: "scroll_acceleration" },
|
|
3287
|
-
{ in: "body", key: "diff_style" },
|
|
3288
|
-
{ in: "body", key: "mouse" },
|
|
3289
|
-
{ in: "body", key: "attention" },
|
|
3290
|
-
],
|
|
3291
|
-
},
|
|
3292
|
-
]);
|
|
3293
|
-
return (options?.client ?? this.client).patch({
|
|
3294
|
-
url: "/tui/config",
|
|
3295
|
-
...options,
|
|
3296
|
-
...params,
|
|
3297
|
-
headers: {
|
|
3298
|
-
"Content-Type": "application/json",
|
|
3299
|
-
...options?.headers,
|
|
3300
|
-
...params.headers,
|
|
3301
|
-
},
|
|
3302
|
-
});
|
|
3303
|
-
}
|
|
3304
|
-
}
|
|
3305
|
-
export class Keybind extends HeyApiClient {
|
|
3306
|
-
/**
|
|
3307
|
-
* List TUI keybinds
|
|
3308
|
-
*
|
|
3309
|
-
* List valid TUI keybind commands, descriptions, groups, and default bindings from the CLI schema.
|
|
3310
|
-
*/
|
|
3311
|
-
list(parameters, options) {
|
|
3312
|
-
const params = buildClientParams([parameters], [
|
|
3313
|
-
{
|
|
3314
|
-
args: [
|
|
3315
|
-
{ in: "query", key: "directory" },
|
|
3316
|
-
{ in: "query", key: "workspace" },
|
|
3317
|
-
],
|
|
3318
|
-
},
|
|
3319
|
-
]);
|
|
3320
|
-
return (options?.client ?? this.client).get({
|
|
3321
|
-
url: "/tui/keybinds",
|
|
3322
|
-
...options,
|
|
3323
|
-
...params,
|
|
3324
|
-
});
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
export class Tui extends HeyApiClient {
|
|
3328
|
-
/**
|
|
3329
|
-
* Append TUI prompt
|
|
3330
|
-
*
|
|
3331
|
-
* Append prompt to the TUI.
|
|
3332
|
-
*/
|
|
3333
|
-
appendPrompt(parameters, options) {
|
|
3334
|
-
const params = buildClientParams([parameters], [
|
|
3335
|
-
{
|
|
3336
|
-
args: [
|
|
3337
|
-
{ in: "query", key: "directory" },
|
|
3338
|
-
{ in: "query", key: "workspace" },
|
|
3339
|
-
{ in: "body", key: "text" },
|
|
3298
|
+
{ in: "body", key: "text" },
|
|
3340
3299
|
],
|
|
3341
3300
|
},
|
|
3342
3301
|
]);
|
|
@@ -4193,7 +4152,7 @@ export class Claw extends HeyApiClient {
|
|
|
4193
4152
|
});
|
|
4194
4153
|
}
|
|
4195
4154
|
}
|
|
4196
|
-
export class
|
|
4155
|
+
export class Session3 extends HeyApiClient {
|
|
4197
4156
|
/**
|
|
4198
4157
|
* Get cloud session
|
|
4199
4158
|
*
|
|
@@ -4245,7 +4204,7 @@ export class Session4 extends HeyApiClient {
|
|
|
4245
4204
|
export class Cloud extends HeyApiClient {
|
|
4246
4205
|
_session;
|
|
4247
4206
|
get session() {
|
|
4248
|
-
return (this._session ??= new
|
|
4207
|
+
return (this._session ??= new Session3({ client: this.client }));
|
|
4249
4208
|
}
|
|
4250
4209
|
}
|
|
4251
4210
|
export class Kilo extends HeyApiClient {
|
|
@@ -4538,34 +4497,45 @@ export class Notebook extends HeyApiClient {
|
|
|
4538
4497
|
});
|
|
4539
4498
|
}
|
|
4540
4499
|
}
|
|
4541
|
-
export class
|
|
4500
|
+
export class AgentManager extends HeyApiClient {
|
|
4542
4501
|
/**
|
|
4543
|
-
*
|
|
4502
|
+
* List pending Agent Manager requests
|
|
4544
4503
|
*
|
|
4545
|
-
*
|
|
4504
|
+
* List pending native Agent Manager orchestration requests for the routed workspace.
|
|
4546
4505
|
*/
|
|
4547
|
-
|
|
4506
|
+
list(parameters, options) {
|
|
4548
4507
|
const params = buildClientParams([parameters], [
|
|
4549
4508
|
{
|
|
4550
4509
|
args: [
|
|
4551
4510
|
{ in: "query", key: "directory" },
|
|
4552
4511
|
{ in: "query", key: "workspace" },
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4512
|
+
],
|
|
4513
|
+
},
|
|
4514
|
+
]);
|
|
4515
|
+
return (options?.client ?? this.client).get({
|
|
4516
|
+
url: "/kilocode/agent-manager",
|
|
4517
|
+
...options,
|
|
4518
|
+
...params,
|
|
4519
|
+
});
|
|
4520
|
+
}
|
|
4521
|
+
/**
|
|
4522
|
+
* Reply to an Agent Manager request
|
|
4523
|
+
*
|
|
4524
|
+
* Complete a pending Agent Manager orchestration request with a structured result.
|
|
4525
|
+
*/
|
|
4526
|
+
reply(parameters, options) {
|
|
4527
|
+
const params = buildClientParams([parameters], [
|
|
4528
|
+
{
|
|
4529
|
+
args: [
|
|
4530
|
+
{ in: "path", key: "requestID" },
|
|
4531
|
+
{ in: "query", key: "directory" },
|
|
4532
|
+
{ in: "query", key: "workspace" },
|
|
4533
|
+
{ in: "body", key: "result" },
|
|
4564
4534
|
],
|
|
4565
4535
|
},
|
|
4566
4536
|
]);
|
|
4567
4537
|
return (options?.client ?? this.client).post({
|
|
4568
|
-
url: "/kilocode/
|
|
4538
|
+
url: "/kilocode/agent-manager/{requestID}/reply",
|
|
4569
4539
|
...options,
|
|
4570
4540
|
...params,
|
|
4571
4541
|
headers: {
|
|
@@ -4576,11 +4546,76 @@ export class SessionImport extends HeyApiClient {
|
|
|
4576
4546
|
});
|
|
4577
4547
|
}
|
|
4578
4548
|
/**
|
|
4579
|
-
*
|
|
4549
|
+
* Reject an Agent Manager request
|
|
4580
4550
|
*
|
|
4581
|
-
*
|
|
4551
|
+
* Complete a pending Agent Manager orchestration request with a structured host error.
|
|
4582
4552
|
*/
|
|
4583
|
-
|
|
4553
|
+
reject(parameters, options) {
|
|
4554
|
+
const params = buildClientParams([parameters], [
|
|
4555
|
+
{
|
|
4556
|
+
args: [
|
|
4557
|
+
{ in: "path", key: "requestID" },
|
|
4558
|
+
{ in: "query", key: "directory" },
|
|
4559
|
+
{ in: "query", key: "workspace" },
|
|
4560
|
+
{ in: "body", key: "error" },
|
|
4561
|
+
],
|
|
4562
|
+
},
|
|
4563
|
+
]);
|
|
4564
|
+
return (options?.client ?? this.client).post({
|
|
4565
|
+
url: "/kilocode/agent-manager/{requestID}/reject",
|
|
4566
|
+
...options,
|
|
4567
|
+
...params,
|
|
4568
|
+
headers: {
|
|
4569
|
+
"Content-Type": "application/json",
|
|
4570
|
+
...options?.headers,
|
|
4571
|
+
...params.headers,
|
|
4572
|
+
},
|
|
4573
|
+
});
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
export class SessionImport extends HeyApiClient {
|
|
4577
|
+
/**
|
|
4578
|
+
* Insert project for session import
|
|
4579
|
+
*
|
|
4580
|
+
* Insert or update a project row used by legacy session import.
|
|
4581
|
+
*/
|
|
4582
|
+
project(parameters, options) {
|
|
4583
|
+
const params = buildClientParams([parameters], [
|
|
4584
|
+
{
|
|
4585
|
+
args: [
|
|
4586
|
+
{ in: "query", key: "directory" },
|
|
4587
|
+
{ in: "query", key: "workspace" },
|
|
4588
|
+
{ in: "body", key: "id" },
|
|
4589
|
+
{ in: "body", key: "worktree" },
|
|
4590
|
+
{ in: "body", key: "vcs" },
|
|
4591
|
+
{ in: "body", key: "name" },
|
|
4592
|
+
{ in: "body", key: "iconUrl" },
|
|
4593
|
+
{ in: "body", key: "iconColor" },
|
|
4594
|
+
{ in: "body", key: "timeCreated" },
|
|
4595
|
+
{ in: "body", key: "timeUpdated" },
|
|
4596
|
+
{ in: "body", key: "timeInitialized" },
|
|
4597
|
+
{ in: "body", key: "sandboxes" },
|
|
4598
|
+
{ in: "body", key: "commands" },
|
|
4599
|
+
],
|
|
4600
|
+
},
|
|
4601
|
+
]);
|
|
4602
|
+
return (options?.client ?? this.client).post({
|
|
4603
|
+
url: "/kilocode/session-import/project",
|
|
4604
|
+
...options,
|
|
4605
|
+
...params,
|
|
4606
|
+
headers: {
|
|
4607
|
+
"Content-Type": "application/json",
|
|
4608
|
+
...options?.headers,
|
|
4609
|
+
...params.headers,
|
|
4610
|
+
},
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4613
|
+
/**
|
|
4614
|
+
* Insert session for session import
|
|
4615
|
+
*
|
|
4616
|
+
* Insert or update a session row used by legacy session import.
|
|
4617
|
+
*/
|
|
4618
|
+
session(parameters, options) {
|
|
4584
4619
|
const params = buildClientParams([parameters], [
|
|
4585
4620
|
{
|
|
4586
4621
|
args: [
|
|
@@ -4788,6 +4823,10 @@ export class Kilocode extends HeyApiClient {
|
|
|
4788
4823
|
get notebook() {
|
|
4789
4824
|
return (this._notebook ??= new Notebook({ client: this.client }));
|
|
4790
4825
|
}
|
|
4826
|
+
_agentManager;
|
|
4827
|
+
get agentManager() {
|
|
4828
|
+
return (this._agentManager ??= new AgentManager({ client: this.client }));
|
|
4829
|
+
}
|
|
4791
4830
|
_sessionImport;
|
|
4792
4831
|
get sessionImport() {
|
|
4793
4832
|
return (this._sessionImport ??= new SessionImport({ client: this.client }));
|
|
@@ -5168,253 +5207,755 @@ export class Telemetry extends HeyApiClient {
|
|
|
5168
5207
|
url: "/telemetry/setEnabled",
|
|
5169
5208
|
...options,
|
|
5170
5209
|
...params,
|
|
5171
|
-
headers: {
|
|
5172
|
-
"Content-Type": "application/json",
|
|
5173
|
-
...options?.headers,
|
|
5174
|
-
...params.headers,
|
|
5175
|
-
},
|
|
5210
|
+
headers: {
|
|
5211
|
+
"Content-Type": "application/json",
|
|
5212
|
+
...options?.headers,
|
|
5213
|
+
...params.headers,
|
|
5214
|
+
},
|
|
5215
|
+
});
|
|
5216
|
+
}
|
|
5217
|
+
}
|
|
5218
|
+
export class Memory extends HeyApiClient {
|
|
5219
|
+
/**
|
|
5220
|
+
* Get memory status
|
|
5221
|
+
*
|
|
5222
|
+
* Return memory state, index preview, and token estimate for the active workspace.
|
|
5223
|
+
*/
|
|
5224
|
+
status(parameters, options) {
|
|
5225
|
+
const params = buildClientParams([parameters], [
|
|
5226
|
+
{
|
|
5227
|
+
args: [
|
|
5228
|
+
{ in: "query", key: "directory" },
|
|
5229
|
+
{ in: "query", key: "workspace" },
|
|
5230
|
+
],
|
|
5231
|
+
},
|
|
5232
|
+
]);
|
|
5233
|
+
return (options?.client ?? this.client).get({
|
|
5234
|
+
url: "/memory/status",
|
|
5235
|
+
...options,
|
|
5236
|
+
...params,
|
|
5237
|
+
});
|
|
5238
|
+
}
|
|
5239
|
+
/**
|
|
5240
|
+
* Show memory
|
|
5241
|
+
*
|
|
5242
|
+
* Return source memory files, generated index, recent decision summary, and memory save decisions.
|
|
5243
|
+
*/
|
|
5244
|
+
show(parameters, options) {
|
|
5245
|
+
const params = buildClientParams([parameters], [
|
|
5246
|
+
{
|
|
5247
|
+
args: [
|
|
5248
|
+
{ in: "query", key: "directory" },
|
|
5249
|
+
{ in: "query", key: "workspace" },
|
|
5250
|
+
],
|
|
5251
|
+
},
|
|
5252
|
+
]);
|
|
5253
|
+
return (options?.client ?? this.client).get({
|
|
5254
|
+
url: "/memory/show",
|
|
5255
|
+
...options,
|
|
5256
|
+
...params,
|
|
5257
|
+
});
|
|
5258
|
+
}
|
|
5259
|
+
/**
|
|
5260
|
+
* Enable memory
|
|
5261
|
+
*
|
|
5262
|
+
* Scaffold and enable project memory for the active workspace.
|
|
5263
|
+
*/
|
|
5264
|
+
enable(parameters, options) {
|
|
5265
|
+
const params = buildClientParams([parameters], [
|
|
5266
|
+
{
|
|
5267
|
+
args: [
|
|
5268
|
+
{ in: "query", key: "directory" },
|
|
5269
|
+
{ in: "query", key: "workspace" },
|
|
5270
|
+
],
|
|
5271
|
+
},
|
|
5272
|
+
]);
|
|
5273
|
+
return (options?.client ?? this.client).post({
|
|
5274
|
+
url: "/memory/enable",
|
|
5275
|
+
...options,
|
|
5276
|
+
...params,
|
|
5277
|
+
});
|
|
5278
|
+
}
|
|
5279
|
+
/**
|
|
5280
|
+
* Disable memory
|
|
5281
|
+
*
|
|
5282
|
+
* Disable project memory without deleting local memory files.
|
|
5283
|
+
*/
|
|
5284
|
+
disable(parameters, options) {
|
|
5285
|
+
const params = buildClientParams([parameters], [
|
|
5286
|
+
{
|
|
5287
|
+
args: [
|
|
5288
|
+
{ in: "query", key: "directory" },
|
|
5289
|
+
{ in: "query", key: "workspace" },
|
|
5290
|
+
],
|
|
5291
|
+
},
|
|
5292
|
+
]);
|
|
5293
|
+
return (options?.client ?? this.client).post({
|
|
5294
|
+
url: "/memory/disable",
|
|
5295
|
+
...options,
|
|
5296
|
+
...params,
|
|
5297
|
+
});
|
|
5298
|
+
}
|
|
5299
|
+
/**
|
|
5300
|
+
* Configure memory
|
|
5301
|
+
*
|
|
5302
|
+
* Update project memory settings such as automatic project fact capture.
|
|
5303
|
+
*/
|
|
5304
|
+
configure(parameters, options) {
|
|
5305
|
+
const params = buildClientParams([parameters], [
|
|
5306
|
+
{
|
|
5307
|
+
args: [
|
|
5308
|
+
{ in: "query", key: "directory" },
|
|
5309
|
+
{ in: "query", key: "workspace" },
|
|
5310
|
+
{ in: "body", key: "autoConsolidate" },
|
|
5311
|
+
],
|
|
5312
|
+
},
|
|
5313
|
+
]);
|
|
5314
|
+
return (options?.client ?? this.client).post({
|
|
5315
|
+
url: "/memory/configure",
|
|
5316
|
+
...options,
|
|
5317
|
+
...params,
|
|
5318
|
+
headers: {
|
|
5319
|
+
"Content-Type": "application/json",
|
|
5320
|
+
...options?.headers,
|
|
5321
|
+
...params.headers,
|
|
5322
|
+
},
|
|
5323
|
+
});
|
|
5324
|
+
}
|
|
5325
|
+
/**
|
|
5326
|
+
* Rebuild memory index
|
|
5327
|
+
*
|
|
5328
|
+
* Regenerate index.kmem from source memory files.
|
|
5329
|
+
*/
|
|
5330
|
+
rebuild(parameters, options) {
|
|
5331
|
+
const params = buildClientParams([parameters], [
|
|
5332
|
+
{
|
|
5333
|
+
args: [
|
|
5334
|
+
{ in: "query", key: "directory" },
|
|
5335
|
+
{ in: "query", key: "workspace" },
|
|
5336
|
+
],
|
|
5337
|
+
},
|
|
5338
|
+
]);
|
|
5339
|
+
return (options?.client ?? this.client).post({
|
|
5340
|
+
url: "/memory/rebuild",
|
|
5341
|
+
...options,
|
|
5342
|
+
...params,
|
|
5343
|
+
});
|
|
5344
|
+
}
|
|
5345
|
+
/**
|
|
5346
|
+
* Remember text
|
|
5347
|
+
*
|
|
5348
|
+
* Persist explicit user-provided memory text through the deterministic operation pipeline.
|
|
5349
|
+
*/
|
|
5350
|
+
remember(parameters, options) {
|
|
5351
|
+
const params = buildClientParams([parameters], [
|
|
5352
|
+
{
|
|
5353
|
+
args: [
|
|
5354
|
+
{ in: "query", key: "directory" },
|
|
5355
|
+
{ in: "query", key: "workspace" },
|
|
5356
|
+
{ in: "body", key: "text" },
|
|
5357
|
+
{ in: "body", key: "key" },
|
|
5358
|
+
{ in: "body", key: "file" },
|
|
5359
|
+
{ in: "body", key: "section" },
|
|
5360
|
+
{ in: "body", key: "sessionID" },
|
|
5361
|
+
],
|
|
5362
|
+
},
|
|
5363
|
+
]);
|
|
5364
|
+
return (options?.client ?? this.client).post({
|
|
5365
|
+
url: "/memory/remember",
|
|
5366
|
+
...options,
|
|
5367
|
+
...params,
|
|
5368
|
+
headers: {
|
|
5369
|
+
"Content-Type": "application/json",
|
|
5370
|
+
...options?.headers,
|
|
5371
|
+
...params.headers,
|
|
5372
|
+
},
|
|
5373
|
+
});
|
|
5374
|
+
}
|
|
5375
|
+
/**
|
|
5376
|
+
* Remember correction
|
|
5377
|
+
*
|
|
5378
|
+
* Persist explicit corrective memory under corrections.md.
|
|
5379
|
+
*/
|
|
5380
|
+
correct(parameters, options) {
|
|
5381
|
+
const params = buildClientParams([parameters], [
|
|
5382
|
+
{
|
|
5383
|
+
args: [
|
|
5384
|
+
{ in: "query", key: "directory" },
|
|
5385
|
+
{ in: "query", key: "workspace" },
|
|
5386
|
+
{ in: "body", key: "text" },
|
|
5387
|
+
{ in: "body", key: "key" },
|
|
5388
|
+
{ in: "body", key: "sessionID" },
|
|
5389
|
+
],
|
|
5390
|
+
},
|
|
5391
|
+
]);
|
|
5392
|
+
return (options?.client ?? this.client).post({
|
|
5393
|
+
url: "/memory/correct",
|
|
5394
|
+
...options,
|
|
5395
|
+
...params,
|
|
5396
|
+
headers: {
|
|
5397
|
+
"Content-Type": "application/json",
|
|
5398
|
+
...options?.headers,
|
|
5399
|
+
...params.headers,
|
|
5400
|
+
},
|
|
5401
|
+
});
|
|
5402
|
+
}
|
|
5403
|
+
/**
|
|
5404
|
+
* Forget memory
|
|
5405
|
+
*
|
|
5406
|
+
* Remove memory lines by exact key, id, or normalized key text and rebuild the index.
|
|
5407
|
+
*/
|
|
5408
|
+
forget(parameters, options) {
|
|
5409
|
+
const params = buildClientParams([parameters], [
|
|
5410
|
+
{
|
|
5411
|
+
args: [
|
|
5412
|
+
{ in: "query", key: "directory" },
|
|
5413
|
+
{ in: "query", key: "workspace" },
|
|
5414
|
+
{ in: "body", key: "query" },
|
|
5415
|
+
{ in: "body", key: "sessionID" },
|
|
5416
|
+
],
|
|
5417
|
+
},
|
|
5418
|
+
]);
|
|
5419
|
+
return (options?.client ?? this.client).post({
|
|
5420
|
+
url: "/memory/forget",
|
|
5421
|
+
...options,
|
|
5422
|
+
...params,
|
|
5423
|
+
headers: {
|
|
5424
|
+
"Content-Type": "application/json",
|
|
5425
|
+
...options?.headers,
|
|
5426
|
+
...params.headers,
|
|
5427
|
+
},
|
|
5428
|
+
});
|
|
5429
|
+
}
|
|
5430
|
+
/**
|
|
5431
|
+
* Purge memory
|
|
5432
|
+
*
|
|
5433
|
+
* Delete all project memory files for the active workspace.
|
|
5434
|
+
*/
|
|
5435
|
+
purge(parameters, options) {
|
|
5436
|
+
const params = buildClientParams([parameters], [
|
|
5437
|
+
{
|
|
5438
|
+
args: [
|
|
5439
|
+
{ in: "query", key: "directory" },
|
|
5440
|
+
{ in: "query", key: "workspace" },
|
|
5441
|
+
{ in: "body", key: "confirm" },
|
|
5442
|
+
],
|
|
5443
|
+
},
|
|
5444
|
+
]);
|
|
5445
|
+
return (options?.client ?? this.client).post({
|
|
5446
|
+
url: "/memory/purge",
|
|
5447
|
+
...options,
|
|
5448
|
+
...params,
|
|
5449
|
+
headers: {
|
|
5450
|
+
"Content-Type": "application/json",
|
|
5451
|
+
...options?.headers,
|
|
5452
|
+
...params.headers,
|
|
5453
|
+
},
|
|
5454
|
+
});
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
|
+
export class Health extends HeyApiClient {
|
|
5458
|
+
/**
|
|
5459
|
+
* Check v2 server health
|
|
5460
|
+
*
|
|
5461
|
+
* Check whether the v2 API server is ready to accept requests.
|
|
5462
|
+
*/
|
|
5463
|
+
get(options) {
|
|
5464
|
+
return (options?.client ?? this.client).get({
|
|
5465
|
+
url: "/api/health",
|
|
5466
|
+
...options,
|
|
5467
|
+
});
|
|
5468
|
+
}
|
|
5469
|
+
}
|
|
5470
|
+
export class Agent extends HeyApiClient {
|
|
5471
|
+
/**
|
|
5472
|
+
* List v2 agents
|
|
5473
|
+
*
|
|
5474
|
+
* Retrieve currently registered v2 agents.
|
|
5475
|
+
*/
|
|
5476
|
+
list(parameters, options) {
|
|
5477
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5478
|
+
return (options?.client ?? this.client).get({
|
|
5479
|
+
url: "/api/agent",
|
|
5480
|
+
...options,
|
|
5481
|
+
...params,
|
|
5482
|
+
});
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
export class Permission2 extends HeyApiClient {
|
|
5486
|
+
/**
|
|
5487
|
+
* List session permission requests
|
|
5488
|
+
*
|
|
5489
|
+
* Retrieve pending permission requests owned by a session.
|
|
5490
|
+
*/
|
|
5491
|
+
list(parameters, options) {
|
|
5492
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5493
|
+
return (options?.client ?? this.client).get({
|
|
5494
|
+
url: "/api/session/{sessionID}/permission/request",
|
|
5495
|
+
...options,
|
|
5496
|
+
...params,
|
|
5497
|
+
});
|
|
5498
|
+
}
|
|
5499
|
+
/**
|
|
5500
|
+
* Reply to pending permission request
|
|
5501
|
+
*
|
|
5502
|
+
* Respond to a pending permission request owned by a session.
|
|
5503
|
+
*/
|
|
5504
|
+
reply(parameters, options) {
|
|
5505
|
+
const params = buildClientParams([parameters], [
|
|
5506
|
+
{
|
|
5507
|
+
args: [
|
|
5508
|
+
{ in: "path", key: "sessionID" },
|
|
5509
|
+
{ in: "path", key: "requestID" },
|
|
5510
|
+
{ in: "body", key: "reply" },
|
|
5511
|
+
{ in: "body", key: "message" },
|
|
5512
|
+
],
|
|
5513
|
+
},
|
|
5514
|
+
]);
|
|
5515
|
+
return (options?.client ?? this.client).post({
|
|
5516
|
+
url: "/api/session/{sessionID}/permission/request/{requestID}/reply",
|
|
5517
|
+
...options,
|
|
5518
|
+
...params,
|
|
5519
|
+
headers: {
|
|
5520
|
+
"Content-Type": "application/json",
|
|
5521
|
+
...options?.headers,
|
|
5522
|
+
...params.headers,
|
|
5523
|
+
},
|
|
5524
|
+
});
|
|
5525
|
+
}
|
|
5526
|
+
}
|
|
5527
|
+
export class Question2 extends HeyApiClient {
|
|
5528
|
+
/**
|
|
5529
|
+
* Reply to pending question request
|
|
5530
|
+
*
|
|
5531
|
+
* Answer a pending question request owned by a session.
|
|
5532
|
+
*/
|
|
5533
|
+
reply(parameters, options) {
|
|
5534
|
+
const params = buildClientParams([parameters], [
|
|
5535
|
+
{
|
|
5536
|
+
args: [
|
|
5537
|
+
{ in: "path", key: "sessionID" },
|
|
5538
|
+
{ in: "path", key: "requestID" },
|
|
5539
|
+
{ key: "questionV2Reply", map: "body" },
|
|
5540
|
+
],
|
|
5541
|
+
},
|
|
5542
|
+
]);
|
|
5543
|
+
return (options?.client ?? this.client).post({
|
|
5544
|
+
url: "/api/session/{sessionID}/question/request/{requestID}/reply",
|
|
5545
|
+
...options,
|
|
5546
|
+
...params,
|
|
5547
|
+
headers: {
|
|
5548
|
+
"Content-Type": "application/json",
|
|
5549
|
+
...options?.headers,
|
|
5550
|
+
...params.headers,
|
|
5551
|
+
},
|
|
5552
|
+
});
|
|
5553
|
+
}
|
|
5554
|
+
/**
|
|
5555
|
+
* Reject pending question request
|
|
5556
|
+
*
|
|
5557
|
+
* Reject a pending question request owned by a session.
|
|
5558
|
+
*/
|
|
5559
|
+
reject(parameters, options) {
|
|
5560
|
+
const params = buildClientParams([parameters], [
|
|
5561
|
+
{
|
|
5562
|
+
args: [
|
|
5563
|
+
{ in: "path", key: "sessionID" },
|
|
5564
|
+
{ in: "path", key: "requestID" },
|
|
5565
|
+
],
|
|
5566
|
+
},
|
|
5567
|
+
]);
|
|
5568
|
+
return (options?.client ?? this.client).post({
|
|
5569
|
+
url: "/api/session/{sessionID}/question/request/{requestID}/reject",
|
|
5570
|
+
...options,
|
|
5571
|
+
...params,
|
|
5572
|
+
});
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
export class Session4 extends HeyApiClient {
|
|
5576
|
+
/**
|
|
5577
|
+
* List v2 sessions
|
|
5578
|
+
*
|
|
5579
|
+
* Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
|
|
5580
|
+
*/
|
|
5581
|
+
list(parameters, options) {
|
|
5582
|
+
const params = buildClientParams([parameters], [
|
|
5583
|
+
{
|
|
5584
|
+
args: [
|
|
5585
|
+
{ in: "query", key: "workspace" },
|
|
5586
|
+
{ in: "query", key: "limit" },
|
|
5587
|
+
{ in: "query", key: "order" },
|
|
5588
|
+
{ in: "query", key: "search" },
|
|
5589
|
+
{ in: "query", key: "directory" },
|
|
5590
|
+
{ in: "query", key: "project" },
|
|
5591
|
+
{ in: "query", key: "subpath" },
|
|
5592
|
+
{ in: "query", key: "cursor" },
|
|
5593
|
+
],
|
|
5594
|
+
},
|
|
5595
|
+
]);
|
|
5596
|
+
return (options?.client ?? this.client).get({
|
|
5597
|
+
url: "/api/session",
|
|
5598
|
+
...options,
|
|
5599
|
+
...params,
|
|
5600
|
+
});
|
|
5601
|
+
}
|
|
5602
|
+
/**
|
|
5603
|
+
* Send v2 message
|
|
5604
|
+
*
|
|
5605
|
+
* Durably admit one v2 session input and schedule agent-loop execution unless resume is false.
|
|
5606
|
+
*/
|
|
5607
|
+
prompt(parameters, options) {
|
|
5608
|
+
const params = buildClientParams([parameters], [
|
|
5609
|
+
{
|
|
5610
|
+
args: [
|
|
5611
|
+
{ in: "path", key: "sessionID" },
|
|
5612
|
+
{ in: "body", key: "id" },
|
|
5613
|
+
{ in: "body", key: "prompt" },
|
|
5614
|
+
{ in: "body", key: "delivery" },
|
|
5615
|
+
{ in: "body", key: "resume" },
|
|
5616
|
+
],
|
|
5617
|
+
},
|
|
5618
|
+
]);
|
|
5619
|
+
return (options?.client ?? this.client).post({
|
|
5620
|
+
url: "/api/session/{sessionID}/prompt",
|
|
5621
|
+
...options,
|
|
5622
|
+
...params,
|
|
5623
|
+
headers: {
|
|
5624
|
+
"Content-Type": "application/json",
|
|
5625
|
+
...options?.headers,
|
|
5626
|
+
...params.headers,
|
|
5627
|
+
},
|
|
5628
|
+
});
|
|
5629
|
+
}
|
|
5630
|
+
/**
|
|
5631
|
+
* Compact v2 session
|
|
5632
|
+
*
|
|
5633
|
+
* Compact a v2 session conversation.
|
|
5634
|
+
*/
|
|
5635
|
+
compact(parameters, options) {
|
|
5636
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5637
|
+
return (options?.client ?? this.client).post({
|
|
5638
|
+
url: "/api/session/{sessionID}/compact",
|
|
5639
|
+
...options,
|
|
5640
|
+
...params,
|
|
5641
|
+
});
|
|
5642
|
+
}
|
|
5643
|
+
/**
|
|
5644
|
+
* Wait for v2 session
|
|
5645
|
+
*
|
|
5646
|
+
* Wait for a v2 session agent loop to become idle.
|
|
5647
|
+
*/
|
|
5648
|
+
wait(parameters, options) {
|
|
5649
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5650
|
+
return (options?.client ?? this.client).post({
|
|
5651
|
+
url: "/api/session/{sessionID}/wait",
|
|
5652
|
+
...options,
|
|
5653
|
+
...params,
|
|
5654
|
+
});
|
|
5655
|
+
}
|
|
5656
|
+
/**
|
|
5657
|
+
* Get v2 session context
|
|
5658
|
+
*
|
|
5659
|
+
* Retrieve the active context messages for a v2 session (all messages after the last compaction).
|
|
5660
|
+
*/
|
|
5661
|
+
context(parameters, options) {
|
|
5662
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
5663
|
+
return (options?.client ?? this.client).get({
|
|
5664
|
+
url: "/api/session/{sessionID}/context",
|
|
5665
|
+
...options,
|
|
5666
|
+
...params,
|
|
5667
|
+
});
|
|
5668
|
+
}
|
|
5669
|
+
/**
|
|
5670
|
+
* Get v2 session messages
|
|
5671
|
+
*
|
|
5672
|
+
* 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.
|
|
5673
|
+
*/
|
|
5674
|
+
messages(parameters, options) {
|
|
5675
|
+
const params = buildClientParams([parameters], [
|
|
5676
|
+
{
|
|
5677
|
+
args: [
|
|
5678
|
+
{ in: "path", key: "sessionID" },
|
|
5679
|
+
{ in: "query", key: "limit" },
|
|
5680
|
+
{ in: "query", key: "order" },
|
|
5681
|
+
{ in: "query", key: "cursor" },
|
|
5682
|
+
],
|
|
5683
|
+
},
|
|
5684
|
+
]);
|
|
5685
|
+
return (options?.client ?? this.client).get({
|
|
5686
|
+
url: "/api/session/{sessionID}/message",
|
|
5687
|
+
...options,
|
|
5688
|
+
...params,
|
|
5689
|
+
});
|
|
5690
|
+
}
|
|
5691
|
+
_permission;
|
|
5692
|
+
get permission() {
|
|
5693
|
+
return (this._permission ??= new Permission2({ client: this.client }));
|
|
5694
|
+
}
|
|
5695
|
+
_question;
|
|
5696
|
+
get question() {
|
|
5697
|
+
return (this._question ??= new Question2({ client: this.client }));
|
|
5698
|
+
}
|
|
5699
|
+
}
|
|
5700
|
+
export class Model extends HeyApiClient {
|
|
5701
|
+
/**
|
|
5702
|
+
* List v2 models
|
|
5703
|
+
*
|
|
5704
|
+
* Retrieve available v2 models ordered by release date.
|
|
5705
|
+
*/
|
|
5706
|
+
list(parameters, options) {
|
|
5707
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5708
|
+
return (options?.client ?? this.client).get({
|
|
5709
|
+
url: "/api/model",
|
|
5710
|
+
...options,
|
|
5711
|
+
...params,
|
|
5712
|
+
});
|
|
5713
|
+
}
|
|
5714
|
+
}
|
|
5715
|
+
export class Provider2 extends HeyApiClient {
|
|
5716
|
+
/**
|
|
5717
|
+
* List v2 providers
|
|
5718
|
+
*
|
|
5719
|
+
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
5720
|
+
*/
|
|
5721
|
+
list(parameters, options) {
|
|
5722
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5723
|
+
return (options?.client ?? this.client).get({
|
|
5724
|
+
url: "/api/provider",
|
|
5725
|
+
...options,
|
|
5726
|
+
...params,
|
|
5176
5727
|
});
|
|
5177
5728
|
}
|
|
5178
|
-
}
|
|
5179
|
-
export class Memory extends HeyApiClient {
|
|
5180
5729
|
/**
|
|
5181
|
-
* Get
|
|
5730
|
+
* Get v2 provider
|
|
5182
5731
|
*
|
|
5183
|
-
*
|
|
5732
|
+
* Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.
|
|
5184
5733
|
*/
|
|
5185
|
-
|
|
5734
|
+
get(parameters, options) {
|
|
5186
5735
|
const params = buildClientParams([parameters], [
|
|
5187
5736
|
{
|
|
5188
5737
|
args: [
|
|
5189
|
-
{ in: "
|
|
5190
|
-
{ in: "query", key: "
|
|
5738
|
+
{ in: "path", key: "providerID" },
|
|
5739
|
+
{ in: "query", key: "location" },
|
|
5191
5740
|
],
|
|
5192
5741
|
},
|
|
5193
5742
|
]);
|
|
5194
5743
|
return (options?.client ?? this.client).get({
|
|
5195
|
-
url: "/
|
|
5744
|
+
url: "/api/provider/{providerID}",
|
|
5196
5745
|
...options,
|
|
5197
5746
|
...params,
|
|
5198
5747
|
});
|
|
5199
5748
|
}
|
|
5749
|
+
}
|
|
5750
|
+
export class Request extends HeyApiClient {
|
|
5200
5751
|
/**
|
|
5201
|
-
*
|
|
5752
|
+
* List pending permission requests
|
|
5202
5753
|
*
|
|
5203
|
-
*
|
|
5754
|
+
* Retrieve pending permission requests for a location.
|
|
5204
5755
|
*/
|
|
5205
|
-
|
|
5206
|
-
const params = buildClientParams([parameters], [
|
|
5207
|
-
{
|
|
5208
|
-
args: [
|
|
5209
|
-
{ in: "query", key: "directory" },
|
|
5210
|
-
{ in: "query", key: "workspace" },
|
|
5211
|
-
],
|
|
5212
|
-
},
|
|
5213
|
-
]);
|
|
5756
|
+
list(parameters, options) {
|
|
5757
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5214
5758
|
return (options?.client ?? this.client).get({
|
|
5215
|
-
url: "/
|
|
5759
|
+
url: "/api/permission/request",
|
|
5216
5760
|
...options,
|
|
5217
5761
|
...params,
|
|
5218
5762
|
});
|
|
5219
5763
|
}
|
|
5764
|
+
}
|
|
5765
|
+
export class Saved extends HeyApiClient {
|
|
5220
5766
|
/**
|
|
5221
|
-
*
|
|
5767
|
+
* List saved permissions
|
|
5222
5768
|
*
|
|
5223
|
-
*
|
|
5769
|
+
* Retrieve saved permissions, optionally filtered by project.
|
|
5224
5770
|
*/
|
|
5225
|
-
|
|
5226
|
-
const params = buildClientParams([parameters], [
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
{ in: "query", key: "directory" },
|
|
5230
|
-
{ in: "query", key: "workspace" },
|
|
5231
|
-
],
|
|
5232
|
-
},
|
|
5233
|
-
]);
|
|
5234
|
-
return (options?.client ?? this.client).post({
|
|
5235
|
-
url: "/memory/enable",
|
|
5771
|
+
list(parameters, options) {
|
|
5772
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "projectID" }] }]);
|
|
5773
|
+
return (options?.client ?? this.client).get({
|
|
5774
|
+
url: "/api/permission/saved",
|
|
5236
5775
|
...options,
|
|
5237
5776
|
...params,
|
|
5238
5777
|
});
|
|
5239
5778
|
}
|
|
5240
5779
|
/**
|
|
5241
|
-
*
|
|
5780
|
+
* Remove saved permission
|
|
5242
5781
|
*
|
|
5243
|
-
*
|
|
5782
|
+
* Remove a saved permission by ID.
|
|
5244
5783
|
*/
|
|
5245
|
-
|
|
5246
|
-
const params = buildClientParams([parameters], [
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
{ in: "query", key: "directory" },
|
|
5250
|
-
{ in: "query", key: "workspace" },
|
|
5251
|
-
],
|
|
5252
|
-
},
|
|
5253
|
-
]);
|
|
5254
|
-
return (options?.client ?? this.client).post({
|
|
5255
|
-
url: "/memory/disable",
|
|
5784
|
+
remove(parameters, options) {
|
|
5785
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
|
|
5786
|
+
return (options?.client ?? this.client).delete({
|
|
5787
|
+
url: "/api/permission/saved/{id}",
|
|
5256
5788
|
...options,
|
|
5257
5789
|
...params,
|
|
5258
5790
|
});
|
|
5259
5791
|
}
|
|
5792
|
+
}
|
|
5793
|
+
export class Permission3 extends HeyApiClient {
|
|
5794
|
+
_request;
|
|
5795
|
+
get request() {
|
|
5796
|
+
return (this._request ??= new Request({ client: this.client }));
|
|
5797
|
+
}
|
|
5798
|
+
_saved;
|
|
5799
|
+
get saved() {
|
|
5800
|
+
return (this._saved ??= new Saved({ client: this.client }));
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5803
|
+
export class Fs extends HeyApiClient {
|
|
5260
5804
|
/**
|
|
5261
|
-
*
|
|
5805
|
+
* Read file
|
|
5262
5806
|
*
|
|
5263
|
-
*
|
|
5807
|
+
* Read one file relative to the requested location.
|
|
5264
5808
|
*/
|
|
5265
|
-
|
|
5809
|
+
read(parameters, options) {
|
|
5266
5810
|
const params = buildClientParams([parameters], [
|
|
5267
5811
|
{
|
|
5268
5812
|
args: [
|
|
5269
|
-
{ in: "query", key: "
|
|
5270
|
-
{ in: "query", key: "
|
|
5271
|
-
{ in: "
|
|
5813
|
+
{ in: "query", key: "location" },
|
|
5814
|
+
{ in: "query", key: "path" },
|
|
5815
|
+
{ in: "query", key: "reference" },
|
|
5272
5816
|
],
|
|
5273
5817
|
},
|
|
5274
5818
|
]);
|
|
5275
|
-
return (options?.client ?? this.client).
|
|
5276
|
-
url: "/
|
|
5819
|
+
return (options?.client ?? this.client).get({
|
|
5820
|
+
url: "/api/fs/read",
|
|
5277
5821
|
...options,
|
|
5278
5822
|
...params,
|
|
5279
|
-
headers: {
|
|
5280
|
-
"Content-Type": "application/json",
|
|
5281
|
-
...options?.headers,
|
|
5282
|
-
...params.headers,
|
|
5283
|
-
},
|
|
5284
5823
|
});
|
|
5285
5824
|
}
|
|
5286
5825
|
/**
|
|
5287
|
-
*
|
|
5826
|
+
* List directory
|
|
5288
5827
|
*
|
|
5289
|
-
*
|
|
5828
|
+
* List direct children of one directory relative to the requested location.
|
|
5290
5829
|
*/
|
|
5291
|
-
|
|
5830
|
+
list(parameters, options) {
|
|
5292
5831
|
const params = buildClientParams([parameters], [
|
|
5293
5832
|
{
|
|
5294
5833
|
args: [
|
|
5295
|
-
{ in: "query", key: "
|
|
5296
|
-
{ in: "query", key: "
|
|
5834
|
+
{ in: "query", key: "location" },
|
|
5835
|
+
{ in: "query", key: "path" },
|
|
5836
|
+
{ in: "query", key: "reference" },
|
|
5297
5837
|
],
|
|
5298
5838
|
},
|
|
5299
5839
|
]);
|
|
5300
|
-
return (options?.client ?? this.client).
|
|
5301
|
-
url: "/
|
|
5840
|
+
return (options?.client ?? this.client).get({
|
|
5841
|
+
url: "/api/fs/list",
|
|
5302
5842
|
...options,
|
|
5303
5843
|
...params,
|
|
5304
5844
|
});
|
|
5305
5845
|
}
|
|
5846
|
+
}
|
|
5847
|
+
export class Command2 extends HeyApiClient {
|
|
5306
5848
|
/**
|
|
5307
|
-
*
|
|
5849
|
+
* List v2 commands
|
|
5308
5850
|
*
|
|
5309
|
-
*
|
|
5851
|
+
* Retrieve currently registered v2 commands.
|
|
5310
5852
|
*/
|
|
5311
|
-
|
|
5312
|
-
const params = buildClientParams([parameters], [
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
{ in: "query", key: "directory" },
|
|
5316
|
-
{ in: "query", key: "workspace" },
|
|
5317
|
-
{ in: "body", key: "text" },
|
|
5318
|
-
{ in: "body", key: "key" },
|
|
5319
|
-
{ in: "body", key: "file" },
|
|
5320
|
-
{ in: "body", key: "section" },
|
|
5321
|
-
{ in: "body", key: "sessionID" },
|
|
5322
|
-
],
|
|
5323
|
-
},
|
|
5324
|
-
]);
|
|
5325
|
-
return (options?.client ?? this.client).post({
|
|
5326
|
-
url: "/memory/remember",
|
|
5853
|
+
list(parameters, options) {
|
|
5854
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5855
|
+
return (options?.client ?? this.client).get({
|
|
5856
|
+
url: "/api/command",
|
|
5327
5857
|
...options,
|
|
5328
5858
|
...params,
|
|
5329
|
-
headers: {
|
|
5330
|
-
"Content-Type": "application/json",
|
|
5331
|
-
...options?.headers,
|
|
5332
|
-
...params.headers,
|
|
5333
|
-
},
|
|
5334
5859
|
});
|
|
5335
5860
|
}
|
|
5861
|
+
}
|
|
5862
|
+
export class Skill extends HeyApiClient {
|
|
5336
5863
|
/**
|
|
5337
|
-
*
|
|
5864
|
+
* List v2 skills
|
|
5338
5865
|
*
|
|
5339
|
-
*
|
|
5866
|
+
* Retrieve currently registered v2 skills.
|
|
5340
5867
|
*/
|
|
5341
|
-
|
|
5342
|
-
const params = buildClientParams([parameters], [
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
{ in: "query", key: "directory" },
|
|
5346
|
-
{ in: "query", key: "workspace" },
|
|
5347
|
-
{ in: "body", key: "text" },
|
|
5348
|
-
{ in: "body", key: "key" },
|
|
5349
|
-
{ in: "body", key: "sessionID" },
|
|
5350
|
-
],
|
|
5351
|
-
},
|
|
5352
|
-
]);
|
|
5353
|
-
return (options?.client ?? this.client).post({
|
|
5354
|
-
url: "/memory/correct",
|
|
5868
|
+
list(parameters, options) {
|
|
5869
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5870
|
+
return (options?.client ?? this.client).get({
|
|
5871
|
+
url: "/api/skill",
|
|
5355
5872
|
...options,
|
|
5356
5873
|
...params,
|
|
5357
|
-
headers: {
|
|
5358
|
-
"Content-Type": "application/json",
|
|
5359
|
-
...options?.headers,
|
|
5360
|
-
...params.headers,
|
|
5361
|
-
},
|
|
5362
5874
|
});
|
|
5363
5875
|
}
|
|
5876
|
+
}
|
|
5877
|
+
export class Event2 extends HeyApiClient {
|
|
5364
5878
|
/**
|
|
5365
|
-
*
|
|
5879
|
+
* Subscribe to v2 events
|
|
5366
5880
|
*
|
|
5367
|
-
*
|
|
5881
|
+
* Subscribe to native EventV2 payloads for a location.
|
|
5368
5882
|
*/
|
|
5369
|
-
|
|
5370
|
-
const params = buildClientParams([parameters], [
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
{ in: "query", key: "directory" },
|
|
5374
|
-
{ in: "query", key: "workspace" },
|
|
5375
|
-
{ in: "body", key: "query" },
|
|
5376
|
-
{ in: "body", key: "sessionID" },
|
|
5377
|
-
],
|
|
5378
|
-
},
|
|
5379
|
-
]);
|
|
5380
|
-
return (options?.client ?? this.client).post({
|
|
5381
|
-
url: "/memory/forget",
|
|
5883
|
+
subscribe(parameters, options) {
|
|
5884
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5885
|
+
return (options?.client ?? this.client).sse.get({
|
|
5886
|
+
url: "/api/event",
|
|
5382
5887
|
...options,
|
|
5383
5888
|
...params,
|
|
5384
|
-
headers: {
|
|
5385
|
-
"Content-Type": "application/json",
|
|
5386
|
-
...options?.headers,
|
|
5387
|
-
...params.headers,
|
|
5388
|
-
},
|
|
5389
5889
|
});
|
|
5390
5890
|
}
|
|
5891
|
+
}
|
|
5892
|
+
export class Request2 extends HeyApiClient {
|
|
5391
5893
|
/**
|
|
5392
|
-
*
|
|
5894
|
+
* List pending question requests
|
|
5393
5895
|
*
|
|
5394
|
-
*
|
|
5896
|
+
* Retrieve pending question requests for a location.
|
|
5395
5897
|
*/
|
|
5396
|
-
|
|
5397
|
-
const params = buildClientParams([parameters], [
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
{ in: "query", key: "directory" },
|
|
5401
|
-
{ in: "query", key: "workspace" },
|
|
5402
|
-
{ in: "body", key: "confirm" },
|
|
5403
|
-
],
|
|
5404
|
-
},
|
|
5405
|
-
]);
|
|
5406
|
-
return (options?.client ?? this.client).post({
|
|
5407
|
-
url: "/memory/purge",
|
|
5898
|
+
list(parameters, options) {
|
|
5899
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5900
|
+
return (options?.client ?? this.client).get({
|
|
5901
|
+
url: "/api/question/request",
|
|
5408
5902
|
...options,
|
|
5409
5903
|
...params,
|
|
5410
|
-
headers: {
|
|
5411
|
-
"Content-Type": "application/json",
|
|
5412
|
-
...options?.headers,
|
|
5413
|
-
...params.headers,
|
|
5414
|
-
},
|
|
5415
5904
|
});
|
|
5416
5905
|
}
|
|
5417
5906
|
}
|
|
5907
|
+
export class Question3 extends HeyApiClient {
|
|
5908
|
+
_request;
|
|
5909
|
+
get request() {
|
|
5910
|
+
return (this._request ??= new Request2({ client: this.client }));
|
|
5911
|
+
}
|
|
5912
|
+
}
|
|
5913
|
+
export class V2 extends HeyApiClient {
|
|
5914
|
+
_health;
|
|
5915
|
+
get health() {
|
|
5916
|
+
return (this._health ??= new Health({ client: this.client }));
|
|
5917
|
+
}
|
|
5918
|
+
_agent;
|
|
5919
|
+
get agent() {
|
|
5920
|
+
return (this._agent ??= new Agent({ client: this.client }));
|
|
5921
|
+
}
|
|
5922
|
+
_session;
|
|
5923
|
+
get session() {
|
|
5924
|
+
return (this._session ??= new Session4({ client: this.client }));
|
|
5925
|
+
}
|
|
5926
|
+
_model;
|
|
5927
|
+
get model() {
|
|
5928
|
+
return (this._model ??= new Model({ client: this.client }));
|
|
5929
|
+
}
|
|
5930
|
+
_provider;
|
|
5931
|
+
get provider() {
|
|
5932
|
+
return (this._provider ??= new Provider2({ client: this.client }));
|
|
5933
|
+
}
|
|
5934
|
+
_permission;
|
|
5935
|
+
get permission() {
|
|
5936
|
+
return (this._permission ??= new Permission3({ client: this.client }));
|
|
5937
|
+
}
|
|
5938
|
+
_fs;
|
|
5939
|
+
get fs() {
|
|
5940
|
+
return (this._fs ??= new Fs({ client: this.client }));
|
|
5941
|
+
}
|
|
5942
|
+
_command;
|
|
5943
|
+
get command() {
|
|
5944
|
+
return (this._command ??= new Command2({ client: this.client }));
|
|
5945
|
+
}
|
|
5946
|
+
_skill;
|
|
5947
|
+
get skill() {
|
|
5948
|
+
return (this._skill ??= new Skill({ client: this.client }));
|
|
5949
|
+
}
|
|
5950
|
+
_event;
|
|
5951
|
+
get event() {
|
|
5952
|
+
return (this._event ??= new Event2({ client: this.client }));
|
|
5953
|
+
}
|
|
5954
|
+
_question;
|
|
5955
|
+
get question() {
|
|
5956
|
+
return (this._question ??= new Question3({ client: this.client }));
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5418
5959
|
export class KiloClient extends HeyApiClient {
|
|
5419
5960
|
static __registry = new HeyApiRegistry();
|
|
5420
5961
|
constructor(args) {
|
|
@@ -5429,6 +5970,10 @@ export class KiloClient extends HeyApiClient {
|
|
|
5429
5970
|
get app() {
|
|
5430
5971
|
return (this._app ??= new App({ client: this.client }));
|
|
5431
5972
|
}
|
|
5973
|
+
_experimental;
|
|
5974
|
+
get experimental() {
|
|
5975
|
+
return (this._experimental ??= new Experimental({ client: this.client }));
|
|
5976
|
+
}
|
|
5432
5977
|
_global;
|
|
5433
5978
|
get global() {
|
|
5434
5979
|
return (this._global ??= new Global({ client: this.client }));
|
|
@@ -5441,10 +5986,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
5441
5986
|
get config() {
|
|
5442
5987
|
return (this._config ??= new Config2({ client: this.client }));
|
|
5443
5988
|
}
|
|
5444
|
-
_experimental;
|
|
5445
|
-
get experimental() {
|
|
5446
|
-
return (this._experimental ??= new Experimental({ client: this.client }));
|
|
5447
|
-
}
|
|
5448
5989
|
_tool;
|
|
5449
5990
|
get tool() {
|
|
5450
5991
|
return (this._tool ??= new Tool({ client: this.client }));
|
|
@@ -5521,10 +6062,6 @@ export class KiloClient extends HeyApiClient {
|
|
|
5521
6062
|
get sync() {
|
|
5522
6063
|
return (this._sync ??= new Sync({ client: this.client }));
|
|
5523
6064
|
}
|
|
5524
|
-
_v2;
|
|
5525
|
-
get v2() {
|
|
5526
|
-
return (this._v2 ??= new V2({ client: this.client }));
|
|
5527
|
-
}
|
|
5528
6065
|
_tui;
|
|
5529
6066
|
get tui() {
|
|
5530
6067
|
return (this._tui ??= new Tui({ client: this.client }));
|
|
@@ -5593,4 +6130,8 @@ export class KiloClient extends HeyApiClient {
|
|
|
5593
6130
|
get memory() {
|
|
5594
6131
|
return (this._memory ??= new Memory({ client: this.client }));
|
|
5595
6132
|
}
|
|
6133
|
+
_v2;
|
|
6134
|
+
get v2() {
|
|
6135
|
+
return (this._v2 ??= new V2({ client: this.client }));
|
|
6136
|
+
}
|
|
5596
6137
|
}
|