@vm0/cli 9.126.1 → 9.127.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.
@@ -4622,8 +4622,8 @@ var require_browser = __commonJS({
4622
4622
  if (!this.useColors) {
4623
4623
  return;
4624
4624
  }
4625
- const c58 = "color: " + this.color;
4626
- args.splice(1, 0, c58, "color: inherit");
4625
+ const c57 = "color: " + this.color;
4626
+ args.splice(1, 0, c57, "color: inherit");
4627
4627
  let index = 0;
4628
4628
  let lastC = 0;
4629
4629
  args[0].replace(/%[a-zA-Z%]/g, (match) => {
@@ -4635,7 +4635,7 @@ var require_browser = __commonJS({
4635
4635
  lastC = index;
4636
4636
  }
4637
4637
  });
4638
- args.splice(lastC, 0, c58);
4638
+ args.splice(lastC, 0, c57);
4639
4639
  }
4640
4640
  exports.log = console.debug || console.log || (() => {
4641
4641
  });
@@ -4923,8 +4923,8 @@ var require_node = __commonJS({
4923
4923
  function formatArgs(args) {
4924
4924
  const { namespace: name, useColors: useColors2 } = this;
4925
4925
  if (useColors2) {
4926
- const c58 = this.color;
4927
- const colorCode = "\x1B[3" + (c58 < 8 ? c58 : "8;5;" + c58);
4926
+ const c57 = this.color;
4927
+ const colorCode = "\x1B[3" + (c57 < 8 ? c57 : "8;5;" + c57);
4928
4928
  const prefix = ` ${colorCode};1m${name} \x1B[0m`;
4929
4929
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
4930
4930
  args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
@@ -10083,27 +10083,27 @@ var require_commonjs2 = __commonJS({
10083
10083
  const pad = n.some(isPadded);
10084
10084
  N = [];
10085
10085
  for (let i = x; test(i, y); i += incr) {
10086
- let c58;
10086
+ let c57;
10087
10087
  if (isAlphaSequence) {
10088
- c58 = String.fromCharCode(i);
10089
- if (c58 === "\\") {
10090
- c58 = "";
10088
+ c57 = String.fromCharCode(i);
10089
+ if (c57 === "\\") {
10090
+ c57 = "";
10091
10091
  }
10092
10092
  } else {
10093
- c58 = String(i);
10093
+ c57 = String(i);
10094
10094
  if (pad) {
10095
- const need = width - c58.length;
10095
+ const need = width - c57.length;
10096
10096
  if (need > 0) {
10097
10097
  const z3 = new Array(need + 1).join("0");
10098
10098
  if (i < 0) {
10099
- c58 = "-" + z3 + c58.slice(1);
10099
+ c57 = "-" + z3 + c57.slice(1);
10100
10100
  } else {
10101
- c58 = z3 + c58;
10101
+ c57 = z3 + c57;
10102
10102
  }
10103
10103
  }
10104
10104
  }
10105
10105
  }
10106
- N.push(c58);
10106
+ N.push(c57);
10107
10107
  }
10108
10108
  } else {
10109
10109
  N = [];
@@ -10186,25 +10186,25 @@ var require_brace_expressions = __commonJS({
10186
10186
  let endPos = pos;
10187
10187
  let rangeStart = "";
10188
10188
  WHILE: while (i < glob.length) {
10189
- const c58 = glob.charAt(i);
10190
- if ((c58 === "!" || c58 === "^") && i === pos + 1) {
10189
+ const c57 = glob.charAt(i);
10190
+ if ((c57 === "!" || c57 === "^") && i === pos + 1) {
10191
10191
  negate = true;
10192
10192
  i++;
10193
10193
  continue;
10194
10194
  }
10195
- if (c58 === "]" && sawStart && !escaping) {
10195
+ if (c57 === "]" && sawStart && !escaping) {
10196
10196
  endPos = i + 1;
10197
10197
  break;
10198
10198
  }
10199
10199
  sawStart = true;
10200
- if (c58 === "\\") {
10200
+ if (c57 === "\\") {
10201
10201
  if (!escaping) {
10202
10202
  escaping = true;
10203
10203
  i++;
10204
10204
  continue;
10205
10205
  }
10206
10206
  }
10207
- if (c58 === "[" && !escaping) {
10207
+ if (c57 === "[" && !escaping) {
10208
10208
  for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
10209
10209
  if (glob.startsWith(cls, i)) {
10210
10210
  if (rangeStart) {
@@ -10222,26 +10222,26 @@ var require_brace_expressions = __commonJS({
10222
10222
  }
10223
10223
  escaping = false;
10224
10224
  if (rangeStart) {
10225
- if (c58 > rangeStart) {
10226
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c58));
10227
- } else if (c58 === rangeStart) {
10228
- ranges.push(braceEscape(c58));
10225
+ if (c57 > rangeStart) {
10226
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c57));
10227
+ } else if (c57 === rangeStart) {
10228
+ ranges.push(braceEscape(c57));
10229
10229
  }
10230
10230
  rangeStart = "";
10231
10231
  i++;
10232
10232
  continue;
10233
10233
  }
10234
10234
  if (glob.startsWith("-]", i + 1)) {
10235
- ranges.push(braceEscape(c58 + "-"));
10235
+ ranges.push(braceEscape(c57 + "-"));
10236
10236
  i += 2;
10237
10237
  continue;
10238
10238
  }
10239
10239
  if (glob.startsWith("-", i + 1)) {
10240
- rangeStart = c58;
10240
+ rangeStart = c57;
10241
10241
  i += 2;
10242
10242
  continue;
10243
10243
  }
10244
- ranges.push(braceEscape(c58));
10244
+ ranges.push(braceEscape(c57));
10245
10245
  i++;
10246
10246
  }
10247
10247
  if (endPos < i) {
@@ -10291,8 +10291,8 @@ var require_ast = __commonJS({
10291
10291
  var brace_expressions_js_1 = require_brace_expressions();
10292
10292
  var unescape_js_1 = require_unescape();
10293
10293
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
10294
- var isExtglobType = (c58) => types.has(c58);
10295
- var isExtglobAST = (c58) => isExtglobType(c58.type);
10294
+ var isExtglobType = (c57) => types.has(c57);
10295
+ var isExtglobAST = (c57) => isExtglobType(c57.type);
10296
10296
  var adoptionMap = /* @__PURE__ */ new Map([
10297
10297
  ["!", ["@"]],
10298
10298
  ["?", ["?", "@"]],
@@ -10489,11 +10489,11 @@ var require_ast = __commonJS({
10489
10489
  this.push(part.clone(this));
10490
10490
  }
10491
10491
  clone(parent) {
10492
- const c58 = new _a2(this.type, parent);
10492
+ const c57 = new _a2(this.type, parent);
10493
10493
  for (const p of this.#parts) {
10494
- c58.copyIn(p);
10494
+ c57.copyIn(p);
10495
10495
  }
10496
- return c58;
10496
+ return c57;
10497
10497
  }
10498
10498
  static #parseAST(str, ast, pos, opt, extDepth) {
10499
10499
  const maxDepth = opt.maxExtglobRecursion ?? 2;
@@ -10505,39 +10505,39 @@ var require_ast = __commonJS({
10505
10505
  let i2 = pos;
10506
10506
  let acc2 = "";
10507
10507
  while (i2 < str.length) {
10508
- const c58 = str.charAt(i2++);
10509
- if (escaping || c58 === "\\") {
10508
+ const c57 = str.charAt(i2++);
10509
+ if (escaping || c57 === "\\") {
10510
10510
  escaping = !escaping;
10511
- acc2 += c58;
10511
+ acc2 += c57;
10512
10512
  continue;
10513
10513
  }
10514
10514
  if (inBrace) {
10515
10515
  if (i2 === braceStart + 1) {
10516
- if (c58 === "^" || c58 === "!") {
10516
+ if (c57 === "^" || c57 === "!") {
10517
10517
  braceNeg = true;
10518
10518
  }
10519
- } else if (c58 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
10519
+ } else if (c57 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
10520
10520
  inBrace = false;
10521
10521
  }
10522
- acc2 += c58;
10522
+ acc2 += c57;
10523
10523
  continue;
10524
- } else if (c58 === "[") {
10524
+ } else if (c57 === "[") {
10525
10525
  inBrace = true;
10526
10526
  braceStart = i2;
10527
10527
  braceNeg = false;
10528
- acc2 += c58;
10528
+ acc2 += c57;
10529
10529
  continue;
10530
10530
  }
10531
- const doRecurse = !opt.noext && isExtglobType(c58) && str.charAt(i2) === "(" && extDepth <= maxDepth;
10531
+ const doRecurse = !opt.noext && isExtglobType(c57) && str.charAt(i2) === "(" && extDepth <= maxDepth;
10532
10532
  if (doRecurse) {
10533
10533
  ast.push(acc2);
10534
10534
  acc2 = "";
10535
- const ext = new _a2(c58, ast);
10535
+ const ext = new _a2(c57, ast);
10536
10536
  i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
10537
10537
  ast.push(ext);
10538
10538
  continue;
10539
10539
  }
10540
- acc2 += c58;
10540
+ acc2 += c57;
10541
10541
  }
10542
10542
  ast.push(acc2);
10543
10543
  return i2;
@@ -10547,48 +10547,48 @@ var require_ast = __commonJS({
10547
10547
  const parts = [];
10548
10548
  let acc = "";
10549
10549
  while (i < str.length) {
10550
- const c58 = str.charAt(i++);
10551
- if (escaping || c58 === "\\") {
10550
+ const c57 = str.charAt(i++);
10551
+ if (escaping || c57 === "\\") {
10552
10552
  escaping = !escaping;
10553
- acc += c58;
10553
+ acc += c57;
10554
10554
  continue;
10555
10555
  }
10556
10556
  if (inBrace) {
10557
10557
  if (i === braceStart + 1) {
10558
- if (c58 === "^" || c58 === "!") {
10558
+ if (c57 === "^" || c57 === "!") {
10559
10559
  braceNeg = true;
10560
10560
  }
10561
- } else if (c58 === "]" && !(i === braceStart + 2 && braceNeg)) {
10561
+ } else if (c57 === "]" && !(i === braceStart + 2 && braceNeg)) {
10562
10562
  inBrace = false;
10563
10563
  }
10564
- acc += c58;
10564
+ acc += c57;
10565
10565
  continue;
10566
- } else if (c58 === "[") {
10566
+ } else if (c57 === "[") {
10567
10567
  inBrace = true;
10568
10568
  braceStart = i;
10569
10569
  braceNeg = false;
10570
- acc += c58;
10570
+ acc += c57;
10571
10571
  continue;
10572
10572
  }
10573
- const doRecurse = !opt.noext && isExtglobType(c58) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
10574
- (extDepth <= maxDepth || ast && ast.#canAdoptType(c58));
10573
+ const doRecurse = !opt.noext && isExtglobType(c57) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
10574
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c57));
10575
10575
  if (doRecurse) {
10576
- const depthAdd = ast && ast.#canAdoptType(c58) ? 0 : 1;
10576
+ const depthAdd = ast && ast.#canAdoptType(c57) ? 0 : 1;
10577
10577
  part.push(acc);
10578
10578
  acc = "";
10579
- const ext = new _a2(c58, part);
10579
+ const ext = new _a2(c57, part);
10580
10580
  part.push(ext);
10581
10581
  i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
10582
10582
  continue;
10583
10583
  }
10584
- if (c58 === "|") {
10584
+ if (c57 === "|") {
10585
10585
  part.push(acc);
10586
10586
  acc = "";
10587
10587
  parts.push(part);
10588
10588
  part = new _a2(null, ast);
10589
10589
  continue;
10590
10590
  }
10591
- if (c58 === ")") {
10591
+ if (c57 === ")") {
10592
10592
  if (acc === "" && ast.#parts.length === 0) {
10593
10593
  ast.#emptyExt = true;
10594
10594
  }
@@ -10597,7 +10597,7 @@ var require_ast = __commonJS({
10597
10597
  ast.push(...parts, part);
10598
10598
  return i;
10599
10599
  }
10600
- acc += c58;
10600
+ acc += c57;
10601
10601
  }
10602
10602
  ast.type = null;
10603
10603
  ast.#hasMagic = void 0;
@@ -10617,8 +10617,8 @@ var require_ast = __commonJS({
10617
10617
  }
10618
10618
  return this.#canAdoptType(gc.type, map2);
10619
10619
  }
10620
- #canAdoptType(c58, map2 = adoptionAnyMap) {
10621
- return !!map2.get(this.type)?.includes(c58);
10620
+ #canAdoptType(c57, map2 = adoptionAnyMap) {
10621
+ return !!map2.get(this.type)?.includes(c57);
10622
10622
  }
10623
10623
  #adoptWithSpace(child, index) {
10624
10624
  const gc = child.#parts[0];
@@ -10636,9 +10636,9 @@ var require_ast = __commonJS({
10636
10636
  }
10637
10637
  this.#toString = void 0;
10638
10638
  }
10639
- #canUsurpType(c58) {
10639
+ #canUsurpType(c57) {
10640
10640
  const m = usurpMap.get(this.type);
10641
- return !!m?.has(c58);
10641
+ return !!m?.has(c57);
10642
10642
  }
10643
10643
  #canUsurp(child) {
10644
10644
  if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
@@ -10851,18 +10851,18 @@ var require_ast = __commonJS({
10851
10851
  do {
10852
10852
  done = true;
10853
10853
  for (let i = 0; i < this.#parts.length; i++) {
10854
- const c58 = this.#parts[i];
10855
- if (typeof c58 === "object") {
10856
- c58.#flatten();
10857
- if (this.#canAdopt(c58)) {
10854
+ const c57 = this.#parts[i];
10855
+ if (typeof c57 === "object") {
10856
+ c57.#flatten();
10857
+ if (this.#canAdopt(c57)) {
10858
10858
  done = false;
10859
- this.#adopt(c58, i);
10860
- } else if (this.#canAdoptWithSpace(c58)) {
10859
+ this.#adopt(c57, i);
10860
+ } else if (this.#canAdoptWithSpace(c57)) {
10861
10861
  done = false;
10862
- this.#adoptWithSpace(c58, i);
10863
- } else if (this.#canUsurp(c58)) {
10862
+ this.#adoptWithSpace(c57, i);
10863
+ } else if (this.#canUsurp(c57)) {
10864
10864
  done = false;
10865
- this.#usurp(c58);
10865
+ this.#usurp(c57);
10866
10866
  }
10867
10867
  }
10868
10868
  }
@@ -10886,13 +10886,13 @@ var require_ast = __commonJS({
10886
10886
  let uflag = false;
10887
10887
  let inStar = false;
10888
10888
  for (let i = 0; i < glob.length; i++) {
10889
- const c58 = glob.charAt(i);
10889
+ const c57 = glob.charAt(i);
10890
10890
  if (escaping) {
10891
10891
  escaping = false;
10892
- re += (reSpecials.has(c58) ? "\\" : "") + c58;
10892
+ re += (reSpecials.has(c57) ? "\\" : "") + c57;
10893
10893
  continue;
10894
10894
  }
10895
- if (c58 === "*") {
10895
+ if (c57 === "*") {
10896
10896
  if (inStar)
10897
10897
  continue;
10898
10898
  inStar = true;
@@ -10902,7 +10902,7 @@ var require_ast = __commonJS({
10902
10902
  } else {
10903
10903
  inStar = false;
10904
10904
  }
10905
- if (c58 === "\\") {
10905
+ if (c57 === "\\") {
10906
10906
  if (i === glob.length - 1) {
10907
10907
  re += "\\\\";
10908
10908
  } else {
@@ -10910,7 +10910,7 @@ var require_ast = __commonJS({
10910
10910
  }
10911
10911
  continue;
10912
10912
  }
10913
- if (c58 === "[") {
10913
+ if (c57 === "[") {
10914
10914
  const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
10915
10915
  if (consumed) {
10916
10916
  re += src;
@@ -10920,12 +10920,12 @@ var require_ast = __commonJS({
10920
10920
  continue;
10921
10921
  }
10922
10922
  }
10923
- if (c58 === "?") {
10923
+ if (c57 === "?") {
10924
10924
  re += qmark;
10925
10925
  hasMagic = true;
10926
10926
  continue;
10927
10927
  }
10928
- re += regExpEscape(c58);
10928
+ re += regExpEscape(c57);
10929
10929
  }
10930
10930
  return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
10931
10931
  }
@@ -14842,13 +14842,13 @@ var require_utils5 = __commonJS({
14842
14842
  }
14843
14843
  exports.arrayStringifyHelper = arrayStringifyHelper;
14844
14844
  function getPoolNameOld(pool) {
14845
- const c58 = pool.config.connectionConfig;
14845
+ const c57 = pool.config.connectionConfig;
14846
14846
  let poolName = "";
14847
- poolName += c58.host ? `host: '${c58.host}', ` : "";
14848
- poolName += c58.port ? `port: ${c58.port}, ` : "";
14849
- poolName += c58.database ? `database: '${c58.database}', ` : "";
14850
- poolName += c58.user ? `user: '${c58.user}'` : "";
14851
- if (!c58.user) {
14847
+ poolName += c57.host ? `host: '${c57.host}', ` : "";
14848
+ poolName += c57.port ? `port: ${c57.port}, ` : "";
14849
+ poolName += c57.database ? `database: '${c57.database}', ` : "";
14850
+ poolName += c57.user ? `user: '${c57.user}'` : "";
14851
+ if (!c57.user) {
14852
14852
  poolName = poolName.substring(0, poolName.length - 2);
14853
14853
  }
14854
14854
  return poolName.trim();
@@ -15200,7 +15200,7 @@ var require_src12 = __commonJS({
15200
15200
  return indexOpeningDashDashComment < indexClosingSlashComment;
15201
15201
  }
15202
15202
  function fixedEncodeURIComponent(str) {
15203
- return encodeURIComponent(str).replace(/[!'()*]/g, (c58) => `%${c58.charCodeAt(0).toString(16).toUpperCase()}`);
15203
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c57) => `%${c57.charCodeAt(0).toString(16).toUpperCase()}`);
15204
15204
  }
15205
15205
  function addSqlCommenterComment(span, query) {
15206
15206
  if (typeof query !== "string" || query.length === 0) {
@@ -23750,8 +23750,8 @@ var require_util = __commonJS({
23750
23750
  function isUSVString(val) {
23751
23751
  return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
23752
23752
  }
23753
- function isTokenCharCode(c58) {
23754
- switch (c58) {
23753
+ function isTokenCharCode(c57) {
23754
+ switch (c57) {
23755
23755
  case 34:
23756
23756
  case 40:
23757
23757
  case 41:
@@ -23771,7 +23771,7 @@ var require_util = __commonJS({
23771
23771
  case 125:
23772
23772
  return false;
23773
23773
  default:
23774
- return c58 >= 33 && c58 <= 126;
23774
+ return c57 >= 33 && c57 <= 126;
23775
23775
  }
23776
23776
  }
23777
23777
  function isValidHTTPToken(characters) {
@@ -25360,7 +25360,7 @@ var require_constants2 = __commonJS({
25360
25360
  exports.HEADER_CHARS.push(i);
25361
25361
  }
25362
25362
  }
25363
- exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c58) => c58 !== 44);
25363
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c57) => c57 !== 44);
25364
25364
  exports.MAJOR = exports.NUM_MAP;
25365
25365
  exports.MINOR = exports.MAJOR;
25366
25366
  var HEADER_STATE;
@@ -26506,10 +26506,10 @@ var require_util2 = __commonJS({
26506
26506
  }
26507
26507
  function isValidReasonPhrase(statusText) {
26508
26508
  for (let i = 0; i < statusText.length; ++i) {
26509
- const c58 = statusText.charCodeAt(i);
26510
- if (!(c58 === 9 || // HTAB
26511
- c58 >= 32 && c58 <= 126 || // SP / VCHAR
26512
- c58 >= 128 && c58 <= 255)) {
26509
+ const c57 = statusText.charCodeAt(i);
26510
+ if (!(c57 === 9 || // HTAB
26511
+ c57 >= 32 && c57 <= 126 || // SP / VCHAR
26512
+ c57 >= 128 && c57 <= 255)) {
26513
26513
  return false;
26514
26514
  }
26515
26515
  }
@@ -30483,7 +30483,7 @@ var require_pool_base = __commonJS({
30483
30483
  pool.emit("drain", origin, [pool, ...targets]);
30484
30484
  }
30485
30485
  if (pool[kClosedResolve] && queue.isEmpty()) {
30486
- Promise.all(pool[kClients].map((c58) => c58.close())).then(pool[kClosedResolve]);
30486
+ Promise.all(pool[kClients].map((c57) => c57.close())).then(pool[kClosedResolve]);
30487
30487
  }
30488
30488
  };
30489
30489
  this[kOnConnect] = (origin, targets) => {
@@ -30532,7 +30532,7 @@ var require_pool_base = __commonJS({
30532
30532
  }
30533
30533
  async [kClose]() {
30534
30534
  if (this[kQueue].isEmpty()) {
30535
- await Promise.all(this[kClients].map((c58) => c58.close()));
30535
+ await Promise.all(this[kClients].map((c57) => c57.close()));
30536
30536
  } else {
30537
30537
  await new Promise((resolve2) => {
30538
30538
  this[kClosedResolve] = resolve2;
@@ -30547,7 +30547,7 @@ var require_pool_base = __commonJS({
30547
30547
  }
30548
30548
  item.handler.onError(err);
30549
30549
  }
30550
- await Promise.all(this[kClients].map((c58) => c58.destroy(err)));
30550
+ await Promise.all(this[kClients].map((c57) => c57.destroy(err)));
30551
30551
  }
30552
30552
  [kDispatch](opts, handler) {
30553
30553
  const dispatcher = this[kGetDispatcher]();
@@ -37317,8 +37317,8 @@ var require_util4 = __commonJS({
37317
37317
  return new TextDecoder(encoding).decode(sliced);
37318
37318
  }
37319
37319
  function BOMSniffing(ioQueue) {
37320
- const [a, b, c58] = ioQueue;
37321
- if (a === 239 && b === 187 && c58 === 191) {
37320
+ const [a, b, c57] = ioQueue;
37321
+ if (a === 239 && b === 187 && c57 === 191) {
37322
37322
  return "UTF-8";
37323
37323
  } else if (a === 254 && b === 255) {
37324
37324
  return "UTF-16BE";
@@ -41797,9 +41797,9 @@ var require_Alias = __commonJS({
41797
41797
  } else if (identity.isCollection(node2)) {
41798
41798
  let count = 0;
41799
41799
  for (const item of node2.items) {
41800
- const c58 = getAliasCount(doc, item, anchors2);
41801
- if (c58 > count)
41802
- count = c58;
41800
+ const c57 = getAliasCount(doc, item, anchors2);
41801
+ if (c57 > count)
41802
+ count = c57;
41803
41803
  }
41804
41804
  return count;
41805
41805
  } else if (identity.isPair(node2)) {
@@ -48815,7 +48815,7 @@ var require_style = __commonJS({
48815
48815
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
48816
48816
  "use strict";
48817
48817
  init_esm_shims();
48818
- var c58 = require_kleur();
48818
+ var c57 = require_kleur();
48819
48819
  var figures = require_figures();
48820
48820
  var styles3 = Object.freeze({
48821
48821
  password: {
@@ -48837,14 +48837,14 @@ var require_style = __commonJS({
48837
48837
  });
48838
48838
  var render = (type) => styles3[type] || styles3.default;
48839
48839
  var symbols = Object.freeze({
48840
- aborted: c58.red(figures.cross),
48841
- done: c58.green(figures.tick),
48842
- exited: c58.yellow(figures.cross),
48843
- default: c58.cyan("?")
48840
+ aborted: c57.red(figures.cross),
48841
+ done: c57.green(figures.tick),
48842
+ exited: c57.yellow(figures.cross),
48843
+ default: c57.cyan("?")
48844
48844
  });
48845
48845
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
48846
- var delimiter = (completing) => c58.gray(completing ? figures.ellipsis : figures.pointerSmall);
48847
- var item = (expandable, expanded) => c58.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
48846
+ var delimiter = (completing) => c57.gray(completing ? figures.ellipsis : figures.pointerSmall);
48847
+ var item = (expandable, expanded) => c57.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
48848
48848
  module2.exports = {
48849
48849
  styles: styles3,
48850
48850
  render,
@@ -49126,10 +49126,10 @@ var require_text = __commonJS({
49126
49126
  this.cursor = this.cursor + n;
49127
49127
  this.cursorOffset += n;
49128
49128
  }
49129
- _(c58, key) {
49129
+ _(c57, key) {
49130
49130
  let s1 = this.value.slice(0, this.cursor);
49131
49131
  let s2 = this.value.slice(this.cursor);
49132
- this.value = `${s1}${c58}${s2}`;
49132
+ this.value = `${s1}${c57}${s2}`;
49133
49133
  this.red = false;
49134
49134
  this.cursor = this.placeholder ? 0 : s1.length + 1;
49135
49135
  this.render();
@@ -49304,8 +49304,8 @@ var require_select = __commonJS({
49304
49304
  this.moveCursor((this.cursor + 1) % this.choices.length);
49305
49305
  this.render();
49306
49306
  }
49307
- _(c58, key) {
49308
- if (c58 === " ") return this.submit();
49307
+ _(c57, key) {
49308
+ if (c57 === " ") return this.submit();
49309
49309
  }
49310
49310
  get selection() {
49311
49311
  return this.choices[this.cursor];
@@ -49431,12 +49431,12 @@ var require_toggle = __commonJS({
49431
49431
  this.fire();
49432
49432
  this.render();
49433
49433
  }
49434
- _(c58, key) {
49435
- if (c58 === " ") {
49434
+ _(c57, key) {
49435
+ if (c57 === " ") {
49436
49436
  this.value = !this.value;
49437
- } else if (c58 === "1") {
49437
+ } else if (c57 === "1") {
49438
49438
  this.value = true;
49439
- } else if (c58 === "0") {
49439
+ } else if (c57 === "0") {
49440
49440
  this.value = false;
49441
49441
  } else return this.bell();
49442
49442
  this.render();
@@ -49944,9 +49944,9 @@ var require_date = __commonJS({
49944
49944
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
49945
49945
  this.render();
49946
49946
  }
49947
- _(c58) {
49948
- if (/\d/.test(c58)) {
49949
- this.typed += c58;
49947
+ _(c57) {
49948
+ if (/\d/.test(c57)) {
49949
+ this.typed += c57;
49950
49950
  this.parts[this.cursor].setTo(this.typed);
49951
49951
  this.render();
49952
49952
  }
@@ -50055,8 +50055,8 @@ var require_number = __commonJS({
50055
50055
  parse(x) {
50056
50056
  return this.float ? parseFloat(x) : parseInt(x);
50057
50057
  }
50058
- valid(c58) {
50059
- return c58 === `-` || c58 === `.` && this.float || isNumber.test(c58);
50058
+ valid(c57) {
50059
+ return c57 === `-` || c57 === `.` && this.float || isNumber.test(c57);
50060
50060
  }
50061
50061
  reset() {
50062
50062
  this.typed = ``;
@@ -50149,14 +50149,14 @@ var require_number = __commonJS({
50149
50149
  this.fire();
50150
50150
  this.render();
50151
50151
  }
50152
- _(c58, key) {
50153
- if (!this.valid(c58)) return this.bell();
50152
+ _(c57, key) {
50153
+ if (!this.valid(c57)) return this.bell();
50154
50154
  const now = Date.now();
50155
50155
  if (now - this.lastHit > 1e3) this.typed = ``;
50156
- this.typed += c58;
50156
+ this.typed += c57;
50157
50157
  this.lastHit = now;
50158
50158
  this.color = `cyan`;
50159
- if (c58 === `.`) return this.fire();
50159
+ if (c57 === `.`) return this.fire();
50160
50160
  this.value = Math.min(this.parse(this.typed), this.max);
50161
50161
  if (this.value > this.max) this.value = this.max;
50162
50162
  if (this.value < this.min) this.value = this.min;
@@ -50320,10 +50320,10 @@ var require_multiselect = __commonJS({
50320
50320
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
50321
50321
  this.render();
50322
50322
  }
50323
- _(c58, key) {
50324
- if (c58 === " ") {
50323
+ _(c57, key) {
50324
+ if (c57 === " ") {
50325
50325
  this.handleSpaceToggle();
50326
- } else if (c58 === "a") {
50326
+ } else if (c57 === "a") {
50327
50327
  this.toggleAll();
50328
50328
  } else {
50329
50329
  return this.bell();
@@ -50564,10 +50564,10 @@ var require_autocomplete = __commonJS({
50564
50564
  this.out.write("\n");
50565
50565
  this.close();
50566
50566
  }
50567
- _(c58, key) {
50567
+ _(c57, key) {
50568
50568
  let s1 = this.input.slice(0, this.cursor);
50569
50569
  let s2 = this.input.slice(this.cursor);
50570
- this.input = `${s1}${c58}${s2}`;
50570
+ this.input = `${s1}${c57}${s2}`;
50571
50571
  this.cursor = s1.length + 1;
50572
50572
  this.complete(this.render);
50573
50573
  this.render();
@@ -50767,15 +50767,15 @@ var require_autocompleteMultiselect = __commonJS({
50767
50767
  this.render();
50768
50768
  }
50769
50769
  }
50770
- handleInputChange(c58) {
50771
- this.inputValue = this.inputValue + c58;
50770
+ handleInputChange(c57) {
50771
+ this.inputValue = this.inputValue + c57;
50772
50772
  this.updateFilteredOptions();
50773
50773
  }
50774
- _(c58, key) {
50775
- if (c58 === " ") {
50774
+ _(c57, key) {
50775
+ if (c57 === " ") {
50776
50776
  this.handleSpaceToggle();
50777
50777
  } else {
50778
- this.handleInputChange(c58);
50778
+ this.handleInputChange(c57);
50779
50779
  }
50780
50780
  }
50781
50781
  renderInstructions() {
@@ -50881,12 +50881,12 @@ var require_confirm = __commonJS({
50881
50881
  this.out.write("\n");
50882
50882
  this.close();
50883
50883
  }
50884
- _(c58, key) {
50885
- if (c58.toLowerCase() === "y") {
50884
+ _(c57, key) {
50885
+ if (c57.toLowerCase() === "y") {
50886
50886
  this.value = true;
50887
50887
  return this.submit();
50888
50888
  }
50889
- if (c58.toLowerCase() === "n") {
50889
+ if (c57.toLowerCase() === "n") {
50890
50890
  this.value = false;
50891
50891
  return this.submit();
50892
50892
  }
@@ -51327,7 +51327,7 @@ var require_style2 = __commonJS({
51327
51327
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
51328
51328
  "use strict";
51329
51329
  init_esm_shims();
51330
- var c58 = require_kleur();
51330
+ var c57 = require_kleur();
51331
51331
  var figures = require_figures2();
51332
51332
  var styles3 = Object.freeze({
51333
51333
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -51337,14 +51337,14 @@ var require_style2 = __commonJS({
51337
51337
  });
51338
51338
  var render = (type) => styles3[type] || styles3.default;
51339
51339
  var symbols = Object.freeze({
51340
- aborted: c58.red(figures.cross),
51341
- done: c58.green(figures.tick),
51342
- exited: c58.yellow(figures.cross),
51343
- default: c58.cyan("?")
51340
+ aborted: c57.red(figures.cross),
51341
+ done: c57.green(figures.tick),
51342
+ exited: c57.yellow(figures.cross),
51343
+ default: c57.cyan("?")
51344
51344
  });
51345
51345
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
51346
- var delimiter = (completing) => c58.gray(completing ? figures.ellipsis : figures.pointerSmall);
51347
- var item = (expandable, expanded) => c58.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
51346
+ var delimiter = (completing) => c57.gray(completing ? figures.ellipsis : figures.pointerSmall);
51347
+ var item = (expandable, expanded) => c57.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
51348
51348
  module2.exports = {
51349
51349
  styles: styles3,
51350
51350
  render,
@@ -51577,10 +51577,10 @@ var require_text2 = __commonJS({
51577
51577
  this.cursor = this.cursor + n;
51578
51578
  this.cursorOffset += n;
51579
51579
  }
51580
- _(c58, key) {
51580
+ _(c57, key) {
51581
51581
  let s1 = this.value.slice(0, this.cursor);
51582
51582
  let s2 = this.value.slice(this.cursor);
51583
- this.value = `${s1}${c58}${s2}`;
51583
+ this.value = `${s1}${c57}${s2}`;
51584
51584
  this.red = false;
51585
51585
  this.cursor = this.placeholder ? 0 : s1.length + 1;
51586
51586
  this.render();
@@ -51754,8 +51754,8 @@ var require_select2 = __commonJS({
51754
51754
  this.moveCursor((this.cursor + 1) % this.choices.length);
51755
51755
  this.render();
51756
51756
  }
51757
- _(c58, key) {
51758
- if (c58 === " ") return this.submit();
51757
+ _(c57, key) {
51758
+ if (c57 === " ") return this.submit();
51759
51759
  }
51760
51760
  get selection() {
51761
51761
  return this.choices[this.cursor];
@@ -51879,12 +51879,12 @@ var require_toggle2 = __commonJS({
51879
51879
  this.fire();
51880
51880
  this.render();
51881
51881
  }
51882
- _(c58, key) {
51883
- if (c58 === " ") {
51882
+ _(c57, key) {
51883
+ if (c57 === " ") {
51884
51884
  this.value = !this.value;
51885
- } else if (c58 === "1") {
51885
+ } else if (c57 === "1") {
51886
51886
  this.value = true;
51887
- } else if (c58 === "0") {
51887
+ } else if (c57 === "0") {
51888
51888
  this.value = false;
51889
51889
  } else return this.bell();
51890
51890
  this.render();
@@ -52340,9 +52340,9 @@ var require_date2 = __commonJS({
52340
52340
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
52341
52341
  this.render();
52342
52342
  }
52343
- _(c58) {
52344
- if (/\d/.test(c58)) {
52345
- this.typed += c58;
52343
+ _(c57) {
52344
+ if (/\d/.test(c57)) {
52345
+ this.typed += c57;
52346
52346
  this.parts[this.cursor].setTo(this.typed);
52347
52347
  this.render();
52348
52348
  }
@@ -52424,8 +52424,8 @@ var require_number2 = __commonJS({
52424
52424
  parse(x) {
52425
52425
  return this.float ? parseFloat(x) : parseInt(x);
52426
52426
  }
52427
- valid(c58) {
52428
- return c58 === `-` || c58 === `.` && this.float || isNumber.test(c58);
52427
+ valid(c57) {
52428
+ return c57 === `-` || c57 === `.` && this.float || isNumber.test(c57);
52429
52429
  }
52430
52430
  reset() {
52431
52431
  this.typed = ``;
@@ -52512,14 +52512,14 @@ var require_number2 = __commonJS({
52512
52512
  this.fire();
52513
52513
  this.render();
52514
52514
  }
52515
- _(c58, key) {
52516
- if (!this.valid(c58)) return this.bell();
52515
+ _(c57, key) {
52516
+ if (!this.valid(c57)) return this.bell();
52517
52517
  const now = Date.now();
52518
52518
  if (now - this.lastHit > 1e3) this.typed = ``;
52519
- this.typed += c58;
52519
+ this.typed += c57;
52520
52520
  this.lastHit = now;
52521
52521
  this.color = `cyan`;
52522
- if (c58 === `.`) return this.fire();
52522
+ if (c57 === `.`) return this.fire();
52523
52523
  this.value = Math.min(this.parse(this.typed), this.max);
52524
52524
  if (this.value > this.max) this.value = this.max;
52525
52525
  if (this.value < this.min) this.value = this.min;
@@ -52681,10 +52681,10 @@ var require_multiselect2 = __commonJS({
52681
52681
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
52682
52682
  this.render();
52683
52683
  }
52684
- _(c58, key) {
52685
- if (c58 === " ") {
52684
+ _(c57, key) {
52685
+ if (c57 === " ") {
52686
52686
  this.handleSpaceToggle();
52687
- } else if (c58 === "a") {
52687
+ } else if (c57 === "a") {
52688
52688
  this.toggleAll();
52689
52689
  } else {
52690
52690
  return this.bell();
@@ -52881,10 +52881,10 @@ var require_autocomplete2 = __commonJS({
52881
52881
  this.out.write("\n");
52882
52882
  this.close();
52883
52883
  }
52884
- _(c58, key) {
52884
+ _(c57, key) {
52885
52885
  let s1 = this.input.slice(0, this.cursor);
52886
52886
  let s2 = this.input.slice(this.cursor);
52887
- this.input = `${s1}${c58}${s2}`;
52887
+ this.input = `${s1}${c57}${s2}`;
52888
52888
  this.cursor = s1.length + 1;
52889
52889
  this.complete(this.render);
52890
52890
  this.render();
@@ -53087,15 +53087,15 @@ var require_autocompleteMultiselect2 = __commonJS({
53087
53087
  this.render();
53088
53088
  }
53089
53089
  }
53090
- handleInputChange(c58) {
53091
- this.inputValue = this.inputValue + c58;
53090
+ handleInputChange(c57) {
53091
+ this.inputValue = this.inputValue + c57;
53092
53092
  this.updateFilteredOptions();
53093
53093
  }
53094
- _(c58, key) {
53095
- if (c58 === " ") {
53094
+ _(c57, key) {
53095
+ if (c57 === " ") {
53096
53096
  this.handleSpaceToggle();
53097
53097
  } else {
53098
- this.handleInputChange(c58);
53098
+ this.handleInputChange(c57);
53099
53099
  }
53100
53100
  }
53101
53101
  renderInstructions() {
@@ -53202,12 +53202,12 @@ var require_confirm2 = __commonJS({
53202
53202
  this.out.write("\n");
53203
53203
  this.close();
53204
53204
  }
53205
- _(c58, key) {
53206
- if (c58.toLowerCase() === "y") {
53205
+ _(c57, key) {
53206
+ if (c57.toLowerCase() === "y") {
53207
53207
  this.value = true;
53208
53208
  return this.submit();
53209
53209
  }
53210
- if (c58.toLowerCase() === "n") {
53210
+ if (c57.toLowerCase() === "n") {
53211
53211
  this.value = false;
53212
53212
  return this.submit();
53213
53213
  }
@@ -54261,8 +54261,8 @@ function _htmlElementAsString(el, keyAttrs) {
54261
54261
  const className = elem.className;
54262
54262
  if (className && isString(className)) {
54263
54263
  const classes = className.split(/\s+/);
54264
- for (const c58 of classes) {
54265
- out.push(`.${c58}`);
54264
+ for (const c57 of classes) {
54265
+ out.push(`.${c57}`);
54266
54266
  }
54267
54267
  }
54268
54268
  }
@@ -54475,9 +54475,9 @@ function uuid4(crypto = getCrypto()) {
54475
54475
  }
54476
54476
  return emptyUuid.replace(
54477
54477
  /[018]/g,
54478
- (c58) => (
54478
+ (c57) => (
54479
54479
  // eslint-disable-next-line no-bitwise
54480
- (c58 ^ (getRandomByte() & 15) >> c58 / 4).toString(16)
54480
+ (c57 ^ (getRandomByte() & 15) >> c57 / 4).toString(16)
54481
54481
  )
54482
54482
  );
54483
54483
  }
@@ -72039,16 +72039,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
72039
72039
  */
72040
72040
  _wrapHandler(handler) {
72041
72041
  const instrumentation = this;
72042
- return function(c58, next) {
72042
+ return function(c57, next) {
72043
72043
  if (!instrumentation.isEnabled()) {
72044
- return handler.apply(this, [c58, next]);
72044
+ return handler.apply(this, [c57, next]);
72045
72045
  }
72046
- const path3 = c58.req.path;
72046
+ const path3 = c57.req.path;
72047
72047
  const span = instrumentation.tracer.startSpan(path3);
72048
72048
  return context.with(trace.setSpan(context.active(), span), () => {
72049
72049
  return instrumentation._safeExecute(
72050
72050
  () => {
72051
- const result = handler.apply(this, [c58, next]);
72051
+ const result = handler.apply(this, [c57, next]);
72052
72052
  if (isThenable(result)) {
72053
72053
  return result.then((result2) => {
72054
72054
  const type = instrumentation._determineHandlerType(result2);
@@ -73642,7 +73642,7 @@ if (DSN) {
73642
73642
  init2({
73643
73643
  dsn: DSN,
73644
73644
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
73645
- release: "9.126.1",
73645
+ release: "9.127.0",
73646
73646
  sendDefaultPii: false,
73647
73647
  tracesSampleRate: 0,
73648
73648
  shutdownTimeout: 500,
@@ -73661,7 +73661,7 @@ if (DSN) {
73661
73661
  }
73662
73662
  });
73663
73663
  setContext("cli", {
73664
- version: "9.126.1",
73664
+ version: "9.127.0",
73665
73665
  command: process.argv.slice(2).join(" ")
73666
73666
  });
73667
73667
  setContext("runtime", {
@@ -77046,7 +77046,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
77046
77046
  function isValidBase64URL(data) {
77047
77047
  if (!base64url.test(data))
77048
77048
  return false;
77049
- const base643 = data.replace(/[-_]/g, (c58) => c58 === "-" ? "+" : "/");
77049
+ const base643 = data.replace(/[-_]/g, (c57) => c57 === "-" ? "+" : "/");
77050
77050
  const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
77051
77051
  return isValidBase64(padded);
77052
77052
  }
@@ -87157,9 +87157,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
87157
87157
  inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
87158
87158
  inst.min = (value, params) => inst.check(_gte(value, params));
87159
87159
  inst.max = (value, params) => inst.check(_lte(value, params));
87160
- const c58 = inst._zod.bag;
87161
- inst.minDate = c58.minimum ? new Date(c58.minimum) : null;
87162
- inst.maxDate = c58.maximum ? new Date(c58.maximum) : null;
87160
+ const c57 = inst._zod.bag;
87161
+ inst.minDate = c57.minimum ? new Date(c57.minimum) : null;
87162
+ inst.maxDate = c57.maximum ? new Date(c57.maximum) : null;
87163
87163
  });
87164
87164
  function date3(params) {
87165
87165
  return _date(ZodDate, params);
@@ -104567,6 +104567,9 @@ var zoomFirewall = {
104567
104567
  ]
104568
104568
  };
104569
104569
 
104570
+ // ../../packages/core/src/firewalls/billable-connectors.ts
104571
+ init_esm_shims();
104572
+
104570
104573
  // ../../packages/core/src/firewalls/index.ts
104571
104574
  var CONNECTOR_FIREWALLS = {
104572
104575
  agentmail: agentmailFirewall,
@@ -112011,9 +112014,7 @@ var v1MessageSchema = external_exports.object({
112011
112014
  id: external_exports.string(),
112012
112015
  role: external_exports.enum(["user", "assistant"]),
112013
112016
  content: external_exports.string().nullable(),
112014
- runId: external_exports.string().optional(),
112015
112017
  error: external_exports.string().optional(),
112016
- status: external_exports.string().optional(),
112017
112018
  createdAt: external_exports.string()
112018
112019
  });
112019
112020
  var chatThreadV1GetContract = c12.router({
@@ -112066,8 +112067,6 @@ var chatThreadV1SendContract = c12.router({
112066
112067
  201: external_exports.object({
112067
112068
  threadId: external_exports.string(),
112068
112069
  messageId: external_exports.string(),
112069
- runId: external_exports.string(),
112070
- status: runStatusSchema,
112071
112070
  createdAt: external_exports.string()
112072
112071
  }),
112073
112072
  400: apiErrorSchema,
@@ -114235,9 +114234,72 @@ var zeroVariablesByNameContract = c29.router({
114235
114234
  }
114236
114235
  });
114237
114236
 
114238
- // ../../packages/core/src/contracts/zero-custom-connectors.ts
114237
+ // ../../packages/core/src/contracts/api-keys.ts
114239
114238
  init_esm_shims();
114240
114239
  var c30 = initContract();
114240
+ var apiKeyItemSchema = external_exports.object({
114241
+ id: external_exports.string().uuid(),
114242
+ name: external_exports.string(),
114243
+ tokenPrefix: external_exports.string(),
114244
+ createdAt: external_exports.string(),
114245
+ expiresAt: external_exports.string(),
114246
+ lastUsedAt: external_exports.string().nullable()
114247
+ });
114248
+ var apiKeyListResponseSchema = external_exports.object({
114249
+ apiKeys: external_exports.array(apiKeyItemSchema)
114250
+ });
114251
+ var createApiKeyRequestSchema = external_exports.object({
114252
+ name: external_exports.string().min(1).max(100),
114253
+ expiresInDays: external_exports.number().int().positive().max(3650)
114254
+ });
114255
+ var createApiKeyResponseSchema = apiKeyItemSchema.extend({
114256
+ token: external_exports.string()
114257
+ });
114258
+ var apiKeysContract = c30.router({
114259
+ list: {
114260
+ method: "GET",
114261
+ path: "/api/zero/api-keys",
114262
+ headers: authHeadersSchema,
114263
+ responses: {
114264
+ 200: apiKeyListResponseSchema,
114265
+ 401: apiErrorSchema,
114266
+ 500: apiErrorSchema
114267
+ },
114268
+ summary: "List caller's API keys (metadata only)"
114269
+ },
114270
+ create: {
114271
+ method: "POST",
114272
+ path: "/api/zero/api-keys",
114273
+ headers: authHeadersSchema,
114274
+ body: createApiKeyRequestSchema,
114275
+ responses: {
114276
+ 201: createApiKeyResponseSchema,
114277
+ 400: apiErrorSchema,
114278
+ 401: apiErrorSchema,
114279
+ 500: apiErrorSchema
114280
+ },
114281
+ summary: "Create a new API key (token returned once)"
114282
+ }
114283
+ });
114284
+ var apiKeysByIdContract = c30.router({
114285
+ delete: {
114286
+ method: "DELETE",
114287
+ path: "/api/zero/api-keys/:id",
114288
+ headers: authHeadersSchema,
114289
+ pathParams: external_exports.object({ id: external_exports.string().uuid() }),
114290
+ responses: {
114291
+ 204: c30.noBody(),
114292
+ 401: apiErrorSchema,
114293
+ 404: apiErrorSchema,
114294
+ 500: apiErrorSchema
114295
+ },
114296
+ summary: "Revoke (delete) an API key"
114297
+ }
114298
+ });
114299
+
114300
+ // ../../packages/core/src/contracts/zero-custom-connectors.ts
114301
+ init_esm_shims();
114302
+ var c31 = initContract();
114241
114303
  var customConnectorResponseSchema = external_exports.object({
114242
114304
  id: external_exports.string().uuid(),
114243
114305
  slug: external_exports.string(),
@@ -114265,7 +114327,7 @@ var setCustomConnectorSecretBodySchema = external_exports.object({
114265
114327
  var patchCustomConnectorBodySchema = external_exports.object({
114266
114328
  displayName: external_exports.string().min(1).max(128)
114267
114329
  });
114268
- var zeroCustomConnectorsContract = c30.router({
114330
+ var zeroCustomConnectorsContract = c31.router({
114269
114331
  list: {
114270
114332
  method: "GET",
114271
114333
  path: "/api/zero/custom-connectors",
@@ -114292,14 +114354,14 @@ var zeroCustomConnectorsContract = c30.router({
114292
114354
  summary: "Create an org custom connector"
114293
114355
  }
114294
114356
  });
114295
- var zeroCustomConnectorByIdContract = c30.router({
114357
+ var zeroCustomConnectorByIdContract = c31.router({
114296
114358
  delete: {
114297
114359
  method: "DELETE",
114298
114360
  path: "/api/zero/custom-connectors/:id",
114299
114361
  headers: authHeadersSchema,
114300
114362
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
114301
114363
  responses: {
114302
- 204: c30.noBody(),
114364
+ 204: c31.noBody(),
114303
114365
  401: apiErrorSchema,
114304
114366
  403: apiErrorSchema,
114305
114367
  404: apiErrorSchema,
@@ -114324,7 +114386,7 @@ var zeroCustomConnectorByIdContract = c30.router({
114324
114386
  summary: "Rename an org custom connector"
114325
114387
  }
114326
114388
  });
114327
- var zeroCustomConnectorSecretContract = c30.router({
114389
+ var zeroCustomConnectorSecretContract = c31.router({
114328
114390
  set: {
114329
114391
  method: "PUT",
114330
114392
  path: "/api/zero/custom-connectors/:id/secret",
@@ -114332,7 +114394,7 @@ var zeroCustomConnectorSecretContract = c30.router({
114332
114394
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
114333
114395
  body: setCustomConnectorSecretBodySchema,
114334
114396
  responses: {
114335
- 204: c30.noBody(),
114397
+ 204: c31.noBody(),
114336
114398
  400: apiErrorSchema,
114337
114399
  401: apiErrorSchema,
114338
114400
  404: apiErrorSchema,
@@ -114346,7 +114408,7 @@ var zeroCustomConnectorSecretContract = c30.router({
114346
114408
  headers: authHeadersSchema,
114347
114409
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
114348
114410
  responses: {
114349
- 204: c30.noBody(),
114411
+ 204: c31.noBody(),
114350
114412
  401: apiErrorSchema,
114351
114413
  404: apiErrorSchema,
114352
114414
  500: apiErrorSchema
@@ -114357,11 +114419,11 @@ var zeroCustomConnectorSecretContract = c30.router({
114357
114419
 
114358
114420
  // ../../packages/core/src/contracts/zero-agent-custom-connectors.ts
114359
114421
  init_esm_shims();
114360
- var c31 = initContract();
114422
+ var c32 = initContract();
114361
114423
  var agentCustomConnectorEnabledIdsSchema = external_exports.object({
114362
114424
  enabledIds: external_exports.array(external_exports.string().uuid())
114363
114425
  });
114364
- var zeroAgentCustomConnectorsContract = c31.router({
114426
+ var zeroAgentCustomConnectorsContract = c32.router({
114365
114427
  get: {
114366
114428
  method: "GET",
114367
114429
  path: "/api/zero/agents/:id/custom-connectors",
@@ -114394,7 +114456,7 @@ var zeroAgentCustomConnectorsContract = c31.router({
114394
114456
 
114395
114457
  // ../../packages/core/src/contracts/integrations.ts
114396
114458
  init_esm_shims();
114397
- var c32 = initContract();
114459
+ var c33 = initContract();
114398
114460
  var sendSlackMessageBodySchema = external_exports.object({
114399
114461
  channel: external_exports.string().min(1, "Channel ID is required").optional(),
114400
114462
  user: external_exports.string().min(1, "User ID is required").optional(),
@@ -114412,7 +114474,7 @@ var sendSlackMessageResponseSchema = external_exports.object({
114412
114474
  ts: external_exports.string().optional(),
114413
114475
  channel: external_exports.string().optional()
114414
114476
  });
114415
- var integrationsSlackMessageContract = c32.router({
114477
+ var integrationsSlackMessageContract = c33.router({
114416
114478
  sendMessage: {
114417
114479
  method: "POST",
114418
114480
  path: "/api/zero/integrations/slack/message",
@@ -114436,7 +114498,7 @@ var slackUploadInitResponseSchema = external_exports.object({
114436
114498
  uploadUrl: external_exports.string(),
114437
114499
  fileId: external_exports.string()
114438
114500
  });
114439
- var integrationsSlackUploadInitContract = c32.router({
114501
+ var integrationsSlackUploadInitContract = c33.router({
114440
114502
  init: {
114441
114503
  method: "POST",
114442
114504
  path: "/api/zero/integrations/slack/upload-file/init",
@@ -114479,7 +114541,7 @@ var sendChatMessageResponseSchema = external_exports.object({
114479
114541
  threadId: external_exports.string(),
114480
114542
  createdAt: external_exports.string()
114481
114543
  });
114482
- var integrationsChatMessageContract = c32.router({
114544
+ var integrationsChatMessageContract = c33.router({
114483
114545
  sendMessage: {
114484
114546
  method: "POST",
114485
114547
  path: "/api/zero/integrations/chat/message",
@@ -114495,7 +114557,7 @@ var integrationsChatMessageContract = c32.router({
114495
114557
  summary: "Send a message to a web chat thread"
114496
114558
  }
114497
114559
  });
114498
- var integrationsSlackUploadCompleteContract = c32.router({
114560
+ var integrationsSlackUploadCompleteContract = c33.router({
114499
114561
  complete: {
114500
114562
  method: "POST",
114501
114563
  path: "/api/zero/integrations/slack/upload-file/complete",
@@ -114514,7 +114576,7 @@ var integrationsSlackUploadCompleteContract = c32.router({
114514
114576
 
114515
114577
  // ../../packages/core/src/contracts/zero-billing.ts
114516
114578
  init_esm_shims();
114517
- var c33 = initContract();
114579
+ var c34 = initContract();
114518
114580
  var autoRechargeSchema = external_exports.object({
114519
114581
  enabled: external_exports.boolean(),
114520
114582
  threshold: external_exports.number().nullable(),
@@ -114553,7 +114615,7 @@ var autoRechargeUpdateRequestSchema = external_exports.object({
114553
114615
  threshold: external_exports.number().int().positive().optional(),
114554
114616
  amount: external_exports.number().int().min(1e3).optional()
114555
114617
  });
114556
- var zeroBillingStatusContract = c33.router({
114618
+ var zeroBillingStatusContract = c34.router({
114557
114619
  get: {
114558
114620
  method: "GET",
114559
114621
  path: "/api/zero/billing/status",
@@ -114566,7 +114628,7 @@ var zeroBillingStatusContract = c33.router({
114566
114628
  summary: "Get billing status for current org"
114567
114629
  }
114568
114630
  });
114569
- var zeroBillingCheckoutContract = c33.router({
114631
+ var zeroBillingCheckoutContract = c34.router({
114570
114632
  create: {
114571
114633
  method: "POST",
114572
114634
  path: "/api/zero/billing/checkout",
@@ -114582,7 +114644,7 @@ var zeroBillingCheckoutContract = c33.router({
114582
114644
  summary: "Create Stripe checkout session"
114583
114645
  }
114584
114646
  });
114585
- var zeroBillingPortalContract = c33.router({
114647
+ var zeroBillingPortalContract = c34.router({
114586
114648
  create: {
114587
114649
  method: "POST",
114588
114650
  path: "/api/zero/billing/portal",
@@ -114598,7 +114660,7 @@ var zeroBillingPortalContract = c33.router({
114598
114660
  summary: "Create Stripe billing portal session"
114599
114661
  }
114600
114662
  });
114601
- var zeroBillingAutoRechargeContract = c33.router({
114663
+ var zeroBillingAutoRechargeContract = c34.router({
114602
114664
  get: {
114603
114665
  method: "GET",
114604
114666
  path: "/api/zero/billing/auto-recharge",
@@ -114636,7 +114698,7 @@ var invoiceSchema = external_exports.object({
114636
114698
  var billingInvoicesResponseSchema = external_exports.object({
114637
114699
  invoices: external_exports.array(invoiceSchema)
114638
114700
  });
114639
- var zeroBillingInvoicesContract = c33.router({
114701
+ var zeroBillingInvoicesContract = c34.router({
114640
114702
  get: {
114641
114703
  method: "GET",
114642
114704
  path: "/api/zero/billing/invoices",
@@ -114656,7 +114718,7 @@ var downgradeResponseSchema = external_exports.object({
114656
114718
  success: external_exports.boolean(),
114657
114719
  effectiveDate: external_exports.string().nullable()
114658
114720
  });
114659
- var zeroBillingDowngradeContract = c33.router({
114721
+ var zeroBillingDowngradeContract = c34.router({
114660
114722
  create: {
114661
114723
  method: "POST",
114662
114724
  path: "/api/zero/billing/downgrade",
@@ -114667,6 +114729,7 @@ var zeroBillingDowngradeContract = c33.router({
114667
114729
  400: apiErrorSchema,
114668
114730
  401: apiErrorSchema,
114669
114731
  403: apiErrorSchema,
114732
+ 409: apiErrorSchema,
114670
114733
  500: apiErrorSchema,
114671
114734
  503: apiErrorSchema
114672
114735
  },
@@ -114676,7 +114739,7 @@ var zeroBillingDowngradeContract = c33.router({
114676
114739
 
114677
114740
  // ../../packages/core/src/contracts/zero-usage.ts
114678
114741
  init_esm_shims();
114679
- var c34 = initContract();
114742
+ var c35 = initContract();
114680
114743
  var memberUsageSchema = external_exports.object({
114681
114744
  userId: external_exports.string(),
114682
114745
  email: external_exports.string(),
@@ -114694,7 +114757,7 @@ var usageMembersResponseSchema = external_exports.object({
114694
114757
  }).nullable(),
114695
114758
  members: external_exports.array(memberUsageSchema)
114696
114759
  });
114697
- var zeroUsageMembersContract = c34.router({
114760
+ var zeroUsageMembersContract = c35.router({
114698
114761
  get: {
114699
114762
  method: "GET",
114700
114763
  path: "/api/zero/usage/members",
@@ -114710,7 +114773,7 @@ var zeroUsageMembersContract = c34.router({
114710
114773
 
114711
114774
  // ../../packages/core/src/contracts/zero-usage-daily.ts
114712
114775
  init_esm_shims();
114713
- var c35 = initContract();
114776
+ var c36 = initContract();
114714
114777
  var usageRunSchema = external_exports.object({
114715
114778
  runId: external_exports.string(),
114716
114779
  agentName: external_exports.string().nullable(),
@@ -114737,7 +114800,7 @@ var usageRunsResponseSchema = external_exports.object({
114737
114800
  total: external_exports.number()
114738
114801
  })
114739
114802
  });
114740
- var zeroUsageRunsContract = c35.router({
114803
+ var zeroUsageRunsContract = c36.router({
114741
114804
  get: {
114742
114805
  method: "GET",
114743
114806
  path: "/api/zero/usage/runs",
@@ -114763,7 +114826,7 @@ var zeroUsageRunsContract = c35.router({
114763
114826
 
114764
114827
  // ../../packages/core/src/contracts/zero-usage-insight.ts
114765
114828
  init_esm_shims();
114766
- var c36 = initContract();
114829
+ var c37 = initContract();
114767
114830
  var usageInsightBucketSchema = external_exports.object({
114768
114831
  ts: external_exports.string(),
114769
114832
  // ISO string for the bucket start
@@ -114799,7 +114862,7 @@ var usageInsightResponseSchema = external_exports.object({
114799
114862
  grandTotalCredits: external_exports.number(),
114800
114863
  grandTotalTokens: external_exports.number()
114801
114864
  });
114802
- var zeroUsageInsightContract = c36.router({
114865
+ var zeroUsageInsightContract = c37.router({
114803
114866
  get: {
114804
114867
  method: "GET",
114805
114868
  path: "/api/zero/usage/insight",
@@ -114821,7 +114884,7 @@ var zeroUsageInsightContract = c36.router({
114821
114884
 
114822
114885
  // ../../packages/core/src/contracts/zero-team.ts
114823
114886
  init_esm_shims();
114824
- var c37 = initContract();
114887
+ var c38 = initContract();
114825
114888
  var teamComposeItemSchema = external_exports.object({
114826
114889
  id: external_exports.string(),
114827
114890
  displayName: external_exports.string().nullable(),
@@ -114831,7 +114894,7 @@ var teamComposeItemSchema = external_exports.object({
114831
114894
  headVersionId: external_exports.string().nullable(),
114832
114895
  updatedAt: external_exports.string()
114833
114896
  });
114834
- var zeroTeamContract = c37.router({
114897
+ var zeroTeamContract = c38.router({
114835
114898
  list: {
114836
114899
  method: "GET",
114837
114900
  path: "/api/zero/team",
@@ -114848,7 +114911,7 @@ var zeroTeamContract = c37.router({
114848
114911
 
114849
114912
  // ../../packages/core/src/contracts/zero-integrations-slack.ts
114850
114913
  init_esm_shims();
114851
- var c38 = initContract();
114914
+ var c39 = initContract();
114852
114915
  var slackEnvironmentSchema = external_exports.object({
114853
114916
  requiredSecrets: external_exports.array(external_exports.string()),
114854
114917
  requiredVars: external_exports.array(external_exports.string()),
@@ -114870,7 +114933,7 @@ var slackOrgStatusSchema = external_exports.object({
114870
114933
  /** OAuth install URL for re-authorization (admin-only, when scopeMismatch). */
114871
114934
  reinstallUrl: external_exports.string().nullable().optional()
114872
114935
  });
114873
- var zeroIntegrationsSlackContract = c38.router({
114936
+ var zeroIntegrationsSlackContract = c39.router({
114874
114937
  getStatus: {
114875
114938
  method: "GET",
114876
114939
  path: "/api/zero/integrations/slack",
@@ -114885,7 +114948,7 @@ var zeroIntegrationsSlackContract = c38.router({
114885
114948
  method: "DELETE",
114886
114949
  path: "/api/zero/integrations/slack",
114887
114950
  headers: authHeadersSchema,
114888
- body: c38.noBody(),
114951
+ body: c39.noBody(),
114889
114952
  query: external_exports.object({
114890
114953
  action: external_exports.string().optional()
114891
114954
  }),
@@ -114901,7 +114964,7 @@ var zeroIntegrationsSlackContract = c38.router({
114901
114964
 
114902
114965
  // ../../packages/core/src/contracts/zero-slack-connect.ts
114903
114966
  init_esm_shims();
114904
- var c39 = initContract();
114967
+ var c40 = initContract();
114905
114968
  var slackConnectStatusSchema = external_exports.object({
114906
114969
  isConnected: external_exports.boolean(),
114907
114970
  isAdmin: external_exports.boolean(),
@@ -114913,7 +114976,7 @@ var slackConnectResponseSchema = external_exports.object({
114913
114976
  connectionId: external_exports.string(),
114914
114977
  role: external_exports.string()
114915
114978
  });
114916
- var zeroSlackConnectContract = c39.router({
114979
+ var zeroSlackConnectContract = c40.router({
114917
114980
  getStatus: {
114918
114981
  method: "GET",
114919
114982
  path: "/api/zero/integrations/slack/connect",
@@ -114947,12 +115010,12 @@ var zeroSlackConnectContract = c39.router({
114947
115010
 
114948
115011
  // ../../packages/core/src/contracts/zero-slack-channels.ts
114949
115012
  init_esm_shims();
114950
- var c40 = initContract();
115013
+ var c41 = initContract();
114951
115014
  var slackChannelSchema = external_exports.object({
114952
115015
  id: external_exports.string(),
114953
115016
  name: external_exports.string()
114954
115017
  });
114955
- var zeroSlackChannelsContract = c40.router({
115018
+ var zeroSlackChannelsContract = c41.router({
114956
115019
  list: {
114957
115020
  method: "GET",
114958
115021
  path: "/api/zero/slack/channels",
@@ -114968,12 +115031,12 @@ var zeroSlackChannelsContract = c40.router({
114968
115031
 
114969
115032
  // ../../packages/core/src/contracts/zero-queue-position.ts
114970
115033
  init_esm_shims();
114971
- var c41 = initContract();
115034
+ var c42 = initContract();
114972
115035
  var queuePositionResponseSchema = external_exports.object({
114973
115036
  position: external_exports.number(),
114974
115037
  total: external_exports.number()
114975
115038
  });
114976
- var zeroQueuePositionContract = c41.router({
115039
+ var zeroQueuePositionContract = c42.router({
114977
115040
  getPosition: {
114978
115041
  method: "GET",
114979
115042
  path: "/api/zero/queue-position",
@@ -114993,13 +115056,13 @@ var zeroQueuePositionContract = c41.router({
114993
115056
 
114994
115057
  // ../../packages/core/src/contracts/zero-member-credit-cap.ts
114995
115058
  init_esm_shims();
114996
- var c42 = initContract();
115059
+ var c43 = initContract();
114997
115060
  var memberCreditCapResponseSchema = external_exports.object({
114998
115061
  userId: external_exports.string(),
114999
115062
  creditCap: external_exports.number().nullable(),
115000
115063
  creditEnabled: external_exports.boolean()
115001
115064
  });
115002
- var zeroMemberCreditCapContract = c42.router({
115065
+ var zeroMemberCreditCapContract = c43.router({
115003
115066
  get: {
115004
115067
  method: "GET",
115005
115068
  path: "/api/zero/org/members/credit-cap",
@@ -115034,7 +115097,7 @@ var zeroMemberCreditCapContract = c42.router({
115034
115097
 
115035
115098
  // ../../packages/core/src/contracts/zero-developer-support.ts
115036
115099
  init_esm_shims();
115037
- var c43 = initContract();
115100
+ var c44 = initContract();
115038
115101
  var developerSupportBodySchema = external_exports.object({
115039
115102
  title: external_exports.string().min(1, "Title is required"),
115040
115103
  description: external_exports.string().min(1, "Description is required"),
@@ -115046,7 +115109,7 @@ var consentCodeResponseSchema = external_exports.object({
115046
115109
  var submitResponseSchema = external_exports.object({
115047
115110
  reference: external_exports.string()
115048
115111
  });
115049
- var zeroDeveloperSupportContract = c43.router({
115112
+ var zeroDeveloperSupportContract = c44.router({
115050
115113
  submit: {
115051
115114
  method: "POST",
115052
115115
  path: "/api/zero/developer-support",
@@ -115064,7 +115127,7 @@ var zeroDeveloperSupportContract = c43.router({
115064
115127
 
115065
115128
  // ../../packages/core/src/contracts/zero-report-error.ts
115066
115129
  init_esm_shims();
115067
- var c44 = initContract();
115130
+ var c45 = initContract();
115068
115131
  var reportErrorBodySchema = external_exports.object({
115069
115132
  runId: external_exports.string().min(1, "Run ID is required"),
115070
115133
  title: external_exports.string().min(1, "Title is required"),
@@ -115073,7 +115136,7 @@ var reportErrorBodySchema = external_exports.object({
115073
115136
  var reportErrorResponseSchema = external_exports.object({
115074
115137
  reference: external_exports.string()
115075
115138
  });
115076
- var zeroReportErrorContract = c44.router({
115139
+ var zeroReportErrorContract = c45.router({
115077
115140
  submit: {
115078
115141
  method: "POST",
115079
115142
  path: "/api/zero/report-error",
@@ -115091,7 +115154,7 @@ var zeroReportErrorContract = c44.router({
115091
115154
 
115092
115155
  // ../../packages/core/src/contracts/zero-computer-use.ts
115093
115156
  init_esm_shims();
115094
- var c45 = initContract();
115157
+ var c46 = initContract();
115095
115158
  var registerResponseSchema = external_exports.object({
115096
115159
  id: external_exports.string(),
115097
115160
  domain: external_exports.string(),
@@ -115103,12 +115166,12 @@ var hostResponseSchema = external_exports.object({
115103
115166
  domain: external_exports.string(),
115104
115167
  token: external_exports.string()
115105
115168
  });
115106
- var zeroComputerUseRegisterContract = c45.router({
115169
+ var zeroComputerUseRegisterContract = c46.router({
115107
115170
  register: {
115108
115171
  method: "POST",
115109
115172
  path: "/api/zero/computer-use/register",
115110
115173
  headers: authHeadersSchema,
115111
- body: c45.noBody(),
115174
+ body: c46.noBody(),
115112
115175
  responses: {
115113
115176
  200: registerResponseSchema,
115114
115177
  401: apiErrorSchema,
@@ -115118,14 +115181,14 @@ var zeroComputerUseRegisterContract = c45.router({
115118
115181
  summary: "Register a computer-use host"
115119
115182
  }
115120
115183
  });
115121
- var zeroComputerUseUnregisterContract = c45.router({
115184
+ var zeroComputerUseUnregisterContract = c46.router({
115122
115185
  unregister: {
115123
115186
  method: "DELETE",
115124
115187
  path: "/api/zero/computer-use/unregister",
115125
115188
  headers: authHeadersSchema,
115126
- body: c45.noBody(),
115189
+ body: c46.noBody(),
115127
115190
  responses: {
115128
- 204: c45.noBody(),
115191
+ 204: c46.noBody(),
115129
115192
  401: apiErrorSchema,
115130
115193
  403: apiErrorSchema,
115131
115194
  404: apiErrorSchema
@@ -115133,7 +115196,7 @@ var zeroComputerUseUnregisterContract = c45.router({
115133
115196
  summary: "Unregister a computer-use host"
115134
115197
  }
115135
115198
  });
115136
- var zeroComputerUseHostContract = c45.router({
115199
+ var zeroComputerUseHostContract = c46.router({
115137
115200
  getHost: {
115138
115201
  method: "GET",
115139
115202
  path: "/api/zero/computer-use/host",
@@ -115148,92 +115211,6 @@ var zeroComputerUseHostContract = c45.router({
115148
115211
  }
115149
115212
  });
115150
115213
 
115151
- // ../../packages/core/src/contracts/zero-redemption-codes.ts
115152
- init_esm_shims();
115153
- var c46 = initContract();
115154
- var MAX_CREDITS_PER_CODE = 1e6;
115155
- var MAX_QUANTITY_PER_MINT = 100;
115156
- var mintRequestSchema = external_exports.object({
115157
- creditsPerCode: external_exports.number().int().min(1).max(MAX_CREDITS_PER_CODE),
115158
- quantity: external_exports.number().int().min(1).max(MAX_QUANTITY_PER_MINT)
115159
- });
115160
- var mintResponseSchema = external_exports.object({
115161
- codes: external_exports.array(
115162
- external_exports.object({
115163
- code: external_exports.string(),
115164
- creditsPerCode: external_exports.number(),
115165
- expiresAt: external_exports.string()
115166
- })
115167
- )
115168
- });
115169
- var zeroRedemptionCodesMintContract = c46.router({
115170
- mint: {
115171
- method: "POST",
115172
- path: "/api/zero/redemption-codes",
115173
- headers: authHeadersSchema,
115174
- body: mintRequestSchema,
115175
- responses: {
115176
- 200: mintResponseSchema,
115177
- 400: apiErrorSchema,
115178
- 401: apiErrorSchema,
115179
- 403: apiErrorSchema,
115180
- 500: apiErrorSchema
115181
- },
115182
- summary: "Mint new redemption codes (staff-only)"
115183
- }
115184
- });
115185
- var listResponseSchema = external_exports.object({
115186
- codes: external_exports.array(
115187
- external_exports.object({
115188
- code: external_exports.string(),
115189
- creditsPerCode: external_exports.number(),
115190
- createdAt: external_exports.string(),
115191
- createdByUserId: external_exports.string(),
115192
- expiresAt: external_exports.string(),
115193
- redeemedAt: external_exports.string().nullable(),
115194
- redeemedByUserId: external_exports.string().nullable(),
115195
- redeemedByOrgId: external_exports.string().nullable()
115196
- })
115197
- )
115198
- });
115199
- var zeroRedemptionCodesListContract = c46.router({
115200
- list: {
115201
- method: "GET",
115202
- path: "/api/zero/redemption-codes",
115203
- headers: authHeadersSchema,
115204
- responses: {
115205
- 200: listResponseSchema,
115206
- 401: apiErrorSchema,
115207
- 403: apiErrorSchema,
115208
- 500: apiErrorSchema
115209
- },
115210
- summary: "List minted redemption codes with redemption status (staff-only)"
115211
- }
115212
- });
115213
- var redeemRequestSchema = external_exports.object({
115214
- code: external_exports.string().min(1).max(32)
115215
- });
115216
- var redeemResponseSchema = external_exports.object({
115217
- credits: external_exports.number(),
115218
- newBalance: external_exports.number()
115219
- });
115220
- var zeroRedemptionCodesRedeemContract = c46.router({
115221
- redeem: {
115222
- method: "POST",
115223
- path: "/api/zero/redemption-codes/redeem",
115224
- headers: authHeadersSchema,
115225
- body: redeemRequestSchema,
115226
- responses: {
115227
- 200: redeemResponseSchema,
115228
- 400: apiErrorSchema,
115229
- 401: apiErrorSchema,
115230
- 429: apiErrorSchema,
115231
- 500: apiErrorSchema
115232
- },
115233
- summary: "Redeem a code for credits"
115234
- }
115235
- });
115236
-
115237
115214
  // ../../packages/core/src/contracts/zero-insights.ts
115238
115215
  init_esm_shims();
115239
115216
  var c47 = initContract();
@@ -115390,10 +115367,8 @@ var zeroVoiceChatContextContract = c49.router({
115390
115367
  // ../../packages/core/src/contracts/zero-voice-chat-sessions.ts
115391
115368
  init_esm_shims();
115392
115369
  var c50 = initContract();
115393
- var voiceChatModeSchema = external_exports.enum(["chat", "meeting"]);
115394
115370
  var voiceChatSessionBaseSchema = external_exports.object({
115395
115371
  id: external_exports.string(),
115396
- mode: voiceChatModeSchema,
115397
115372
  status: external_exports.string()
115398
115373
  });
115399
115374
  var voiceChatSessionCreatedSchema = voiceChatSessionBaseSchema.extend({
@@ -115402,9 +115377,7 @@ var voiceChatSessionCreatedSchema = voiceChatSessionBaseSchema.extend({
115402
115377
  prepared: external_exports.boolean()
115403
115378
  });
115404
115379
  var createVoiceChatSessionBodySchema = external_exports.object({
115405
- agentId: external_exports.string().min(1),
115406
- mode: voiceChatModeSchema.optional(),
115407
- prompt: external_exports.string().min(1).optional()
115380
+ agentId: external_exports.string().min(1)
115408
115381
  });
115409
115382
  var voiceChatTokenBodySchema = external_exports.object({
115410
115383
  model: external_exports.string().optional()
@@ -115485,92 +115458,15 @@ var zeroVoiceChatSessionsContract = c50.router({
115485
115458
  }
115486
115459
  });
115487
115460
 
115488
- // ../../packages/core/src/contracts/zero-voice-chat-prepare.ts
115489
- init_esm_shims();
115490
- var c51 = initContract();
115491
- var prepareTriggerBodySchema = external_exports.object({
115492
- agentId: external_exports.string().min(1),
115493
- mode: external_exports.enum(["chat", "meeting"]).default("chat"),
115494
- prompt: external_exports.string().min(1).optional()
115495
- });
115496
- var prepareTriggerResponseSchema = external_exports.object({
115497
- preparation: external_exports.object({
115498
- id: external_exports.string(),
115499
- status: external_exports.enum(["preparing", "ready", "failed"]),
115500
- runId: external_exports.string().optional()
115501
- })
115502
- });
115503
- var zeroVoiceChatPrepareTriggerContract = c51.router({
115504
- trigger: {
115505
- method: "POST",
115506
- path: "/api/zero/voice-chat/prepare",
115507
- headers: authHeadersSchema,
115508
- body: prepareTriggerBodySchema,
115509
- responses: {
115510
- 200: prepareTriggerResponseSchema,
115511
- 400: apiErrorSchema,
115512
- 401: apiErrorSchema,
115513
- 403: apiErrorSchema
115514
- },
115515
- summary: "Trigger a voice-chat preparation run (with dedup and cache)"
115516
- }
115517
- });
115518
- var prepareCompleteBodySchema = external_exports.object({
115519
- content: external_exports.string().min(1)
115520
- });
115521
- var prepareCompleteResponseSchema = external_exports.object({
115522
- id: external_exports.string(),
115523
- status: external_exports.enum(["preparing", "ready", "failed"])
115524
- });
115525
- var zeroVoiceChatPrepareCompleteContract = c51.router({
115526
- complete: {
115527
- method: "POST",
115528
- path: "/api/zero/voice-chat/prepare/complete",
115529
- headers: authHeadersSchema,
115530
- body: prepareCompleteBodySchema,
115531
- responses: {
115532
- 200: prepareCompleteResponseSchema,
115533
- 400: apiErrorSchema,
115534
- 401: apiErrorSchema,
115535
- 404: apiErrorSchema
115536
- },
115537
- summary: "Complete a voice-chat preparation run by submitting the directive content"
115538
- }
115539
- });
115540
- var prepareListResponseSchema = external_exports.object({
115541
- preparations: external_exports.array(
115542
- external_exports.object({
115543
- id: external_exports.string(),
115544
- mode: external_exports.string(),
115545
- prompt: external_exports.string().nullable(),
115546
- agentId: external_exports.string().nullable(),
115547
- createdAt: external_exports.string()
115548
- })
115549
- )
115550
- });
115551
- var zeroVoiceChatPrepareListContract = c51.router({
115552
- list: {
115553
- method: "GET",
115554
- path: "/api/zero/voice-chat/prepare/list",
115555
- headers: authHeadersSchema,
115556
- responses: {
115557
- 200: prepareListResponseSchema,
115558
- 401: apiErrorSchema,
115559
- 403: apiErrorSchema
115560
- },
115561
- summary: "List fresh meeting preparations for the current user"
115562
- }
115563
- });
115564
-
115565
115461
  // ../../packages/core/src/contracts/zero-voice-io-quota.ts
115566
115462
  init_esm_shims();
115567
- var c52 = initContract();
115463
+ var c51 = initContract();
115568
115464
  var audioInputQuotaResponseSchema = external_exports.object({
115569
115465
  allowed: external_exports.boolean(),
115570
115466
  count: external_exports.number().int().nonnegative(),
115571
115467
  limit: external_exports.number().int().positive().nullable()
115572
115468
  });
115573
- var zeroVoiceIoQuotaContract = c52.router({
115469
+ var zeroVoiceIoQuotaContract = c51.router({
115574
115470
  get: {
115575
115471
  method: "GET",
115576
115472
  path: "/api/zero/voice-io/quota",
@@ -115586,7 +115482,7 @@ var zeroVoiceIoQuotaContract = c52.router({
115586
115482
 
115587
115483
  // ../../packages/core/src/contracts/zero-voice-chat-candidate.ts
115588
115484
  init_esm_shims();
115589
- var c53 = initContract();
115485
+ var c52 = initContract();
115590
115486
  var voiceChatCandidateSessionStatusSchema = external_exports.enum([
115591
115487
  "active",
115592
115488
  "ended",
@@ -115664,7 +115560,7 @@ var createTaskBodySchema = external_exports.object({
115664
115560
  });
115665
115561
  var tokenBodySchema = external_exports.object({ model: external_exports.string().optional() });
115666
115562
  var okResponseSchema2 = external_exports.object({ ok: external_exports.literal(true) });
115667
- var zeroVoiceChatCandidateContract = c53.router({
115563
+ var zeroVoiceChatCandidateContract = c52.router({
115668
115564
  createSession: {
115669
115565
  method: "POST",
115670
115566
  path: "/api/zero/voice-chat-candidate",
@@ -115775,7 +115671,7 @@ var zeroVoiceChatCandidateContract = c53.router({
115775
115671
 
115776
115672
  // ../../packages/core/src/contracts/tasks.ts
115777
115673
  init_esm_shims();
115778
- var c54 = initContract();
115674
+ var c53 = initContract();
115779
115675
  var taskTypeSchema = external_exports.enum([
115780
115676
  "chat",
115781
115677
  "schedule",
@@ -115816,7 +115712,7 @@ var unarchiveTaskBodySchema = external_exports.object({
115816
115712
  taskId: external_exports.string(),
115817
115713
  taskType: taskTypeSchema
115818
115714
  });
115819
- var tasksContract = c54.router({
115715
+ var tasksContract = c53.router({
115820
115716
  list: {
115821
115717
  method: "GET",
115822
115718
  path: "/api/zero/tasks",
@@ -115856,7 +115752,7 @@ var tasksContract = c54.router({
115856
115752
 
115857
115753
  // ../../packages/core/src/contracts/zero-phone.ts
115858
115754
  init_esm_shims();
115859
- var c55 = initContract();
115755
+ var c54 = initContract();
115860
115756
  var phoneStatusResponseSchema = external_exports.object({
115861
115757
  userPhone: external_exports.string().nullable(),
115862
115758
  userPhonePending: external_exports.string().nullable(),
@@ -115875,7 +115771,7 @@ var phoneSetupResponseSchema = external_exports.object({
115875
115771
  var phoneErrorResponseSchema = external_exports.object({
115876
115772
  error: external_exports.string()
115877
115773
  });
115878
- var zeroPhoneStatusContract = c55.router({
115774
+ var zeroPhoneStatusContract = c54.router({
115879
115775
  getStatus: {
115880
115776
  method: "GET",
115881
115777
  path: "/api/zero/phone/status",
@@ -115887,7 +115783,7 @@ var zeroPhoneStatusContract = c55.router({
115887
115783
  summary: "Get the current user's phone link status"
115888
115784
  }
115889
115785
  });
115890
- var zeroPhoneLinkContract = c55.router({
115786
+ var zeroPhoneLinkContract = c54.router({
115891
115787
  link: {
115892
115788
  method: "POST",
115893
115789
  path: "/api/zero/phone/link",
@@ -115905,7 +115801,7 @@ var zeroPhoneLinkContract = c55.router({
115905
115801
  method: "DELETE",
115906
115802
  path: "/api/zero/phone/link",
115907
115803
  headers: authHeadersSchema,
115908
- body: c55.noBody(),
115804
+ body: c54.noBody(),
115909
115805
  responses: {
115910
115806
  200: phoneSuccessResponseSchema,
115911
115807
  401: phoneErrorResponseSchema
@@ -115913,12 +115809,12 @@ var zeroPhoneLinkContract = c55.router({
115913
115809
  summary: "Remove the current user's phone link"
115914
115810
  }
115915
115811
  });
115916
- var zeroPhoneSetupContract = c55.router({
115812
+ var zeroPhoneSetupContract = c54.router({
115917
115813
  setup: {
115918
115814
  method: "POST",
115919
115815
  path: "/api/zero/phone/setup",
115920
115816
  headers: authHeadersSchema,
115921
- body: c55.noBody(),
115817
+ body: c54.noBody(),
115922
115818
  responses: {
115923
115819
  200: phoneSetupResponseSchema,
115924
115820
  401: phoneErrorResponseSchema,
@@ -115931,7 +115827,7 @@ var zeroPhoneSetupContract = c55.router({
115931
115827
 
115932
115828
  // ../../packages/core/src/contracts/zero-uploads.ts
115933
115829
  init_esm_shims();
115934
- var c56 = initContract();
115830
+ var c55 = initContract();
115935
115831
  var prepareRequestSchema = external_exports.object({
115936
115832
  filename: external_exports.string().min(1).max(255),
115937
115833
  contentType: external_exports.string().min(1).max(200),
@@ -115947,7 +115843,7 @@ var prepareResponseSchema = external_exports.object({
115947
115843
  /** Presigned GET URL returned to the app after upload succeeds. */
115948
115844
  url: external_exports.string().url()
115949
115845
  });
115950
- var zeroUploadsContract = c56.router({
115846
+ var zeroUploadsContract = c55.router({
115951
115847
  prepare: {
115952
115848
  method: "POST",
115953
115849
  path: "/api/zero/uploads/prepare",
@@ -115966,7 +115862,7 @@ var zeroUploadsContract = c56.router({
115966
115862
 
115967
115863
  // ../../packages/core/src/contracts/zero-integrations-telegram.ts
115968
115864
  init_esm_shims();
115969
- var c57 = initContract();
115865
+ var c56 = initContract();
115970
115866
  var telegramEnvironmentSchema = external_exports.object({
115971
115867
  requiredSecrets: external_exports.array(external_exports.string()),
115972
115868
  requiredVars: external_exports.array(external_exports.string()),
@@ -116003,7 +115899,7 @@ var telegramRegisterResponseSchema = external_exports.object({
116003
115899
  webhookUrl: external_exports.string(),
116004
115900
  domainConfigured: external_exports.boolean()
116005
115901
  });
116006
- var zeroIntegrationsTelegramContract = c57.router({
115902
+ var zeroIntegrationsTelegramContract = c56.router({
116007
115903
  getStatus: {
116008
115904
  method: "GET",
116009
115905
  path: "/api/integrations/telegram",
@@ -116033,9 +115929,9 @@ var zeroIntegrationsTelegramContract = c57.router({
116033
115929
  method: "DELETE",
116034
115930
  path: "/api/integrations/telegram",
116035
115931
  headers: authHeadersSchema,
116036
- body: c57.noBody(),
115932
+ body: c56.noBody(),
116037
115933
  responses: {
116038
- 204: c57.noBody(),
115934
+ 204: c56.noBody(),
116039
115935
  401: apiErrorSchema,
116040
115936
  404: apiErrorSchema
116041
115937
  },
@@ -116382,7 +116278,7 @@ var FEATURE_SWITCHES = {
116382
116278
  },
116383
116279
  ["apiKeys" /* ApiKeys */]: {
116384
116280
  maintainer: "ethan@vm0.ai",
116385
- description: "Show the API Keys tab in Manage Account (Clerk UserProfile). When disabled, the tab is hidden even if API Keys are enabled in the Clerk dashboard.",
116281
+ description: "Gate the custom /settings/api-keys UI for issuing personal access tokens used by the /api/v1 public surface. When disabled, the settings page redirects to / and the sidebar menu item is hidden. The backend /api/v1 verification does NOT consult this flag \u2014 previously issued PATs continue to work.",
116386
116282
  enabled: false
116387
116283
  },
116388
116284
  ["slackAgentSwitch" /* SlackAgentSwitch */]: {
@@ -116407,12 +116303,6 @@ var FEATURE_SWITCHES = {
116407
116303
  maintainer: "ethan@vm0.ai",
116408
116304
  description: "Replace the per-agent chat list with a unified Chats view that includes threads from every agent in the user's org (sub-agents included). Gates the sidebar + /chats title/placeholder/aria-label swaps, the per-row agent avatar render, and the unscoped request shape. New-chat creation still uses the current-agent fallback.",
116409
116305
  enabled: false
116410
- },
116411
- ["redemptionCodes" /* RedemptionCodes */]: {
116412
- maintainer: "yuma@vm0.ai",
116413
- description: "Show the internal /_/redemption-codes page (mint + redeem UI). UI-visibility gate only \u2014 the mint endpoint is independently protected by a STAFF_ORG_ID_HASHES identity check on the server, so this flag does NOT authorize minting.",
116414
- enabled: false,
116415
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
116416
116306
  }
116417
116307
  };
116418
116308
  function isFeatureEnabled(key, ctx) {
@@ -117706,21 +117596,6 @@ async function appendVoiceChatContextEvent(sessionId, body) {
117706
117596
  handleError(result, "Failed to append voice-chat context event");
117707
117597
  }
117708
117598
 
117709
- // src/lib/api/domains/zero-voice-chat-prepare.ts
117710
- init_esm_shims();
117711
- async function completeVoiceChatPreparation(content) {
117712
- const config4 = await getClientConfig();
117713
- const client = initClient(zeroVoiceChatPrepareCompleteContract, config4);
117714
- const result = await client.complete({
117715
- body: { content },
117716
- headers: {}
117717
- });
117718
- if (result.status === 200) {
117719
- return result.body;
117720
- }
117721
- handleError(result, "Failed to complete voice-chat preparation");
117722
- }
117723
-
117724
117599
  // src/lib/api/domains/web.ts
117725
117600
  init_esm_shims();
117726
117601
  import { createWriteStream as createWriteStream2, readFileSync as readFileSync3, statSync } from "fs";
@@ -118997,7 +118872,6 @@ export {
118997
118872
  getPhoneCallDetail,
118998
118873
  getVoiceChatContextEvents,
118999
118874
  appendVoiceChatContextEvent,
119000
- completeVoiceChatPreparation,
119001
118875
  downloadWebFile,
119002
118876
  uploadWebFile,
119003
118877
  require_prompts3 as require_prompts,
@@ -119033,4 +118907,4 @@ undici/lib/web/fetch/body.js:
119033
118907
  undici/lib/web/websocket/frame.js:
119034
118908
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
119035
118909
  */
119036
- //# sourceMappingURL=chunk-QCBJS3R3.js.map
118910
+ //# sourceMappingURL=chunk-GB3ETMZ2.js.map