@kilocode/sdk 7.0.46 → 7.0.48

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.
@@ -138,7 +138,14 @@ export class Project extends HeyApiClient {
138
138
  * Get a list of projects that have been opened with OpenCode.
139
139
  */
140
140
  list(parameters, options) {
141
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
141
+ const params = buildClientParams([parameters], [
142
+ {
143
+ args: [
144
+ { in: "query", key: "directory" },
145
+ { in: "query", key: "workspace" },
146
+ ],
147
+ },
148
+ ]);
142
149
  return (options?.client ?? this.client).get({
143
150
  url: "/project",
144
151
  ...options,
@@ -151,7 +158,14 @@ export class Project extends HeyApiClient {
151
158
  * Retrieve the currently active project that OpenCode is working with.
152
159
  */
153
160
  current(parameters, options) {
154
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
161
+ const params = buildClientParams([parameters], [
162
+ {
163
+ args: [
164
+ { in: "query", key: "directory" },
165
+ { in: "query", key: "workspace" },
166
+ ],
167
+ },
168
+ ]);
155
169
  return (options?.client ?? this.client).get({
156
170
  url: "/project/current",
157
171
  ...options,
@@ -169,6 +183,7 @@ export class Project extends HeyApiClient {
169
183
  args: [
170
184
  { in: "path", key: "projectID" },
171
185
  { in: "query", key: "directory" },
186
+ { in: "query", key: "workspace" },
172
187
  { in: "body", key: "name" },
173
188
  { in: "body", key: "icon" },
174
189
  { in: "body", key: "commands" },
@@ -194,7 +209,14 @@ export class Pty extends HeyApiClient {
194
209
  * Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
195
210
  */
196
211
  list(parameters, options) {
197
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
212
+ const params = buildClientParams([parameters], [
213
+ {
214
+ args: [
215
+ { in: "query", key: "directory" },
216
+ { in: "query", key: "workspace" },
217
+ ],
218
+ },
219
+ ]);
198
220
  return (options?.client ?? this.client).get({
199
221
  url: "/pty",
200
222
  ...options,
@@ -211,6 +233,7 @@ export class Pty extends HeyApiClient {
211
233
  {
212
234
  args: [
213
235
  { in: "query", key: "directory" },
236
+ { in: "query", key: "workspace" },
214
237
  { in: "body", key: "command" },
215
238
  { in: "body", key: "args" },
216
239
  { in: "body", key: "cwd" },
@@ -241,6 +264,7 @@ export class Pty extends HeyApiClient {
241
264
  args: [
242
265
  { in: "path", key: "ptyID" },
243
266
  { in: "query", key: "directory" },
267
+ { in: "query", key: "workspace" },
244
268
  ],
245
269
  },
246
270
  ]);
@@ -261,6 +285,7 @@ export class Pty extends HeyApiClient {
261
285
  args: [
262
286
  { in: "path", key: "ptyID" },
263
287
  { in: "query", key: "directory" },
288
+ { in: "query", key: "workspace" },
264
289
  ],
265
290
  },
266
291
  ]);
@@ -281,6 +306,7 @@ export class Pty extends HeyApiClient {
281
306
  args: [
282
307
  { in: "path", key: "ptyID" },
283
308
  { in: "query", key: "directory" },
309
+ { in: "query", key: "workspace" },
284
310
  { in: "body", key: "title" },
285
311
  { in: "body", key: "size" },
286
312
  ],
@@ -308,6 +334,7 @@ export class Pty extends HeyApiClient {
308
334
  args: [
309
335
  { in: "path", key: "ptyID" },
310
336
  { in: "query", key: "directory" },
337
+ { in: "query", key: "workspace" },
311
338
  ],
312
339
  },
313
340
  ]);
@@ -325,7 +352,14 @@ export class Config2 extends HeyApiClient {
325
352
  * Retrieve the current OpenCode configuration settings and preferences.
326
353
  */
327
354
  get(parameters, options) {
328
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
355
+ const params = buildClientParams([parameters], [
356
+ {
357
+ args: [
358
+ { in: "query", key: "directory" },
359
+ { in: "query", key: "workspace" },
360
+ ],
361
+ },
362
+ ]);
329
363
  return (options?.client ?? this.client).get({
330
364
  url: "/config",
331
365
  ...options,
@@ -342,6 +376,7 @@ export class Config2 extends HeyApiClient {
342
376
  {
343
377
  args: [
344
378
  { in: "query", key: "directory" },
379
+ { in: "query", key: "workspace" },
345
380
  { key: "config", map: "body" },
346
381
  ],
347
382
  },
@@ -363,7 +398,14 @@ export class Config2 extends HeyApiClient {
363
398
  * Get a list of all configured AI providers and their default models.
364
399
  */
365
400
  providers(parameters, options) {
366
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
401
+ const params = buildClientParams([parameters], [
402
+ {
403
+ args: [
404
+ { in: "query", key: "directory" },
405
+ { in: "query", key: "workspace" },
406
+ ],
407
+ },
408
+ ]);
367
409
  return (options?.client ?? this.client).get({
368
410
  url: "/config/providers",
369
411
  ...options,
@@ -378,7 +420,14 @@ export class Tool extends HeyApiClient {
378
420
  * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
379
421
  */
380
422
  ids(parameters, options) {
381
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
423
+ const params = buildClientParams([parameters], [
424
+ {
425
+ args: [
426
+ { in: "query", key: "directory" },
427
+ { in: "query", key: "workspace" },
428
+ ],
429
+ },
430
+ ]);
382
431
  return (options?.client ?? this.client).get({
383
432
  url: "/experimental/tool/ids",
384
433
  ...options,
@@ -395,6 +444,7 @@ export class Tool extends HeyApiClient {
395
444
  {
396
445
  args: [
397
446
  { in: "query", key: "directory" },
447
+ { in: "query", key: "workspace" },
398
448
  { in: "query", key: "provider" },
399
449
  { in: "query", key: "model" },
400
450
  ],
@@ -407,6 +457,142 @@ export class Tool extends HeyApiClient {
407
457
  });
408
458
  }
409
459
  }
460
+ export class Workspace extends HeyApiClient {
461
+ /**
462
+ * List workspaces
463
+ *
464
+ * List all workspaces.
465
+ */
466
+ list(parameters, options) {
467
+ const params = buildClientParams([parameters], [
468
+ {
469
+ args: [
470
+ { in: "query", key: "directory" },
471
+ { in: "query", key: "workspace" },
472
+ ],
473
+ },
474
+ ]);
475
+ return (options?.client ?? this.client).get({
476
+ url: "/experimental/workspace",
477
+ ...options,
478
+ ...params,
479
+ });
480
+ }
481
+ /**
482
+ * Create workspace
483
+ *
484
+ * Create a workspace for the current project.
485
+ */
486
+ create(parameters, options) {
487
+ const params = buildClientParams([parameters], [
488
+ {
489
+ args: [
490
+ { in: "query", key: "directory" },
491
+ { in: "query", key: "workspace" },
492
+ { in: "body", key: "id" },
493
+ { in: "body", key: "type" },
494
+ { in: "body", key: "branch" },
495
+ { in: "body", key: "extra" },
496
+ ],
497
+ },
498
+ ]);
499
+ return (options?.client ?? this.client).post({
500
+ url: "/experimental/workspace",
501
+ ...options,
502
+ ...params,
503
+ headers: {
504
+ "Content-Type": "application/json",
505
+ ...options?.headers,
506
+ ...params.headers,
507
+ },
508
+ });
509
+ }
510
+ /**
511
+ * Remove workspace
512
+ *
513
+ * Remove an existing workspace.
514
+ */
515
+ remove(parameters, options) {
516
+ const params = buildClientParams([parameters], [
517
+ {
518
+ args: [
519
+ { in: "path", key: "id" },
520
+ { in: "query", key: "directory" },
521
+ { in: "query", key: "workspace" },
522
+ ],
523
+ },
524
+ ]);
525
+ return (options?.client ?? this.client).delete({
526
+ url: "/experimental/workspace/{id}",
527
+ ...options,
528
+ ...params,
529
+ });
530
+ }
531
+ }
532
+ export class Session extends HeyApiClient {
533
+ /**
534
+ * List sessions
535
+ *
536
+ * Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
537
+ */
538
+ list(parameters, options) {
539
+ const params = buildClientParams([parameters], [
540
+ {
541
+ args: [
542
+ { in: "query", key: "directory" },
543
+ { in: "query", key: "workspace" },
544
+ { in: "query", key: "roots" },
545
+ { in: "query", key: "start" },
546
+ { in: "query", key: "cursor" },
547
+ { in: "query", key: "search" },
548
+ { in: "query", key: "limit" },
549
+ { in: "query", key: "archived" },
550
+ ],
551
+ },
552
+ ]);
553
+ return (options?.client ?? this.client).get({
554
+ url: "/experimental/session",
555
+ ...options,
556
+ ...params,
557
+ });
558
+ }
559
+ }
560
+ export class Resource extends HeyApiClient {
561
+ /**
562
+ * Get MCP resources
563
+ *
564
+ * Get all available MCP resources from connected servers. Optionally filter by name.
565
+ */
566
+ list(parameters, options) {
567
+ const params = buildClientParams([parameters], [
568
+ {
569
+ args: [
570
+ { in: "query", key: "directory" },
571
+ { in: "query", key: "workspace" },
572
+ ],
573
+ },
574
+ ]);
575
+ return (options?.client ?? this.client).get({
576
+ url: "/experimental/resource",
577
+ ...options,
578
+ ...params,
579
+ });
580
+ }
581
+ }
582
+ export class Experimental extends HeyApiClient {
583
+ _workspace;
584
+ get workspace() {
585
+ return (this._workspace ??= new Workspace({ client: this.client }));
586
+ }
587
+ _session;
588
+ get session() {
589
+ return (this._session ??= new Session({ client: this.client }));
590
+ }
591
+ _resource;
592
+ get resource() {
593
+ return (this._resource ??= new Resource({ client: this.client }));
594
+ }
595
+ }
410
596
  export class Worktree extends HeyApiClient {
411
597
  /**
412
598
  * Remove worktree
@@ -418,6 +604,7 @@ export class Worktree extends HeyApiClient {
418
604
  {
419
605
  args: [
420
606
  { in: "query", key: "directory" },
607
+ { in: "query", key: "workspace" },
421
608
  { key: "worktreeRemoveInput", map: "body" },
422
609
  ],
423
610
  },
@@ -439,7 +626,14 @@ export class Worktree extends HeyApiClient {
439
626
  * List all sandbox worktrees for the current project.
440
627
  */
441
628
  list(parameters, options) {
442
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
629
+ const params = buildClientParams([parameters], [
630
+ {
631
+ args: [
632
+ { in: "query", key: "directory" },
633
+ { in: "query", key: "workspace" },
634
+ ],
635
+ },
636
+ ]);
443
637
  return (options?.client ?? this.client).get({
444
638
  url: "/experimental/worktree",
445
639
  ...options,
@@ -456,6 +650,7 @@ export class Worktree extends HeyApiClient {
456
650
  {
457
651
  args: [
458
652
  { in: "query", key: "directory" },
653
+ { in: "query", key: "workspace" },
459
654
  { key: "worktreeCreateInput", map: "body" },
460
655
  ],
461
656
  },
@@ -481,6 +676,7 @@ export class Worktree extends HeyApiClient {
481
676
  {
482
677
  args: [
483
678
  { in: "query", key: "directory" },
679
+ { in: "query", key: "workspace" },
484
680
  { key: "worktreeResetInput", map: "body" },
485
681
  ],
486
682
  },
@@ -506,6 +702,7 @@ export class Worktree extends HeyApiClient {
506
702
  {
507
703
  args: [
508
704
  { in: "query", key: "directory" },
705
+ { in: "query", key: "workspace" },
509
706
  { in: "query", key: "base" },
510
707
  ],
511
708
  },
@@ -516,59 +713,50 @@ export class Worktree extends HeyApiClient {
516
713
  ...params,
517
714
  });
518
715
  }
519
- }
520
- export class Session extends HeyApiClient {
521
716
  /**
522
- * List sessions
717
+ * Get worktree diff summary
523
718
  *
524
- * Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
719
+ * Get lightweight file diff metadata for a worktree compared to its base branch.
525
720
  */
526
- list(parameters, options) {
721
+ diffSummary(parameters, options) {
527
722
  const params = buildClientParams([parameters], [
528
723
  {
529
724
  args: [
530
725
  { in: "query", key: "directory" },
531
- { in: "query", key: "roots" },
532
- { in: "query", key: "start" },
533
- { in: "query", key: "cursor" },
534
- { in: "query", key: "search" },
535
- { in: "query", key: "limit" },
536
- { in: "query", key: "archived" },
726
+ { in: "query", key: "workspace" },
727
+ { in: "query", key: "base" },
537
728
  ],
538
729
  },
539
730
  ]);
540
731
  return (options?.client ?? this.client).get({
541
- url: "/experimental/session",
732
+ url: "/experimental/worktree/diff/summary",
542
733
  ...options,
543
734
  ...params,
544
735
  });
545
736
  }
546
- }
547
- export class Resource extends HeyApiClient {
548
737
  /**
549
- * Get MCP resources
738
+ * Get worktree diff detail
550
739
  *
551
- * Get all available MCP resources from connected servers. Optionally filter by name.
740
+ * Get full diff contents for one worktree file compared to its base branch.
552
741
  */
553
- list(parameters, options) {
554
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
742
+ diffFile(parameters, options) {
743
+ const params = buildClientParams([parameters], [
744
+ {
745
+ args: [
746
+ { in: "query", key: "directory" },
747
+ { in: "query", key: "workspace" },
748
+ { in: "query", key: "base" },
749
+ { in: "query", key: "file" },
750
+ ],
751
+ },
752
+ ]);
555
753
  return (options?.client ?? this.client).get({
556
- url: "/experimental/resource",
754
+ url: "/experimental/worktree/diff/file",
557
755
  ...options,
558
756
  ...params,
559
757
  });
560
758
  }
561
759
  }
562
- export class Experimental extends HeyApiClient {
563
- _session;
564
- get session() {
565
- return (this._session ??= new Session({ client: this.client }));
566
- }
567
- _resource;
568
- get resource() {
569
- return (this._resource ??= new Resource({ client: this.client }));
570
- }
571
- }
572
760
  export class Session2 extends HeyApiClient {
573
761
  /**
574
762
  * List sessions
@@ -580,6 +768,7 @@ export class Session2 extends HeyApiClient {
580
768
  {
581
769
  args: [
582
770
  { in: "query", key: "directory" },
771
+ { in: "query", key: "workspace" },
583
772
  { in: "query", key: "roots" },
584
773
  { in: "query", key: "start" },
585
774
  { in: "query", key: "search" },
@@ -603,6 +792,7 @@ export class Session2 extends HeyApiClient {
603
792
  {
604
793
  args: [
605
794
  { in: "query", key: "directory" },
795
+ { in: "query", key: "workspace" },
606
796
  { in: "body", key: "parentID" },
607
797
  { in: "body", key: "title" },
608
798
  { in: "body", key: "permission" },
@@ -627,7 +817,14 @@ export class Session2 extends HeyApiClient {
627
817
  * Retrieve the current status of all sessions, including active, idle, and completed states.
628
818
  */
629
819
  status(parameters, options) {
630
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
820
+ const params = buildClientParams([parameters], [
821
+ {
822
+ args: [
823
+ { in: "query", key: "directory" },
824
+ { in: "query", key: "workspace" },
825
+ ],
826
+ },
827
+ ]);
631
828
  return (options?.client ?? this.client).get({
632
829
  url: "/session/status",
633
830
  ...options,
@@ -645,6 +842,7 @@ export class Session2 extends HeyApiClient {
645
842
  args: [
646
843
  { in: "path", key: "sessionID" },
647
844
  { in: "query", key: "directory" },
845
+ { in: "query", key: "workspace" },
648
846
  ],
649
847
  },
650
848
  ]);
@@ -665,6 +863,7 @@ export class Session2 extends HeyApiClient {
665
863
  args: [
666
864
  { in: "path", key: "sessionID" },
667
865
  { in: "query", key: "directory" },
866
+ { in: "query", key: "workspace" },
668
867
  ],
669
868
  },
670
869
  ]);
@@ -685,6 +884,7 @@ export class Session2 extends HeyApiClient {
685
884
  args: [
686
885
  { in: "path", key: "sessionID" },
687
886
  { in: "query", key: "directory" },
887
+ { in: "query", key: "workspace" },
688
888
  { in: "body", key: "title" },
689
889
  { in: "body", key: "time" },
690
890
  ],
@@ -712,6 +912,7 @@ export class Session2 extends HeyApiClient {
712
912
  args: [
713
913
  { in: "path", key: "sessionID" },
714
914
  { in: "query", key: "directory" },
915
+ { in: "query", key: "workspace" },
715
916
  ],
716
917
  },
717
918
  ]);
@@ -732,6 +933,7 @@ export class Session2 extends HeyApiClient {
732
933
  args: [
733
934
  { in: "path", key: "sessionID" },
734
935
  { in: "query", key: "directory" },
936
+ { in: "query", key: "workspace" },
735
937
  ],
736
938
  },
737
939
  ]);
@@ -752,6 +954,7 @@ export class Session2 extends HeyApiClient {
752
954
  args: [
753
955
  { in: "path", key: "sessionID" },
754
956
  { in: "query", key: "directory" },
957
+ { in: "query", key: "workspace" },
755
958
  { in: "body", key: "modelID" },
756
959
  { in: "body", key: "providerID" },
757
960
  { in: "body", key: "messageID" },
@@ -780,6 +983,7 @@ export class Session2 extends HeyApiClient {
780
983
  args: [
781
984
  { in: "path", key: "sessionID" },
782
985
  { in: "query", key: "directory" },
986
+ { in: "query", key: "workspace" },
783
987
  { in: "body", key: "messageID" },
784
988
  ],
785
989
  },
@@ -806,6 +1010,7 @@ export class Session2 extends HeyApiClient {
806
1010
  args: [
807
1011
  { in: "path", key: "sessionID" },
808
1012
  { in: "query", key: "directory" },
1013
+ { in: "query", key: "workspace" },
809
1014
  ],
810
1015
  },
811
1016
  ]);
@@ -826,6 +1031,7 @@ export class Session2 extends HeyApiClient {
826
1031
  args: [
827
1032
  { in: "path", key: "sessionID" },
828
1033
  { in: "query", key: "directory" },
1034
+ { in: "query", key: "workspace" },
829
1035
  ],
830
1036
  },
831
1037
  ]);
@@ -846,6 +1052,7 @@ export class Session2 extends HeyApiClient {
846
1052
  args: [
847
1053
  { in: "path", key: "sessionID" },
848
1054
  { in: "query", key: "directory" },
1055
+ { in: "query", key: "workspace" },
849
1056
  ],
850
1057
  },
851
1058
  ]);
@@ -866,6 +1073,7 @@ export class Session2 extends HeyApiClient {
866
1073
  args: [
867
1074
  { in: "path", key: "sessionID" },
868
1075
  { in: "query", key: "directory" },
1076
+ { in: "query", key: "workspace" },
869
1077
  { in: "query", key: "messageID" },
870
1078
  ],
871
1079
  },
@@ -887,6 +1095,7 @@ export class Session2 extends HeyApiClient {
887
1095
  args: [
888
1096
  { in: "path", key: "sessionID" },
889
1097
  { in: "query", key: "directory" },
1098
+ { in: "query", key: "workspace" },
890
1099
  { in: "body", key: "providerID" },
891
1100
  { in: "body", key: "modelID" },
892
1101
  { in: "body", key: "auto" },
@@ -915,6 +1124,7 @@ export class Session2 extends HeyApiClient {
915
1124
  args: [
916
1125
  { in: "path", key: "sessionID" },
917
1126
  { in: "query", key: "directory" },
1127
+ { in: "query", key: "workspace" },
918
1128
  { in: "query", key: "limit" },
919
1129
  ],
920
1130
  },
@@ -936,6 +1146,7 @@ export class Session2 extends HeyApiClient {
936
1146
  args: [
937
1147
  { in: "path", key: "sessionID" },
938
1148
  { in: "query", key: "directory" },
1149
+ { in: "query", key: "workspace" },
939
1150
  { in: "body", key: "messageID" },
940
1151
  { in: "body", key: "model" },
941
1152
  { in: "body", key: "agent" },
@@ -972,6 +1183,7 @@ export class Session2 extends HeyApiClient {
972
1183
  { in: "path", key: "sessionID" },
973
1184
  { in: "path", key: "messageID" },
974
1185
  { in: "query", key: "directory" },
1186
+ { in: "query", key: "workspace" },
975
1187
  ],
976
1188
  },
977
1189
  ]);
@@ -993,6 +1205,7 @@ export class Session2 extends HeyApiClient {
993
1205
  { in: "path", key: "sessionID" },
994
1206
  { in: "path", key: "messageID" },
995
1207
  { in: "query", key: "directory" },
1208
+ { in: "query", key: "workspace" },
996
1209
  ],
997
1210
  },
998
1211
  ]);
@@ -1013,6 +1226,7 @@ export class Session2 extends HeyApiClient {
1013
1226
  args: [
1014
1227
  { in: "path", key: "sessionID" },
1015
1228
  { in: "query", key: "directory" },
1229
+ { in: "query", key: "workspace" },
1016
1230
  { in: "body", key: "messageID" },
1017
1231
  { in: "body", key: "model" },
1018
1232
  { in: "body", key: "agent" },
@@ -1048,6 +1262,7 @@ export class Session2 extends HeyApiClient {
1048
1262
  args: [
1049
1263
  { in: "path", key: "sessionID" },
1050
1264
  { in: "query", key: "directory" },
1265
+ { in: "query", key: "workspace" },
1051
1266
  { in: "body", key: "messageID" },
1052
1267
  { in: "body", key: "agent" },
1053
1268
  { in: "body", key: "model" },
@@ -1080,6 +1295,7 @@ export class Session2 extends HeyApiClient {
1080
1295
  args: [
1081
1296
  { in: "path", key: "sessionID" },
1082
1297
  { in: "query", key: "directory" },
1298
+ { in: "query", key: "workspace" },
1083
1299
  { in: "body", key: "agent" },
1084
1300
  { in: "body", key: "model" },
1085
1301
  { in: "body", key: "command" },
@@ -1108,6 +1324,7 @@ export class Session2 extends HeyApiClient {
1108
1324
  args: [
1109
1325
  { in: "path", key: "sessionID" },
1110
1326
  { in: "query", key: "directory" },
1327
+ { in: "query", key: "workspace" },
1111
1328
  { in: "body", key: "messageID" },
1112
1329
  { in: "body", key: "partID" },
1113
1330
  ],
@@ -1135,6 +1352,7 @@ export class Session2 extends HeyApiClient {
1135
1352
  args: [
1136
1353
  { in: "path", key: "sessionID" },
1137
1354
  { in: "query", key: "directory" },
1355
+ { in: "query", key: "workspace" },
1138
1356
  ],
1139
1357
  },
1140
1358
  ]);
@@ -1157,6 +1375,7 @@ export class Part extends HeyApiClient {
1157
1375
  { in: "path", key: "messageID" },
1158
1376
  { in: "path", key: "partID" },
1159
1377
  { in: "query", key: "directory" },
1378
+ { in: "query", key: "workspace" },
1160
1379
  ],
1161
1380
  },
1162
1381
  ]);
@@ -1177,6 +1396,7 @@ export class Part extends HeyApiClient {
1177
1396
  { in: "path", key: "messageID" },
1178
1397
  { in: "path", key: "partID" },
1179
1398
  { in: "query", key: "directory" },
1399
+ { in: "query", key: "workspace" },
1180
1400
  { key: "part", map: "body" },
1181
1401
  ],
1182
1402
  },
@@ -1208,6 +1428,7 @@ export class Permission extends HeyApiClient {
1208
1428
  { in: "path", key: "sessionID" },
1209
1429
  { in: "path", key: "permissionID" },
1210
1430
  { in: "query", key: "directory" },
1431
+ { in: "query", key: "workspace" },
1211
1432
  { in: "body", key: "response" },
1212
1433
  ],
1213
1434
  },
@@ -1234,6 +1455,7 @@ export class Permission extends HeyApiClient {
1234
1455
  args: [
1235
1456
  { in: "path", key: "requestID" },
1236
1457
  { in: "query", key: "directory" },
1458
+ { in: "query", key: "workspace" },
1237
1459
  { in: "body", key: "reply" },
1238
1460
  { in: "body", key: "message" },
1239
1461
  ],
@@ -1250,13 +1472,48 @@ export class Permission extends HeyApiClient {
1250
1472
  },
1251
1473
  });
1252
1474
  }
1475
+ /**
1476
+ * Save always-allow/deny permission rules
1477
+ *
1478
+ * Save approved/denied always-rules for a pending permission request.
1479
+ */
1480
+ saveAlwaysRules(parameters, options) {
1481
+ const params = buildClientParams([parameters], [
1482
+ {
1483
+ args: [
1484
+ { in: "path", key: "requestID" },
1485
+ { in: "query", key: "directory" },
1486
+ { in: "query", key: "workspace" },
1487
+ { in: "body", key: "approvedAlways" },
1488
+ { in: "body", key: "deniedAlways" },
1489
+ ],
1490
+ },
1491
+ ]);
1492
+ return (options?.client ?? this.client).post({
1493
+ url: "/permission/{requestID}/always-rules",
1494
+ ...options,
1495
+ ...params,
1496
+ headers: {
1497
+ "Content-Type": "application/json",
1498
+ ...options?.headers,
1499
+ ...params.headers,
1500
+ },
1501
+ });
1502
+ }
1253
1503
  /**
1254
1504
  * List pending permissions
1255
1505
  *
1256
1506
  * Get all pending permission requests across all sessions.
1257
1507
  */
1258
1508
  list(parameters, options) {
1259
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1509
+ const params = buildClientParams([parameters], [
1510
+ {
1511
+ args: [
1512
+ { in: "query", key: "directory" },
1513
+ { in: "query", key: "workspace" },
1514
+ ],
1515
+ },
1516
+ ]);
1260
1517
  return (options?.client ?? this.client).get({
1261
1518
  url: "/permission",
1262
1519
  ...options,
@@ -1271,7 +1528,14 @@ export class Question extends HeyApiClient {
1271
1528
  * Get all pending question requests across all sessions.
1272
1529
  */
1273
1530
  list(parameters, options) {
1274
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1531
+ const params = buildClientParams([parameters], [
1532
+ {
1533
+ args: [
1534
+ { in: "query", key: "directory" },
1535
+ { in: "query", key: "workspace" },
1536
+ ],
1537
+ },
1538
+ ]);
1275
1539
  return (options?.client ?? this.client).get({
1276
1540
  url: "/question",
1277
1541
  ...options,
@@ -1289,6 +1553,7 @@ export class Question extends HeyApiClient {
1289
1553
  args: [
1290
1554
  { in: "path", key: "requestID" },
1291
1555
  { in: "query", key: "directory" },
1556
+ { in: "query", key: "workspace" },
1292
1557
  { in: "body", key: "answers" },
1293
1558
  ],
1294
1559
  },
@@ -1315,6 +1580,7 @@ export class Question extends HeyApiClient {
1315
1580
  args: [
1316
1581
  { in: "path", key: "requestID" },
1317
1582
  { in: "query", key: "directory" },
1583
+ { in: "query", key: "workspace" },
1318
1584
  ],
1319
1585
  },
1320
1586
  ]);
@@ -1337,6 +1603,7 @@ export class Oauth extends HeyApiClient {
1337
1603
  args: [
1338
1604
  { in: "path", key: "providerID" },
1339
1605
  { in: "query", key: "directory" },
1606
+ { in: "query", key: "workspace" },
1340
1607
  { in: "body", key: "method" },
1341
1608
  ],
1342
1609
  },
@@ -1363,6 +1630,7 @@ export class Oauth extends HeyApiClient {
1363
1630
  args: [
1364
1631
  { in: "path", key: "providerID" },
1365
1632
  { in: "query", key: "directory" },
1633
+ { in: "query", key: "workspace" },
1366
1634
  { in: "body", key: "method" },
1367
1635
  { in: "body", key: "code" },
1368
1636
  ],
@@ -1387,7 +1655,14 @@ export class Provider extends HeyApiClient {
1387
1655
  * Get a list of all available AI providers, including both available and connected ones.
1388
1656
  */
1389
1657
  list(parameters, options) {
1390
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1658
+ const params = buildClientParams([parameters], [
1659
+ {
1660
+ args: [
1661
+ { in: "query", key: "directory" },
1662
+ { in: "query", key: "workspace" },
1663
+ ],
1664
+ },
1665
+ ]);
1391
1666
  return (options?.client ?? this.client).get({
1392
1667
  url: "/provider",
1393
1668
  ...options,
@@ -1400,7 +1675,14 @@ export class Provider extends HeyApiClient {
1400
1675
  * Retrieve available authentication methods for all AI providers.
1401
1676
  */
1402
1677
  auth(parameters, options) {
1403
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1678
+ const params = buildClientParams([parameters], [
1679
+ {
1680
+ args: [
1681
+ { in: "query", key: "directory" },
1682
+ { in: "query", key: "workspace" },
1683
+ ],
1684
+ },
1685
+ ]);
1404
1686
  return (options?.client ?? this.client).get({
1405
1687
  url: "/provider/auth",
1406
1688
  ...options,
@@ -1423,6 +1705,7 @@ export class Telemetry extends HeyApiClient {
1423
1705
  {
1424
1706
  args: [
1425
1707
  { in: "query", key: "directory" },
1708
+ { in: "query", key: "workspace" },
1426
1709
  { in: "body", key: "event" },
1427
1710
  { in: "body", key: "properties" },
1428
1711
  ],
@@ -1451,6 +1734,7 @@ export class CommitMessage extends HeyApiClient {
1451
1734
  {
1452
1735
  args: [
1453
1736
  { in: "query", key: "directory" },
1737
+ { in: "query", key: "workspace" },
1454
1738
  { in: "body", key: "path" },
1455
1739
  { in: "body", key: "selectedFiles" },
1456
1740
  { in: "body", key: "previousMessage" },
@@ -1480,6 +1764,7 @@ export class EnhancePrompt extends HeyApiClient {
1480
1764
  {
1481
1765
  args: [
1482
1766
  { in: "query", key: "directory" },
1767
+ { in: "query", key: "workspace" },
1483
1768
  { in: "body", key: "text" },
1484
1769
  ],
1485
1770
  },
@@ -1496,6 +1781,60 @@ export class EnhancePrompt extends HeyApiClient {
1496
1781
  });
1497
1782
  }
1498
1783
  }
1784
+ export class Kilocode extends HeyApiClient {
1785
+ /**
1786
+ * Remove a skill
1787
+ *
1788
+ * Remove a skill by deleting its directory from disk and clearing it from cache.
1789
+ */
1790
+ removeSkill(parameters, options) {
1791
+ const params = buildClientParams([parameters], [
1792
+ {
1793
+ args: [
1794
+ { in: "query", key: "directory" },
1795
+ { in: "query", key: "workspace" },
1796
+ { in: "body", key: "location" },
1797
+ ],
1798
+ },
1799
+ ]);
1800
+ return (options?.client ?? this.client).post({
1801
+ url: "/kilocode/skill/remove",
1802
+ ...options,
1803
+ ...params,
1804
+ headers: {
1805
+ "Content-Type": "application/json",
1806
+ ...options?.headers,
1807
+ ...params.headers,
1808
+ },
1809
+ });
1810
+ }
1811
+ /**
1812
+ * Remove a custom agent
1813
+ *
1814
+ * Remove a custom (non-native) agent by deleting its markdown file from disk and refreshing state.
1815
+ */
1816
+ removeAgent(parameters, options) {
1817
+ const params = buildClientParams([parameters], [
1818
+ {
1819
+ args: [
1820
+ { in: "query", key: "directory" },
1821
+ { in: "query", key: "workspace" },
1822
+ { in: "body", key: "name" },
1823
+ ],
1824
+ },
1825
+ ]);
1826
+ return (options?.client ?? this.client).post({
1827
+ url: "/kilocode/agent/remove",
1828
+ ...options,
1829
+ ...params,
1830
+ headers: {
1831
+ "Content-Type": "application/json",
1832
+ ...options?.headers,
1833
+ ...params.headers,
1834
+ },
1835
+ });
1836
+ }
1837
+ }
1499
1838
  export class Organization extends HeyApiClient {
1500
1839
  /**
1501
1840
  * Update Kilo Gateway organization
@@ -1507,6 +1846,7 @@ export class Organization extends HeyApiClient {
1507
1846
  {
1508
1847
  args: [
1509
1848
  { in: "query", key: "directory" },
1849
+ { in: "query", key: "workspace" },
1510
1850
  { in: "body", key: "organizationId" },
1511
1851
  ],
1512
1852
  },
@@ -1535,6 +1875,7 @@ export class Session3 extends HeyApiClient {
1535
1875
  args: [
1536
1876
  { in: "path", key: "id" },
1537
1877
  { in: "query", key: "directory" },
1878
+ { in: "query", key: "workspace" },
1538
1879
  ],
1539
1880
  },
1540
1881
  ]);
@@ -1554,6 +1895,7 @@ export class Session3 extends HeyApiClient {
1554
1895
  {
1555
1896
  args: [
1556
1897
  { in: "query", key: "directory" },
1898
+ { in: "query", key: "workspace" },
1557
1899
  { in: "body", key: "sessionId" },
1558
1900
  ],
1559
1901
  },
@@ -1583,7 +1925,14 @@ export class Kilo extends HeyApiClient {
1583
1925
  * Fetch user profile and organizations from Kilo Gateway
1584
1926
  */
1585
1927
  profile(parameters, options) {
1586
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1928
+ const params = buildClientParams([parameters], [
1929
+ {
1930
+ args: [
1931
+ { in: "query", key: "directory" },
1932
+ { in: "query", key: "workspace" },
1933
+ ],
1934
+ },
1935
+ ]);
1587
1936
  return (options?.client ?? this.client).get({
1588
1937
  url: "/kilo/profile",
1589
1938
  ...options,
@@ -1600,6 +1949,7 @@ export class Kilo extends HeyApiClient {
1600
1949
  {
1601
1950
  args: [
1602
1951
  { in: "query", key: "directory" },
1952
+ { in: "query", key: "workspace" },
1603
1953
  { in: "body", key: "prefix" },
1604
1954
  { in: "body", key: "suffix" },
1605
1955
  { in: "body", key: "model" },
@@ -1625,7 +1975,14 @@ export class Kilo extends HeyApiClient {
1625
1975
  * Fetch notifications from Kilo Gateway for CLI display
1626
1976
  */
1627
1977
  notifications(parameters, options) {
1628
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1978
+ const params = buildClientParams([parameters], [
1979
+ {
1980
+ args: [
1981
+ { in: "query", key: "directory" },
1982
+ { in: "query", key: "workspace" },
1983
+ ],
1984
+ },
1985
+ ]);
1629
1986
  return (options?.client ?? this.client).get({
1630
1987
  url: "/kilo/notifications",
1631
1988
  ...options,
@@ -1642,6 +1999,7 @@ export class Kilo extends HeyApiClient {
1642
1999
  {
1643
2000
  args: [
1644
2001
  { in: "query", key: "directory" },
2002
+ { in: "query", key: "workspace" },
1645
2003
  { in: "query", key: "cursor" },
1646
2004
  { in: "query", key: "limit" },
1647
2005
  { in: "query", key: "gitUrl" },
@@ -1674,6 +2032,7 @@ export class Find extends HeyApiClient {
1674
2032
  {
1675
2033
  args: [
1676
2034
  { in: "query", key: "directory" },
2035
+ { in: "query", key: "workspace" },
1677
2036
  { in: "query", key: "pattern" },
1678
2037
  ],
1679
2038
  },
@@ -1694,6 +2053,7 @@ export class Find extends HeyApiClient {
1694
2053
  {
1695
2054
  args: [
1696
2055
  { in: "query", key: "directory" },
2056
+ { in: "query", key: "workspace" },
1697
2057
  { in: "query", key: "query" },
1698
2058
  { in: "query", key: "dirs" },
1699
2059
  { in: "query", key: "type" },
@@ -1717,6 +2077,7 @@ export class Find extends HeyApiClient {
1717
2077
  {
1718
2078
  args: [
1719
2079
  { in: "query", key: "directory" },
2080
+ { in: "query", key: "workspace" },
1720
2081
  { in: "query", key: "query" },
1721
2082
  ],
1722
2083
  },
@@ -1739,6 +2100,7 @@ export class File extends HeyApiClient {
1739
2100
  {
1740
2101
  args: [
1741
2102
  { in: "query", key: "directory" },
2103
+ { in: "query", key: "workspace" },
1742
2104
  { in: "query", key: "path" },
1743
2105
  ],
1744
2106
  },
@@ -1759,6 +2121,7 @@ export class File extends HeyApiClient {
1759
2121
  {
1760
2122
  args: [
1761
2123
  { in: "query", key: "directory" },
2124
+ { in: "query", key: "workspace" },
1762
2125
  { in: "query", key: "path" },
1763
2126
  ],
1764
2127
  },
@@ -1775,7 +2138,14 @@ export class File extends HeyApiClient {
1775
2138
  * Get the git status of all files in the project.
1776
2139
  */
1777
2140
  status(parameters, options) {
1778
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2141
+ const params = buildClientParams([parameters], [
2142
+ {
2143
+ args: [
2144
+ { in: "query", key: "directory" },
2145
+ { in: "query", key: "workspace" },
2146
+ ],
2147
+ },
2148
+ ]);
1779
2149
  return (options?.client ?? this.client).get({
1780
2150
  url: "/file/status",
1781
2151
  ...options,
@@ -1795,6 +2165,7 @@ export class Auth2 extends HeyApiClient {
1795
2165
  args: [
1796
2166
  { in: "path", key: "name" },
1797
2167
  { in: "query", key: "directory" },
2168
+ { in: "query", key: "workspace" },
1798
2169
  ],
1799
2170
  },
1800
2171
  ]);
@@ -1815,6 +2186,7 @@ export class Auth2 extends HeyApiClient {
1815
2186
  args: [
1816
2187
  { in: "path", key: "name" },
1817
2188
  { in: "query", key: "directory" },
2189
+ { in: "query", key: "workspace" },
1818
2190
  ],
1819
2191
  },
1820
2192
  ]);
@@ -1835,6 +2207,7 @@ export class Auth2 extends HeyApiClient {
1835
2207
  args: [
1836
2208
  { in: "path", key: "name" },
1837
2209
  { in: "query", key: "directory" },
2210
+ { in: "query", key: "workspace" },
1838
2211
  { in: "body", key: "code" },
1839
2212
  ],
1840
2213
  },
@@ -1861,6 +2234,7 @@ export class Auth2 extends HeyApiClient {
1861
2234
  args: [
1862
2235
  { in: "path", key: "name" },
1863
2236
  { in: "query", key: "directory" },
2237
+ { in: "query", key: "workspace" },
1864
2238
  ],
1865
2239
  },
1866
2240
  ]);
@@ -1878,7 +2252,14 @@ export class Mcp extends HeyApiClient {
1878
2252
  * Get the status of all Model Context Protocol (MCP) servers.
1879
2253
  */
1880
2254
  status(parameters, options) {
1881
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2255
+ const params = buildClientParams([parameters], [
2256
+ {
2257
+ args: [
2258
+ { in: "query", key: "directory" },
2259
+ { in: "query", key: "workspace" },
2260
+ ],
2261
+ },
2262
+ ]);
1882
2263
  return (options?.client ?? this.client).get({
1883
2264
  url: "/mcp",
1884
2265
  ...options,
@@ -1895,6 +2276,7 @@ export class Mcp extends HeyApiClient {
1895
2276
  {
1896
2277
  args: [
1897
2278
  { in: "query", key: "directory" },
2279
+ { in: "query", key: "workspace" },
1898
2280
  { in: "body", key: "name" },
1899
2281
  { in: "body", key: "config" },
1900
2282
  ],
@@ -1920,6 +2302,7 @@ export class Mcp extends HeyApiClient {
1920
2302
  args: [
1921
2303
  { in: "path", key: "name" },
1922
2304
  { in: "query", key: "directory" },
2305
+ { in: "query", key: "workspace" },
1923
2306
  ],
1924
2307
  },
1925
2308
  ]);
@@ -1938,6 +2321,7 @@ export class Mcp extends HeyApiClient {
1938
2321
  args: [
1939
2322
  { in: "path", key: "name" },
1940
2323
  { in: "query", key: "directory" },
2324
+ { in: "query", key: "workspace" },
1941
2325
  ],
1942
2326
  },
1943
2327
  ]);
@@ -1959,7 +2343,14 @@ export class Control extends HeyApiClient {
1959
2343
  * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1960
2344
  */
1961
2345
  next(parameters, options) {
1962
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2346
+ const params = buildClientParams([parameters], [
2347
+ {
2348
+ args: [
2349
+ { in: "query", key: "directory" },
2350
+ { in: "query", key: "workspace" },
2351
+ ],
2352
+ },
2353
+ ]);
1963
2354
  return (options?.client ?? this.client).get({
1964
2355
  url: "/tui/control/next",
1965
2356
  ...options,
@@ -1976,6 +2367,7 @@ export class Control extends HeyApiClient {
1976
2367
  {
1977
2368
  args: [
1978
2369
  { in: "query", key: "directory" },
2370
+ { in: "query", key: "workspace" },
1979
2371
  { key: "body", map: "body" },
1980
2372
  ],
1981
2373
  },
@@ -2003,6 +2395,7 @@ export class Tui extends HeyApiClient {
2003
2395
  {
2004
2396
  args: [
2005
2397
  { in: "query", key: "directory" },
2398
+ { in: "query", key: "workspace" },
2006
2399
  { in: "body", key: "text" },
2007
2400
  ],
2008
2401
  },
@@ -2024,7 +2417,14 @@ export class Tui extends HeyApiClient {
2024
2417
  * Open the help dialog in the TUI to display user assistance information.
2025
2418
  */
2026
2419
  openHelp(parameters, options) {
2027
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2420
+ const params = buildClientParams([parameters], [
2421
+ {
2422
+ args: [
2423
+ { in: "query", key: "directory" },
2424
+ { in: "query", key: "workspace" },
2425
+ ],
2426
+ },
2427
+ ]);
2028
2428
  return (options?.client ?? this.client).post({
2029
2429
  url: "/tui/open-help",
2030
2430
  ...options,
@@ -2037,7 +2437,14 @@ export class Tui extends HeyApiClient {
2037
2437
  * Open the session dialog
2038
2438
  */
2039
2439
  openSessions(parameters, options) {
2040
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2440
+ const params = buildClientParams([parameters], [
2441
+ {
2442
+ args: [
2443
+ { in: "query", key: "directory" },
2444
+ { in: "query", key: "workspace" },
2445
+ ],
2446
+ },
2447
+ ]);
2041
2448
  return (options?.client ?? this.client).post({
2042
2449
  url: "/tui/open-sessions",
2043
2450
  ...options,
@@ -2050,7 +2457,14 @@ export class Tui extends HeyApiClient {
2050
2457
  * Open the theme dialog
2051
2458
  */
2052
2459
  openThemes(parameters, options) {
2053
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2460
+ const params = buildClientParams([parameters], [
2461
+ {
2462
+ args: [
2463
+ { in: "query", key: "directory" },
2464
+ { in: "query", key: "workspace" },
2465
+ ],
2466
+ },
2467
+ ]);
2054
2468
  return (options?.client ?? this.client).post({
2055
2469
  url: "/tui/open-themes",
2056
2470
  ...options,
@@ -2063,7 +2477,14 @@ export class Tui extends HeyApiClient {
2063
2477
  * Open the model dialog
2064
2478
  */
2065
2479
  openModels(parameters, options) {
2066
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2480
+ const params = buildClientParams([parameters], [
2481
+ {
2482
+ args: [
2483
+ { in: "query", key: "directory" },
2484
+ { in: "query", key: "workspace" },
2485
+ ],
2486
+ },
2487
+ ]);
2067
2488
  return (options?.client ?? this.client).post({
2068
2489
  url: "/tui/open-models",
2069
2490
  ...options,
@@ -2076,7 +2497,14 @@ export class Tui extends HeyApiClient {
2076
2497
  * Submit the prompt
2077
2498
  */
2078
2499
  submitPrompt(parameters, options) {
2079
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2500
+ const params = buildClientParams([parameters], [
2501
+ {
2502
+ args: [
2503
+ { in: "query", key: "directory" },
2504
+ { in: "query", key: "workspace" },
2505
+ ],
2506
+ },
2507
+ ]);
2080
2508
  return (options?.client ?? this.client).post({
2081
2509
  url: "/tui/submit-prompt",
2082
2510
  ...options,
@@ -2089,7 +2517,14 @@ export class Tui extends HeyApiClient {
2089
2517
  * Clear the prompt
2090
2518
  */
2091
2519
  clearPrompt(parameters, options) {
2092
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2520
+ const params = buildClientParams([parameters], [
2521
+ {
2522
+ args: [
2523
+ { in: "query", key: "directory" },
2524
+ { in: "query", key: "workspace" },
2525
+ ],
2526
+ },
2527
+ ]);
2093
2528
  return (options?.client ?? this.client).post({
2094
2529
  url: "/tui/clear-prompt",
2095
2530
  ...options,
@@ -2106,6 +2541,7 @@ export class Tui extends HeyApiClient {
2106
2541
  {
2107
2542
  args: [
2108
2543
  { in: "query", key: "directory" },
2544
+ { in: "query", key: "workspace" },
2109
2545
  { in: "body", key: "command" },
2110
2546
  ],
2111
2547
  },
@@ -2131,6 +2567,7 @@ export class Tui extends HeyApiClient {
2131
2567
  {
2132
2568
  args: [
2133
2569
  { in: "query", key: "directory" },
2570
+ { in: "query", key: "workspace" },
2134
2571
  { in: "body", key: "title" },
2135
2572
  { in: "body", key: "message" },
2136
2573
  { in: "body", key: "variant" },
@@ -2159,6 +2596,7 @@ export class Tui extends HeyApiClient {
2159
2596
  {
2160
2597
  args: [
2161
2598
  { in: "query", key: "directory" },
2599
+ { in: "query", key: "workspace" },
2162
2600
  { key: "body", map: "body" },
2163
2601
  ],
2164
2602
  },
@@ -2184,6 +2622,7 @@ export class Tui extends HeyApiClient {
2184
2622
  {
2185
2623
  args: [
2186
2624
  { in: "query", key: "directory" },
2625
+ { in: "query", key: "workspace" },
2187
2626
  { in: "body", key: "sessionID" },
2188
2627
  ],
2189
2628
  },
@@ -2211,7 +2650,14 @@ export class Instance extends HeyApiClient {
2211
2650
  * Clean up and dispose the current OpenCode instance, releasing all resources.
2212
2651
  */
2213
2652
  dispose(parameters, options) {
2214
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2653
+ const params = buildClientParams([parameters], [
2654
+ {
2655
+ args: [
2656
+ { in: "query", key: "directory" },
2657
+ { in: "query", key: "workspace" },
2658
+ ],
2659
+ },
2660
+ ]);
2215
2661
  return (options?.client ?? this.client).post({
2216
2662
  url: "/instance/dispose",
2217
2663
  ...options,
@@ -2226,7 +2672,14 @@ export class Path extends HeyApiClient {
2226
2672
  * Retrieve the current working directory and related path information for the OpenCode instance.
2227
2673
  */
2228
2674
  get(parameters, options) {
2229
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2675
+ const params = buildClientParams([parameters], [
2676
+ {
2677
+ args: [
2678
+ { in: "query", key: "directory" },
2679
+ { in: "query", key: "workspace" },
2680
+ ],
2681
+ },
2682
+ ]);
2230
2683
  return (options?.client ?? this.client).get({
2231
2684
  url: "/path",
2232
2685
  ...options,
@@ -2241,7 +2694,14 @@ export class Vcs extends HeyApiClient {
2241
2694
  * Retrieve version control system (VCS) information for the current project, such as git branch.
2242
2695
  */
2243
2696
  get(parameters, options) {
2244
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2697
+ const params = buildClientParams([parameters], [
2698
+ {
2699
+ args: [
2700
+ { in: "query", key: "directory" },
2701
+ { in: "query", key: "workspace" },
2702
+ ],
2703
+ },
2704
+ ]);
2245
2705
  return (options?.client ?? this.client).get({
2246
2706
  url: "/vcs",
2247
2707
  ...options,
@@ -2256,7 +2716,14 @@ export class Command extends HeyApiClient {
2256
2716
  * Get a list of all available commands in the OpenCode system.
2257
2717
  */
2258
2718
  list(parameters, options) {
2259
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2719
+ const params = buildClientParams([parameters], [
2720
+ {
2721
+ args: [
2722
+ { in: "query", key: "directory" },
2723
+ { in: "query", key: "workspace" },
2724
+ ],
2725
+ },
2726
+ ]);
2260
2727
  return (options?.client ?? this.client).get({
2261
2728
  url: "/command",
2262
2729
  ...options,
@@ -2275,6 +2742,7 @@ export class App extends HeyApiClient {
2275
2742
  {
2276
2743
  args: [
2277
2744
  { in: "query", key: "directory" },
2745
+ { in: "query", key: "workspace" },
2278
2746
  { in: "body", key: "service" },
2279
2747
  { in: "body", key: "level" },
2280
2748
  { in: "body", key: "message" },
@@ -2299,7 +2767,14 @@ export class App extends HeyApiClient {
2299
2767
  * Get a list of all available AI agents in the OpenCode system.
2300
2768
  */
2301
2769
  agents(parameters, options) {
2302
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2770
+ const params = buildClientParams([parameters], [
2771
+ {
2772
+ args: [
2773
+ { in: "query", key: "directory" },
2774
+ { in: "query", key: "workspace" },
2775
+ ],
2776
+ },
2777
+ ]);
2303
2778
  return (options?.client ?? this.client).get({
2304
2779
  url: "/agent",
2305
2780
  ...options,
@@ -2312,7 +2787,14 @@ export class App extends HeyApiClient {
2312
2787
  * Get a list of all available skills in the OpenCode system.
2313
2788
  */
2314
2789
  skills(parameters, options) {
2315
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2790
+ const params = buildClientParams([parameters], [
2791
+ {
2792
+ args: [
2793
+ { in: "query", key: "directory" },
2794
+ { in: "query", key: "workspace" },
2795
+ ],
2796
+ },
2797
+ ]);
2316
2798
  return (options?.client ?? this.client).get({
2317
2799
  url: "/skill",
2318
2800
  ...options,
@@ -2327,7 +2809,14 @@ export class Lsp extends HeyApiClient {
2327
2809
  * Get LSP server status
2328
2810
  */
2329
2811
  status(parameters, options) {
2330
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2812
+ const params = buildClientParams([parameters], [
2813
+ {
2814
+ args: [
2815
+ { in: "query", key: "directory" },
2816
+ { in: "query", key: "workspace" },
2817
+ ],
2818
+ },
2819
+ ]);
2331
2820
  return (options?.client ?? this.client).get({
2332
2821
  url: "/lsp",
2333
2822
  ...options,
@@ -2342,7 +2831,14 @@ export class Formatter extends HeyApiClient {
2342
2831
  * Get formatter status
2343
2832
  */
2344
2833
  status(parameters, options) {
2345
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2834
+ const params = buildClientParams([parameters], [
2835
+ {
2836
+ args: [
2837
+ { in: "query", key: "directory" },
2838
+ { in: "query", key: "workspace" },
2839
+ ],
2840
+ },
2841
+ ]);
2346
2842
  return (options?.client ?? this.client).get({
2347
2843
  url: "/formatter",
2348
2844
  ...options,
@@ -2357,7 +2853,14 @@ export class Event extends HeyApiClient {
2357
2853
  * Get events
2358
2854
  */
2359
2855
  subscribe(parameters, options) {
2360
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2856
+ const params = buildClientParams([parameters], [
2857
+ {
2858
+ args: [
2859
+ { in: "query", key: "directory" },
2860
+ { in: "query", key: "workspace" },
2861
+ ],
2862
+ },
2863
+ ]);
2361
2864
  return (options?.client ?? this.client).sse.get({
2362
2865
  url: "/event",
2363
2866
  ...options,
@@ -2395,14 +2898,14 @@ export class KiloClient extends HeyApiClient {
2395
2898
  get tool() {
2396
2899
  return (this._tool ??= new Tool({ client: this.client }));
2397
2900
  }
2398
- _worktree;
2399
- get worktree() {
2400
- return (this._worktree ??= new Worktree({ client: this.client }));
2401
- }
2402
2901
  _experimental;
2403
2902
  get experimental() {
2404
2903
  return (this._experimental ??= new Experimental({ client: this.client }));
2405
2904
  }
2905
+ _worktree;
2906
+ get worktree() {
2907
+ return (this._worktree ??= new Worktree({ client: this.client }));
2908
+ }
2406
2909
  _session;
2407
2910
  get session() {
2408
2911
  return (this._session ??= new Session2({ client: this.client }));
@@ -2435,6 +2938,10 @@ export class KiloClient extends HeyApiClient {
2435
2938
  get enhancePrompt() {
2436
2939
  return (this._enhancePrompt ??= new EnhancePrompt({ client: this.client }));
2437
2940
  }
2941
+ _kilocode;
2942
+ get kilocode() {
2943
+ return (this._kilocode ??= new Kilocode({ client: this.client }));
2944
+ }
2438
2945
  _kilo;
2439
2946
  get kilo() {
2440
2947
  return (this._kilo ??= new Kilo({ client: this.client }));