@vm0/cli 9.145.9 → 9.145.11

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 c57 = "color: " + this.color;
4633
- args.splice(1, 0, c57, "color: inherit");
4632
+ const c58 = "color: " + this.color;
4633
+ args.splice(1, 0, c58, "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, c57);
4645
+ args.splice(lastC, 0, c58);
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 c57 = this.color;
4934
- const colorCode = "\x1B[3" + (c57 < 8 ? c57 : "8;5;" + c57);
4933
+ const c58 = this.color;
4934
+ const colorCode = "\x1B[3" + (c58 < 8 ? c58 : "8;5;" + c58);
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 c57;
8984
+ let c58;
8985
8985
  if (isAlphaSequence) {
8986
- c57 = String.fromCharCode(i);
8987
- if (c57 === "\\") {
8988
- c57 = "";
8986
+ c58 = String.fromCharCode(i);
8987
+ if (c58 === "\\") {
8988
+ c58 = "";
8989
8989
  }
8990
8990
  } else {
8991
- c57 = String(i);
8991
+ c58 = String(i);
8992
8992
  if (pad) {
8993
- const need = width - c57.length;
8993
+ const need = width - c58.length;
8994
8994
  if (need > 0) {
8995
8995
  const z3 = new Array(need + 1).join("0");
8996
8996
  if (i < 0) {
8997
- c57 = "-" + z3 + c57.slice(1);
8997
+ c58 = "-" + z3 + c58.slice(1);
8998
8998
  } else {
8999
- c57 = z3 + c57;
8999
+ c58 = z3 + c58;
9000
9000
  }
9001
9001
  }
9002
9002
  }
9003
9003
  }
9004
- N.push(c57);
9004
+ N.push(c58);
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 c57 = glob.charAt(i);
9088
- if ((c57 === "!" || c57 === "^") && i === pos + 1) {
9087
+ const c58 = glob.charAt(i);
9088
+ if ((c58 === "!" || c58 === "^") && i === pos + 1) {
9089
9089
  negate = true;
9090
9090
  i++;
9091
9091
  continue;
9092
9092
  }
9093
- if (c57 === "]" && sawStart && !escaping) {
9093
+ if (c58 === "]" && sawStart && !escaping) {
9094
9094
  endPos = i + 1;
9095
9095
  break;
9096
9096
  }
9097
9097
  sawStart = true;
9098
- if (c57 === "\\") {
9098
+ if (c58 === "\\") {
9099
9099
  if (!escaping) {
9100
9100
  escaping = true;
9101
9101
  i++;
9102
9102
  continue;
9103
9103
  }
9104
9104
  }
9105
- if (c57 === "[" && !escaping) {
9105
+ if (c58 === "[" && !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 (c57 > rangeStart) {
9124
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c57));
9125
- } else if (c57 === rangeStart) {
9126
- ranges.push(braceEscape(c57));
9123
+ if (c58 > rangeStart) {
9124
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c58));
9125
+ } else if (c58 === rangeStart) {
9126
+ ranges.push(braceEscape(c58));
9127
9127
  }
9128
9128
  rangeStart = "";
9129
9129
  i++;
9130
9130
  continue;
9131
9131
  }
9132
9132
  if (glob.startsWith("-]", i + 1)) {
9133
- ranges.push(braceEscape(c57 + "-"));
9133
+ ranges.push(braceEscape(c58 + "-"));
9134
9134
  i += 2;
9135
9135
  continue;
9136
9136
  }
9137
9137
  if (glob.startsWith("-", i + 1)) {
9138
- rangeStart = c57;
9138
+ rangeStart = c58;
9139
9139
  i += 2;
9140
9140
  continue;
9141
9141
  }
9142
- ranges.push(braceEscape(c57));
9142
+ ranges.push(braceEscape(c58));
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 = (c57) => types.has(c57);
9193
- var isExtglobAST = (c57) => isExtglobType(c57.type);
9192
+ var isExtglobType = (c58) => types.has(c58);
9193
+ var isExtglobAST = (c58) => isExtglobType(c58.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 c57 = new _a2(this.type, parent);
9390
+ const c58 = new _a2(this.type, parent);
9391
9391
  for (const p of this.#parts) {
9392
- c57.copyIn(p);
9392
+ c58.copyIn(p);
9393
9393
  }
9394
- return c57;
9394
+ return c58;
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 c57 = str.charAt(i2++);
9407
- if (escaping || c57 === "\\") {
9406
+ const c58 = str.charAt(i2++);
9407
+ if (escaping || c58 === "\\") {
9408
9408
  escaping = !escaping;
9409
- acc2 += c57;
9409
+ acc2 += c58;
9410
9410
  continue;
9411
9411
  }
9412
9412
  if (inBrace) {
9413
9413
  if (i2 === braceStart + 1) {
9414
- if (c57 === "^" || c57 === "!") {
9414
+ if (c58 === "^" || c58 === "!") {
9415
9415
  braceNeg = true;
9416
9416
  }
9417
- } else if (c57 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9417
+ } else if (c58 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9418
9418
  inBrace = false;
9419
9419
  }
9420
- acc2 += c57;
9420
+ acc2 += c58;
9421
9421
  continue;
9422
- } else if (c57 === "[") {
9422
+ } else if (c58 === "[") {
9423
9423
  inBrace = true;
9424
9424
  braceStart = i2;
9425
9425
  braceNeg = false;
9426
- acc2 += c57;
9426
+ acc2 += c58;
9427
9427
  continue;
9428
9428
  }
9429
- const doRecurse = !opt.noext && isExtglobType(c57) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9429
+ const doRecurse = !opt.noext && isExtglobType(c58) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9430
9430
  if (doRecurse) {
9431
9431
  ast.push(acc2);
9432
9432
  acc2 = "";
9433
- const ext = new _a2(c57, ast);
9433
+ const ext = new _a2(c58, ast);
9434
9434
  i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
9435
9435
  ast.push(ext);
9436
9436
  continue;
9437
9437
  }
9438
- acc2 += c57;
9438
+ acc2 += c58;
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 c57 = str.charAt(i++);
9449
- if (escaping || c57 === "\\") {
9448
+ const c58 = str.charAt(i++);
9449
+ if (escaping || c58 === "\\") {
9450
9450
  escaping = !escaping;
9451
- acc += c57;
9451
+ acc += c58;
9452
9452
  continue;
9453
9453
  }
9454
9454
  if (inBrace) {
9455
9455
  if (i === braceStart + 1) {
9456
- if (c57 === "^" || c57 === "!") {
9456
+ if (c58 === "^" || c58 === "!") {
9457
9457
  braceNeg = true;
9458
9458
  }
9459
- } else if (c57 === "]" && !(i === braceStart + 2 && braceNeg)) {
9459
+ } else if (c58 === "]" && !(i === braceStart + 2 && braceNeg)) {
9460
9460
  inBrace = false;
9461
9461
  }
9462
- acc += c57;
9462
+ acc += c58;
9463
9463
  continue;
9464
- } else if (c57 === "[") {
9464
+ } else if (c58 === "[") {
9465
9465
  inBrace = true;
9466
9466
  braceStart = i;
9467
9467
  braceNeg = false;
9468
- acc += c57;
9468
+ acc += c58;
9469
9469
  continue;
9470
9470
  }
9471
- const doRecurse = !opt.noext && isExtglobType(c57) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
- (extDepth <= maxDepth || ast && ast.#canAdoptType(c57));
9471
+ const doRecurse = !opt.noext && isExtglobType(c58) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c58));
9473
9473
  if (doRecurse) {
9474
- const depthAdd = ast && ast.#canAdoptType(c57) ? 0 : 1;
9474
+ const depthAdd = ast && ast.#canAdoptType(c58) ? 0 : 1;
9475
9475
  part.push(acc);
9476
9476
  acc = "";
9477
- const ext = new _a2(c57, part);
9477
+ const ext = new _a2(c58, part);
9478
9478
  part.push(ext);
9479
9479
  i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
9480
9480
  continue;
9481
9481
  }
9482
- if (c57 === "|") {
9482
+ if (c58 === "|") {
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 (c57 === ")") {
9489
+ if (c58 === ")") {
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 += c57;
9498
+ acc += c58;
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(c57, map2 = adoptionAnyMap) {
9519
- return !!map2.get(this.type)?.includes(c57);
9518
+ #canAdoptType(c58, map2 = adoptionAnyMap) {
9519
+ return !!map2.get(this.type)?.includes(c58);
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(c57) {
9537
+ #canUsurpType(c58) {
9538
9538
  const m = usurpMap.get(this.type);
9539
- return !!m?.has(c57);
9539
+ return !!m?.has(c58);
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 c57 = this.#parts[i];
9753
- if (typeof c57 === "object") {
9754
- c57.#flatten();
9755
- if (this.#canAdopt(c57)) {
9752
+ const c58 = this.#parts[i];
9753
+ if (typeof c58 === "object") {
9754
+ c58.#flatten();
9755
+ if (this.#canAdopt(c58)) {
9756
9756
  done = false;
9757
- this.#adopt(c57, i);
9758
- } else if (this.#canAdoptWithSpace(c57)) {
9757
+ this.#adopt(c58, i);
9758
+ } else if (this.#canAdoptWithSpace(c58)) {
9759
9759
  done = false;
9760
- this.#adoptWithSpace(c57, i);
9761
- } else if (this.#canUsurp(c57)) {
9760
+ this.#adoptWithSpace(c58, i);
9761
+ } else if (this.#canUsurp(c58)) {
9762
9762
  done = false;
9763
- this.#usurp(c57);
9763
+ this.#usurp(c58);
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 c57 = glob.charAt(i);
9787
+ const c58 = glob.charAt(i);
9788
9788
  if (escaping) {
9789
9789
  escaping = false;
9790
- re += (reSpecials.has(c57) ? "\\" : "") + c57;
9790
+ re += (reSpecials.has(c58) ? "\\" : "") + c58;
9791
9791
  continue;
9792
9792
  }
9793
- if (c57 === "*") {
9793
+ if (c58 === "*") {
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 (c57 === "\\") {
9803
+ if (c58 === "\\") {
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 (c57 === "[") {
9811
+ if (c58 === "[") {
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 (c57 === "?") {
9821
+ if (c58 === "?") {
9822
9822
  re += qmark;
9823
9823
  hasMagic = true;
9824
9824
  continue;
9825
9825
  }
9826
- re += regExpEscape(c57);
9826
+ re += regExpEscape(c58);
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 c57 = pool.config.connectionConfig;
13750
+ const c58 = pool.config.connectionConfig;
13751
13751
  let poolName = "";
13752
- poolName += c57.host ? `host: '${c57.host}', ` : "";
13753
- poolName += c57.port ? `port: ${c57.port}, ` : "";
13754
- poolName += c57.database ? `database: '${c57.database}', ` : "";
13755
- poolName += c57.user ? `user: '${c57.user}'` : "";
13756
- if (!c57.user) {
13752
+ poolName += c58.host ? `host: '${c58.host}', ` : "";
13753
+ poolName += c58.port ? `port: ${c58.port}, ` : "";
13754
+ poolName += c58.database ? `database: '${c58.database}', ` : "";
13755
+ poolName += c58.user ? `user: '${c58.user}'` : "";
13756
+ if (!c58.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, (c57) => `%${c57.charCodeAt(0).toString(16).toUpperCase()}`);
14108
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c58) => `%${c58.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(c57) {
22669
- switch (c57) {
22668
+ function isTokenCharCode(c58) {
22669
+ switch (c58) {
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 c57 >= 33 && c57 <= 126;
22689
+ return c58 >= 33 && c58 <= 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((c57) => c57 !== 44);
24278
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c58) => c58 !== 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 c57 = statusText.charCodeAt(i);
25425
- if (!(c57 === 9 || // HTAB
25426
- c57 >= 32 && c57 <= 126 || // SP / VCHAR
25427
- c57 >= 128 && c57 <= 255)) {
25424
+ const c58 = statusText.charCodeAt(i);
25425
+ if (!(c58 === 9 || // HTAB
25426
+ c58 >= 32 && c58 <= 126 || // SP / VCHAR
25427
+ c58 >= 128 && c58 <= 255)) {
25428
25428
  return false;
25429
25429
  }
25430
25430
  }
@@ -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((c57) => c57.close())).then(pool[kClosedResolve]);
29401
+ Promise.all(pool[kClients].map((c58) => c58.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((c57) => c57.close()));
29450
+ await Promise.all(this[kClients].map((c58) => c58.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((c57) => c57.destroy(err)));
29465
+ await Promise.all(this[kClients].map((c58) => c58.destroy(err)));
29466
29466
  }
29467
29467
  [kDispatch](opts, handler) {
29468
29468
  const dispatcher = this[kGetDispatcher]();
@@ -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, c57] = ioQueue;
36236
- if (a === 239 && b === 187 && c57 === 191) {
36235
+ const [a, b, c58] = ioQueue;
36236
+ if (a === 239 && b === 187 && c58 === 191) {
36237
36237
  return "UTF-8";
36238
36238
  } else if (a === 254 && b === 255) {
36239
36239
  return "UTF-16BE";
@@ -40712,9 +40712,9 @@ var require_Alias = __commonJS({
40712
40712
  } else if (identity.isCollection(node2)) {
40713
40713
  let count = 0;
40714
40714
  for (const item of node2.items) {
40715
- const c57 = getAliasCount(doc, item, anchors2);
40716
- if (c57 > count)
40717
- count = c57;
40715
+ const c58 = getAliasCount(doc, item, anchors2);
40716
+ if (c58 > count)
40717
+ count = c58;
40718
40718
  }
40719
40719
  return count;
40720
40720
  } else if (identity.isPair(node2)) {
@@ -47730,7 +47730,7 @@ var require_style = __commonJS({
47730
47730
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
47731
47731
  "use strict";
47732
47732
  init_esm_shims();
47733
- var c57 = require_kleur();
47733
+ var c58 = require_kleur();
47734
47734
  var figures = require_figures();
47735
47735
  var styles3 = Object.freeze({
47736
47736
  password: {
@@ -47752,14 +47752,14 @@ var require_style = __commonJS({
47752
47752
  });
47753
47753
  var render = (type) => styles3[type] || styles3.default;
47754
47754
  var symbols = Object.freeze({
47755
- aborted: c57.red(figures.cross),
47756
- done: c57.green(figures.tick),
47757
- exited: c57.yellow(figures.cross),
47758
- default: c57.cyan("?")
47755
+ aborted: c58.red(figures.cross),
47756
+ done: c58.green(figures.tick),
47757
+ exited: c58.yellow(figures.cross),
47758
+ default: c58.cyan("?")
47759
47759
  });
47760
47760
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
47761
- var delimiter = (completing) => c57.gray(completing ? figures.ellipsis : figures.pointerSmall);
47762
- var item = (expandable, expanded) => c57.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
47761
+ var delimiter = (completing) => c58.gray(completing ? figures.ellipsis : figures.pointerSmall);
47762
+ var item = (expandable, expanded) => c58.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
47763
47763
  module2.exports = {
47764
47764
  styles: styles3,
47765
47765
  render,
@@ -48041,10 +48041,10 @@ var require_text = __commonJS({
48041
48041
  this.cursor = this.cursor + n;
48042
48042
  this.cursorOffset += n;
48043
48043
  }
48044
- _(c57, key) {
48044
+ _(c58, key) {
48045
48045
  let s1 = this.value.slice(0, this.cursor);
48046
48046
  let s2 = this.value.slice(this.cursor);
48047
- this.value = `${s1}${c57}${s2}`;
48047
+ this.value = `${s1}${c58}${s2}`;
48048
48048
  this.red = false;
48049
48049
  this.cursor = this.placeholder ? 0 : s1.length + 1;
48050
48050
  this.render();
@@ -48219,8 +48219,8 @@ var require_select = __commonJS({
48219
48219
  this.moveCursor((this.cursor + 1) % this.choices.length);
48220
48220
  this.render();
48221
48221
  }
48222
- _(c57, key) {
48223
- if (c57 === " ") return this.submit();
48222
+ _(c58, key) {
48223
+ if (c58 === " ") return this.submit();
48224
48224
  }
48225
48225
  get selection() {
48226
48226
  return this.choices[this.cursor];
@@ -48346,12 +48346,12 @@ var require_toggle = __commonJS({
48346
48346
  this.fire();
48347
48347
  this.render();
48348
48348
  }
48349
- _(c57, key) {
48350
- if (c57 === " ") {
48349
+ _(c58, key) {
48350
+ if (c58 === " ") {
48351
48351
  this.value = !this.value;
48352
- } else if (c57 === "1") {
48352
+ } else if (c58 === "1") {
48353
48353
  this.value = true;
48354
- } else if (c57 === "0") {
48354
+ } else if (c58 === "0") {
48355
48355
  this.value = false;
48356
48356
  } else return this.bell();
48357
48357
  this.render();
@@ -48859,9 +48859,9 @@ var require_date = __commonJS({
48859
48859
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
48860
48860
  this.render();
48861
48861
  }
48862
- _(c57) {
48863
- if (/\d/.test(c57)) {
48864
- this.typed += c57;
48862
+ _(c58) {
48863
+ if (/\d/.test(c58)) {
48864
+ this.typed += c58;
48865
48865
  this.parts[this.cursor].setTo(this.typed);
48866
48866
  this.render();
48867
48867
  }
@@ -48970,8 +48970,8 @@ var require_number = __commonJS({
48970
48970
  parse(x2) {
48971
48971
  return this.float ? parseFloat(x2) : parseInt(x2);
48972
48972
  }
48973
- valid(c57) {
48974
- return c57 === `-` || c57 === `.` && this.float || isNumber.test(c57);
48973
+ valid(c58) {
48974
+ return c58 === `-` || c58 === `.` && this.float || isNumber.test(c58);
48975
48975
  }
48976
48976
  reset() {
48977
48977
  this.typed = ``;
@@ -49064,14 +49064,14 @@ var require_number = __commonJS({
49064
49064
  this.fire();
49065
49065
  this.render();
49066
49066
  }
49067
- _(c57, key) {
49068
- if (!this.valid(c57)) return this.bell();
49067
+ _(c58, key) {
49068
+ if (!this.valid(c58)) return this.bell();
49069
49069
  const now = Date.now();
49070
49070
  if (now - this.lastHit > 1e3) this.typed = ``;
49071
- this.typed += c57;
49071
+ this.typed += c58;
49072
49072
  this.lastHit = now;
49073
49073
  this.color = `cyan`;
49074
- if (c57 === `.`) return this.fire();
49074
+ if (c58 === `.`) return this.fire();
49075
49075
  this.value = Math.min(this.parse(this.typed), this.max);
49076
49076
  if (this.value > this.max) this.value = this.max;
49077
49077
  if (this.value < this.min) this.value = this.min;
@@ -49235,10 +49235,10 @@ var require_multiselect = __commonJS({
49235
49235
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
49236
49236
  this.render();
49237
49237
  }
49238
- _(c57, key) {
49239
- if (c57 === " ") {
49238
+ _(c58, key) {
49239
+ if (c58 === " ") {
49240
49240
  this.handleSpaceToggle();
49241
- } else if (c57 === "a") {
49241
+ } else if (c58 === "a") {
49242
49242
  this.toggleAll();
49243
49243
  } else {
49244
49244
  return this.bell();
@@ -49479,10 +49479,10 @@ var require_autocomplete = __commonJS({
49479
49479
  this.out.write("\n");
49480
49480
  this.close();
49481
49481
  }
49482
- _(c57, key) {
49482
+ _(c58, key) {
49483
49483
  let s1 = this.input.slice(0, this.cursor);
49484
49484
  let s2 = this.input.slice(this.cursor);
49485
- this.input = `${s1}${c57}${s2}`;
49485
+ this.input = `${s1}${c58}${s2}`;
49486
49486
  this.cursor = s1.length + 1;
49487
49487
  this.complete(this.render);
49488
49488
  this.render();
@@ -49682,15 +49682,15 @@ var require_autocompleteMultiselect = __commonJS({
49682
49682
  this.render();
49683
49683
  }
49684
49684
  }
49685
- handleInputChange(c57) {
49686
- this.inputValue = this.inputValue + c57;
49685
+ handleInputChange(c58) {
49686
+ this.inputValue = this.inputValue + c58;
49687
49687
  this.updateFilteredOptions();
49688
49688
  }
49689
- _(c57, key) {
49690
- if (c57 === " ") {
49689
+ _(c58, key) {
49690
+ if (c58 === " ") {
49691
49691
  this.handleSpaceToggle();
49692
49692
  } else {
49693
- this.handleInputChange(c57);
49693
+ this.handleInputChange(c58);
49694
49694
  }
49695
49695
  }
49696
49696
  renderInstructions() {
@@ -49796,12 +49796,12 @@ var require_confirm = __commonJS({
49796
49796
  this.out.write("\n");
49797
49797
  this.close();
49798
49798
  }
49799
- _(c57, key) {
49800
- if (c57.toLowerCase() === "y") {
49799
+ _(c58, key) {
49800
+ if (c58.toLowerCase() === "y") {
49801
49801
  this.value = true;
49802
49802
  return this.submit();
49803
49803
  }
49804
- if (c57.toLowerCase() === "n") {
49804
+ if (c58.toLowerCase() === "n") {
49805
49805
  this.value = false;
49806
49806
  return this.submit();
49807
49807
  }
@@ -50242,7 +50242,7 @@ var require_style2 = __commonJS({
50242
50242
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
50243
50243
  "use strict";
50244
50244
  init_esm_shims();
50245
- var c57 = require_kleur();
50245
+ var c58 = require_kleur();
50246
50246
  var figures = require_figures2();
50247
50247
  var styles3 = Object.freeze({
50248
50248
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -50252,14 +50252,14 @@ var require_style2 = __commonJS({
50252
50252
  });
50253
50253
  var render = (type) => styles3[type] || styles3.default;
50254
50254
  var symbols = Object.freeze({
50255
- aborted: c57.red(figures.cross),
50256
- done: c57.green(figures.tick),
50257
- exited: c57.yellow(figures.cross),
50258
- default: c57.cyan("?")
50255
+ aborted: c58.red(figures.cross),
50256
+ done: c58.green(figures.tick),
50257
+ exited: c58.yellow(figures.cross),
50258
+ default: c58.cyan("?")
50259
50259
  });
50260
50260
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
50261
- var delimiter = (completing) => c57.gray(completing ? figures.ellipsis : figures.pointerSmall);
50262
- var item = (expandable, expanded) => c57.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
50261
+ var delimiter = (completing) => c58.gray(completing ? figures.ellipsis : figures.pointerSmall);
50262
+ var item = (expandable, expanded) => c58.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
50263
50263
  module2.exports = {
50264
50264
  styles: styles3,
50265
50265
  render,
@@ -50492,10 +50492,10 @@ var require_text2 = __commonJS({
50492
50492
  this.cursor = this.cursor + n;
50493
50493
  this.cursorOffset += n;
50494
50494
  }
50495
- _(c57, key) {
50495
+ _(c58, key) {
50496
50496
  let s1 = this.value.slice(0, this.cursor);
50497
50497
  let s2 = this.value.slice(this.cursor);
50498
- this.value = `${s1}${c57}${s2}`;
50498
+ this.value = `${s1}${c58}${s2}`;
50499
50499
  this.red = false;
50500
50500
  this.cursor = this.placeholder ? 0 : s1.length + 1;
50501
50501
  this.render();
@@ -50669,8 +50669,8 @@ var require_select2 = __commonJS({
50669
50669
  this.moveCursor((this.cursor + 1) % this.choices.length);
50670
50670
  this.render();
50671
50671
  }
50672
- _(c57, key) {
50673
- if (c57 === " ") return this.submit();
50672
+ _(c58, key) {
50673
+ if (c58 === " ") return this.submit();
50674
50674
  }
50675
50675
  get selection() {
50676
50676
  return this.choices[this.cursor];
@@ -50794,12 +50794,12 @@ var require_toggle2 = __commonJS({
50794
50794
  this.fire();
50795
50795
  this.render();
50796
50796
  }
50797
- _(c57, key) {
50798
- if (c57 === " ") {
50797
+ _(c58, key) {
50798
+ if (c58 === " ") {
50799
50799
  this.value = !this.value;
50800
- } else if (c57 === "1") {
50800
+ } else if (c58 === "1") {
50801
50801
  this.value = true;
50802
- } else if (c57 === "0") {
50802
+ } else if (c58 === "0") {
50803
50803
  this.value = false;
50804
50804
  } else return this.bell();
50805
50805
  this.render();
@@ -51255,9 +51255,9 @@ var require_date2 = __commonJS({
51255
51255
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
51256
51256
  this.render();
51257
51257
  }
51258
- _(c57) {
51259
- if (/\d/.test(c57)) {
51260
- this.typed += c57;
51258
+ _(c58) {
51259
+ if (/\d/.test(c58)) {
51260
+ this.typed += c58;
51261
51261
  this.parts[this.cursor].setTo(this.typed);
51262
51262
  this.render();
51263
51263
  }
@@ -51339,8 +51339,8 @@ var require_number2 = __commonJS({
51339
51339
  parse(x2) {
51340
51340
  return this.float ? parseFloat(x2) : parseInt(x2);
51341
51341
  }
51342
- valid(c57) {
51343
- return c57 === `-` || c57 === `.` && this.float || isNumber.test(c57);
51342
+ valid(c58) {
51343
+ return c58 === `-` || c58 === `.` && this.float || isNumber.test(c58);
51344
51344
  }
51345
51345
  reset() {
51346
51346
  this.typed = ``;
@@ -51427,14 +51427,14 @@ var require_number2 = __commonJS({
51427
51427
  this.fire();
51428
51428
  this.render();
51429
51429
  }
51430
- _(c57, key) {
51431
- if (!this.valid(c57)) return this.bell();
51430
+ _(c58, key) {
51431
+ if (!this.valid(c58)) return this.bell();
51432
51432
  const now = Date.now();
51433
51433
  if (now - this.lastHit > 1e3) this.typed = ``;
51434
- this.typed += c57;
51434
+ this.typed += c58;
51435
51435
  this.lastHit = now;
51436
51436
  this.color = `cyan`;
51437
- if (c57 === `.`) return this.fire();
51437
+ if (c58 === `.`) return this.fire();
51438
51438
  this.value = Math.min(this.parse(this.typed), this.max);
51439
51439
  if (this.value > this.max) this.value = this.max;
51440
51440
  if (this.value < this.min) this.value = this.min;
@@ -51596,10 +51596,10 @@ var require_multiselect2 = __commonJS({
51596
51596
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
51597
51597
  this.render();
51598
51598
  }
51599
- _(c57, key) {
51600
- if (c57 === " ") {
51599
+ _(c58, key) {
51600
+ if (c58 === " ") {
51601
51601
  this.handleSpaceToggle();
51602
- } else if (c57 === "a") {
51602
+ } else if (c58 === "a") {
51603
51603
  this.toggleAll();
51604
51604
  } else {
51605
51605
  return this.bell();
@@ -51796,10 +51796,10 @@ var require_autocomplete2 = __commonJS({
51796
51796
  this.out.write("\n");
51797
51797
  this.close();
51798
51798
  }
51799
- _(c57, key) {
51799
+ _(c58, key) {
51800
51800
  let s1 = this.input.slice(0, this.cursor);
51801
51801
  let s2 = this.input.slice(this.cursor);
51802
- this.input = `${s1}${c57}${s2}`;
51802
+ this.input = `${s1}${c58}${s2}`;
51803
51803
  this.cursor = s1.length + 1;
51804
51804
  this.complete(this.render);
51805
51805
  this.render();
@@ -52002,15 +52002,15 @@ var require_autocompleteMultiselect2 = __commonJS({
52002
52002
  this.render();
52003
52003
  }
52004
52004
  }
52005
- handleInputChange(c57) {
52006
- this.inputValue = this.inputValue + c57;
52005
+ handleInputChange(c58) {
52006
+ this.inputValue = this.inputValue + c58;
52007
52007
  this.updateFilteredOptions();
52008
52008
  }
52009
- _(c57, key) {
52010
- if (c57 === " ") {
52009
+ _(c58, key) {
52010
+ if (c58 === " ") {
52011
52011
  this.handleSpaceToggle();
52012
52012
  } else {
52013
- this.handleInputChange(c57);
52013
+ this.handleInputChange(c58);
52014
52014
  }
52015
52015
  }
52016
52016
  renderInstructions() {
@@ -52117,12 +52117,12 @@ var require_confirm2 = __commonJS({
52117
52117
  this.out.write("\n");
52118
52118
  this.close();
52119
52119
  }
52120
- _(c57, key) {
52121
- if (c57.toLowerCase() === "y") {
52120
+ _(c58, key) {
52121
+ if (c58.toLowerCase() === "y") {
52122
52122
  this.value = true;
52123
52123
  return this.submit();
52124
52124
  }
52125
- if (c57.toLowerCase() === "n") {
52125
+ if (c58.toLowerCase() === "n") {
52126
52126
  this.value = false;
52127
52127
  return this.submit();
52128
52128
  }
@@ -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 c57 of classes) {
53180
- out.push(`.${c57}`);
53179
+ for (const c58 of classes) {
53180
+ out.push(`.${c58}`);
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
- (c57) => (
53412
+ (c58) => (
53413
53413
  // eslint-disable-next-line no-bitwise
53414
- (c57 ^ (getRandomByte() & 15) >> c57 / 4).toString(16)
53414
+ (c58 ^ (getRandomByte() & 15) >> c58 / 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(c57, next) {
72471
+ return function(c58, next) {
72472
72472
  if (!instrumentation.isEnabled()) {
72473
- return handler.apply(this, [c57, next]);
72473
+ return handler.apply(this, [c58, next]);
72474
72474
  }
72475
- const path3 = c57.req.path;
72475
+ const path3 = c58.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, [c57, next]);
72480
+ const result = handler.apply(this, [c58, 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.145.9",
74086
+ release: "9.145.11",
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.145.9",
74105
+ version: "9.145.11",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -77433,7 +77433,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
77433
77433
  function isValidBase64URL(data) {
77434
77434
  if (!base64url.test(data))
77435
77435
  return false;
77436
- const base643 = data.replace(/[-_]/g, (c57) => c57 === "-" ? "+" : "/");
77436
+ const base643 = data.replace(/[-_]/g, (c58) => c58 === "-" ? "+" : "/");
77437
77437
  const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
77438
77438
  return isValidBase64(padded);
77439
77439
  }
@@ -87544,9 +87544,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
87544
87544
  inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
87545
87545
  inst.min = (value, params) => inst.check(_gte(value, params));
87546
87546
  inst.max = (value, params) => inst.check(_lte(value, params));
87547
- const c57 = inst._zod.bag;
87548
- inst.minDate = c57.minimum ? new Date(c57.minimum) : null;
87549
- inst.maxDate = c57.maximum ? new Date(c57.maximum) : null;
87547
+ const c58 = inst._zod.bag;
87548
+ inst.minDate = c58.minimum ? new Date(c58.minimum) : null;
87549
+ inst.maxDate = c58.maximum ? new Date(c58.maximum) : null;
87550
87550
  });
87551
87551
  function date3(params) {
87552
87552
  return _date(ZodDate, params);
@@ -97386,11 +97386,6 @@ var openai = {
97386
97386
  placeholder: "sk-..."
97387
97387
  }
97388
97388
  }
97389
- },
97390
- platform: {
97391
- label: "Enable",
97392
- helpText: "No credentials needed. Usage is billed to your org credits.",
97393
- secrets: {}
97394
97389
  }
97395
97390
  },
97396
97391
  defaultAuthMethod: "api-token"
@@ -100514,21 +100509,6 @@ var zeroConnectorsByTypeContract = c6.router({
100514
100509
  summary: "Disconnect a connector (zero proxy)"
100515
100510
  }
100516
100511
  });
100517
- var zeroPlatformConnectorContract = c6.router({
100518
- create: {
100519
- method: "POST",
100520
- path: "/api/zero/platform-connectors/:type",
100521
- headers: authHeadersSchema,
100522
- pathParams: external_exports.object({ type: connectorTypeSchema }),
100523
- body: external_exports.object({}).optional(),
100524
- responses: {
100525
- 200: connectorResponseSchema,
100526
- 400: apiErrorSchema,
100527
- 401: apiErrorSchema
100528
- },
100529
- summary: "Enable a platform-supplied connector (idempotent)"
100530
- }
100531
- });
100532
100512
  var zeroConnectorScopeDiffContract = c6.router({
100533
100513
  getScopeDiff: {
100534
100514
  method: "GET",
@@ -100544,11 +100524,7 @@ var zeroConnectorScopeDiffContract = c6.router({
100544
100524
  summary: "Get scope diff for a connector"
100545
100525
  }
100546
100526
  });
100547
- var connectorSearchAuthMethodSchema = external_exports.enum([
100548
- "oauth",
100549
- "api-token",
100550
- "platform"
100551
- ]);
100527
+ var connectorSearchAuthMethodSchema = external_exports.enum(["oauth", "api-token"]);
100552
100528
  var connectorSearchItemSchema = external_exports.object({
100553
100529
  id: external_exports.string(),
100554
100530
  label: external_exports.string(),
@@ -100653,6 +100629,18 @@ async function listZeroConnectors() {
100653
100629
  }
100654
100630
  handleError(result, "Failed to list connectors");
100655
100631
  }
100632
+ async function searchZeroConnectors(keyword) {
100633
+ const config4 = await getClientConfig();
100634
+ const client = initClient(zeroConnectorsSearchContract, config4);
100635
+ const result = await client.search({
100636
+ headers: {},
100637
+ query: keyword ? { keyword } : {}
100638
+ });
100639
+ if (result.status === 200) {
100640
+ return result.body;
100641
+ }
100642
+ handleError(result, "Failed to search connectors");
100643
+ }
100656
100644
  async function getZeroConnector(type) {
100657
100645
  const config4 = await getClientConfig();
100658
100646
  const client = initClient(zeroConnectorsByTypeContract, config4);
@@ -102352,12 +102340,18 @@ var SUPPORTED_RUN_MODELS = [
102352
102340
  "claude-opus-4-7",
102353
102341
  "claude-opus-4-6",
102354
102342
  "claude-sonnet-4-6",
102355
- "gpt-5.5",
102356
- "gpt-5.4",
102343
+ "claude-haiku-4-5",
102357
102344
  "deepseek-v4-pro",
102345
+ "deepseek-v4-flash",
102358
102346
  "kimi-k2.6",
102359
102347
  "kimi-k2.5",
102360
- "glm-5.1"
102348
+ "MiniMax-M2.7",
102349
+ "glm-5.1",
102350
+ "gpt-5.5",
102351
+ "gpt-5.4",
102352
+ "gpt-5.4-mini",
102353
+ "gpt-5.3-codex",
102354
+ "gpt-5.2"
102361
102355
  ];
102362
102356
  var supportedRunModelSchema = external_exports.enum(SUPPORTED_RUN_MODELS);
102363
102357
  var modelProviderCredentialScopeSchema = external_exports.enum(["org", "member"]);
@@ -102405,6 +102399,31 @@ var VM0_MODEL_TO_PROVIDER = {
102405
102399
  "deepseek-v4-flash": {
102406
102400
  concreteType: "deepseek-api-key",
102407
102401
  vendor: "deepseek"
102402
+ },
102403
+ "gpt-5.5": {
102404
+ concreteType: "openai-api-key",
102405
+ vendor: "openai",
102406
+ featureFlag: "codexBeta" /* CodexBeta */
102407
+ },
102408
+ "gpt-5.4": {
102409
+ concreteType: "openai-api-key",
102410
+ vendor: "openai",
102411
+ featureFlag: "codexBeta" /* CodexBeta */
102412
+ },
102413
+ "gpt-5.4-mini": {
102414
+ concreteType: "openai-api-key",
102415
+ vendor: "openai",
102416
+ featureFlag: "codexBeta" /* CodexBeta */
102417
+ },
102418
+ "gpt-5.3-codex": {
102419
+ concreteType: "openai-api-key",
102420
+ vendor: "openai",
102421
+ featureFlag: "codexBeta" /* CodexBeta */
102422
+ },
102423
+ "gpt-5.2": {
102424
+ concreteType: "openai-api-key",
102425
+ vendor: "openai",
102426
+ featureFlag: "codexBeta" /* CodexBeta */
102408
102427
  }
102409
102428
  };
102410
102429
  var MODEL_PROVIDER_TYPES = {
@@ -103066,6 +103085,39 @@ var upsertModelProviderResponseSchema = external_exports.object({
103066
103085
  var updateModelRequestSchema = external_exports.object({
103067
103086
  selectedModel: external_exports.string().optional()
103068
103087
  });
103088
+ var orgModelPolicyRouteStatusSchema = external_exports.enum([
103089
+ "valid",
103090
+ "missing_provider",
103091
+ "invalid"
103092
+ ]);
103093
+ var orgModelPolicySchema = external_exports.object({
103094
+ id: external_exports.uuid(),
103095
+ model: supportedRunModelSchema,
103096
+ modelLabel: external_exports.string(),
103097
+ isDefault: external_exports.boolean(),
103098
+ defaultProviderType: modelProviderTypeSchema,
103099
+ credentialScope: modelProviderCredentialScopeSchema,
103100
+ modelProviderId: external_exports.uuid().nullable(),
103101
+ routeStatus: orgModelPolicyRouteStatusSchema,
103102
+ routeStatusReason: external_exports.string().nullable(),
103103
+ createdAt: external_exports.string(),
103104
+ updatedAt: external_exports.string()
103105
+ });
103106
+ var updateOrgModelPolicySchema = external_exports.object({
103107
+ model: supportedRunModelSchema,
103108
+ isDefault: external_exports.boolean(),
103109
+ defaultProviderType: modelProviderTypeSchema,
103110
+ credentialScope: modelProviderCredentialScopeSchema,
103111
+ modelProviderId: external_exports.uuid().nullable()
103112
+ });
103113
+ var orgModelPoliciesResponseSchema = external_exports.object({
103114
+ policies: external_exports.array(orgModelPolicySchema),
103115
+ workspaceDefaultModel: supportedRunModelSchema.nullable(),
103116
+ workspaceDefaultPolicyId: external_exports.uuid().nullable()
103117
+ });
103118
+ var updateOrgModelPoliciesRequestSchema = external_exports.object({
103119
+ policies: external_exports.array(updateOrgModelPolicySchema)
103120
+ });
103069
103121
 
103070
103122
  // ../../packages/api-contracts/src/contracts/chat-threads.ts
103071
103123
  var c13 = initContract();
@@ -103104,34 +103156,6 @@ var persistedAttachmentSchema = external_exports.object({
103104
103156
  contentType: external_exports.string(),
103105
103157
  size: external_exports.number()
103106
103158
  });
103107
- var pendingMessageSchema = external_exports.object({
103108
- content: external_exports.string().nullable(),
103109
- attachments: external_exports.array(persistedAttachmentSchema).nullable(),
103110
- createdAt: external_exports.string(),
103111
- updatedAt: external_exports.string(),
103112
- /**
103113
- * Client-generated UUID. The auto-send path uses this as the new
103114
- * `chat_messages.id` so the optimistic queued bubble reconciles with the
103115
- * real row by matching id once the server dispatches the queued message.
103116
- * Nullable for back-compat with rows queued before this field landed.
103117
- */
103118
- clientMessageId: external_exports.string().uuid().nullable()
103119
- });
103120
- var appendPendingMessageBodySchema = external_exports.object({
103121
- content: external_exports.string().min(1).optional(),
103122
- attachments: external_exports.array(persistedAttachmentSchema).min(1).optional(),
103123
- /**
103124
- * Pre-generated UUID the client uses for its optimistic queued-message
103125
- * bubble. Persisted on the thread and reused as `chat_messages.id`
103126
- * when the auto-send path dispatches the queued message.
103127
- */
103128
- clientMessageId: external_exports.string().uuid().optional()
103129
- }).refine(
103130
- (body) => {
103131
- return body.content !== void 0 || body.attachments !== void 0;
103132
- },
103133
- { message: "content or attachments is required" }
103134
- );
103135
103159
  var chatThreadListItemSchema = external_exports.object({
103136
103160
  id: external_exports.string(),
103137
103161
  title: external_exports.string().nullable(),
@@ -103191,15 +103215,42 @@ var summaryEntrySchema = external_exports.union([
103191
103215
  toolSummaryEntrySchema,
103192
103216
  textSummaryEntrySchema
103193
103217
  ]);
103194
- var storedChatMessageSchema = external_exports.object({
103195
- role: external_exports.enum(["user", "assistant"]),
103218
+ var storedChatMessageBaseSchema = external_exports.object({
103219
+ id: external_exports.string().optional(),
103220
+ content: external_exports.string().nullable(),
103221
+ runId: external_exports.string().optional(),
103222
+ revokesMessageId: external_exports.string().optional(),
103223
+ error: external_exports.string().optional(),
103224
+ attachFiles: external_exports.array(resolvedAttachFileSchema).optional(),
103225
+ createdAt: external_exports.string()
103226
+ });
103227
+ var storedChatMessageSchema = external_exports.discriminatedUnion("role", [
103228
+ storedChatMessageBaseSchema.extend({
103229
+ role: external_exports.literal("user")
103230
+ }).strict(),
103231
+ storedChatMessageBaseSchema.extend({
103232
+ role: external_exports.literal("assistant"),
103233
+ status: external_exports.string().optional()
103234
+ })
103235
+ ]);
103236
+ var pagedChatMessageBaseSchema = external_exports.object({
103237
+ id: external_exports.string(),
103196
103238
  content: external_exports.string().nullable(),
103197
103239
  runId: external_exports.string().optional(),
103240
+ revokesMessageId: external_exports.string().optional(),
103198
103241
  error: external_exports.string().optional(),
103199
- status: external_exports.string().optional(),
103200
103242
  attachFiles: external_exports.array(resolvedAttachFileSchema).optional(),
103201
103243
  createdAt: external_exports.string()
103202
103244
  });
103245
+ var pagedChatMessageSchema = external_exports.discriminatedUnion("role", [
103246
+ pagedChatMessageBaseSchema.extend({
103247
+ role: external_exports.literal("user")
103248
+ }).strict(),
103249
+ pagedChatMessageBaseSchema.extend({
103250
+ role: external_exports.literal("assistant"),
103251
+ status: external_exports.string().optional()
103252
+ })
103253
+ ]);
103203
103254
  var chatThreadDetailSchema = external_exports.object({
103204
103255
  id: external_exports.string(),
103205
103256
  title: external_exports.string().nullable(),
@@ -103231,7 +103282,6 @@ var chatThreadDetailSchema = external_exports.object({
103231
103282
  updatedAt: external_exports.string(),
103232
103283
  draftContent: external_exports.string().nullable().optional(),
103233
103284
  draftAttachments: external_exports.array(persistedAttachmentSchema).nullable().optional(),
103234
- pendingMessage: pendingMessageSchema.nullable().optional(),
103235
103285
  /**
103236
103286
  * Per-thread model override. Both fields set together or both null.
103237
103287
  * When set, the send route uses this combination (overriding the agent
@@ -103394,95 +103444,62 @@ var chatThreadRenameContract = c13.router({
103394
103444
  summary: "Rename a chat thread (suppresses automated title generation)"
103395
103445
  }
103396
103446
  });
103397
- var chatThreadPendingMessageAppendContract = c13.router({
103398
- append: {
103399
- method: "POST",
103400
- path: "/api/zero/chat-threads/:id/pending-message/append",
103401
- headers: authHeadersSchema,
103402
- pathParams: external_exports.object({ id: external_exports.string() }),
103403
- body: appendPendingMessageBodySchema,
103404
- responses: {
103405
- 200: external_exports.object({ pendingMessage: pendingMessageSchema }),
103406
- 400: apiErrorSchema,
103407
- 401: apiErrorSchema,
103408
- 404: apiErrorSchema
103409
- },
103410
- summary: "Append submitted content to a chat thread pending message"
103411
- }
103412
- });
103413
- var chatThreadPendingMessageDeleteContract = c13.router({
103414
- delete: {
103415
- method: "DELETE",
103416
- path: "/api/zero/chat-threads/:id/pending-message",
103417
- headers: authHeadersSchema,
103418
- pathParams: external_exports.object({ id: external_exports.string() }),
103419
- body: c13.noBody(),
103420
- responses: {
103421
- 204: c13.noBody(),
103422
- 401: apiErrorSchema,
103423
- 404: apiErrorSchema
103424
- },
103425
- summary: "Discard a chat thread pending message"
103426
- }
103427
- });
103428
- var chatThreadPendingMessageRecallContract = c13.router({
103429
- recall: {
103430
- method: "POST",
103431
- path: "/api/zero/chat-threads/:id/pending-message/recall",
103432
- headers: authHeadersSchema,
103433
- pathParams: external_exports.object({ id: external_exports.string() }),
103434
- body: c13.noBody(),
103435
- responses: {
103436
- 200: external_exports.object({
103437
- draftContent: external_exports.string().nullable(),
103438
- draftAttachments: external_exports.array(persistedAttachmentSchema).nullable(),
103439
- pendingMessage: external_exports.null()
103440
- }),
103441
- 401: apiErrorSchema,
103442
- 404: apiErrorSchema
103443
- },
103444
- summary: "Recall a chat thread pending message back into the draft"
103445
- }
103446
- });
103447
103447
  var chatMessagesContract = c13.router({
103448
103448
  send: {
103449
103449
  method: "POST",
103450
103450
  path: "/api/zero/chat/messages",
103451
103451
  headers: authHeadersSchema,
103452
- body: external_exports.object({
103453
- agentId: external_exports.string().min(1),
103454
- prompt: external_exports.string().min(1),
103455
- threadId: external_exports.string().optional(),
103456
- clientThreadId: external_exports.string().uuid().optional(),
103457
- modelProvider: external_exports.string().optional(),
103458
- /**
103459
- * Per-run model override; persisted on the thread so subsequent runs
103460
- * inherit the same choice. `undefined` = leave current thread override
103461
- * untouched (backward-compat for older clients). `null` = clear the
103462
- * thread override and fall back to agent/org defaults.
103463
- */
103464
- modelSelection: modelSelectionRequestSchema.nullable().optional(),
103465
- // Optional for backward compatibility: older clients that omit this field
103466
- // still trigger title generation (server guards with !== false, not === true).
103467
- hasTextContent: external_exports.boolean().optional(),
103468
- attachFiles: external_exports.array(attachFileSchema).optional(),
103469
- // Client-generated UUID used as the user message's primary key.
103470
- // Lets the client render an optimistic row and reconcile with the
103471
- // server row by id no temp-id swap, no React remount.
103472
- clientMessageId: external_exports.string().uuid().optional(),
103473
- // Test-only escape hatch: when the host runner has USE_MOCK_CODEX
103474
- // set (CI default), allow the request to bypass the mock and execute
103475
- // the real codex CLI. Mirrors `debugNoMockClaude` / `debugNoMockCodex`
103476
- // on /api/zero/runs so e2e BYOK smoke tests can exercise the chat
103477
- // entry path end-to-end.
103478
- debugNoMockClaude: external_exports.boolean().optional(),
103479
- debugNoMockCodex: external_exports.boolean().optional()
103480
- }),
103452
+ body: external_exports.union([
103453
+ external_exports.object({
103454
+ agentId: external_exports.string().min(1),
103455
+ prompt: external_exports.string().min(1),
103456
+ threadId: external_exports.string().optional(),
103457
+ clientThreadId: external_exports.string().uuid().optional(),
103458
+ modelProvider: external_exports.string().optional(),
103459
+ /**
103460
+ * Per-run model override; persisted on the thread so subsequent runs
103461
+ * inherit the same choice. `undefined` = leave current thread override
103462
+ * untouched (backward-compat for older clients). `null` = clear the
103463
+ * thread override and fall back to agent/org defaults.
103464
+ */
103465
+ modelSelection: modelSelectionRequestSchema.nullable().optional(),
103466
+ // Optional for backward compatibility: older clients that omit this field
103467
+ // still trigger title generation (server guards with !== false, not === true).
103468
+ hasTextContent: external_exports.boolean().optional(),
103469
+ attachFiles: external_exports.array(attachFileSchema).optional(),
103470
+ // Client-generated UUID used as the user message's primary key.
103471
+ // Lets the client render an optimistic row and reconcile with the
103472
+ // server row by id — no temp-id swap, no React remount.
103473
+ clientMessageId: external_exports.string().uuid().optional(),
103474
+ // Test-only escape hatch: when the host runner has USE_MOCK_CODEX
103475
+ // set (CI default), allow the request to bypass the mock and execute
103476
+ // the real codex CLI. Mirrors `debugNoMockClaude` / `debugNoMockCodex`
103477
+ // on /api/zero/runs so e2e BYOK smoke tests can exercise the chat
103478
+ // entry path end-to-end.
103479
+ debugNoMockClaude: external_exports.boolean().optional(),
103480
+ debugNoMockCodex: external_exports.boolean().optional(),
103481
+ revokesMessageId: external_exports.undefined().optional()
103482
+ }),
103483
+ external_exports.object({
103484
+ agentId: external_exports.string().min(1),
103485
+ threadId: external_exports.string().min(1),
103486
+ revokesMessageId: external_exports.string().min(1),
103487
+ clientMessageId: external_exports.string().uuid().optional(),
103488
+ prompt: external_exports.undefined().optional(),
103489
+ clientThreadId: external_exports.undefined().optional(),
103490
+ modelProvider: external_exports.undefined().optional(),
103491
+ modelSelection: external_exports.undefined().optional(),
103492
+ hasTextContent: external_exports.undefined().optional(),
103493
+ attachFiles: external_exports.undefined().optional(),
103494
+ debugNoMockClaude: external_exports.undefined().optional(),
103495
+ debugNoMockCodex: external_exports.undefined().optional()
103496
+ })
103497
+ ]),
103481
103498
  responses: {
103482
103499
  201: external_exports.object({
103483
- runId: external_exports.string(),
103500
+ runId: external_exports.string().nullable(),
103484
103501
  threadId: external_exports.string(),
103485
- status: runStatusSchema,
103502
+ status: runStatusSchema.optional(),
103486
103503
  createdAt: external_exports.string().optional()
103487
103504
  }),
103488
103505
  400: apiErrorSchema,
@@ -103536,16 +103553,6 @@ var chatSearchContract = c13.router({
103536
103553
  summary: "Search chat messages within caller's org (zero proxy)"
103537
103554
  }
103538
103555
  });
103539
- var pagedChatMessageSchema = external_exports.object({
103540
- id: external_exports.string(),
103541
- role: external_exports.enum(["user", "assistant"]),
103542
- content: external_exports.string().nullable(),
103543
- runId: external_exports.string().optional(),
103544
- error: external_exports.string().optional(),
103545
- status: external_exports.string().optional(),
103546
- attachFiles: external_exports.array(resolvedAttachFileSchema).optional(),
103547
- createdAt: external_exports.string()
103548
- });
103549
103556
  var chatThreadMessagesContract = c13.router({
103550
103557
  list: {
103551
103558
  method: "GET",
@@ -117871,10 +117878,44 @@ var healthAuthContract = c24.router({
117871
117878
  }
117872
117879
  });
117873
117880
 
117874
- // ../../packages/api-contracts/src/contracts/auth.ts
117881
+ // ../../packages/api-contracts/src/contracts/zero-model-policies.ts
117875
117882
  init_esm_shims();
117876
117883
  var c25 = initContract();
117877
- var authContract = c25.router({
117884
+ var zeroModelPoliciesMainContract = c25.router({
117885
+ list: {
117886
+ method: "GET",
117887
+ path: "/api/zero/model-policies",
117888
+ headers: authHeadersSchema,
117889
+ responses: {
117890
+ 200: orgModelPoliciesResponseSchema,
117891
+ 401: apiErrorSchema,
117892
+ 403: apiErrorSchema,
117893
+ 404: apiErrorSchema,
117894
+ 500: apiErrorSchema
117895
+ },
117896
+ summary: "List org model-first policies"
117897
+ },
117898
+ update: {
117899
+ method: "PUT",
117900
+ path: "/api/zero/model-policies",
117901
+ headers: authHeadersSchema,
117902
+ body: updateOrgModelPoliciesRequestSchema,
117903
+ responses: {
117904
+ 200: orgModelPoliciesResponseSchema,
117905
+ 400: apiErrorSchema,
117906
+ 401: apiErrorSchema,
117907
+ 403: apiErrorSchema,
117908
+ 404: apiErrorSchema,
117909
+ 500: apiErrorSchema
117910
+ },
117911
+ summary: "Update org model-first policies"
117912
+ }
117913
+ });
117914
+
117915
+ // ../../packages/api-contracts/src/contracts/auth.ts
117916
+ init_esm_shims();
117917
+ var c26 = initContract();
117918
+ var authContract = c26.router({
117878
117919
  /**
117879
117920
  * GET /api/auth/me
117880
117921
  * Get current user information
@@ -117899,7 +117940,7 @@ var authContract = c25.router({
117899
117940
 
117900
117941
  // ../../packages/api-contracts/src/contracts/cron.ts
117901
117942
  init_esm_shims();
117902
- var c26 = initContract();
117943
+ var c27 = initContract();
117903
117944
  var cleanupResultSchema = external_exports.object({
117904
117945
  runId: external_exports.string(),
117905
117946
  sandboxId: external_exports.string().nullable(),
@@ -117912,7 +117953,7 @@ var cleanupResponseSchema = external_exports.object({
117912
117953
  errors: external_exports.number(),
117913
117954
  results: external_exports.array(cleanupResultSchema)
117914
117955
  });
117915
- var cronCleanupSandboxesContract = c26.router({
117956
+ var cronCleanupSandboxesContract = c27.router({
117916
117957
  /**
117917
117958
  * GET /api/cron/cleanup-sandboxes
117918
117959
  * Cron job to cleanup sandboxes that have stopped sending heartbeats
@@ -117932,7 +117973,7 @@ var cronCleanupSandboxesContract = c26.router({
117932
117973
 
117933
117974
  // ../../packages/api-contracts/src/contracts/chat-threads-v1.ts
117934
117975
  init_esm_shims();
117935
- var c27 = initContract();
117976
+ var c28 = initContract();
117936
117977
  var v1ThreadSchema = external_exports.object({
117937
117978
  id: external_exports.string(),
117938
117979
  title: external_exports.string().nullable(),
@@ -117946,7 +117987,7 @@ var v1MessageSchema = external_exports.object({
117946
117987
  error: external_exports.string().optional(),
117947
117988
  createdAt: external_exports.string()
117948
117989
  });
117949
- var chatThreadV1GetContract = c27.router({
117990
+ var chatThreadV1GetContract = c28.router({
117950
117991
  get: {
117951
117992
  method: "GET",
117952
117993
  path: "/api/v1/chat-threads/:threadId",
@@ -117961,7 +118002,7 @@ var chatThreadV1GetContract = c27.router({
117961
118002
  summary: "Get a chat thread"
117962
118003
  }
117963
118004
  });
117964
- var chatThreadV1MessagesContract = c27.router({
118005
+ var chatThreadV1MessagesContract = c28.router({
117965
118006
  list: {
117966
118007
  method: "GET",
117967
118008
  path: "/api/v1/chat-threads/:threadId/messages",
@@ -117981,7 +118022,7 @@ var chatThreadV1MessagesContract = c27.router({
117981
118022
  summary: "List messages in a chat thread"
117982
118023
  }
117983
118024
  });
117984
- var chatThreadV1SendContract = c27.router({
118025
+ var chatThreadV1SendContract = c28.router({
117985
118026
  send: {
117986
118027
  method: "POST",
117987
118028
  path: "/api/v1/chat-threads/messages",
@@ -118010,7 +118051,7 @@ var chatThreadV1SendContract = c27.router({
118010
118051
 
118011
118052
  // ../../packages/api-contracts/src/contracts/device-token.ts
118012
118053
  init_esm_shims();
118013
- var c28 = initContract();
118054
+ var c29 = initContract();
118014
118055
  var bb0DeviceCodeSchema = external_exports.string().regex(/^[A-Z2-9]{4}-[A-Z2-9]{4}$/);
118015
118056
  var bleSessionNonceSchema = external_exports.string().min(16).max(128).regex(/^[A-Za-z0-9._:-]+$/);
118016
118057
  var pollTokenSchema = external_exports.string().min(32).max(256).regex(/^[A-Za-z0-9._-]+$/);
@@ -118049,7 +118090,7 @@ var confirmBb0DeviceRequestSchema = external_exports.object({
118049
118090
  var confirmBb0DeviceResponseSchema = external_exports.object({
118050
118091
  status: external_exports.literal("approved")
118051
118092
  });
118052
- var deviceTokenContract = c28.router({
118093
+ var deviceTokenContract = c29.router({
118053
118094
  create: {
118054
118095
  method: "POST",
118055
118096
  path: "/api/device-token",
@@ -118074,7 +118115,7 @@ var deviceTokenContract = c28.router({
118074
118115
  summary: "Poll a bb0 device code for approval and final credentials"
118075
118116
  }
118076
118117
  });
118077
- var bb0DeviceConfirmContract = c28.router({
118118
+ var bb0DeviceConfirmContract = c29.router({
118078
118119
  confirm: {
118079
118120
  method: "POST",
118080
118121
  path: "/api/zero/devices/bb0/confirm",
@@ -118093,16 +118134,16 @@ var bb0DeviceConfirmContract = c28.router({
118093
118134
 
118094
118135
  // ../../packages/api-contracts/src/contracts/audio-transcriptions-v1.ts
118095
118136
  init_esm_shims();
118096
- var c29 = initContract();
118137
+ var c30 = initContract();
118097
118138
  var audioTranscriptionV1Schema = external_exports.object({
118098
118139
  text: external_exports.string()
118099
118140
  });
118100
- var audioTranscriptionsV1Contract = c29.router({
118141
+ var audioTranscriptionsV1Contract = c30.router({
118101
118142
  transcribe: {
118102
118143
  method: "POST",
118103
118144
  path: "/api/v1/audio/transcriptions",
118104
118145
  headers: authHeadersSchema,
118105
- body: c29.type(),
118146
+ body: c30.type(),
118106
118147
  responses: {
118107
118148
  200: audioTranscriptionV1Schema,
118108
118149
  400: apiErrorSchema,
@@ -118119,7 +118160,7 @@ var audioTranscriptionsV1Contract = c29.router({
118119
118160
 
118120
118161
  // ../../packages/api-contracts/src/contracts/runners.ts
118121
118162
  init_esm_shims();
118122
- var c30 = initContract();
118163
+ var c31 = initContract();
118123
118164
  var runnerGroupSchema = external_exports.string().regex(
118124
118165
  /^[a-z0-9-]+\/[a-z0-9-]+$/,
118125
118166
  "Runner group must be in vm0/<name> format (e.g., vm0/production)"
@@ -118133,7 +118174,7 @@ var jobSchema = external_exports.object({
118133
118174
  checkpointId: external_exports.uuid().nullable(),
118134
118175
  experimentalProfile: external_exports.string().optional()
118135
118176
  });
118136
- var runnersPollContract = c30.router({
118177
+ var runnersPollContract = c31.router({
118137
118178
  poll: {
118138
118179
  method: "POST",
118139
118180
  path: "/api/runners/poll",
@@ -118274,7 +118315,7 @@ var executionContextSchema = external_exports.object({
118274
118315
  billableFirewalls: external_exports.array(external_exports.string()).optional(),
118275
118316
  modelUsageProvider: external_exports.string().optional()
118276
118317
  });
118277
- var runnersJobClaimContract = c30.router({
118318
+ var runnersJobClaimContract = c31.router({
118278
118319
  claim: {
118279
118320
  method: "POST",
118280
118321
  path: "/api/runners/jobs/:id/claim",
@@ -118311,7 +118352,7 @@ var heartbeatBodySchema = external_exports.object({
118311
118352
  heldSessions: external_exports.array(external_exports.string()),
118312
118353
  mode: external_exports.enum(["running", "draining", "stopping"])
118313
118354
  });
118314
- var runnersHeartbeatContract = c30.router({
118355
+ var runnersHeartbeatContract = c31.router({
118315
118356
  heartbeat: {
118316
118357
  method: "POST",
118317
118358
  path: "/api/runners/heartbeat",
@@ -118329,7 +118370,7 @@ var runnersHeartbeatContract = c30.router({
118329
118370
 
118330
118371
  // ../../packages/api-contracts/src/contracts/realtime.ts
118331
118372
  init_esm_shims();
118332
- var c31 = initContract();
118373
+ var c32 = initContract();
118333
118374
  var ablyTokenRequestSchema = external_exports.object({
118334
118375
  keyName: external_exports.string(),
118335
118376
  ttl: external_exports.number().optional(),
@@ -118339,7 +118380,7 @@ var ablyTokenRequestSchema = external_exports.object({
118339
118380
  nonce: external_exports.string(),
118340
118381
  mac: external_exports.string()
118341
118382
  });
118342
- var runnerRealtimeTokenContract = c31.router({
118383
+ var runnerRealtimeTokenContract = c32.router({
118343
118384
  /**
118344
118385
  * POST /api/runners/realtime/token
118345
118386
  * Get an Ably token to subscribe to a runner group's job notification channel
@@ -118360,7 +118401,7 @@ var runnerRealtimeTokenContract = c31.router({
118360
118401
  summary: "Get Ably token for runner group job notifications"
118361
118402
  }
118362
118403
  });
118363
- var platformRealtimeTokenContract = c31.router({
118404
+ var platformRealtimeTokenContract = c32.router({
118364
118405
  /**
118365
118406
  * POST /api/zero/realtime/token
118366
118407
  * Get an Ably token to subscribe to the authenticated user's push channel
@@ -118462,14 +118503,14 @@ function findMatchingPermissions(method, path3, config4) {
118462
118503
 
118463
118504
  // ../../packages/api-contracts/src/contracts/zero-feature-switches.ts
118464
118505
  init_esm_shims();
118465
- var c32 = initContract();
118506
+ var c33 = initContract();
118466
118507
  var featureSwitchesResponseSchema = external_exports.object({
118467
118508
  switches: external_exports.record(external_exports.string(), external_exports.boolean())
118468
118509
  });
118469
118510
  var updateFeatureSwitchesRequestSchema = external_exports.object({
118470
118511
  switches: external_exports.record(external_exports.string(), external_exports.boolean())
118471
118512
  });
118472
- var zeroFeatureSwitchesContract = c32.router({
118513
+ var zeroFeatureSwitchesContract = c33.router({
118473
118514
  get: {
118474
118515
  method: "GET",
118475
118516
  path: "/api/zero/feature-switches",
@@ -118498,7 +118539,7 @@ var zeroFeatureSwitchesContract = c32.router({
118498
118539
  method: "DELETE",
118499
118540
  path: "/api/zero/feature-switches",
118500
118541
  headers: authHeadersSchema,
118501
- body: c32.noBody(),
118542
+ body: c33.noBody(),
118502
118543
  responses: {
118503
118544
  200: external_exports.object({ deleted: external_exports.literal(true) }),
118504
118545
  401: apiErrorSchema,
@@ -118510,7 +118551,7 @@ var zeroFeatureSwitchesContract = c32.router({
118510
118551
 
118511
118552
  // ../../packages/api-contracts/src/contracts/onboarding.ts
118512
118553
  init_esm_shims();
118513
- var c33 = initContract();
118554
+ var c34 = initContract();
118514
118555
  var onboardingStatusResponseSchema = external_exports.object({
118515
118556
  needsOnboarding: external_exports.boolean(),
118516
118557
  isAdmin: external_exports.boolean(),
@@ -118523,7 +118564,7 @@ var onboardingStatusResponseSchema = external_exports.object({
118523
118564
  sound: external_exports.string().optional()
118524
118565
  }).nullable()
118525
118566
  });
118526
- var onboardingStatusContract = c33.router({
118567
+ var onboardingStatusContract = c34.router({
118527
118568
  getStatus: {
118528
118569
  method: "GET",
118529
118570
  path: "/api/zero/onboarding/status",
@@ -118535,7 +118576,7 @@ var onboardingStatusContract = c33.router({
118535
118576
  summary: "Get onboarding status for current user"
118536
118577
  }
118537
118578
  });
118538
- var onboardingCompleteContract = c33.router({
118579
+ var onboardingCompleteContract = c34.router({
118539
118580
  complete: {
118540
118581
  method: "POST",
118541
118582
  path: "/api/zero/onboarding/complete",
@@ -118550,7 +118591,7 @@ var onboardingCompleteContract = c33.router({
118550
118591
  summary: "Mark member onboarding as complete"
118551
118592
  }
118552
118593
  });
118553
- var onboardingSetupContract = c33.router({
118594
+ var onboardingSetupContract = c34.router({
118554
118595
  setup: {
118555
118596
  method: "POST",
118556
118597
  path: "/api/zero/onboarding/setup",
@@ -118583,8 +118624,8 @@ var skillFrontmatterSchema = external_exports.object({
118583
118624
 
118584
118625
  // ../../packages/api-contracts/src/contracts/zero-org-domains.ts
118585
118626
  init_esm_shims();
118586
- var c34 = initContract();
118587
- var zeroOrgDomainsContract = c34.router({
118627
+ var c35 = initContract();
118628
+ var zeroOrgDomainsContract = c35.router({
118588
118629
  list: {
118589
118630
  method: "GET",
118590
118631
  path: "/api/zero/org/domains",
@@ -118640,8 +118681,8 @@ var zeroOrgDomainsContract = c34.router({
118640
118681
 
118641
118682
  // ../../packages/api-contracts/src/contracts/zero-composes.ts
118642
118683
  init_esm_shims();
118643
- var c35 = initContract();
118644
- var zeroComposesMainContract = c35.router({
118684
+ var c36 = initContract();
118685
+ var zeroComposesMainContract = c36.router({
118645
118686
  getByName: {
118646
118687
  method: "GET",
118647
118688
  path: "/api/zero/composes",
@@ -118659,7 +118700,7 @@ var zeroComposesMainContract = c35.router({
118659
118700
  summary: "Get agent compose by name (zero proxy)"
118660
118701
  }
118661
118702
  });
118662
- var zeroComposesByIdContract = c35.router({
118703
+ var zeroComposesByIdContract = c36.router({
118663
118704
  getById: {
118664
118705
  method: "GET",
118665
118706
  path: "/api/zero/composes/:id",
@@ -118683,9 +118724,9 @@ var zeroComposesByIdContract = c35.router({
118683
118724
  pathParams: external_exports.object({
118684
118725
  id: external_exports.string().uuid("Compose ID is required")
118685
118726
  }),
118686
- body: c35.noBody(),
118727
+ body: c36.noBody(),
118687
118728
  responses: {
118688
- 204: c35.noBody(),
118729
+ 204: c36.noBody(),
118689
118730
  401: apiErrorSchema,
118690
118731
  403: apiErrorSchema,
118691
118732
  404: apiErrorSchema,
@@ -118694,7 +118735,7 @@ var zeroComposesByIdContract = c35.router({
118694
118735
  summary: "Delete agent compose (zero proxy)"
118695
118736
  }
118696
118737
  });
118697
- var zeroComposesListContract = c35.router({
118738
+ var zeroComposesListContract = c36.router({
118698
118739
  list: {
118699
118740
  method: "GET",
118700
118741
  path: "/api/zero/composes/list",
@@ -118714,8 +118755,8 @@ var zeroComposesListContract = c35.router({
118714
118755
 
118715
118756
  // ../../packages/api-contracts/src/contracts/zero-personal-model-providers.ts
118716
118757
  init_esm_shims();
118717
- var c36 = initContract();
118718
- var zeroPersonalModelProvidersMainContract = c36.router({
118758
+ var c37 = initContract();
118759
+ var zeroPersonalModelProvidersMainContract = c37.router({
118719
118760
  list: {
118720
118761
  method: "GET",
118721
118762
  path: "/api/zero/me/model-providers",
@@ -118744,7 +118785,7 @@ var zeroPersonalModelProvidersMainContract = c36.router({
118744
118785
  summary: "Create or update a personal model provider for the requesting user"
118745
118786
  }
118746
118787
  });
118747
- var zeroPersonalModelProvidersByTypeContract = c36.router({
118788
+ var zeroPersonalModelProvidersByTypeContract = c37.router({
118748
118789
  delete: {
118749
118790
  method: "DELETE",
118750
118791
  path: "/api/zero/me/model-providers/:type",
@@ -118753,7 +118794,7 @@ var zeroPersonalModelProvidersByTypeContract = c36.router({
118753
118794
  type: modelProviderTypeSchema
118754
118795
  }),
118755
118796
  responses: {
118756
- 204: c36.noBody(),
118797
+ 204: c37.noBody(),
118757
118798
  401: apiErrorSchema,
118758
118799
  404: apiErrorSchema,
118759
118800
  500: apiErrorSchema
@@ -118761,7 +118802,7 @@ var zeroPersonalModelProvidersByTypeContract = c36.router({
118761
118802
  summary: "Delete a personal model provider for the requesting user"
118762
118803
  }
118763
118804
  });
118764
- var zeroPersonalModelProvidersDefaultContract = c36.router({
118805
+ var zeroPersonalModelProvidersDefaultContract = c37.router({
118765
118806
  setDefault: {
118766
118807
  method: "POST",
118767
118808
  path: "/api/zero/me/model-providers/:type/default",
@@ -118779,7 +118820,7 @@ var zeroPersonalModelProvidersDefaultContract = c36.router({
118779
118820
  summary: "Set a personal model provider as the user's default"
118780
118821
  }
118781
118822
  });
118782
- var zeroPersonalModelProvidersUpdateModelContract = c36.router({
118823
+ var zeroPersonalModelProvidersUpdateModelContract = c37.router({
118783
118824
  updateModel: {
118784
118825
  method: "PATCH",
118785
118826
  path: "/api/zero/me/model-providers/:type/model",
@@ -118800,7 +118841,7 @@ var zeroPersonalModelProvidersUpdateModelContract = c36.router({
118800
118841
 
118801
118842
  // ../../packages/api-contracts/src/contracts/api-keys.ts
118802
118843
  init_esm_shims();
118803
- var c37 = initContract();
118844
+ var c38 = initContract();
118804
118845
  var apiKeyItemSchema = external_exports.object({
118805
118846
  id: external_exports.string().uuid(),
118806
118847
  name: external_exports.string(),
@@ -118819,7 +118860,7 @@ var createApiKeyRequestSchema = external_exports.object({
118819
118860
  var createApiKeyResponseSchema = apiKeyItemSchema.extend({
118820
118861
  token: external_exports.string()
118821
118862
  });
118822
- var apiKeysContract = c37.router({
118863
+ var apiKeysContract = c38.router({
118823
118864
  list: {
118824
118865
  method: "GET",
118825
118866
  path: "/api/zero/api-keys",
@@ -118845,14 +118886,14 @@ var apiKeysContract = c37.router({
118845
118886
  summary: "Create a new API key (token returned once)"
118846
118887
  }
118847
118888
  });
118848
- var apiKeysByIdContract = c37.router({
118889
+ var apiKeysByIdContract = c38.router({
118849
118890
  delete: {
118850
118891
  method: "DELETE",
118851
118892
  path: "/api/zero/api-keys/:id",
118852
118893
  headers: authHeadersSchema,
118853
118894
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
118854
118895
  responses: {
118855
- 204: c37.noBody(),
118896
+ 204: c38.noBody(),
118856
118897
  401: apiErrorSchema,
118857
118898
  404: apiErrorSchema,
118858
118899
  500: apiErrorSchema
@@ -118863,7 +118904,7 @@ var apiKeysByIdContract = c37.router({
118863
118904
 
118864
118905
  // ../../packages/api-contracts/src/contracts/zero-custom-connectors.ts
118865
118906
  init_esm_shims();
118866
- var c38 = initContract();
118907
+ var c39 = initContract();
118867
118908
  var customConnectorResponseSchema = external_exports.object({
118868
118909
  id: external_exports.string().uuid(),
118869
118910
  slug: external_exports.string(),
@@ -118891,7 +118932,7 @@ var setCustomConnectorSecretBodySchema = external_exports.object({
118891
118932
  var patchCustomConnectorBodySchema = external_exports.object({
118892
118933
  displayName: external_exports.string().min(1).max(128)
118893
118934
  });
118894
- var zeroCustomConnectorsContract = c38.router({
118935
+ var zeroCustomConnectorsContract = c39.router({
118895
118936
  list: {
118896
118937
  method: "GET",
118897
118938
  path: "/api/zero/custom-connectors",
@@ -118918,14 +118959,14 @@ var zeroCustomConnectorsContract = c38.router({
118918
118959
  summary: "Create an org custom connector"
118919
118960
  }
118920
118961
  });
118921
- var zeroCustomConnectorByIdContract = c38.router({
118962
+ var zeroCustomConnectorByIdContract = c39.router({
118922
118963
  delete: {
118923
118964
  method: "DELETE",
118924
118965
  path: "/api/zero/custom-connectors/:id",
118925
118966
  headers: authHeadersSchema,
118926
118967
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
118927
118968
  responses: {
118928
- 204: c38.noBody(),
118969
+ 204: c39.noBody(),
118929
118970
  401: apiErrorSchema,
118930
118971
  403: apiErrorSchema,
118931
118972
  404: apiErrorSchema,
@@ -118950,7 +118991,7 @@ var zeroCustomConnectorByIdContract = c38.router({
118950
118991
  summary: "Rename an org custom connector"
118951
118992
  }
118952
118993
  });
118953
- var zeroCustomConnectorSecretContract = c38.router({
118994
+ var zeroCustomConnectorSecretContract = c39.router({
118954
118995
  set: {
118955
118996
  method: "PUT",
118956
118997
  path: "/api/zero/custom-connectors/:id/secret",
@@ -118958,7 +118999,7 @@ var zeroCustomConnectorSecretContract = c38.router({
118958
118999
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
118959
119000
  body: setCustomConnectorSecretBodySchema,
118960
119001
  responses: {
118961
- 204: c38.noBody(),
119002
+ 204: c39.noBody(),
118962
119003
  400: apiErrorSchema,
118963
119004
  401: apiErrorSchema,
118964
119005
  404: apiErrorSchema,
@@ -118972,7 +119013,7 @@ var zeroCustomConnectorSecretContract = c38.router({
118972
119013
  headers: authHeadersSchema,
118973
119014
  pathParams: external_exports.object({ id: external_exports.string().uuid() }),
118974
119015
  responses: {
118975
- 204: c38.noBody(),
119016
+ 204: c39.noBody(),
118976
119017
  401: apiErrorSchema,
118977
119018
  404: apiErrorSchema,
118978
119019
  500: apiErrorSchema
@@ -118983,11 +119024,11 @@ var zeroCustomConnectorSecretContract = c38.router({
118983
119024
 
118984
119025
  // ../../packages/api-contracts/src/contracts/zero-agent-custom-connectors.ts
118985
119026
  init_esm_shims();
118986
- var c39 = initContract();
119027
+ var c40 = initContract();
118987
119028
  var agentCustomConnectorEnabledIdsSchema = external_exports.object({
118988
119029
  enabledIds: external_exports.array(external_exports.string().uuid())
118989
119030
  });
118990
- var zeroAgentCustomConnectorsContract = c39.router({
119031
+ var zeroAgentCustomConnectorsContract = c40.router({
118991
119032
  get: {
118992
119033
  method: "GET",
118993
119034
  path: "/api/zero/agents/:id/custom-connectors",
@@ -119020,7 +119061,7 @@ var zeroAgentCustomConnectorsContract = c39.router({
119020
119061
 
119021
119062
  // ../../packages/api-contracts/src/contracts/zero-billing.ts
119022
119063
  init_esm_shims();
119023
- var c40 = initContract();
119064
+ var c41 = initContract();
119024
119065
  var autoRechargeSchema = external_exports.object({
119025
119066
  enabled: external_exports.boolean(),
119026
119067
  threshold: external_exports.number().nullable(),
@@ -119108,7 +119149,7 @@ var redeemRequestSchema = external_exports.object({
119108
119149
  successUrl: external_exports.string().url(),
119109
119150
  cancelUrl: external_exports.string().url()
119110
119151
  });
119111
- var zeroBillingStatusContract = c40.router({
119152
+ var zeroBillingStatusContract = c41.router({
119112
119153
  get: {
119113
119154
  method: "GET",
119114
119155
  path: "/api/zero/billing/status",
@@ -119121,7 +119162,7 @@ var zeroBillingStatusContract = c40.router({
119121
119162
  summary: "Get billing status for current org"
119122
119163
  }
119123
119164
  });
119124
- var zeroBillingCheckoutContract = c40.router({
119165
+ var zeroBillingCheckoutContract = c41.router({
119125
119166
  create: {
119126
119167
  method: "POST",
119127
119168
  path: "/api/zero/billing/checkout",
@@ -119137,7 +119178,7 @@ var zeroBillingCheckoutContract = c40.router({
119137
119178
  summary: "Create Stripe checkout session"
119138
119179
  }
119139
119180
  });
119140
- var zeroBillingPortalContract = c40.router({
119181
+ var zeroBillingPortalContract = c41.router({
119141
119182
  create: {
119142
119183
  method: "POST",
119143
119184
  path: "/api/zero/billing/portal",
@@ -119153,7 +119194,7 @@ var zeroBillingPortalContract = c40.router({
119153
119194
  summary: "Create Stripe billing portal session"
119154
119195
  }
119155
119196
  });
119156
- var zeroBillingAutoRechargeContract = c40.router({
119197
+ var zeroBillingAutoRechargeContract = c41.router({
119157
119198
  get: {
119158
119199
  method: "GET",
119159
119200
  path: "/api/zero/billing/auto-recharge",
@@ -119191,7 +119232,7 @@ var invoiceSchema = external_exports.object({
119191
119232
  var billingInvoicesResponseSchema = external_exports.object({
119192
119233
  invoices: external_exports.array(invoiceSchema)
119193
119234
  });
119194
- var zeroBillingInvoicesContract = c40.router({
119235
+ var zeroBillingInvoicesContract = c41.router({
119195
119236
  get: {
119196
119237
  method: "GET",
119197
119238
  path: "/api/zero/billing/invoices",
@@ -119211,7 +119252,7 @@ var downgradeResponseSchema = external_exports.object({
119211
119252
  success: external_exports.boolean(),
119212
119253
  effectiveDate: external_exports.string().nullable()
119213
119254
  });
119214
- var zeroBillingDowngradeContract = c40.router({
119255
+ var zeroBillingDowngradeContract = c41.router({
119215
119256
  create: {
119216
119257
  method: "POST",
119217
119258
  path: "/api/zero/billing/downgrade",
@@ -119229,7 +119270,7 @@ var zeroBillingDowngradeContract = c40.router({
119229
119270
  summary: "Downgrade subscription to a lower tier"
119230
119271
  }
119231
119272
  });
119232
- var zeroBillingRedeemContract = c40.router({
119273
+ var zeroBillingRedeemContract = c41.router({
119233
119274
  create: {
119234
119275
  method: "POST",
119235
119276
  path: "/api/zero/billing/redeem/:campaign",
@@ -119250,7 +119291,7 @@ var zeroBillingRedeemContract = c40.router({
119250
119291
 
119251
119292
  // ../../packages/api-contracts/src/contracts/zero-usage.ts
119252
119293
  init_esm_shims();
119253
- var c41 = initContract();
119294
+ var c42 = initContract();
119254
119295
  var memberUsageSchema = external_exports.object({
119255
119296
  userId: external_exports.string(),
119256
119297
  email: external_exports.string(),
@@ -119268,7 +119309,7 @@ var usageMembersResponseSchema = external_exports.object({
119268
119309
  }).nullable(),
119269
119310
  members: external_exports.array(memberUsageSchema)
119270
119311
  });
119271
- var zeroUsageMembersContract = c41.router({
119312
+ var zeroUsageMembersContract = c42.router({
119272
119313
  get: {
119273
119314
  method: "GET",
119274
119315
  path: "/api/zero/usage/members",
@@ -119284,7 +119325,7 @@ var zeroUsageMembersContract = c41.router({
119284
119325
 
119285
119326
  // ../../packages/api-contracts/src/contracts/zero-usage-daily.ts
119286
119327
  init_esm_shims();
119287
- var c42 = initContract();
119328
+ var c43 = initContract();
119288
119329
  var usageRunSchema = external_exports.object({
119289
119330
  runId: external_exports.string(),
119290
119331
  agentName: external_exports.string().nullable(),
@@ -119311,7 +119352,7 @@ var usageRunsResponseSchema = external_exports.object({
119311
119352
  total: external_exports.number()
119312
119353
  })
119313
119354
  });
119314
- var zeroUsageRunsContract = c42.router({
119355
+ var zeroUsageRunsContract = c43.router({
119315
119356
  get: {
119316
119357
  method: "GET",
119317
119358
  path: "/api/zero/usage/runs",
@@ -119337,7 +119378,7 @@ var zeroUsageRunsContract = c42.router({
119337
119378
 
119338
119379
  // ../../packages/api-contracts/src/contracts/zero-usage-insight.ts
119339
119380
  init_esm_shims();
119340
- var c43 = initContract();
119381
+ var c44 = initContract();
119341
119382
  var usageInsightBucketSchema = external_exports.object({
119342
119383
  ts: external_exports.string(),
119343
119384
  // ISO string for the bucket start
@@ -119374,7 +119415,7 @@ var usageInsightResponseSchema = external_exports.object({
119374
119415
  grandTotalCredits: external_exports.number(),
119375
119416
  grandTotalTokens: external_exports.number()
119376
119417
  });
119377
- var zeroUsageInsightContract = c43.router({
119418
+ var zeroUsageInsightContract = c44.router({
119378
119419
  get: {
119379
119420
  method: "GET",
119380
119421
  path: "/api/zero/usage/insight",
@@ -119397,7 +119438,7 @@ var zeroUsageInsightContract = c43.router({
119397
119438
 
119398
119439
  // ../../packages/api-contracts/src/contracts/zero-team.ts
119399
119440
  init_esm_shims();
119400
- var c44 = initContract();
119441
+ var c45 = initContract();
119401
119442
  var teamComposeItemSchema = external_exports.object({
119402
119443
  id: external_exports.string(),
119403
119444
  ownerId: external_exports.string().optional(),
@@ -119408,7 +119449,7 @@ var teamComposeItemSchema = external_exports.object({
119408
119449
  headVersionId: external_exports.string().nullable(),
119409
119450
  updatedAt: external_exports.string()
119410
119451
  });
119411
- var zeroTeamContract = c44.router({
119452
+ var zeroTeamContract = c45.router({
119412
119453
  list: {
119413
119454
  method: "GET",
119414
119455
  path: "/api/zero/team",
@@ -119425,7 +119466,7 @@ var zeroTeamContract = c44.router({
119425
119466
 
119426
119467
  // ../../packages/api-contracts/src/contracts/zero-integrations-slack.ts
119427
119468
  init_esm_shims();
119428
- var c45 = initContract();
119469
+ var c46 = initContract();
119429
119470
  var slackEnvironmentSchema = external_exports.object({
119430
119471
  requiredSecrets: external_exports.array(external_exports.string()),
119431
119472
  requiredVars: external_exports.array(external_exports.string()),
@@ -119447,7 +119488,7 @@ var slackOrgStatusSchema = external_exports.object({
119447
119488
  /** OAuth install URL for re-authorization (admin-only, when scopeMismatch). */
119448
119489
  reinstallUrl: external_exports.string().nullable().optional()
119449
119490
  });
119450
- var zeroIntegrationsSlackContract = c45.router({
119491
+ var zeroIntegrationsSlackContract = c46.router({
119451
119492
  getStatus: {
119452
119493
  method: "GET",
119453
119494
  path: "/api/zero/integrations/slack",
@@ -119462,7 +119503,7 @@ var zeroIntegrationsSlackContract = c45.router({
119462
119503
  method: "DELETE",
119463
119504
  path: "/api/zero/integrations/slack",
119464
119505
  headers: authHeadersSchema,
119465
- body: c45.noBody(),
119506
+ body: c46.noBody(),
119466
119507
  query: external_exports.object({
119467
119508
  action: external_exports.string().optional()
119468
119509
  }),
@@ -119478,7 +119519,7 @@ var zeroIntegrationsSlackContract = c45.router({
119478
119519
 
119479
119520
  // ../../packages/api-contracts/src/contracts/zero-slack-connect.ts
119480
119521
  init_esm_shims();
119481
- var c46 = initContract();
119522
+ var c47 = initContract();
119482
119523
  var slackConnectStatusSchema = external_exports.object({
119483
119524
  isConnected: external_exports.boolean(),
119484
119525
  isAdmin: external_exports.boolean(),
@@ -119490,7 +119531,7 @@ var slackConnectResponseSchema = external_exports.object({
119490
119531
  connectionId: external_exports.string(),
119491
119532
  role: external_exports.string()
119492
119533
  });
119493
- var zeroSlackConnectContract = c46.router({
119534
+ var zeroSlackConnectContract = c47.router({
119494
119535
  getStatus: {
119495
119536
  method: "GET",
119496
119537
  path: "/api/zero/integrations/slack/connect",
@@ -119524,12 +119565,12 @@ var zeroSlackConnectContract = c46.router({
119524
119565
 
119525
119566
  // ../../packages/api-contracts/src/contracts/zero-slack-channels.ts
119526
119567
  init_esm_shims();
119527
- var c47 = initContract();
119568
+ var c48 = initContract();
119528
119569
  var slackChannelSchema = external_exports.object({
119529
119570
  id: external_exports.string(),
119530
119571
  name: external_exports.string()
119531
119572
  });
119532
- var zeroSlackChannelsContract = c47.router({
119573
+ var zeroSlackChannelsContract = c48.router({
119533
119574
  list: {
119534
119575
  method: "GET",
119535
119576
  path: "/api/zero/slack/channels",
@@ -119545,12 +119586,12 @@ var zeroSlackChannelsContract = c47.router({
119545
119586
 
119546
119587
  // ../../packages/api-contracts/src/contracts/zero-queue-position.ts
119547
119588
  init_esm_shims();
119548
- var c48 = initContract();
119589
+ var c49 = initContract();
119549
119590
  var queuePositionResponseSchema = external_exports.object({
119550
119591
  position: external_exports.number(),
119551
119592
  total: external_exports.number()
119552
119593
  });
119553
- var zeroQueuePositionContract = c48.router({
119594
+ var zeroQueuePositionContract = c49.router({
119554
119595
  getPosition: {
119555
119596
  method: "GET",
119556
119597
  path: "/api/zero/queue-position",
@@ -119570,13 +119611,13 @@ var zeroQueuePositionContract = c48.router({
119570
119611
 
119571
119612
  // ../../packages/api-contracts/src/contracts/zero-member-credit-cap.ts
119572
119613
  init_esm_shims();
119573
- var c49 = initContract();
119614
+ var c50 = initContract();
119574
119615
  var memberCreditCapResponseSchema = external_exports.object({
119575
119616
  userId: external_exports.string(),
119576
119617
  creditCap: external_exports.number().nullable(),
119577
119618
  creditEnabled: external_exports.boolean()
119578
119619
  });
119579
- var zeroMemberCreditCapContract = c49.router({
119620
+ var zeroMemberCreditCapContract = c50.router({
119580
119621
  get: {
119581
119622
  method: "GET",
119582
119623
  path: "/api/zero/org/members/credit-cap",
@@ -119611,7 +119652,7 @@ var zeroMemberCreditCapContract = c49.router({
119611
119652
 
119612
119653
  // ../../packages/api-contracts/src/contracts/zero-report-error.ts
119613
119654
  init_esm_shims();
119614
- var c50 = initContract();
119655
+ var c51 = initContract();
119615
119656
  var reportErrorBodySchema = external_exports.object({
119616
119657
  runId: external_exports.uuid("Run ID must be a valid UUID"),
119617
119658
  title: external_exports.string().min(1, "Title is required"),
@@ -119620,7 +119661,7 @@ var reportErrorBodySchema = external_exports.object({
119620
119661
  var reportErrorResponseSchema = external_exports.object({
119621
119662
  reference: external_exports.string()
119622
119663
  });
119623
- var zeroReportErrorContract = c50.router({
119664
+ var zeroReportErrorContract = c51.router({
119624
119665
  submit: {
119625
119666
  method: "POST",
119626
119667
  path: "/api/zero/report-error",
@@ -119638,7 +119679,7 @@ var zeroReportErrorContract = c50.router({
119638
119679
 
119639
119680
  // ../../packages/api-contracts/src/contracts/zero-insights.ts
119640
119681
  init_esm_shims();
119641
- var c51 = initContract();
119682
+ var c52 = initContract();
119642
119683
  var insightAgentSchema = external_exports.object({
119643
119684
  agentName: external_exports.string(),
119644
119685
  agentId: external_exports.string().nullable(),
@@ -119703,7 +119744,7 @@ var insightsRangeResponseSchema = external_exports.object({
119703
119744
  maxDate: external_exports.string().nullable(),
119704
119745
  totalDays: external_exports.number()
119705
119746
  });
119706
- var zeroInsightsContract = c51.router({
119747
+ var zeroInsightsContract = c52.router({
119707
119748
  get: {
119708
119749
  method: "GET",
119709
119750
  path: "/api/zero/insights",
@@ -119718,7 +119759,7 @@ var zeroInsightsContract = c51.router({
119718
119759
  summary: "Get daily insights for the authenticated org"
119719
119760
  }
119720
119761
  });
119721
- var zeroInsightsRangeContract = c51.router({
119762
+ var zeroInsightsRangeContract = c52.router({
119722
119763
  get: {
119723
119764
  method: "GET",
119724
119765
  path: "/api/zero/insights/range",
@@ -119733,8 +119774,8 @@ var zeroInsightsRangeContract = c51.router({
119733
119774
 
119734
119775
  // ../../packages/api-contracts/src/contracts/push-subscriptions.ts
119735
119776
  init_esm_shims();
119736
- var c52 = initContract();
119737
- var pushSubscriptionsContract = c52.router({
119777
+ var c53 = initContract();
119778
+ var pushSubscriptionsContract = c53.router({
119738
119779
  register: {
119739
119780
  method: "POST",
119740
119781
  path: "/api/zero/push-subscriptions",
@@ -119758,13 +119799,13 @@ var pushSubscriptionsContract = c52.router({
119758
119799
 
119759
119800
  // ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
119760
119801
  init_esm_shims();
119761
- var c53 = initContract();
119802
+ var c54 = initContract();
119762
119803
  var audioInputQuotaResponseSchema = external_exports.object({
119763
119804
  allowed: external_exports.boolean(),
119764
119805
  count: external_exports.number().int().nonnegative(),
119765
119806
  limit: external_exports.number().int().positive().nullable()
119766
119807
  });
119767
- var zeroVoiceIoQuotaContract = c53.router({
119808
+ var zeroVoiceIoQuotaContract = c54.router({
119768
119809
  get: {
119769
119810
  method: "GET",
119770
119811
  path: "/api/zero/voice-io/quota",
@@ -119780,7 +119821,7 @@ var zeroVoiceIoQuotaContract = c53.router({
119780
119821
 
119781
119822
  // ../../packages/api-contracts/src/contracts/zero-voice-chat.ts
119782
119823
  init_esm_shims();
119783
- var c54 = initContract();
119824
+ var c55 = initContract();
119784
119825
  var voiceChatItemRoleSchema = external_exports.enum([
119785
119826
  "user",
119786
119827
  "assistant",
@@ -119877,7 +119918,7 @@ var sessionEndedBodySchema = external_exports.object({
119877
119918
  relaySessionId: external_exports.uuid()
119878
119919
  });
119879
119920
  var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
119880
- var zeroVoiceChatContract = c54.router({
119921
+ var zeroVoiceChatContract = c55.router({
119881
119922
  createSession: {
119882
119923
  method: "POST",
119883
119924
  path: "/api/zero/voice-chat",
@@ -120049,7 +120090,7 @@ var zeroVoiceChatContract = c54.router({
120049
120090
 
120050
120091
  // ../../packages/api-contracts/src/contracts/zero-uploads.ts
120051
120092
  init_esm_shims();
120052
- var c55 = initContract();
120093
+ var c56 = initContract();
120053
120094
  var prepareRequestSchema = external_exports.object({
120054
120095
  filename: external_exports.string().min(1).max(255),
120055
120096
  contentType: external_exports.string().min(1).max(200),
@@ -120076,7 +120117,7 @@ var completeResponseSchema = external_exports.object({
120076
120117
  size: external_exports.number(),
120077
120118
  url: external_exports.string().url()
120078
120119
  });
120079
- var zeroUploadsContract = c55.router({
120120
+ var zeroUploadsContract = c56.router({
120080
120121
  prepare: {
120081
120122
  method: "POST",
120082
120123
  path: "/api/zero/uploads/prepare",
@@ -120110,7 +120151,7 @@ var zeroUploadsContract = c55.router({
120110
120151
 
120111
120152
  // ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
120112
120153
  init_esm_shims();
120113
- var c56 = initContract();
120154
+ var c57 = initContract();
120114
120155
  var telegramEnvironmentSchema = external_exports.object({
120115
120156
  requiredSecrets: external_exports.array(external_exports.string()),
120116
120157
  requiredVars: external_exports.array(external_exports.string()),
@@ -120200,7 +120241,7 @@ var telegramSetupStatusSchema = external_exports.object({
120200
120241
  domainConfigured: external_exports.boolean(),
120201
120242
  privacyDisabled: external_exports.boolean()
120202
120243
  });
120203
- var zeroIntegrationsTelegramContract = c56.router({
120244
+ var zeroIntegrationsTelegramContract = c57.router({
120204
120245
  list: {
120205
120246
  method: "GET",
120206
120247
  path: "/api/integrations/telegram",
@@ -120243,9 +120284,9 @@ var zeroIntegrationsTelegramContract = c56.router({
120243
120284
  path: "/api/integrations/telegram/:botId",
120244
120285
  headers: authHeadersSchema,
120245
120286
  pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
120246
- body: c56.noBody(),
120287
+ body: c57.noBody(),
120247
120288
  responses: {
120248
- 204: c56.noBody(),
120289
+ 204: c57.noBody(),
120249
120290
  401: apiErrorSchema,
120250
120291
  403: apiErrorSchema,
120251
120292
  404: apiErrorSchema
@@ -120256,10 +120297,10 @@ var zeroIntegrationsTelegramContract = c56.router({
120256
120297
  method: "DELETE",
120257
120298
  path: "/api/integrations/telegram/link",
120258
120299
  headers: authHeadersSchema,
120259
- body: c56.noBody(),
120300
+ body: c57.noBody(),
120260
120301
  query: external_exports.object({ botId: external_exports.string().optional() }),
120261
120302
  responses: {
120262
- 204: c56.noBody(),
120303
+ 204: c57.noBody(),
120263
120304
  401: apiErrorSchema,
120264
120305
  404: apiErrorSchema
120265
120306
  },
@@ -120425,14 +120466,6 @@ init_esm_shims();
120425
120466
 
120426
120467
  // ../../packages/core/src/identity-hash.ts
120427
120468
  init_esm_shims();
120428
- function fnv1a(input) {
120429
- let h = 2166136261 >>> 0;
120430
- for (let i = 0; i < input.length; i++) {
120431
- h ^= input.charCodeAt(i);
120432
- h = Math.imul(h, 16777619) >>> 0;
120433
- }
120434
- return h.toString(16).padStart(8, "0");
120435
- }
120436
120469
  var STAFF_ORG_ID_HASHES = [
120437
120470
  "afce210e"
120438
120471
  // org_3ANttyrbWYJk6JKRSTRLEsbsDLe
@@ -120673,12 +120706,6 @@ var FEATURE_SWITCHES = {
120673
120706
  enabled: false,
120674
120707
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
120675
120708
  },
120676
- ["platformConnectors" /* PlatformConnectors */]: {
120677
- maintainer: "liangyou@vm0.ai",
120678
- description: "Gate the entire platform-managed connector UI (Enable button and POST /api/zero/platform-connectors/:type). When off, only api-token and OAuth methods surface in connectors list/search, and the enable endpoint 404s. Staff-only during rollout.",
120679
- enabled: false,
120680
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
120681
- },
120682
120709
  ["trinity" /* Trinity */]: {
120683
120710
  maintainer: "ethan@vm0.ai",
120684
120711
  description: "Embed the voice-chat mic toggle + voice-mode layout into the agent chat page. Gates the mic launcher, composer swap, and status/subtitle/task-card UI.",
@@ -120714,34 +120741,11 @@ var FEATURE_SWITCHES = {
120714
120741
  },
120715
120742
  ["voiceChatRealtimeBilling" /* VoiceChatRealtimeBilling */]: {
120716
120743
  maintainer: "lancy@vm0.ai",
120717
- description: "Switch the voice-chat token endpoint to mint a VM0 relay-bootstrap instead of an OpenAI client_secret. When OFF, browsers receive the legacy ephemeral OpenAI token. When ON, the route runs credit + pricing admission and mints a short-lived HMAC relay token; the browser opens a WebSocket to /api/zero/voice-chat/relay (sub-issue #12139). Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
120744
+ description: "Gate voice-chat realtime billing (Plan D, Epic #12128). When OFF, the token route mints an OpenAI ephemeral token without admission checks and the /session-started, /usage, and /session-ended endpoints are 200 no-ops \u2014 the org gets unmetered voice-chat. When ON, the token route runs credit + pricing admission, /session-started inserts an audit row in voice_chat_realtime_sessions, and the browser self-reports response.done + transcription.completed usage events for billing. Staff-only during rollout; operator flips per org via the feature-switch overrides API.",
120718
120745
  enabled: false,
120719
120746
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
120720
120747
  }
120721
120748
  };
120722
- function isFeatureEnabled(key, ctx) {
120723
- const override = ctx.overrides?.[key];
120724
- if (override !== void 0) {
120725
- return override;
120726
- }
120727
- const featureSwitch = FEATURE_SWITCHES[key];
120728
- if (featureSwitch.enabled) {
120729
- return true;
120730
- }
120731
- if (ctx.userId && featureSwitch.enabledUserHashes?.length) {
120732
- if (featureSwitch.enabledUserHashes.includes(fnv1a(ctx.userId)))
120733
- return true;
120734
- }
120735
- if (ctx.email && featureSwitch.enabledEmailHashes?.length) {
120736
- if (featureSwitch.enabledEmailHashes.includes(fnv1a(ctx.email.toLowerCase())))
120737
- return true;
120738
- }
120739
- if (ctx.orgId && featureSwitch.enabledOrgIdHashes?.length) {
120740
- if (featureSwitch.enabledOrgIdHashes.includes(fnv1a(ctx.orgId)))
120741
- return true;
120742
- }
120743
- return false;
120744
- }
120745
120749
 
120746
120750
  // ../../packages/core/src/staff-org.ts
120747
120751
  init_esm_shims();
@@ -121100,9 +121104,9 @@ var CodexEventParser = class {
121100
121104
  if (!item.changes || item.changes.length === 0) {
121101
121105
  return null;
121102
121106
  }
121103
- const changes = item.changes.map((c57) => {
121104
- const action = c57.kind === "add" ? "Created" : c57.kind === "modify" ? "Modified" : "Deleted";
121105
- return `${action}: ${c57.path}`;
121107
+ const changes = item.changes.map((c58) => {
121108
+ const action = c58.kind === "add" ? "Created" : c58.kind === "modify" ? "Modified" : "Deleted";
121109
+ return `${action}: ${c58.path}`;
121106
121110
  }).join("\n");
121107
121111
  return {
121108
121112
  type: "text",
@@ -122128,6 +122132,7 @@ export {
122128
122132
  CONNECTOR_TYPES,
122129
122133
  connectorTypeSchema,
122130
122134
  listZeroConnectors,
122135
+ searchZeroConnectors,
122131
122136
  getZeroConnector,
122132
122137
  sendSlackMessage,
122133
122138
  initSlackFileUpload,
@@ -122185,7 +122190,6 @@ export {
122185
122190
  getConnectorFirewall,
122186
122191
  resolveFirewallPolicies,
122187
122192
  findMatchingPermissions,
122188
- isFeatureEnabled,
122189
122193
  parseEvent,
122190
122194
  EventRenderer,
122191
122195
  collectKeyValue,
@@ -122212,4 +122216,4 @@ undici/lib/web/fetch/body.js:
122212
122216
  undici/lib/web/websocket/frame.js:
122213
122217
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
122214
122218
  */
122215
- //# sourceMappingURL=chunk-K4JU76G2.js.map
122219
+ //# sourceMappingURL=chunk-DLWFP5WP.js.map