@vm0/cli 9.153.0 → 9.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4629,8 +4629,8 @@ var require_browser = __commonJS({
4629
4629
  if (!this.useColors) {
4630
4630
  return;
4631
4631
  }
4632
- const c104 = "color: " + this.color;
4633
- args.splice(1, 0, c104, "color: inherit");
4632
+ const c105 = "color: " + this.color;
4633
+ args.splice(1, 0, c105, "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, c104);
4645
+ args.splice(lastC, 0, c105);
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 c104 = this.color;
4934
- const colorCode = "\x1B[3" + (c104 < 8 ? c104 : "8;5;" + c104);
4933
+ const c105 = this.color;
4934
+ const colorCode = "\x1B[3" + (c105 < 8 ? c105 : "8;5;" + c105);
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 c104;
8984
+ let c105;
8985
8985
  if (isAlphaSequence) {
8986
- c104 = String.fromCharCode(i);
8987
- if (c104 === "\\") {
8988
- c104 = "";
8986
+ c105 = String.fromCharCode(i);
8987
+ if (c105 === "\\") {
8988
+ c105 = "";
8989
8989
  }
8990
8990
  } else {
8991
- c104 = String(i);
8991
+ c105 = String(i);
8992
8992
  if (pad) {
8993
- const need = width - c104.length;
8993
+ const need = width - c105.length;
8994
8994
  if (need > 0) {
8995
8995
  const z3 = new Array(need + 1).join("0");
8996
8996
  if (i < 0) {
8997
- c104 = "-" + z3 + c104.slice(1);
8997
+ c105 = "-" + z3 + c105.slice(1);
8998
8998
  } else {
8999
- c104 = z3 + c104;
8999
+ c105 = z3 + c105;
9000
9000
  }
9001
9001
  }
9002
9002
  }
9003
9003
  }
9004
- N.push(c104);
9004
+ N.push(c105);
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 c104 = glob.charAt(i);
9088
- if ((c104 === "!" || c104 === "^") && i === pos + 1) {
9087
+ const c105 = glob.charAt(i);
9088
+ if ((c105 === "!" || c105 === "^") && i === pos + 1) {
9089
9089
  negate = true;
9090
9090
  i++;
9091
9091
  continue;
9092
9092
  }
9093
- if (c104 === "]" && sawStart && !escaping) {
9093
+ if (c105 === "]" && sawStart && !escaping) {
9094
9094
  endPos = i + 1;
9095
9095
  break;
9096
9096
  }
9097
9097
  sawStart = true;
9098
- if (c104 === "\\") {
9098
+ if (c105 === "\\") {
9099
9099
  if (!escaping) {
9100
9100
  escaping = true;
9101
9101
  i++;
9102
9102
  continue;
9103
9103
  }
9104
9104
  }
9105
- if (c104 === "[" && !escaping) {
9105
+ if (c105 === "[" && !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 (c104 > rangeStart) {
9124
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c104));
9125
- } else if (c104 === rangeStart) {
9126
- ranges.push(braceEscape(c104));
9123
+ if (c105 > rangeStart) {
9124
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c105));
9125
+ } else if (c105 === rangeStart) {
9126
+ ranges.push(braceEscape(c105));
9127
9127
  }
9128
9128
  rangeStart = "";
9129
9129
  i++;
9130
9130
  continue;
9131
9131
  }
9132
9132
  if (glob.startsWith("-]", i + 1)) {
9133
- ranges.push(braceEscape(c104 + "-"));
9133
+ ranges.push(braceEscape(c105 + "-"));
9134
9134
  i += 2;
9135
9135
  continue;
9136
9136
  }
9137
9137
  if (glob.startsWith("-", i + 1)) {
9138
- rangeStart = c104;
9138
+ rangeStart = c105;
9139
9139
  i += 2;
9140
9140
  continue;
9141
9141
  }
9142
- ranges.push(braceEscape(c104));
9142
+ ranges.push(braceEscape(c105));
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 = (c104) => types.has(c104);
9193
- var isExtglobAST = (c104) => isExtglobType(c104.type);
9192
+ var isExtglobType = (c105) => types.has(c105);
9193
+ var isExtglobAST = (c105) => isExtglobType(c105.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 c104 = new _a2(this.type, parent);
9390
+ const c105 = new _a2(this.type, parent);
9391
9391
  for (const p of this.#parts) {
9392
- c104.copyIn(p);
9392
+ c105.copyIn(p);
9393
9393
  }
9394
- return c104;
9394
+ return c105;
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 c104 = str.charAt(i2++);
9407
- if (escaping || c104 === "\\") {
9406
+ const c105 = str.charAt(i2++);
9407
+ if (escaping || c105 === "\\") {
9408
9408
  escaping = !escaping;
9409
- acc2 += c104;
9409
+ acc2 += c105;
9410
9410
  continue;
9411
9411
  }
9412
9412
  if (inBrace) {
9413
9413
  if (i2 === braceStart + 1) {
9414
- if (c104 === "^" || c104 === "!") {
9414
+ if (c105 === "^" || c105 === "!") {
9415
9415
  braceNeg = true;
9416
9416
  }
9417
- } else if (c104 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9417
+ } else if (c105 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
9418
9418
  inBrace = false;
9419
9419
  }
9420
- acc2 += c104;
9420
+ acc2 += c105;
9421
9421
  continue;
9422
- } else if (c104 === "[") {
9422
+ } else if (c105 === "[") {
9423
9423
  inBrace = true;
9424
9424
  braceStart = i2;
9425
9425
  braceNeg = false;
9426
- acc2 += c104;
9426
+ acc2 += c105;
9427
9427
  continue;
9428
9428
  }
9429
- const doRecurse = !opt.noext && isExtglobType(c104) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9429
+ const doRecurse = !opt.noext && isExtglobType(c105) && str.charAt(i2) === "(" && extDepth <= maxDepth;
9430
9430
  if (doRecurse) {
9431
9431
  ast.push(acc2);
9432
9432
  acc2 = "";
9433
- const ext = new _a2(c104, ast);
9433
+ const ext = new _a2(c105, ast);
9434
9434
  i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
9435
9435
  ast.push(ext);
9436
9436
  continue;
9437
9437
  }
9438
- acc2 += c104;
9438
+ acc2 += c105;
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 c104 = str.charAt(i++);
9449
- if (escaping || c104 === "\\") {
9448
+ const c105 = str.charAt(i++);
9449
+ if (escaping || c105 === "\\") {
9450
9450
  escaping = !escaping;
9451
- acc += c104;
9451
+ acc += c105;
9452
9452
  continue;
9453
9453
  }
9454
9454
  if (inBrace) {
9455
9455
  if (i === braceStart + 1) {
9456
- if (c104 === "^" || c104 === "!") {
9456
+ if (c105 === "^" || c105 === "!") {
9457
9457
  braceNeg = true;
9458
9458
  }
9459
- } else if (c104 === "]" && !(i === braceStart + 2 && braceNeg)) {
9459
+ } else if (c105 === "]" && !(i === braceStart + 2 && braceNeg)) {
9460
9460
  inBrace = false;
9461
9461
  }
9462
- acc += c104;
9462
+ acc += c105;
9463
9463
  continue;
9464
- } else if (c104 === "[") {
9464
+ } else if (c105 === "[") {
9465
9465
  inBrace = true;
9466
9466
  braceStart = i;
9467
9467
  braceNeg = false;
9468
- acc += c104;
9468
+ acc += c105;
9469
9469
  continue;
9470
9470
  }
9471
- const doRecurse = !opt.noext && isExtglobType(c104) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
- (extDepth <= maxDepth || ast && ast.#canAdoptType(c104));
9471
+ const doRecurse = !opt.noext && isExtglobType(c105) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
9472
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c105));
9473
9473
  if (doRecurse) {
9474
- const depthAdd = ast && ast.#canAdoptType(c104) ? 0 : 1;
9474
+ const depthAdd = ast && ast.#canAdoptType(c105) ? 0 : 1;
9475
9475
  part.push(acc);
9476
9476
  acc = "";
9477
- const ext = new _a2(c104, part);
9477
+ const ext = new _a2(c105, part);
9478
9478
  part.push(ext);
9479
9479
  i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
9480
9480
  continue;
9481
9481
  }
9482
- if (c104 === "|") {
9482
+ if (c105 === "|") {
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 (c104 === ")") {
9489
+ if (c105 === ")") {
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 += c104;
9498
+ acc += c105;
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(c104, map2 = adoptionAnyMap) {
9519
- return !!map2.get(this.type)?.includes(c104);
9518
+ #canAdoptType(c105, map2 = adoptionAnyMap) {
9519
+ return !!map2.get(this.type)?.includes(c105);
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(c104) {
9537
+ #canUsurpType(c105) {
9538
9538
  const m = usurpMap.get(this.type);
9539
- return !!m?.has(c104);
9539
+ return !!m?.has(c105);
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 c104 = this.#parts[i];
9753
- if (typeof c104 === "object") {
9754
- c104.#flatten();
9755
- if (this.#canAdopt(c104)) {
9752
+ const c105 = this.#parts[i];
9753
+ if (typeof c105 === "object") {
9754
+ c105.#flatten();
9755
+ if (this.#canAdopt(c105)) {
9756
9756
  done = false;
9757
- this.#adopt(c104, i);
9758
- } else if (this.#canAdoptWithSpace(c104)) {
9757
+ this.#adopt(c105, i);
9758
+ } else if (this.#canAdoptWithSpace(c105)) {
9759
9759
  done = false;
9760
- this.#adoptWithSpace(c104, i);
9761
- } else if (this.#canUsurp(c104)) {
9760
+ this.#adoptWithSpace(c105, i);
9761
+ } else if (this.#canUsurp(c105)) {
9762
9762
  done = false;
9763
- this.#usurp(c104);
9763
+ this.#usurp(c105);
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 c104 = glob.charAt(i);
9787
+ const c105 = glob.charAt(i);
9788
9788
  if (escaping) {
9789
9789
  escaping = false;
9790
- re += (reSpecials.has(c104) ? "\\" : "") + c104;
9790
+ re += (reSpecials.has(c105) ? "\\" : "") + c105;
9791
9791
  continue;
9792
9792
  }
9793
- if (c104 === "*") {
9793
+ if (c105 === "*") {
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 (c104 === "\\") {
9803
+ if (c105 === "\\") {
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 (c104 === "[") {
9811
+ if (c105 === "[") {
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 (c104 === "?") {
9821
+ if (c105 === "?") {
9822
9822
  re += qmark;
9823
9823
  hasMagic = true;
9824
9824
  continue;
9825
9825
  }
9826
- re += regExpEscape(c104);
9826
+ re += regExpEscape(c105);
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 c104 = pool.config.connectionConfig;
13750
+ const c105 = pool.config.connectionConfig;
13751
13751
  let poolName = "";
13752
- poolName += c104.host ? `host: '${c104.host}', ` : "";
13753
- poolName += c104.port ? `port: ${c104.port}, ` : "";
13754
- poolName += c104.database ? `database: '${c104.database}', ` : "";
13755
- poolName += c104.user ? `user: '${c104.user}'` : "";
13756
- if (!c104.user) {
13752
+ poolName += c105.host ? `host: '${c105.host}', ` : "";
13753
+ poolName += c105.port ? `port: ${c105.port}, ` : "";
13754
+ poolName += c105.database ? `database: '${c105.database}', ` : "";
13755
+ poolName += c105.user ? `user: '${c105.user}'` : "";
13756
+ if (!c105.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, (c104) => `%${c104.charCodeAt(0).toString(16).toUpperCase()}`);
14108
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c105) => `%${c105.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(c104) {
22669
- switch (c104) {
22668
+ function isTokenCharCode(c105) {
22669
+ switch (c105) {
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 c104 >= 33 && c104 <= 126;
22689
+ return c105 >= 33 && c105 <= 126;
22690
22690
  }
22691
22691
  }
22692
22692
  function isValidHTTPToken(characters) {
@@ -23648,9 +23648,9 @@ var require_timers = __commonJS({
23648
23648
  * before the specified function or code is executed.
23649
23649
  * @param {*} arg
23650
23650
  */
23651
- constructor(callback, delay, arg) {
23651
+ constructor(callback, delay2, arg) {
23652
23652
  this._onTimeout = callback;
23653
- this._idleTimeout = delay;
23653
+ this._idleTimeout = delay2;
23654
23654
  this._timerArg = arg;
23655
23655
  this.refresh();
23656
23656
  }
@@ -23695,8 +23695,8 @@ var require_timers = __commonJS({
23695
23695
  * when the timer expires.
23696
23696
  * @returns {NodeJS.Timeout|FastTimer}
23697
23697
  */
23698
- setTimeout(callback, delay, arg) {
23699
- return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg);
23698
+ setTimeout(callback, delay2, arg) {
23699
+ return delay2 <= RESOLUTION_MS ? setTimeout(callback, delay2, arg) : new FastTimer(callback, delay2, arg);
23700
23700
  },
23701
23701
  /**
23702
23702
  * The clearTimeout method cancels an instantiated Timer previously created
@@ -23722,8 +23722,8 @@ var require_timers = __commonJS({
23722
23722
  * when the timer expires.
23723
23723
  * @returns {FastTimer}
23724
23724
  */
23725
- setFastTimeout(callback, delay, arg) {
23726
- return new FastTimer(callback, delay, arg);
23725
+ setFastTimeout(callback, delay2, arg) {
23726
+ return new FastTimer(callback, delay2, arg);
23727
23727
  },
23728
23728
  /**
23729
23729
  * The clearTimeout method cancels an instantiated FastTimer previously
@@ -23749,8 +23749,8 @@ var require_timers = __commonJS({
23749
23749
  * @deprecated
23750
23750
  * @param {number} [delay=0] The delay in milliseconds to add to the now value.
23751
23751
  */
23752
- tick(delay = 0) {
23753
- fastNow += delay - RESOLUTION_MS + 1;
23752
+ tick(delay2 = 0) {
23753
+ fastNow += delay2 - RESOLUTION_MS + 1;
23754
23754
  onTick();
23755
23755
  onTick();
23756
23756
  },
@@ -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((c104) => c104 !== 44);
24278
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c105) => c105 !== 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 c104 = statusText.charCodeAt(i);
25425
- if (!(c104 === 9 || // HTAB
25426
- c104 >= 32 && c104 <= 126 || // SP / VCHAR
25427
- c104 >= 128 && c104 <= 255)) {
25424
+ const c105 = statusText.charCodeAt(i);
25425
+ if (!(c105 === 9 || // HTAB
25426
+ c105 >= 32 && c105 <= 126 || // SP / VCHAR
25427
+ c105 >= 128 && c105 <= 255)) {
25428
25428
  return false;
25429
25429
  }
25430
25430
  }
@@ -27161,21 +27161,21 @@ var require_client_h1 = __commonJS({
27161
27161
  this.connection = "";
27162
27162
  this.maxResponseSize = client[kMaxResponseSize];
27163
27163
  }
27164
- setTimeout(delay, type) {
27165
- if (delay !== this.timeoutValue || type & USE_FAST_TIMER ^ this.timeoutType & USE_FAST_TIMER) {
27164
+ setTimeout(delay2, type) {
27165
+ if (delay2 !== this.timeoutValue || type & USE_FAST_TIMER ^ this.timeoutType & USE_FAST_TIMER) {
27166
27166
  if (this.timeout) {
27167
27167
  timers.clearTimeout(this.timeout);
27168
27168
  this.timeout = null;
27169
27169
  }
27170
- if (delay) {
27170
+ if (delay2) {
27171
27171
  if (type & USE_FAST_TIMER) {
27172
- this.timeout = timers.setFastTimeout(onParserTimeout, delay, new WeakRef(this));
27172
+ this.timeout = timers.setFastTimeout(onParserTimeout, delay2, new WeakRef(this));
27173
27173
  } else {
27174
- this.timeout = setTimeout(onParserTimeout, delay, new WeakRef(this));
27174
+ this.timeout = setTimeout(onParserTimeout, delay2, new WeakRef(this));
27175
27175
  this.timeout.unref();
27176
27176
  }
27177
27177
  }
27178
- this.timeoutValue = delay;
27178
+ this.timeoutValue = delay2;
27179
27179
  } else if (this.timeout) {
27180
27180
  if (this.timeout.refresh) {
27181
27181
  this.timeout.refresh();
@@ -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((c104) => c104.close())).then(pool[kClosedResolve]);
29401
+ Promise.all(pool[kClients].map((c105) => c105.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((c104) => c104.close()));
29450
+ await Promise.all(this[kClients].map((c105) => c105.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((c104) => c104.destroy(err)));
29465
+ await Promise.all(this[kClients].map((c105) => c105.destroy(err)));
29466
29466
  }
29467
29467
  [kDispatch](opts, handler) {
29468
29468
  const dispatcher = this[kGetDispatcher]();
@@ -31962,7 +31962,7 @@ var require_mock_utils = __commonJS({
31962
31962
  if (mockDispatch2.data.callback) {
31963
31963
  mockDispatch2.data = { ...mockDispatch2.data, ...mockDispatch2.data.callback(opts) };
31964
31964
  }
31965
- const { data: { statusCode, data, headers, trailers, error: error49 }, delay, persist } = mockDispatch2;
31965
+ const { data: { statusCode, data, headers, trailers, error: error49 }, delay: delay2, persist } = mockDispatch2;
31966
31966
  const { timesInvoked, times } = mockDispatch2;
31967
31967
  mockDispatch2.consumed = !persist && timesInvoked >= times;
31968
31968
  mockDispatch2.pending = timesInvoked < times;
@@ -31971,10 +31971,10 @@ var require_mock_utils = __commonJS({
31971
31971
  handler.onError(error49);
31972
31972
  return true;
31973
31973
  }
31974
- if (typeof delay === "number" && delay > 0) {
31974
+ if (typeof delay2 === "number" && delay2 > 0) {
31975
31975
  setTimeout(() => {
31976
31976
  handleReply(this[kDispatches]);
31977
- }, delay);
31977
+ }, delay2);
31978
31978
  } else {
31979
31979
  handleReply(this[kDispatches]);
31980
31980
  }
@@ -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, c104] = ioQueue;
36236
- if (a === 239 && b === 187 && c104 === 191) {
36235
+ const [a, b, c105] = ioQueue;
36236
+ if (a === 239 && b === 187 && c105 === 191) {
36237
36237
  return "UTF-8";
36238
36238
  } else if (a === 254 && b === 255) {
36239
36239
  return "UTF-16BE";
@@ -39344,7 +39344,7 @@ var require_util8 = __commonJS({
39344
39344
  }
39345
39345
  return true;
39346
39346
  }
39347
- function delay(ms) {
39347
+ function delay2(ms) {
39348
39348
  return new Promise((resolve2) => {
39349
39349
  setTimeout(resolve2, ms).unref();
39350
39350
  });
@@ -39352,7 +39352,7 @@ var require_util8 = __commonJS({
39352
39352
  module2.exports = {
39353
39353
  isValidLastEventId,
39354
39354
  isASCIINumber,
39355
- delay
39355
+ delay: delay2
39356
39356
  };
39357
39357
  }
39358
39358
  });
@@ -39601,7 +39601,7 @@ var require_eventsource = __commonJS({
39601
39601
  var { parseMIMEType } = require_data_url();
39602
39602
  var { createFastMessageEvent } = require_events();
39603
39603
  var { isNetworkError } = require_response();
39604
- var { delay } = require_util8();
39604
+ var { delay: delay2 } = require_util8();
39605
39605
  var { kEnumerableProperty } = require_util();
39606
39606
  var { environmentSettingsObject } = require_util2();
39607
39607
  var experimentalWarned = false;
@@ -39772,7 +39772,7 @@ var require_eventsource = __commonJS({
39772
39772
  if (this.#readyState === CLOSED) return;
39773
39773
  this.#readyState = CONNECTING;
39774
39774
  this.dispatchEvent(new Event("error"));
39775
- await delay(this.#state.reconnectionTime);
39775
+ await delay2(this.#state.reconnectionTime);
39776
39776
  if (this.#readyState !== CONNECTING) return;
39777
39777
  if (this.#state.lastEventId.length) {
39778
39778
  this.#request.headersList.set("last-event-id", this.#state.lastEventId, true);
@@ -40356,7 +40356,7 @@ var require_style = __commonJS({
40356
40356
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
40357
40357
  "use strict";
40358
40358
  init_esm_shims();
40359
- var c104 = require_kleur();
40359
+ var c105 = require_kleur();
40360
40360
  var figures = require_figures();
40361
40361
  var styles3 = Object.freeze({
40362
40362
  password: {
@@ -40378,14 +40378,14 @@ var require_style = __commonJS({
40378
40378
  });
40379
40379
  var render = (type) => styles3[type] || styles3.default;
40380
40380
  var symbols = Object.freeze({
40381
- aborted: c104.red(figures.cross),
40382
- done: c104.green(figures.tick),
40383
- exited: c104.yellow(figures.cross),
40384
- default: c104.cyan("?")
40381
+ aborted: c105.red(figures.cross),
40382
+ done: c105.green(figures.tick),
40383
+ exited: c105.yellow(figures.cross),
40384
+ default: c105.cyan("?")
40385
40385
  });
40386
40386
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
40387
- var delimiter = (completing) => c104.gray(completing ? figures.ellipsis : figures.pointerSmall);
40388
- var item = (expandable, expanded) => c104.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
40387
+ var delimiter = (completing) => c105.gray(completing ? figures.ellipsis : figures.pointerSmall);
40388
+ var item = (expandable, expanded) => c105.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
40389
40389
  module2.exports = {
40390
40390
  styles: styles3,
40391
40391
  render,
@@ -40667,10 +40667,10 @@ var require_text = __commonJS({
40667
40667
  this.cursor = this.cursor + n;
40668
40668
  this.cursorOffset += n;
40669
40669
  }
40670
- _(c104, key) {
40670
+ _(c105, key) {
40671
40671
  let s1 = this.value.slice(0, this.cursor);
40672
40672
  let s2 = this.value.slice(this.cursor);
40673
- this.value = `${s1}${c104}${s2}`;
40673
+ this.value = `${s1}${c105}${s2}`;
40674
40674
  this.red = false;
40675
40675
  this.cursor = this.placeholder ? 0 : s1.length + 1;
40676
40676
  this.render();
@@ -40845,8 +40845,8 @@ var require_select = __commonJS({
40845
40845
  this.moveCursor((this.cursor + 1) % this.choices.length);
40846
40846
  this.render();
40847
40847
  }
40848
- _(c104, key) {
40849
- if (c104 === " ") return this.submit();
40848
+ _(c105, key) {
40849
+ if (c105 === " ") return this.submit();
40850
40850
  }
40851
40851
  get selection() {
40852
40852
  return this.choices[this.cursor];
@@ -40972,12 +40972,12 @@ var require_toggle = __commonJS({
40972
40972
  this.fire();
40973
40973
  this.render();
40974
40974
  }
40975
- _(c104, key) {
40976
- if (c104 === " ") {
40975
+ _(c105, key) {
40976
+ if (c105 === " ") {
40977
40977
  this.value = !this.value;
40978
- } else if (c104 === "1") {
40978
+ } else if (c105 === "1") {
40979
40979
  this.value = true;
40980
- } else if (c104 === "0") {
40980
+ } else if (c105 === "0") {
40981
40981
  this.value = false;
40982
40982
  } else return this.bell();
40983
40983
  this.render();
@@ -41485,9 +41485,9 @@ var require_date = __commonJS({
41485
41485
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
41486
41486
  this.render();
41487
41487
  }
41488
- _(c104) {
41489
- if (/\d/.test(c104)) {
41490
- this.typed += c104;
41488
+ _(c105) {
41489
+ if (/\d/.test(c105)) {
41490
+ this.typed += c105;
41491
41491
  this.parts[this.cursor].setTo(this.typed);
41492
41492
  this.render();
41493
41493
  }
@@ -41596,8 +41596,8 @@ var require_number = __commonJS({
41596
41596
  parse(x2) {
41597
41597
  return this.float ? parseFloat(x2) : parseInt(x2);
41598
41598
  }
41599
- valid(c104) {
41600
- return c104 === `-` || c104 === `.` && this.float || isNumber.test(c104);
41599
+ valid(c105) {
41600
+ return c105 === `-` || c105 === `.` && this.float || isNumber.test(c105);
41601
41601
  }
41602
41602
  reset() {
41603
41603
  this.typed = ``;
@@ -41690,14 +41690,14 @@ var require_number = __commonJS({
41690
41690
  this.fire();
41691
41691
  this.render();
41692
41692
  }
41693
- _(c104, key) {
41694
- if (!this.valid(c104)) return this.bell();
41693
+ _(c105, key) {
41694
+ if (!this.valid(c105)) return this.bell();
41695
41695
  const now = Date.now();
41696
41696
  if (now - this.lastHit > 1e3) this.typed = ``;
41697
- this.typed += c104;
41697
+ this.typed += c105;
41698
41698
  this.lastHit = now;
41699
41699
  this.color = `cyan`;
41700
- if (c104 === `.`) return this.fire();
41700
+ if (c105 === `.`) return this.fire();
41701
41701
  this.value = Math.min(this.parse(this.typed), this.max);
41702
41702
  if (this.value > this.max) this.value = this.max;
41703
41703
  if (this.value < this.min) this.value = this.min;
@@ -41861,10 +41861,10 @@ var require_multiselect = __commonJS({
41861
41861
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
41862
41862
  this.render();
41863
41863
  }
41864
- _(c104, key) {
41865
- if (c104 === " ") {
41864
+ _(c105, key) {
41865
+ if (c105 === " ") {
41866
41866
  this.handleSpaceToggle();
41867
- } else if (c104 === "a") {
41867
+ } else if (c105 === "a") {
41868
41868
  this.toggleAll();
41869
41869
  } else {
41870
41870
  return this.bell();
@@ -42105,10 +42105,10 @@ var require_autocomplete = __commonJS({
42105
42105
  this.out.write("\n");
42106
42106
  this.close();
42107
42107
  }
42108
- _(c104, key) {
42108
+ _(c105, key) {
42109
42109
  let s1 = this.input.slice(0, this.cursor);
42110
42110
  let s2 = this.input.slice(this.cursor);
42111
- this.input = `${s1}${c104}${s2}`;
42111
+ this.input = `${s1}${c105}${s2}`;
42112
42112
  this.cursor = s1.length + 1;
42113
42113
  this.complete(this.render);
42114
42114
  this.render();
@@ -42308,15 +42308,15 @@ var require_autocompleteMultiselect = __commonJS({
42308
42308
  this.render();
42309
42309
  }
42310
42310
  }
42311
- handleInputChange(c104) {
42312
- this.inputValue = this.inputValue + c104;
42311
+ handleInputChange(c105) {
42312
+ this.inputValue = this.inputValue + c105;
42313
42313
  this.updateFilteredOptions();
42314
42314
  }
42315
- _(c104, key) {
42316
- if (c104 === " ") {
42315
+ _(c105, key) {
42316
+ if (c105 === " ") {
42317
42317
  this.handleSpaceToggle();
42318
42318
  } else {
42319
- this.handleInputChange(c104);
42319
+ this.handleInputChange(c105);
42320
42320
  }
42321
42321
  }
42322
42322
  renderInstructions() {
@@ -42422,12 +42422,12 @@ var require_confirm = __commonJS({
42422
42422
  this.out.write("\n");
42423
42423
  this.close();
42424
42424
  }
42425
- _(c104, key) {
42426
- if (c104.toLowerCase() === "y") {
42425
+ _(c105, key) {
42426
+ if (c105.toLowerCase() === "y") {
42427
42427
  this.value = true;
42428
42428
  return this.submit();
42429
42429
  }
42430
- if (c104.toLowerCase() === "n") {
42430
+ if (c105.toLowerCase() === "n") {
42431
42431
  this.value = false;
42432
42432
  return this.submit();
42433
42433
  }
@@ -42868,7 +42868,7 @@ var require_style2 = __commonJS({
42868
42868
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
42869
42869
  "use strict";
42870
42870
  init_esm_shims();
42871
- var c104 = require_kleur();
42871
+ var c105 = require_kleur();
42872
42872
  var figures = require_figures2();
42873
42873
  var styles3 = Object.freeze({
42874
42874
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -42878,14 +42878,14 @@ var require_style2 = __commonJS({
42878
42878
  });
42879
42879
  var render = (type) => styles3[type] || styles3.default;
42880
42880
  var symbols = Object.freeze({
42881
- aborted: c104.red(figures.cross),
42882
- done: c104.green(figures.tick),
42883
- exited: c104.yellow(figures.cross),
42884
- default: c104.cyan("?")
42881
+ aborted: c105.red(figures.cross),
42882
+ done: c105.green(figures.tick),
42883
+ exited: c105.yellow(figures.cross),
42884
+ default: c105.cyan("?")
42885
42885
  });
42886
42886
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
42887
- var delimiter = (completing) => c104.gray(completing ? figures.ellipsis : figures.pointerSmall);
42888
- var item = (expandable, expanded) => c104.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
42887
+ var delimiter = (completing) => c105.gray(completing ? figures.ellipsis : figures.pointerSmall);
42888
+ var item = (expandable, expanded) => c105.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
42889
42889
  module2.exports = {
42890
42890
  styles: styles3,
42891
42891
  render,
@@ -43118,10 +43118,10 @@ var require_text2 = __commonJS({
43118
43118
  this.cursor = this.cursor + n;
43119
43119
  this.cursorOffset += n;
43120
43120
  }
43121
- _(c104, key) {
43121
+ _(c105, key) {
43122
43122
  let s1 = this.value.slice(0, this.cursor);
43123
43123
  let s2 = this.value.slice(this.cursor);
43124
- this.value = `${s1}${c104}${s2}`;
43124
+ this.value = `${s1}${c105}${s2}`;
43125
43125
  this.red = false;
43126
43126
  this.cursor = this.placeholder ? 0 : s1.length + 1;
43127
43127
  this.render();
@@ -43295,8 +43295,8 @@ var require_select2 = __commonJS({
43295
43295
  this.moveCursor((this.cursor + 1) % this.choices.length);
43296
43296
  this.render();
43297
43297
  }
43298
- _(c104, key) {
43299
- if (c104 === " ") return this.submit();
43298
+ _(c105, key) {
43299
+ if (c105 === " ") return this.submit();
43300
43300
  }
43301
43301
  get selection() {
43302
43302
  return this.choices[this.cursor];
@@ -43420,12 +43420,12 @@ var require_toggle2 = __commonJS({
43420
43420
  this.fire();
43421
43421
  this.render();
43422
43422
  }
43423
- _(c104, key) {
43424
- if (c104 === " ") {
43423
+ _(c105, key) {
43424
+ if (c105 === " ") {
43425
43425
  this.value = !this.value;
43426
- } else if (c104 === "1") {
43426
+ } else if (c105 === "1") {
43427
43427
  this.value = true;
43428
- } else if (c104 === "0") {
43428
+ } else if (c105 === "0") {
43429
43429
  this.value = false;
43430
43430
  } else return this.bell();
43431
43431
  this.render();
@@ -43881,9 +43881,9 @@ var require_date2 = __commonJS({
43881
43881
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
43882
43882
  this.render();
43883
43883
  }
43884
- _(c104) {
43885
- if (/\d/.test(c104)) {
43886
- this.typed += c104;
43884
+ _(c105) {
43885
+ if (/\d/.test(c105)) {
43886
+ this.typed += c105;
43887
43887
  this.parts[this.cursor].setTo(this.typed);
43888
43888
  this.render();
43889
43889
  }
@@ -43965,8 +43965,8 @@ var require_number2 = __commonJS({
43965
43965
  parse(x2) {
43966
43966
  return this.float ? parseFloat(x2) : parseInt(x2);
43967
43967
  }
43968
- valid(c104) {
43969
- return c104 === `-` || c104 === `.` && this.float || isNumber.test(c104);
43968
+ valid(c105) {
43969
+ return c105 === `-` || c105 === `.` && this.float || isNumber.test(c105);
43970
43970
  }
43971
43971
  reset() {
43972
43972
  this.typed = ``;
@@ -44053,14 +44053,14 @@ var require_number2 = __commonJS({
44053
44053
  this.fire();
44054
44054
  this.render();
44055
44055
  }
44056
- _(c104, key) {
44057
- if (!this.valid(c104)) return this.bell();
44056
+ _(c105, key) {
44057
+ if (!this.valid(c105)) return this.bell();
44058
44058
  const now = Date.now();
44059
44059
  if (now - this.lastHit > 1e3) this.typed = ``;
44060
- this.typed += c104;
44060
+ this.typed += c105;
44061
44061
  this.lastHit = now;
44062
44062
  this.color = `cyan`;
44063
- if (c104 === `.`) return this.fire();
44063
+ if (c105 === `.`) return this.fire();
44064
44064
  this.value = Math.min(this.parse(this.typed), this.max);
44065
44065
  if (this.value > this.max) this.value = this.max;
44066
44066
  if (this.value < this.min) this.value = this.min;
@@ -44222,10 +44222,10 @@ var require_multiselect2 = __commonJS({
44222
44222
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
44223
44223
  this.render();
44224
44224
  }
44225
- _(c104, key) {
44226
- if (c104 === " ") {
44225
+ _(c105, key) {
44226
+ if (c105 === " ") {
44227
44227
  this.handleSpaceToggle();
44228
- } else if (c104 === "a") {
44228
+ } else if (c105 === "a") {
44229
44229
  this.toggleAll();
44230
44230
  } else {
44231
44231
  return this.bell();
@@ -44422,10 +44422,10 @@ var require_autocomplete2 = __commonJS({
44422
44422
  this.out.write("\n");
44423
44423
  this.close();
44424
44424
  }
44425
- _(c104, key) {
44425
+ _(c105, key) {
44426
44426
  let s1 = this.input.slice(0, this.cursor);
44427
44427
  let s2 = this.input.slice(this.cursor);
44428
- this.input = `${s1}${c104}${s2}`;
44428
+ this.input = `${s1}${c105}${s2}`;
44429
44429
  this.cursor = s1.length + 1;
44430
44430
  this.complete(this.render);
44431
44431
  this.render();
@@ -44628,15 +44628,15 @@ var require_autocompleteMultiselect2 = __commonJS({
44628
44628
  this.render();
44629
44629
  }
44630
44630
  }
44631
- handleInputChange(c104) {
44632
- this.inputValue = this.inputValue + c104;
44631
+ handleInputChange(c105) {
44632
+ this.inputValue = this.inputValue + c105;
44633
44633
  this.updateFilteredOptions();
44634
44634
  }
44635
- _(c104, key) {
44636
- if (c104 === " ") {
44635
+ _(c105, key) {
44636
+ if (c105 === " ") {
44637
44637
  this.handleSpaceToggle();
44638
44638
  } else {
44639
- this.handleInputChange(c104);
44639
+ this.handleInputChange(c105);
44640
44640
  }
44641
44641
  }
44642
44642
  renderInstructions() {
@@ -44743,12 +44743,12 @@ var require_confirm2 = __commonJS({
44743
44743
  this.out.write("\n");
44744
44744
  this.close();
44745
44745
  }
44746
- _(c104, key) {
44747
- if (c104.toLowerCase() === "y") {
44746
+ _(c105, key) {
44747
+ if (c105.toLowerCase() === "y") {
44748
44748
  this.value = true;
44749
44749
  return this.submit();
44750
44750
  }
44751
- if (c104.toLowerCase() === "n") {
44751
+ if (c105.toLowerCase() === "n") {
44752
44752
  this.value = false;
44753
44753
  return this.submit();
44754
44754
  }
@@ -45634,9 +45634,9 @@ var require_Alias = __commonJS({
45634
45634
  } else if (identity.isCollection(node2)) {
45635
45635
  let count = 0;
45636
45636
  for (const item of node2.items) {
45637
- const c104 = getAliasCount(doc, item, anchors2);
45638
- if (c104 > count)
45639
- count = c104;
45637
+ const c105 = getAliasCount(doc, item, anchors2);
45638
+ if (c105 > count)
45639
+ count = c105;
45640
45640
  }
45641
45641
  return count;
45642
45642
  } else if (identity.isPair(node2)) {
@@ -53176,8 +53176,8 @@ function _htmlElementAsString(el, keyAttrs) {
53176
53176
  const className = elem.className;
53177
53177
  if (className && isString(className)) {
53178
53178
  const classes = className.split(/\s+/);
53179
- for (const c104 of classes) {
53180
- out.push(`.${c104}`);
53179
+ for (const c105 of classes) {
53180
+ out.push(`.${c105}`);
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
- (c104) => (
53412
+ (c105) => (
53413
53413
  // eslint-disable-next-line no-bitwise
53414
- (c104 ^ (getRandomByte() & 15) >> c104 / 4).toString(16)
53414
+ (c105 ^ (getRandomByte() & 15) >> c105 / 4).toString(16)
53415
53415
  )
53416
53416
  );
53417
53417
  }
@@ -57539,17 +57539,17 @@ function updateRateLimits(limits, { statusCode, headers }, now = safeDateNow())
57539
57539
  for (const limit of rateLimitHeader.trim().split(",")) {
57540
57540
  const [retryAfter, categories, , , namespaces] = limit.split(":", 5);
57541
57541
  const headerDelay = parseInt(retryAfter, 10);
57542
- const delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1e3;
57542
+ const delay2 = (!isNaN(headerDelay) ? headerDelay : 60) * 1e3;
57543
57543
  if (!categories) {
57544
- updatedRateLimits.all = now + delay;
57544
+ updatedRateLimits.all = now + delay2;
57545
57545
  } else {
57546
57546
  for (const category of categories.split(";")) {
57547
57547
  if (category === "metric_bucket") {
57548
57548
  if (!namespaces || namespaces.split(";").includes("custom")) {
57549
- updatedRateLimits[category] = now + delay;
57549
+ updatedRateLimits[category] = now + delay2;
57550
57550
  }
57551
57551
  } else {
57552
- updatedRateLimits[category] = now + delay;
57552
+ updatedRateLimits[category] = now + delay2;
57553
57553
  }
57554
57554
  }
57555
57555
  }
@@ -72468,16 +72468,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
72468
72468
  */
72469
72469
  _wrapHandler(handler) {
72470
72470
  const instrumentation = this;
72471
- return function(c104, next) {
72471
+ return function(c105, next) {
72472
72472
  if (!instrumentation.isEnabled()) {
72473
- return handler.apply(this, [c104, next]);
72473
+ return handler.apply(this, [c105, next]);
72474
72474
  }
72475
- const path3 = c104.req.path;
72475
+ const path3 = c105.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, [c104, next]);
72480
+ const result = handler.apply(this, [c105, 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.153.0",
74086
+ release: "9.154.0",
74087
74087
  sendDefaultPii: false,
74088
74088
  tracesSampleRate: 0,
74089
74089
  shutdownTimeout: 500,
@@ -74102,7 +74102,7 @@ if (DSN) {
74102
74102
  }
74103
74103
  });
74104
74104
  setContext("cli", {
74105
- version: "9.153.0",
74105
+ version: "9.154.0",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -74725,7 +74725,7 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
74725
74725
  var source_default = chalk;
74726
74726
 
74727
74727
  // src/commands/zero/remote-agent/host.ts
74728
- import { Realtime } from "ably";
74728
+ import { Realtime as Realtime2 } from "ably";
74729
74729
 
74730
74730
  // src/lib/command/with-error-handler.ts
74731
74731
  init_esm_shims();
@@ -77348,7 +77348,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
77348
77348
  function isValidBase64URL(data) {
77349
77349
  if (!base64url.test(data))
77350
77350
  return false;
77351
- const base643 = data.replace(/[-_]/g, (c104) => c104 === "-" ? "+" : "/");
77351
+ const base643 = data.replace(/[-_]/g, (c105) => c105 === "-" ? "+" : "/");
77352
77352
  const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
77353
77353
  return isValidBase64(padded);
77354
77354
  }
@@ -87459,9 +87459,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
87459
87459
  inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
87460
87460
  inst.min = (value, params) => inst.check(_gte(value, params));
87461
87461
  inst.max = (value, params) => inst.check(_lte(value, params));
87462
- const c104 = inst._zod.bag;
87463
- inst.minDate = c104.minimum ? new Date(c104.minimum) : null;
87464
- inst.maxDate = c104.maximum ? new Date(c104.maximum) : null;
87462
+ const c105 = inst._zod.bag;
87463
+ inst.minDate = c105.minimum ? new Date(c105.minimum) : null;
87464
+ inst.maxDate = c105.maximum ? new Date(c105.maximum) : null;
87465
87465
  });
87466
87466
  function date3(params) {
87467
87467
  return _date(ZodDate, params);
@@ -97059,10 +97059,10 @@ var ahrefs = {
97059
97059
  environmentMapping: {
97060
97060
  AHREFS_TOKEN: "$secrets.AHREFS_ACCESS_TOKEN"
97061
97061
  },
97062
- featureFlag: "ahrefsConnector" /* AhrefsConnector */,
97063
97062
  helpText: "Connect your Ahrefs account to access SEO data, backlink analysis, and keyword research",
97064
97063
  authMethods: {
97065
97064
  oauth: {
97065
+ featureFlag: "ahrefsConnector" /* AhrefsConnector */,
97066
97066
  label: "OAuth",
97067
97067
  helpText: "Sign in with Ahrefs to grant access.",
97068
97068
  secrets: {
@@ -97467,13 +97467,13 @@ var googleAds = {
97467
97467
  label: "Google Ads",
97468
97468
  category: "marketing-content-growth",
97469
97469
  tags: ["ads", "advertising", "google ads", "campaigns", "gaql"],
97470
- featureFlag: "googleAdsConnector" /* GoogleAdsConnector */,
97471
97470
  environmentMapping: {
97472
97471
  GOOGLE_ADS_TOKEN: "$secrets.GOOGLE_ADS_ACCESS_TOKEN"
97473
97472
  },
97474
97473
  helpText: "Connect your Google Ads account to manage campaigns, ad groups, and performance reports",
97475
97474
  authMethods: {
97476
97475
  oauth: {
97476
+ featureFlag: "googleAdsConnector" /* GoogleAdsConnector */,
97477
97477
  label: "OAuth (Recommended)",
97478
97478
  helpText: "Sign in with Google to grant Google Ads access.",
97479
97479
  secrets: {
@@ -97591,10 +97591,10 @@ var close2 = {
97591
97591
  environmentMapping: {
97592
97592
  CLOSE_TOKEN: "$secrets.CLOSE_ACCESS_TOKEN"
97593
97593
  },
97594
- featureFlag: "closeConnector" /* CloseConnector */,
97595
97594
  helpText: "Connect your Close account to manage leads, contacts, and opportunities",
97596
97595
  authMethods: {
97597
97596
  oauth: {
97597
+ featureFlag: "closeConnector" /* CloseConnector */,
97598
97598
  label: "OAuth (Recommended)",
97599
97599
  helpText: "Sign in with Close to grant access.",
97600
97600
  secrets: {
@@ -97786,10 +97786,10 @@ var computer = {
97786
97786
  COMPUTER_CONNECTOR_BRIDGE_TOKEN: "$secrets.COMPUTER_CONNECTOR_BRIDGE_TOKEN",
97787
97787
  COMPUTER_CONNECTOR_DOMAIN: "$secrets.COMPUTER_CONNECTOR_DOMAIN"
97788
97788
  },
97789
- featureFlag: "computerConnector" /* ComputerConnector */,
97790
97789
  helpText: "Expose local services to remote sandboxes via authenticated ngrok tunnels",
97791
97790
  authMethods: {
97792
97791
  api: {
97792
+ featureFlag: "computerConnector" /* ComputerConnector */,
97793
97793
  label: "API",
97794
97794
  helpText: "Server-provisioned ngrok tunnel credentials.",
97795
97795
  secrets: {
@@ -97891,10 +97891,10 @@ var docusign = {
97891
97891
  environmentMapping: {
97892
97892
  DOCUSIGN_TOKEN: "$secrets.DOCUSIGN_ACCESS_TOKEN"
97893
97893
  },
97894
- featureFlag: "docusignConnector" /* DocuSignConnector */,
97895
97894
  helpText: "Connect your DocuSign account to send and manage electronic signatures",
97896
97895
  authMethods: {
97897
97896
  oauth: {
97897
+ featureFlag: "docusignConnector" /* DocuSignConnector */,
97898
97898
  label: "OAuth (Recommended)",
97899
97899
  helpText: "Sign in with DocuSign to grant access.",
97900
97900
  secrets: {
@@ -97954,10 +97954,10 @@ var dropbox = {
97954
97954
  environmentMapping: {
97955
97955
  DROPBOX_TOKEN: "$secrets.DROPBOX_ACCESS_TOKEN"
97956
97956
  },
97957
- featureFlag: "dropboxConnector" /* DropboxConnector */,
97958
97957
  helpText: "Connect your Dropbox account to access and manage files",
97959
97958
  authMethods: {
97960
97959
  oauth: {
97960
+ featureFlag: "dropboxConnector" /* DropboxConnector */,
97961
97961
  label: "OAuth (Recommended)",
97962
97962
  helpText: "Sign in with Dropbox to grant access.",
97963
97963
  secrets: {
@@ -98419,10 +98419,10 @@ var deel = {
98419
98419
  environmentMapping: {
98420
98420
  DEEL_TOKEN: "$secrets.DEEL_ACCESS_TOKEN"
98421
98421
  },
98422
- featureFlag: "deelConnector" /* DeelConnector */,
98423
98422
  helpText: "Connect your Deel account to access HR, payroll, and contractor data",
98424
98423
  authMethods: {
98425
98424
  oauth: {
98425
+ featureFlag: "deelConnector" /* DeelConnector */,
98426
98426
  label: "OAuth (Recommended)",
98427
98427
  helpText: "Sign in with Deel to grant access.",
98428
98428
  secrets: {
@@ -98706,10 +98706,10 @@ var figma = {
98706
98706
  environmentMapping: {
98707
98707
  FIGMA_TOKEN: "$secrets.FIGMA_ACCESS_TOKEN"
98708
98708
  },
98709
- featureFlag: "figmaConnector" /* FigmaConnector */,
98710
98709
  helpText: "Connect your Figma account to access design files and projects",
98711
98710
  authMethods: {
98712
98711
  oauth: {
98712
+ featureFlag: "figmaConnector" /* FigmaConnector */,
98713
98713
  label: "OAuth (Recommended)",
98714
98714
  helpText: "Sign in with Figma to grant access.",
98715
98715
  secrets: {
@@ -98763,10 +98763,10 @@ var mercury = {
98763
98763
  environmentMapping: {
98764
98764
  MERCURY_TOKEN: "$secrets.MERCURY_ACCESS_TOKEN"
98765
98765
  },
98766
- featureFlag: "mercuryConnector" /* MercuryConnector */,
98767
98766
  helpText: "Connect your Mercury account to access banking and financial data",
98768
98767
  authMethods: {
98769
98768
  oauth: {
98769
+ featureFlag: "mercuryConnector" /* MercuryConnector */,
98770
98770
  label: "OAuth (Recommended)",
98771
98771
  helpText: "Sign in with Mercury to grant access.",
98772
98772
  secrets: {
@@ -98863,11 +98863,10 @@ var localBrowser = {
98863
98863
  label: "Local Browser",
98864
98864
  category: "data-automation-infrastructure",
98865
98865
  environmentMapping: {},
98866
- featureFlag: "localBrowserUse" /* LocalBrowserUse */,
98867
- strictFeatureFlag: true,
98868
98866
  helpText: "Connect a local browser extension so Zero can use user-authorized browser context and page controls",
98869
98867
  authMethods: {
98870
98868
  api: {
98869
+ featureFlag: "localBrowserUse" /* LocalBrowserUse */,
98871
98870
  label: "Browser Extension",
98872
98871
  helpText: "1. Install the Zero Local Browser extension\n2. Pair the extension with your Zero account\n3. Keep the extension connected, then return here and click **Connect** once it appears online",
98873
98872
  secrets: {}
@@ -98885,11 +98884,10 @@ var remoteAgent = {
98885
98884
  label: "Remote Agent",
98886
98885
  category: "engineering-team-execution",
98887
98886
  environmentMapping: {},
98888
- featureFlag: "remoteAgent" /* RemoteAgent */,
98889
- strictFeatureFlag: true,
98890
98887
  helpText: "Run local Codex or Claude Code hosts, then call them from chat with `/remote-agent ${host} prompt`",
98891
98888
  authMethods: {
98892
98889
  api: {
98890
+ featureFlag: "remoteAgent" /* RemoteAgent */,
98893
98891
  label: "CLI Host",
98894
98892
  helpText: "1. Run `npx -p @vm0/cli vm0 login`\n2. Start a host with `npx -p @vm0/cli vm0 remote-agent start`\n3. Keep the host process running, then return here and click **Connect** once it appears online\n4. Run a connected host from chat with `/remote-agent ${host} prompt`",
98895
98893
  secrets: {}
@@ -98969,10 +98967,10 @@ var reddit = {
98969
98967
  environmentMapping: {
98970
98968
  REDDIT_TOKEN: "$secrets.REDDIT_ACCESS_TOKEN"
98971
98969
  },
98972
- featureFlag: "redditConnector" /* RedditConnector */,
98973
98970
  helpText: "Connect your Reddit account to access Reddit discussions and content",
98974
98971
  authMethods: {
98975
98972
  oauth: {
98973
+ featureFlag: "redditConnector" /* RedditConnector */,
98976
98974
  label: "OAuth (Recommended)",
98977
98975
  helpText: "Sign in with Reddit to grant access.",
98978
98976
  secrets: {
@@ -99126,10 +99124,10 @@ var neon = {
99126
99124
  environmentMapping: {
99127
99125
  NEON_TOKEN: "$secrets.NEON_ACCESS_TOKEN"
99128
99126
  },
99129
- featureFlag: "neonConnector" /* NeonConnector */,
99130
99127
  helpText: "Connect your Neon account to manage serverless Postgres databases and projects",
99131
99128
  authMethods: {
99132
99129
  oauth: {
99130
+ featureFlag: "neonConnector" /* NeonConnector */,
99133
99131
  label: "OAuth (Recommended)",
99134
99132
  helpText: "Sign in with Neon to grant access.",
99135
99133
  secrets: {
@@ -99208,10 +99206,10 @@ var garminConnect = {
99208
99206
  environmentMapping: {
99209
99207
  GARMIN_CONNECT_TOKEN: "$secrets.GARMIN_CONNECT_ACCESS_TOKEN"
99210
99208
  },
99211
- featureFlag: "garminConnectConnector" /* GarminConnectConnector */,
99212
99209
  helpText: "Connect your Garmin Connect account to access wellness and activity data",
99213
99210
  authMethods: {
99214
99211
  oauth: {
99212
+ featureFlag: "garminConnectConnector" /* GarminConnectConnector */,
99215
99213
  label: "OAuth (Recommended)",
99216
99214
  helpText: "Sign in with Garmin Connect to grant access.",
99217
99215
  secrets: {
@@ -99316,10 +99314,10 @@ var posthog = {
99316
99314
  environmentMapping: {
99317
99315
  POSTHOG_TOKEN: "$secrets.POSTHOG_ACCESS_TOKEN"
99318
99316
  },
99319
- featureFlag: "posthogConnector" /* PosthogConnector */,
99320
99317
  helpText: "Connect your PostHog account to access product analytics, feature flags, and experiments",
99321
99318
  authMethods: {
99322
99319
  oauth: {
99320
+ featureFlag: "posthogConnector" /* PosthogConnector */,
99323
99321
  label: "OAuth (Recommended)",
99324
99322
  helpText: "Sign in with PostHog to grant access.",
99325
99323
  secrets: {
@@ -99522,10 +99520,10 @@ var canva = {
99522
99520
  environmentMapping: {
99523
99521
  CANVA_TOKEN: "$secrets.CANVA_ACCESS_TOKEN"
99524
99522
  },
99525
- featureFlag: "canvaConnector" /* CanvaConnector */,
99526
99523
  helpText: "Connect your Canva account to access designs, assets, and projects",
99527
99524
  authMethods: {
99528
99525
  oauth: {
99526
+ featureFlag: "canvaConnector" /* CanvaConnector */,
99529
99527
  label: "OAuth (Recommended)",
99530
99528
  helpText: "Sign in with Canva to grant access.",
99531
99529
  secrets: {
@@ -99656,10 +99654,10 @@ var supabase = {
99656
99654
  environmentMapping: {
99657
99655
  SUPABASE_TOKEN: "$secrets.SUPABASE_ACCESS_TOKEN"
99658
99656
  },
99659
- featureFlag: "supabaseConnector" /* SupabaseConnector */,
99660
99657
  helpText: "Connect your Supabase account to manage projects, databases, and APIs",
99661
99658
  authMethods: {
99662
99659
  oauth: {
99660
+ featureFlag: "supabaseConnector" /* SupabaseConnector */,
99663
99661
  label: "OAuth (Recommended)",
99664
99662
  helpText: "Sign in with Supabase to grant access.",
99665
99663
  secrets: {
@@ -99747,10 +99745,10 @@ var webflow = {
99747
99745
  environmentMapping: {
99748
99746
  WEBFLOW_TOKEN: "$secrets.WEBFLOW_ACCESS_TOKEN"
99749
99747
  },
99750
- featureFlag: "webflowConnector" /* WebflowConnector */,
99751
99748
  helpText: "Connect your Webflow account to manage sites, pages, CMS collections, and ecommerce",
99752
99749
  authMethods: {
99753
99750
  oauth: {
99751
+ featureFlag: "webflowConnector" /* WebflowConnector */,
99754
99752
  label: "OAuth (Recommended)",
99755
99753
  helpText: "Sign in with Webflow to grant access.",
99756
99754
  secrets: {
@@ -99857,10 +99855,10 @@ var outlookMail = {
99857
99855
  environmentMapping: {
99858
99856
  OUTLOOK_MAIL_TOKEN: "$secrets.OUTLOOK_MAIL_ACCESS_TOKEN"
99859
99857
  },
99860
- featureFlag: "outlookMailConnector" /* OutlookMailConnector */,
99861
99858
  helpText: "Connect your Microsoft Outlook account to send and read emails",
99862
99859
  authMethods: {
99863
99860
  oauth: {
99861
+ featureFlag: "outlookMailConnector" /* OutlookMailConnector */,
99864
99862
  label: "OAuth (Recommended)",
99865
99863
  helpText: "Sign in with Microsoft to grant Outlook Mail access.",
99866
99864
  secrets: {
@@ -99893,10 +99891,10 @@ var outlookCalendar = {
99893
99891
  environmentMapping: {
99894
99892
  OUTLOOK_CALENDAR_TOKEN: "$secrets.OUTLOOK_CALENDAR_ACCESS_TOKEN"
99895
99893
  },
99896
- featureFlag: "outlookCalendarConnector" /* OutlookCalendarConnector */,
99897
99894
  helpText: "Connect your Microsoft account to access and manage Outlook calendar events",
99898
99895
  authMethods: {
99899
99896
  oauth: {
99897
+ featureFlag: "outlookCalendarConnector" /* OutlookCalendarConnector */,
99900
99898
  label: "OAuth (Recommended)",
99901
99899
  helpText: "Sign in with Microsoft to grant Outlook Calendar access.",
99902
99900
  secrets: {
@@ -100005,10 +100003,10 @@ var metaAds = {
100005
100003
  environmentMapping: {
100006
100004
  META_ADS_TOKEN: "$secrets.META_ADS_ACCESS_TOKEN"
100007
100005
  },
100008
- featureFlag: "metaAdsConnector" /* MetaAdsConnector */,
100009
100006
  helpText: "Connect your Meta Ads Manager account to manage ad campaigns, audiences, and insights",
100010
100007
  authMethods: {
100011
100008
  oauth: {
100009
+ featureFlag: "metaAdsConnector" /* MetaAdsConnector */,
100012
100010
  label: "OAuth (Recommended)",
100013
100011
  helpText: "Sign in with Facebook to grant access to Ads Manager.",
100014
100012
  secrets: {
@@ -100038,10 +100036,10 @@ var stripe = {
100038
100036
  environmentMapping: {
100039
100037
  STRIPE_TOKEN: "$secrets.STRIPE_ACCESS_TOKEN"
100040
100038
  },
100041
- featureFlag: "stripeConnector" /* StripeConnector */,
100042
100039
  helpText: "Connect your Stripe account to manage payments, customers, and subscriptions",
100043
100040
  authMethods: {
100044
100041
  oauth: {
100042
+ featureFlag: "stripeConnector" /* StripeConnector */,
100045
100043
  label: "OAuth (Recommended)",
100046
100044
  helpText: "Sign in with Stripe to grant access.",
100047
100045
  secrets: {
@@ -100065,9 +100063,29 @@ var stripe = {
100065
100063
  placeholder: "sk_live_..."
100066
100064
  }
100067
100065
  }
100066
+ },
100067
+ "cli-auth": {
100068
+ featureFlag: "cliAuthStripe" /* CliAuthStripe */,
100069
+ label: "Stripe CLI",
100070
+ helpText: "Sign in with the Stripe CLI to import an API key.",
100071
+ secrets: {}
100068
100072
  }
100069
100073
  },
100070
100074
  defaultAuthMethod: "oauth",
100075
+ cliAuth: {
100076
+ modes: [
100077
+ {
100078
+ value: "test",
100079
+ label: "Test mode",
100080
+ description: "Import a Stripe test mode key."
100081
+ },
100082
+ {
100083
+ value: "live",
100084
+ label: "Live mode",
100085
+ description: "Import a Stripe live mode key."
100086
+ }
100087
+ ]
100088
+ },
100071
100089
  oauth: {
100072
100090
  authorizationUrl: "https://connect.stripe.com/oauth/authorize",
100073
100091
  tokenUrl: "https://connect.stripe.com/oauth/token",
@@ -100313,10 +100331,10 @@ var mailchimp = {
100313
100331
  environmentMapping: {
100314
100332
  MAILCHIMP_TOKEN: "$secrets.MAILCHIMP_ACCESS_TOKEN"
100315
100333
  },
100316
- featureFlag: "mailchimpConnector" /* MailchimpConnector */,
100317
100334
  helpText: "Connect your Mailchimp account to manage audiences, campaigns, templates, and automations",
100318
100335
  authMethods: {
100319
100336
  oauth: {
100337
+ featureFlag: "mailchimpConnector" /* MailchimpConnector */,
100320
100338
  label: "OAuth (Recommended)",
100321
100339
  helpText: "Sign in with Mailchimp to grant access.",
100322
100340
  secrets: {
@@ -100383,7 +100401,6 @@ var resend = {
100383
100401
  environmentMapping: {
100384
100402
  RESEND_TOKEN: "$secrets.RESEND_TOKEN"
100385
100403
  },
100386
- featureFlag: "resendConnector" /* ResendConnector */,
100387
100404
  helpText: "Connect your Resend account to send transactional emails, manage domains, audiences, and contacts",
100388
100405
  authMethods: {
100389
100406
  "api-token": {
@@ -101402,7 +101419,6 @@ var stabilityAi = {
101402
101419
  environmentMapping: {
101403
101420
  STABILITY_TOKEN: "$secrets.STABILITY_TOKEN"
101404
101421
  },
101405
- featureFlag: "stabilityAiConnector" /* StabilityAiConnector */,
101406
101422
  helpText: "Connect your Stability AI account to generate images using Stable Diffusion models",
101407
101423
  authMethods: {
101408
101424
  "api-token": {
@@ -101649,8 +101665,6 @@ init_esm_shims();
101649
101665
  var zapier = {
101650
101666
  zapier: {
101651
101667
  label: "Zapier",
101652
- featureFlag: "zapierConnector" /* ZapierConnector */,
101653
- strictFeatureFlag: true,
101654
101668
  category: "data-automation-infrastructure",
101655
101669
  environmentMapping: {
101656
101670
  ZAPIER_TOKEN: "$secrets.ZAPIER_TOKEN"
@@ -101658,6 +101672,7 @@ var zapier = {
101658
101672
  helpText: "Connect your Zapier account to trigger zaps and use AI Actions (NLA) to automate workflows",
101659
101673
  authMethods: {
101660
101674
  "api-token": {
101675
+ featureFlag: "zapierConnector" /* ZapierConnector */,
101661
101676
  label: "API Key",
101662
101677
  secrets: {
101663
101678
  ZAPIER_TOKEN: {
@@ -102160,10 +102175,10 @@ var spotify = {
102160
102175
  environmentMapping: {
102161
102176
  SPOTIFY_TOKEN: "$secrets.SPOTIFY_ACCESS_TOKEN"
102162
102177
  },
102163
- featureFlag: "spotifyConnector" /* SpotifyConnector */,
102164
102178
  helpText: "Connect your Spotify account to manage playlists, control playback, and access music data",
102165
102179
  authMethods: {
102166
102180
  oauth: {
102181
+ featureFlag: "spotifyConnector" /* SpotifyConnector */,
102167
102182
  label: "OAuth (Recommended)",
102168
102183
  helpText: "Sign in with Spotify to grant access.",
102169
102184
  secrets: {
@@ -102530,7 +102545,6 @@ var freshdesk = {
102530
102545
  FRESHDESK_TOKEN: "$secrets.FRESHDESK_TOKEN",
102531
102546
  FRESHDESK_DOMAIN: "$vars.FRESHDESK_DOMAIN"
102532
102547
  },
102533
- featureFlag: "freshdeskConnector" /* FreshdeskConnector */,
102534
102548
  helpText: "Connect your Freshdesk account to manage support tickets, contacts, companies, agents, and knowledge base articles",
102535
102549
  authMethods: {
102536
102550
  "api-token": {
@@ -102654,13 +102668,13 @@ var testOauth = {
102654
102668
  "test-oauth": {
102655
102669
  label: "Test OAuth (internal)",
102656
102670
  category: "data-automation-infrastructure",
102657
- featureFlag: "testOauthConnector" /* TestOauthConnector */,
102658
102671
  environmentMapping: {
102659
102672
  TEST_OAUTH_TOKEN: "$secrets.TEST_OAUTH_ACCESS_TOKEN"
102660
102673
  },
102661
102674
  helpText: "Synthetic OAuth 2.0 connector served by this app itself. For automated tests only \u2014 not a real third-party service.",
102662
102675
  authMethods: {
102663
102676
  oauth: {
102677
+ featureFlag: "testOauthConnector" /* TestOauthConnector */,
102664
102678
  label: "OAuth",
102665
102679
  helpText: "Test-only OAuth provider. Only reachable in dev/preview.",
102666
102680
  secrets: {
@@ -102750,10 +102764,10 @@ var zoom = {
102750
102764
  environmentMapping: {
102751
102765
  ZOOM_TOKEN: "$secrets.ZOOM_ACCESS_TOKEN"
102752
102766
  },
102753
- featureFlag: "zoomConnector" /* ZoomConnector */,
102754
102767
  helpText: "Connect your Zoom account to schedule meetings, manage cloud recordings, and access webinar and participant data",
102755
102768
  authMethods: {
102756
102769
  oauth: {
102770
+ featureFlag: "zoomConnector" /* ZoomConnector */,
102757
102771
  label: "OAuth (Recommended)",
102758
102772
  helpText: "Sign in with Zoom to grant access.",
102759
102773
  secrets: {
@@ -103641,7 +103655,12 @@ var zeroConnectorAuthorizeContract = c16.router({
103641
103655
  summary: "Start connector OAuth authorization (zero proxy)"
103642
103656
  }
103643
103657
  });
103644
- var connectorSearchAuthMethodSchema = external_exports.enum(["oauth", "api-token", "api"]);
103658
+ var connectorSearchAuthMethodSchema = external_exports.enum([
103659
+ "oauth",
103660
+ "api-token",
103661
+ "api",
103662
+ "cli-auth"
103663
+ ]);
103645
103664
  var connectorSearchItemSchema = external_exports.object({
103646
103665
  id: external_exports.string(),
103647
103666
  label: external_exports.string(),
@@ -104986,6 +105005,9 @@ var firewallAuthResponseSchema = external_exports.object({
104986
105005
  headers: external_exports.record(external_exports.string(), external_exports.string()),
104987
105006
  base: external_exports.string().optional(),
104988
105007
  query: external_exports.record(external_exports.string(), external_exports.string()).optional(),
105008
+ // Effective addon cache expiry as Unix seconds. OAuth token expiry is the
105009
+ // normal source; billable firewall auth can shorten it to force credit
105010
+ // re-authorization. Null means non-expiring only for non-billable auth.
104989
105011
  expiresAt: external_exports.number().nullable(),
104990
105012
  resolvedSecrets: external_exports.array(external_exports.string()),
104991
105013
  refreshedConnectors: external_exports.array(external_exports.string()),
@@ -105008,12 +105030,16 @@ var webhookFirewallAuthContract = c20.router({
105008
105030
  secretConnectorMap: external_exports.record(external_exports.string(), external_exports.string()).optional(),
105009
105031
  secretConnectorMetadataMap: secretConnectorMetadataMapSchema.optional(),
105010
105032
  vars: external_exports.record(external_exports.string(), external_exports.string()).optional(),
105033
+ // Set by mitm from billableFirewalls. Server uses this only to bound
105034
+ // auth cache lifetime by the current credit authorization lease.
105035
+ firewallBillable: external_exports.boolean().optional(),
105011
105036
  forceRefresh: external_exports.boolean().optional()
105012
105037
  }),
105013
105038
  responses: {
105014
105039
  200: firewallAuthResponseSchema,
105015
105040
  400: apiErrorSchema,
105016
105041
  401: apiErrorSchema,
105042
+ 402: apiErrorSchema,
105017
105043
  403: apiErrorSchema,
105018
105044
  424: firewallAuthErrorSchema,
105019
105045
  502: firewallAuthErrorSchema,
@@ -107721,6 +107747,15 @@ import { createWriteStream as createWriteStream4, readFileSync as readFileSync3,
107721
107747
  import { basename as basename2, extname } from "path";
107722
107748
  import { Readable as Readable5 } from "stream";
107723
107749
  import { pipeline as pipeline4 } from "stream/promises";
107750
+ import { setTimeout as delay } from "timers/promises";
107751
+ import { Realtime } from "ably";
107752
+ var BUILT_IN_GENERATION_POLL_INTERVAL_MS = 2e3;
107753
+ var BUILT_IN_GENERATION_WAIT_TIMEOUT_MS_BY_TYPE = {
107754
+ image: 15 * 60 * 1e3,
107755
+ video: 30 * 60 * 1e3,
107756
+ presentation: 60 * 60 * 1e3
107757
+ };
107758
+ var ABLY_CONNECT_TIMEOUT_MS = 1e4;
107724
107759
  var MIME_BY_EXTENSION = {
107725
107760
  ".png": "image/png",
107726
107761
  ".jpg": "image/jpeg",
@@ -107857,6 +107892,229 @@ async function parseErrorBody(response, fallback) {
107857
107892
  }
107858
107893
  return { message, code };
107859
107894
  }
107895
+ function authenticatedJsonHeaders(token) {
107896
+ const headers = {
107897
+ Authorization: `Bearer ${token}`,
107898
+ "Content-Type": "application/json"
107899
+ };
107900
+ const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
107901
+ if (bypassSecret) {
107902
+ headers["x-vercel-protection-bypass"] = bypassSecret;
107903
+ }
107904
+ return headers;
107905
+ }
107906
+ function isRecord(value) {
107907
+ return typeof value === "object" && value !== null && !Array.isArray(value);
107908
+ }
107909
+ function isBuiltInGenerationAcceptedResponse(value) {
107910
+ if (!isRecord(value)) {
107911
+ return false;
107912
+ }
107913
+ return typeof value.generationId === "string" && value.status === "queued" && (value.type === "image" || value.type === "video" || value.type === "presentation") && isRecord(value.realtime);
107914
+ }
107915
+ function createBuiltInGenerationRealtime(accepted) {
107916
+ let nextAuthRequest = accepted.realtime.tokenRequest;
107917
+ const authCallback = (_params, callback) => {
107918
+ const current = nextAuthRequest;
107919
+ nextAuthRequest = accepted.realtime.tokenRequest;
107920
+ callback(null, current);
107921
+ };
107922
+ return new Realtime({
107923
+ authCallback,
107924
+ autoConnect: true,
107925
+ disconnectedRetryTimeout: 5e3,
107926
+ suspendedRetryTimeout: 15e3
107927
+ });
107928
+ }
107929
+ function waitForRealtimeConnected(ably, timeoutMs = ABLY_CONNECT_TIMEOUT_MS) {
107930
+ if (ably.connection.state === "connected") {
107931
+ return Promise.resolve();
107932
+ }
107933
+ if (ably.connection.state === "failed") {
107934
+ return Promise.reject(new Error("Ably connection failed"));
107935
+ }
107936
+ return new Promise((resolve2, reject) => {
107937
+ const timer = setTimeout(() => {
107938
+ reject(new Error("Timed out connecting to Ably"));
107939
+ }, timeoutMs);
107940
+ ably.connection.once("connected", () => {
107941
+ clearTimeout(timer);
107942
+ resolve2();
107943
+ });
107944
+ ably.connection.once("failed", (stateChange) => {
107945
+ clearTimeout(timer);
107946
+ reject(
107947
+ new Error(
107948
+ `Ably connection failed: ${stateChange?.reason?.message ?? "unknown"}`
107949
+ )
107950
+ );
107951
+ });
107952
+ });
107953
+ }
107954
+ async function createBuiltInGenerationNotifier(accepted) {
107955
+ const ably = createBuiltInGenerationRealtime(accepted);
107956
+ try {
107957
+ await waitForRealtimeConnected(ably);
107958
+ const channel4 = ably.channels.get(accepted.realtime.channelName);
107959
+ let pendingEvent = false;
107960
+ let closed = false;
107961
+ let wake = null;
107962
+ const wakeWaiter = () => {
107963
+ const current = wake;
107964
+ wake = null;
107965
+ current?.();
107966
+ };
107967
+ const onMessage = (_message) => {
107968
+ if (wake) {
107969
+ wakeWaiter();
107970
+ return;
107971
+ }
107972
+ pendingEvent = true;
107973
+ };
107974
+ await channel4.subscribe(accepted.realtime.eventName, onMessage);
107975
+ return {
107976
+ wait(timeoutMs) {
107977
+ if (pendingEvent || closed || timeoutMs <= 0) {
107978
+ pendingEvent = false;
107979
+ return Promise.resolve();
107980
+ }
107981
+ return new Promise((resolve2) => {
107982
+ function done() {
107983
+ clearTimeout(timer);
107984
+ if (wake === done) {
107985
+ wake = null;
107986
+ }
107987
+ resolve2();
107988
+ }
107989
+ const timer = setTimeout(done, timeoutMs);
107990
+ wake = done;
107991
+ });
107992
+ },
107993
+ close() {
107994
+ if (closed) {
107995
+ return;
107996
+ }
107997
+ closed = true;
107998
+ channel4.unsubscribe(accepted.realtime.eventName, onMessage);
107999
+ wakeWaiter();
108000
+ ably.close();
108001
+ }
108002
+ };
108003
+ } catch {
108004
+ ably.close();
108005
+ return null;
108006
+ }
108007
+ }
108008
+ async function getBuiltInGenerationStatus(baseUrl, token, generationId) {
108009
+ const response = await fetch(
108010
+ new URL(`/api/zero/built-in-generations/${generationId}`, baseUrl),
108011
+ { headers: authenticatedJsonHeaders(token) }
108012
+ );
108013
+ if (!response.ok) {
108014
+ const { message, code } = await parseErrorBody(
108015
+ response,
108016
+ "Failed to get generation status"
108017
+ );
108018
+ throw new ApiRequestError(message, code, response.status);
108019
+ }
108020
+ return await response.json();
108021
+ }
108022
+ function readBuiltInGenerationResult(status, fallback) {
108023
+ if (status.status === "completed") {
108024
+ if (!status.result) {
108025
+ throw new ApiRequestError(
108026
+ `${fallback} returned no result`,
108027
+ "EMPTY_RESULT",
108028
+ 502
108029
+ );
108030
+ }
108031
+ return status.result;
108032
+ }
108033
+ if (status.status === "failed") {
108034
+ const code = status.error?.code ?? "GENERATION_FAILED";
108035
+ throw new ApiRequestError(
108036
+ status.error?.message ?? `${fallback} failed`,
108037
+ code,
108038
+ statusForBuiltInGenerationError(code)
108039
+ );
108040
+ }
108041
+ return void 0;
108042
+ }
108043
+ function statusForBuiltInGenerationError(code) {
108044
+ if (code === "BAD_REQUEST") {
108045
+ return 400;
108046
+ }
108047
+ if (code === "INSUFFICIENT_CREDITS") {
108048
+ return 402;
108049
+ }
108050
+ if (code === "NOT_CONFIGURED") {
108051
+ return 503;
108052
+ }
108053
+ if (code === "GENERATION_TIMEOUT") {
108054
+ return 504;
108055
+ }
108056
+ if (code.startsWith("NO_") || code.endsWith("_FAILED")) {
108057
+ return 502;
108058
+ }
108059
+ return 500;
108060
+ }
108061
+ async function waitForBuiltInGenerationResult(args) {
108062
+ let notifier = null;
108063
+ let notifierCreated = false;
108064
+ const startedAt = Date.now();
108065
+ const timeoutMs = BUILT_IN_GENERATION_WAIT_TIMEOUT_MS_BY_TYPE[args.accepted.type];
108066
+ try {
108067
+ while (Date.now() - startedAt < timeoutMs) {
108068
+ const status = await getBuiltInGenerationStatus(
108069
+ args.baseUrl,
108070
+ args.token,
108071
+ args.accepted.generationId
108072
+ );
108073
+ const result = readBuiltInGenerationResult(status, args.fallback);
108074
+ if (result) {
108075
+ return result;
108076
+ }
108077
+ const elapsed = Date.now() - startedAt;
108078
+ const remaining = timeoutMs - elapsed;
108079
+ const waitMs = Math.min(BUILT_IN_GENERATION_POLL_INTERVAL_MS, remaining);
108080
+ if (!notifierCreated) {
108081
+ notifier = await createBuiltInGenerationNotifier(args.accepted);
108082
+ notifierCreated = true;
108083
+ }
108084
+ if (notifier) {
108085
+ await notifier.wait(waitMs);
108086
+ } else {
108087
+ await delay(waitMs);
108088
+ }
108089
+ }
108090
+ } finally {
108091
+ notifier?.close();
108092
+ }
108093
+ throw new ApiRequestError(
108094
+ `${args.fallback} timed out (generationId: ${args.accepted.generationId})`,
108095
+ "GENERATION_TIMEOUT",
108096
+ 504
108097
+ );
108098
+ }
108099
+ async function readBuiltInGenerationResponse(args) {
108100
+ const body = await args.response.json();
108101
+ if (isBuiltInGenerationAcceptedResponse(body)) {
108102
+ return waitForBuiltInGenerationResult({
108103
+ accepted: body,
108104
+ baseUrl: args.baseUrl,
108105
+ token: args.token,
108106
+ fallback: args.fallback
108107
+ });
108108
+ }
108109
+ if (args.response.status === 202) {
108110
+ throw new ApiRequestError(
108111
+ `${args.fallback} returned an invalid generation response`,
108112
+ "INVALID_GENERATION_RESPONSE",
108113
+ 502
108114
+ );
108115
+ }
108116
+ return body;
108117
+ }
107860
108118
  async function uploadWebFile(localPath, options) {
107861
108119
  const stats = statSync(localPath);
107862
108120
  if (!stats.isFile()) {
@@ -108006,7 +108264,12 @@ async function generateWebImage(options) {
108006
108264
  );
108007
108265
  throw new ApiRequestError(message, code, response.status);
108008
108266
  }
108009
- return await response.json();
108267
+ return readBuiltInGenerationResponse({
108268
+ response,
108269
+ baseUrl,
108270
+ token,
108271
+ fallback: "Failed to generate image"
108272
+ });
108010
108273
  }
108011
108274
  async function generateWebVideo(options) {
108012
108275
  const baseUrl = await getBaseUrl();
@@ -108048,7 +108311,12 @@ async function generateWebVideo(options) {
108048
108311
  );
108049
108312
  throw new ApiRequestError(message, code, response.status);
108050
108313
  }
108051
- return await response.json();
108314
+ return readBuiltInGenerationResponse({
108315
+ response,
108316
+ baseUrl,
108317
+ token,
108318
+ fallback: "Failed to generate video"
108319
+ });
108052
108320
  }
108053
108321
  async function generateWebPresentation(options) {
108054
108322
  const baseUrl = await getBaseUrl();
@@ -108074,6 +108342,7 @@ async function generateWebPresentation(options) {
108074
108342
  ...options.style ? { style: options.style } : {},
108075
108343
  ...options.slideCount !== void 0 ? { slideCount: options.slideCount } : {},
108076
108344
  ...options.imageCount !== void 0 ? { imageCount: options.imageCount } : {},
108345
+ ...options.imageModel ? { imageModel: options.imageModel } : {},
108077
108346
  ...options.theme ? { theme: options.theme } : {},
108078
108347
  ...options.audience ? { audience: options.audience } : {},
108079
108348
  ...options.title ? { title: options.title } : {}
@@ -108087,7 +108356,12 @@ async function generateWebPresentation(options) {
108087
108356
  );
108088
108357
  throw new ApiRequestError(message, code, response.status);
108089
108358
  }
108090
- return await response.json();
108359
+ return readBuiltInGenerationResponse({
108360
+ response,
108361
+ baseUrl,
108362
+ token,
108363
+ fallback: "Failed to generate presentation"
108364
+ });
108091
108365
  }
108092
108366
 
108093
108367
  // src/lib/api/domains/zero-host.ts
@@ -108410,7 +108684,7 @@ async function executeRemoteAgentBackend(params) {
108410
108684
  // src/commands/zero/remote-agent/host.ts
108411
108685
  var HEARTBEAT_INTERVAL_MS = 3e4;
108412
108686
  var JOB_POLL_INTERVAL_MS = 2e3;
108413
- var ABLY_CONNECT_TIMEOUT_MS = 1e4;
108687
+ var ABLY_CONNECT_TIMEOUT_MS2 = 1e4;
108414
108688
  var NEW_HOST_SELECTION = "__new__";
108415
108689
  function sleep(ms) {
108416
108690
  return new Promise((resolve2) => {
@@ -108441,14 +108715,14 @@ function createHostRealtime(hostToken, initialSubscription) {
108441
108715
  }
108442
108716
  );
108443
108717
  };
108444
- return new Realtime({
108718
+ return new Realtime2({
108445
108719
  authCallback,
108446
108720
  autoConnect: true,
108447
108721
  disconnectedRetryTimeout: 5e3,
108448
108722
  suspendedRetryTimeout: 15e3
108449
108723
  });
108450
108724
  }
108451
- function waitForRealtimeConnected(ably, timeoutMs = ABLY_CONNECT_TIMEOUT_MS) {
108725
+ function waitForRealtimeConnected2(ably, timeoutMs = ABLY_CONNECT_TIMEOUT_MS2) {
108452
108726
  if (ably.connection.state === "connected") {
108453
108727
  return Promise.resolve();
108454
108728
  }
@@ -108479,7 +108753,7 @@ async function createRemoteAgentJobNotifier(hostToken) {
108479
108753
  });
108480
108754
  const ably = createHostRealtime(hostToken, subscription);
108481
108755
  try {
108482
- await waitForRealtimeConnected(ably);
108756
+ await waitForRealtimeConnected2(ably);
108483
108757
  const channel4 = ably.channels.get(subscription.channelName);
108484
108758
  let pendingEvent = false;
108485
108759
  let closed = false;
@@ -125232,7 +125506,67 @@ var pushSubscriptionsContract = c88.router({
125232
125506
 
125233
125507
  // ../../packages/api-contracts/src/contracts/zero-image-io-generate.ts
125234
125508
  init_esm_shims();
125509
+
125510
+ // ../../packages/api-contracts/src/contracts/zero-built-in-generation.ts
125511
+ init_esm_shims();
125235
125512
  var c89 = initContract();
125513
+ var zeroBuiltInGenerationTypeSchema = external_exports.enum([
125514
+ "image",
125515
+ "video",
125516
+ "presentation"
125517
+ ]);
125518
+ var zeroBuiltInGenerationStatusSchema = external_exports.enum([
125519
+ "queued",
125520
+ "running",
125521
+ "completed",
125522
+ "failed"
125523
+ ]);
125524
+ var zeroBuiltInGenerationRealtimeSubscriptionSchema = external_exports.object({
125525
+ channelName: external_exports.string(),
125526
+ eventName: external_exports.string(),
125527
+ tokenRequest: ablyTokenRequestSchema
125528
+ });
125529
+ var zeroBuiltInGenerationAcceptedResponseSchema = external_exports.object({
125530
+ generationId: external_exports.string().uuid(),
125531
+ type: zeroBuiltInGenerationTypeSchema,
125532
+ status: external_exports.literal("queued"),
125533
+ realtime: zeroBuiltInGenerationRealtimeSubscriptionSchema
125534
+ });
125535
+ var zeroBuiltInGenerationErrorSchema = external_exports.object({
125536
+ message: external_exports.string(),
125537
+ code: external_exports.string()
125538
+ });
125539
+ var zeroBuiltInGenerationResponseSchema = external_exports.object({
125540
+ generationId: external_exports.string().uuid(),
125541
+ type: zeroBuiltInGenerationTypeSchema,
125542
+ status: zeroBuiltInGenerationStatusSchema,
125543
+ result: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
125544
+ error: zeroBuiltInGenerationErrorSchema.optional(),
125545
+ createdAt: external_exports.string(),
125546
+ startedAt: external_exports.string().nullable(),
125547
+ completedAt: external_exports.string().nullable()
125548
+ });
125549
+ var zeroBuiltInGenerationContract = c89.router({
125550
+ get: {
125551
+ method: "GET",
125552
+ path: "/api/zero/built-in-generations/:generationId",
125553
+ headers: authHeadersSchema,
125554
+ pathParams: external_exports.object({
125555
+ generationId: external_exports.string().uuid()
125556
+ }),
125557
+ responses: {
125558
+ 200: zeroBuiltInGenerationResponseSchema,
125559
+ 401: apiErrorSchema,
125560
+ 403: apiErrorSchema,
125561
+ 404: apiErrorSchema,
125562
+ 500: apiErrorSchema
125563
+ },
125564
+ summary: "Get a built-in generation job"
125565
+ }
125566
+ });
125567
+
125568
+ // ../../packages/api-contracts/src/contracts/zero-image-io-generate.ts
125569
+ var c90 = initContract();
125236
125570
  var zeroImageIoGenerateRequestSchema = external_exports.object({
125237
125571
  prompt: external_exports.unknown().optional(),
125238
125572
  model: external_exports.unknown().optional(),
@@ -125275,7 +125609,7 @@ var zeroImageIoGenerateResponseSchema = external_exports.object({
125275
125609
  sourceUrl: external_exports.string().optional(),
125276
125610
  seed: external_exports.number().optional()
125277
125611
  });
125278
- var zeroImageIoGenerateContract = c89.router({
125612
+ var zeroImageIoGenerateContract = c90.router({
125279
125613
  post: {
125280
125614
  method: "POST",
125281
125615
  path: "/api/zero/image-io/generate",
@@ -125283,6 +125617,7 @@ var zeroImageIoGenerateContract = c89.router({
125283
125617
  body: zeroImageIoGenerateRequestSchema,
125284
125618
  responses: {
125285
125619
  200: zeroImageIoGenerateResponseSchema,
125620
+ 202: zeroBuiltInGenerationAcceptedResponseSchema,
125286
125621
  400: apiErrorSchema,
125287
125622
  401: apiErrorSchema,
125288
125623
  402: apiErrorSchema,
@@ -125297,7 +125632,7 @@ var zeroImageIoGenerateContract = c89.router({
125297
125632
 
125298
125633
  // ../../packages/api-contracts/src/contracts/zero-video-io-generate.ts
125299
125634
  init_esm_shims();
125300
- var c90 = initContract();
125635
+ var c91 = initContract();
125301
125636
  var zeroVideoIoGenerateRequestSchema = external_exports.object({
125302
125637
  prompt: external_exports.unknown().optional(),
125303
125638
  model: external_exports.unknown().optional(),
@@ -125326,7 +125661,7 @@ var zeroVideoIoGenerateResponseSchema = external_exports.object({
125326
125661
  sourceUrl: external_exports.string(),
125327
125662
  requestId: external_exports.string().optional()
125328
125663
  });
125329
- var zeroVideoIoGenerateContract = c90.router({
125664
+ var zeroVideoIoGenerateContract = c91.router({
125330
125665
  post: {
125331
125666
  method: "POST",
125332
125667
  path: "/api/zero/video-io/generate",
@@ -125334,6 +125669,7 @@ var zeroVideoIoGenerateContract = c90.router({
125334
125669
  body: zeroVideoIoGenerateRequestSchema,
125335
125670
  responses: {
125336
125671
  200: zeroVideoIoGenerateResponseSchema,
125672
+ 202: zeroBuiltInGenerationAcceptedResponseSchema,
125337
125673
  400: apiErrorSchema,
125338
125674
  401: apiErrorSchema,
125339
125675
  402: apiErrorSchema,
@@ -125349,12 +125685,13 @@ var zeroVideoIoGenerateContract = c90.router({
125349
125685
 
125350
125686
  // ../../packages/api-contracts/src/contracts/zero-presentation-io-generate.ts
125351
125687
  init_esm_shims();
125352
- var c91 = initContract();
125688
+ var c92 = initContract();
125353
125689
  var zeroPresentationIoGenerateRequestSchema = external_exports.object({
125354
125690
  prompt: external_exports.unknown().optional(),
125355
125691
  style: external_exports.unknown().optional(),
125356
125692
  slideCount: external_exports.unknown().optional(),
125357
125693
  imageCount: external_exports.unknown().optional(),
125694
+ imageModel: external_exports.unknown().optional(),
125358
125695
  theme: external_exports.unknown().optional(),
125359
125696
  audience: external_exports.unknown().optional(),
125360
125697
  title: external_exports.unknown().optional()
@@ -125376,6 +125713,7 @@ var zeroPresentationIoGenerateResponseSchema = external_exports.object({
125376
125713
  theme: external_exports.string(),
125377
125714
  slideCount: external_exports.number(),
125378
125715
  imageCount: external_exports.number(),
125716
+ imageModel: external_exports.string(),
125379
125717
  imageUrls: external_exports.array(external_exports.string()),
125380
125718
  imageCreditsCharged: external_exports.number(),
125381
125719
  textCreditsCharged: external_exports.number(),
@@ -125383,7 +125721,7 @@ var zeroPresentationIoGenerateResponseSchema = external_exports.object({
125383
125721
  responseId: external_exports.string().optional(),
125384
125722
  usage: zeroPresentationIoUsageSchema
125385
125723
  });
125386
- var zeroPresentationIoGenerateContract = c91.router({
125724
+ var zeroPresentationIoGenerateContract = c92.router({
125387
125725
  post: {
125388
125726
  method: "POST",
125389
125727
  path: "/api/zero/presentation-io/generate",
@@ -125391,6 +125729,7 @@ var zeroPresentationIoGenerateContract = c91.router({
125391
125729
  body: zeroPresentationIoGenerateRequestSchema,
125392
125730
  responses: {
125393
125731
  200: zeroPresentationIoGenerateResponseSchema,
125732
+ 202: zeroBuiltInGenerationAcceptedResponseSchema,
125394
125733
  400: apiErrorSchema,
125395
125734
  401: apiErrorSchema,
125396
125735
  402: apiErrorSchema,
@@ -125405,8 +125744,8 @@ var zeroPresentationIoGenerateContract = c91.router({
125405
125744
 
125406
125745
  // ../../packages/api-contracts/src/contracts/internal-callbacks-agent.ts
125407
125746
  init_esm_shims();
125408
- var c92 = initContract();
125409
- var internalCallbacksAgentContract = c92.router({
125747
+ var c93 = initContract();
125748
+ var internalCallbacksAgentContract = c93.router({
125410
125749
  post: {
125411
125750
  method: "POST",
125412
125751
  path: "/api/internal/callbacks/agent",
@@ -125424,7 +125763,7 @@ var internalCallbacksAgentContract = c92.router({
125424
125763
 
125425
125764
  // ../../packages/api-contracts/src/contracts/internal-callbacks-github-issues.ts
125426
125765
  init_esm_shims();
125427
- var c93 = initContract();
125766
+ var c94 = initContract();
125428
125767
  var githubIssuesCallbackPayloadSchema = external_exports.object({
125429
125768
  installationId: external_exports.string(),
125430
125769
  repo: external_exports.string(),
@@ -125435,7 +125774,7 @@ var githubIssuesCallbackPayloadSchema = external_exports.object({
125435
125774
  triggerReactionId: external_exports.string().optional(),
125436
125775
  triggerCommentBody: external_exports.string().optional()
125437
125776
  }).passthrough();
125438
- var internalCallbacksGithubIssuesContract = c93.router({
125777
+ var internalCallbacksGithubIssuesContract = c94.router({
125439
125778
  post: {
125440
125779
  method: "POST",
125441
125780
  path: "/api/internal/callbacks/github/issues",
@@ -125456,7 +125795,7 @@ var internalCallbacksGithubIssuesContract = c93.router({
125456
125795
 
125457
125796
  // ../../packages/api-contracts/src/contracts/internal-callbacks-schedule.ts
125458
125797
  init_esm_shims();
125459
- var c94 = initContract();
125798
+ var c95 = initContract();
125460
125799
  var scheduleLoopCallbackPayloadSchema = external_exports.object({
125461
125800
  scheduleId: external_exports.string()
125462
125801
  }).passthrough();
@@ -125464,7 +125803,7 @@ var scheduleCronCallbackPayloadSchema = scheduleLoopCallbackPayloadSchema.extend
125464
125803
  timezone: external_exports.string(),
125465
125804
  cronExpression: external_exports.string().optional()
125466
125805
  }).passthrough();
125467
- var internalCallbacksScheduleContract = c94.router({
125806
+ var internalCallbacksScheduleContract = c95.router({
125468
125807
  cron: {
125469
125808
  method: "POST",
125470
125809
  path: "/api/internal/callbacks/schedule/cron",
@@ -125499,13 +125838,13 @@ var internalCallbacksScheduleContract = c94.router({
125499
125838
 
125500
125839
  // ../../packages/api-contracts/src/contracts/zero-voice-io-quota.ts
125501
125840
  init_esm_shims();
125502
- var c95 = initContract();
125841
+ var c96 = initContract();
125503
125842
  var audioInputQuotaResponseSchema = external_exports.object({
125504
125843
  allowed: external_exports.boolean(),
125505
125844
  count: external_exports.number().int().nonnegative(),
125506
125845
  limit: external_exports.number().int().positive().nullable()
125507
125846
  });
125508
- var zeroVoiceIoQuotaContract = c95.router({
125847
+ var zeroVoiceIoQuotaContract = c96.router({
125509
125848
  get: {
125510
125849
  method: "GET",
125511
125850
  path: "/api/zero/voice-io/quota",
@@ -125521,7 +125860,7 @@ var zeroVoiceIoQuotaContract = c95.router({
125521
125860
 
125522
125861
  // ../../packages/api-contracts/src/contracts/zero-voice-io-speech.ts
125523
125862
  init_esm_shims();
125524
- var c96 = initContract();
125863
+ var c97 = initContract();
125525
125864
  var zeroVoiceIoSpeechRequestSchema = external_exports.object({
125526
125865
  text: external_exports.unknown().optional(),
125527
125866
  voice: external_exports.unknown().optional(),
@@ -125538,7 +125877,7 @@ var zeroVoiceIoSpeechResponseSchema = external_exports.object({
125538
125877
  model: external_exports.string(),
125539
125878
  voice: external_exports.string()
125540
125879
  });
125541
- var zeroVoiceIoSpeechContract = c96.router({
125880
+ var zeroVoiceIoSpeechContract = c97.router({
125542
125881
  post: {
125543
125882
  method: "POST",
125544
125883
  path: "/api/zero/voice-io/speech",
@@ -125560,7 +125899,7 @@ var zeroVoiceIoSpeechContract = c96.router({
125560
125899
 
125561
125900
  // ../../packages/api-contracts/src/contracts/zero-voice-io-stt.ts
125562
125901
  init_esm_shims();
125563
- var c97 = initContract();
125902
+ var c98 = initContract();
125564
125903
  var zeroVoiceIoSttResponseSchema = external_exports.object({
125565
125904
  text: external_exports.string()
125566
125905
  });
@@ -125570,13 +125909,13 @@ var zeroVoiceIoSttQuotaErrorSchema = apiErrorSchema.extend({
125570
125909
  limit: external_exports.number().nullable()
125571
125910
  }).optional()
125572
125911
  });
125573
- var zeroVoiceIoSttContract = c97.router({
125912
+ var zeroVoiceIoSttContract = c98.router({
125574
125913
  post: {
125575
125914
  method: "POST",
125576
125915
  path: "/api/zero/voice-io/stt",
125577
125916
  headers: authHeadersSchema,
125578
125917
  contentType: "multipart/form-data",
125579
- body: c97.type(),
125918
+ body: c98.type(),
125580
125919
  responses: {
125581
125920
  200: zeroVoiceIoSttResponseSchema,
125582
125921
  400: apiErrorSchema,
@@ -125592,18 +125931,18 @@ var zeroVoiceIoSttContract = c97.router({
125592
125931
 
125593
125932
  // ../../packages/api-contracts/src/contracts/zero-voice-io-tts.ts
125594
125933
  init_esm_shims();
125595
- var c98 = initContract();
125934
+ var c99 = initContract();
125596
125935
  var zeroVoiceIoTtsRequestSchema = external_exports.object({
125597
125936
  text: external_exports.unknown().optional()
125598
125937
  }).passthrough();
125599
- var zeroVoiceIoTtsContract = c98.router({
125938
+ var zeroVoiceIoTtsContract = c99.router({
125600
125939
  post: {
125601
125940
  method: "POST",
125602
125941
  path: "/api/zero/voice-io/tts",
125603
125942
  headers: authHeadersSchema,
125604
125943
  body: zeroVoiceIoTtsRequestSchema,
125605
125944
  responses: {
125606
- 200: c98.otherResponse({
125945
+ 200: c99.otherResponse({
125607
125946
  contentType: "application/octet-stream",
125608
125947
  body: external_exports.unknown()
125609
125948
  }),
@@ -125618,7 +125957,7 @@ var zeroVoiceIoTtsContract = c98.router({
125618
125957
 
125619
125958
  // ../../packages/api-contracts/src/contracts/zero-voice-chat.ts
125620
125959
  init_esm_shims();
125621
- var c99 = initContract();
125960
+ var c100 = initContract();
125622
125961
  var voiceChatItemRoleSchema = external_exports.enum([
125623
125962
  "user",
125624
125963
  "assistant",
@@ -125715,7 +126054,7 @@ var sessionEndedBodySchema = external_exports.object({
125715
126054
  relaySessionId: external_exports.uuid()
125716
126055
  });
125717
126056
  var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
125718
- var zeroVoiceChatContract = c99.router({
126057
+ var zeroVoiceChatContract = c100.router({
125719
126058
  createSession: {
125720
126059
  method: "POST",
125721
126060
  path: "/api/zero/voice-chat",
@@ -125890,7 +126229,7 @@ var zeroVoiceChatContract = c99.router({
125890
126229
 
125891
126230
  // ../../packages/api-contracts/src/contracts/zero-uploads.ts
125892
126231
  init_esm_shims();
125893
- var c100 = initContract();
126232
+ var c101 = initContract();
125894
126233
  var prepareRequestSchema = external_exports.object({
125895
126234
  filename: external_exports.string().min(1).max(255),
125896
126235
  contentType: external_exports.string().min(1).max(200),
@@ -125917,7 +126256,7 @@ var completeResponseSchema = external_exports.object({
125917
126256
  size: external_exports.number(),
125918
126257
  url: external_exports.string().url()
125919
126258
  });
125920
- var zeroUploadsContract = c100.router({
126259
+ var zeroUploadsContract = c101.router({
125921
126260
  prepare: {
125922
126261
  method: "POST",
125923
126262
  path: "/api/zero/uploads/prepare",
@@ -125951,7 +126290,7 @@ var zeroUploadsContract = c100.router({
125951
126290
 
125952
126291
  // ../../packages/api-contracts/src/contracts/zero-host.ts
125953
126292
  init_esm_shims();
125954
- var c101 = initContract();
126293
+ var c102 = initContract();
125955
126294
  var hostedSiteSlugSchema = external_exports.string().trim().min(3).max(63).regex(
125956
126295
  /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,
125957
126296
  "Site slug must use lowercase letters, numbers, and hyphens, and must start and end with a letter or number"
@@ -125986,7 +126325,7 @@ var hostedSiteCompleteResponseSchema = external_exports.object({
125986
126325
  url: external_exports.string().url(),
125987
126326
  status: external_exports.literal("ready")
125988
126327
  });
125989
- var zeroHostContract = c101.router({
126328
+ var zeroHostContract = c102.router({
125990
126329
  prepare: {
125991
126330
  method: "POST",
125992
126331
  path: "/api/zero/host/deployments/prepare",
@@ -126025,7 +126364,7 @@ var zeroHostContract = c101.router({
126025
126364
 
126026
126365
  // ../../packages/api-contracts/src/contracts/zero-integrations-telegram.ts
126027
126366
  init_esm_shims();
126028
- var c102 = initContract();
126367
+ var c103 = initContract();
126029
126368
  var telegramEnvironmentSchema = external_exports.object({
126030
126369
  requiredSecrets: external_exports.array(external_exports.string()),
126031
126370
  requiredVars: external_exports.array(external_exports.string()),
@@ -126124,7 +126463,7 @@ var telegramSetupStatusSchema = external_exports.object({
126124
126463
  var telegramWebhookPathParamsSchema = external_exports.object({
126125
126464
  telegramBotId: external_exports.string().min(1)
126126
126465
  });
126127
- var zeroIntegrationsTelegramContract = c102.router({
126466
+ var zeroIntegrationsTelegramContract = c103.router({
126128
126467
  list: {
126129
126468
  method: "GET",
126130
126469
  path: "/api/integrations/telegram",
@@ -126167,9 +126506,9 @@ var zeroIntegrationsTelegramContract = c102.router({
126167
126506
  path: "/api/integrations/telegram/:botId",
126168
126507
  headers: authHeadersSchema,
126169
126508
  pathParams: external_exports.object({ botId: external_exports.string().min(1) }),
126170
- body: c102.noBody(),
126509
+ body: c103.noBody(),
126171
126510
  responses: {
126172
- 204: c102.noBody(),
126511
+ 204: c103.noBody(),
126173
126512
  401: apiErrorSchema,
126174
126513
  403: apiErrorSchema,
126175
126514
  404: apiErrorSchema
@@ -126180,10 +126519,10 @@ var zeroIntegrationsTelegramContract = c102.router({
126180
126519
  method: "DELETE",
126181
126520
  path: "/api/integrations/telegram/link",
126182
126521
  headers: authHeadersSchema,
126183
- body: c102.noBody(),
126522
+ body: c103.noBody(),
126184
126523
  query: external_exports.object({ botId: external_exports.string().optional() }),
126185
126524
  responses: {
126186
- 204: c102.noBody(),
126525
+ 204: c103.noBody(),
126187
126526
  401: apiErrorSchema,
126188
126527
  404: apiErrorSchema
126189
126528
  },
@@ -126214,7 +126553,7 @@ var zeroIntegrationsTelegramContract = c102.router({
126214
126553
  sig: external_exports.string().optional()
126215
126554
  }),
126216
126555
  responses: {
126217
- 200: c102.otherResponse({
126556
+ 200: c103.otherResponse({
126218
126557
  contentType: "application/octet-stream",
126219
126558
  body: external_exports.unknown()
126220
126559
  }),
@@ -126229,7 +126568,7 @@ var zeroIntegrationsTelegramContract = c102.router({
126229
126568
  method: "GET",
126230
126569
  path: "/api/integrations/telegram/auth-callback",
126231
126570
  responses: {
126232
- 200: c102.otherResponse({
126571
+ 200: c103.otherResponse({
126233
126572
  contentType: "text/html",
126234
126573
  body: external_exports.unknown()
126235
126574
  })
@@ -126288,19 +126627,19 @@ var zeroIntegrationsTelegramContract = c102.router({
126288
126627
  pathParams: telegramWebhookPathParamsSchema,
126289
126628
  body: external_exports.unknown(),
126290
126629
  responses: {
126291
- 200: c102.otherResponse({
126630
+ 200: c103.otherResponse({
126292
126631
  contentType: "text/plain",
126293
126632
  body: external_exports.string()
126294
126633
  }),
126295
- 400: c102.otherResponse({
126634
+ 400: c103.otherResponse({
126296
126635
  contentType: "text/plain",
126297
126636
  body: external_exports.string()
126298
126637
  }),
126299
- 401: c102.otherResponse({
126638
+ 401: c103.otherResponse({
126300
126639
  contentType: "text/plain",
126301
126640
  body: external_exports.string()
126302
126641
  }),
126303
- 404: c102.otherResponse({
126642
+ 404: c103.otherResponse({
126304
126643
  contentType: "text/plain",
126305
126644
  body: external_exports.string()
126306
126645
  })
@@ -126311,7 +126650,7 @@ var zeroIntegrationsTelegramContract = c102.router({
126311
126650
 
126312
126651
  // ../../packages/api-contracts/src/contracts/zero-integrations-agentphone.ts
126313
126652
  init_esm_shims();
126314
- var c103 = initContract();
126653
+ var c104 = initContract();
126315
126654
  var agentPhoneConnectBodySchema = external_exports.object({
126316
126655
  phoneHandle: external_exports.string().min(1),
126317
126656
  agentphoneAgentId: external_exports.string().min(1),
@@ -126348,7 +126687,7 @@ var agentPhoneStartLinkResponseSchema = external_exports.object({
126348
126687
  phoneHandle: external_exports.string(),
126349
126688
  verificationSent: external_exports.literal(true)
126350
126689
  });
126351
- var zeroIntegrationsAgentPhoneContract = c103.router({
126690
+ var zeroIntegrationsAgentPhoneContract = c104.router({
126352
126691
  connectAgentPhone: {
126353
126692
  method: "POST",
126354
126693
  path: "/api/agentphone/connect",
@@ -126366,7 +126705,7 @@ var zeroIntegrationsAgentPhoneContract = c103.router({
126366
126705
  method: "POST",
126367
126706
  path: "/api/agentphone/webhook",
126368
126707
  headers: agentPhoneWebhookHeadersSchema,
126369
- body: c103.type(),
126708
+ body: c104.type(),
126370
126709
  responses: {
126371
126710
  200: external_exports.string(),
126372
126711
  400: external_exports.string(),
@@ -126406,9 +126745,9 @@ var zeroIntegrationsAgentPhoneContract = c103.router({
126406
126745
  method: "DELETE",
126407
126746
  path: "/api/integrations/agentphone/link",
126408
126747
  headers: authHeadersSchema,
126409
- body: c103.noBody(),
126748
+ body: c104.noBody(),
126410
126749
  responses: {
126411
- 204: c103.noBody(),
126750
+ 204: c104.noBody(),
126412
126751
  401: apiErrorSchema,
126413
126752
  403: apiErrorSchema,
126414
126753
  404: apiErrorSchema
@@ -126622,17 +126961,10 @@ var FEATURE_SWITCHES = {
126622
126961
  description: "Enable the Stripe payment connector integration",
126623
126962
  enabled: false
126624
126963
  },
126625
- ["cliAuth" /* CliAuth */]: {
126626
- maintainer: "liangyou@vm0.ai",
126627
- description: "Gate CLI-based connector auth UI and API surfaces. Rollout control only; credential routes still require normal auth and ownership checks.",
126628
- enabled: false,
126629
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
126630
- },
126631
126964
  ["cliAuthStripe" /* CliAuthStripe */]: {
126632
126965
  maintainer: "liangyou@vm0.ai",
126633
- description: "Gate Stripe-specific CLI auth UI and API surfaces. CLI auth for Stripe consumers should also require CliAuth.",
126634
- enabled: false,
126635
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
126966
+ description: "Gate Stripe-specific CLI auth UI and API surfaces.",
126967
+ enabled: false
126636
126968
  },
126637
126969
  ["posthogConnector" /* PosthogConnector */]: {
126638
126970
  maintainer: "ethan@vm0.ai",
@@ -127164,9 +127496,9 @@ var CodexEventParser = class {
127164
127496
  if (!item.changes || item.changes.length === 0) {
127165
127497
  return null;
127166
127498
  }
127167
- const changes = item.changes.map((c104) => {
127168
- const action = c104.kind === "add" ? "Created" : c104.kind === "modify" ? "Modified" : "Deleted";
127169
- return `${action}: ${c104.path}`;
127499
+ const changes = item.changes.map((c105) => {
127500
+ const action = c105.kind === "add" ? "Created" : c105.kind === "modify" ? "Modified" : "Deleted";
127501
+ return `${action}: ${c105.path}`;
127170
127502
  }).join("\n");
127171
127503
  return {
127172
127504
  type: "text",
@@ -128351,4 +128683,4 @@ undici/lib/web/fetch/body.js:
128351
128683
  undici/lib/web/websocket/frame.js:
128352
128684
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
128353
128685
  */
128354
- //# sourceMappingURL=chunk-7B5CZ4YO.js.map
128686
+ //# sourceMappingURL=chunk-L3DXJXOV.js.map