@hueyexe/opencode-ensemble 0.14.0 → 0.14.1

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.
Files changed (3) hide show
  1. package/README.md +97 -62
  2. package/dist/index.js +1702 -765
  3. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,21 @@
1
1
  // @bun
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
2
4
  var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __toESM = (mod, isNodeMode, target) => {
8
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
9
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
+ for (let key of __getOwnPropNames(mod))
11
+ if (!__hasOwnProp.call(to, key))
12
+ __defProp(to, key, {
13
+ get: () => mod[key],
14
+ enumerable: true
15
+ });
16
+ return to;
17
+ };
18
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
3
19
  var __export = (target, all) => {
4
20
  for (var name in all)
5
21
  __defProp(target, name, {
@@ -10,6 +26,463 @@ var __export = (target, all) => {
10
26
  });
11
27
  };
12
28
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
+ var __require = import.meta.require;
30
+
31
+ // node_modules/isexe/windows.js
32
+ var require_windows = __commonJS((exports, module) => {
33
+ module.exports = isexe;
34
+ isexe.sync = sync;
35
+ var fs = __require("fs");
36
+ function checkPathExt(path, options) {
37
+ var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT;
38
+ if (!pathext) {
39
+ return true;
40
+ }
41
+ pathext = pathext.split(";");
42
+ if (pathext.indexOf("") !== -1) {
43
+ return true;
44
+ }
45
+ for (var i = 0;i < pathext.length; i++) {
46
+ var p = pathext[i].toLowerCase();
47
+ if (p && path.substr(-p.length).toLowerCase() === p) {
48
+ return true;
49
+ }
50
+ }
51
+ return false;
52
+ }
53
+ function checkStat(stat, path, options) {
54
+ if (!stat.isSymbolicLink() && !stat.isFile()) {
55
+ return false;
56
+ }
57
+ return checkPathExt(path, options);
58
+ }
59
+ function isexe(path, options, cb) {
60
+ fs.stat(path, function(er, stat) {
61
+ cb(er, er ? false : checkStat(stat, path, options));
62
+ });
63
+ }
64
+ function sync(path, options) {
65
+ return checkStat(fs.statSync(path), path, options);
66
+ }
67
+ });
68
+
69
+ // node_modules/isexe/mode.js
70
+ var require_mode = __commonJS((exports, module) => {
71
+ module.exports = isexe;
72
+ isexe.sync = sync;
73
+ var fs = __require("fs");
74
+ function isexe(path, options, cb) {
75
+ fs.stat(path, function(er, stat) {
76
+ cb(er, er ? false : checkStat(stat, options));
77
+ });
78
+ }
79
+ function sync(path, options) {
80
+ return checkStat(fs.statSync(path), options);
81
+ }
82
+ function checkStat(stat, options) {
83
+ return stat.isFile() && checkMode(stat, options);
84
+ }
85
+ function checkMode(stat, options) {
86
+ var mod = stat.mode;
87
+ var uid = stat.uid;
88
+ var gid = stat.gid;
89
+ var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid();
90
+ var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid();
91
+ var u = parseInt("100", 8);
92
+ var g = parseInt("010", 8);
93
+ var o = parseInt("001", 8);
94
+ var ug = u | g;
95
+ var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
96
+ return ret;
97
+ }
98
+ });
99
+
100
+ // node_modules/isexe/index.js
101
+ var require_isexe = __commonJS((exports, module) => {
102
+ var fs = __require("fs");
103
+ var core2;
104
+ if (process.platform === "win32" || global.TESTING_WINDOWS) {
105
+ core2 = require_windows();
106
+ } else {
107
+ core2 = require_mode();
108
+ }
109
+ module.exports = isexe;
110
+ isexe.sync = sync;
111
+ function isexe(path, options, cb) {
112
+ if (typeof options === "function") {
113
+ cb = options;
114
+ options = {};
115
+ }
116
+ if (!cb) {
117
+ if (typeof Promise !== "function") {
118
+ throw new TypeError("callback not provided");
119
+ }
120
+ return new Promise(function(resolve, reject) {
121
+ isexe(path, options || {}, function(er, is) {
122
+ if (er) {
123
+ reject(er);
124
+ } else {
125
+ resolve(is);
126
+ }
127
+ });
128
+ });
129
+ }
130
+ core2(path, options || {}, function(er, is) {
131
+ if (er) {
132
+ if (er.code === "EACCES" || options && options.ignoreErrors) {
133
+ er = null;
134
+ is = false;
135
+ }
136
+ }
137
+ cb(er, is);
138
+ });
139
+ }
140
+ function sync(path, options) {
141
+ try {
142
+ return core2.sync(path, options || {});
143
+ } catch (er) {
144
+ if (options && options.ignoreErrors || er.code === "EACCES") {
145
+ return false;
146
+ } else {
147
+ throw er;
148
+ }
149
+ }
150
+ }
151
+ });
152
+
153
+ // node_modules/which/which.js
154
+ var require_which = __commonJS((exports, module) => {
155
+ var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
156
+ var path = __require("path");
157
+ var COLON = isWindows ? ";" : ":";
158
+ var isexe = require_isexe();
159
+ var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
160
+ var getPathInfo = (cmd, opt) => {
161
+ const colon = opt.colon || COLON;
162
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
163
+ ...isWindows ? [process.cwd()] : [],
164
+ ...(opt.path || process.env.PATH || "").split(colon)
165
+ ];
166
+ const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
167
+ const pathExt = isWindows ? pathExtExe.split(colon) : [""];
168
+ if (isWindows) {
169
+ if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
170
+ pathExt.unshift("");
171
+ }
172
+ return {
173
+ pathEnv,
174
+ pathExt,
175
+ pathExtExe
176
+ };
177
+ };
178
+ var which = (cmd, opt, cb) => {
179
+ if (typeof opt === "function") {
180
+ cb = opt;
181
+ opt = {};
182
+ }
183
+ if (!opt)
184
+ opt = {};
185
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
186
+ const found = [];
187
+ const step = (i) => new Promise((resolve, reject) => {
188
+ if (i === pathEnv.length)
189
+ return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
190
+ const ppRaw = pathEnv[i];
191
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
192
+ const pCmd = path.join(pathPart, cmd);
193
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
194
+ resolve(subStep(p, i, 0));
195
+ });
196
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
197
+ if (ii === pathExt.length)
198
+ return resolve(step(i + 1));
199
+ const ext = pathExt[ii];
200
+ isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
201
+ if (!er && is) {
202
+ if (opt.all)
203
+ found.push(p + ext);
204
+ else
205
+ return resolve(p + ext);
206
+ }
207
+ return resolve(subStep(p, i, ii + 1));
208
+ });
209
+ });
210
+ return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
211
+ };
212
+ var whichSync = (cmd, opt) => {
213
+ opt = opt || {};
214
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
215
+ const found = [];
216
+ for (let i = 0;i < pathEnv.length; i++) {
217
+ const ppRaw = pathEnv[i];
218
+ const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
219
+ const pCmd = path.join(pathPart, cmd);
220
+ const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
221
+ for (let j = 0;j < pathExt.length; j++) {
222
+ const cur = p + pathExt[j];
223
+ try {
224
+ const is = isexe.sync(cur, { pathExt: pathExtExe });
225
+ if (is) {
226
+ if (opt.all)
227
+ found.push(cur);
228
+ else
229
+ return cur;
230
+ }
231
+ } catch (ex) {}
232
+ }
233
+ }
234
+ if (opt.all && found.length)
235
+ return found;
236
+ if (opt.nothrow)
237
+ return null;
238
+ throw getNotFoundError(cmd);
239
+ };
240
+ module.exports = which;
241
+ which.sync = whichSync;
242
+ });
243
+
244
+ // node_modules/path-key/index.js
245
+ var require_path_key = __commonJS((exports, module) => {
246
+ var pathKey = (options = {}) => {
247
+ const environment = options.env || process.env;
248
+ const platform = options.platform || process.platform;
249
+ if (platform !== "win32") {
250
+ return "PATH";
251
+ }
252
+ return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
253
+ };
254
+ module.exports = pathKey;
255
+ module.exports.default = pathKey;
256
+ });
257
+
258
+ // node_modules/cross-spawn/lib/util/resolveCommand.js
259
+ var require_resolveCommand = __commonJS((exports, module) => {
260
+ var path = __require("path");
261
+ var which = require_which();
262
+ var getPathKey = require_path_key();
263
+ function resolveCommandAttempt(parsed, withoutPathExt) {
264
+ const env = parsed.options.env || process.env;
265
+ const cwd = process.cwd();
266
+ const hasCustomCwd = parsed.options.cwd != null;
267
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
268
+ if (shouldSwitchCwd) {
269
+ try {
270
+ process.chdir(parsed.options.cwd);
271
+ } catch (err) {}
272
+ }
273
+ let resolved;
274
+ try {
275
+ resolved = which.sync(parsed.command, {
276
+ path: env[getPathKey({ env })],
277
+ pathExt: withoutPathExt ? path.delimiter : undefined
278
+ });
279
+ } catch (e) {} finally {
280
+ if (shouldSwitchCwd) {
281
+ process.chdir(cwd);
282
+ }
283
+ }
284
+ if (resolved) {
285
+ resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
286
+ }
287
+ return resolved;
288
+ }
289
+ function resolveCommand(parsed) {
290
+ return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
291
+ }
292
+ module.exports = resolveCommand;
293
+ });
294
+
295
+ // node_modules/cross-spawn/lib/util/escape.js
296
+ var require_escape = __commonJS((exports, module) => {
297
+ var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
298
+ function escapeCommand(arg) {
299
+ arg = arg.replace(metaCharsRegExp, "^$1");
300
+ return arg;
301
+ }
302
+ function escapeArgument(arg, doubleEscapeMetaChars) {
303
+ arg = `${arg}`;
304
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
305
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
306
+ arg = `"${arg}"`;
307
+ arg = arg.replace(metaCharsRegExp, "^$1");
308
+ if (doubleEscapeMetaChars) {
309
+ arg = arg.replace(metaCharsRegExp, "^$1");
310
+ }
311
+ return arg;
312
+ }
313
+ exports.command = escapeCommand;
314
+ exports.argument = escapeArgument;
315
+ });
316
+
317
+ // node_modules/shebang-regex/index.js
318
+ var require_shebang_regex = __commonJS((exports, module) => {
319
+ module.exports = /^#!(.*)/;
320
+ });
321
+
322
+ // node_modules/shebang-command/index.js
323
+ var require_shebang_command = __commonJS((exports, module) => {
324
+ var shebangRegex = require_shebang_regex();
325
+ module.exports = (string4 = "") => {
326
+ const match = string4.match(shebangRegex);
327
+ if (!match) {
328
+ return null;
329
+ }
330
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
331
+ const binary = path.split("/").pop();
332
+ if (binary === "env") {
333
+ return argument;
334
+ }
335
+ return argument ? `${binary} ${argument}` : binary;
336
+ };
337
+ });
338
+
339
+ // node_modules/cross-spawn/lib/util/readShebang.js
340
+ var require_readShebang = __commonJS((exports, module) => {
341
+ var fs = __require("fs");
342
+ var shebangCommand = require_shebang_command();
343
+ function readShebang(command) {
344
+ const size = 150;
345
+ const buffer = Buffer.alloc(size);
346
+ let fd;
347
+ try {
348
+ fd = fs.openSync(command, "r");
349
+ fs.readSync(fd, buffer, 0, size, 0);
350
+ fs.closeSync(fd);
351
+ } catch (e) {}
352
+ return shebangCommand(buffer.toString());
353
+ }
354
+ module.exports = readShebang;
355
+ });
356
+
357
+ // node_modules/cross-spawn/lib/parse.js
358
+ var require_parse = __commonJS((exports, module) => {
359
+ var path = __require("path");
360
+ var resolveCommand = require_resolveCommand();
361
+ var escape = require_escape();
362
+ var readShebang = require_readShebang();
363
+ var isWin = process.platform === "win32";
364
+ var isExecutableRegExp = /\.(?:com|exe)$/i;
365
+ var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
366
+ function detectShebang(parsed) {
367
+ parsed.file = resolveCommand(parsed);
368
+ const shebang = parsed.file && readShebang(parsed.file);
369
+ if (shebang) {
370
+ parsed.args.unshift(parsed.file);
371
+ parsed.command = shebang;
372
+ return resolveCommand(parsed);
373
+ }
374
+ return parsed.file;
375
+ }
376
+ function parseNonShell(parsed) {
377
+ if (!isWin) {
378
+ return parsed;
379
+ }
380
+ const commandFile = detectShebang(parsed);
381
+ const needsShell = !isExecutableRegExp.test(commandFile);
382
+ if (parsed.options.forceShell || needsShell) {
383
+ const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
384
+ parsed.command = path.normalize(parsed.command);
385
+ parsed.command = escape.command(parsed.command);
386
+ parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
387
+ const shellCommand = [parsed.command].concat(parsed.args).join(" ");
388
+ parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
389
+ parsed.command = process.env.comspec || "cmd.exe";
390
+ parsed.options.windowsVerbatimArguments = true;
391
+ }
392
+ return parsed;
393
+ }
394
+ function parse5(command, args, options) {
395
+ if (args && !Array.isArray(args)) {
396
+ options = args;
397
+ args = null;
398
+ }
399
+ args = args ? args.slice(0) : [];
400
+ options = Object.assign({}, options);
401
+ const parsed = {
402
+ command,
403
+ args,
404
+ options,
405
+ file: undefined,
406
+ original: {
407
+ command,
408
+ args
409
+ }
410
+ };
411
+ return options.shell ? parsed : parseNonShell(parsed);
412
+ }
413
+ module.exports = parse5;
414
+ });
415
+
416
+ // node_modules/cross-spawn/lib/enoent.js
417
+ var require_enoent = __commonJS((exports, module) => {
418
+ var isWin = process.platform === "win32";
419
+ function notFoundError(original, syscall) {
420
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
421
+ code: "ENOENT",
422
+ errno: "ENOENT",
423
+ syscall: `${syscall} ${original.command}`,
424
+ path: original.command,
425
+ spawnargs: original.args
426
+ });
427
+ }
428
+ function hookChildProcess(cp, parsed) {
429
+ if (!isWin) {
430
+ return;
431
+ }
432
+ const originalEmit = cp.emit;
433
+ cp.emit = function(name, arg1) {
434
+ if (name === "exit") {
435
+ const err = verifyENOENT(arg1, parsed);
436
+ if (err) {
437
+ return originalEmit.call(cp, "error", err);
438
+ }
439
+ }
440
+ return originalEmit.apply(cp, arguments);
441
+ };
442
+ }
443
+ function verifyENOENT(status, parsed) {
444
+ if (isWin && status === 1 && !parsed.file) {
445
+ return notFoundError(parsed.original, "spawn");
446
+ }
447
+ return null;
448
+ }
449
+ function verifyENOENTSync(status, parsed) {
450
+ if (isWin && status === 1 && !parsed.file) {
451
+ return notFoundError(parsed.original, "spawnSync");
452
+ }
453
+ return null;
454
+ }
455
+ module.exports = {
456
+ hookChildProcess,
457
+ verifyENOENT,
458
+ verifyENOENTSync,
459
+ notFoundError
460
+ };
461
+ });
462
+
463
+ // node_modules/cross-spawn/index.js
464
+ var require_cross_spawn = __commonJS((exports, module) => {
465
+ var cp = __require("child_process");
466
+ var parse5 = require_parse();
467
+ var enoent = require_enoent();
468
+ function spawn(command, args, options) {
469
+ const parsed = parse5(command, args, options);
470
+ const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
471
+ enoent.hookChildProcess(spawned, parsed);
472
+ return spawned;
473
+ }
474
+ function spawnSync(command, args, options) {
475
+ const parsed = parse5(command, args, options);
476
+ const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
477
+ result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
478
+ return result;
479
+ }
480
+ module.exports = spawn;
481
+ module.exports.spawn = spawn;
482
+ module.exports.sync = spawnSync;
483
+ module.exports._parse = parse5;
484
+ module.exports._enoent = enoent;
485
+ });
13
486
 
14
487
  // src/log.ts
15
488
  function initLog(client3) {
@@ -13283,6 +13756,94 @@ class HeyApiRegistry {
13283
13756
  }
13284
13757
  }
13285
13758
 
13759
+ class Auth extends HeyApiClient {
13760
+ remove(parameters, options) {
13761
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
13762
+ return (options?.client ?? this.client).delete({
13763
+ url: "/auth/{providerID}",
13764
+ ...options,
13765
+ ...params
13766
+ });
13767
+ }
13768
+ set(parameters, options) {
13769
+ const params = buildClientParams([parameters], [
13770
+ {
13771
+ args: [
13772
+ { in: "path", key: "providerID" },
13773
+ { key: "auth", map: "body" }
13774
+ ]
13775
+ }
13776
+ ]);
13777
+ return (options?.client ?? this.client).put({
13778
+ url: "/auth/{providerID}",
13779
+ ...options,
13780
+ ...params,
13781
+ headers: {
13782
+ "Content-Type": "application/json",
13783
+ ...options?.headers,
13784
+ ...params.headers
13785
+ }
13786
+ });
13787
+ }
13788
+ }
13789
+
13790
+ class App extends HeyApiClient {
13791
+ log(parameters, options) {
13792
+ const params = buildClientParams([parameters], [
13793
+ {
13794
+ args: [
13795
+ { in: "query", key: "directory" },
13796
+ { in: "query", key: "workspace" },
13797
+ { in: "body", key: "service" },
13798
+ { in: "body", key: "level" },
13799
+ { in: "body", key: "message" },
13800
+ { in: "body", key: "extra" }
13801
+ ]
13802
+ }
13803
+ ]);
13804
+ return (options?.client ?? this.client).post({
13805
+ url: "/log",
13806
+ ...options,
13807
+ ...params,
13808
+ headers: {
13809
+ "Content-Type": "application/json",
13810
+ ...options?.headers,
13811
+ ...params.headers
13812
+ }
13813
+ });
13814
+ }
13815
+ agents(parameters, options) {
13816
+ const params = buildClientParams([parameters], [
13817
+ {
13818
+ args: [
13819
+ { in: "query", key: "directory" },
13820
+ { in: "query", key: "workspace" }
13821
+ ]
13822
+ }
13823
+ ]);
13824
+ return (options?.client ?? this.client).get({
13825
+ url: "/agent",
13826
+ ...options,
13827
+ ...params
13828
+ });
13829
+ }
13830
+ skills(parameters, options) {
13831
+ const params = buildClientParams([parameters], [
13832
+ {
13833
+ args: [
13834
+ { in: "query", key: "directory" },
13835
+ { in: "query", key: "workspace" }
13836
+ ]
13837
+ }
13838
+ ]);
13839
+ return (options?.client ?? this.client).get({
13840
+ url: "/skill",
13841
+ ...options,
13842
+ ...params
13843
+ });
13844
+ }
13845
+ }
13846
+
13286
13847
  class Config extends HeyApiClient {
13287
13848
  get(options) {
13288
13849
  return (options?.client ?? this.client).get({
@@ -13343,39 +13904,26 @@ class Global extends HeyApiClient {
13343
13904
  }
13344
13905
  }
13345
13906
 
13346
- class Auth extends HeyApiClient {
13347
- remove(parameters, options) {
13348
- const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
13349
- return (options?.client ?? this.client).delete({
13350
- url: "/auth/{providerID}",
13351
- ...options,
13352
- ...params
13353
- });
13354
- }
13355
- set(parameters, options) {
13907
+ class Event extends HeyApiClient {
13908
+ subscribe(parameters, options) {
13356
13909
  const params = buildClientParams([parameters], [
13357
13910
  {
13358
13911
  args: [
13359
- { in: "path", key: "providerID" },
13360
- { key: "auth", map: "body" }
13912
+ { in: "query", key: "directory" },
13913
+ { in: "query", key: "workspace" }
13361
13914
  ]
13362
13915
  }
13363
13916
  ]);
13364
- return (options?.client ?? this.client).put({
13365
- url: "/auth/{providerID}",
13917
+ return (options?.client ?? this.client).sse.get({
13918
+ url: "/event",
13366
13919
  ...options,
13367
- ...params,
13368
- headers: {
13369
- "Content-Type": "application/json",
13370
- ...options?.headers,
13371
- ...params.headers
13372
- }
13920
+ ...params
13373
13921
  });
13374
13922
  }
13375
13923
  }
13376
13924
 
13377
- class Project extends HeyApiClient {
13378
- list(parameters, options) {
13925
+ class Config2 extends HeyApiClient {
13926
+ get(parameters, options) {
13379
13927
  const params = buildClientParams([parameters], [
13380
13928
  {
13381
13929
  args: [
@@ -13385,27 +13933,33 @@ class Project extends HeyApiClient {
13385
13933
  }
13386
13934
  ]);
13387
13935
  return (options?.client ?? this.client).get({
13388
- url: "/project",
13936
+ url: "/config",
13389
13937
  ...options,
13390
13938
  ...params
13391
13939
  });
13392
13940
  }
13393
- current(parameters, options) {
13941
+ update(parameters, options) {
13394
13942
  const params = buildClientParams([parameters], [
13395
13943
  {
13396
13944
  args: [
13397
13945
  { in: "query", key: "directory" },
13398
- { in: "query", key: "workspace" }
13946
+ { in: "query", key: "workspace" },
13947
+ { key: "config", map: "body" }
13399
13948
  ]
13400
13949
  }
13401
13950
  ]);
13402
- return (options?.client ?? this.client).get({
13403
- url: "/project/current",
13951
+ return (options?.client ?? this.client).patch({
13952
+ url: "/config",
13404
13953
  ...options,
13405
- ...params
13954
+ ...params,
13955
+ headers: {
13956
+ "Content-Type": "application/json",
13957
+ ...options?.headers,
13958
+ ...params.headers
13959
+ }
13406
13960
  });
13407
13961
  }
13408
- initGit(parameters, options) {
13962
+ providers(parameters, options) {
13409
13963
  const params = buildClientParams([parameters], [
13410
13964
  {
13411
13965
  args: [
@@ -13414,40 +13968,31 @@ class Project extends HeyApiClient {
13414
13968
  ]
13415
13969
  }
13416
13970
  ]);
13417
- return (options?.client ?? this.client).post({
13418
- url: "/project/git/init",
13971
+ return (options?.client ?? this.client).get({
13972
+ url: "/config/providers",
13419
13973
  ...options,
13420
13974
  ...params
13421
13975
  });
13422
13976
  }
13423
- update(parameters, options) {
13977
+ }
13978
+
13979
+ class Console extends HeyApiClient {
13980
+ get(parameters, options) {
13424
13981
  const params = buildClientParams([parameters], [
13425
13982
  {
13426
13983
  args: [
13427
- { in: "path", key: "projectID" },
13428
13984
  { in: "query", key: "directory" },
13429
- { in: "query", key: "workspace" },
13430
- { in: "body", key: "name" },
13431
- { in: "body", key: "icon" },
13432
- { in: "body", key: "commands" }
13985
+ { in: "query", key: "workspace" }
13433
13986
  ]
13434
13987
  }
13435
13988
  ]);
13436
- return (options?.client ?? this.client).patch({
13437
- url: "/project/{projectID}",
13989
+ return (options?.client ?? this.client).get({
13990
+ url: "/experimental/console",
13438
13991
  ...options,
13439
- ...params,
13440
- headers: {
13441
- "Content-Type": "application/json",
13442
- ...options?.headers,
13443
- ...params.headers
13444
- }
13992
+ ...params
13445
13993
  });
13446
13994
  }
13447
- }
13448
-
13449
- class Pty extends HeyApiClient {
13450
- list(parameters, options) {
13995
+ listOrgs(parameters, options) {
13451
13996
  const params = buildClientParams([parameters], [
13452
13997
  {
13453
13998
  args: [
@@ -13457,27 +14002,24 @@ class Pty extends HeyApiClient {
13457
14002
  }
13458
14003
  ]);
13459
14004
  return (options?.client ?? this.client).get({
13460
- url: "/pty",
14005
+ url: "/experimental/console/orgs",
13461
14006
  ...options,
13462
14007
  ...params
13463
14008
  });
13464
14009
  }
13465
- create(parameters, options) {
14010
+ switchOrg(parameters, options) {
13466
14011
  const params = buildClientParams([parameters], [
13467
14012
  {
13468
14013
  args: [
13469
14014
  { in: "query", key: "directory" },
13470
14015
  { in: "query", key: "workspace" },
13471
- { in: "body", key: "command" },
13472
- { in: "body", key: "args" },
13473
- { in: "body", key: "cwd" },
13474
- { in: "body", key: "title" },
13475
- { in: "body", key: "env" }
14016
+ { in: "body", key: "accountID" },
14017
+ { in: "body", key: "orgID" }
13476
14018
  ]
13477
14019
  }
13478
14020
  ]);
13479
14021
  return (options?.client ?? this.client).post({
13480
- url: "/pty",
14022
+ url: "/experimental/console/switch",
13481
14023
  ...options,
13482
14024
  ...params,
13483
14025
  headers: {
@@ -13487,81 +14029,70 @@ class Pty extends HeyApiClient {
13487
14029
  }
13488
14030
  });
13489
14031
  }
13490
- remove(parameters, options) {
14032
+ }
14033
+
14034
+ class Session extends HeyApiClient {
14035
+ list(parameters, options) {
13491
14036
  const params = buildClientParams([parameters], [
13492
14037
  {
13493
14038
  args: [
13494
- { in: "path", key: "ptyID" },
13495
14039
  { in: "query", key: "directory" },
13496
- { in: "query", key: "workspace" }
14040
+ { in: "query", key: "workspace" },
14041
+ { in: "query", key: "roots" },
14042
+ { in: "query", key: "start" },
14043
+ { in: "query", key: "cursor" },
14044
+ { in: "query", key: "search" },
14045
+ { in: "query", key: "limit" },
14046
+ { in: "query", key: "archived" }
13497
14047
  ]
13498
14048
  }
13499
14049
  ]);
13500
- return (options?.client ?? this.client).delete({
13501
- url: "/pty/{ptyID}",
14050
+ return (options?.client ?? this.client).get({
14051
+ url: "/experimental/session",
13502
14052
  ...options,
13503
14053
  ...params
13504
14054
  });
13505
14055
  }
13506
- get(parameters, options) {
14056
+ }
14057
+
14058
+ class Resource extends HeyApiClient {
14059
+ list(parameters, options) {
13507
14060
  const params = buildClientParams([parameters], [
13508
14061
  {
13509
14062
  args: [
13510
- { in: "path", key: "ptyID" },
13511
14063
  { in: "query", key: "directory" },
13512
14064
  { in: "query", key: "workspace" }
13513
14065
  ]
13514
14066
  }
13515
14067
  ]);
13516
14068
  return (options?.client ?? this.client).get({
13517
- url: "/pty/{ptyID}",
14069
+ url: "/experimental/resource",
13518
14070
  ...options,
13519
14071
  ...params
13520
14072
  });
13521
14073
  }
13522
- update(parameters, options) {
13523
- const params = buildClientParams([parameters], [
13524
- {
13525
- args: [
13526
- { in: "path", key: "ptyID" },
13527
- { in: "query", key: "directory" },
13528
- { in: "query", key: "workspace" },
13529
- { in: "body", key: "title" },
13530
- { in: "body", key: "size" }
13531
- ]
13532
- }
13533
- ]);
13534
- return (options?.client ?? this.client).put({
13535
- url: "/pty/{ptyID}",
13536
- ...options,
13537
- ...params,
13538
- headers: {
13539
- "Content-Type": "application/json",
13540
- ...options?.headers,
13541
- ...params.headers
13542
- }
13543
- });
13544
- }
13545
- connect(parameters, options) {
14074
+ }
14075
+
14076
+ class Adapter extends HeyApiClient {
14077
+ list(parameters, options) {
13546
14078
  const params = buildClientParams([parameters], [
13547
14079
  {
13548
14080
  args: [
13549
- { in: "path", key: "ptyID" },
13550
14081
  { in: "query", key: "directory" },
13551
14082
  { in: "query", key: "workspace" }
13552
14083
  ]
13553
14084
  }
13554
14085
  ]);
13555
14086
  return (options?.client ?? this.client).get({
13556
- url: "/pty/{ptyID}/connect",
14087
+ url: "/experimental/workspace/adapter",
13557
14088
  ...options,
13558
14089
  ...params
13559
14090
  });
13560
14091
  }
13561
14092
  }
13562
14093
 
13563
- class Config2 extends HeyApiClient {
13564
- get(parameters, options) {
14094
+ class Workspace extends HeyApiClient {
14095
+ list(parameters, options) {
13565
14096
  const params = buildClientParams([parameters], [
13566
14097
  {
13567
14098
  args: [
@@ -13571,23 +14102,26 @@ class Config2 extends HeyApiClient {
13571
14102
  }
13572
14103
  ]);
13573
14104
  return (options?.client ?? this.client).get({
13574
- url: "/config",
14105
+ url: "/experimental/workspace",
13575
14106
  ...options,
13576
14107
  ...params
13577
14108
  });
13578
14109
  }
13579
- update(parameters, options) {
14110
+ create(parameters, options) {
13580
14111
  const params = buildClientParams([parameters], [
13581
14112
  {
13582
14113
  args: [
13583
14114
  { in: "query", key: "directory" },
13584
14115
  { in: "query", key: "workspace" },
13585
- { key: "config", map: "body" }
14116
+ { in: "body", key: "id" },
14117
+ { in: "body", key: "type" },
14118
+ { in: "body", key: "branch" },
14119
+ { in: "body", key: "extra" }
13586
14120
  ]
13587
14121
  }
13588
14122
  ]);
13589
- return (options?.client ?? this.client).patch({
13590
- url: "/config",
14123
+ return (options?.client ?? this.client).post({
14124
+ url: "/experimental/workspace",
13591
14125
  ...options,
13592
14126
  ...params,
13593
14127
  headers: {
@@ -13597,7 +14131,7 @@ class Config2 extends HeyApiClient {
13597
14131
  }
13598
14132
  });
13599
14133
  }
13600
- providers(parameters, options) {
14134
+ syncList(parameters, options) {
13601
14135
  const params = buildClientParams([parameters], [
13602
14136
  {
13603
14137
  args: [
@@ -13606,16 +14140,13 @@ class Config2 extends HeyApiClient {
13606
14140
  ]
13607
14141
  }
13608
14142
  ]);
13609
- return (options?.client ?? this.client).get({
13610
- url: "/config/providers",
14143
+ return (options?.client ?? this.client).post({
14144
+ url: "/experimental/workspace/sync-list",
13611
14145
  ...options,
13612
14146
  ...params
13613
14147
  });
13614
14148
  }
13615
- }
13616
-
13617
- class Tool extends HeyApiClient {
13618
- ids(parameters, options) {
14149
+ status(parameters, options) {
13619
14150
  const params = buildClientParams([parameters], [
13620
14151
  {
13621
14152
  args: [
@@ -13625,61 +14156,41 @@ class Tool extends HeyApiClient {
13625
14156
  }
13626
14157
  ]);
13627
14158
  return (options?.client ?? this.client).get({
13628
- url: "/experimental/tool/ids",
13629
- ...options,
13630
- ...params
13631
- });
13632
- }
13633
- list(parameters, options) {
13634
- const params = buildClientParams([parameters], [
13635
- {
13636
- args: [
13637
- { in: "query", key: "directory" },
13638
- { in: "query", key: "workspace" },
13639
- { in: "query", key: "provider" },
13640
- { in: "query", key: "model" }
13641
- ]
13642
- }
13643
- ]);
13644
- return (options?.client ?? this.client).get({
13645
- url: "/experimental/tool",
14159
+ url: "/experimental/workspace/status",
13646
14160
  ...options,
13647
14161
  ...params
13648
14162
  });
13649
14163
  }
13650
- }
13651
-
13652
- class Workspace extends HeyApiClient {
13653
- list(parameters, options) {
14164
+ remove(parameters, options) {
13654
14165
  const params = buildClientParams([parameters], [
13655
14166
  {
13656
14167
  args: [
14168
+ { in: "path", key: "id" },
13657
14169
  { in: "query", key: "directory" },
13658
14170
  { in: "query", key: "workspace" }
13659
14171
  ]
13660
14172
  }
13661
14173
  ]);
13662
- return (options?.client ?? this.client).get({
13663
- url: "/experimental/workspace",
14174
+ return (options?.client ?? this.client).delete({
14175
+ url: "/experimental/workspace/{id}",
13664
14176
  ...options,
13665
14177
  ...params
13666
14178
  });
13667
14179
  }
13668
- create(parameters, options) {
14180
+ warp(parameters, options) {
13669
14181
  const params = buildClientParams([parameters], [
13670
14182
  {
13671
14183
  args: [
13672
14184
  { in: "query", key: "directory" },
13673
14185
  { in: "query", key: "workspace" },
13674
14186
  { in: "body", key: "id" },
13675
- { in: "body", key: "type" },
13676
- { in: "body", key: "branch" },
13677
- { in: "body", key: "extra" }
14187
+ { in: "body", key: "sessionID" },
14188
+ { in: "body", key: "copyChanges" }
13678
14189
  ]
13679
14190
  }
13680
14191
  ]);
13681
14192
  return (options?.client ?? this.client).post({
13682
- url: "/experimental/workspace",
14193
+ url: "/experimental/workspace/warp",
13683
14194
  ...options,
13684
14195
  ...params,
13685
14196
  headers: {
@@ -13689,50 +14200,50 @@ class Workspace extends HeyApiClient {
13689
14200
  }
13690
14201
  });
13691
14202
  }
13692
- remove(parameters, options) {
13693
- const params = buildClientParams([parameters], [
13694
- {
13695
- args: [
13696
- { in: "path", key: "id" },
13697
- { in: "query", key: "directory" },
13698
- { in: "query", key: "workspace" }
13699
- ]
13700
- }
13701
- ]);
13702
- return (options?.client ?? this.client).delete({
13703
- url: "/experimental/workspace/{id}",
13704
- ...options,
13705
- ...params
13706
- });
14203
+ _adapter;
14204
+ get adapter() {
14205
+ return this._adapter ??= new Adapter({ client: this.client });
13707
14206
  }
13708
14207
  }
13709
14208
 
13710
- class Session extends HeyApiClient {
14209
+ class Experimental extends HeyApiClient {
14210
+ _console;
14211
+ get console() {
14212
+ return this._console ??= new Console({ client: this.client });
14213
+ }
14214
+ _session;
14215
+ get session() {
14216
+ return this._session ??= new Session({ client: this.client });
14217
+ }
14218
+ _resource;
14219
+ get resource() {
14220
+ return this._resource ??= new Resource({ client: this.client });
14221
+ }
14222
+ _workspace;
14223
+ get workspace() {
14224
+ return this._workspace ??= new Workspace({ client: this.client });
14225
+ }
14226
+ }
14227
+
14228
+ class Tool extends HeyApiClient {
13711
14229
  list(parameters, options) {
13712
14230
  const params = buildClientParams([parameters], [
13713
14231
  {
13714
14232
  args: [
13715
14233
  { in: "query", key: "directory" },
13716
14234
  { in: "query", key: "workspace" },
13717
- { in: "query", key: "roots" },
13718
- { in: "query", key: "start" },
13719
- { in: "query", key: "cursor" },
13720
- { in: "query", key: "search" },
13721
- { in: "query", key: "limit" },
13722
- { in: "query", key: "archived" }
14235
+ { in: "query", key: "provider" },
14236
+ { in: "query", key: "model" }
13723
14237
  ]
13724
14238
  }
13725
14239
  ]);
13726
14240
  return (options?.client ?? this.client).get({
13727
- url: "/experimental/session",
14241
+ url: "/experimental/tool",
13728
14242
  ...options,
13729
14243
  ...params
13730
14244
  });
13731
14245
  }
13732
- }
13733
-
13734
- class Resource extends HeyApiClient {
13735
- list(parameters, options) {
14246
+ ids(parameters, options) {
13736
14247
  const params = buildClientParams([parameters], [
13737
14248
  {
13738
14249
  args: [
@@ -13742,28 +14253,13 @@ class Resource extends HeyApiClient {
13742
14253
  }
13743
14254
  ]);
13744
14255
  return (options?.client ?? this.client).get({
13745
- url: "/experimental/resource",
14256
+ url: "/experimental/tool/ids",
13746
14257
  ...options,
13747
14258
  ...params
13748
14259
  });
13749
14260
  }
13750
14261
  }
13751
14262
 
13752
- class Experimental extends HeyApiClient {
13753
- _workspace;
13754
- get workspace() {
13755
- return this._workspace ??= new Workspace({ client: this.client });
13756
- }
13757
- _session;
13758
- get session() {
13759
- return this._session ??= new Session({ client: this.client });
13760
- }
13761
- _resource;
13762
- get resource() {
13763
- return this._resource ??= new Resource({ client: this.client });
13764
- }
13765
- }
13766
-
13767
14263
  class Worktree extends HeyApiClient {
13768
14264
  remove(parameters, options) {
13769
14265
  const params = buildClientParams([parameters], [
@@ -13845,242 +14341,191 @@ class Worktree extends HeyApiClient {
13845
14341
  }
13846
14342
  }
13847
14343
 
13848
- class Session2 extends HeyApiClient {
13849
- list(parameters, options) {
14344
+ class Find extends HeyApiClient {
14345
+ text(parameters, options) {
13850
14346
  const params = buildClientParams([parameters], [
13851
14347
  {
13852
14348
  args: [
13853
14349
  { in: "query", key: "directory" },
13854
14350
  { in: "query", key: "workspace" },
13855
- { in: "query", key: "roots" },
13856
- { in: "query", key: "start" },
13857
- { in: "query", key: "search" },
13858
- { in: "query", key: "limit" }
14351
+ { in: "query", key: "pattern" }
13859
14352
  ]
13860
14353
  }
13861
14354
  ]);
13862
14355
  return (options?.client ?? this.client).get({
13863
- url: "/session",
14356
+ url: "/find",
13864
14357
  ...options,
13865
14358
  ...params
13866
14359
  });
13867
14360
  }
13868
- create(parameters, options) {
14361
+ files(parameters, options) {
13869
14362
  const params = buildClientParams([parameters], [
13870
14363
  {
13871
14364
  args: [
13872
14365
  { in: "query", key: "directory" },
13873
14366
  { in: "query", key: "workspace" },
13874
- { in: "body", key: "parentID" },
13875
- { in: "body", key: "title" },
13876
- { in: "body", key: "permission" },
13877
- { in: "body", key: "workspaceID" }
14367
+ { in: "query", key: "query" },
14368
+ { in: "query", key: "dirs" },
14369
+ { in: "query", key: "type" },
14370
+ { in: "query", key: "limit" }
13878
14371
  ]
13879
14372
  }
13880
14373
  ]);
13881
- return (options?.client ?? this.client).post({
13882
- url: "/session",
14374
+ return (options?.client ?? this.client).get({
14375
+ url: "/find/file",
13883
14376
  ...options,
13884
- ...params,
13885
- headers: {
13886
- "Content-Type": "application/json",
13887
- ...options?.headers,
13888
- ...params.headers
13889
- }
14377
+ ...params
13890
14378
  });
13891
14379
  }
13892
- status(parameters, options) {
14380
+ symbols(parameters, options) {
13893
14381
  const params = buildClientParams([parameters], [
13894
14382
  {
13895
14383
  args: [
13896
14384
  { in: "query", key: "directory" },
13897
- { in: "query", key: "workspace" }
14385
+ { in: "query", key: "workspace" },
14386
+ { in: "query", key: "query" }
13898
14387
  ]
13899
14388
  }
13900
14389
  ]);
13901
14390
  return (options?.client ?? this.client).get({
13902
- url: "/session/status",
14391
+ url: "/find/symbol",
13903
14392
  ...options,
13904
14393
  ...params
13905
14394
  });
13906
14395
  }
13907
- delete(parameters, options) {
14396
+ }
14397
+
14398
+ class File2 extends HeyApiClient {
14399
+ list(parameters, options) {
13908
14400
  const params = buildClientParams([parameters], [
13909
14401
  {
13910
14402
  args: [
13911
- { in: "path", key: "sessionID" },
13912
14403
  { in: "query", key: "directory" },
13913
- { in: "query", key: "workspace" }
13914
- ]
13915
- }
13916
- ]);
13917
- return (options?.client ?? this.client).delete({
13918
- url: "/session/{sessionID}",
13919
- ...options,
13920
- ...params
13921
- });
13922
- }
13923
- get(parameters, options) {
13924
- const params = buildClientParams([parameters], [
13925
- {
13926
- args: [
13927
- { in: "path", key: "sessionID" },
13928
- { in: "query", key: "directory" },
13929
- { in: "query", key: "workspace" }
14404
+ { in: "query", key: "workspace" },
14405
+ { in: "query", key: "path" }
13930
14406
  ]
13931
14407
  }
13932
14408
  ]);
13933
14409
  return (options?.client ?? this.client).get({
13934
- url: "/session/{sessionID}",
14410
+ url: "/file",
13935
14411
  ...options,
13936
14412
  ...params
13937
14413
  });
13938
14414
  }
13939
- update(parameters, options) {
14415
+ read(parameters, options) {
13940
14416
  const params = buildClientParams([parameters], [
13941
14417
  {
13942
14418
  args: [
13943
- { in: "path", key: "sessionID" },
13944
14419
  { in: "query", key: "directory" },
13945
14420
  { in: "query", key: "workspace" },
13946
- { in: "body", key: "title" },
13947
- { in: "body", key: "time" }
13948
- ]
13949
- }
13950
- ]);
13951
- return (options?.client ?? this.client).patch({
13952
- url: "/session/{sessionID}",
13953
- ...options,
13954
- ...params,
13955
- headers: {
13956
- "Content-Type": "application/json",
13957
- ...options?.headers,
13958
- ...params.headers
13959
- }
13960
- });
13961
- }
13962
- children(parameters, options) {
13963
- const params = buildClientParams([parameters], [
13964
- {
13965
- args: [
13966
- { in: "path", key: "sessionID" },
13967
- { in: "query", key: "directory" },
13968
- { in: "query", key: "workspace" }
14421
+ { in: "query", key: "path" }
13969
14422
  ]
13970
14423
  }
13971
14424
  ]);
13972
14425
  return (options?.client ?? this.client).get({
13973
- url: "/session/{sessionID}/children",
14426
+ url: "/file/content",
13974
14427
  ...options,
13975
14428
  ...params
13976
14429
  });
13977
14430
  }
13978
- todo(parameters, options) {
14431
+ status(parameters, options) {
13979
14432
  const params = buildClientParams([parameters], [
13980
14433
  {
13981
14434
  args: [
13982
- { in: "path", key: "sessionID" },
13983
14435
  { in: "query", key: "directory" },
13984
14436
  { in: "query", key: "workspace" }
13985
14437
  ]
13986
14438
  }
13987
14439
  ]);
13988
14440
  return (options?.client ?? this.client).get({
13989
- url: "/session/{sessionID}/todo",
14441
+ url: "/file/status",
13990
14442
  ...options,
13991
14443
  ...params
13992
14444
  });
13993
14445
  }
13994
- init(parameters, options) {
14446
+ }
14447
+
14448
+ class Instance extends HeyApiClient {
14449
+ dispose(parameters, options) {
13995
14450
  const params = buildClientParams([parameters], [
13996
14451
  {
13997
14452
  args: [
13998
- { in: "path", key: "sessionID" },
13999
14453
  { in: "query", key: "directory" },
14000
- { in: "query", key: "workspace" },
14001
- { in: "body", key: "modelID" },
14002
- { in: "body", key: "providerID" },
14003
- { in: "body", key: "messageID" }
14454
+ { in: "query", key: "workspace" }
14004
14455
  ]
14005
14456
  }
14006
14457
  ]);
14007
14458
  return (options?.client ?? this.client).post({
14008
- url: "/session/{sessionID}/init",
14459
+ url: "/instance/dispose",
14009
14460
  ...options,
14010
- ...params,
14011
- headers: {
14012
- "Content-Type": "application/json",
14013
- ...options?.headers,
14014
- ...params.headers
14015
- }
14461
+ ...params
14016
14462
  });
14017
14463
  }
14018
- fork(parameters, options) {
14464
+ }
14465
+
14466
+ class Path extends HeyApiClient {
14467
+ get(parameters, options) {
14019
14468
  const params = buildClientParams([parameters], [
14020
14469
  {
14021
14470
  args: [
14022
- { in: "path", key: "sessionID" },
14023
14471
  { in: "query", key: "directory" },
14024
- { in: "query", key: "workspace" },
14025
- { in: "body", key: "messageID" }
14472
+ { in: "query", key: "workspace" }
14026
14473
  ]
14027
14474
  }
14028
14475
  ]);
14029
- return (options?.client ?? this.client).post({
14030
- url: "/session/{sessionID}/fork",
14476
+ return (options?.client ?? this.client).get({
14477
+ url: "/path",
14031
14478
  ...options,
14032
- ...params,
14033
- headers: {
14034
- "Content-Type": "application/json",
14035
- ...options?.headers,
14036
- ...params.headers
14037
- }
14479
+ ...params
14038
14480
  });
14039
14481
  }
14040
- abort(parameters, options) {
14482
+ }
14483
+
14484
+ class Diff extends HeyApiClient {
14485
+ raw(parameters, options) {
14041
14486
  const params = buildClientParams([parameters], [
14042
14487
  {
14043
14488
  args: [
14044
- { in: "path", key: "sessionID" },
14045
14489
  { in: "query", key: "directory" },
14046
14490
  { in: "query", key: "workspace" }
14047
14491
  ]
14048
14492
  }
14049
14493
  ]);
14050
- return (options?.client ?? this.client).post({
14051
- url: "/session/{sessionID}/abort",
14494
+ return (options?.client ?? this.client).get({
14495
+ url: "/vcs/diff/raw",
14052
14496
  ...options,
14053
14497
  ...params
14054
14498
  });
14055
14499
  }
14056
- unshare(parameters, options) {
14500
+ }
14501
+
14502
+ class Vcs extends HeyApiClient {
14503
+ get(parameters, options) {
14057
14504
  const params = buildClientParams([parameters], [
14058
14505
  {
14059
14506
  args: [
14060
- { in: "path", key: "sessionID" },
14061
14507
  { in: "query", key: "directory" },
14062
14508
  { in: "query", key: "workspace" }
14063
14509
  ]
14064
14510
  }
14065
14511
  ]);
14066
- return (options?.client ?? this.client).delete({
14067
- url: "/session/{sessionID}/share",
14512
+ return (options?.client ?? this.client).get({
14513
+ url: "/vcs",
14068
14514
  ...options,
14069
14515
  ...params
14070
14516
  });
14071
14517
  }
14072
- share(parameters, options) {
14518
+ status(parameters, options) {
14073
14519
  const params = buildClientParams([parameters], [
14074
14520
  {
14075
14521
  args: [
14076
- { in: "path", key: "sessionID" },
14077
14522
  { in: "query", key: "directory" },
14078
14523
  { in: "query", key: "workspace" }
14079
14524
  ]
14080
14525
  }
14081
14526
  ]);
14082
- return (options?.client ?? this.client).post({
14083
- url: "/session/{sessionID}/share",
14527
+ return (options?.client ?? this.client).get({
14528
+ url: "/vcs/status",
14084
14529
  ...options,
14085
14530
  ...params
14086
14531
  });
@@ -14089,34 +14534,30 @@ class Session2 extends HeyApiClient {
14089
14534
  const params = buildClientParams([parameters], [
14090
14535
  {
14091
14536
  args: [
14092
- { in: "path", key: "sessionID" },
14093
14537
  { in: "query", key: "directory" },
14094
14538
  { in: "query", key: "workspace" },
14095
- { in: "query", key: "messageID" }
14539
+ { in: "query", key: "mode" }
14096
14540
  ]
14097
14541
  }
14098
14542
  ]);
14099
14543
  return (options?.client ?? this.client).get({
14100
- url: "/session/{sessionID}/diff",
14544
+ url: "/vcs/diff",
14101
14545
  ...options,
14102
14546
  ...params
14103
14547
  });
14104
14548
  }
14105
- summarize(parameters, options) {
14549
+ apply(parameters, options) {
14106
14550
  const params = buildClientParams([parameters], [
14107
14551
  {
14108
14552
  args: [
14109
- { in: "path", key: "sessionID" },
14110
14553
  { in: "query", key: "directory" },
14111
14554
  { in: "query", key: "workspace" },
14112
- { in: "body", key: "providerID" },
14113
- { in: "body", key: "modelID" },
14114
- { in: "body", key: "auto" }
14555
+ { in: "body", key: "patch" }
14115
14556
  ]
14116
14557
  }
14117
14558
  ]);
14118
14559
  return (options?.client ?? this.client).post({
14119
- url: "/session/{sessionID}/summarize",
14560
+ url: "/vcs/apply",
14120
14561
  ...options,
14121
14562
  ...params,
14122
14563
  headers: {
@@ -14126,137 +14567,112 @@ class Session2 extends HeyApiClient {
14126
14567
  }
14127
14568
  });
14128
14569
  }
14129
- messages(parameters, options) {
14570
+ _diff;
14571
+ get diff2() {
14572
+ return this._diff ??= new Diff({ client: this.client });
14573
+ }
14574
+ }
14575
+
14576
+ class Command extends HeyApiClient {
14577
+ list(parameters, options) {
14130
14578
  const params = buildClientParams([parameters], [
14131
14579
  {
14132
14580
  args: [
14133
- { in: "path", key: "sessionID" },
14134
14581
  { in: "query", key: "directory" },
14135
- { in: "query", key: "workspace" },
14136
- { in: "query", key: "limit" },
14137
- { in: "query", key: "before" }
14582
+ { in: "query", key: "workspace" }
14138
14583
  ]
14139
14584
  }
14140
14585
  ]);
14141
14586
  return (options?.client ?? this.client).get({
14142
- url: "/session/{sessionID}/message",
14587
+ url: "/command",
14143
14588
  ...options,
14144
14589
  ...params
14145
14590
  });
14146
14591
  }
14147
- prompt(parameters, options) {
14592
+ }
14593
+
14594
+ class Lsp extends HeyApiClient {
14595
+ status(parameters, options) {
14148
14596
  const params = buildClientParams([parameters], [
14149
14597
  {
14150
14598
  args: [
14151
- { in: "path", key: "sessionID" },
14152
14599
  { in: "query", key: "directory" },
14153
- { in: "query", key: "workspace" },
14154
- { in: "body", key: "messageID" },
14155
- { in: "body", key: "model" },
14156
- { in: "body", key: "agent" },
14157
- { in: "body", key: "noReply" },
14158
- { in: "body", key: "tools" },
14159
- { in: "body", key: "format" },
14160
- { in: "body", key: "system" },
14161
- { in: "body", key: "variant" },
14162
- { in: "body", key: "parts" }
14600
+ { in: "query", key: "workspace" }
14163
14601
  ]
14164
14602
  }
14165
14603
  ]);
14166
- return (options?.client ?? this.client).post({
14167
- url: "/session/{sessionID}/message",
14604
+ return (options?.client ?? this.client).get({
14605
+ url: "/lsp",
14168
14606
  ...options,
14169
- ...params,
14170
- headers: {
14171
- "Content-Type": "application/json",
14172
- ...options?.headers,
14173
- ...params.headers
14174
- }
14607
+ ...params
14175
14608
  });
14176
14609
  }
14177
- deleteMessage(parameters, options) {
14610
+ }
14611
+
14612
+ class Formatter extends HeyApiClient {
14613
+ status(parameters, options) {
14178
14614
  const params = buildClientParams([parameters], [
14179
14615
  {
14180
14616
  args: [
14181
- { in: "path", key: "sessionID" },
14182
- { in: "path", key: "messageID" },
14183
14617
  { in: "query", key: "directory" },
14184
14618
  { in: "query", key: "workspace" }
14185
14619
  ]
14186
14620
  }
14187
14621
  ]);
14188
- return (options?.client ?? this.client).delete({
14189
- url: "/session/{sessionID}/message/{messageID}",
14622
+ return (options?.client ?? this.client).get({
14623
+ url: "/formatter",
14190
14624
  ...options,
14191
14625
  ...params
14192
14626
  });
14193
14627
  }
14194
- message(parameters, options) {
14628
+ }
14629
+
14630
+ class Auth2 extends HeyApiClient {
14631
+ remove(parameters, options) {
14195
14632
  const params = buildClientParams([parameters], [
14196
14633
  {
14197
14634
  args: [
14198
- { in: "path", key: "sessionID" },
14199
- { in: "path", key: "messageID" },
14635
+ { in: "path", key: "name" },
14200
14636
  { in: "query", key: "directory" },
14201
14637
  { in: "query", key: "workspace" }
14202
14638
  ]
14203
14639
  }
14204
14640
  ]);
14205
- return (options?.client ?? this.client).get({
14206
- url: "/session/{sessionID}/message/{messageID}",
14641
+ return (options?.client ?? this.client).delete({
14642
+ url: "/mcp/{name}/auth",
14207
14643
  ...options,
14208
14644
  ...params
14209
14645
  });
14210
14646
  }
14211
- promptAsync(parameters, options) {
14647
+ start(parameters, options) {
14212
14648
  const params = buildClientParams([parameters], [
14213
14649
  {
14214
14650
  args: [
14215
- { in: "path", key: "sessionID" },
14651
+ { in: "path", key: "name" },
14216
14652
  { in: "query", key: "directory" },
14217
- { in: "query", key: "workspace" },
14218
- { in: "body", key: "messageID" },
14219
- { in: "body", key: "model" },
14220
- { in: "body", key: "agent" },
14221
- { in: "body", key: "noReply" },
14222
- { in: "body", key: "tools" },
14223
- { in: "body", key: "format" },
14224
- { in: "body", key: "system" },
14225
- { in: "body", key: "variant" },
14226
- { in: "body", key: "parts" }
14653
+ { in: "query", key: "workspace" }
14227
14654
  ]
14228
14655
  }
14229
14656
  ]);
14230
14657
  return (options?.client ?? this.client).post({
14231
- url: "/session/{sessionID}/prompt_async",
14658
+ url: "/mcp/{name}/auth",
14232
14659
  ...options,
14233
- ...params,
14234
- headers: {
14235
- "Content-Type": "application/json",
14236
- ...options?.headers,
14237
- ...params.headers
14238
- }
14660
+ ...params
14239
14661
  });
14240
14662
  }
14241
- command(parameters, options) {
14663
+ callback(parameters, options) {
14242
14664
  const params = buildClientParams([parameters], [
14243
14665
  {
14244
14666
  args: [
14245
- { in: "path", key: "sessionID" },
14667
+ { in: "path", key: "name" },
14246
14668
  { in: "query", key: "directory" },
14247
14669
  { in: "query", key: "workspace" },
14248
- { in: "body", key: "messageID" },
14249
- { in: "body", key: "agent" },
14250
- { in: "body", key: "model" },
14251
- { in: "body", key: "arguments" },
14252
- { in: "body", key: "command" },
14253
- { in: "body", key: "variant" },
14254
- { in: "body", key: "parts" }
14670
+ { in: "body", key: "code" }
14255
14671
  ]
14256
14672
  }
14257
14673
  ]);
14258
14674
  return (options?.client ?? this.client).post({
14259
- url: "/session/{sessionID}/command",
14675
+ url: "/mcp/{name}/auth/callback",
14260
14676
  ...options,
14261
14677
  ...params,
14262
14678
  headers: {
@@ -14266,44 +14682,53 @@ class Session2 extends HeyApiClient {
14266
14682
  }
14267
14683
  });
14268
14684
  }
14269
- shell(parameters, options) {
14685
+ authenticate(parameters, options) {
14270
14686
  const params = buildClientParams([parameters], [
14271
14687
  {
14272
14688
  args: [
14273
- { in: "path", key: "sessionID" },
14689
+ { in: "path", key: "name" },
14274
14690
  { in: "query", key: "directory" },
14275
- { in: "query", key: "workspace" },
14276
- { in: "body", key: "agent" },
14277
- { in: "body", key: "model" },
14278
- { in: "body", key: "command" }
14691
+ { in: "query", key: "workspace" }
14279
14692
  ]
14280
14693
  }
14281
14694
  ]);
14282
14695
  return (options?.client ?? this.client).post({
14283
- url: "/session/{sessionID}/shell",
14696
+ url: "/mcp/{name}/auth/authenticate",
14284
14697
  ...options,
14285
- ...params,
14286
- headers: {
14287
- "Content-Type": "application/json",
14288
- ...options?.headers,
14289
- ...params.headers
14290
- }
14698
+ ...params
14291
14699
  });
14292
14700
  }
14293
- revert(parameters, options) {
14701
+ }
14702
+
14703
+ class Mcp extends HeyApiClient {
14704
+ status(parameters, options) {
14294
14705
  const params = buildClientParams([parameters], [
14295
14706
  {
14296
14707
  args: [
14297
- { in: "path", key: "sessionID" },
14298
14708
  { in: "query", key: "directory" },
14299
- { in: "query", key: "workspace" },
14300
- { in: "body", key: "messageID" },
14301
- { in: "body", key: "partID" }
14709
+ { in: "query", key: "workspace" }
14710
+ ]
14711
+ }
14712
+ ]);
14713
+ return (options?.client ?? this.client).get({
14714
+ url: "/mcp",
14715
+ ...options,
14716
+ ...params
14717
+ });
14718
+ }
14719
+ add(parameters, options) {
14720
+ const params = buildClientParams([parameters], [
14721
+ {
14722
+ args: [
14723
+ { in: "query", key: "directory" },
14724
+ { in: "query", key: "workspace" },
14725
+ { in: "body", key: "name" },
14726
+ { in: "body", key: "config" }
14302
14727
  ]
14303
14728
  }
14304
14729
  ]);
14305
14730
  return (options?.client ?? this.client).post({
14306
- url: "/session/{sessionID}/revert",
14731
+ url: "/mcp",
14307
14732
  ...options,
14308
14733
  ...params,
14309
14734
  headers: {
@@ -14313,107 +14738,105 @@ class Session2 extends HeyApiClient {
14313
14738
  }
14314
14739
  });
14315
14740
  }
14316
- unrevert(parameters, options) {
14741
+ connect(parameters, options) {
14317
14742
  const params = buildClientParams([parameters], [
14318
14743
  {
14319
14744
  args: [
14320
- { in: "path", key: "sessionID" },
14745
+ { in: "path", key: "name" },
14321
14746
  { in: "query", key: "directory" },
14322
14747
  { in: "query", key: "workspace" }
14323
14748
  ]
14324
14749
  }
14325
14750
  ]);
14326
14751
  return (options?.client ?? this.client).post({
14327
- url: "/session/{sessionID}/unrevert",
14752
+ url: "/mcp/{name}/connect",
14753
+ ...options,
14754
+ ...params
14755
+ });
14756
+ }
14757
+ disconnect(parameters, options) {
14758
+ const params = buildClientParams([parameters], [
14759
+ {
14760
+ args: [
14761
+ { in: "path", key: "name" },
14762
+ { in: "query", key: "directory" },
14763
+ { in: "query", key: "workspace" }
14764
+ ]
14765
+ }
14766
+ ]);
14767
+ return (options?.client ?? this.client).post({
14768
+ url: "/mcp/{name}/disconnect",
14328
14769
  ...options,
14329
14770
  ...params
14330
14771
  });
14331
14772
  }
14773
+ _auth;
14774
+ get auth() {
14775
+ return this._auth ??= new Auth2({ client: this.client });
14776
+ }
14332
14777
  }
14333
14778
 
14334
- class Part extends HeyApiClient {
14335
- delete(parameters, options) {
14779
+ class Project extends HeyApiClient {
14780
+ list(parameters, options) {
14336
14781
  const params = buildClientParams([parameters], [
14337
14782
  {
14338
14783
  args: [
14339
- { in: "path", key: "sessionID" },
14340
- { in: "path", key: "messageID" },
14341
- { in: "path", key: "partID" },
14342
14784
  { in: "query", key: "directory" },
14343
14785
  { in: "query", key: "workspace" }
14344
14786
  ]
14345
14787
  }
14346
14788
  ]);
14347
- return (options?.client ?? this.client).delete({
14348
- url: "/session/{sessionID}/message/{messageID}/part/{partID}",
14789
+ return (options?.client ?? this.client).get({
14790
+ url: "/project",
14349
14791
  ...options,
14350
14792
  ...params
14351
14793
  });
14352
14794
  }
14353
- update(parameters, options) {
14795
+ current(parameters, options) {
14354
14796
  const params = buildClientParams([parameters], [
14355
14797
  {
14356
14798
  args: [
14357
- { in: "path", key: "sessionID" },
14358
- { in: "path", key: "messageID" },
14359
- { in: "path", key: "partID" },
14360
14799
  { in: "query", key: "directory" },
14361
- { in: "query", key: "workspace" },
14362
- { key: "part", map: "body" }
14800
+ { in: "query", key: "workspace" }
14363
14801
  ]
14364
14802
  }
14365
14803
  ]);
14366
- return (options?.client ?? this.client).patch({
14367
- url: "/session/{sessionID}/message/{messageID}/part/{partID}",
14804
+ return (options?.client ?? this.client).get({
14805
+ url: "/project/current",
14368
14806
  ...options,
14369
- ...params,
14370
- headers: {
14371
- "Content-Type": "application/json",
14372
- ...options?.headers,
14373
- ...params.headers
14374
- }
14807
+ ...params
14375
14808
  });
14376
14809
  }
14377
- }
14378
-
14379
- class Permission extends HeyApiClient {
14380
- respond(parameters, options) {
14810
+ initGit(parameters, options) {
14381
14811
  const params = buildClientParams([parameters], [
14382
14812
  {
14383
14813
  args: [
14384
- { in: "path", key: "sessionID" },
14385
- { in: "path", key: "permissionID" },
14386
14814
  { in: "query", key: "directory" },
14387
- { in: "query", key: "workspace" },
14388
- { in: "body", key: "response" }
14815
+ { in: "query", key: "workspace" }
14389
14816
  ]
14390
14817
  }
14391
14818
  ]);
14392
14819
  return (options?.client ?? this.client).post({
14393
- url: "/session/{sessionID}/permissions/{permissionID}",
14820
+ url: "/project/git/init",
14394
14821
  ...options,
14395
- ...params,
14396
- headers: {
14397
- "Content-Type": "application/json",
14398
- ...options?.headers,
14399
- ...params.headers
14400
- }
14822
+ ...params
14401
14823
  });
14402
14824
  }
14403
- reply(parameters, options) {
14825
+ update(parameters, options) {
14404
14826
  const params = buildClientParams([parameters], [
14405
14827
  {
14406
14828
  args: [
14407
- { in: "path", key: "requestID" },
14829
+ { in: "path", key: "projectID" },
14408
14830
  { in: "query", key: "directory" },
14409
14831
  { in: "query", key: "workspace" },
14410
- { in: "body", key: "reply" },
14411
- { in: "body", key: "message" }
14832
+ { in: "body", key: "name" },
14833
+ { in: "body", key: "icon" },
14834
+ { in: "body", key: "commands" }
14412
14835
  ]
14413
14836
  }
14414
14837
  ]);
14415
- return (options?.client ?? this.client).post({
14416
- url: "/permission/{requestID}/reply",
14838
+ return (options?.client ?? this.client).patch({
14839
+ url: "/project/{projectID}",
14417
14840
  ...options,
14418
14841
  ...params,
14419
14842
  headers: {
@@ -14423,7 +14846,10 @@ class Permission extends HeyApiClient {
14423
14846
  }
14424
14847
  });
14425
14848
  }
14426
- list(parameters, options) {
14849
+ }
14850
+
14851
+ class Pty extends HeyApiClient {
14852
+ shells(parameters, options) {
14427
14853
  const params = buildClientParams([parameters], [
14428
14854
  {
14429
14855
  args: [
@@ -14433,14 +14859,11 @@ class Permission extends HeyApiClient {
14433
14859
  }
14434
14860
  ]);
14435
14861
  return (options?.client ?? this.client).get({
14436
- url: "/permission",
14862
+ url: "/pty/shells",
14437
14863
  ...options,
14438
14864
  ...params
14439
14865
  });
14440
14866
  }
14441
- }
14442
-
14443
- class Question extends HeyApiClient {
14444
14867
  list(parameters, options) {
14445
14868
  const params = buildClientParams([parameters], [
14446
14869
  {
@@ -14451,24 +14874,27 @@ class Question extends HeyApiClient {
14451
14874
  }
14452
14875
  ]);
14453
14876
  return (options?.client ?? this.client).get({
14454
- url: "/question",
14877
+ url: "/pty",
14455
14878
  ...options,
14456
14879
  ...params
14457
14880
  });
14458
14881
  }
14459
- reply(parameters, options) {
14882
+ create(parameters, options) {
14460
14883
  const params = buildClientParams([parameters], [
14461
14884
  {
14462
14885
  args: [
14463
- { in: "path", key: "requestID" },
14464
14886
  { in: "query", key: "directory" },
14465
14887
  { in: "query", key: "workspace" },
14466
- { in: "body", key: "answers" }
14888
+ { in: "body", key: "command" },
14889
+ { in: "body", key: "args" },
14890
+ { in: "body", key: "cwd" },
14891
+ { in: "body", key: "title" },
14892
+ { in: "body", key: "env" }
14467
14893
  ]
14468
14894
  }
14469
14895
  ]);
14470
14896
  return (options?.client ?? this.client).post({
14471
- url: "/question/{requestID}/reply",
14897
+ url: "/pty",
14472
14898
  ...options,
14473
14899
  ...params,
14474
14900
  headers: {
@@ -14478,62 +14904,52 @@ class Question extends HeyApiClient {
14478
14904
  }
14479
14905
  });
14480
14906
  }
14481
- reject(parameters, options) {
14907
+ remove(parameters, options) {
14482
14908
  const params = buildClientParams([parameters], [
14483
14909
  {
14484
14910
  args: [
14485
- { in: "path", key: "requestID" },
14911
+ { in: "path", key: "ptyID" },
14486
14912
  { in: "query", key: "directory" },
14487
14913
  { in: "query", key: "workspace" }
14488
14914
  ]
14489
14915
  }
14490
14916
  ]);
14491
- return (options?.client ?? this.client).post({
14492
- url: "/question/{requestID}/reject",
14917
+ return (options?.client ?? this.client).delete({
14918
+ url: "/pty/{ptyID}",
14493
14919
  ...options,
14494
14920
  ...params
14495
14921
  });
14496
14922
  }
14497
- }
14498
-
14499
- class Oauth extends HeyApiClient {
14500
- authorize(parameters, options) {
14923
+ get(parameters, options) {
14501
14924
  const params = buildClientParams([parameters], [
14502
14925
  {
14503
14926
  args: [
14504
- { in: "path", key: "providerID" },
14927
+ { in: "path", key: "ptyID" },
14505
14928
  { in: "query", key: "directory" },
14506
- { in: "query", key: "workspace" },
14507
- { in: "body", key: "method" },
14508
- { in: "body", key: "inputs" }
14929
+ { in: "query", key: "workspace" }
14509
14930
  ]
14510
14931
  }
14511
14932
  ]);
14512
- return (options?.client ?? this.client).post({
14513
- url: "/provider/{providerID}/oauth/authorize",
14933
+ return (options?.client ?? this.client).get({
14934
+ url: "/pty/{ptyID}",
14514
14935
  ...options,
14515
- ...params,
14516
- headers: {
14517
- "Content-Type": "application/json",
14518
- ...options?.headers,
14519
- ...params.headers
14520
- }
14936
+ ...params
14521
14937
  });
14522
14938
  }
14523
- callback(parameters, options) {
14939
+ update(parameters, options) {
14524
14940
  const params = buildClientParams([parameters], [
14525
14941
  {
14526
14942
  args: [
14527
- { in: "path", key: "providerID" },
14943
+ { in: "path", key: "ptyID" },
14528
14944
  { in: "query", key: "directory" },
14529
14945
  { in: "query", key: "workspace" },
14530
- { in: "body", key: "method" },
14531
- { in: "body", key: "code" }
14946
+ { in: "body", key: "title" },
14947
+ { in: "body", key: "size" }
14532
14948
  ]
14533
14949
  }
14534
14950
  ]);
14535
- return (options?.client ?? this.client).post({
14536
- url: "/provider/{providerID}/oauth/callback",
14951
+ return (options?.client ?? this.client).put({
14952
+ url: "/pty/{ptyID}",
14537
14953
  ...options,
14538
14954
  ...params,
14539
14955
  headers: {
@@ -14543,213 +14959,198 @@ class Oauth extends HeyApiClient {
14543
14959
  }
14544
14960
  });
14545
14961
  }
14546
- }
14547
-
14548
- class Provider extends HeyApiClient {
14549
- list(parameters, options) {
14962
+ connectToken(parameters, options) {
14550
14963
  const params = buildClientParams([parameters], [
14551
14964
  {
14552
14965
  args: [
14966
+ { in: "path", key: "ptyID" },
14553
14967
  { in: "query", key: "directory" },
14554
14968
  { in: "query", key: "workspace" }
14555
14969
  ]
14556
14970
  }
14557
14971
  ]);
14558
- return (options?.client ?? this.client).get({
14559
- url: "/provider",
14972
+ return (options?.client ?? this.client).post({
14973
+ url: "/pty/{ptyID}/connect-token",
14560
14974
  ...options,
14561
14975
  ...params
14562
14976
  });
14563
14977
  }
14564
- auth(parameters, options) {
14978
+ connect(parameters, options) {
14565
14979
  const params = buildClientParams([parameters], [
14566
14980
  {
14567
14981
  args: [
14982
+ { in: "path", key: "ptyID" },
14568
14983
  { in: "query", key: "directory" },
14569
14984
  { in: "query", key: "workspace" }
14570
14985
  ]
14571
14986
  }
14572
14987
  ]);
14573
14988
  return (options?.client ?? this.client).get({
14574
- url: "/provider/auth",
14989
+ url: "/pty/{ptyID}/connect",
14575
14990
  ...options,
14576
14991
  ...params
14577
14992
  });
14578
14993
  }
14579
- _oauth;
14580
- get oauth() {
14581
- return this._oauth ??= new Oauth({ client: this.client });
14582
- }
14583
14994
  }
14584
14995
 
14585
- class Find extends HeyApiClient {
14586
- text(parameters, options) {
14996
+ class Question extends HeyApiClient {
14997
+ list(parameters, options) {
14587
14998
  const params = buildClientParams([parameters], [
14588
14999
  {
14589
15000
  args: [
14590
15001
  { in: "query", key: "directory" },
14591
- { in: "query", key: "workspace" },
14592
- { in: "query", key: "pattern" }
15002
+ { in: "query", key: "workspace" }
14593
15003
  ]
14594
15004
  }
14595
15005
  ]);
14596
15006
  return (options?.client ?? this.client).get({
14597
- url: "/find",
15007
+ url: "/question",
14598
15008
  ...options,
14599
15009
  ...params
14600
15010
  });
14601
15011
  }
14602
- files(parameters, options) {
15012
+ reply(parameters, options) {
14603
15013
  const params = buildClientParams([parameters], [
14604
15014
  {
14605
15015
  args: [
15016
+ { in: "path", key: "requestID" },
14606
15017
  { in: "query", key: "directory" },
14607
15018
  { in: "query", key: "workspace" },
14608
- { in: "query", key: "query" },
14609
- { in: "query", key: "dirs" },
14610
- { in: "query", key: "type" },
14611
- { in: "query", key: "limit" }
15019
+ { in: "body", key: "answers" }
14612
15020
  ]
14613
15021
  }
14614
15022
  ]);
14615
- return (options?.client ?? this.client).get({
14616
- url: "/find/file",
15023
+ return (options?.client ?? this.client).post({
15024
+ url: "/question/{requestID}/reply",
14617
15025
  ...options,
14618
- ...params
15026
+ ...params,
15027
+ headers: {
15028
+ "Content-Type": "application/json",
15029
+ ...options?.headers,
15030
+ ...params.headers
15031
+ }
14619
15032
  });
14620
15033
  }
14621
- symbols(parameters, options) {
15034
+ reject(parameters, options) {
14622
15035
  const params = buildClientParams([parameters], [
14623
15036
  {
14624
15037
  args: [
15038
+ { in: "path", key: "requestID" },
14625
15039
  { in: "query", key: "directory" },
14626
- { in: "query", key: "workspace" },
14627
- { in: "query", key: "query" }
15040
+ { in: "query", key: "workspace" }
14628
15041
  ]
14629
15042
  }
14630
15043
  ]);
14631
- return (options?.client ?? this.client).get({
14632
- url: "/find/symbol",
15044
+ return (options?.client ?? this.client).post({
15045
+ url: "/question/{requestID}/reject",
14633
15046
  ...options,
14634
15047
  ...params
14635
15048
  });
14636
15049
  }
14637
15050
  }
14638
15051
 
14639
- class File2 extends HeyApiClient {
15052
+ class Permission extends HeyApiClient {
14640
15053
  list(parameters, options) {
14641
15054
  const params = buildClientParams([parameters], [
14642
15055
  {
14643
15056
  args: [
14644
15057
  { in: "query", key: "directory" },
14645
- { in: "query", key: "workspace" },
14646
- { in: "query", key: "path" }
15058
+ { in: "query", key: "workspace" }
14647
15059
  ]
14648
15060
  }
14649
15061
  ]);
14650
15062
  return (options?.client ?? this.client).get({
14651
- url: "/file",
15063
+ url: "/permission",
14652
15064
  ...options,
14653
15065
  ...params
14654
15066
  });
14655
15067
  }
14656
- read(parameters, options) {
15068
+ reply(parameters, options) {
14657
15069
  const params = buildClientParams([parameters], [
14658
15070
  {
14659
15071
  args: [
15072
+ { in: "path", key: "requestID" },
14660
15073
  { in: "query", key: "directory" },
14661
15074
  { in: "query", key: "workspace" },
14662
- { in: "query", key: "path" }
15075
+ { in: "body", key: "reply" },
15076
+ { in: "body", key: "message" }
14663
15077
  ]
14664
15078
  }
14665
15079
  ]);
14666
- return (options?.client ?? this.client).get({
14667
- url: "/file/content",
15080
+ return (options?.client ?? this.client).post({
15081
+ url: "/permission/{requestID}/reply",
14668
15082
  ...options,
14669
- ...params
15083
+ ...params,
15084
+ headers: {
15085
+ "Content-Type": "application/json",
15086
+ ...options?.headers,
15087
+ ...params.headers
15088
+ }
14670
15089
  });
14671
15090
  }
14672
- status(parameters, options) {
15091
+ respond(parameters, options) {
14673
15092
  const params = buildClientParams([parameters], [
14674
15093
  {
14675
15094
  args: [
15095
+ { in: "path", key: "sessionID" },
15096
+ { in: "path", key: "permissionID" },
14676
15097
  { in: "query", key: "directory" },
14677
- { in: "query", key: "workspace" }
15098
+ { in: "query", key: "workspace" },
15099
+ { in: "body", key: "response" }
14678
15100
  ]
14679
15101
  }
14680
15102
  ]);
14681
- return (options?.client ?? this.client).get({
14682
- url: "/file/status",
15103
+ return (options?.client ?? this.client).post({
15104
+ url: "/session/{sessionID}/permissions/{permissionID}",
14683
15105
  ...options,
14684
- ...params
14685
- });
14686
- }
14687
- }
14688
-
14689
- class Event extends HeyApiClient {
14690
- subscribe(parameters, options) {
14691
- const params = buildClientParams([parameters], [
14692
- {
14693
- args: [
14694
- { in: "query", key: "directory" },
14695
- { in: "query", key: "workspace" }
14696
- ]
15106
+ ...params,
15107
+ headers: {
15108
+ "Content-Type": "application/json",
15109
+ ...options?.headers,
15110
+ ...params.headers
14697
15111
  }
14698
- ]);
14699
- return (options?.client ?? this.client).sse.get({
14700
- url: "/event",
14701
- ...options,
14702
- ...params
14703
15112
  });
14704
15113
  }
14705
15114
  }
14706
15115
 
14707
- class Auth2 extends HeyApiClient {
14708
- remove(parameters, options) {
14709
- const params = buildClientParams([parameters], [
14710
- {
14711
- args: [
14712
- { in: "path", key: "name" },
14713
- { in: "query", key: "directory" },
14714
- { in: "query", key: "workspace" }
14715
- ]
14716
- }
14717
- ]);
14718
- return (options?.client ?? this.client).delete({
14719
- url: "/mcp/{name}/auth",
14720
- ...options,
14721
- ...params
14722
- });
14723
- }
14724
- start(parameters, options) {
15116
+ class Oauth extends HeyApiClient {
15117
+ authorize(parameters, options) {
14725
15118
  const params = buildClientParams([parameters], [
14726
15119
  {
14727
15120
  args: [
14728
- { in: "path", key: "name" },
15121
+ { in: "path", key: "providerID" },
14729
15122
  { in: "query", key: "directory" },
14730
- { in: "query", key: "workspace" }
15123
+ { in: "query", key: "workspace" },
15124
+ { in: "body", key: "method" },
15125
+ { in: "body", key: "inputs" }
14731
15126
  ]
14732
15127
  }
14733
15128
  ]);
14734
15129
  return (options?.client ?? this.client).post({
14735
- url: "/mcp/{name}/auth",
15130
+ url: "/provider/{providerID}/oauth/authorize",
14736
15131
  ...options,
14737
- ...params
15132
+ ...params,
15133
+ headers: {
15134
+ "Content-Type": "application/json",
15135
+ ...options?.headers,
15136
+ ...params.headers
15137
+ }
14738
15138
  });
14739
15139
  }
14740
15140
  callback(parameters, options) {
14741
15141
  const params = buildClientParams([parameters], [
14742
15142
  {
14743
15143
  args: [
14744
- { in: "path", key: "name" },
15144
+ { in: "path", key: "providerID" },
14745
15145
  { in: "query", key: "directory" },
14746
15146
  { in: "query", key: "workspace" },
15147
+ { in: "body", key: "method" },
14747
15148
  { in: "body", key: "code" }
14748
15149
  ]
14749
15150
  }
14750
15151
  ]);
14751
15152
  return (options?.client ?? this.client).post({
14752
- url: "/mcp/{name}/auth/callback",
15153
+ url: "/provider/{providerID}/oauth/callback",
14753
15154
  ...options,
14754
15155
  ...params,
14755
15156
  headers: {
@@ -14759,53 +15160,84 @@ class Auth2 extends HeyApiClient {
14759
15160
  }
14760
15161
  });
14761
15162
  }
14762
- authenticate(parameters, options) {
15163
+ }
15164
+
15165
+ class Provider extends HeyApiClient {
15166
+ list(parameters, options) {
14763
15167
  const params = buildClientParams([parameters], [
14764
15168
  {
14765
15169
  args: [
14766
- { in: "path", key: "name" },
14767
15170
  { in: "query", key: "directory" },
14768
15171
  { in: "query", key: "workspace" }
14769
15172
  ]
14770
15173
  }
14771
15174
  ]);
14772
- return (options?.client ?? this.client).post({
14773
- url: "/mcp/{name}/auth/authenticate",
15175
+ return (options?.client ?? this.client).get({
15176
+ url: "/provider",
15177
+ ...options,
15178
+ ...params
15179
+ });
15180
+ }
15181
+ auth(parameters, options) {
15182
+ const params = buildClientParams([parameters], [
15183
+ {
15184
+ args: [
15185
+ { in: "query", key: "directory" },
15186
+ { in: "query", key: "workspace" }
15187
+ ]
15188
+ }
15189
+ ]);
15190
+ return (options?.client ?? this.client).get({
15191
+ url: "/provider/auth",
14774
15192
  ...options,
14775
15193
  ...params
14776
15194
  });
14777
15195
  }
15196
+ _oauth;
15197
+ get oauth() {
15198
+ return this._oauth ??= new Oauth({ client: this.client });
15199
+ }
14778
15200
  }
14779
15201
 
14780
- class Mcp extends HeyApiClient {
14781
- status(parameters, options) {
15202
+ class Session2 extends HeyApiClient {
15203
+ list(parameters, options) {
14782
15204
  const params = buildClientParams([parameters], [
14783
15205
  {
14784
15206
  args: [
14785
15207
  { in: "query", key: "directory" },
14786
- { in: "query", key: "workspace" }
15208
+ { in: "query", key: "workspace" },
15209
+ { in: "query", key: "scope" },
15210
+ { in: "query", key: "path" },
15211
+ { in: "query", key: "roots" },
15212
+ { in: "query", key: "start" },
15213
+ { in: "query", key: "search" },
15214
+ { in: "query", key: "limit" }
14787
15215
  ]
14788
15216
  }
14789
15217
  ]);
14790
15218
  return (options?.client ?? this.client).get({
14791
- url: "/mcp",
15219
+ url: "/session",
14792
15220
  ...options,
14793
15221
  ...params
14794
15222
  });
14795
15223
  }
14796
- add(parameters, options) {
15224
+ create(parameters, options) {
14797
15225
  const params = buildClientParams([parameters], [
14798
15226
  {
14799
15227
  args: [
14800
15228
  { in: "query", key: "directory" },
14801
15229
  { in: "query", key: "workspace" },
14802
- { in: "body", key: "name" },
14803
- { in: "body", key: "config" }
15230
+ { in: "body", key: "parentID" },
15231
+ { in: "body", key: "title" },
15232
+ { in: "body", key: "agent" },
15233
+ { in: "body", key: "model" },
15234
+ { in: "body", key: "permission" },
15235
+ { in: "body", key: "workspaceID" }
14804
15236
  ]
14805
15237
  }
14806
15238
  ]);
14807
15239
  return (options?.client ?? this.client).post({
14808
- url: "/mcp",
15240
+ url: "/session",
14809
15241
  ...options,
14810
15242
  ...params,
14811
15243
  headers: {
@@ -14815,72 +15247,68 @@ class Mcp extends HeyApiClient {
14815
15247
  }
14816
15248
  });
14817
15249
  }
14818
- connect(parameters, options) {
15250
+ status(parameters, options) {
14819
15251
  const params = buildClientParams([parameters], [
14820
15252
  {
14821
15253
  args: [
14822
- { in: "path", key: "name" },
14823
15254
  { in: "query", key: "directory" },
14824
15255
  { in: "query", key: "workspace" }
14825
15256
  ]
14826
15257
  }
14827
15258
  ]);
14828
- return (options?.client ?? this.client).post({
14829
- url: "/mcp/{name}/connect",
15259
+ return (options?.client ?? this.client).get({
15260
+ url: "/session/status",
14830
15261
  ...options,
14831
15262
  ...params
14832
15263
  });
14833
15264
  }
14834
- disconnect(parameters, options) {
15265
+ delete(parameters, options) {
14835
15266
  const params = buildClientParams([parameters], [
14836
15267
  {
14837
15268
  args: [
14838
- { in: "path", key: "name" },
15269
+ { in: "path", key: "sessionID" },
14839
15270
  { in: "query", key: "directory" },
14840
15271
  { in: "query", key: "workspace" }
14841
15272
  ]
14842
15273
  }
14843
15274
  ]);
14844
- return (options?.client ?? this.client).post({
14845
- url: "/mcp/{name}/disconnect",
15275
+ return (options?.client ?? this.client).delete({
15276
+ url: "/session/{sessionID}",
14846
15277
  ...options,
14847
15278
  ...params
14848
15279
  });
14849
15280
  }
14850
- _auth;
14851
- get auth() {
14852
- return this._auth ??= new Auth2({ client: this.client });
14853
- }
14854
- }
14855
-
14856
- class Control extends HeyApiClient {
14857
- next(parameters, options) {
15281
+ get(parameters, options) {
14858
15282
  const params = buildClientParams([parameters], [
14859
15283
  {
14860
15284
  args: [
15285
+ { in: "path", key: "sessionID" },
14861
15286
  { in: "query", key: "directory" },
14862
15287
  { in: "query", key: "workspace" }
14863
15288
  ]
14864
15289
  }
14865
15290
  ]);
14866
15291
  return (options?.client ?? this.client).get({
14867
- url: "/tui/control/next",
15292
+ url: "/session/{sessionID}",
14868
15293
  ...options,
14869
15294
  ...params
14870
15295
  });
14871
15296
  }
14872
- response(parameters, options) {
15297
+ update(parameters, options) {
14873
15298
  const params = buildClientParams([parameters], [
14874
15299
  {
14875
15300
  args: [
15301
+ { in: "path", key: "sessionID" },
14876
15302
  { in: "query", key: "directory" },
14877
15303
  { in: "query", key: "workspace" },
14878
- { key: "body", map: "body" }
15304
+ { in: "body", key: "title" },
15305
+ { in: "body", key: "permission" },
15306
+ { in: "body", key: "time" }
14879
15307
  ]
14880
15308
  }
14881
15309
  ]);
14882
- return (options?.client ?? this.client).post({
14883
- url: "/tui/control/response",
15310
+ return (options?.client ?? this.client).patch({
15311
+ url: "/session/{sessionID}",
14884
15312
  ...options,
14885
15313
  ...params,
14886
15314
  headers: {
@@ -14890,132 +15318,150 @@ class Control extends HeyApiClient {
14890
15318
  }
14891
15319
  });
14892
15320
  }
14893
- }
14894
-
14895
- class Tui extends HeyApiClient {
14896
- appendPrompt(parameters, options) {
15321
+ children(parameters, options) {
14897
15322
  const params = buildClientParams([parameters], [
14898
15323
  {
14899
15324
  args: [
15325
+ { in: "path", key: "sessionID" },
14900
15326
  { in: "query", key: "directory" },
14901
- { in: "query", key: "workspace" },
14902
- { in: "body", key: "text" }
15327
+ { in: "query", key: "workspace" }
14903
15328
  ]
14904
15329
  }
14905
15330
  ]);
14906
- return (options?.client ?? this.client).post({
14907
- url: "/tui/append-prompt",
15331
+ return (options?.client ?? this.client).get({
15332
+ url: "/session/{sessionID}/children",
14908
15333
  ...options,
14909
- ...params,
14910
- headers: {
14911
- "Content-Type": "application/json",
14912
- ...options?.headers,
14913
- ...params.headers
14914
- }
15334
+ ...params
14915
15335
  });
14916
15336
  }
14917
- openHelp(parameters, options) {
15337
+ todo(parameters, options) {
14918
15338
  const params = buildClientParams([parameters], [
14919
15339
  {
14920
15340
  args: [
15341
+ { in: "path", key: "sessionID" },
14921
15342
  { in: "query", key: "directory" },
14922
15343
  { in: "query", key: "workspace" }
14923
15344
  ]
14924
15345
  }
14925
15346
  ]);
14926
- return (options?.client ?? this.client).post({
14927
- url: "/tui/open-help",
15347
+ return (options?.client ?? this.client).get({
15348
+ url: "/session/{sessionID}/todo",
14928
15349
  ...options,
14929
15350
  ...params
14930
15351
  });
14931
15352
  }
14932
- openSessions(parameters, options) {
15353
+ diff(parameters, options) {
14933
15354
  const params = buildClientParams([parameters], [
14934
15355
  {
14935
15356
  args: [
15357
+ { in: "path", key: "sessionID" },
14936
15358
  { in: "query", key: "directory" },
14937
- { in: "query", key: "workspace" }
15359
+ { in: "query", key: "workspace" },
15360
+ { in: "query", key: "messageID" }
14938
15361
  ]
14939
15362
  }
14940
15363
  ]);
14941
- return (options?.client ?? this.client).post({
14942
- url: "/tui/open-sessions",
15364
+ return (options?.client ?? this.client).get({
15365
+ url: "/session/{sessionID}/diff",
14943
15366
  ...options,
14944
15367
  ...params
14945
15368
  });
14946
15369
  }
14947
- openThemes(parameters, options) {
15370
+ messages(parameters, options) {
14948
15371
  const params = buildClientParams([parameters], [
14949
15372
  {
14950
15373
  args: [
15374
+ { in: "path", key: "sessionID" },
14951
15375
  { in: "query", key: "directory" },
14952
- { in: "query", key: "workspace" }
15376
+ { in: "query", key: "workspace" },
15377
+ { in: "query", key: "limit" },
15378
+ { in: "query", key: "before" }
14953
15379
  ]
14954
15380
  }
14955
15381
  ]);
14956
- return (options?.client ?? this.client).post({
14957
- url: "/tui/open-themes",
15382
+ return (options?.client ?? this.client).get({
15383
+ url: "/session/{sessionID}/message",
14958
15384
  ...options,
14959
15385
  ...params
14960
15386
  });
14961
15387
  }
14962
- openModels(parameters, options) {
15388
+ prompt(parameters, options) {
14963
15389
  const params = buildClientParams([parameters], [
14964
15390
  {
14965
15391
  args: [
15392
+ { in: "path", key: "sessionID" },
14966
15393
  { in: "query", key: "directory" },
14967
- { in: "query", key: "workspace" }
15394
+ { in: "query", key: "workspace" },
15395
+ { in: "body", key: "messageID" },
15396
+ { in: "body", key: "model" },
15397
+ { in: "body", key: "agent" },
15398
+ { in: "body", key: "noReply" },
15399
+ { in: "body", key: "tools" },
15400
+ { in: "body", key: "format" },
15401
+ { in: "body", key: "system" },
15402
+ { in: "body", key: "variant" },
15403
+ { in: "body", key: "parts" }
14968
15404
  ]
14969
15405
  }
14970
15406
  ]);
14971
15407
  return (options?.client ?? this.client).post({
14972
- url: "/tui/open-models",
15408
+ url: "/session/{sessionID}/message",
14973
15409
  ...options,
14974
- ...params
15410
+ ...params,
15411
+ headers: {
15412
+ "Content-Type": "application/json",
15413
+ ...options?.headers,
15414
+ ...params.headers
15415
+ }
14975
15416
  });
14976
15417
  }
14977
- submitPrompt(parameters, options) {
15418
+ deleteMessage(parameters, options) {
14978
15419
  const params = buildClientParams([parameters], [
14979
15420
  {
14980
15421
  args: [
15422
+ { in: "path", key: "sessionID" },
15423
+ { in: "path", key: "messageID" },
14981
15424
  { in: "query", key: "directory" },
14982
15425
  { in: "query", key: "workspace" }
14983
15426
  ]
14984
15427
  }
14985
15428
  ]);
14986
- return (options?.client ?? this.client).post({
14987
- url: "/tui/submit-prompt",
15429
+ return (options?.client ?? this.client).delete({
15430
+ url: "/session/{sessionID}/message/{messageID}",
14988
15431
  ...options,
14989
15432
  ...params
14990
15433
  });
14991
15434
  }
14992
- clearPrompt(parameters, options) {
15435
+ message(parameters, options) {
14993
15436
  const params = buildClientParams([parameters], [
14994
15437
  {
14995
15438
  args: [
15439
+ { in: "path", key: "sessionID" },
15440
+ { in: "path", key: "messageID" },
14996
15441
  { in: "query", key: "directory" },
14997
15442
  { in: "query", key: "workspace" }
14998
15443
  ]
14999
15444
  }
15000
15445
  ]);
15001
- return (options?.client ?? this.client).post({
15002
- url: "/tui/clear-prompt",
15446
+ return (options?.client ?? this.client).get({
15447
+ url: "/session/{sessionID}/message/{messageID}",
15003
15448
  ...options,
15004
15449
  ...params
15005
15450
  });
15006
15451
  }
15007
- executeCommand(parameters, options) {
15452
+ fork(parameters, options) {
15008
15453
  const params = buildClientParams([parameters], [
15009
15454
  {
15010
15455
  args: [
15456
+ { in: "path", key: "sessionID" },
15011
15457
  { in: "query", key: "directory" },
15012
15458
  { in: "query", key: "workspace" },
15013
- { in: "body", key: "command" }
15459
+ { in: "body", key: "messageID" }
15014
15460
  ]
15015
15461
  }
15016
15462
  ]);
15017
15463
  return (options?.client ?? this.client).post({
15018
- url: "/tui/execute-command",
15464
+ url: "/session/{sessionID}/fork",
15019
15465
  ...options,
15020
15466
  ...params,
15021
15467
  headers: {
@@ -15025,21 +15471,532 @@ class Tui extends HeyApiClient {
15025
15471
  }
15026
15472
  });
15027
15473
  }
15028
- showToast(parameters, options) {
15474
+ abort(parameters, options) {
15029
15475
  const params = buildClientParams([parameters], [
15030
15476
  {
15031
15477
  args: [
15478
+ { in: "path", key: "sessionID" },
15032
15479
  { in: "query", key: "directory" },
15033
- { in: "query", key: "workspace" },
15034
- { in: "body", key: "title" },
15035
- { in: "body", key: "message" },
15480
+ { in: "query", key: "workspace" }
15481
+ ]
15482
+ }
15483
+ ]);
15484
+ return (options?.client ?? this.client).post({
15485
+ url: "/session/{sessionID}/abort",
15486
+ ...options,
15487
+ ...params
15488
+ });
15489
+ }
15490
+ init(parameters, options) {
15491
+ const params = buildClientParams([parameters], [
15492
+ {
15493
+ args: [
15494
+ { in: "path", key: "sessionID" },
15495
+ { in: "query", key: "directory" },
15496
+ { in: "query", key: "workspace" },
15497
+ { in: "body", key: "modelID" },
15498
+ { in: "body", key: "providerID" },
15499
+ { in: "body", key: "messageID" }
15500
+ ]
15501
+ }
15502
+ ]);
15503
+ return (options?.client ?? this.client).post({
15504
+ url: "/session/{sessionID}/init",
15505
+ ...options,
15506
+ ...params,
15507
+ headers: {
15508
+ "Content-Type": "application/json",
15509
+ ...options?.headers,
15510
+ ...params.headers
15511
+ }
15512
+ });
15513
+ }
15514
+ unshare(parameters, options) {
15515
+ const params = buildClientParams([parameters], [
15516
+ {
15517
+ args: [
15518
+ { in: "path", key: "sessionID" },
15519
+ { in: "query", key: "directory" },
15520
+ { in: "query", key: "workspace" }
15521
+ ]
15522
+ }
15523
+ ]);
15524
+ return (options?.client ?? this.client).delete({
15525
+ url: "/session/{sessionID}/share",
15526
+ ...options,
15527
+ ...params
15528
+ });
15529
+ }
15530
+ share(parameters, options) {
15531
+ const params = buildClientParams([parameters], [
15532
+ {
15533
+ args: [
15534
+ { in: "path", key: "sessionID" },
15535
+ { in: "query", key: "directory" },
15536
+ { in: "query", key: "workspace" }
15537
+ ]
15538
+ }
15539
+ ]);
15540
+ return (options?.client ?? this.client).post({
15541
+ url: "/session/{sessionID}/share",
15542
+ ...options,
15543
+ ...params
15544
+ });
15545
+ }
15546
+ summarize(parameters, options) {
15547
+ const params = buildClientParams([parameters], [
15548
+ {
15549
+ args: [
15550
+ { in: "path", key: "sessionID" },
15551
+ { in: "query", key: "directory" },
15552
+ { in: "query", key: "workspace" },
15553
+ { in: "body", key: "providerID" },
15554
+ { in: "body", key: "modelID" },
15555
+ { in: "body", key: "auto" }
15556
+ ]
15557
+ }
15558
+ ]);
15559
+ return (options?.client ?? this.client).post({
15560
+ url: "/session/{sessionID}/summarize",
15561
+ ...options,
15562
+ ...params,
15563
+ headers: {
15564
+ "Content-Type": "application/json",
15565
+ ...options?.headers,
15566
+ ...params.headers
15567
+ }
15568
+ });
15569
+ }
15570
+ promptAsync(parameters, options) {
15571
+ const params = buildClientParams([parameters], [
15572
+ {
15573
+ args: [
15574
+ { in: "path", key: "sessionID" },
15575
+ { in: "query", key: "directory" },
15576
+ { in: "query", key: "workspace" },
15577
+ { in: "body", key: "messageID" },
15578
+ { in: "body", key: "model" },
15579
+ { in: "body", key: "agent" },
15580
+ { in: "body", key: "noReply" },
15581
+ { in: "body", key: "tools" },
15582
+ { in: "body", key: "format" },
15583
+ { in: "body", key: "system" },
15036
15584
  { in: "body", key: "variant" },
15037
- { in: "body", key: "duration" }
15585
+ { in: "body", key: "parts" }
15586
+ ]
15587
+ }
15588
+ ]);
15589
+ return (options?.client ?? this.client).post({
15590
+ url: "/session/{sessionID}/prompt_async",
15591
+ ...options,
15592
+ ...params,
15593
+ headers: {
15594
+ "Content-Type": "application/json",
15595
+ ...options?.headers,
15596
+ ...params.headers
15597
+ }
15598
+ });
15599
+ }
15600
+ command(parameters, options) {
15601
+ const params = buildClientParams([parameters], [
15602
+ {
15603
+ args: [
15604
+ { in: "path", key: "sessionID" },
15605
+ { in: "query", key: "directory" },
15606
+ { in: "query", key: "workspace" },
15607
+ { in: "body", key: "messageID" },
15608
+ { in: "body", key: "agent" },
15609
+ { in: "body", key: "model" },
15610
+ { in: "body", key: "arguments" },
15611
+ { in: "body", key: "command" },
15612
+ { in: "body", key: "variant" },
15613
+ { in: "body", key: "parts" }
15614
+ ]
15615
+ }
15616
+ ]);
15617
+ return (options?.client ?? this.client).post({
15618
+ url: "/session/{sessionID}/command",
15619
+ ...options,
15620
+ ...params,
15621
+ headers: {
15622
+ "Content-Type": "application/json",
15623
+ ...options?.headers,
15624
+ ...params.headers
15625
+ }
15626
+ });
15627
+ }
15628
+ shell(parameters, options) {
15629
+ const params = buildClientParams([parameters], [
15630
+ {
15631
+ args: [
15632
+ { in: "path", key: "sessionID" },
15633
+ { in: "query", key: "directory" },
15634
+ { in: "query", key: "workspace" },
15635
+ { in: "body", key: "messageID" },
15636
+ { in: "body", key: "agent" },
15637
+ { in: "body", key: "model" },
15638
+ { in: "body", key: "command" }
15639
+ ]
15640
+ }
15641
+ ]);
15642
+ return (options?.client ?? this.client).post({
15643
+ url: "/session/{sessionID}/shell",
15644
+ ...options,
15645
+ ...params,
15646
+ headers: {
15647
+ "Content-Type": "application/json",
15648
+ ...options?.headers,
15649
+ ...params.headers
15650
+ }
15651
+ });
15652
+ }
15653
+ revert(parameters, options) {
15654
+ const params = buildClientParams([parameters], [
15655
+ {
15656
+ args: [
15657
+ { in: "path", key: "sessionID" },
15658
+ { in: "query", key: "directory" },
15659
+ { in: "query", key: "workspace" },
15660
+ { in: "body", key: "messageID" },
15661
+ { in: "body", key: "partID" }
15662
+ ]
15663
+ }
15664
+ ]);
15665
+ return (options?.client ?? this.client).post({
15666
+ url: "/session/{sessionID}/revert",
15667
+ ...options,
15668
+ ...params,
15669
+ headers: {
15670
+ "Content-Type": "application/json",
15671
+ ...options?.headers,
15672
+ ...params.headers
15673
+ }
15674
+ });
15675
+ }
15676
+ unrevert(parameters, options) {
15677
+ const params = buildClientParams([parameters], [
15678
+ {
15679
+ args: [
15680
+ { in: "path", key: "sessionID" },
15681
+ { in: "query", key: "directory" },
15682
+ { in: "query", key: "workspace" }
15683
+ ]
15684
+ }
15685
+ ]);
15686
+ return (options?.client ?? this.client).post({
15687
+ url: "/session/{sessionID}/unrevert",
15688
+ ...options,
15689
+ ...params
15690
+ });
15691
+ }
15692
+ }
15693
+
15694
+ class Part extends HeyApiClient {
15695
+ delete(parameters, options) {
15696
+ const params = buildClientParams([parameters], [
15697
+ {
15698
+ args: [
15699
+ { in: "path", key: "sessionID" },
15700
+ { in: "path", key: "messageID" },
15701
+ { in: "path", key: "partID" },
15702
+ { in: "query", key: "directory" },
15703
+ { in: "query", key: "workspace" }
15704
+ ]
15705
+ }
15706
+ ]);
15707
+ return (options?.client ?? this.client).delete({
15708
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
15709
+ ...options,
15710
+ ...params
15711
+ });
15712
+ }
15713
+ update(parameters, options) {
15714
+ const params = buildClientParams([parameters], [
15715
+ {
15716
+ args: [
15717
+ { in: "path", key: "sessionID" },
15718
+ { in: "path", key: "messageID" },
15719
+ { in: "path", key: "partID" },
15720
+ { in: "query", key: "directory" },
15721
+ { in: "query", key: "workspace" },
15722
+ { key: "part", map: "body" }
15723
+ ]
15724
+ }
15725
+ ]);
15726
+ return (options?.client ?? this.client).patch({
15727
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
15728
+ ...options,
15729
+ ...params,
15730
+ headers: {
15731
+ "Content-Type": "application/json",
15732
+ ...options?.headers,
15733
+ ...params.headers
15734
+ }
15735
+ });
15736
+ }
15737
+ }
15738
+
15739
+ class History extends HeyApiClient {
15740
+ list(parameters, options) {
15741
+ const params = buildClientParams([parameters], [
15742
+ {
15743
+ args: [
15744
+ { in: "query", key: "directory" },
15745
+ { in: "query", key: "workspace" },
15746
+ { key: "body", map: "body" }
15747
+ ]
15748
+ }
15749
+ ]);
15750
+ return (options?.client ?? this.client).post({
15751
+ url: "/sync/history",
15752
+ ...options,
15753
+ ...params,
15754
+ headers: {
15755
+ "Content-Type": "application/json",
15756
+ ...options?.headers,
15757
+ ...params.headers
15758
+ }
15759
+ });
15760
+ }
15761
+ }
15762
+
15763
+ class Sync extends HeyApiClient {
15764
+ start(parameters, options) {
15765
+ const params = buildClientParams([parameters], [
15766
+ {
15767
+ args: [
15768
+ { in: "query", key: "directory" },
15769
+ { in: "query", key: "workspace" }
15770
+ ]
15771
+ }
15772
+ ]);
15773
+ return (options?.client ?? this.client).post({
15774
+ url: "/sync/start",
15775
+ ...options,
15776
+ ...params
15777
+ });
15778
+ }
15779
+ replay(parameters, options) {
15780
+ const params = buildClientParams([parameters], [
15781
+ {
15782
+ args: [
15783
+ {
15784
+ in: "query",
15785
+ key: "query_directory",
15786
+ map: "directory"
15787
+ },
15788
+ { in: "query", key: "workspace" },
15789
+ {
15790
+ in: "body",
15791
+ key: "body_directory",
15792
+ map: "directory"
15793
+ },
15794
+ { in: "body", key: "events" }
15795
+ ]
15796
+ }
15797
+ ]);
15798
+ return (options?.client ?? this.client).post({
15799
+ url: "/sync/replay",
15800
+ ...options,
15801
+ ...params,
15802
+ headers: {
15803
+ "Content-Type": "application/json",
15804
+ ...options?.headers,
15805
+ ...params.headers
15806
+ }
15807
+ });
15808
+ }
15809
+ steal(parameters, options) {
15810
+ const params = buildClientParams([parameters], [
15811
+ {
15812
+ args: [
15813
+ { in: "query", key: "directory" },
15814
+ { in: "query", key: "workspace" },
15815
+ { in: "body", key: "sessionID" }
15816
+ ]
15817
+ }
15818
+ ]);
15819
+ return (options?.client ?? this.client).post({
15820
+ url: "/sync/steal",
15821
+ ...options,
15822
+ ...params,
15823
+ headers: {
15824
+ "Content-Type": "application/json",
15825
+ ...options?.headers,
15826
+ ...params.headers
15827
+ }
15828
+ });
15829
+ }
15830
+ _history;
15831
+ get history() {
15832
+ return this._history ??= new History({ client: this.client });
15833
+ }
15834
+ }
15835
+
15836
+ class Session3 extends HeyApiClient {
15837
+ list(parameters, options) {
15838
+ const params = buildClientParams([parameters], [
15839
+ {
15840
+ args: [
15841
+ { in: "query", key: "directory" },
15842
+ { in: "query", key: "workspace" }
15843
+ ]
15844
+ }
15845
+ ]);
15846
+ return (options?.client ?? this.client).get({
15847
+ url: "/api/session",
15848
+ ...options,
15849
+ ...params
15850
+ });
15851
+ }
15852
+ prompt(parameters, options) {
15853
+ const params = buildClientParams([parameters], [
15854
+ {
15855
+ args: [
15856
+ { in: "path", key: "sessionID" },
15857
+ { in: "query", key: "directory" },
15858
+ { in: "query", key: "workspace" },
15859
+ { in: "body", key: "prompt" },
15860
+ { in: "body", key: "delivery" }
15861
+ ]
15862
+ }
15863
+ ]);
15864
+ return (options?.client ?? this.client).post({
15865
+ url: "/api/session/{sessionID}/prompt",
15866
+ ...options,
15867
+ ...params,
15868
+ headers: {
15869
+ "Content-Type": "application/json",
15870
+ ...options?.headers,
15871
+ ...params.headers
15872
+ }
15873
+ });
15874
+ }
15875
+ compact(parameters, options) {
15876
+ const params = buildClientParams([parameters], [
15877
+ {
15878
+ args: [
15879
+ { in: "path", key: "sessionID" },
15880
+ { in: "query", key: "directory" },
15881
+ { in: "query", key: "workspace" }
15882
+ ]
15883
+ }
15884
+ ]);
15885
+ return (options?.client ?? this.client).post({
15886
+ url: "/api/session/{sessionID}/compact",
15887
+ ...options,
15888
+ ...params
15889
+ });
15890
+ }
15891
+ wait(parameters, options) {
15892
+ const params = buildClientParams([parameters], [
15893
+ {
15894
+ args: [
15895
+ { in: "path", key: "sessionID" },
15896
+ { in: "query", key: "directory" },
15897
+ { in: "query", key: "workspace" }
15898
+ ]
15899
+ }
15900
+ ]);
15901
+ return (options?.client ?? this.client).post({
15902
+ url: "/api/session/{sessionID}/wait",
15903
+ ...options,
15904
+ ...params
15905
+ });
15906
+ }
15907
+ context(parameters, options) {
15908
+ const params = buildClientParams([parameters], [
15909
+ {
15910
+ args: [
15911
+ { in: "path", key: "sessionID" },
15912
+ { in: "query", key: "directory" },
15913
+ { in: "query", key: "workspace" }
15914
+ ]
15915
+ }
15916
+ ]);
15917
+ return (options?.client ?? this.client).get({
15918
+ url: "/api/session/{sessionID}/context",
15919
+ ...options,
15920
+ ...params
15921
+ });
15922
+ }
15923
+ messages(parameters, options) {
15924
+ const params = buildClientParams([parameters], [
15925
+ {
15926
+ args: [
15927
+ { in: "path", key: "sessionID" },
15928
+ { in: "query", key: "directory" },
15929
+ { in: "query", key: "workspace" }
15930
+ ]
15931
+ }
15932
+ ]);
15933
+ return (options?.client ?? this.client).get({
15934
+ url: "/api/session/{sessionID}/message",
15935
+ ...options,
15936
+ ...params
15937
+ });
15938
+ }
15939
+ }
15940
+
15941
+ class V2 extends HeyApiClient {
15942
+ _session;
15943
+ get session() {
15944
+ return this._session ??= new Session3({ client: this.client });
15945
+ }
15946
+ }
15947
+
15948
+ class Control extends HeyApiClient {
15949
+ next(parameters, options) {
15950
+ const params = buildClientParams([parameters], [
15951
+ {
15952
+ args: [
15953
+ { in: "query", key: "directory" },
15954
+ { in: "query", key: "workspace" }
15955
+ ]
15956
+ }
15957
+ ]);
15958
+ return (options?.client ?? this.client).get({
15959
+ url: "/tui/control/next",
15960
+ ...options,
15961
+ ...params
15962
+ });
15963
+ }
15964
+ response(parameters, options) {
15965
+ const params = buildClientParams([parameters], [
15966
+ {
15967
+ args: [
15968
+ { in: "query", key: "directory" },
15969
+ { in: "query", key: "workspace" },
15970
+ { key: "body", map: "body" }
15971
+ ]
15972
+ }
15973
+ ]);
15974
+ return (options?.client ?? this.client).post({
15975
+ url: "/tui/control/response",
15976
+ ...options,
15977
+ ...params,
15978
+ headers: {
15979
+ "Content-Type": "application/json",
15980
+ ...options?.headers,
15981
+ ...params.headers
15982
+ }
15983
+ });
15984
+ }
15985
+ }
15986
+
15987
+ class Tui extends HeyApiClient {
15988
+ appendPrompt(parameters, options) {
15989
+ const params = buildClientParams([parameters], [
15990
+ {
15991
+ args: [
15992
+ { in: "query", key: "directory" },
15993
+ { in: "query", key: "workspace" },
15994
+ { in: "body", key: "text" }
15038
15995
  ]
15039
15996
  }
15040
15997
  ]);
15041
15998
  return (options?.client ?? this.client).post({
15042
- url: "/tui/show-toast",
15999
+ url: "/tui/append-prompt",
15043
16000
  ...options,
15044
16001
  ...params,
15045
16002
  headers: {
@@ -15049,56 +16006,37 @@ class Tui extends HeyApiClient {
15049
16006
  }
15050
16007
  });
15051
16008
  }
15052
- publish(parameters, options) {
16009
+ openHelp(parameters, options) {
15053
16010
  const params = buildClientParams([parameters], [
15054
16011
  {
15055
16012
  args: [
15056
16013
  { in: "query", key: "directory" },
15057
- { in: "query", key: "workspace" },
15058
- { key: "body", map: "body" }
16014
+ { in: "query", key: "workspace" }
15059
16015
  ]
15060
16016
  }
15061
16017
  ]);
15062
16018
  return (options?.client ?? this.client).post({
15063
- url: "/tui/publish",
16019
+ url: "/tui/open-help",
15064
16020
  ...options,
15065
- ...params,
15066
- headers: {
15067
- "Content-Type": "application/json",
15068
- ...options?.headers,
15069
- ...params.headers
15070
- }
16021
+ ...params
15071
16022
  });
15072
16023
  }
15073
- selectSession(parameters, options) {
16024
+ openSessions(parameters, options) {
15074
16025
  const params = buildClientParams([parameters], [
15075
16026
  {
15076
16027
  args: [
15077
16028
  { in: "query", key: "directory" },
15078
- { in: "query", key: "workspace" },
15079
- { in: "body", key: "sessionID" }
16029
+ { in: "query", key: "workspace" }
15080
16030
  ]
15081
16031
  }
15082
16032
  ]);
15083
16033
  return (options?.client ?? this.client).post({
15084
- url: "/tui/select-session",
16034
+ url: "/tui/open-sessions",
15085
16035
  ...options,
15086
- ...params,
15087
- headers: {
15088
- "Content-Type": "application/json",
15089
- ...options?.headers,
15090
- ...params.headers
15091
- }
16036
+ ...params
15092
16037
  });
15093
16038
  }
15094
- _control;
15095
- get control() {
15096
- return this._control ??= new Control({ client: this.client });
15097
- }
15098
- }
15099
-
15100
- class Instance extends HeyApiClient {
15101
- dispose(parameters, options) {
16039
+ openThemes(parameters, options) {
15102
16040
  const params = buildClientParams([parameters], [
15103
16041
  {
15104
16042
  args: [
@@ -15108,15 +16046,12 @@ class Instance extends HeyApiClient {
15108
16046
  }
15109
16047
  ]);
15110
16048
  return (options?.client ?? this.client).post({
15111
- url: "/instance/dispose",
16049
+ url: "/tui/open-themes",
15112
16050
  ...options,
15113
16051
  ...params
15114
16052
  });
15115
16053
  }
15116
- }
15117
-
15118
- class Path extends HeyApiClient {
15119
- get(parameters, options) {
16054
+ openModels(parameters, options) {
15120
16055
  const params = buildClientParams([parameters], [
15121
16056
  {
15122
16057
  args: [
@@ -15125,16 +16060,13 @@ class Path extends HeyApiClient {
15125
16060
  ]
15126
16061
  }
15127
16062
  ]);
15128
- return (options?.client ?? this.client).get({
15129
- url: "/path",
16063
+ return (options?.client ?? this.client).post({
16064
+ url: "/tui/open-models",
15130
16065
  ...options,
15131
16066
  ...params
15132
16067
  });
15133
16068
  }
15134
- }
15135
-
15136
- class Vcs extends HeyApiClient {
15137
- get(parameters, options) {
16069
+ submitPrompt(parameters, options) {
15138
16070
  const params = buildClientParams([parameters], [
15139
16071
  {
15140
16072
  args: [
@@ -15143,16 +16075,13 @@ class Vcs extends HeyApiClient {
15143
16075
  ]
15144
16076
  }
15145
16077
  ]);
15146
- return (options?.client ?? this.client).get({
15147
- url: "/vcs",
16078
+ return (options?.client ?? this.client).post({
16079
+ url: "/tui/submit-prompt",
15148
16080
  ...options,
15149
16081
  ...params
15150
16082
  });
15151
16083
  }
15152
- }
15153
-
15154
- class Command extends HeyApiClient {
15155
- list(parameters, options) {
16084
+ clearPrompt(parameters, options) {
15156
16085
  const params = buildClientParams([parameters], [
15157
16086
  {
15158
16087
  args: [
@@ -15161,30 +16090,24 @@ class Command extends HeyApiClient {
15161
16090
  ]
15162
16091
  }
15163
16092
  ]);
15164
- return (options?.client ?? this.client).get({
15165
- url: "/command",
16093
+ return (options?.client ?? this.client).post({
16094
+ url: "/tui/clear-prompt",
15166
16095
  ...options,
15167
16096
  ...params
15168
16097
  });
15169
16098
  }
15170
- }
15171
-
15172
- class App extends HeyApiClient {
15173
- log(parameters, options) {
16099
+ executeCommand(parameters, options) {
15174
16100
  const params = buildClientParams([parameters], [
15175
16101
  {
15176
16102
  args: [
15177
16103
  { in: "query", key: "directory" },
15178
16104
  { in: "query", key: "workspace" },
15179
- { in: "body", key: "service" },
15180
- { in: "body", key: "level" },
15181
- { in: "body", key: "message" },
15182
- { in: "body", key: "extra" }
16105
+ { in: "body", key: "command" }
15183
16106
  ]
15184
16107
  }
15185
16108
  ]);
15186
16109
  return (options?.client ?? this.client).post({
15187
- url: "/log",
16110
+ url: "/tui/execute-command",
15188
16111
  ...options,
15189
16112
  ...params,
15190
16113
  headers: {
@@ -15194,72 +16117,76 @@ class App extends HeyApiClient {
15194
16117
  }
15195
16118
  });
15196
16119
  }
15197
- agents(parameters, options) {
16120
+ showToast(parameters, options) {
15198
16121
  const params = buildClientParams([parameters], [
15199
16122
  {
15200
16123
  args: [
15201
16124
  { in: "query", key: "directory" },
15202
- { in: "query", key: "workspace" }
16125
+ { in: "query", key: "workspace" },
16126
+ { in: "body", key: "title" },
16127
+ { in: "body", key: "message" },
16128
+ { in: "body", key: "variant" },
16129
+ { in: "body", key: "duration" }
15203
16130
  ]
15204
16131
  }
15205
16132
  ]);
15206
- return (options?.client ?? this.client).get({
15207
- url: "/agent",
16133
+ return (options?.client ?? this.client).post({
16134
+ url: "/tui/show-toast",
15208
16135
  ...options,
15209
- ...params
15210
- });
15211
- }
15212
- skills(parameters, options) {
15213
- const params = buildClientParams([parameters], [
15214
- {
15215
- args: [
15216
- { in: "query", key: "directory" },
15217
- { in: "query", key: "workspace" }
15218
- ]
16136
+ ...params,
16137
+ headers: {
16138
+ "Content-Type": "application/json",
16139
+ ...options?.headers,
16140
+ ...params.headers
15219
16141
  }
15220
- ]);
15221
- return (options?.client ?? this.client).get({
15222
- url: "/skill",
15223
- ...options,
15224
- ...params
15225
16142
  });
15226
16143
  }
15227
- }
15228
-
15229
- class Lsp extends HeyApiClient {
15230
- status(parameters, options) {
16144
+ publish(parameters, options) {
15231
16145
  const params = buildClientParams([parameters], [
15232
16146
  {
15233
16147
  args: [
15234
16148
  { in: "query", key: "directory" },
15235
- { in: "query", key: "workspace" }
16149
+ { in: "query", key: "workspace" },
16150
+ { key: "body", map: "body" }
15236
16151
  ]
15237
16152
  }
15238
16153
  ]);
15239
- return (options?.client ?? this.client).get({
15240
- url: "/lsp",
16154
+ return (options?.client ?? this.client).post({
16155
+ url: "/tui/publish",
15241
16156
  ...options,
15242
- ...params
16157
+ ...params,
16158
+ headers: {
16159
+ "Content-Type": "application/json",
16160
+ ...options?.headers,
16161
+ ...params.headers
16162
+ }
15243
16163
  });
15244
16164
  }
15245
- }
15246
-
15247
- class Formatter extends HeyApiClient {
15248
- status(parameters, options) {
16165
+ selectSession(parameters, options) {
15249
16166
  const params = buildClientParams([parameters], [
15250
16167
  {
15251
16168
  args: [
15252
16169
  { in: "query", key: "directory" },
15253
- { in: "query", key: "workspace" }
16170
+ { in: "query", key: "workspace" },
16171
+ { in: "body", key: "sessionID" }
15254
16172
  ]
15255
16173
  }
15256
16174
  ]);
15257
- return (options?.client ?? this.client).get({
15258
- url: "/formatter",
16175
+ return (options?.client ?? this.client).post({
16176
+ url: "/tui/select-session",
15259
16177
  ...options,
15260
- ...params
16178
+ ...params,
16179
+ headers: {
16180
+ "Content-Type": "application/json",
16181
+ ...options?.headers,
16182
+ ...params.headers
16183
+ }
15261
16184
  });
15262
16185
  }
16186
+ _control;
16187
+ get control() {
16188
+ return this._control ??= new Control({ client: this.client });
16189
+ }
15263
16190
  }
15264
16191
 
15265
16192
  class OpencodeClient extends HeyApiClient {
@@ -15268,58 +16195,38 @@ class OpencodeClient extends HeyApiClient {
15268
16195
  super(args);
15269
16196
  OpencodeClient.__registry.set(this, args?.key);
15270
16197
  }
15271
- _global;
15272
- get global() {
15273
- return this._global ??= new Global({ client: this.client });
15274
- }
15275
16198
  _auth;
15276
16199
  get auth() {
15277
16200
  return this._auth ??= new Auth({ client: this.client });
15278
16201
  }
15279
- _project;
15280
- get project() {
15281
- return this._project ??= new Project({ client: this.client });
16202
+ _app;
16203
+ get app() {
16204
+ return this._app ??= new App({ client: this.client });
15282
16205
  }
15283
- _pty;
15284
- get pty() {
15285
- return this._pty ??= new Pty({ client: this.client });
16206
+ _global;
16207
+ get global() {
16208
+ return this._global ??= new Global({ client: this.client });
16209
+ }
16210
+ _event;
16211
+ get event() {
16212
+ return this._event ??= new Event({ client: this.client });
15286
16213
  }
15287
16214
  _config;
15288
16215
  get config() {
15289
16216
  return this._config ??= new Config2({ client: this.client });
15290
16217
  }
15291
- _tool;
15292
- get tool() {
15293
- return this._tool ??= new Tool({ client: this.client });
15294
- }
15295
16218
  _experimental;
15296
16219
  get experimental() {
15297
16220
  return this._experimental ??= new Experimental({ client: this.client });
15298
16221
  }
16222
+ _tool;
16223
+ get tool() {
16224
+ return this._tool ??= new Tool({ client: this.client });
16225
+ }
15299
16226
  _worktree;
15300
16227
  get worktree() {
15301
16228
  return this._worktree ??= new Worktree({ client: this.client });
15302
16229
  }
15303
- _session;
15304
- get session() {
15305
- return this._session ??= new Session2({ client: this.client });
15306
- }
15307
- _part;
15308
- get part() {
15309
- return this._part ??= new Part({ client: this.client });
15310
- }
15311
- _permission;
15312
- get permission() {
15313
- return this._permission ??= new Permission({ client: this.client });
15314
- }
15315
- _question;
15316
- get question() {
15317
- return this._question ??= new Question({ client: this.client });
15318
- }
15319
- _provider;
15320
- get provider() {
15321
- return this._provider ??= new Provider({ client: this.client });
15322
- }
15323
16230
  _find;
15324
16231
  get find() {
15325
16232
  return this._find ??= new Find({ client: this.client });
@@ -15328,18 +16235,6 @@ class OpencodeClient extends HeyApiClient {
15328
16235
  get file() {
15329
16236
  return this._file ??= new File2({ client: this.client });
15330
16237
  }
15331
- _event;
15332
- get event() {
15333
- return this._event ??= new Event({ client: this.client });
15334
- }
15335
- _mcp;
15336
- get mcp() {
15337
- return this._mcp ??= new Mcp({ client: this.client });
15338
- }
15339
- _tui;
15340
- get tui() {
15341
- return this._tui ??= new Tui({ client: this.client });
15342
- }
15343
16238
  _instance;
15344
16239
  get instance() {
15345
16240
  return this._instance ??= new Instance({ client: this.client });
@@ -15356,10 +16251,6 @@ class OpencodeClient extends HeyApiClient {
15356
16251
  get command() {
15357
16252
  return this._command ??= new Command({ client: this.client });
15358
16253
  }
15359
- _app;
15360
- get app() {
15361
- return this._app ??= new App({ client: this.client });
15362
- }
15363
16254
  _lsp;
15364
16255
  get lsp() {
15365
16256
  return this._lsp ??= new Lsp({ client: this.client });
@@ -15368,7 +16259,53 @@ class OpencodeClient extends HeyApiClient {
15368
16259
  get formatter() {
15369
16260
  return this._formatter ??= new Formatter({ client: this.client });
15370
16261
  }
16262
+ _mcp;
16263
+ get mcp() {
16264
+ return this._mcp ??= new Mcp({ client: this.client });
16265
+ }
16266
+ _project;
16267
+ get project() {
16268
+ return this._project ??= new Project({ client: this.client });
16269
+ }
16270
+ _pty;
16271
+ get pty() {
16272
+ return this._pty ??= new Pty({ client: this.client });
16273
+ }
16274
+ _question;
16275
+ get question() {
16276
+ return this._question ??= new Question({ client: this.client });
16277
+ }
16278
+ _permission;
16279
+ get permission() {
16280
+ return this._permission ??= new Permission({ client: this.client });
16281
+ }
16282
+ _provider;
16283
+ get provider() {
16284
+ return this._provider ??= new Provider({ client: this.client });
16285
+ }
16286
+ _session;
16287
+ get session() {
16288
+ return this._session ??= new Session2({ client: this.client });
16289
+ }
16290
+ _part;
16291
+ get part() {
16292
+ return this._part ??= new Part({ client: this.client });
16293
+ }
16294
+ _sync;
16295
+ get sync() {
16296
+ return this._sync ??= new Sync({ client: this.client });
16297
+ }
16298
+ _v2;
16299
+ get v2() {
16300
+ return this._v2 ??= new V2({ client: this.client });
16301
+ }
16302
+ _tui;
16303
+ get tui() {
16304
+ return this._tui ??= new Tui({ client: this.client });
16305
+ }
15371
16306
  }
16307
+ // node_modules/@opencode-ai/sdk/dist/v2/server.js
16308
+ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
15372
16309
  // src/index.ts
15373
16310
  import path3 from "path";
15374
16311
  import { mkdirSync } from "fs";
@@ -16243,9 +17180,9 @@ function loadConfig(projectDir) {
16243
17180
  const homeDir = process.env.HOME ?? process.env.USERPROFILE ?? "";
16244
17181
  const globalPath = path2.join(homeDir, ".config", "opencode", "ensemble.json");
16245
17182
  const projectPath = path2.join(projectDir, ".opencode", "ensemble.json");
16246
- const global = readConfigFile(globalPath);
17183
+ const global2 = readConfigFile(globalPath);
16247
17184
  const project = readConfigFile(projectPath);
16248
- const merged = { ...DEFAULT_CONFIG, ...global, ...project };
17185
+ const merged = { ...DEFAULT_CONFIG, ...global2, ...project };
16249
17186
  const timeout = process.env.OPENCODE_ENSEMBLE_TIMEOUT;
16250
17187
  if (timeout !== undefined)
16251
17188
  merged.timeoutMs = timeout === "0" ? 0 : parseInt(timeout, 10) || merged.timeoutMs;