@vm0/cli 9.147.2 → 9.148.0

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.
@@ -4629,8 +4629,8 @@ var require_browser = __commonJS({
4629
4629
  if (!this.useColors) {
4630
4630
  return;
4631
4631
  }
4632
- const c84 = "color: " + this.color;
4633
- args.splice(1, 0, c84, "color: inherit");
4632
+ const c89 = "color: " + this.color;
4633
+ args.splice(1, 0, c89, "color: inherit");
4634
4634
  let index = 0;
4635
4635
  let lastC = 0;
4636
4636
  args[0].replace(/%[a-zA-Z%]/g, (match) => {
@@ -4642,7 +4642,7 @@ var require_browser = __commonJS({
4642
4642
  lastC = index;
4643
4643
  }
4644
4644
  });
4645
- args.splice(lastC, 0, c84);
4645
+ args.splice(lastC, 0, c89);
4646
4646
  }
4647
4647
  exports.log = console.debug || console.log || (() => {
4648
4648
  });
@@ -4930,8 +4930,8 @@ var require_node = __commonJS({
4930
4930
  function formatArgs(args) {
4931
4931
  const { namespace: name, useColors: useColors2 } = this;
4932
4932
  if (useColors2) {
4933
- const c84 = this.color;
4934
- const colorCode = "\x1B[3" + (c84 < 8 ? c84 : "8;5;" + c84);
4933
+ const c89 = this.color;
4934
+ const colorCode = "\x1B[3" + (c89 < 8 ? c89 : "8;5;" + c89);
4935
4935
  const prefix = ` ${colorCode};1m${name} \x1B[0m`;
4936
4936
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
4937
4937
  args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
@@ -8981,27 +8981,27 @@ var require_commonjs2 = __commonJS({
8981
8981
  const pad = n.some(isPadded);
8982
8982
  N = [];
8983
8983
  for (let i = x2; test(i, y); i += incr) {
8984
- let c84;
8984
+ let c89;
8985
8985
  if (isAlphaSequence) {
8986
- c84 = String.fromCharCode(i);
8987
- if (c84 === "\\") {
8988
- c84 = "";
8986
+ c89 = String.fromCharCode(i);
8987
+ if (c89 === "\\") {
8988
+ c89 = "";
8989
8989
  }
8990
8990
  } else {
8991
- c84 = String(i);
8991
+ c89 = String(i);
8992
8992
  if (pad) {
8993
- const need = width - c84.length;
8993
+ const need = width - c89.length;
8994
8994
  if (need > 0) {
8995
8995
  const z3 = new Array(need + 1).join("0");
8996
8996
  if (i < 0) {
8997
- c84 = "-" + z3 + c84.slice(1);
8997
+ c89 = "-" + z3 + c89.slice(1);
8998
8998
  } else {
8999
- c84 = z3 + c84;
8999
+ c89 = z3 + c89;
9000
9000
  }
9001
9001
  }
9002
9002
  }
9003
9003
  }
9004
- N.push(c84);
9004
+ N.push(c89);
9005
9005
  }
9006
9006
  } else {
9007
9007
  N = [];
@@ -9084,25 +9084,25 @@ var require_brace_expressions = __commonJS({
9084
9084
  let endPos = pos;
9085
9085
  let rangeStart = "";
9086
9086
  WHILE: while (i < glob.length) {
9087
- const c84 = glob.charAt(i);
9088
- if ((c84 === "!" || c84 === "^") && i === pos + 1) {
9087
+ const c89 = glob.charAt(i);
9088
+ if ((c89 === "!" || c89 === "^") && i === pos + 1) {
9089
9089
  negate = true;
9090
9090
  i++;
9091
9091
  continue;
9092
9092
  }
9093
- if (c84 === "]" && sawStart && !escaping) {
9093
+ if (c89 === "]" && sawStart && !escaping) {
9094
9094
  endPos = i + 1;
9095
9095
  break;
9096
9096
  }
9097
9097
  sawStart = true;
9098
- if (c84 === "\\") {
9098
+ if (c89 === "\\") {
9099
9099
  if (!escaping) {
9100
9100
  escaping = true;
9101
9101
  i++;
9102
9102
  continue;
9103
9103
  }
9104
9104
  }
9105
- if (c84 === "[" && !escaping) {
9105
+ if (c89 === "[" && !escaping) {
9106
9106
  for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
9107
9107
  if (glob.startsWith(cls, i)) {
9108
9108
  if (rangeStart) {
@@ -9120,26 +9120,26 @@ var require_brace_expressions = __commonJS({
9120
9120
  }
9121
9121
  escaping = false;
9122
9122
  if (rangeStart) {
9123
- if (c84 > rangeStart) {
9124
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c84));
9125
- } else if (c84 === rangeStart) {
9126
- ranges.push(braceEscape(c84));
9123
+ if (c89 > rangeStart) {
9124
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c89));
9125
+ } else if (c89 === rangeStart) {
9126
+ ranges.push(braceEscape(c89));
9127
9127
  }
9128
9128
  rangeStart = "";
9129
9129
  i++;
9130
9130
  continue;
9131
9131
  }
9132
9132
  if (glob.startsWith("-]", i + 1)) {
9133
- ranges.push(braceEscape(c84 + "-"));
9133
+ ranges.push(braceEscape(c89 + "-"));
9134
9134
  i += 2;
9135
9135
  continue;
9136
9136
  }
9137
9137
  if (glob.startsWith("-", i + 1)) {
9138
- rangeStart = c84;
9138
+ rangeStart = c89;
9139
9139
  i += 2;
9140
9140
  continue;
9141
9141
  }
9142
- ranges.push(braceEscape(c84));
9142
+ ranges.push(braceEscape(c89));
9143
9143
  i++;
9144
9144
  }
9145
9145
  if (endPos < i) {
@@ -9189,8 +9189,8 @@ var require_ast = __commonJS({
9189
9189
  var brace_expressions_js_1 = require_brace_expressions();
9190
9190
  var unescape_js_1 = require_unescape();
9191
9191
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
9192
- var isExtglobType = (c84) => types.has(c84);
9193
- var isExtglobAST = (c84) => isExtglobType(c84.type);
9192
+ var isExtglobType = (c89) => types.has(c89);
9193
+ var isExtglobAST = (c89) => isExtglobType(c89.type);
9194
9194
  var adoptionMap = /* @__PURE__ */ new Map([
9195
9195
  ["!", ["@"]],
9196
9196
  ["?", ["?", "@"]],
@@ -9387,11 +9387,11 @@ var require_ast = __commonJS({
9387
9387
  this.push(part.clone(this));
9388
9388
  }
9389
9389
  clone(parent) {
9390
- const c84 = new _a2(this.type, parent);
9390
+ const c89 = new _a2(this.type, parent);
9391
9391
  for (const p of this.#parts) {
9392
- c84.copyIn(p);
9392
+ c89.copyIn(p);
9393
9393
  }
9394
- return c84;
9394
+ return c89;
9395
9395
  }
9396
9396
  static #parseAST(str, ast, pos, opt, extDepth) {
9397
9397
  const maxDepth = opt.maxExtglobRecursion ?? 2;
@@ -9403,39 +9403,39 @@ var require_ast = __commonJS({
9403
9403
  let i2 = pos;
9404
9404
  let acc2 = "";
9405
9405
  while (i2 < str.length) {
9406
- const c84 = str.charAt(i2++);
9407
- if (escaping || c84 === "\\") {
9406
+ const c89 = str.charAt(i2++);
9407
+ if (escaping || c89 === "\\") {
9408
9408
  escaping = !escaping;
9409
- acc2 += c84;
9409
+ acc2 += c89;
9410
9410
  continue;
9411
9411
  }
9412
9412
  if (inBrace) {
9413
9413
  if (i2 === braceStart + 1) {
9414
- if (c84 === "^" || c84 === "!") {
9414
+ if (c89 === "^" || c89 === "!") {
9415
9415
  braceNeg = true;
9416
9416
  }
9417
- } else if (c84 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9417
+ } else if (c89 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9418
9418
  inBrace = false;
9419
9419
  }
9420
- acc2 += c84;
9420
+ acc2 += c89;
9421
9421
  continue;
9422
- } else if (c84 === "[") {
9422
+ } else if (c89 === "[") {
9423
9423
  inBrace = true;
9424
9424
  braceStart = i2;
9425
9425
  braceNeg = false;
9426
- acc2 += c84;
9426
+ acc2 += c89;
9427
9427
  continue;
9428
9428
  }
9429
- const doRecurse = !opt.noext && isExtglobType(c84) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9429
+ const doRecurse = !opt.noext && isExtglobType(c89) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9430
9430
  if (doRecurse) {
9431
9431
  ast.push(acc2);
9432
9432
  acc2 = "";
9433
- const ext = new _a2(c84, ast);
9433
+ const ext = new _a2(c89, ast);
9434
9434
  i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
9435
9435
  ast.push(ext);
9436
9436
  continue;
9437
9437
  }
9438
- acc2 += c84;
9438
+ acc2 += c89;
9439
9439
  }
9440
9440
  ast.push(acc2);
9441
9441
  return i2;
@@ -9445,48 +9445,48 @@ var require_ast = __commonJS({
9445
9445
  const parts = [];
9446
9446
  let acc = "";
9447
9447
  while (i < str.length) {
9448
- const c84 = str.charAt(i++);
9449
- if (escaping || c84 === "\\") {
9448
+ const c89 = str.charAt(i++);
9449
+ if (escaping || c89 === "\\") {
9450
9450
  escaping = !escaping;
9451
- acc += c84;
9451
+ acc += c89;
9452
9452
  continue;
9453
9453
  }
9454
9454
  if (inBrace) {
9455
9455
  if (i === braceStart + 1) {
9456
- if (c84 === "^" || c84 === "!") {
9456
+ if (c89 === "^" || c89 === "!") {
9457
9457
  braceNeg = true;
9458
9458
  }
9459
- } else if (c84 === "]" && !(i === braceStart + 2 && braceNeg)) {
9459
+ } else if (c89 === "]" && !(i === braceStart + 2 && braceNeg)) {
9460
9460
  inBrace = false;
9461
9461
  }
9462
- acc += c84;
9462
+ acc += c89;
9463
9463
  continue;
9464
- } else if (c84 === "[") {
9464
+ } else if (c89 === "[") {
9465
9465
  inBrace = true;
9466
9466
  braceStart = i;
9467
9467
  braceNeg = false;
9468
- acc += c84;
9468
+ acc += c89;
9469
9469
  continue;
9470
9470
  }
9471
- const doRecurse = !opt.noext && isExtglobType(c84) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
- (extDepth <= maxDepth || ast && ast.#canAdoptType(c84));
9471
+ const doRecurse = !opt.noext && isExtglobType(c89) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c89));
9473
9473
  if (doRecurse) {
9474
- const depthAdd = ast && ast.#canAdoptType(c84) ? 0 : 1;
9474
+ const depthAdd = ast && ast.#canAdoptType(c89) ? 0 : 1;
9475
9475
  part.push(acc);
9476
9476
  acc = "";
9477
- const ext = new _a2(c84, part);
9477
+ const ext = new _a2(c89, part);
9478
9478
  part.push(ext);
9479
9479
  i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
9480
9480
  continue;
9481
9481
  }
9482
- if (c84 === "|") {
9482
+ if (c89 === "|") {
9483
9483
  part.push(acc);
9484
9484
  acc = "";
9485
9485
  parts.push(part);
9486
9486
  part = new _a2(null, ast);
9487
9487
  continue;
9488
9488
  }
9489
- if (c84 === ")") {
9489
+ if (c89 === ")") {
9490
9490
  if (acc === "" && ast.#parts.length === 0) {
9491
9491
  ast.#emptyExt = true;
9492
9492
  }
@@ -9495,7 +9495,7 @@ var require_ast = __commonJS({
9495
9495
  ast.push(...parts, part);
9496
9496
  return i;
9497
9497
  }
9498
- acc += c84;
9498
+ acc += c89;
9499
9499
  }
9500
9500
  ast.type = null;
9501
9501
  ast.#hasMagic = void 0;
@@ -9515,8 +9515,8 @@ var require_ast = __commonJS({
9515
9515
  }
9516
9516
  return this.#canAdoptType(gc.type, map2);
9517
9517
  }
9518
- #canAdoptType(c84, map2 = adoptionAnyMap) {
9519
- return !!map2.get(this.type)?.includes(c84);
9518
+ #canAdoptType(c89, map2 = adoptionAnyMap) {
9519
+ return !!map2.get(this.type)?.includes(c89);
9520
9520
  }
9521
9521
  #adoptWithSpace(child, index) {
9522
9522
  const gc = child.#parts[0];
@@ -9534,9 +9534,9 @@ var require_ast = __commonJS({
9534
9534
  }
9535
9535
  this.#toString = void 0;
9536
9536
  }
9537
- #canUsurpType(c84) {
9537
+ #canUsurpType(c89) {
9538
9538
  const m = usurpMap.get(this.type);
9539
- return !!m?.has(c84);
9539
+ return !!m?.has(c89);
9540
9540
  }
9541
9541
  #canUsurp(child) {
9542
9542
  if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
@@ -9749,18 +9749,18 @@ var require_ast = __commonJS({
9749
9749
  do {
9750
9750
  done = true;
9751
9751
  for (let i = 0; i < this.#parts.length; i++) {
9752
- const c84 = this.#parts[i];
9753
- if (typeof c84 === "object") {
9754
- c84.#flatten();
9755
- if (this.#canAdopt(c84)) {
9752
+ const c89 = this.#parts[i];
9753
+ if (typeof c89 === "object") {
9754
+ c89.#flatten();
9755
+ if (this.#canAdopt(c89)) {
9756
9756
  done = false;
9757
- this.#adopt(c84, i);
9758
- } else if (this.#canAdoptWithSpace(c84)) {
9757
+ this.#adopt(c89, i);
9758
+ } else if (this.#canAdoptWithSpace(c89)) {
9759
9759
  done = false;
9760
- this.#adoptWithSpace(c84, i);
9761
- } else if (this.#canUsurp(c84)) {
9760
+ this.#adoptWithSpace(c89, i);
9761
+ } else if (this.#canUsurp(c89)) {
9762
9762
  done = false;
9763
- this.#usurp(c84);
9763
+ this.#usurp(c89);
9764
9764
  }
9765
9765
  }
9766
9766
  }
@@ -9784,13 +9784,13 @@ var require_ast = __commonJS({
9784
9784
  let uflag = false;
9785
9785
  let inStar = false;
9786
9786
  for (let i = 0; i < glob.length; i++) {
9787
- const c84 = glob.charAt(i);
9787
+ const c89 = glob.charAt(i);
9788
9788
  if (escaping) {
9789
9789
  escaping = false;
9790
- re += (reSpecials.has(c84) ? "\\" : "") + c84;
9790
+ re += (reSpecials.has(c89) ? "\\" : "") + c89;
9791
9791
  continue;
9792
9792
  }
9793
- if (c84 === "*") {
9793
+ if (c89 === "*") {
9794
9794
  if (inStar)
9795
9795
  continue;
9796
9796
  inStar = true;
@@ -9800,7 +9800,7 @@ var require_ast = __commonJS({
9800
9800
  } else {
9801
9801
  inStar = false;
9802
9802
  }
9803
- if (c84 === "\\") {
9803
+ if (c89 === "\\") {
9804
9804
  if (i === glob.length - 1) {
9805
9805
  re += "\\\\";
9806
9806
  } else {
@@ -9808,7 +9808,7 @@ var require_ast = __commonJS({
9808
9808
  }
9809
9809
  continue;
9810
9810
  }
9811
- if (c84 === "[") {
9811
+ if (c89 === "[") {
9812
9812
  const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
9813
9813
  if (consumed) {
9814
9814
  re += src;
@@ -9818,12 +9818,12 @@ var require_ast = __commonJS({
9818
9818
  continue;
9819
9819
  }
9820
9820
  }
9821
- if (c84 === "?") {
9821
+ if (c89 === "?") {
9822
9822
  re += qmark;
9823
9823
  hasMagic = true;
9824
9824
  continue;
9825
9825
  }
9826
- re += regExpEscape(c84);
9826
+ re += regExpEscape(c89);
9827
9827
  }
9828
9828
  return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
9829
9829
  }
@@ -13747,13 +13747,13 @@ var require_utils4 = __commonJS({
13747
13747
  }
13748
13748
  exports.arrayStringifyHelper = arrayStringifyHelper;
13749
13749
  function getPoolNameOld(pool) {
13750
- const c84 = pool.config.connectionConfig;
13750
+ const c89 = pool.config.connectionConfig;
13751
13751
  let poolName = "";
13752
- poolName += c84.host ? `host: '${c84.host}', ` : "";
13753
- poolName += c84.port ? `port: ${c84.port}, ` : "";
13754
- poolName += c84.database ? `database: '${c84.database}', ` : "";
13755
- poolName += c84.user ? `user: '${c84.user}'` : "";
13756
- if (!c84.user) {
13752
+ poolName += c89.host ? `host: '${c89.host}', ` : "";
13753
+ poolName += c89.port ? `port: ${c89.port}, ` : "";
13754
+ poolName += c89.database ? `database: '${c89.database}', ` : "";
13755
+ poolName += c89.user ? `user: '${c89.user}'` : "";
13756
+ if (!c89.user) {
13757
13757
  poolName = poolName.substring(0, poolName.length - 2);
13758
13758
  }
13759
13759
  return poolName.trim();
@@ -14105,7 +14105,7 @@ var require_src9 = __commonJS({
14105
14105
  return indexOpeningDashDashComment < indexClosingSlashComment;
14106
14106
  }
14107
14107
  function fixedEncodeURIComponent(str) {
14108
- return encodeURIComponent(str).replace(/[!'()*]/g, (c84) => `%${c84.charCodeAt(0).toString(16).toUpperCase()}`);
14108
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c89) => `%${c89.charCodeAt(0).toString(16).toUpperCase()}`);
14109
14109
  }
14110
14110
  function addSqlCommenterComment(span, query) {
14111
14111
  if (typeof query !== "string" || query.length === 0) {
@@ -22665,8 +22665,8 @@ var require_util = __commonJS({
22665
22665
  function isUSVString(val) {
22666
22666
  return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
22667
22667
  }
22668
- function isTokenCharCode(c84) {
22669
- switch (c84) {
22668
+ function isTokenCharCode(c89) {
22669
+ switch (c89) {
22670
22670
  case 34:
22671
22671
  case 40:
22672
22672
  case 41:
@@ -22686,7 +22686,7 @@ var require_util = __commonJS({
22686
22686
  case 125:
22687
22687
  return false;
22688
22688
  default:
22689
- return c84 >= 33 && c84 <= 126;
22689
+ return c89 >= 33 && c89 <= 126;
22690
22690
  }
22691
22691
  }
22692
22692
  function isValidHTTPToken(characters) {
@@ -24275,7 +24275,7 @@ var require_constants2 = __commonJS({
24275
24275
  exports.HEADER_CHARS.push(i);
24276
24276
  }
24277
24277
  }
24278
- exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c84) => c84 !== 44);
24278
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c89) => c89 !== 44);
24279
24279
  exports.MAJOR = exports.NUM_MAP;
24280
24280
  exports.MINOR = exports.MAJOR;
24281
24281
  var HEADER_STATE;
@@ -25421,10 +25421,10 @@ var require_util2 = __commonJS({
25421
25421
  }
25422
25422
  function isValidReasonPhrase(statusText) {
25423
25423
  for (let i = 0; i < statusText.length; ++i) {
25424
- const c84 = statusText.charCodeAt(i);
25425
- if (!(c84 === 9 || // HTAB
25426
- c84 >= 32 && c84 <= 126 || // SP / VCHAR
25427
- c84 >= 128 && c84 <= 255)) {
25424
+ const c89 = statusText.charCodeAt(i);
25425
+ if (!(c89 === 9 || // HTAB
25426
+ c89 >= 32 && c89 <= 126 || // SP / VCHAR
25427
+ c89 >= 128 && c89 <= 255)) {
25428
25428
  return false;
25429
25429
  }
25430
25430
  }
@@ -28041,7 +28041,7 @@ var require_client_h2 = __commonJS({
28041
28041
  "use strict";
28042
28042
  init_esm_shims();
28043
28043
  var assert2 = __require("assert");
28044
- var { pipeline: pipeline4 } = __require("stream");
28044
+ var { pipeline: pipeline5 } = __require("stream");
28045
28045
  var util3 = require_util();
28046
28046
  var {
28047
28047
  RequestContentLengthMismatchError,
@@ -28488,7 +28488,7 @@ var require_client_h2 = __commonJS({
28488
28488
  }
28489
28489
  function writeStream(abort, socket, expectsPayload, h2stream, body, client, request2, contentLength) {
28490
28490
  assert2(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
28491
- const pipe2 = pipeline4(
28491
+ const pipe2 = pipeline5(
28492
28492
  body,
28493
28493
  h2stream,
28494
28494
  (err) => {
@@ -29398,7 +29398,7 @@ var require_pool_base = __commonJS({
29398
29398
  pool.emit("drain", origin, [pool, ...targets]);
29399
29399
  }
29400
29400
  if (pool[kClosedResolve] && queue.isEmpty()) {
29401
- Promise.all(pool[kClients].map((c84) => c84.close())).then(pool[kClosedResolve]);
29401
+ Promise.all(pool[kClients].map((c89) => c89.close())).then(pool[kClosedResolve]);
29402
29402
  }
29403
29403
  };
29404
29404
  this[kOnConnect] = (origin, targets) => {
@@ -29447,7 +29447,7 @@ var require_pool_base = __commonJS({
29447
29447
  }
29448
29448
  async [kClose]() {
29449
29449
  if (this[kQueue].isEmpty()) {
29450
- await Promise.all(this[kClients].map((c84) => c84.close()));
29450
+ await Promise.all(this[kClients].map((c89) => c89.close()));
29451
29451
  } else {
29452
29452
  await new Promise((resolve2) => {
29453
29453
  this[kClosedResolve] = resolve2;
@@ -29462,7 +29462,7 @@ var require_pool_base = __commonJS({
29462
29462
  }
29463
29463
  item.handler.onError(err);
29464
29464
  }
29465
- await Promise.all(this[kClients].map((c84) => c84.destroy(err)));
29465
+ await Promise.all(this[kClients].map((c89) => c89.destroy(err)));
29466
29466
  }
29467
29467
  [kDispatch](opts, handler) {
29468
29468
  const dispatcher = this[kGetDispatcher]();
@@ -30546,7 +30546,7 @@ var require_readable = __commonJS({
30546
30546
  "use strict";
30547
30547
  init_esm_shims();
30548
30548
  var assert2 = __require("assert");
30549
- var { Readable: Readable5 } = __require("stream");
30549
+ var { Readable: Readable6 } = __require("stream");
30550
30550
  var { RequestAbortedError, NotSupportedError, InvalidArgumentError: InvalidArgumentError2, AbortError } = require_errors();
30551
30551
  var util3 = require_util();
30552
30552
  var { ReadableStreamFrom } = require_util();
@@ -30558,7 +30558,7 @@ var require_readable = __commonJS({
30558
30558
  var kContentLength = /* @__PURE__ */ Symbol("kContentLength");
30559
30559
  var noop = () => {
30560
30560
  };
30561
- var BodyReadable = class extends Readable5 {
30561
+ var BodyReadable = class extends Readable6 {
30562
30562
  constructor({
30563
30563
  resume: resume2,
30564
30564
  abort,
@@ -30903,7 +30903,7 @@ var require_api_request = __commonJS({
30903
30903
  "use strict";
30904
30904
  init_esm_shims();
30905
30905
  var assert2 = __require("assert");
30906
- var { Readable: Readable5 } = require_readable();
30906
+ var { Readable: Readable6 } = require_readable();
30907
30907
  var { InvalidArgumentError: InvalidArgumentError2, RequestAbortedError } = require_errors();
30908
30908
  var util3 = require_util();
30909
30909
  var { getResolveErrorBodyCallback } = require_util3();
@@ -30998,7 +30998,7 @@ var require_api_request = __commonJS({
30998
30998
  const parsedHeaders = responseHeaders === "raw" ? util3.parseHeaders(rawHeaders) : headers;
30999
30999
  const contentType = parsedHeaders["content-type"];
31000
31000
  const contentLength = parsedHeaders["content-length"];
31001
- const res = new Readable5({
31001
+ const res = new Readable6({
31002
31002
  resume: resume2,
31003
31003
  abort,
31004
31004
  contentType,
@@ -31317,7 +31317,7 @@ var require_api_pipeline = __commonJS({
31317
31317
  "use strict";
31318
31318
  init_esm_shims();
31319
31319
  var {
31320
- Readable: Readable5,
31320
+ Readable: Readable6,
31321
31321
  Duplex,
31322
31322
  PassThrough
31323
31323
  } = __require("stream");
@@ -31331,7 +31331,7 @@ var require_api_pipeline = __commonJS({
31331
31331
  var { addSignal, removeSignal } = require_abort_signal();
31332
31332
  var assert2 = __require("assert");
31333
31333
  var kResume = /* @__PURE__ */ Symbol("resume");
31334
- var PipelineRequest = class extends Readable5 {
31334
+ var PipelineRequest = class extends Readable6 {
31335
31335
  constructor() {
31336
31336
  super({ autoDestroy: true });
31337
31337
  this[kResume] = null;
@@ -31348,7 +31348,7 @@ var require_api_pipeline = __commonJS({
31348
31348
  callback(err);
31349
31349
  }
31350
31350
  };
31351
- var PipelineResponse = class extends Readable5 {
31351
+ var PipelineResponse = class extends Readable6 {
31352
31352
  constructor(resume2) {
31353
31353
  super({ autoDestroy: true });
31354
31354
  this[kResume] = resume2;
@@ -31499,7 +31499,7 @@ var require_api_pipeline = __commonJS({
31499
31499
  util3.destroy(ret, err);
31500
31500
  }
31501
31501
  };
31502
- function pipeline4(opts, handler) {
31502
+ function pipeline5(opts, handler) {
31503
31503
  try {
31504
31504
  const pipelineHandler = new PipelineHandler(opts, handler);
31505
31505
  this.dispatch({ ...opts, body: pipelineHandler.req }, pipelineHandler);
@@ -31508,7 +31508,7 @@ var require_api_pipeline = __commonJS({
31508
31508
  return new PassThrough().destroy(err);
31509
31509
  }
31510
31510
  }
31511
- module2.exports = pipeline4;
31511
+ module2.exports = pipeline5;
31512
31512
  }
31513
31513
  });
31514
31514
 
@@ -34696,7 +34696,7 @@ var require_fetch = __commonJS({
34696
34696
  subresourceSet
34697
34697
  } = require_constants3();
34698
34698
  var EE = __require("events");
34699
- var { Readable: Readable5, pipeline: pipeline4, finished } = __require("stream");
34699
+ var { Readable: Readable6, pipeline: pipeline5, finished } = __require("stream");
34700
34700
  var { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = require_util();
34701
34701
  var { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require_data_url();
34702
34702
  var { getGlobalDispatcher } = require_global2();
@@ -35597,7 +35597,7 @@ var require_fetch = __commonJS({
35597
35597
  headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
35598
35598
  }
35599
35599
  location = headersList.get("location", true);
35600
- this.body = new Readable5({ read: resume2 });
35600
+ this.body = new Readable6({ read: resume2 });
35601
35601
  const decoders = [];
35602
35602
  const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status);
35603
35603
  if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
@@ -35640,7 +35640,7 @@ var require_fetch = __commonJS({
35640
35640
  status,
35641
35641
  statusText,
35642
35642
  headersList,
35643
- body: decoders.length ? pipeline4(this.body, ...decoders, (err) => {
35643
+ body: decoders.length ? pipeline5(this.body, ...decoders, (err) => {
35644
35644
  if (err) {
35645
35645
  this.onError(err);
35646
35646
  }
@@ -36232,8 +36232,8 @@ var require_util4 = __commonJS({
36232
36232
  return new TextDecoder(encoding).decode(sliced);
36233
36233
  }
36234
36234
  function BOMSniffing(ioQueue) {
36235
- const [a, b, c84] = ioQueue;
36236
- if (a === 239 && b === 187 && c84 === 191) {
36235
+ const [a, b, c89] = ioQueue;
36236
+ if (a === 239 && b === 187 && c89 === 191) {
36237
36237
  return "UTF-8";
36238
36238
  } else if (a === 254 && b === 255) {
36239
36239
  return "UTF-16BE";
@@ -39593,7 +39593,7 @@ var require_eventsource = __commonJS({
39593
39593
  "../../node_modules/.pnpm/undici@6.24.1/node_modules/undici/lib/web/eventsource/eventsource.js"(exports, module2) {
39594
39594
  "use strict";
39595
39595
  init_esm_shims();
39596
- var { pipeline: pipeline4 } = __require("stream");
39596
+ var { pipeline: pipeline5 } = __require("stream");
39597
39597
  var { fetching } = require_fetch();
39598
39598
  var { makeRequest } = require_request2();
39599
39599
  var { webidl } = require_webidl();
@@ -39751,7 +39751,7 @@ var require_eventsource = __commonJS({
39751
39751
  ));
39752
39752
  }
39753
39753
  });
39754
- pipeline4(
39754
+ pipeline5(
39755
39755
  response.body.stream,
39756
39756
  eventSourceStream,
39757
39757
  (error49) => {
@@ -40356,7 +40356,7 @@ var require_style = __commonJS({
40356
40356
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
40357
40357
  "use strict";
40358
40358
  init_esm_shims();
40359
- var c84 = require_kleur();
40359
+ var c89 = require_kleur();
40360
40360
  var figures = require_figures();
40361
40361
  var styles3 = Object.freeze({
40362
40362
  password: {
@@ -40378,14 +40378,14 @@ var require_style = __commonJS({
40378
40378
  });
40379
40379
  var render = (type) => styles3[type] || styles3.default;
40380
40380
  var symbols = Object.freeze({
40381
- aborted: c84.red(figures.cross),
40382
- done: c84.green(figures.tick),
40383
- exited: c84.yellow(figures.cross),
40384
- default: c84.cyan("?")
40381
+ aborted: c89.red(figures.cross),
40382
+ done: c89.green(figures.tick),
40383
+ exited: c89.yellow(figures.cross),
40384
+ default: c89.cyan("?")
40385
40385
  });
40386
40386
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
40387
- var delimiter = (completing) => c84.gray(completing ? figures.ellipsis : figures.pointerSmall);
40388
- var item = (expandable, expanded) => c84.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
40387
+ var delimiter = (completing) => c89.gray(completing ? figures.ellipsis : figures.pointerSmall);
40388
+ var item = (expandable, expanded) => c89.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
40389
40389
  module2.exports = {
40390
40390
  styles: styles3,
40391
40391
  render,
@@ -40667,10 +40667,10 @@ var require_text = __commonJS({
40667
40667
  this.cursor = this.cursor + n;
40668
40668
  this.cursorOffset += n;
40669
40669
  }
40670
- _(c84, key) {
40670
+ _(c89, key) {
40671
40671
  let s1 = this.value.slice(0, this.cursor);
40672
40672
  let s2 = this.value.slice(this.cursor);
40673
- this.value = `${s1}${c84}${s2}`;
40673
+ this.value = `${s1}${c89}${s2}`;
40674
40674
  this.red = false;
40675
40675
  this.cursor = this.placeholder ? 0 : s1.length + 1;
40676
40676
  this.render();
@@ -40845,8 +40845,8 @@ var require_select = __commonJS({
40845
40845
  this.moveCursor((this.cursor + 1) % this.choices.length);
40846
40846
  this.render();
40847
40847
  }
40848
- _(c84, key) {
40849
- if (c84 === " ") return this.submit();
40848
+ _(c89, key) {
40849
+ if (c89 === " ") return this.submit();
40850
40850
  }
40851
40851
  get selection() {
40852
40852
  return this.choices[this.cursor];
@@ -40972,12 +40972,12 @@ var require_toggle = __commonJS({
40972
40972
  this.fire();
40973
40973
  this.render();
40974
40974
  }
40975
- _(c84, key) {
40976
- if (c84 === " ") {
40975
+ _(c89, key) {
40976
+ if (c89 === " ") {
40977
40977
  this.value = !this.value;
40978
- } else if (c84 === "1") {
40978
+ } else if (c89 === "1") {
40979
40979
  this.value = true;
40980
- } else if (c84 === "0") {
40980
+ } else if (c89 === "0") {
40981
40981
  this.value = false;
40982
40982
  } else return this.bell();
40983
40983
  this.render();
@@ -41485,9 +41485,9 @@ var require_date = __commonJS({
41485
41485
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
41486
41486
  this.render();
41487
41487
  }
41488
- _(c84) {
41489
- if (/\d/.test(c84)) {
41490
- this.typed += c84;
41488
+ _(c89) {
41489
+ if (/\d/.test(c89)) {
41490
+ this.typed += c89;
41491
41491
  this.parts[this.cursor].setTo(this.typed);
41492
41492
  this.render();
41493
41493
  }
@@ -41596,8 +41596,8 @@ var require_number = __commonJS({
41596
41596
  parse(x2) {
41597
41597
  return this.float ? parseFloat(x2) : parseInt(x2);
41598
41598
  }
41599
- valid(c84) {
41600
- return c84 === `-` || c84 === `.` && this.float || isNumber.test(c84);
41599
+ valid(c89) {
41600
+ return c89 === `-` || c89 === `.` && this.float || isNumber.test(c89);
41601
41601
  }
41602
41602
  reset() {
41603
41603
  this.typed = ``;
@@ -41690,14 +41690,14 @@ var require_number = __commonJS({
41690
41690
  this.fire();
41691
41691
  this.render();
41692
41692
  }
41693
- _(c84, key) {
41694
- if (!this.valid(c84)) return this.bell();
41693
+ _(c89, key) {
41694
+ if (!this.valid(c89)) return this.bell();
41695
41695
  const now = Date.now();
41696
41696
  if (now - this.lastHit > 1e3) this.typed = ``;
41697
- this.typed += c84;
41697
+ this.typed += c89;
41698
41698
  this.lastHit = now;
41699
41699
  this.color = `cyan`;
41700
- if (c84 === `.`) return this.fire();
41700
+ if (c89 === `.`) return this.fire();
41701
41701
  this.value = Math.min(this.parse(this.typed), this.max);
41702
41702
  if (this.value > this.max) this.value = this.max;
41703
41703
  if (this.value < this.min) this.value = this.min;
@@ -41861,10 +41861,10 @@ var require_multiselect = __commonJS({
41861
41861
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
41862
41862
  this.render();
41863
41863
  }
41864
- _(c84, key) {
41865
- if (c84 === " ") {
41864
+ _(c89, key) {
41865
+ if (c89 === " ") {
41866
41866
  this.handleSpaceToggle();
41867
- } else if (c84 === "a") {
41867
+ } else if (c89 === "a") {
41868
41868
  this.toggleAll();
41869
41869
  } else {
41870
41870
  return this.bell();
@@ -42105,10 +42105,10 @@ var require_autocomplete = __commonJS({
42105
42105
  this.out.write("\n");
42106
42106
  this.close();
42107
42107
  }
42108
- _(c84, key) {
42108
+ _(c89, key) {
42109
42109
  let s1 = this.input.slice(0, this.cursor);
42110
42110
  let s2 = this.input.slice(this.cursor);
42111
- this.input = `${s1}${c84}${s2}`;
42111
+ this.input = `${s1}${c89}${s2}`;
42112
42112
  this.cursor = s1.length + 1;
42113
42113
  this.complete(this.render);
42114
42114
  this.render();
@@ -42308,15 +42308,15 @@ var require_autocompleteMultiselect = __commonJS({
42308
42308
  this.render();
42309
42309
  }
42310
42310
  }
42311
- handleInputChange(c84) {
42312
- this.inputValue = this.inputValue + c84;
42311
+ handleInputChange(c89) {
42312
+ this.inputValue = this.inputValue + c89;
42313
42313
  this.updateFilteredOptions();
42314
42314
  }
42315
- _(c84, key) {
42316
- if (c84 === " ") {
42315
+ _(c89, key) {
42316
+ if (c89 === " ") {
42317
42317
  this.handleSpaceToggle();
42318
42318
  } else {
42319
- this.handleInputChange(c84);
42319
+ this.handleInputChange(c89);
42320
42320
  }
42321
42321
  }
42322
42322
  renderInstructions() {
@@ -42422,12 +42422,12 @@ var require_confirm = __commonJS({
42422
42422
  this.out.write("\n");
42423
42423
  this.close();
42424
42424
  }
42425
- _(c84, key) {
42426
- if (c84.toLowerCase() === "y") {
42425
+ _(c89, key) {
42426
+ if (c89.toLowerCase() === "y") {
42427
42427
  this.value = true;
42428
42428
  return this.submit();
42429
42429
  }
42430
- if (c84.toLowerCase() === "n") {
42430
+ if (c89.toLowerCase() === "n") {
42431
42431
  this.value = false;
42432
42432
  return this.submit();
42433
42433
  }
@@ -42868,7 +42868,7 @@ var require_style2 = __commonJS({
42868
42868
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
42869
42869
  "use strict";
42870
42870
  init_esm_shims();
42871
- var c84 = require_kleur();
42871
+ var c89 = require_kleur();
42872
42872
  var figures = require_figures2();
42873
42873
  var styles3 = Object.freeze({
42874
42874
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -42878,14 +42878,14 @@ var require_style2 = __commonJS({
42878
42878
  });
42879
42879
  var render = (type) => styles3[type] || styles3.default;
42880
42880
  var symbols = Object.freeze({
42881
- aborted: c84.red(figures.cross),
42882
- done: c84.green(figures.tick),
42883
- exited: c84.yellow(figures.cross),
42884
- default: c84.cyan("?")
42881
+ aborted: c89.red(figures.cross),
42882
+ done: c89.green(figures.tick),
42883
+ exited: c89.yellow(figures.cross),
42884
+ default: c89.cyan("?")
42885
42885
  });
42886
42886
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
42887
- var delimiter = (completing) => c84.gray(completing ? figures.ellipsis : figures.pointerSmall);
42888
- var item = (expandable, expanded) => c84.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
42887
+ var delimiter = (completing) => c89.gray(completing ? figures.ellipsis : figures.pointerSmall);
42888
+ var item = (expandable, expanded) => c89.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
42889
42889
  module2.exports = {
42890
42890
  styles: styles3,
42891
42891
  render,
@@ -43118,10 +43118,10 @@ var require_text2 = __commonJS({
43118
43118
  this.cursor = this.cursor + n;
43119
43119
  this.cursorOffset += n;
43120
43120
  }
43121
- _(c84, key) {
43121
+ _(c89, key) {
43122
43122
  let s1 = this.value.slice(0, this.cursor);
43123
43123
  let s2 = this.value.slice(this.cursor);
43124
- this.value = `${s1}${c84}${s2}`;
43124
+ this.value = `${s1}${c89}${s2}`;
43125
43125
  this.red = false;
43126
43126
  this.cursor = this.placeholder ? 0 : s1.length + 1;
43127
43127
  this.render();
@@ -43295,8 +43295,8 @@ var require_select2 = __commonJS({
43295
43295
  this.moveCursor((this.cursor + 1) % this.choices.length);
43296
43296
  this.render();
43297
43297
  }
43298
- _(c84, key) {
43299
- if (c84 === " ") return this.submit();
43298
+ _(c89, key) {
43299
+ if (c89 === " ") return this.submit();
43300
43300
  }
43301
43301
  get selection() {
43302
43302
  return this.choices[this.cursor];
@@ -43420,12 +43420,12 @@ var require_toggle2 = __commonJS({
43420
43420
  this.fire();
43421
43421
  this.render();
43422
43422
  }
43423
- _(c84, key) {
43424
- if (c84 === " ") {
43423
+ _(c89, key) {
43424
+ if (c89 === " ") {
43425
43425
  this.value = !this.value;
43426
- } else if (c84 === "1") {
43426
+ } else if (c89 === "1") {
43427
43427
  this.value = true;
43428
- } else if (c84 === "0") {
43428
+ } else if (c89 === "0") {
43429
43429
  this.value = false;
43430
43430
  } else return this.bell();
43431
43431
  this.render();
@@ -43881,9 +43881,9 @@ var require_date2 = __commonJS({
43881
43881
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
43882
43882
  this.render();
43883
43883
  }
43884
- _(c84) {
43885
- if (/\d/.test(c84)) {
43886
- this.typed += c84;
43884
+ _(c89) {
43885
+ if (/\d/.test(c89)) {
43886
+ this.typed += c89;
43887
43887
  this.parts[this.cursor].setTo(this.typed);
43888
43888
  this.render();
43889
43889
  }
@@ -43965,8 +43965,8 @@ var require_number2 = __commonJS({
43965
43965
  parse(x2) {
43966
43966
  return this.float ? parseFloat(x2) : parseInt(x2);
43967
43967
  }
43968
- valid(c84) {
43969
- return c84 === `-` || c84 === `.` && this.float || isNumber.test(c84);
43968
+ valid(c89) {
43969
+ return c89 === `-` || c89 === `.` && this.float || isNumber.test(c89);
43970
43970
  }
43971
43971
  reset() {
43972
43972
  this.typed = ``;
@@ -44053,14 +44053,14 @@ var require_number2 = __commonJS({
44053
44053
  this.fire();
44054
44054
  this.render();
44055
44055
  }
44056
- _(c84, key) {
44057
- if (!this.valid(c84)) return this.bell();
44056
+ _(c89, key) {
44057
+ if (!this.valid(c89)) return this.bell();
44058
44058
  const now = Date.now();
44059
44059
  if (now - this.lastHit > 1e3) this.typed = ``;
44060
- this.typed += c84;
44060
+ this.typed += c89;
44061
44061
  this.lastHit = now;
44062
44062
  this.color = `cyan`;
44063
- if (c84 === `.`) return this.fire();
44063
+ if (c89 === `.`) return this.fire();
44064
44064
  this.value = Math.min(this.parse(this.typed), this.max);
44065
44065
  if (this.value > this.max) this.value = this.max;
44066
44066
  if (this.value < this.min) this.value = this.min;
@@ -44222,10 +44222,10 @@ var require_multiselect2 = __commonJS({
44222
44222
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
44223
44223
  this.render();
44224
44224
  }
44225
- _(c84, key) {
44226
- if (c84 === " ") {
44225
+ _(c89, key) {
44226
+ if (c89 === " ") {
44227
44227
  this.handleSpaceToggle();
44228
- } else if (c84 === "a") {
44228
+ } else if (c89 === "a") {
44229
44229
  this.toggleAll();
44230
44230
  } else {
44231
44231
  return this.bell();
@@ -44422,10 +44422,10 @@ var require_autocomplete2 = __commonJS({
44422
44422
  this.out.write("\n");
44423
44423
  this.close();
44424
44424
  }
44425
- _(c84, key) {
44425
+ _(c89, key) {
44426
44426
  let s1 = this.input.slice(0, this.cursor);
44427
44427
  let s2 = this.input.slice(this.cursor);
44428
- this.input = `${s1}${c84}${s2}`;
44428
+ this.input = `${s1}${c89}${s2}`;
44429
44429
  this.cursor = s1.length + 1;
44430
44430
  this.complete(this.render);
44431
44431
  this.render();
@@ -44628,15 +44628,15 @@ var require_autocompleteMultiselect2 = __commonJS({
44628
44628
  this.render();
44629
44629
  }
44630
44630
  }
44631
- handleInputChange(c84) {
44632
- this.inputValue = this.inputValue + c84;
44631
+ handleInputChange(c89) {
44632
+ this.inputValue = this.inputValue + c89;
44633
44633
  this.updateFilteredOptions();
44634
44634
  }
44635
- _(c84, key) {
44636
- if (c84 === " ") {
44635
+ _(c89, key) {
44636
+ if (c89 === " ") {
44637
44637
  this.handleSpaceToggle();
44638
44638
  } else {
44639
- this.handleInputChange(c84);
44639
+ this.handleInputChange(c89);
44640
44640
  }
44641
44641
  }
44642
44642
  renderInstructions() {
@@ -44743,12 +44743,12 @@ var require_confirm2 = __commonJS({
44743
44743
  this.out.write("\n");
44744
44744
  this.close();
44745
44745
  }
44746
- _(c84, key) {
44747
- if (c84.toLowerCase() === "y") {
44746
+ _(c89, key) {
44747
+ if (c89.toLowerCase() === "y") {
44748
44748
  this.value = true;
44749
44749
  return this.submit();
44750
44750
  }
44751
- if (c84.toLowerCase() === "n") {
44751
+ if (c89.toLowerCase() === "n") {
44752
44752
  this.value = false;
44753
44753
  return this.submit();
44754
44754
  }
@@ -45634,9 +45634,9 @@ var require_Alias = __commonJS({
45634
45634
  } else if (identity.isCollection(node2)) {
45635
45635
  let count = 0;
45636
45636
  for (const item of node2.items) {
45637
- const c84 = getAliasCount(doc, item, anchors2);
45638
- if (c84 > count)
45639
- count = c84;
45637
+ const c89 = getAliasCount(doc, item, anchors2);
45638
+ if (c89 > count)
45639
+ count = c89;
45640
45640
  }
45641
45641
  return count;
45642
45642
  } else if (identity.isPair(node2)) {
@@ -53176,8 +53176,8 @@ function _htmlElementAsString(el, keyAttrs) {
53176
53176
  const className = elem.className;
53177
53177
  if (className && isString(className)) {
53178
53178
  const classes = className.split(/\s+/);
53179
- for (const c84 of classes) {
53180
- out.push(`.${c84}`);
53179
+ for (const c89 of classes) {
53180
+ out.push(`.${c89}`);
53181
53181
  }
53182
53182
  }
53183
53183
  }
@@ -53409,9 +53409,9 @@ function uuid4(crypto = getCrypto()) {
53409
53409
  }
53410
53410
  return emptyUuid.replace(
53411
53411
  /[018]/g,
53412
- (c84) => (
53412
+ (c89) => (
53413
53413
  // eslint-disable-next-line no-bitwise
53414
- (c84 ^ (getRandomByte() & 15) >> c84 / 4).toString(16)
53414
+ (c89 ^ (getRandomByte() & 15) >> c89 / 4).toString(16)
53415
53415
  )
53416
53416
  );
53417
53417
  }
@@ -72468,16 +72468,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
72468
72468
  */
72469
72469
  _wrapHandler(handler) {
72470
72470
  const instrumentation = this;
72471
- return function(c84, next) {
72471
+ return function(c89, next) {
72472
72472
  if (!instrumentation.isEnabled()) {
72473
- return handler.apply(this, [c84, next]);
72473
+ return handler.apply(this, [c89, next]);
72474
72474
  }
72475
- const path3 = c84.req.path;
72475
+ const path3 = c89.req.path;
72476
72476
  const span = instrumentation.tracer.startSpan(path3);
72477
72477
  return context.with(trace.setSpan(context.active(), span), () => {
72478
72478
  return instrumentation._safeExecute(
72479
72479
  () => {
72480
- const result = handler.apply(this, [c84, next]);
72480
+ const result = handler.apply(this, [c89, next]);
72481
72481
  if (isThenable(result)) {
72482
72482
  return result.then((result2) => {
72483
72483
  const type = instrumentation._determineHandlerType(result2);
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.147.2",
74086
+ release: "9.148.0",
74087
74087
  sendDefaultPii: false,
74088
74088
  tracesSampleRate: 0,
74089
74089
  shutdownTimeout: 500,
@@ -74102,7 +74102,7 @@ if (DSN) {
74102
74102
  }
74103
74103
  });
74104
74104
  setContext("cli", {
74105
- version: "9.147.2",
74105
+ version: "9.148.0",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -77348,7 +77348,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
77348
77348
  function isValidBase64URL(data) {
77349
77349
  if (!base64url.test(data))
77350
77350
  return false;
77351
- const base643 = data.replace(/[-_]/g, (c84) => c84 === "-" ? "+" : "/");
77351
+ const base643 = data.replace(/[-_]/g, (c89) => c89 === "-" ? "+" : "/");
77352
77352
  const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
77353
77353
  return isValidBase64(padded);
77354
77354
  }
@@ -87459,9 +87459,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
87459
87459
  inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
87460
87460
  inst.min = (value, params) => inst.check(_gte(value, params));
87461
87461
  inst.max = (value, params) => inst.check(_lte(value, params));
87462
- const c84 = inst._zod.bag;
87463
- inst.minDate = c84.minimum ? new Date(c84.minimum) : null;
87464
- inst.maxDate = c84.maximum ? new Date(c84.maximum) : null;
87462
+ const c89 = inst._zod.bag;
87463
+ inst.minDate = c89.minimum ? new Date(c89.minimum) : null;
87464
+ inst.maxDate = c89.maximum ? new Date(c89.maximum) : null;
87465
87465
  });
87466
87466
  function date3(params) {
87467
87467
  return _date(ZodDate, params);
@@ -103474,6 +103474,34 @@ var integrationsTelegramMessageContract = c17.router({
103474
103474
  summary: "Send a Telegram message via org bot token"
103475
103475
  }
103476
103476
  });
103477
+ var sendPhoneMessageBodySchema = external_exports.object({
103478
+ agentphoneAgentId: external_exports.string().min(1, "AgentPhone agent ID is required").optional(),
103479
+ toNumber: external_exports.string().min(1, "Phone number is required"),
103480
+ text: external_exports.string().min(1, "Message text is required")
103481
+ });
103482
+ var sendPhoneMessageResponseSchema = external_exports.object({
103483
+ ok: external_exports.literal(true),
103484
+ messageId: external_exports.string(),
103485
+ channel: external_exports.string().nullable(),
103486
+ toNumber: external_exports.string()
103487
+ });
103488
+ var integrationsPhoneMessageContract = c17.router({
103489
+ sendMessage: {
103490
+ method: "POST",
103491
+ path: "/api/zero/integrations/phone/message",
103492
+ headers: authHeadersSchema,
103493
+ body: sendPhoneMessageBodySchema,
103494
+ responses: {
103495
+ 200: sendPhoneMessageResponseSchema,
103496
+ 400: apiErrorSchema,
103497
+ 401: apiErrorSchema,
103498
+ 403: apiErrorSchema,
103499
+ 404: apiErrorSchema,
103500
+ 502: apiErrorSchema
103501
+ },
103502
+ summary: "Send an AgentPhone message"
103503
+ }
103504
+ });
103477
103505
  var telegramBotTokenStatusSchema = external_exports.enum(["valid", "invalid", "unknown"]);
103478
103506
  var telegramBotListItemSchema = external_exports.object({
103479
103507
  id: external_exports.string(),
@@ -103591,6 +103619,67 @@ var integrationsTelegramUploadCompleteContract = c17.router({
103591
103619
  summary: "Finalize Telegram file upload and send it to a chat"
103592
103620
  }
103593
103621
  });
103622
+ var phoneUploadInitBodySchema = external_exports.object({
103623
+ filename: external_exports.string().min(1, "Filename is required").max(255),
103624
+ contentType: external_exports.string().min(1, "Content type is required").max(200),
103625
+ length: external_exports.number().int().positive("File length must be a positive integer")
103626
+ });
103627
+ var phoneUploadInitResponseSchema = external_exports.object({
103628
+ uploadId: external_exports.string().uuid(),
103629
+ uploadUrl: external_exports.string(),
103630
+ fileUrl: external_exports.string(),
103631
+ filename: external_exports.string(),
103632
+ contentType: external_exports.string(),
103633
+ size: external_exports.number().int().nonnegative()
103634
+ });
103635
+ var integrationsPhoneUploadInitContract = c17.router({
103636
+ init: {
103637
+ method: "POST",
103638
+ path: "/api/zero/integrations/phone/upload-file/init",
103639
+ headers: authHeadersSchema,
103640
+ body: phoneUploadInitBodySchema,
103641
+ responses: {
103642
+ 200: phoneUploadInitResponseSchema,
103643
+ 400: apiErrorSchema,
103644
+ 401: apiErrorSchema,
103645
+ 403: apiErrorSchema
103646
+ },
103647
+ summary: "Get a pre-signed upload URL for AgentPhone file delivery"
103648
+ }
103649
+ });
103650
+ var phoneUploadCompleteBodySchema = external_exports.object({
103651
+ uploadId: external_exports.string().uuid("Upload ID must be a UUID"),
103652
+ agentphoneAgentId: external_exports.string().min(1, "AgentPhone agent ID is required").optional(),
103653
+ toNumber: external_exports.string().min(1, "Phone number is required"),
103654
+ contentType: external_exports.string().min(1).max(200).optional(),
103655
+ caption: external_exports.string().max(1024).optional()
103656
+ });
103657
+ var phoneUploadCompleteResponseSchema = external_exports.object({
103658
+ messageId: external_exports.string(),
103659
+ channel: external_exports.string().nullable(),
103660
+ toNumber: external_exports.string(),
103661
+ filename: external_exports.string(),
103662
+ mimetype: external_exports.string(),
103663
+ size: external_exports.number().int().nonnegative(),
103664
+ url: external_exports.string()
103665
+ });
103666
+ var integrationsPhoneUploadCompleteContract = c17.router({
103667
+ complete: {
103668
+ method: "POST",
103669
+ path: "/api/zero/integrations/phone/upload-file/complete",
103670
+ headers: authHeadersSchema,
103671
+ body: phoneUploadCompleteBodySchema,
103672
+ responses: {
103673
+ 200: phoneUploadCompleteResponseSchema,
103674
+ 400: apiErrorSchema,
103675
+ 401: apiErrorSchema,
103676
+ 403: apiErrorSchema,
103677
+ 404: apiErrorSchema,
103678
+ 502: apiErrorSchema
103679
+ },
103680
+ summary: "Finalize AgentPhone file upload and send it to a phone handle"
103681
+ }
103682
+ });
103594
103683
  var slackUploadCompleteBodySchema = external_exports.object({
103595
103684
  fileId: external_exports.string().min(1, "File ID is required"),
103596
103685
  channel: external_exports.string().min(1, "Channel ID is required"),
@@ -103809,6 +103898,82 @@ async function downloadTelegramFile(fileId, botId, outPath) {
103809
103898
  return { path: outPath, mimetype, size };
103810
103899
  }
103811
103900
 
103901
+ // src/lib/api/domains/integrations-phone.ts
103902
+ init_esm_shims();
103903
+ import { createWriteStream as createWriteStream3 } from "fs";
103904
+ import { Readable as Readable4 } from "stream";
103905
+ import { pipeline as pipeline3 } from "stream/promises";
103906
+ async function sendPhoneMessage(body) {
103907
+ const config4 = await getClientConfig();
103908
+ const client = initClient(integrationsPhoneMessageContract, config4);
103909
+ const result = await client.sendMessage({ body, headers: {} });
103910
+ if (result.status === 200) {
103911
+ return result.body;
103912
+ }
103913
+ handleError(result, "Failed to send AgentPhone message");
103914
+ }
103915
+ async function initPhoneFileUpload(body) {
103916
+ const config4 = await getClientConfig();
103917
+ const client = initClient(integrationsPhoneUploadInitContract, config4);
103918
+ const result = await client.init({ body, headers: {} });
103919
+ if (result.status === 200) {
103920
+ return result.body;
103921
+ }
103922
+ handleError(result, "Failed to initialize AgentPhone file upload");
103923
+ }
103924
+ async function completePhoneFileUpload(body) {
103925
+ const config4 = await getClientConfig();
103926
+ const client = initClient(integrationsPhoneUploadCompleteContract, config4);
103927
+ const result = await client.complete({ body, headers: {} });
103928
+ if (result.status === 200) {
103929
+ return result.body;
103930
+ }
103931
+ handleError(result, "Failed to complete AgentPhone file upload");
103932
+ }
103933
+ async function downloadPhoneFile(fileId, outPath) {
103934
+ const baseUrl = await getBaseUrl();
103935
+ const token = await getActiveToken();
103936
+ if (!token) {
103937
+ throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
103938
+ }
103939
+ const url2 = new URL("/api/zero/integrations/phone/download-file", baseUrl);
103940
+ url2.searchParams.set("file_id", fileId);
103941
+ const headers = {
103942
+ Authorization: `Bearer ${token}`
103943
+ };
103944
+ const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
103945
+ if (bypassSecret) {
103946
+ headers["x-vercel-protection-bypass"] = bypassSecret;
103947
+ }
103948
+ const response = await fetch(url2, { headers });
103949
+ if (!response.ok) {
103950
+ let message = `Failed to download AgentPhone file (HTTP ${response.status})`;
103951
+ let code = "UNKNOWN";
103952
+ try {
103953
+ const body = await response.json();
103954
+ if (body.error?.message) message = body.error.message;
103955
+ if (body.error?.code) code = body.error.code;
103956
+ } catch {
103957
+ }
103958
+ throw new ApiRequestError(message, code, response.status);
103959
+ }
103960
+ if (!response.body) {
103961
+ throw new ApiRequestError(
103962
+ "AgentPhone download response has no body",
103963
+ "EMPTY_BODY",
103964
+ 502
103965
+ );
103966
+ }
103967
+ const mimetype = response.headers.get("x-file-mimetype") ?? response.headers.get("content-type") ?? "application/octet-stream";
103968
+ await pipeline3(
103969
+ Readable4.fromWeb(response.body),
103970
+ createWriteStream3(outPath)
103971
+ );
103972
+ const contentLengthHeader = response.headers.get("content-length");
103973
+ const size = contentLengthHeader ? Number(contentLengthHeader) : 0;
103974
+ return { path: outPath, mimetype, size };
103975
+ }
103976
+
103812
103977
  // src/lib/api/domains/integrations-chat.ts
103813
103978
  init_esm_shims();
103814
103979
  async function sendChatMessage(body) {
@@ -105221,6 +105386,7 @@ var chatMessagesContract = c21.router({
105221
105386
  }),
105222
105387
  400: apiErrorSchema,
105223
105388
  401: apiErrorSchema,
105389
+ 402: apiErrorSchema,
105224
105390
  403: apiErrorSchema,
105225
105391
  404: apiErrorSchema,
105226
105392
  422: apiErrorSchema
@@ -106345,10 +106511,10 @@ async function completeRemoteAgentHostJob(params) {
106345
106511
 
106346
106512
  // src/lib/api/domains/web.ts
106347
106513
  init_esm_shims();
106348
- import { createWriteStream as createWriteStream3, readFileSync as readFileSync3, statSync } from "fs";
106514
+ import { createWriteStream as createWriteStream4, readFileSync as readFileSync3, statSync } from "fs";
106349
106515
  import { basename as basename2, extname } from "path";
106350
- import { Readable as Readable4 } from "stream";
106351
- import { pipeline as pipeline3 } from "stream/promises";
106516
+ import { Readable as Readable5 } from "stream";
106517
+ import { pipeline as pipeline4 } from "stream/promises";
106352
106518
  var MIME_BY_EXTENSION = {
106353
106519
  ".png": "image/png",
106354
106520
  ".jpg": "image/jpeg",
@@ -106466,9 +106632,9 @@ async function downloadWebFile(fileId, outPath) {
106466
106632
  );
106467
106633
  }
106468
106634
  const mimetype = response.headers.get("x-file-mimetype") ?? response.headers.get("content-type") ?? "application/octet-stream";
106469
- await pipeline3(
106470
- Readable4.fromWeb(response.body),
106471
- createWriteStream3(outPath)
106635
+ await pipeline4(
106636
+ Readable5.fromWeb(response.body),
106637
+ createWriteStream4(outPath)
106472
106638
  );
106473
106639
  const contentLengthHeader = response.headers.get("content-length");
106474
106640
  const size = contentLengthHeader ? Number(contentLengthHeader) : 0;
@@ -120089,10 +120255,70 @@ var zeroUserModelPreferenceContract = c29.router({
120089
120255
  }
120090
120256
  });
120091
120257
 
120092
- // ../../packages/api-contracts/src/contracts/auth.ts
120258
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-telegram.ts
120259
+ init_esm_shims();
120260
+
120261
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-shared.ts
120093
120262
  init_esm_shims();
120263
+ var internalCallbackHeadersSchema = external_exports.object({
120264
+ "x-vm0-signature": external_exports.string().optional(),
120265
+ "x-vm0-timestamp": external_exports.string().optional()
120266
+ });
120267
+ var internalCallbackBodySchema = external_exports.object({
120268
+ callbackId: external_exports.string().optional(),
120269
+ runId: external_exports.string().optional(),
120270
+ status: external_exports.enum(["completed", "failed", "progress"]),
120271
+ result: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
120272
+ error: external_exports.string().optional(),
120273
+ payload: external_exports.unknown().optional()
120274
+ }).passthrough();
120275
+ var internalCallbackSuccessSchema = external_exports.object({
120276
+ success: external_exports.literal(true)
120277
+ });
120278
+ var internalCallbackSuccessWithSkippedSchema = internalCallbackSuccessSchema.extend({
120279
+ skipped: external_exports.literal(true).optional()
120280
+ });
120281
+ var internalCallbackErrorSchema = external_exports.object({
120282
+ error: external_exports.string()
120283
+ });
120284
+
120285
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-telegram.ts
120094
120286
  var c30 = initContract();
120095
- var authContract = c30.router({
120287
+ var telegramCallbackPayloadSchema = external_exports.object({
120288
+ installationId: external_exports.string(),
120289
+ chatId: external_exports.string(),
120290
+ messageId: external_exports.string(),
120291
+ rootMessageId: external_exports.string().nullable().optional(),
120292
+ userLinkId: external_exports.string(),
120293
+ agentId: external_exports.string(),
120294
+ existingSessionId: external_exports.string().nullable().optional(),
120295
+ isDM: external_exports.boolean(),
120296
+ thinkingMessageId: external_exports.string().nullable().optional()
120297
+ }).passthrough();
120298
+ var internalCallbacksTelegramContract = c30.router({
120299
+ post: {
120300
+ method: "POST",
120301
+ path: "/api/internal/callbacks/telegram",
120302
+ headers: internalCallbackHeadersSchema,
120303
+ body: internalCallbackBodySchema.extend({
120304
+ payload: telegramCallbackPayloadSchema
120305
+ }),
120306
+ responses: {
120307
+ 200: internalCallbackSuccessSchema,
120308
+ 400: internalCallbackErrorSchema,
120309
+ 401: internalCallbackErrorSchema,
120310
+ 404: internalCallbackErrorSchema,
120311
+ 500: internalCallbackErrorSchema,
120312
+ 502: internalCallbackErrorSchema
120313
+ },
120314
+ summary: "Handle callbacks for Telegram-triggered runs"
120315
+ }
120316
+ });
120317
+
120318
+ // ../../packages/api-contracts/src/contracts/auth.ts
120319
+ init_esm_shims();
120320
+ var c31 = initContract();
120321
+ var authContract = c31.router({
120096
120322
  /**
120097
120323
  * GET /api/auth/me
120098
120324
  * Get current user information
@@ -120117,7 +120343,7 @@ var authContract = c30.router({
120117
120343
 
120118
120344
  // ../../packages/api-contracts/src/contracts/user-export.ts
120119
120345
  init_esm_shims();
120120
- var c31 = initContract();
120346
+ var c32 = initContract();
120121
120347
  var exportJobStatusSchema = external_exports.enum([
120122
120348
  "pending",
120123
120349
  "running",
@@ -120142,7 +120368,7 @@ var userExportStartResponseSchema = external_exports.object({
120142
120368
  jobId: external_exports.string().uuid(),
120143
120369
  status: external_exports.enum(["pending", "running"])
120144
120370
  });
120145
- var userExportContract = c31.router({
120371
+ var userExportContract = c32.router({
120146
120372
  get: {
120147
120373
  method: "GET",
120148
120374
  path: "/api/user/export",
@@ -120173,7 +120399,7 @@ var userExportContract = c31.router({
120173
120399
 
120174
120400
  // ../../packages/api-contracts/src/contracts/email-unsubscribe.ts
120175
120401
  init_esm_shims();
120176
- var c32 = initContract();
120402
+ var c33 = initContract();
120177
120403
  var emailUnsubscribeQuerySchema = external_exports.object({
120178
120404
  token: external_exports.string().optional()
120179
120405
  });
@@ -120183,13 +120409,13 @@ var emailUnsubscribeResponseSchema = external_exports.object({
120183
120409
  var emailUnsubscribeErrorSchema = external_exports.object({
120184
120410
  error: external_exports.string()
120185
120411
  });
120186
- var emailUnsubscribeContract = c32.router({
120412
+ var emailUnsubscribeContract = c33.router({
120187
120413
  get: {
120188
120414
  method: "GET",
120189
120415
  path: "/api/email/unsubscribe",
120190
120416
  query: emailUnsubscribeQuerySchema,
120191
120417
  responses: {
120192
- 200: c32.otherResponse({
120418
+ 200: c33.otherResponse({
120193
120419
  contentType: "text/html",
120194
120420
  body: external_exports.unknown()
120195
120421
  }),
@@ -120212,8 +120438,8 @@ var emailUnsubscribeContract = c32.router({
120212
120438
 
120213
120439
  // ../../packages/api-contracts/src/contracts/connectors-type-authorize.ts
120214
120440
  init_esm_shims();
120215
- var c33 = initContract();
120216
- var connectorsTypeAuthorizeContract = c33.router({
120441
+ var c34 = initContract();
120442
+ var connectorsTypeAuthorizeContract = c34.router({
120217
120443
  authorize: {
120218
120444
  method: "GET",
120219
120445
  path: "/api/connectors/:type/authorize",
@@ -120221,7 +120447,7 @@ var connectorsTypeAuthorizeContract = c33.router({
120221
120447
  pathParams: external_exports.object({ type: external_exports.string() }),
120222
120448
  query: external_exports.object({ session: external_exports.string().optional() }),
120223
120449
  responses: {
120224
- 307: c33.noBody(),
120450
+ 307: c34.noBody(),
120225
120451
  400: external_exports.object({ error: external_exports.string() }),
120226
120452
  500: external_exports.object({ error: external_exports.string() })
120227
120453
  },
@@ -120231,8 +120457,8 @@ var connectorsTypeAuthorizeContract = c33.router({
120231
120457
 
120232
120458
  // ../../packages/api-contracts/src/contracts/connectors-type-callback.ts
120233
120459
  init_esm_shims();
120234
- var c34 = initContract();
120235
- var connectorsTypeCallbackContract = c34.router({
120460
+ var c35 = initContract();
120461
+ var connectorsTypeCallbackContract = c35.router({
120236
120462
  callback: {
120237
120463
  method: "GET",
120238
120464
  path: "/api/connectors/:type/callback",
@@ -120245,7 +120471,7 @@ var connectorsTypeCallbackContract = c34.router({
120245
120471
  error_description: external_exports.string().optional()
120246
120472
  }),
120247
120473
  responses: {
120248
- 307: c34.noBody()
120474
+ 307: c35.noBody()
120249
120475
  },
120250
120476
  summary: "Complete connector OAuth authorization"
120251
120477
  }
@@ -120253,7 +120479,7 @@ var connectorsTypeCallbackContract = c34.router({
120253
120479
 
120254
120480
  // ../../packages/api-contracts/src/contracts/test-oauth-provider-authorize.ts
120255
120481
  init_esm_shims();
120256
- var c35 = initContract();
120482
+ var c36 = initContract();
120257
120483
  var testOAuthProviderAuthorizeErrorSchema = external_exports.object({
120258
120484
  error: external_exports.string()
120259
120485
  });
@@ -120265,13 +120491,13 @@ var testOAuthProviderAuthorizeQuerySchema = external_exports.object({
120265
120491
  scope: external_exports.string().optional(),
120266
120492
  state: external_exports.string().optional()
120267
120493
  });
120268
- var testOAuthProviderAuthorizeContract = c35.router({
120494
+ var testOAuthProviderAuthorizeContract = c36.router({
120269
120495
  authorize: {
120270
120496
  method: "GET",
120271
120497
  path: "/api/test/oauth-provider/authorize",
120272
120498
  query: testOAuthProviderAuthorizeQuerySchema,
120273
120499
  responses: {
120274
- 302: c35.noBody(),
120500
+ 302: c36.noBody(),
120275
120501
  400: testOAuthProviderAuthorizeErrorSchema,
120276
120502
  404: external_exports.string()
120277
120503
  },
@@ -120281,7 +120507,7 @@ var testOAuthProviderAuthorizeContract = c35.router({
120281
120507
 
120282
120508
  // ../../packages/api-contracts/src/contracts/test-oauth-provider-echo.ts
120283
120509
  init_esm_shims();
120284
- var c36 = initContract();
120510
+ var c37 = initContract();
120285
120511
  var testOAuthProviderEchoErrorSchema = external_exports.object({
120286
120512
  error: external_exports.string()
120287
120513
  });
@@ -120289,7 +120515,7 @@ var testOAuthProviderEchoResponseSchema = external_exports.object({
120289
120515
  authorization: external_exports.string(),
120290
120516
  receivedAt: external_exports.string()
120291
120517
  });
120292
- var testOAuthProviderEchoContract = c36.router({
120518
+ var testOAuthProviderEchoContract = c37.router({
120293
120519
  echo: {
120294
120520
  method: "GET",
120295
120521
  path: "/api/test/oauth-provider/echo",
@@ -120304,7 +120530,7 @@ var testOAuthProviderEchoContract = c36.router({
120304
120530
 
120305
120531
  // ../../packages/api-contracts/src/contracts/test-oauth-provider-token.ts
120306
120532
  init_esm_shims();
120307
- var c37 = initContract();
120533
+ var c38 = initContract();
120308
120534
  var testOAuthProviderTokenErrorSchema = external_exports.object({
120309
120535
  error: external_exports.string(),
120310
120536
  error_description: external_exports.string().optional()
@@ -120316,11 +120542,11 @@ var testOAuthProviderTokenResponseSchema = external_exports.object({
120316
120542
  expires_in: external_exports.number(),
120317
120543
  scope: external_exports.string()
120318
120544
  });
120319
- var testOAuthProviderTokenContract = c37.router({
120545
+ var testOAuthProviderTokenContract = c38.router({
120320
120546
  token: {
120321
120547
  method: "POST",
120322
120548
  path: "/api/test/oauth-provider/token",
120323
- body: c37.type(),
120549
+ body: c38.type(),
120324
120550
  responses: {
120325
120551
  200: testOAuthProviderTokenResponseSchema,
120326
120552
  400: testOAuthProviderTokenErrorSchema,
@@ -120333,7 +120559,7 @@ var testOAuthProviderTokenContract = c37.router({
120333
120559
 
120334
120560
  // ../../packages/api-contracts/src/contracts/test-oauth-provider-userinfo.ts
120335
120561
  init_esm_shims();
120336
- var c38 = initContract();
120562
+ var c39 = initContract();
120337
120563
  var testOAuthProviderUserinfoErrorSchema = external_exports.object({
120338
120564
  error: external_exports.string()
120339
120565
  });
@@ -120342,7 +120568,7 @@ var testOAuthProviderUserinfoResponseSchema = external_exports.object({
120342
120568
  id: external_exports.string(),
120343
120569
  username: external_exports.string()
120344
120570
  });
120345
- var testOAuthProviderUserinfoContract = c38.router({
120571
+ var testOAuthProviderUserinfoContract = c39.router({
120346
120572
  userinfo: {
120347
120573
  method: "GET",
120348
120574
  path: "/api/test/oauth-provider/userinfo",
@@ -120357,7 +120583,7 @@ var testOAuthProviderUserinfoContract = c38.router({
120357
120583
 
120358
120584
  // ../../packages/api-contracts/src/contracts/test-slack-state.ts
120359
120585
  init_esm_shims();
120360
- var c39 = initContract();
120586
+ var c40 = initContract();
120361
120587
  var testSlackStateErrorSchema = external_exports.object({
120362
120588
  error: external_exports.string()
120363
120589
  });
@@ -120442,7 +120668,7 @@ var testSlackStateResponseSchema = external_exports.object({
120442
120668
  })
120443
120669
  )
120444
120670
  });
120445
- var testSlackStateContract = c39.router({
120671
+ var testSlackStateContract = c40.router({
120446
120672
  get: {
120447
120673
  method: "GET",
120448
120674
  path: "/api/test/slack-state",
@@ -120484,7 +120710,7 @@ var testSlackStateContract = c39.router({
120484
120710
 
120485
120711
  // ../../packages/api-contracts/src/contracts/test-slack-mock.ts
120486
120712
  init_esm_shims();
120487
- var c40 = initContract();
120713
+ var c41 = initContract();
120488
120714
  var slackMockRequestBodySchema = external_exports.unknown().optional();
120489
120715
  var slackMockNotFoundSchema = external_exports.string();
120490
120716
  var testSlackMockOkResponseSchema = external_exports.object({
@@ -120550,7 +120776,7 @@ var testSlackMockUsersInfoResponseSchema = testSlackMockOkResponseSchema.extend(
120550
120776
  })
120551
120777
  })
120552
120778
  });
120553
- var testSlackMockContract = c40.router({
120779
+ var testSlackMockContract = c41.router({
120554
120780
  assistantThreadsSetStatus: {
120555
120781
  method: "POST",
120556
120782
  path: "/api/test/slack-mock/assistant.threads.setStatus",
@@ -120655,7 +120881,7 @@ var testSlackMockContract = c40.router({
120655
120881
 
120656
120882
  // ../../packages/api-contracts/src/contracts/test-telegram-mock.ts
120657
120883
  init_esm_shims();
120658
- var c41 = initContract();
120884
+ var c42 = initContract();
120659
120885
  var testTelegramMockPathParamsSchema = external_exports.object({
120660
120886
  botToken: external_exports.string(),
120661
120887
  method: external_exports.string()
@@ -120668,7 +120894,7 @@ var testTelegramMockErrorResponseSchema = external_exports.object({
120668
120894
  ok: external_exports.literal(false),
120669
120895
  description: external_exports.string()
120670
120896
  });
120671
- var testTelegramMockContract = c41.router({
120897
+ var testTelegramMockContract = c42.router({
120672
120898
  post: {
120673
120899
  method: "POST",
120674
120900
  path: "/api/test/telegram-mock/:botToken/:method",
@@ -120684,7 +120910,7 @@ var testTelegramMockContract = c41.router({
120684
120910
 
120685
120911
  // ../../packages/api-contracts/src/contracts/test-telegram-state.ts
120686
120912
  init_esm_shims();
120687
- var c42 = initContract();
120913
+ var c43 = initContract();
120688
120914
  var testTelegramStateQuerySchema = external_exports.object({
120689
120915
  bot_id: external_exports.string().optional()
120690
120916
  });
@@ -120726,7 +120952,7 @@ var testTelegramStateSeedResponseSchema = external_exports.object({
120726
120952
  user_link_id: external_exports.string().nullable(),
120727
120953
  default_agent_id: external_exports.string()
120728
120954
  });
120729
- var testTelegramStateContract = c42.router({
120955
+ var testTelegramStateContract = c43.router({
120730
120956
  get: {
120731
120957
  method: "GET",
120732
120958
  path: "/api/test/telegram-state",
@@ -120764,7 +120990,7 @@ var testTelegramStateContract = c42.router({
120764
120990
 
120765
120991
  // ../../packages/api-contracts/src/contracts/internal-event-consumers.ts
120766
120992
  init_esm_shims();
120767
- var c43 = initContract();
120993
+ var c44 = initContract();
120768
120994
  var eventConsumerHeadersSchema = external_exports.object({
120769
120995
  "x-vm0-signature": external_exports.string().optional(),
120770
120996
  "x-vm0-timestamp": external_exports.string().optional()
@@ -120784,7 +121010,7 @@ var eventConsumerPayloadSchema = external_exports.object({
120784
121010
  var eventConsumerUnauthorizedSchema = external_exports.object({
120785
121011
  error: external_exports.string()
120786
121012
  });
120787
- var internalEventConsumerTelegramTypingContract = c43.router({
121013
+ var internalEventConsumerTelegramTypingContract = c44.router({
120788
121014
  refresh: {
120789
121015
  method: "POST",
120790
121016
  path: "/api/internal/event-consumers/telegram-typing",
@@ -120797,7 +121023,7 @@ var internalEventConsumerTelegramTypingContract = c43.router({
120797
121023
  summary: "Refresh Telegram typing indicators for all pending callbacks of a run"
120798
121024
  }
120799
121025
  });
120800
- var internalEventConsumerAxiomContract = c43.router({
121026
+ var internalEventConsumerAxiomContract = c44.router({
120801
121027
  ingest: {
120802
121028
  method: "POST",
120803
121029
  path: "/api/internal/event-consumers/axiom",
@@ -120811,7 +121037,7 @@ var internalEventConsumerAxiomContract = c43.router({
120811
121037
  summary: "Ingest agent run events into Axiom"
120812
121038
  }
120813
121039
  });
120814
- var internalEventConsumerChatAssistantContract = c43.router({
121040
+ var internalEventConsumerChatAssistantContract = c44.router({
120815
121041
  process: {
120816
121042
  method: "POST",
120817
121043
  path: "/api/internal/event-consumers/chat-assistant",
@@ -120824,7 +121050,7 @@ var internalEventConsumerChatAssistantContract = c43.router({
120824
121050
  summary: "Persist assistant-visible run events into chat threads"
120825
121051
  }
120826
121052
  });
120827
- var internalEventConsumerVoiceChatContract = c43.router({
121053
+ var internalEventConsumerVoiceChatContract = c44.router({
120828
121054
  process: {
120829
121055
  method: "POST",
120830
121056
  path: "/api/internal/event-consumers/voice-chat",
@@ -120840,7 +121066,7 @@ var internalEventConsumerVoiceChatContract = c43.router({
120840
121066
 
120841
121067
  // ../../packages/api-contracts/src/contracts/cron.ts
120842
121068
  init_esm_shims();
120843
- var c44 = initContract();
121069
+ var c45 = initContract();
120844
121070
  var cleanupResultSchema = external_exports.object({
120845
121071
  runId: external_exports.string(),
120846
121072
  sandboxId: external_exports.string().nullable(),
@@ -120853,7 +121079,7 @@ var cleanupResponseSchema = external_exports.object({
120853
121079
  errors: external_exports.number(),
120854
121080
  results: external_exports.array(cleanupResultSchema)
120855
121081
  });
120856
- var cronCleanupSandboxesContract = c44.router({
121082
+ var cronCleanupSandboxesContract = c45.router({
120857
121083
  /**
120858
121084
  * GET /api/cron/cleanup-sandboxes
120859
121085
  * Cron job to cleanup sandboxes that have stopped sending heartbeats
@@ -120895,7 +121121,7 @@ var cronAggregateInsightsResponseSchema = external_exports.union([
120895
121121
  cronAggregateInsightsSkippedResponseSchema,
120896
121122
  cronAggregateInsightsAggregatedResponseSchema
120897
121123
  ]);
120898
- var cronAggregateUsageContract = c44.router({
121124
+ var cronAggregateUsageContract = c45.router({
120899
121125
  aggregate: {
120900
121126
  method: "GET",
120901
121127
  path: "/api/cron/aggregate-usage",
@@ -120907,7 +121133,7 @@ var cronAggregateUsageContract = c44.router({
120907
121133
  summary: "Aggregate daily usage cache"
120908
121134
  }
120909
121135
  });
120910
- var cronProcessUsageEventsContract = c44.router({
121136
+ var cronProcessUsageEventsContract = c45.router({
120911
121137
  process: {
120912
121138
  method: "GET",
120913
121139
  path: "/api/cron/process-usage-events",
@@ -120919,7 +121145,7 @@ var cronProcessUsageEventsContract = c44.router({
120919
121145
  summary: "Process pending usage events"
120920
121146
  }
120921
121147
  });
120922
- var cronReconcileBillingEntitlementsContract = c44.router({
121148
+ var cronReconcileBillingEntitlementsContract = c45.router({
120923
121149
  reconcile: {
120924
121150
  method: "GET",
120925
121151
  path: "/api/cron/reconcile-billing-entitlements",
@@ -120931,7 +121157,7 @@ var cronReconcileBillingEntitlementsContract = c44.router({
120931
121157
  summary: "Reconcile billing entitlements"
120932
121158
  }
120933
121159
  });
120934
- var cronAggregateInsightsContract = c44.router({
121160
+ var cronAggregateInsightsContract = c45.router({
120935
121161
  aggregate: {
120936
121162
  method: "GET",
120937
121163
  path: "/api/cron/aggregate-insights",
@@ -120946,7 +121172,7 @@ var cronAggregateInsightsContract = c44.router({
120946
121172
 
120947
121173
  // ../../packages/api-contracts/src/contracts/chat-threads-v1.ts
120948
121174
  init_esm_shims();
120949
- var c45 = initContract();
121175
+ var c46 = initContract();
120950
121176
  var v1ThreadSchema = external_exports.object({
120951
121177
  id: external_exports.string(),
120952
121178
  title: external_exports.string().nullable(),
@@ -120960,7 +121186,7 @@ var v1MessageSchema = external_exports.object({
120960
121186
  error: external_exports.string().optional(),
120961
121187
  createdAt: external_exports.string()
120962
121188
  });
120963
- var chatThreadV1GetContract = c45.router({
121189
+ var chatThreadV1GetContract = c46.router({
120964
121190
  get: {
120965
121191
  method: "GET",
120966
121192
  path: "/api/v1/chat-threads/:threadId",
@@ -120975,7 +121201,7 @@ var chatThreadV1GetContract = c45.router({
120975
121201
  summary: "Get a chat thread"
120976
121202
  }
120977
121203
  });
120978
- var chatThreadV1MessagesContract = c45.router({
121204
+ var chatThreadV1MessagesContract = c46.router({
120979
121205
  list: {
120980
121206
  method: "GET",
120981
121207
  path: "/api/v1/chat-threads/:threadId/messages",
@@ -120995,7 +121221,7 @@ var chatThreadV1MessagesContract = c45.router({
120995
121221
  summary: "List messages in a chat thread"
120996
121222
  }
120997
121223
  });
120998
- var chatThreadV1SendContract = c45.router({
121224
+ var chatThreadV1SendContract = c46.router({
120999
121225
  send: {
121000
121226
  method: "POST",
121001
121227
  path: "/api/v1/chat-threads/messages",
@@ -121026,7 +121252,7 @@ var chatThreadV1SendContract = c45.router({
121026
121252
 
121027
121253
  // ../../packages/api-contracts/src/contracts/device-token.ts
121028
121254
  init_esm_shims();
121029
- var c46 = initContract();
121255
+ var c47 = initContract();
121030
121256
  var bb0DeviceCodeSchema = external_exports.string().regex(/^[A-Z2-9]{4}-[A-Z2-9]{4}$/);
121031
121257
  var bleSessionNonceSchema = external_exports.string().min(16).max(128).regex(/^[A-Za-z0-9._:-]+$/);
121032
121258
  var pollTokenSchema = external_exports.string().min(32).max(256).regex(/^[A-Za-z0-9._-]+$/);
@@ -121065,7 +121291,7 @@ var confirmBb0DeviceRequestSchema = external_exports.object({
121065
121291
  var confirmBb0DeviceResponseSchema = external_exports.object({
121066
121292
  status: external_exports.literal("approved")
121067
121293
  });
121068
- var deviceTokenContract = c46.router({
121294
+ var deviceTokenContract = c47.router({
121069
121295
  create: {
121070
121296
  method: "POST",
121071
121297
  path: "/api/device-token",
@@ -121090,7 +121316,7 @@ var deviceTokenContract = c46.router({
121090
121316
  summary: "Poll a bb0 device code for approval and final credentials"
121091
121317
  }
121092
121318
  });
121093
- var bb0DeviceConfirmContract = c46.router({
121319
+ var bb0DeviceConfirmContract = c47.router({
121094
121320
  confirm: {
121095
121321
  method: "POST",
121096
121322
  path: "/api/zero/devices/bb0/confirm",
@@ -121109,16 +121335,16 @@ var bb0DeviceConfirmContract = c46.router({
121109
121335
 
121110
121336
  // ../../packages/api-contracts/src/contracts/audio-transcriptions-v1.ts
121111
121337
  init_esm_shims();
121112
- var c47 = initContract();
121338
+ var c48 = initContract();
121113
121339
  var audioTranscriptionV1Schema = external_exports.object({
121114
121340
  text: external_exports.string()
121115
121341
  });
121116
- var audioTranscriptionsV1Contract = c47.router({
121342
+ var audioTranscriptionsV1Contract = c48.router({
121117
121343
  transcribe: {
121118
121344
  method: "POST",
121119
121345
  path: "/api/v1/audio/transcriptions",
121120
121346
  headers: authHeadersSchema,
121121
- body: c47.type(),
121347
+ body: c48.type(),
121122
121348
  responses: {
121123
121349
  200: audioTranscriptionV1Schema,
121124
121350
  400: apiErrorSchema,
@@ -121135,7 +121361,7 @@ var audioTranscriptionsV1Contract = c47.router({
121135
121361
 
121136
121362
  // ../../packages/api-contracts/src/contracts/generate-image.ts
121137
121363
  init_esm_shims();
121138
- var c48 = initContract();
121364
+ var c49 = initContract();
121139
121365
  var generateImageRequestSchema = external_exports.object({
121140
121366
  prompt: external_exports.unknown().optional()
121141
121367
  }).passthrough();
@@ -121146,7 +121372,7 @@ var generatedImageSchema = external_exports.object({
121146
121372
  var generateImageResponseSchema = external_exports.object({
121147
121373
  images: external_exports.array(generatedImageSchema)
121148
121374
  });
121149
- var generateImageContract = c48.router({
121375
+ var generateImageContract = c49.router({
121150
121376
  post: {
121151
121377
  method: "POST",
121152
121378
  path: "/api/generate-image",
@@ -121247,14 +121473,14 @@ function findMatchingPermissions(method, path3, config4) {
121247
121473
 
121248
121474
  // ../../packages/api-contracts/src/contracts/zero-feature-switches.ts
121249
121475
  init_esm_shims();
121250
- var c49 = initContract();
121476
+ var c50 = initContract();
121251
121477
  var featureSwitchesResponseSchema = external_exports.object({
121252
121478
  switches: external_exports.record(external_exports.string(), external_exports.boolean())
121253
121479
  });
121254
121480
  var updateFeatureSwitchesRequestSchema = external_exports.object({
121255
121481
  switches: external_exports.record(external_exports.string(), external_exports.boolean())
121256
121482
  });
121257
- var zeroFeatureSwitchesContract = c49.router({
121483
+ var zeroFeatureSwitchesContract = c50.router({
121258
121484
  get: {
121259
121485
  method: "GET",
121260
121486
  path: "/api/zero/feature-switches",
@@ -121283,7 +121509,7 @@ var zeroFeatureSwitchesContract = c49.router({
121283
121509
  method: "DELETE",
121284
121510
  path: "/api/zero/feature-switches",
121285
121511
  headers: authHeadersSchema,
121286
- body: c49.noBody(),
121512
+ body: c50.noBody(),
121287
121513
  responses: {
121288
121514
  200: external_exports.object({ deleted: external_exports.literal(true) }),
121289
121515
  401: apiErrorSchema,
@@ -121295,7 +121521,7 @@ var zeroFeatureSwitchesContract = c49.router({
121295
121521
 
121296
121522
  // ../../packages/api-contracts/src/contracts/onboarding.ts
121297
121523
  init_esm_shims();
121298
- var c50 = initContract();
121524
+ var c51 = initContract();
121299
121525
  var onboardingStatusResponseSchema = external_exports.object({
121300
121526
  needsOnboarding: external_exports.boolean(),
121301
121527
  isAdmin: external_exports.boolean(),
@@ -121308,7 +121534,7 @@ var onboardingStatusResponseSchema = external_exports.object({
121308
121534
  sound: external_exports.string().optional()
121309
121535
  }).nullable()
121310
121536
  });
121311
- var onboardingStatusContract = c50.router({
121537
+ var onboardingStatusContract = c51.router({
121312
121538
  getStatus: {
121313
121539
  method: "GET",
121314
121540
  path: "/api/zero/onboarding/status",
@@ -121320,7 +121546,7 @@ var onboardingStatusContract = c50.router({
121320
121546
  summary: "Get onboarding status for current user"
121321
121547
  }
121322
121548
  });
121323
- var onboardingCompleteContract = c50.router({
121549
+ var onboardingCompleteContract = c51.router({
121324
121550
  complete: {
121325
121551
  method: "POST",
121326
121552
  path: "/api/zero/onboarding/complete",
@@ -121335,7 +121561,7 @@ var onboardingCompleteContract = c50.router({
121335
121561
  summary: "Mark member onboarding as complete"
121336
121562
  }
121337
121563
  });
121338
- var onboardingSetupContract = c50.router({
121564
+ var onboardingSetupContract = c51.router({
121339
121565
  setup: {
121340
121566
  method: "POST",
121341
121567
  path: "/api/zero/onboarding/setup",
@@ -121368,12 +121594,12 @@ var skillFrontmatterSchema = external_exports.object({
121368
121594
 
121369
121595
  // ../../packages/api-contracts/src/contracts/zero-org-logo.ts
121370
121596
  init_esm_shims();
121371
- var c51 = initContract();
121597
+ var c52 = initContract();
121372
121598
  var zeroOrgLogoResponseSchema = external_exports.object({
121373
121599
  logoUrl: external_exports.string().nullable(),
121374
121600
  hasImage: external_exports.boolean()
121375
121601
  });
121376
- var zeroOrgLogoContract = c51.router({
121602
+ var zeroOrgLogoContract = c52.router({
121377
121603
  get: {
121378
121604
  method: "GET",
121379
121605
  path: "/api/zero/org/logo",
@@ -121390,7 +121616,7 @@ var zeroOrgLogoContract = c51.router({
121390
121616
  path: "/api/zero/org/logo",
121391
121617
  headers: authHeadersSchema,
121392
121618
  contentType: "multipart/form-data",
121393
- body: c51.type(),
121619
+ body: c52.type(),
121394
121620
  responses: {
121395
121621
  200: zeroOrgLogoResponseSchema,
121396
121622
  400: apiErrorSchema,
@@ -121417,8 +121643,8 @@ var zeroOrgLogoContract = c51.router({
121417
121643
 
121418
121644
  // ../../packages/api-contracts/src/contracts/zero-org-domains.ts
121419
121645
  init_esm_shims();
121420
- var c52 = initContract();
121421
- var zeroOrgDomainsContract = c52.router({
121646
+ var c53 = initContract();
121647
+ var zeroOrgDomainsContract = c53.router({
121422
121648
  list: {
121423
121649
  method: "GET",
121424
121650
  path: "/api/zero/org/domains",
@@ -121475,8 +121701,8 @@ var zeroOrgDomainsContract = c52.router({
121475
121701
 
121476
121702
  // ../../packages/api-contracts/src/contracts/zero-composes.ts
121477
121703
  init_esm_shims();
121478
- var c53 = initContract();
121479
- var zeroComposesMainContract = c53.router({
121704
+ var c54 = initContract();
121705
+ var zeroComposesMainContract = c54.router({
121480
121706
  getByName: {
121481
121707
  method: "GET",
121482
121708
  path: "/api/zero/composes",
@@ -121494,7 +121720,7 @@ var zeroComposesMainContract = c53.router({
121494
121720
  summary: "Get agent compose by name (zero proxy)"
121495
121721
  }
121496
121722
  });
121497
- var zeroComposesByIdContract = c53.router({
121723
+ var zeroComposesByIdContract = c54.router({
121498
121724
  getById: {
121499
121725
  method: "GET",
121500
121726
  path: "/api/zero/composes/:id",
@@ -121518,9 +121744,9 @@ var zeroComposesByIdContract = c53.router({
121518
121744
  pathParams: external_exports.object({
121519
121745
  id: external_exports.string().uuid("Compose ID is required")
121520
121746
  }),
121521
- body: c53.noBody(),
121747
+ body: c54.noBody(),
121522
121748
  responses: {
121523
- 204: c53.noBody(),
121749
+ 204: c54.noBody(),
121524
121750
  401: apiErrorSchema,
121525
121751
  403: apiErrorSchema,
121526
121752
  404: apiErrorSchema,
@@ -121529,7 +121755,7 @@ var zeroComposesByIdContract = c53.router({
121529
121755
  summary: "Delete agent compose (zero proxy)"
121530
121756
  }
121531
121757
  });
121532
- var zeroComposesMetadataContract = c53.router({
121758
+ var zeroComposesMetadataContract = c54.router({
121533
121759
  update: {
121534
121760
  method: "PATCH",
121535
121761
  path: "/api/zero/composes/:id/metadata",
@@ -121550,7 +121776,7 @@ var zeroComposesMetadataContract = c53.router({
121550
121776
  summary: "Update agent compose metadata (zero proxy)"
121551
121777
  }
121552
121778
  });
121553
- var zeroComposesListContract = c53.router({
121779
+ var zeroComposesListContract = c54.router({
121554
121780
  list: {
121555
121781
  method: "GET",
121556
121782
  path: "/api/zero/composes/list",
@@ -121570,8 +121796,8 @@ var zeroComposesListContract = c53.router({
121570
121796
 
121571
121797
  // ../../packages/api-contracts/src/contracts/zero-personal-model-providers.ts
121572
121798
  init_esm_shims();
121573
- var c54 = initContract();
121574
- var zeroPersonalModelProvidersMainContract = c54.router({
121799
+ var c55 = initContract();
121800
+ var zeroPersonalModelProvidersMainContract = c55.router({
121575
121801
  list: {
121576
121802
  method: "GET",
121577
121803
  path: "/api/zero/me/model-providers",
@@ -121600,7 +121826,7 @@ var zeroPersonalModelProvidersMainContract = c54.router({
121600
121826
  summary: "Create or update a personal model provider for the requesting user"
121601
121827
  }
121602
121828
  });
121603
- var zeroPersonalModelProvidersByTypeContract = c54.router({
121829
+ var zeroPersonalModelProvidersByTypeContract = c55.router({
121604
121830
  delete: {
121605
121831
  method: "DELETE",
121606
121832
  path: "/api/zero/me/model-providers/:type",
@@ -121609,7 +121835,7 @@ var zeroPersonalModelProvidersByTypeContract = c54.router({
121609
121835
  type: modelProviderTypeSchema
121610
121836
  }),
121611
121837
  responses: {
121612
- 204: c54.noBody(),
121838
+ 204: c55.noBody(),
121613
121839
  401: apiErrorSchema,
121614
121840
  404: apiErrorSchema,
121615
121841
  500: apiErrorSchema
@@ -121617,13 +121843,13 @@ var zeroPersonalModelProvidersByTypeContract = c54.router({
121617
121843
  summary: "Delete a personal model provider for the requesting user"
121618
121844
  }
121619
121845
  });
121620
- var zeroPersonalModelProvidersCodexOauthContract = c54.router({
121846
+ var zeroPersonalModelProvidersCodexOauthContract = c55.router({
121621
121847
  authorize: {
121622
121848
  method: "GET",
121623
121849
  path: "/api/zero/me/model-providers/codex-oauth-token/oauth/authorize",
121624
121850
  headers: authHeadersSchema,
121625
121851
  responses: {
121626
- 307: c54.noBody(),
121852
+ 307: c55.noBody(),
121627
121853
  404: external_exports.object({ error: external_exports.string() }),
121628
121854
  500: external_exports.object({ error: external_exports.string() })
121629
121855
  },
@@ -121640,7 +121866,7 @@ var zeroPersonalModelProvidersCodexOauthContract = c54.router({
121640
121866
  error_description: external_exports.string().optional()
121641
121867
  }),
121642
121868
  responses: {
121643
- 307: c54.noBody()
121869
+ 307: c55.noBody()
121644
121870
  },
121645
121871
  summary: "Complete Codex OAuth for a personal model provider"
121646
121872
  }
@@ -121648,7 +121874,7 @@ var zeroPersonalModelProvidersCodexOauthContract = c54.router({
121648
121874
 
121649
121875
  // ../../packages/api-contracts/src/contracts/api-keys.ts
121650
121876
  init_esm_shims();
121651
- var c55 = initContract();
121877
+ var c56 = initContract();
121652
121878
  var apiKeyItemSchema = external_exports.object({
121653
121879
  id: external_exports.string().uuid(),
121654
121880
  name: external_exports.string(),
@@ -121667,7 +121893,7 @@ var createApiKeyRequestSchema = external_exports.object({
121667
121893
  var createApiKeyResponseSchema = apiKeyItemSchema.extend({
121668
121894
  token: external_exports.string()
121669
121895
  });
121670
- var apiKeysContract = c55.router({
121896
+ var apiKeysContract = c56.router({
121671
121897
  list: {
121672
121898
  method: "GET",
121673
121899
  path: "/api/zero/api-keys",
@@ -121693,14 +121919,14 @@ var apiKeysContract = c55.router({
121693
121919
  summary: "Create a new API key (token returned once)"
121694
121920
  }
121695
121921
  });
121696
- var apiKeysByIdContract = c55.router({
121922
+ var apiKeysByIdContract = c56.router({
121697
121923
  delete: {
121698
121924
  method: "DELETE",
121699
121925
  path: "/api/zero/api-keys/:id",
121700
121926
  headers: authHeadersSchema,
121701
121927
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
121702
121928
  responses: {
121703
- 204: c55.noBody(),
121929
+ 204: c56.noBody(),
121704
121930
  401: apiErrorSchema,
121705
121931
  404: apiErrorSchema,
121706
121932
  500: apiErrorSchema
@@ -121711,7 +121937,7 @@ var apiKeysByIdContract = c55.router({
121711
121937
 
121712
121938
  // ../../packages/api-contracts/src/contracts/zero-custom-connectors.ts
121713
121939
  init_esm_shims();
121714
- var c56 = initContract();
121940
+ var c57 = initContract();
121715
121941
  var customConnectorResponseSchema = external_exports.object({
121716
121942
  id: external_exports.string().uuid(),
121717
121943
  slug: external_exports.string(),
@@ -121739,7 +121965,7 @@ var setCustomConnectorSecretBodySchema = external_exports.object({
121739
121965
  var patchCustomConnectorBodySchema = external_exports.object({
121740
121966
  displayName: external_exports.string().min(1).max(128)
121741
121967
  });
121742
- var zeroCustomConnectorsContract = c56.router({
121968
+ var zeroCustomConnectorsContract = c57.router({
121743
121969
  list: {
121744
121970
  method: "GET",
121745
121971
  path: "/api/zero/custom-connectors",
@@ -121766,14 +121992,14 @@ var zeroCustomConnectorsContract = c56.router({
121766
121992
  summary: "Create an org custom connector"
121767
121993
  }
121768
121994
  });
121769
- var zeroCustomConnectorByIdContract = c56.router({
121995
+ var zeroCustomConnectorByIdContract = c57.router({
121770
121996
  delete: {
121771
121997
  method: "DELETE",
121772
121998
  path: "/api/zero/custom-connectors/:id",
121773
121999
  headers: authHeadersSchema,
121774
122000
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
121775
122001
  responses: {
121776
- 204: c56.noBody(),
122002
+ 204: c57.noBody(),
121777
122003
  401: apiErrorSchema,
121778
122004
  403: apiErrorSchema,
121779
122005
  404: apiErrorSchema,
@@ -121798,7 +122024,7 @@ var zeroCustomConnectorByIdContract = c56.router({
121798
122024
  summary: "Rename an org custom connector"
121799
122025
  }
121800
122026
  });
121801
- var zeroCustomConnectorSecretContract = c56.router({
122027
+ var zeroCustomConnectorSecretContract = c57.router({
121802
122028
  set: {
121803
122029
  method: "PUT",
121804
122030
  path: "/api/zero/custom-connectors/:id/secret",
@@ -121806,7 +122032,7 @@ var zeroCustomConnectorSecretContract = c56.router({
121806
122032
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
121807
122033
  body: setCustomConnectorSecretBodySchema,
121808
122034
  responses: {
121809
- 204: c56.noBody(),
122035
+ 204: c57.noBody(),
121810
122036
  400: apiErrorSchema,
121811
122037
  401: apiErrorSchema,
121812
122038
  404: apiErrorSchema,
@@ -121820,7 +122046,7 @@ var zeroCustomConnectorSecretContract = c56.router({
121820
122046
  headers: authHeadersSchema,
121821
122047
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
121822
122048
  responses: {
121823
- 204: c56.noBody(),
122049
+ 204: c57.noBody(),
121824
122050
  401: apiErrorSchema,
121825
122051
  404: apiErrorSchema,
121826
122052
  500: apiErrorSchema
@@ -121831,11 +122057,11 @@ var zeroCustomConnectorSecretContract = c56.router({
121831
122057
 
121832
122058
  // ../../packages/api-contracts/src/contracts/zero-agent-custom-connectors.ts
121833
122059
  init_esm_shims();
121834
- var c57 = initContract();
122060
+ var c58 = initContract();
121835
122061
  var agentCustomConnectorEnabledIdsSchema = external_exports.object({
121836
122062
  enabledIds: external_exports.array(external_exports.string().uuid())
121837
122063
  });
121838
- var zeroAgentCustomConnectorsContract = c57.router({
122064
+ var zeroAgentCustomConnectorsContract = c58.router({
121839
122065
  get: {
121840
122066
  method: "GET",
121841
122067
  path: "/api/zero/agents/:id/custom-connectors",
@@ -121868,7 +122094,7 @@ var zeroAgentCustomConnectorsContract = c57.router({
121868
122094
 
121869
122095
  // ../../packages/api-contracts/src/contracts/integrations-github.ts
121870
122096
  init_esm_shims();
121871
- var c58 = initContract();
122097
+ var c59 = initContract();
121872
122098
  var githubInstallationEnvironmentSchema = external_exports.object({
121873
122099
  requiredSecrets: external_exports.array(external_exports.string()),
121874
122100
  requiredVars: external_exports.array(external_exports.string()),
@@ -121902,7 +122128,7 @@ var patchGithubInstallationBodySchema = external_exports.object({
121902
122128
  var updateGithubInstallationResponseSchema = external_exports.object({
121903
122129
  ok: external_exports.literal(true)
121904
122130
  });
121905
- var integrationsGithubContract = c58.router({
122131
+ var integrationsGithubContract = c59.router({
121906
122132
  getInstallation: {
121907
122133
  method: "GET",
121908
122134
  path: "/api/integrations/github",
@@ -121920,7 +122146,7 @@ var integrationsGithubContract = c58.router({
121920
122146
  method: "DELETE",
121921
122147
  path: "/api/integrations/github",
121922
122148
  headers: authHeadersSchema,
121923
- body: c58.noBody(),
122149
+ body: c59.noBody(),
121924
122150
  responses: {
121925
122151
  200: deleteGithubInstallationResponseSchema,
121926
122152
  401: apiErrorSchema,
@@ -121949,7 +122175,7 @@ var integrationsGithubContract = c58.router({
121949
122175
 
121950
122176
  // ../../packages/api-contracts/src/contracts/github-oauth.ts
121951
122177
  init_esm_shims();
121952
- var c59 = initContract();
122178
+ var c60 = initContract();
121953
122179
  var jsonErrorSchema = external_exports.object({ error: external_exports.string() });
121954
122180
  var githubOauthInstallQuerySchema = external_exports.object({
121955
122181
  vm0UserId: external_exports.string().optional(),
@@ -121962,13 +122188,13 @@ var githubOauthCallbackQuerySchema = external_exports.object({
121962
122188
  target_id: external_exports.string().optional(),
121963
122189
  target_type: external_exports.string().optional()
121964
122190
  });
121965
- var githubOauthContract = c59.router({
122191
+ var githubOauthContract = c60.router({
121966
122192
  install: {
121967
122193
  method: "GET",
121968
122194
  path: "/api/github/oauth/install",
121969
122195
  query: githubOauthInstallQuerySchema,
121970
122196
  responses: {
121971
- 307: c59.noBody(),
122197
+ 307: c60.noBody(),
121972
122198
  503: jsonErrorSchema
121973
122199
  },
121974
122200
  summary: "Start GitHub App OAuth install"
@@ -121978,7 +122204,7 @@ var githubOauthContract = c59.router({
121978
122204
  path: "/api/github/oauth/callback",
121979
122205
  query: githubOauthCallbackQuerySchema,
121980
122206
  responses: {
121981
- 307: c59.noBody()
122207
+ 307: c60.noBody()
121982
122208
  },
121983
122209
  summary: "Handle GitHub App OAuth callback"
121984
122210
  }
@@ -121986,7 +122212,7 @@ var githubOauthContract = c59.router({
121986
122212
 
121987
122213
  // ../../packages/api-contracts/src/contracts/zero-billing.ts
121988
122214
  init_esm_shims();
121989
- var c60 = initContract();
122215
+ var c61 = initContract();
121990
122216
  var autoRechargeSchema = external_exports.object({
121991
122217
  enabled: external_exports.boolean(),
121992
122218
  threshold: external_exports.number().nullable(),
@@ -122074,7 +122300,7 @@ var redeemRequestSchema = external_exports.object({
122074
122300
  successUrl: external_exports.string().url(),
122075
122301
  cancelUrl: external_exports.string().url()
122076
122302
  });
122077
- var zeroBillingStatusContract = c60.router({
122303
+ var zeroBillingStatusContract = c61.router({
122078
122304
  get: {
122079
122305
  method: "GET",
122080
122306
  path: "/api/zero/billing/status",
@@ -122087,7 +122313,7 @@ var zeroBillingStatusContract = c60.router({
122087
122313
  summary: "Get billing status for current org"
122088
122314
  }
122089
122315
  });
122090
- var zeroBillingCheckoutContract = c60.router({
122316
+ var zeroBillingCheckoutContract = c61.router({
122091
122317
  create: {
122092
122318
  method: "POST",
122093
122319
  path: "/api/zero/billing/checkout",
@@ -122104,7 +122330,7 @@ var zeroBillingCheckoutContract = c60.router({
122104
122330
  summary: "Create Stripe checkout session"
122105
122331
  }
122106
122332
  });
122107
- var zeroBillingPortalContract = c60.router({
122333
+ var zeroBillingPortalContract = c61.router({
122108
122334
  create: {
122109
122335
  method: "POST",
122110
122336
  path: "/api/zero/billing/portal",
@@ -122121,7 +122347,7 @@ var zeroBillingPortalContract = c60.router({
122121
122347
  summary: "Create Stripe billing portal session"
122122
122348
  }
122123
122349
  });
122124
- var zeroBillingAutoRechargeContract = c60.router({
122350
+ var zeroBillingAutoRechargeContract = c61.router({
122125
122351
  get: {
122126
122352
  method: "GET",
122127
122353
  path: "/api/zero/billing/auto-recharge",
@@ -122159,7 +122385,7 @@ var invoiceSchema = external_exports.object({
122159
122385
  var billingInvoicesResponseSchema = external_exports.object({
122160
122386
  invoices: external_exports.array(invoiceSchema)
122161
122387
  });
122162
- var zeroBillingInvoicesContract = c60.router({
122388
+ var zeroBillingInvoicesContract = c61.router({
122163
122389
  get: {
122164
122390
  method: "GET",
122165
122391
  path: "/api/zero/billing/invoices",
@@ -122180,7 +122406,7 @@ var downgradeResponseSchema = external_exports.object({
122180
122406
  success: external_exports.boolean(),
122181
122407
  effectiveDate: external_exports.string().nullable()
122182
122408
  });
122183
- var zeroBillingDowngradeContract = c60.router({
122409
+ var zeroBillingDowngradeContract = c61.router({
122184
122410
  create: {
122185
122411
  method: "POST",
122186
122412
  path: "/api/zero/billing/downgrade",
@@ -122198,7 +122424,7 @@ var zeroBillingDowngradeContract = c60.router({
122198
122424
  summary: "Downgrade subscription to a lower tier"
122199
122425
  }
122200
122426
  });
122201
- var zeroBillingRedeemContract = c60.router({
122427
+ var zeroBillingRedeemContract = c61.router({
122202
122428
  create: {
122203
122429
  method: "POST",
122204
122430
  path: "/api/zero/billing/redeem/:campaign",
@@ -122219,7 +122445,7 @@ var zeroBillingRedeemContract = c60.router({
122219
122445
 
122220
122446
  // ../../packages/api-contracts/src/contracts/zero-usage.ts
122221
122447
  init_esm_shims();
122222
- var c61 = initContract();
122448
+ var c62 = initContract();
122223
122449
  var memberUsageSchema = external_exports.object({
122224
122450
  userId: external_exports.string(),
122225
122451
  email: external_exports.string(),
@@ -122237,7 +122463,7 @@ var usageMembersResponseSchema = external_exports.object({
122237
122463
  }).nullable(),
122238
122464
  members: external_exports.array(memberUsageSchema)
122239
122465
  });
122240
- var zeroUsageMembersContract = c61.router({
122466
+ var zeroUsageMembersContract = c62.router({
122241
122467
  get: {
122242
122468
  method: "GET",
122243
122469
  path: "/api/zero/usage/members",
@@ -122253,7 +122479,7 @@ var zeroUsageMembersContract = c61.router({
122253
122479
 
122254
122480
  // ../../packages/api-contracts/src/contracts/zero-usage-daily.ts
122255
122481
  init_esm_shims();
122256
- var c62 = initContract();
122482
+ var c63 = initContract();
122257
122483
  var usageRunSchema = external_exports.object({
122258
122484
  runId: external_exports.string(),
122259
122485
  agentName: external_exports.string().nullable(),
@@ -122280,7 +122506,7 @@ var usageRunsResponseSchema = external_exports.object({
122280
122506
  total: external_exports.number()
122281
122507
  })
122282
122508
  });
122283
- var zeroUsageRunsContract = c62.router({
122509
+ var zeroUsageRunsContract = c63.router({
122284
122510
  get: {
122285
122511
  method: "GET",
122286
122512
  path: "/api/zero/usage/runs",
@@ -122306,7 +122532,7 @@ var zeroUsageRunsContract = c62.router({
122306
122532
 
122307
122533
  // ../../packages/api-contracts/src/contracts/zero-usage-insight.ts
122308
122534
  init_esm_shims();
122309
- var c63 = initContract();
122535
+ var c64 = initContract();
122310
122536
  var usageInsightBucketSchema = external_exports.object({
122311
122537
  ts: external_exports.string(),
122312
122538
  // ISO string for the bucket start
@@ -122343,7 +122569,7 @@ var usageInsightResponseSchema = external_exports.object({
122343
122569
  grandTotalCredits: external_exports.number(),
122344
122570
  grandTotalTokens: external_exports.number()
122345
122571
  });
122346
- var zeroUsageInsightContract = c63.router({
122572
+ var zeroUsageInsightContract = c64.router({
122347
122573
  get: {
122348
122574
  method: "GET",
122349
122575
  path: "/api/zero/usage/insight",
@@ -122366,7 +122592,7 @@ var zeroUsageInsightContract = c63.router({
122366
122592
 
122367
122593
  // ../../packages/api-contracts/src/contracts/usage.ts
122368
122594
  init_esm_shims();
122369
- var c64 = initContract();
122595
+ var c65 = initContract();
122370
122596
  var dailyUsageSchema = external_exports.object({
122371
122597
  date: external_exports.string(),
122372
122598
  run_count: external_exports.number(),
@@ -122383,7 +122609,7 @@ var usageResponseSchema = external_exports.object({
122383
122609
  }),
122384
122610
  daily: external_exports.array(dailyUsageSchema)
122385
122611
  });
122386
- var usageContract = c64.router({
122612
+ var usageContract = c65.router({
122387
122613
  get: {
122388
122614
  method: "GET",
122389
122615
  path: "/api/usage",
@@ -122404,7 +122630,7 @@ var usageContract = c64.router({
122404
122630
 
122405
122631
  // ../../packages/api-contracts/src/contracts/zero-team.ts
122406
122632
  init_esm_shims();
122407
- var c65 = initContract();
122633
+ var c66 = initContract();
122408
122634
  var teamComposeItemSchema = external_exports.object({
122409
122635
  id: external_exports.string(),
122410
122636
  ownerId: external_exports.string().optional(),
@@ -122416,7 +122642,7 @@ var teamComposeItemSchema = external_exports.object({
122416
122642
  headVersionId: external_exports.string().nullable(),
122417
122643
  updatedAt: external_exports.string()
122418
122644
  });
122419
- var zeroTeamContract = c65.router({
122645
+ var zeroTeamContract = c66.router({
122420
122646
  list: {
122421
122647
  method: "GET",
122422
122648
  path: "/api/zero/team",
@@ -122433,7 +122659,7 @@ var zeroTeamContract = c65.router({
122433
122659
 
122434
122660
  // ../../packages/api-contracts/src/contracts/zero-integrations-slack.ts
122435
122661
  init_esm_shims();
122436
- var c66 = initContract();
122662
+ var c67 = initContract();
122437
122663
  var slackEnvironmentSchema = external_exports.object({
122438
122664
  requiredSecrets: external_exports.array(external_exports.string()),
122439
122665
  requiredVars: external_exports.array(external_exports.string()),
@@ -122455,7 +122681,7 @@ var slackOrgStatusSchema = external_exports.object({
122455
122681
  /** OAuth install URL for re-authorization (admin-only, when scopeMismatch). */
122456
122682
  reinstallUrl: external_exports.string().nullable().optional()
122457
122683
  });
122458
- var zeroIntegrationsSlackContract = c66.router({
122684
+ var zeroIntegrationsSlackContract = c67.router({
122459
122685
  getStatus: {
122460
122686
  method: "GET",
122461
122687
  path: "/api/zero/integrations/slack",
@@ -122470,7 +122696,7 @@ var zeroIntegrationsSlackContract = c66.router({
122470
122696
  method: "DELETE",
122471
122697
  path: "/api/zero/integrations/slack",
122472
122698
  headers: authHeadersSchema,
122473
- body: c66.noBody(),
122699
+ body: c67.noBody(),
122474
122700
  query: external_exports.object({
122475
122701
  action: external_exports.string().optional()
122476
122702
  }),
@@ -122486,7 +122712,7 @@ var zeroIntegrationsSlackContract = c66.router({
122486
122712
 
122487
122713
  // ../../packages/api-contracts/src/contracts/zero-slack-connect.ts
122488
122714
  init_esm_shims();
122489
- var c67 = initContract();
122715
+ var c68 = initContract();
122490
122716
  var slackConnectStatusSchema = external_exports.object({
122491
122717
  isConnected: external_exports.boolean(),
122492
122718
  isAdmin: external_exports.boolean(),
@@ -122498,7 +122724,7 @@ var slackConnectResponseSchema = external_exports.object({
122498
122724
  connectionId: external_exports.string(),
122499
122725
  role: external_exports.string()
122500
122726
  });
122501
- var zeroSlackConnectContract = c67.router({
122727
+ var zeroSlackConnectContract = c68.router({
122502
122728
  getStatus: {
122503
122729
  method: "GET",
122504
122730
  path: "/api/zero/integrations/slack/connect",
@@ -122532,7 +122758,7 @@ var zeroSlackConnectContract = c67.router({
122532
122758
 
122533
122759
  // ../../packages/api-contracts/src/contracts/zero-slack-browser-connect.ts
122534
122760
  init_esm_shims();
122535
- var c68 = initContract();
122761
+ var c69 = initContract();
122536
122762
  var zeroSlackBrowserConnectQuerySchema = external_exports.object({
122537
122763
  w: external_exports.string().optional(),
122538
122764
  u: external_exports.string().optional(),
@@ -122540,13 +122766,13 @@ var zeroSlackBrowserConnectQuerySchema = external_exports.object({
122540
122766
  t: external_exports.string().optional(),
122541
122767
  orgId: external_exports.string().optional()
122542
122768
  });
122543
- var zeroSlackBrowserConnectContract = c68.router({
122769
+ var zeroSlackBrowserConnectContract = c69.router({
122544
122770
  connect: {
122545
122771
  method: "GET",
122546
122772
  path: "/api/zero/slack/connect",
122547
122773
  query: zeroSlackBrowserConnectQuerySchema,
122548
122774
  responses: {
122549
- 307: c68.noBody(),
122775
+ 307: c69.noBody(),
122550
122776
  500: external_exports.object({ error: external_exports.string() })
122551
122777
  },
122552
122778
  summary: "Browser Slack connect flow"
@@ -122555,7 +122781,7 @@ var zeroSlackBrowserConnectContract = c68.router({
122555
122781
 
122556
122782
  // ../../packages/api-contracts/src/contracts/zero-slack-oauth.ts
122557
122783
  init_esm_shims();
122558
- var c69 = initContract();
122784
+ var c70 = initContract();
122559
122785
  var jsonErrorSchema2 = external_exports.object({ error: external_exports.string() });
122560
122786
  var zeroSlackOauthInstallQuerySchema = external_exports.object({
122561
122787
  orgId: external_exports.string().optional(),
@@ -122573,13 +122799,13 @@ var zeroSlackOauthCallbackQuerySchema = external_exports.object({
122573
122799
  error: external_exports.string().optional(),
122574
122800
  state: external_exports.string().optional()
122575
122801
  });
122576
- var zeroSlackOauthContract = c69.router({
122802
+ var zeroSlackOauthContract = c70.router({
122577
122803
  install: {
122578
122804
  method: "GET",
122579
122805
  path: "/api/zero/slack/oauth/install",
122580
122806
  query: zeroSlackOauthInstallQuerySchema,
122581
122807
  responses: {
122582
- 307: c69.noBody(),
122808
+ 307: c70.noBody(),
122583
122809
  503: jsonErrorSchema2
122584
122810
  },
122585
122811
  summary: "Start Slack bot OAuth install"
@@ -122589,7 +122815,7 @@ var zeroSlackOauthContract = c69.router({
122589
122815
  path: "/api/zero/slack/oauth/connect",
122590
122816
  query: zeroSlackOauthConnectQuerySchema,
122591
122817
  responses: {
122592
- 307: c69.noBody(),
122818
+ 307: c70.noBody(),
122593
122819
  400: jsonErrorSchema2,
122594
122820
  404: jsonErrorSchema2,
122595
122821
  503: jsonErrorSchema2
@@ -122601,7 +122827,7 @@ var zeroSlackOauthContract = c69.router({
122601
122827
  path: "/api/zero/slack/oauth/callback",
122602
122828
  query: zeroSlackOauthCallbackQuerySchema,
122603
122829
  responses: {
122604
- 307: c69.noBody(),
122830
+ 307: c70.noBody(),
122605
122831
  400: jsonErrorSchema2,
122606
122832
  503: jsonErrorSchema2
122607
122833
  },
@@ -122611,12 +122837,12 @@ var zeroSlackOauthContract = c69.router({
122611
122837
 
122612
122838
  // ../../packages/api-contracts/src/contracts/zero-slack-channels.ts
122613
122839
  init_esm_shims();
122614
- var c70 = initContract();
122840
+ var c71 = initContract();
122615
122841
  var slackChannelSchema = external_exports.object({
122616
122842
  id: external_exports.string(),
122617
122843
  name: external_exports.string()
122618
122844
  });
122619
- var zeroSlackChannelsContract = c70.router({
122845
+ var zeroSlackChannelsContract = c71.router({
122620
122846
  list: {
122621
122847
  method: "GET",
122622
122848
  path: "/api/zero/slack/channels",
@@ -122632,12 +122858,12 @@ var zeroSlackChannelsContract = c70.router({
122632
122858
 
122633
122859
  // ../../packages/api-contracts/src/contracts/zero-queue-position.ts
122634
122860
  init_esm_shims();
122635
- var c71 = initContract();
122861
+ var c72 = initContract();
122636
122862
  var queuePositionResponseSchema = external_exports.object({
122637
122863
  position: external_exports.number(),
122638
122864
  total: external_exports.number()
122639
122865
  });
122640
- var zeroQueuePositionContract = c71.router({
122866
+ var zeroQueuePositionContract = c72.router({
122641
122867
  getPosition: {
122642
122868
  method: "GET",
122643
122869
  path: "/api/zero/queue-position",
@@ -122657,13 +122883,13 @@ var zeroQueuePositionContract = c71.router({
122657
122883
 
122658
122884
  // ../../packages/api-contracts/src/contracts/zero-member-credit-cap.ts
122659
122885
  init_esm_shims();
122660
- var c72 = initContract();
122886
+ var c73 = initContract();
122661
122887
  var memberCreditCapResponseSchema = external_exports.object({
122662
122888
  userId: external_exports.string(),
122663
122889
  creditCap: external_exports.number().nullable(),
122664
122890
  creditEnabled: external_exports.boolean()
122665
122891
  });
122666
- var zeroMemberCreditCapContract = c72.router({
122892
+ var zeroMemberCreditCapContract = c73.router({
122667
122893
  get: {
122668
122894
  method: "GET",
122669
122895
  path: "/api/zero/org/members/credit-cap",
@@ -122698,7 +122924,7 @@ var zeroMemberCreditCapContract = c72.router({
122698
122924
 
122699
122925
  // ../../packages/api-contracts/src/contracts/zero-report-error.ts
122700
122926
  init_esm_shims();
122701
- var c73 = initContract();
122927
+ var c74 = initContract();
122702
122928
  var reportErrorBodySchema = external_exports.object({
122703
122929
  runId: external_exports.uuid("Run ID must be a valid UUID"),
122704
122930
  title: external_exports.string().min(1, "Title is required"),
@@ -122707,7 +122933,7 @@ var reportErrorBodySchema = external_exports.object({
122707
122933
  var reportErrorResponseSchema = external_exports.object({
122708
122934
  reference: external_exports.string()
122709
122935
  });
122710
- var zeroReportErrorContract = c73.router({
122936
+ var zeroReportErrorContract = c74.router({
122711
122937
  submit: {
122712
122938
  method: "POST",
122713
122939
  path: "/api/zero/report-error",
@@ -122726,7 +122952,7 @@ var zeroReportErrorContract = c73.router({
122726
122952
 
122727
122953
  // ../../packages/api-contracts/src/contracts/zero-insights.ts
122728
122954
  init_esm_shims();
122729
- var c74 = initContract();
122955
+ var c75 = initContract();
122730
122956
  var insightAgentSchema = external_exports.object({
122731
122957
  agentName: external_exports.string(),
122732
122958
  agentId: external_exports.string().nullable(),
@@ -122791,7 +123017,7 @@ var insightsRangeResponseSchema = external_exports.object({
122791
123017
  maxDate: external_exports.string().nullable(),
122792
123018
  totalDays: external_exports.number()
122793
123019
  });
122794
- var zeroInsightsContract = c74.router({
123020
+ var zeroInsightsContract = c75.router({
122795
123021
  get: {
122796
123022
  method: "GET",
122797
123023
  path: "/api/zero/insights",
@@ -122806,7 +123032,7 @@ var zeroInsightsContract = c74.router({
122806
123032
  summary: "Get daily insights for the authenticated org"
122807
123033
  }
122808
123034
  });
122809
- var zeroInsightsRangeContract = c74.router({
123035
+ var zeroInsightsRangeContract = c75.router({
122810
123036
  get: {
122811
123037
  method: "GET",
122812
123038
  path: "/api/zero/insights/range",
@@ -122821,8 +123047,8 @@ var zeroInsightsRangeContract = c74.router({
122821
123047
 
122822
123048
  // ../../packages/api-contracts/src/contracts/push-subscriptions.ts
122823
123049
  init_esm_shims();
122824
- var c75 = initContract();
122825
- var pushSubscriptionsContract = c75.router({
123050
+ var c76 = initContract();
123051
+ var pushSubscriptionsContract = c76.router({
122826
123052
  register: {
122827
123053
  method: "POST",
122828
123054
  path: "/api/zero/push-subscriptions",
@@ -122844,15 +123070,160 @@ var pushSubscriptionsContract = c75.router({
122844
123070
  }
122845
123071
  });
122846
123072
 
123073
+ // ../../packages/api-contracts/src/contracts/zero-image-io-generate.ts
123074
+ init_esm_shims();
123075
+ var c77 = initContract();
123076
+ var zeroImageIoGenerateRequestSchema = external_exports.object({
123077
+ prompt: external_exports.unknown().optional(),
123078
+ size: external_exports.unknown().optional(),
123079
+ quality: external_exports.unknown().optional(),
123080
+ background: external_exports.unknown().optional(),
123081
+ outputFormat: external_exports.unknown().optional()
123082
+ }).passthrough();
123083
+ var zeroImageIoUsageSchema = external_exports.object({
123084
+ textInputTokens: external_exports.number(),
123085
+ imageInputTokens: external_exports.number(),
123086
+ imageOutputTokens: external_exports.number(),
123087
+ totalTokens: external_exports.number()
123088
+ });
123089
+ var zeroImageIoGenerateResponseSchema = external_exports.object({
123090
+ id: external_exports.string(),
123091
+ filename: external_exports.string(),
123092
+ contentType: external_exports.string(),
123093
+ size: external_exports.number(),
123094
+ url: external_exports.string(),
123095
+ creditsCharged: external_exports.number(),
123096
+ model: external_exports.string(),
123097
+ imageSize: external_exports.string(),
123098
+ quality: external_exports.string(),
123099
+ background: external_exports.string(),
123100
+ outputFormat: external_exports.string(),
123101
+ revisedPrompt: external_exports.string().optional(),
123102
+ usage: zeroImageIoUsageSchema
123103
+ });
123104
+ var zeroImageIoGenerateContract = c77.router({
123105
+ post: {
123106
+ method: "POST",
123107
+ path: "/api/zero/image-io/generate",
123108
+ headers: authHeadersSchema,
123109
+ body: zeroImageIoGenerateRequestSchema,
123110
+ responses: {
123111
+ 200: zeroImageIoGenerateResponseSchema,
123112
+ 400: apiErrorSchema,
123113
+ 401: apiErrorSchema,
123114
+ 402: apiErrorSchema,
123115
+ 403: apiErrorSchema,
123116
+ 500: apiErrorSchema,
123117
+ 502: apiErrorSchema,
123118
+ 503: apiErrorSchema
123119
+ },
123120
+ summary: "Generate and persist an image file"
123121
+ }
123122
+ });
123123
+
123124
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-agent.ts
123125
+ init_esm_shims();
123126
+ var c78 = initContract();
123127
+ var internalCallbacksAgentContract = c78.router({
123128
+ post: {
123129
+ method: "POST",
123130
+ path: "/api/internal/callbacks/agent",
123131
+ headers: internalCallbackHeadersSchema,
123132
+ body: internalCallbackBodySchema,
123133
+ responses: {
123134
+ 200: internalCallbackSuccessSchema,
123135
+ 400: internalCallbackErrorSchema,
123136
+ 401: internalCallbackErrorSchema,
123137
+ 404: internalCallbackErrorSchema
123138
+ },
123139
+ summary: "Handle terminal callbacks for agent-triggered runs"
123140
+ }
123141
+ });
123142
+
123143
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-github-issues.ts
123144
+ init_esm_shims();
123145
+ var c79 = initContract();
123146
+ var githubIssuesCallbackPayloadSchema = external_exports.object({
123147
+ installationId: external_exports.string(),
123148
+ repo: external_exports.string(),
123149
+ issueNumber: external_exports.number(),
123150
+ agentId: external_exports.string(),
123151
+ existingSessionId: external_exports.string().optional(),
123152
+ triggerCommentId: external_exports.string().optional(),
123153
+ triggerReactionId: external_exports.string().optional(),
123154
+ triggerCommentBody: external_exports.string().optional()
123155
+ }).passthrough();
123156
+ var internalCallbacksGithubIssuesContract = c79.router({
123157
+ post: {
123158
+ method: "POST",
123159
+ path: "/api/internal/callbacks/github/issues",
123160
+ headers: internalCallbackHeadersSchema,
123161
+ body: internalCallbackBodySchema.extend({
123162
+ payload: githubIssuesCallbackPayloadSchema
123163
+ }),
123164
+ responses: {
123165
+ 200: internalCallbackSuccessSchema,
123166
+ 400: internalCallbackErrorSchema,
123167
+ 401: internalCallbackErrorSchema,
123168
+ 404: internalCallbackErrorSchema,
123169
+ 500: internalCallbackErrorSchema
123170
+ },
123171
+ summary: "Handle callbacks for GitHub issue-triggered runs"
123172
+ }
123173
+ });
123174
+
123175
+ // ../../packages/api-contracts/src/contracts/internal-callbacks-schedule.ts
123176
+ init_esm_shims();
123177
+ var c80 = initContract();
123178
+ var scheduleLoopCallbackPayloadSchema = external_exports.object({
123179
+ scheduleId: external_exports.string()
123180
+ }).passthrough();
123181
+ var scheduleCronCallbackPayloadSchema = scheduleLoopCallbackPayloadSchema.extend({
123182
+ timezone: external_exports.string(),
123183
+ cronExpression: external_exports.string().optional()
123184
+ }).passthrough();
123185
+ var internalCallbacksScheduleContract = c80.router({
123186
+ cron: {
123187
+ method: "POST",
123188
+ path: "/api/internal/callbacks/schedule/cron",
123189
+ headers: internalCallbackHeadersSchema,
123190
+ body: internalCallbackBodySchema.extend({
123191
+ payload: scheduleCronCallbackPayloadSchema
123192
+ }),
123193
+ responses: {
123194
+ 200: internalCallbackSuccessWithSkippedSchema,
123195
+ 400: internalCallbackErrorSchema,
123196
+ 401: internalCallbackErrorSchema,
123197
+ 404: internalCallbackErrorSchema
123198
+ },
123199
+ summary: "Handle terminal callbacks for cron schedules"
123200
+ },
123201
+ loop: {
123202
+ method: "POST",
123203
+ path: "/api/internal/callbacks/schedule/loop",
123204
+ headers: internalCallbackHeadersSchema,
123205
+ body: internalCallbackBodySchema.extend({
123206
+ payload: scheduleLoopCallbackPayloadSchema
123207
+ }),
123208
+ responses: {
123209
+ 200: internalCallbackSuccessWithSkippedSchema,
123210
+ 400: internalCallbackErrorSchema,
123211
+ 401: internalCallbackErrorSchema,
123212
+ 404: internalCallbackErrorSchema
123213
+ },
123214
+ summary: "Handle terminal callbacks for loop schedules"
123215
+ }
123216
+ });
123217
+
122847
123218
  // ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
122848
123219
  init_esm_shims();
122849
- var c76 = initContract();
123220
+ var c81 = initContract();
122850
123221
  var audioInputQuotaResponseSchema = external_exports.object({
122851
123222
  allowed: external_exports.boolean(),
122852
123223
  count: external_exports.number().int().nonnegative(),
122853
123224
  limit: external_exports.number().int().positive().nullable()
122854
123225
  });
122855
- var zeroVoiceIoQuotaContract = c76.router({
123226
+ var zeroVoiceIoQuotaContract = c81.router({
122856
123227
  get: {
122857
123228
  method: "GET",
122858
123229
  path: "/api/zero/voice-io/quota",
@@ -122868,7 +123239,7 @@ var zeroVoiceIoQuotaContract = c76.router({
122868
123239
 
122869
123240
  // ../../packages/api-contracts/src/contracts/zero-voice-io-speech.ts
122870
123241
  init_esm_shims();
122871
- var c77 = initContract();
123242
+ var c82 = initContract();
122872
123243
  var zeroVoiceIoSpeechRequestSchema = external_exports.object({
122873
123244
  text: external_exports.unknown().optional(),
122874
123245
  voice: external_exports.unknown().optional(),
@@ -122885,7 +123256,7 @@ var zeroVoiceIoSpeechResponseSchema = external_exports.object({
122885
123256
  model: external_exports.string(),
122886
123257
  voice: external_exports.string()
122887
123258
  });
122888
- var zeroVoiceIoSpeechContract = c77.router({
123259
+ var zeroVoiceIoSpeechContract = c82.router({
122889
123260
  post: {
122890
123261
  method: "POST",
122891
123262
  path: "/api/zero/voice-io/speech",
@@ -122907,7 +123278,7 @@ var zeroVoiceIoSpeechContract = c77.router({
122907
123278
 
122908
123279
  // ../../packages/api-contracts/src/contracts/zero-voice-io-stt.ts
122909
123280
  init_esm_shims();
122910
- var c78 = initContract();
123281
+ var c83 = initContract();
122911
123282
  var zeroVoiceIoSttResponseSchema = external_exports.object({
122912
123283
  text: external_exports.string()
122913
123284
  });
@@ -122917,13 +123288,13 @@ var zeroVoiceIoSttQuotaErrorSchema = apiErrorSchema.extend({
122917
123288
  limit: external_exports.number().nullable()
122918
123289
  }).optional()
122919
123290
  });
122920
- var zeroVoiceIoSttContract = c78.router({
123291
+ var zeroVoiceIoSttContract = c83.router({
122921
123292
  post: {
122922
123293
  method: "POST",
122923
123294
  path: "/api/zero/voice-io/stt",
122924
123295
  headers: authHeadersSchema,
122925
123296
  contentType: "multipart/form-data",
122926
- body: c78.type(),
123297
+ body: c83.type(),
122927
123298
  responses: {
122928
123299
  200: zeroVoiceIoSttResponseSchema,
122929
123300
  400: apiErrorSchema,
@@ -122939,18 +123310,18 @@ var zeroVoiceIoSttContract = c78.router({
122939
123310
 
122940
123311
  // ../../packages/api-contracts/src/contracts/zero-voice-io-tts.ts
122941
123312
  init_esm_shims();
122942
- var c79 = initContract();
123313
+ var c84 = initContract();
122943
123314
  var zeroVoiceIoTtsRequestSchema = external_exports.object({
122944
123315
  text: external_exports.unknown().optional()
122945
123316
  }).passthrough();
122946
- var zeroVoiceIoTtsContract = c79.router({
123317
+ var zeroVoiceIoTtsContract = c84.router({
122947
123318
  post: {
122948
123319
  method: "POST",
122949
123320
  path: "/api/zero/voice-io/tts",
122950
123321
  headers: authHeadersSchema,
122951
123322
  body: zeroVoiceIoTtsRequestSchema,
122952
123323
  responses: {
122953
- 200: c79.otherResponse({
123324
+ 200: c84.otherResponse({
122954
123325
  contentType: "application/octet-stream",
122955
123326
  body: external_exports.unknown()
122956
123327
  }),
@@ -122965,7 +123336,7 @@ var zeroVoiceIoTtsContract = c79.router({
122965
123336
 
122966
123337
  // ../../packages/api-contracts/src/contracts/zero-voice-chat.ts
122967
123338
  init_esm_shims();
122968
- var c80 = initContract();
123339
+ var c85 = initContract();
122969
123340
  var voiceChatItemRoleSchema = external_exports.enum([
122970
123341
  "user",
122971
123342
  "assistant",
@@ -123062,7 +123433,7 @@ var sessionEndedBodySchema = external_exports.object({
123062
123433
  relaySessionId: external_exports.uuid()
123063
123434
  });
123064
123435
  var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
123065
- var zeroVoiceChatContract = c80.router({
123436
+ var zeroVoiceChatContract = c85.router({
123066
123437
  createSession: {
123067
123438
  method: "POST",
123068
123439
  path: "/api/zero/voice-chat",
@@ -123237,7 +123608,7 @@ var zeroVoiceChatContract = c80.router({
123237
123608
 
123238
123609
  // ../../packages/api-contracts/src/contracts/zero-uploads.ts
123239
123610
  init_esm_shims();
123240
- var c81 = initContract();
123611
+ var c86 = initContract();
123241
123612
  var prepareRequestSchema = external_exports.object({
123242
123613
  filename: external_exports.string().min(1).max(255),
123243
123614
  contentType: external_exports.string().min(1).max(200),
@@ -123264,7 +123635,7 @@ var completeResponseSchema = external_exports.object({
123264
123635
  size: external_exports.number(),
123265
123636
  url: external_exports.string().url()
123266
123637
  });
123267
- var zeroUploadsContract = c81.router({
123638
+ var zeroUploadsContract = c86.router({
123268
123639
  prepare: {
123269
123640
  method: "POST",
123270
123641
  path: "/api/zero/uploads/prepare",
@@ -123298,7 +123669,7 @@ var zeroUploadsContract = c81.router({
123298
123669
 
123299
123670
  // ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
123300
123671
  init_esm_shims();
123301
- var c82 = initContract();
123672
+ var c87 = initContract();
123302
123673
  var telegramEnvironmentSchema = external_exports.object({
123303
123674
  requiredSecrets: external_exports.array(external_exports.string()),
123304
123675
  requiredVars: external_exports.array(external_exports.string()),
@@ -123388,7 +123759,7 @@ var telegramSetupStatusSchema = external_exports.object({
123388
123759
  domainConfigured: external_exports.boolean(),
123389
123760
  privacyDisabled: external_exports.boolean()
123390
123761
  });
123391
- var zeroIntegrationsTelegramContract = c82.router({
123762
+ var zeroIntegrationsTelegramContract = c87.router({
123392
123763
  list: {
123393
123764
  method: "GET",
123394
123765
  path: "/api/integrations/telegram",
@@ -123431,9 +123802,9 @@ var zeroIntegrationsTelegramContract = c82.router({
123431
123802
  path: "/api/integrations/telegram/:botId",
123432
123803
  headers: authHeadersSchema,
123433
123804
  pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
123434
- body: c82.noBody(),
123805
+ body: c87.noBody(),
123435
123806
  responses: {
123436
- 204: c82.noBody(),
123807
+ 204: c87.noBody(),
123437
123808
  401: apiErrorSchema,
123438
123809
  403: apiErrorSchema,
123439
123810
  404: apiErrorSchema
@@ -123444,10 +123815,10 @@ var zeroIntegrationsTelegramContract = c82.router({
123444
123815
  method: "DELETE",
123445
123816
  path: "/api/integrations/telegram/link",
123446
123817
  headers: authHeadersSchema,
123447
- body: c82.noBody(),
123818
+ body: c87.noBody(),
123448
123819
  query: external_exports.object({ botId: external_exports.string().optional() }),
123449
123820
  responses: {
123450
- 204: c82.noBody(),
123821
+ 204: c87.noBody(),
123451
123822
  401: apiErrorSchema,
123452
123823
  404: apiErrorSchema
123453
123824
  },
@@ -123478,7 +123849,7 @@ var zeroIntegrationsTelegramContract = c82.router({
123478
123849
  sig: external_exports.string().optional()
123479
123850
  }),
123480
123851
  responses: {
123481
- 200: c82.otherResponse({
123852
+ 200: c87.otherResponse({
123482
123853
  contentType: "application/octet-stream",
123483
123854
  body: external_exports.unknown()
123484
123855
  }),
@@ -123493,7 +123864,7 @@ var zeroIntegrationsTelegramContract = c82.router({
123493
123864
  method: "GET",
123494
123865
  path: "/api/integrations/telegram/auth-callback",
123495
123866
  responses: {
123496
- 200: c82.otherResponse({
123867
+ 200: c87.otherResponse({
123497
123868
  contentType: "text/html",
123498
123869
  body: external_exports.unknown()
123499
123870
  })
@@ -123550,7 +123921,7 @@ var zeroIntegrationsTelegramContract = c82.router({
123550
123921
 
123551
123922
  // ../../packages/api-contracts/src/contracts/zero-integrations-agentphone.ts
123552
123923
  init_esm_shims();
123553
- var c83 = initContract();
123924
+ var c88 = initContract();
123554
123925
  var agentPhoneConnectBodySchema = external_exports.object({
123555
123926
  phoneHandle: external_exports.string().min(1),
123556
123927
  agentphoneAgentId: external_exports.string().min(1),
@@ -123560,7 +123931,7 @@ var agentPhoneConnectBodySchema = external_exports.object({
123560
123931
  var agentPhoneConnectResponseSchema = external_exports.object({
123561
123932
  phoneHandle: external_exports.string()
123562
123933
  });
123563
- var zeroIntegrationsAgentPhoneContract = c83.router({
123934
+ var zeroIntegrationsAgentPhoneContract = c88.router({
123564
123935
  connectAgentPhone: {
123565
123936
  method: "POST",
123566
123937
  path: "/api/agentphone/connect",
@@ -124331,9 +124702,9 @@ var CodexEventParser = class {
124331
124702
  if (!item.changes || item.changes.length === 0) {
124332
124703
  return null;
124333
124704
  }
124334
- const changes = item.changes.map((c84) => {
124335
- const action = c84.kind === "add" ? "Created" : c84.kind === "modify" ? "Modified" : "Deleted";
124336
- return `${action}: ${c84.path}`;
124705
+ const changes = item.changes.map((c89) => {
124706
+ const action = c89.kind === "add" ? "Created" : c89.kind === "modify" ? "Modified" : "Deleted";
124707
+ return `${action}: ${c89.path}`;
124337
124708
  }).join("\n");
124338
124709
  return {
124339
124710
  type: "text",
@@ -125371,6 +125742,10 @@ export {
125371
125742
  initTelegramFileUpload,
125372
125743
  completeTelegramFileUpload,
125373
125744
  downloadTelegramFile,
125745
+ sendPhoneMessage,
125746
+ initPhoneFileUpload,
125747
+ completePhoneFileUpload,
125748
+ downloadPhoneFile,
125374
125749
  sendChatMessage,
125375
125750
  deployZeroSchedule,
125376
125751
  listZeroSchedules,
@@ -125446,4 +125821,4 @@ undici/lib/web/fetch/body.js:
125446
125821
  undici/lib/web/websocket/frame.js:
125447
125822
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
125448
125823
  */
125449
- //# sourceMappingURL=chunk-EFG3ZEWH.js.map
125824
+ //# sourceMappingURL=chunk-7S6FB5HX.js.map