@vm0/cli 9.119.2 → 9.119.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4622,8 +4622,8 @@ var require_browser = __commonJS({
4622
4622
  if (!this.useColors) {
4623
4623
  return;
4624
4624
  }
4625
- const c49 = "color: " + this.color;
4626
- args.splice(1, 0, c49, "color: inherit");
4625
+ const c50 = "color: " + this.color;
4626
+ args.splice(1, 0, c50, "color: inherit");
4627
4627
  let index = 0;
4628
4628
  let lastC = 0;
4629
4629
  args[0].replace(/%[a-zA-Z%]/g, (match) => {
@@ -4635,7 +4635,7 @@ var require_browser = __commonJS({
4635
4635
  lastC = index;
4636
4636
  }
4637
4637
  });
4638
- args.splice(lastC, 0, c49);
4638
+ args.splice(lastC, 0, c50);
4639
4639
  }
4640
4640
  exports.log = console.debug || console.log || (() => {
4641
4641
  });
@@ -4923,8 +4923,8 @@ var require_node = __commonJS({
4923
4923
  function formatArgs(args) {
4924
4924
  const { namespace: name, useColors: useColors2 } = this;
4925
4925
  if (useColors2) {
4926
- const c49 = this.color;
4927
- const colorCode = "\x1B[3" + (c49 < 8 ? c49 : "8;5;" + c49);
4926
+ const c50 = this.color;
4927
+ const colorCode = "\x1B[3" + (c50 < 8 ? c50 : "8;5;" + c50);
4928
4928
  const prefix = ` ${colorCode};1m${name} \x1B[0m`;
4929
4929
  args[0] = prefix + args[0].split("\n").join("\n" + prefix);
4930
4930
  args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
@@ -10083,27 +10083,27 @@ var require_commonjs2 = __commonJS({
10083
10083
  const pad = n.some(isPadded);
10084
10084
  N = [];
10085
10085
  for (let i = x; test(i, y); i += incr) {
10086
- let c49;
10086
+ let c50;
10087
10087
  if (isAlphaSequence) {
10088
- c49 = String.fromCharCode(i);
10089
- if (c49 === "\\") {
10090
- c49 = "";
10088
+ c50 = String.fromCharCode(i);
10089
+ if (c50 === "\\") {
10090
+ c50 = "";
10091
10091
  }
10092
10092
  } else {
10093
- c49 = String(i);
10093
+ c50 = String(i);
10094
10094
  if (pad) {
10095
- const need = width - c49.length;
10095
+ const need = width - c50.length;
10096
10096
  if (need > 0) {
10097
10097
  const z3 = new Array(need + 1).join("0");
10098
10098
  if (i < 0) {
10099
- c49 = "-" + z3 + c49.slice(1);
10099
+ c50 = "-" + z3 + c50.slice(1);
10100
10100
  } else {
10101
- c49 = z3 + c49;
10101
+ c50 = z3 + c50;
10102
10102
  }
10103
10103
  }
10104
10104
  }
10105
10105
  }
10106
- N.push(c49);
10106
+ N.push(c50);
10107
10107
  }
10108
10108
  } else {
10109
10109
  N = [];
@@ -10186,25 +10186,25 @@ var require_brace_expressions = __commonJS({
10186
10186
  let endPos = pos;
10187
10187
  let rangeStart = "";
10188
10188
  WHILE: while (i < glob.length) {
10189
- const c49 = glob.charAt(i);
10190
- if ((c49 === "!" || c49 === "^") && i === pos + 1) {
10189
+ const c50 = glob.charAt(i);
10190
+ if ((c50 === "!" || c50 === "^") && i === pos + 1) {
10191
10191
  negate = true;
10192
10192
  i++;
10193
10193
  continue;
10194
10194
  }
10195
- if (c49 === "]" && sawStart && !escaping) {
10195
+ if (c50 === "]" && sawStart && !escaping) {
10196
10196
  endPos = i + 1;
10197
10197
  break;
10198
10198
  }
10199
10199
  sawStart = true;
10200
- if (c49 === "\\") {
10200
+ if (c50 === "\\") {
10201
10201
  if (!escaping) {
10202
10202
  escaping = true;
10203
10203
  i++;
10204
10204
  continue;
10205
10205
  }
10206
10206
  }
10207
- if (c49 === "[" && !escaping) {
10207
+ if (c50 === "[" && !escaping) {
10208
10208
  for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
10209
10209
  if (glob.startsWith(cls, i)) {
10210
10210
  if (rangeStart) {
@@ -10222,26 +10222,26 @@ var require_brace_expressions = __commonJS({
10222
10222
  }
10223
10223
  escaping = false;
10224
10224
  if (rangeStart) {
10225
- if (c49 > rangeStart) {
10226
- ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c49));
10227
- } else if (c49 === rangeStart) {
10228
- ranges.push(braceEscape(c49));
10225
+ if (c50 > rangeStart) {
10226
+ ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c50));
10227
+ } else if (c50 === rangeStart) {
10228
+ ranges.push(braceEscape(c50));
10229
10229
  }
10230
10230
  rangeStart = "";
10231
10231
  i++;
10232
10232
  continue;
10233
10233
  }
10234
10234
  if (glob.startsWith("-]", i + 1)) {
10235
- ranges.push(braceEscape(c49 + "-"));
10235
+ ranges.push(braceEscape(c50 + "-"));
10236
10236
  i += 2;
10237
10237
  continue;
10238
10238
  }
10239
10239
  if (glob.startsWith("-", i + 1)) {
10240
- rangeStart = c49;
10240
+ rangeStart = c50;
10241
10241
  i += 2;
10242
10242
  continue;
10243
10243
  }
10244
- ranges.push(braceEscape(c49));
10244
+ ranges.push(braceEscape(c50));
10245
10245
  i++;
10246
10246
  }
10247
10247
  if (endPos < i) {
@@ -10291,8 +10291,8 @@ var require_ast = __commonJS({
10291
10291
  var brace_expressions_js_1 = require_brace_expressions();
10292
10292
  var unescape_js_1 = require_unescape();
10293
10293
  var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
10294
- var isExtglobType = (c49) => types.has(c49);
10295
- var isExtglobAST = (c49) => isExtglobType(c49.type);
10294
+ var isExtglobType = (c50) => types.has(c50);
10295
+ var isExtglobAST = (c50) => isExtglobType(c50.type);
10296
10296
  var adoptionMap = /* @__PURE__ */ new Map([
10297
10297
  ["!", ["@"]],
10298
10298
  ["?", ["?", "@"]],
@@ -10495,11 +10495,11 @@ var require_ast = __commonJS({
10495
10495
  this.push(part.clone(this));
10496
10496
  }
10497
10497
  clone(parent) {
10498
- const c49 = new _a2(this.type, parent);
10498
+ const c50 = new _a2(this.type, parent);
10499
10499
  for (const p of this.#parts) {
10500
- c49.copyIn(p);
10500
+ c50.copyIn(p);
10501
10501
  }
10502
- return c49;
10502
+ return c50;
10503
10503
  }
10504
10504
  static #parseAST(str, ast, pos, opt, extDepth) {
10505
10505
  const maxDepth = opt.maxExtglobRecursion ?? 2;
@@ -10511,39 +10511,39 @@ var require_ast = __commonJS({
10511
10511
  let i2 = pos;
10512
10512
  let acc2 = "";
10513
10513
  while (i2 < str.length) {
10514
- const c49 = str.charAt(i2++);
10515
- if (escaping || c49 === "\\") {
10514
+ const c50 = str.charAt(i2++);
10515
+ if (escaping || c50 === "\\") {
10516
10516
  escaping = !escaping;
10517
- acc2 += c49;
10517
+ acc2 += c50;
10518
10518
  continue;
10519
10519
  }
10520
10520
  if (inBrace) {
10521
10521
  if (i2 === braceStart + 1) {
10522
- if (c49 === "^" || c49 === "!") {
10522
+ if (c50 === "^" || c50 === "!") {
10523
10523
  braceNeg = true;
10524
10524
  }
10525
- } else if (c49 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
10525
+ } else if (c50 === "]" && !(i2 === braceStart + 2 && braceNeg)) {
10526
10526
  inBrace = false;
10527
10527
  }
10528
- acc2 += c49;
10528
+ acc2 += c50;
10529
10529
  continue;
10530
- } else if (c49 === "[") {
10530
+ } else if (c50 === "[") {
10531
10531
  inBrace = true;
10532
10532
  braceStart = i2;
10533
10533
  braceNeg = false;
10534
- acc2 += c49;
10534
+ acc2 += c50;
10535
10535
  continue;
10536
10536
  }
10537
- const doRecurse = !opt.noext && isExtglobType(c49) && str.charAt(i2) === "(" && extDepth <= maxDepth;
10537
+ const doRecurse = !opt.noext && isExtglobType(c50) && str.charAt(i2) === "(" && extDepth <= maxDepth;
10538
10538
  if (doRecurse) {
10539
10539
  ast.push(acc2);
10540
10540
  acc2 = "";
10541
- const ext = new _a2(c49, ast);
10541
+ const ext = new _a2(c50, ast);
10542
10542
  i2 = _a2.#parseAST(str, ext, i2, opt, extDepth + 1);
10543
10543
  ast.push(ext);
10544
10544
  continue;
10545
10545
  }
10546
- acc2 += c49;
10546
+ acc2 += c50;
10547
10547
  }
10548
10548
  ast.push(acc2);
10549
10549
  return i2;
@@ -10553,48 +10553,48 @@ var require_ast = __commonJS({
10553
10553
  const parts = [];
10554
10554
  let acc = "";
10555
10555
  while (i < str.length) {
10556
- const c49 = str.charAt(i++);
10557
- if (escaping || c49 === "\\") {
10556
+ const c50 = str.charAt(i++);
10557
+ if (escaping || c50 === "\\") {
10558
10558
  escaping = !escaping;
10559
- acc += c49;
10559
+ acc += c50;
10560
10560
  continue;
10561
10561
  }
10562
10562
  if (inBrace) {
10563
10563
  if (i === braceStart + 1) {
10564
- if (c49 === "^" || c49 === "!") {
10564
+ if (c50 === "^" || c50 === "!") {
10565
10565
  braceNeg = true;
10566
10566
  }
10567
- } else if (c49 === "]" && !(i === braceStart + 2 && braceNeg)) {
10567
+ } else if (c50 === "]" && !(i === braceStart + 2 && braceNeg)) {
10568
10568
  inBrace = false;
10569
10569
  }
10570
- acc += c49;
10570
+ acc += c50;
10571
10571
  continue;
10572
- } else if (c49 === "[") {
10572
+ } else if (c50 === "[") {
10573
10573
  inBrace = true;
10574
10574
  braceStart = i;
10575
10575
  braceNeg = false;
10576
- acc += c49;
10576
+ acc += c50;
10577
10577
  continue;
10578
10578
  }
10579
- const doRecurse = !opt.noext && isExtglobType(c49) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
10580
- (extDepth <= maxDepth || ast && ast.#canAdoptType(c49));
10579
+ const doRecurse = !opt.noext && isExtglobType(c50) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
10580
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c50));
10581
10581
  if (doRecurse) {
10582
- const depthAdd = ast && ast.#canAdoptType(c49) ? 0 : 1;
10582
+ const depthAdd = ast && ast.#canAdoptType(c50) ? 0 : 1;
10583
10583
  part.push(acc);
10584
10584
  acc = "";
10585
- const ext = new _a2(c49, part);
10585
+ const ext = new _a2(c50, part);
10586
10586
  part.push(ext);
10587
10587
  i = _a2.#parseAST(str, ext, i, opt, extDepth + depthAdd);
10588
10588
  continue;
10589
10589
  }
10590
- if (c49 === "|") {
10590
+ if (c50 === "|") {
10591
10591
  part.push(acc);
10592
10592
  acc = "";
10593
10593
  parts.push(part);
10594
10594
  part = new _a2(null, ast);
10595
10595
  continue;
10596
10596
  }
10597
- if (c49 === ")") {
10597
+ if (c50 === ")") {
10598
10598
  if (acc === "" && ast.#parts.length === 0) {
10599
10599
  ast.#emptyExt = true;
10600
10600
  }
@@ -10603,7 +10603,7 @@ var require_ast = __commonJS({
10603
10603
  ast.push(...parts, part);
10604
10604
  return i;
10605
10605
  }
10606
- acc += c49;
10606
+ acc += c50;
10607
10607
  }
10608
10608
  ast.type = null;
10609
10609
  ast.#hasMagic = void 0;
@@ -10623,8 +10623,8 @@ var require_ast = __commonJS({
10623
10623
  }
10624
10624
  return this.#canAdoptType(gc.type, map2);
10625
10625
  }
10626
- #canAdoptType(c49, map2 = adoptionAnyMap) {
10627
- return !!map2.get(this.type)?.includes(c49);
10626
+ #canAdoptType(c50, map2 = adoptionAnyMap) {
10627
+ return !!map2.get(this.type)?.includes(c50);
10628
10628
  }
10629
10629
  #adoptWithSpace(child, index) {
10630
10630
  const gc = child.#parts[0];
@@ -10642,9 +10642,9 @@ var require_ast = __commonJS({
10642
10642
  }
10643
10643
  this.#toString = void 0;
10644
10644
  }
10645
- #canUsurpType(c49) {
10645
+ #canUsurpType(c50) {
10646
10646
  const m = usurpMap.get(this.type);
10647
- return !!m?.has(c49);
10647
+ return !!m?.has(c50);
10648
10648
  }
10649
10649
  #canUsurp(child) {
10650
10650
  if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
@@ -10857,18 +10857,18 @@ var require_ast = __commonJS({
10857
10857
  do {
10858
10858
  done = true;
10859
10859
  for (let i = 0; i < this.#parts.length; i++) {
10860
- const c49 = this.#parts[i];
10861
- if (typeof c49 === "object") {
10862
- c49.#flatten();
10863
- if (this.#canAdopt(c49)) {
10860
+ const c50 = this.#parts[i];
10861
+ if (typeof c50 === "object") {
10862
+ c50.#flatten();
10863
+ if (this.#canAdopt(c50)) {
10864
10864
  done = false;
10865
- this.#adopt(c49, i);
10866
- } else if (this.#canAdoptWithSpace(c49)) {
10865
+ this.#adopt(c50, i);
10866
+ } else if (this.#canAdoptWithSpace(c50)) {
10867
10867
  done = false;
10868
- this.#adoptWithSpace(c49, i);
10869
- } else if (this.#canUsurp(c49)) {
10868
+ this.#adoptWithSpace(c50, i);
10869
+ } else if (this.#canUsurp(c50)) {
10870
10870
  done = false;
10871
- this.#usurp(c49);
10871
+ this.#usurp(c50);
10872
10872
  }
10873
10873
  }
10874
10874
  }
@@ -10892,13 +10892,13 @@ var require_ast = __commonJS({
10892
10892
  let uflag = false;
10893
10893
  let inStar = false;
10894
10894
  for (let i = 0; i < glob.length; i++) {
10895
- const c49 = glob.charAt(i);
10895
+ const c50 = glob.charAt(i);
10896
10896
  if (escaping) {
10897
10897
  escaping = false;
10898
- re += (reSpecials.has(c49) ? "\\" : "") + c49;
10898
+ re += (reSpecials.has(c50) ? "\\" : "") + c50;
10899
10899
  continue;
10900
10900
  }
10901
- if (c49 === "*") {
10901
+ if (c50 === "*") {
10902
10902
  if (inStar)
10903
10903
  continue;
10904
10904
  inStar = true;
@@ -10908,7 +10908,7 @@ var require_ast = __commonJS({
10908
10908
  } else {
10909
10909
  inStar = false;
10910
10910
  }
10911
- if (c49 === "\\") {
10911
+ if (c50 === "\\") {
10912
10912
  if (i === glob.length - 1) {
10913
10913
  re += "\\\\";
10914
10914
  } else {
@@ -10916,7 +10916,7 @@ var require_ast = __commonJS({
10916
10916
  }
10917
10917
  continue;
10918
10918
  }
10919
- if (c49 === "[") {
10919
+ if (c50 === "[") {
10920
10920
  const [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
10921
10921
  if (consumed) {
10922
10922
  re += src;
@@ -10926,12 +10926,12 @@ var require_ast = __commonJS({
10926
10926
  continue;
10927
10927
  }
10928
10928
  }
10929
- if (c49 === "?") {
10929
+ if (c50 === "?") {
10930
10930
  re += qmark;
10931
10931
  hasMagic = true;
10932
10932
  continue;
10933
10933
  }
10934
- re += regExpEscape(c49);
10934
+ re += regExpEscape(c50);
10935
10935
  }
10936
10936
  return [re, (0, unescape_js_1.unescape)(glob), !!hasMagic, uflag];
10937
10937
  }
@@ -14849,13 +14849,13 @@ var require_utils5 = __commonJS({
14849
14849
  }
14850
14850
  exports.arrayStringifyHelper = arrayStringifyHelper;
14851
14851
  function getPoolNameOld(pool) {
14852
- const c49 = pool.config.connectionConfig;
14852
+ const c50 = pool.config.connectionConfig;
14853
14853
  let poolName = "";
14854
- poolName += c49.host ? `host: '${c49.host}', ` : "";
14855
- poolName += c49.port ? `port: ${c49.port}, ` : "";
14856
- poolName += c49.database ? `database: '${c49.database}', ` : "";
14857
- poolName += c49.user ? `user: '${c49.user}'` : "";
14858
- if (!c49.user) {
14854
+ poolName += c50.host ? `host: '${c50.host}', ` : "";
14855
+ poolName += c50.port ? `port: ${c50.port}, ` : "";
14856
+ poolName += c50.database ? `database: '${c50.database}', ` : "";
14857
+ poolName += c50.user ? `user: '${c50.user}'` : "";
14858
+ if (!c50.user) {
14859
14859
  poolName = poolName.substring(0, poolName.length - 2);
14860
14860
  }
14861
14861
  return poolName.trim();
@@ -15207,7 +15207,7 @@ var require_src12 = __commonJS({
15207
15207
  return indexOpeningDashDashComment < indexClosingSlashComment;
15208
15208
  }
15209
15209
  function fixedEncodeURIComponent(str) {
15210
- return encodeURIComponent(str).replace(/[!'()*]/g, (c49) => `%${c49.charCodeAt(0).toString(16).toUpperCase()}`);
15210
+ return encodeURIComponent(str).replace(/[!'()*]/g, (c50) => `%${c50.charCodeAt(0).toString(16).toUpperCase()}`);
15211
15211
  }
15212
15212
  function addSqlCommenterComment(span, query) {
15213
15213
  if (typeof query !== "string" || query.length === 0) {
@@ -23757,8 +23757,8 @@ var require_util = __commonJS({
23757
23757
  function isUSVString(val) {
23758
23758
  return hasIsWellFormed ? `${val}`.isWellFormed() : toUSVString(val) === `${val}`;
23759
23759
  }
23760
- function isTokenCharCode(c49) {
23761
- switch (c49) {
23760
+ function isTokenCharCode(c50) {
23761
+ switch (c50) {
23762
23762
  case 34:
23763
23763
  case 40:
23764
23764
  case 41:
@@ -23778,7 +23778,7 @@ var require_util = __commonJS({
23778
23778
  case 125:
23779
23779
  return false;
23780
23780
  default:
23781
- return c49 >= 33 && c49 <= 126;
23781
+ return c50 >= 33 && c50 <= 126;
23782
23782
  }
23783
23783
  }
23784
23784
  function isValidHTTPToken(characters) {
@@ -25367,7 +25367,7 @@ var require_constants2 = __commonJS({
25367
25367
  exports.HEADER_CHARS.push(i);
25368
25368
  }
25369
25369
  }
25370
- exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c49) => c49 !== 44);
25370
+ exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS.filter((c50) => c50 !== 44);
25371
25371
  exports.MAJOR = exports.NUM_MAP;
25372
25372
  exports.MINOR = exports.MAJOR;
25373
25373
  var HEADER_STATE;
@@ -26513,10 +26513,10 @@ var require_util2 = __commonJS({
26513
26513
  }
26514
26514
  function isValidReasonPhrase(statusText) {
26515
26515
  for (let i = 0; i < statusText.length; ++i) {
26516
- const c49 = statusText.charCodeAt(i);
26517
- if (!(c49 === 9 || // HTAB
26518
- c49 >= 32 && c49 <= 126 || // SP / VCHAR
26519
- c49 >= 128 && c49 <= 255)) {
26516
+ const c50 = statusText.charCodeAt(i);
26517
+ if (!(c50 === 9 || // HTAB
26518
+ c50 >= 32 && c50 <= 126 || // SP / VCHAR
26519
+ c50 >= 128 && c50 <= 255)) {
26520
26520
  return false;
26521
26521
  }
26522
26522
  }
@@ -30490,7 +30490,7 @@ var require_pool_base = __commonJS({
30490
30490
  pool.emit("drain", origin, [pool, ...targets]);
30491
30491
  }
30492
30492
  if (pool[kClosedResolve] && queue.isEmpty()) {
30493
- Promise.all(pool[kClients].map((c49) => c49.close())).then(pool[kClosedResolve]);
30493
+ Promise.all(pool[kClients].map((c50) => c50.close())).then(pool[kClosedResolve]);
30494
30494
  }
30495
30495
  };
30496
30496
  this[kOnConnect] = (origin, targets) => {
@@ -30539,7 +30539,7 @@ var require_pool_base = __commonJS({
30539
30539
  }
30540
30540
  async [kClose]() {
30541
30541
  if (this[kQueue].isEmpty()) {
30542
- await Promise.all(this[kClients].map((c49) => c49.close()));
30542
+ await Promise.all(this[kClients].map((c50) => c50.close()));
30543
30543
  } else {
30544
30544
  await new Promise((resolve2) => {
30545
30545
  this[kClosedResolve] = resolve2;
@@ -30554,7 +30554,7 @@ var require_pool_base = __commonJS({
30554
30554
  }
30555
30555
  item.handler.onError(err);
30556
30556
  }
30557
- await Promise.all(this[kClients].map((c49) => c49.destroy(err)));
30557
+ await Promise.all(this[kClients].map((c50) => c50.destroy(err)));
30558
30558
  }
30559
30559
  [kDispatch](opts, handler) {
30560
30560
  const dispatcher = this[kGetDispatcher]();
@@ -37324,8 +37324,8 @@ var require_util4 = __commonJS({
37324
37324
  return new TextDecoder(encoding).decode(sliced);
37325
37325
  }
37326
37326
  function BOMSniffing(ioQueue) {
37327
- const [a, b, c49] = ioQueue;
37328
- if (a === 239 && b === 187 && c49 === 191) {
37327
+ const [a, b, c50] = ioQueue;
37328
+ if (a === 239 && b === 187 && c50 === 191) {
37329
37329
  return "UTF-8";
37330
37330
  } else if (a === 254 && b === 255) {
37331
37331
  return "UTF-16BE";
@@ -41804,9 +41804,9 @@ var require_Alias = __commonJS({
41804
41804
  } else if (identity.isCollection(node2)) {
41805
41805
  let count = 0;
41806
41806
  for (const item of node2.items) {
41807
- const c49 = getAliasCount(doc, item, anchors2);
41808
- if (c49 > count)
41809
- count = c49;
41807
+ const c50 = getAliasCount(doc, item, anchors2);
41808
+ if (c50 > count)
41809
+ count = c50;
41810
41810
  }
41811
41811
  return count;
41812
41812
  } else if (identity.isPair(node2)) {
@@ -48822,7 +48822,7 @@ var require_style = __commonJS({
48822
48822
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.js"(exports, module2) {
48823
48823
  "use strict";
48824
48824
  init_esm_shims();
48825
- var c49 = require_kleur();
48825
+ var c50 = require_kleur();
48826
48826
  var figures = require_figures();
48827
48827
  var styles3 = Object.freeze({
48828
48828
  password: {
@@ -48844,14 +48844,14 @@ var require_style = __commonJS({
48844
48844
  });
48845
48845
  var render = (type) => styles3[type] || styles3.default;
48846
48846
  var symbols = Object.freeze({
48847
- aborted: c49.red(figures.cross),
48848
- done: c49.green(figures.tick),
48849
- exited: c49.yellow(figures.cross),
48850
- default: c49.cyan("?")
48847
+ aborted: c50.red(figures.cross),
48848
+ done: c50.green(figures.tick),
48849
+ exited: c50.yellow(figures.cross),
48850
+ default: c50.cyan("?")
48851
48851
  });
48852
48852
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
48853
- var delimiter = (completing) => c49.gray(completing ? figures.ellipsis : figures.pointerSmall);
48854
- var item = (expandable, expanded) => c49.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
48853
+ var delimiter = (completing) => c50.gray(completing ? figures.ellipsis : figures.pointerSmall);
48854
+ var item = (expandable, expanded) => c50.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
48855
48855
  module2.exports = {
48856
48856
  styles: styles3,
48857
48857
  render,
@@ -49133,10 +49133,10 @@ var require_text = __commonJS({
49133
49133
  this.cursor = this.cursor + n;
49134
49134
  this.cursorOffset += n;
49135
49135
  }
49136
- _(c49, key) {
49136
+ _(c50, key) {
49137
49137
  let s1 = this.value.slice(0, this.cursor);
49138
49138
  let s2 = this.value.slice(this.cursor);
49139
- this.value = `${s1}${c49}${s2}`;
49139
+ this.value = `${s1}${c50}${s2}`;
49140
49140
  this.red = false;
49141
49141
  this.cursor = this.placeholder ? 0 : s1.length + 1;
49142
49142
  this.render();
@@ -49311,8 +49311,8 @@ var require_select = __commonJS({
49311
49311
  this.moveCursor((this.cursor + 1) % this.choices.length);
49312
49312
  this.render();
49313
49313
  }
49314
- _(c49, key) {
49315
- if (c49 === " ") return this.submit();
49314
+ _(c50, key) {
49315
+ if (c50 === " ") return this.submit();
49316
49316
  }
49317
49317
  get selection() {
49318
49318
  return this.choices[this.cursor];
@@ -49438,12 +49438,12 @@ var require_toggle = __commonJS({
49438
49438
  this.fire();
49439
49439
  this.render();
49440
49440
  }
49441
- _(c49, key) {
49442
- if (c49 === " ") {
49441
+ _(c50, key) {
49442
+ if (c50 === " ") {
49443
49443
  this.value = !this.value;
49444
- } else if (c49 === "1") {
49444
+ } else if (c50 === "1") {
49445
49445
  this.value = true;
49446
- } else if (c49 === "0") {
49446
+ } else if (c50 === "0") {
49447
49447
  this.value = false;
49448
49448
  } else return this.bell();
49449
49449
  this.render();
@@ -49951,9 +49951,9 @@ var require_date = __commonJS({
49951
49951
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
49952
49952
  this.render();
49953
49953
  }
49954
- _(c49) {
49955
- if (/\d/.test(c49)) {
49956
- this.typed += c49;
49954
+ _(c50) {
49955
+ if (/\d/.test(c50)) {
49956
+ this.typed += c50;
49957
49957
  this.parts[this.cursor].setTo(this.typed);
49958
49958
  this.render();
49959
49959
  }
@@ -50062,8 +50062,8 @@ var require_number = __commonJS({
50062
50062
  parse(x) {
50063
50063
  return this.float ? parseFloat(x) : parseInt(x);
50064
50064
  }
50065
- valid(c49) {
50066
- return c49 === `-` || c49 === `.` && this.float || isNumber.test(c49);
50065
+ valid(c50) {
50066
+ return c50 === `-` || c50 === `.` && this.float || isNumber.test(c50);
50067
50067
  }
50068
50068
  reset() {
50069
50069
  this.typed = ``;
@@ -50156,14 +50156,14 @@ var require_number = __commonJS({
50156
50156
  this.fire();
50157
50157
  this.render();
50158
50158
  }
50159
- _(c49, key) {
50160
- if (!this.valid(c49)) return this.bell();
50159
+ _(c50, key) {
50160
+ if (!this.valid(c50)) return this.bell();
50161
50161
  const now = Date.now();
50162
50162
  if (now - this.lastHit > 1e3) this.typed = ``;
50163
- this.typed += c49;
50163
+ this.typed += c50;
50164
50164
  this.lastHit = now;
50165
50165
  this.color = `cyan`;
50166
- if (c49 === `.`) return this.fire();
50166
+ if (c50 === `.`) return this.fire();
50167
50167
  this.value = Math.min(this.parse(this.typed), this.max);
50168
50168
  if (this.value > this.max) this.value = this.max;
50169
50169
  if (this.value < this.min) this.value = this.min;
@@ -50327,10 +50327,10 @@ var require_multiselect = __commonJS({
50327
50327
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
50328
50328
  this.render();
50329
50329
  }
50330
- _(c49, key) {
50331
- if (c49 === " ") {
50330
+ _(c50, key) {
50331
+ if (c50 === " ") {
50332
50332
  this.handleSpaceToggle();
50333
- } else if (c49 === "a") {
50333
+ } else if (c50 === "a") {
50334
50334
  this.toggleAll();
50335
50335
  } else {
50336
50336
  return this.bell();
@@ -50571,10 +50571,10 @@ var require_autocomplete = __commonJS({
50571
50571
  this.out.write("\n");
50572
50572
  this.close();
50573
50573
  }
50574
- _(c49, key) {
50574
+ _(c50, key) {
50575
50575
  let s1 = this.input.slice(0, this.cursor);
50576
50576
  let s2 = this.input.slice(this.cursor);
50577
- this.input = `${s1}${c49}${s2}`;
50577
+ this.input = `${s1}${c50}${s2}`;
50578
50578
  this.cursor = s1.length + 1;
50579
50579
  this.complete(this.render);
50580
50580
  this.render();
@@ -50774,15 +50774,15 @@ var require_autocompleteMultiselect = __commonJS({
50774
50774
  this.render();
50775
50775
  }
50776
50776
  }
50777
- handleInputChange(c49) {
50778
- this.inputValue = this.inputValue + c49;
50777
+ handleInputChange(c50) {
50778
+ this.inputValue = this.inputValue + c50;
50779
50779
  this.updateFilteredOptions();
50780
50780
  }
50781
- _(c49, key) {
50782
- if (c49 === " ") {
50781
+ _(c50, key) {
50782
+ if (c50 === " ") {
50783
50783
  this.handleSpaceToggle();
50784
50784
  } else {
50785
- this.handleInputChange(c49);
50785
+ this.handleInputChange(c50);
50786
50786
  }
50787
50787
  }
50788
50788
  renderInstructions() {
@@ -50888,12 +50888,12 @@ var require_confirm = __commonJS({
50888
50888
  this.out.write("\n");
50889
50889
  this.close();
50890
50890
  }
50891
- _(c49, key) {
50892
- if (c49.toLowerCase() === "y") {
50891
+ _(c50, key) {
50892
+ if (c50.toLowerCase() === "y") {
50893
50893
  this.value = true;
50894
50894
  return this.submit();
50895
50895
  }
50896
- if (c49.toLowerCase() === "n") {
50896
+ if (c50.toLowerCase() === "n") {
50897
50897
  this.value = false;
50898
50898
  return this.submit();
50899
50899
  }
@@ -51334,7 +51334,7 @@ var require_style2 = __commonJS({
51334
51334
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.js"(exports, module2) {
51335
51335
  "use strict";
51336
51336
  init_esm_shims();
51337
- var c49 = require_kleur();
51337
+ var c50 = require_kleur();
51338
51338
  var figures = require_figures2();
51339
51339
  var styles3 = Object.freeze({
51340
51340
  password: { scale: 1, render: (input) => "*".repeat(input.length) },
@@ -51344,14 +51344,14 @@ var require_style2 = __commonJS({
51344
51344
  });
51345
51345
  var render = (type) => styles3[type] || styles3.default;
51346
51346
  var symbols = Object.freeze({
51347
- aborted: c49.red(figures.cross),
51348
- done: c49.green(figures.tick),
51349
- exited: c49.yellow(figures.cross),
51350
- default: c49.cyan("?")
51347
+ aborted: c50.red(figures.cross),
51348
+ done: c50.green(figures.tick),
51349
+ exited: c50.yellow(figures.cross),
51350
+ default: c50.cyan("?")
51351
51351
  });
51352
51352
  var symbol2 = (done, aborted2, exited) => aborted2 ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;
51353
- var delimiter = (completing) => c49.gray(completing ? figures.ellipsis : figures.pointerSmall);
51354
- var item = (expandable, expanded) => c49.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
51353
+ var delimiter = (completing) => c50.gray(completing ? figures.ellipsis : figures.pointerSmall);
51354
+ var item = (expandable, expanded) => c50.gray(expandable ? expanded ? figures.pointerSmall : "+" : figures.line);
51355
51355
  module2.exports = {
51356
51356
  styles: styles3,
51357
51357
  render,
@@ -51584,10 +51584,10 @@ var require_text2 = __commonJS({
51584
51584
  this.cursor = this.cursor + n;
51585
51585
  this.cursorOffset += n;
51586
51586
  }
51587
- _(c49, key) {
51587
+ _(c50, key) {
51588
51588
  let s1 = this.value.slice(0, this.cursor);
51589
51589
  let s2 = this.value.slice(this.cursor);
51590
- this.value = `${s1}${c49}${s2}`;
51590
+ this.value = `${s1}${c50}${s2}`;
51591
51591
  this.red = false;
51592
51592
  this.cursor = this.placeholder ? 0 : s1.length + 1;
51593
51593
  this.render();
@@ -51761,8 +51761,8 @@ var require_select2 = __commonJS({
51761
51761
  this.moveCursor((this.cursor + 1) % this.choices.length);
51762
51762
  this.render();
51763
51763
  }
51764
- _(c49, key) {
51765
- if (c49 === " ") return this.submit();
51764
+ _(c50, key) {
51765
+ if (c50 === " ") return this.submit();
51766
51766
  }
51767
51767
  get selection() {
51768
51768
  return this.choices[this.cursor];
@@ -51886,12 +51886,12 @@ var require_toggle2 = __commonJS({
51886
51886
  this.fire();
51887
51887
  this.render();
51888
51888
  }
51889
- _(c49, key) {
51890
- if (c49 === " ") {
51889
+ _(c50, key) {
51890
+ if (c50 === " ") {
51891
51891
  this.value = !this.value;
51892
- } else if (c49 === "1") {
51892
+ } else if (c50 === "1") {
51893
51893
  this.value = true;
51894
- } else if (c49 === "0") {
51894
+ } else if (c50 === "0") {
51895
51895
  this.value = false;
51896
51896
  } else return this.bell();
51897
51897
  this.render();
@@ -52347,9 +52347,9 @@ var require_date2 = __commonJS({
52347
52347
  this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex((part) => part instanceof DatePart));
52348
52348
  this.render();
52349
52349
  }
52350
- _(c49) {
52351
- if (/\d/.test(c49)) {
52352
- this.typed += c49;
52350
+ _(c50) {
52351
+ if (/\d/.test(c50)) {
52352
+ this.typed += c50;
52353
52353
  this.parts[this.cursor].setTo(this.typed);
52354
52354
  this.render();
52355
52355
  }
@@ -52431,8 +52431,8 @@ var require_number2 = __commonJS({
52431
52431
  parse(x) {
52432
52432
  return this.float ? parseFloat(x) : parseInt(x);
52433
52433
  }
52434
- valid(c49) {
52435
- return c49 === `-` || c49 === `.` && this.float || isNumber.test(c49);
52434
+ valid(c50) {
52435
+ return c50 === `-` || c50 === `.` && this.float || isNumber.test(c50);
52436
52436
  }
52437
52437
  reset() {
52438
52438
  this.typed = ``;
@@ -52519,14 +52519,14 @@ var require_number2 = __commonJS({
52519
52519
  this.fire();
52520
52520
  this.render();
52521
52521
  }
52522
- _(c49, key) {
52523
- if (!this.valid(c49)) return this.bell();
52522
+ _(c50, key) {
52523
+ if (!this.valid(c50)) return this.bell();
52524
52524
  const now = Date.now();
52525
52525
  if (now - this.lastHit > 1e3) this.typed = ``;
52526
- this.typed += c49;
52526
+ this.typed += c50;
52527
52527
  this.lastHit = now;
52528
52528
  this.color = `cyan`;
52529
- if (c49 === `.`) return this.fire();
52529
+ if (c50 === `.`) return this.fire();
52530
52530
  this.value = Math.min(this.parse(this.typed), this.max);
52531
52531
  if (this.value > this.max) this.value = this.max;
52532
52532
  if (this.value < this.min) this.value = this.min;
@@ -52688,10 +52688,10 @@ var require_multiselect2 = __commonJS({
52688
52688
  this.value.filter((v) => !v.disabled).forEach((v) => v.selected = newSelected);
52689
52689
  this.render();
52690
52690
  }
52691
- _(c49, key) {
52692
- if (c49 === " ") {
52691
+ _(c50, key) {
52692
+ if (c50 === " ") {
52693
52693
  this.handleSpaceToggle();
52694
- } else if (c49 === "a") {
52694
+ } else if (c50 === "a") {
52695
52695
  this.toggleAll();
52696
52696
  } else {
52697
52697
  return this.bell();
@@ -52888,10 +52888,10 @@ var require_autocomplete2 = __commonJS({
52888
52888
  this.out.write("\n");
52889
52889
  this.close();
52890
52890
  }
52891
- _(c49, key) {
52891
+ _(c50, key) {
52892
52892
  let s1 = this.input.slice(0, this.cursor);
52893
52893
  let s2 = this.input.slice(this.cursor);
52894
- this.input = `${s1}${c49}${s2}`;
52894
+ this.input = `${s1}${c50}${s2}`;
52895
52895
  this.cursor = s1.length + 1;
52896
52896
  this.complete(this.render);
52897
52897
  this.render();
@@ -53094,15 +53094,15 @@ var require_autocompleteMultiselect2 = __commonJS({
53094
53094
  this.render();
53095
53095
  }
53096
53096
  }
53097
- handleInputChange(c49) {
53098
- this.inputValue = this.inputValue + c49;
53097
+ handleInputChange(c50) {
53098
+ this.inputValue = this.inputValue + c50;
53099
53099
  this.updateFilteredOptions();
53100
53100
  }
53101
- _(c49, key) {
53102
- if (c49 === " ") {
53101
+ _(c50, key) {
53102
+ if (c50 === " ") {
53103
53103
  this.handleSpaceToggle();
53104
53104
  } else {
53105
- this.handleInputChange(c49);
53105
+ this.handleInputChange(c50);
53106
53106
  }
53107
53107
  }
53108
53108
  renderInstructions() {
@@ -53209,12 +53209,12 @@ var require_confirm2 = __commonJS({
53209
53209
  this.out.write("\n");
53210
53210
  this.close();
53211
53211
  }
53212
- _(c49, key) {
53213
- if (c49.toLowerCase() === "y") {
53212
+ _(c50, key) {
53213
+ if (c50.toLowerCase() === "y") {
53214
53214
  this.value = true;
53215
53215
  return this.submit();
53216
53216
  }
53217
- if (c49.toLowerCase() === "n") {
53217
+ if (c50.toLowerCase() === "n") {
53218
53218
  this.value = false;
53219
53219
  return this.submit();
53220
53220
  }
@@ -54268,8 +54268,8 @@ function _htmlElementAsString(el, keyAttrs) {
54268
54268
  const className = elem.className;
54269
54269
  if (className && isString(className)) {
54270
54270
  const classes = className.split(/\s+/);
54271
- for (const c49 of classes) {
54272
- out.push(`.${c49}`);
54271
+ for (const c50 of classes) {
54272
+ out.push(`.${c50}`);
54273
54273
  }
54274
54274
  }
54275
54275
  }
@@ -54482,9 +54482,9 @@ function uuid4(crypto = getCrypto()) {
54482
54482
  }
54483
54483
  return emptyUuid.replace(
54484
54484
  /[018]/g,
54485
- (c49) => (
54485
+ (c50) => (
54486
54486
  // eslint-disable-next-line no-bitwise
54487
- (c49 ^ (getRandomByte() & 15) >> c49 / 4).toString(16)
54487
+ (c50 ^ (getRandomByte() & 15) >> c50 / 4).toString(16)
54488
54488
  )
54489
54489
  );
54490
54490
  }
@@ -72046,16 +72046,16 @@ var HonoInstrumentation = class extends InstrumentationBase {
72046
72046
  */
72047
72047
  _wrapHandler(handler) {
72048
72048
  const instrumentation = this;
72049
- return function(c49, next) {
72049
+ return function(c50, next) {
72050
72050
  if (!instrumentation.isEnabled()) {
72051
- return handler.apply(this, [c49, next]);
72051
+ return handler.apply(this, [c50, next]);
72052
72052
  }
72053
- const path3 = c49.req.path;
72053
+ const path3 = c50.req.path;
72054
72054
  const span = instrumentation.tracer.startSpan(path3);
72055
72055
  return context.with(trace.setSpan(context.active(), span), () => {
72056
72056
  return instrumentation._safeExecute(
72057
72057
  () => {
72058
- const result = handler.apply(this, [c49, next]);
72058
+ const result = handler.apply(this, [c50, next]);
72059
72059
  if (isThenable(result)) {
72060
72060
  return result.then((result2) => {
72061
72061
  const type = instrumentation._determineHandlerType(result2);
@@ -73649,7 +73649,7 @@ if (DSN) {
73649
73649
  init2({
73650
73650
  dsn: DSN,
73651
73651
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
73652
- release: "9.119.2",
73652
+ release: "9.119.3",
73653
73653
  sendDefaultPii: false,
73654
73654
  tracesSampleRate: 0,
73655
73655
  shutdownTimeout: 500,
@@ -73668,7 +73668,7 @@ if (DSN) {
73668
73668
  }
73669
73669
  });
73670
73670
  setContext("cli", {
73671
- version: "9.119.2",
73671
+ version: "9.119.3",
73672
73672
  command: process.argv.slice(2).join(" ")
73673
73673
  });
73674
73674
  setContext("runtime", {
@@ -74432,95 +74432,6 @@ function extractAndGroupVariables(obj) {
74432
74432
  return groupVariablesBySource(extractVariableReferences(obj));
74433
74433
  }
74434
74434
 
74435
- // ../../packages/core/src/github-url.ts
74436
- init_esm_shims();
74437
- function parseGitHubTreeUrl(url2) {
74438
- let normalizedUrl = url2;
74439
- while (normalizedUrl.endsWith("/")) {
74440
- normalizedUrl = normalizedUrl.slice(0, -1);
74441
- }
74442
- const fullPathMatch = normalizedUrl.match(/^https:\/\/github\.com\/(.+)$/);
74443
- if (!fullPathMatch) {
74444
- return null;
74445
- }
74446
- const fullPath = fullPathMatch[1];
74447
- const regex = /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/tree\/([^/]+)(?:\/(.+))?$/;
74448
- const match = normalizedUrl.match(regex);
74449
- if (!match) {
74450
- return null;
74451
- }
74452
- const [, owner, repo, branch, pathPart] = match;
74453
- const resolvedPath = pathPart ?? "";
74454
- const pathSegments = resolvedPath.split("/").filter(Boolean);
74455
- const skillName = pathSegments[pathSegments.length - 1] || repo;
74456
- return {
74457
- owner,
74458
- repo,
74459
- branch,
74460
- path: resolvedPath,
74461
- skillName,
74462
- fullPath
74463
- };
74464
- }
74465
- function parseGitHubUrl(url2) {
74466
- let normalizedUrl = url2;
74467
- while (normalizedUrl.endsWith("/")) {
74468
- normalizedUrl = normalizedUrl.slice(0, -1);
74469
- }
74470
- const fullPathMatch = normalizedUrl.match(/^https:\/\/github\.com\/(.+)$/);
74471
- if (!fullPathMatch) {
74472
- return null;
74473
- }
74474
- const fullPath = fullPathMatch[1];
74475
- const plainMatch = normalizedUrl.match(
74476
- /^https:\/\/github\.com\/([^/]+)\/([^/]+)$/
74477
- );
74478
- if (plainMatch) {
74479
- return {
74480
- owner: plainMatch[1],
74481
- repo: plainMatch[2],
74482
- branch: null,
74483
- path: null,
74484
- fullPath
74485
- };
74486
- }
74487
- const treeMatch = normalizedUrl.match(
74488
- /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/tree\/([^/]+)(?:\/(.+))?$/
74489
- );
74490
- if (treeMatch) {
74491
- return {
74492
- owner: treeMatch[1],
74493
- repo: treeMatch[2],
74494
- branch: treeMatch[3],
74495
- path: treeMatch[4] ?? null,
74496
- fullPath
74497
- };
74498
- }
74499
- return null;
74500
- }
74501
- var DEFAULT_SKILLS_OWNER = "vm0-ai";
74502
- var DEFAULT_SKILLS_REPO = "vm0-skills";
74503
- var DEFAULT_SKILLS_BRANCH = "main";
74504
- function resolveSkillRef(input) {
74505
- const trimmed = input.trim();
74506
- if (!trimmed) {
74507
- throw new Error("Skill reference cannot be empty");
74508
- }
74509
- if (!trimmed.includes("/") && !trimmed.startsWith("https://")) {
74510
- return `https://github.com/${DEFAULT_SKILLS_OWNER}/${DEFAULT_SKILLS_REPO}/tree/${DEFAULT_SKILLS_BRANCH}/${trimmed}`;
74511
- }
74512
- const parsed = parseGitHubUrl(trimmed);
74513
- if (!parsed) {
74514
- throw new Error(
74515
- `Invalid skill URL: ${trimmed}. Expected a bare skill name (e.g. "slack") or a GitHub URL (https://github.com/{owner}/{repo}[/tree/{branch}[/path]])`
74516
- );
74517
- }
74518
- if (!parsed.branch) {
74519
- return `https://github.com/${parsed.owner}/${parsed.repo}/tree/${DEFAULT_SKILLS_BRANCH}`;
74520
- }
74521
- return trimmed;
74522
- }
74523
-
74524
74435
  // ../../packages/core/src/firewalls/index.ts
74525
74436
  init_esm_shims();
74526
74437
 
@@ -79351,7 +79262,7 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
79351
79262
  function isValidBase64URL(data) {
79352
79263
  if (!base64url.test(data))
79353
79264
  return false;
79354
- const base643 = data.replace(/[-_]/g, (c49) => c49 === "-" ? "+" : "/");
79265
+ const base643 = data.replace(/[-_]/g, (c50) => c50 === "-" ? "+" : "/");
79355
79266
  const padded = base643.padEnd(Math.ceil(base643.length / 4) * 4, "=");
79356
79267
  return isValidBase64(padded);
79357
79268
  }
@@ -89462,9 +89373,9 @@ var ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {
89462
89373
  inst._zod.processJSONSchema = (ctx, json2, params) => dateProcessor(inst, ctx, json2, params);
89463
89374
  inst.min = (value, params) => inst.check(_gte(value, params));
89464
89375
  inst.max = (value, params) => inst.check(_lte(value, params));
89465
- const c49 = inst._zod.bag;
89466
- inst.minDate = c49.minimum ? new Date(c49.minimum) : null;
89467
- inst.maxDate = c49.maximum ? new Date(c49.maximum) : null;
89376
+ const c50 = inst._zod.bag;
89377
+ inst.minDate = c50.minimum ? new Date(c50.minimum) : null;
89378
+ inst.maxDate = c50.maximum ? new Date(c50.maximum) : null;
89468
89379
  });
89469
89380
  function date3(params) {
89470
89381
  return _date(ZodDate, params);
@@ -91198,10 +91109,13 @@ var CONNECTOR_TYPES_DEF = {
91198
91109
  oauth: {
91199
91110
  authorizationUrl: "https://slack.com/oauth/v2/authorize",
91200
91111
  tokenUrl: "https://slack.com/api/oauth.v2.access",
91112
+ // Note: Slack does not approve `search:read` or user `*:history`
91113
+ // scopes outside of RTS / MCP applications. The personal connector
91114
+ // intentionally omits them. Bot-side history access is provided
91115
+ // separately by the org install flow's SLACK_BOT_SCOPES.
91201
91116
  scopes: [
91202
91117
  // Channels
91203
91118
  "channels:read",
91204
- "channels:history",
91205
91119
  // Messaging
91206
91120
  "chat:write",
91207
91121
  // Users
@@ -91211,16 +91125,12 @@ var CONNECTOR_TYPES_DEF = {
91211
91125
  "files:read",
91212
91126
  "files:write",
91213
91127
  // Direct messages (high priority)
91214
- "im:history",
91215
91128
  "im:write",
91216
91129
  // Reactions (high priority)
91217
91130
  "reactions:read",
91218
91131
  "reactions:write",
91219
- // Search (high priority)
91220
- "search:read",
91221
91132
  // Private channels (high priority)
91222
91133
  "groups:read",
91223
- "groups:history",
91224
91134
  // Reminders (medium priority)
91225
91135
  "reminders:read",
91226
91136
  "reminders:write",
@@ -91229,8 +91139,6 @@ var CONNECTOR_TYPES_DEF = {
91229
91139
  "pins:write",
91230
91140
  // User groups (medium priority)
91231
91141
  "usergroups:read",
91232
- // Multi-person DMs (medium priority)
91233
- "mpim:history",
91234
91142
  // Do Not Disturb (low priority)
91235
91143
  "dnd:read",
91236
91144
  // Bookmarks (low priority)
@@ -110193,6 +110101,47 @@ init_esm_shims();
110193
110101
  // ../../packages/core/src/firewall-loader.ts
110194
110102
  init_esm_shims();
110195
110103
  var import_yaml = __toESM(require_dist(), 1);
110104
+
110105
+ // ../../packages/core/src/github-url.ts
110106
+ init_esm_shims();
110107
+ function parseGitHubUrl(url2) {
110108
+ let normalizedUrl = url2;
110109
+ while (normalizedUrl.endsWith("/")) {
110110
+ normalizedUrl = normalizedUrl.slice(0, -1);
110111
+ }
110112
+ const fullPathMatch = normalizedUrl.match(/^https:\/\/github\.com\/(.+)$/);
110113
+ if (!fullPathMatch) {
110114
+ return null;
110115
+ }
110116
+ const fullPath = fullPathMatch[1];
110117
+ const plainMatch = normalizedUrl.match(
110118
+ /^https:\/\/github\.com\/([^/]+)\/([^/]+)$/
110119
+ );
110120
+ if (plainMatch) {
110121
+ return {
110122
+ owner: plainMatch[1],
110123
+ repo: plainMatch[2],
110124
+ branch: null,
110125
+ path: null,
110126
+ fullPath
110127
+ };
110128
+ }
110129
+ const treeMatch = normalizedUrl.match(
110130
+ /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/tree\/([^/]+)(?:\/(.+))?$/
110131
+ );
110132
+ if (treeMatch) {
110133
+ return {
110134
+ owner: treeMatch[1],
110135
+ repo: treeMatch[2],
110136
+ branch: treeMatch[3],
110137
+ path: treeMatch[4] ?? null,
110138
+ fullPath
110139
+ };
110140
+ }
110141
+ return null;
110142
+ }
110143
+
110144
+ // ../../packages/core/src/firewall-loader.ts
110196
110145
  var MAX_RESPONSE_SIZE = 128 * 1024;
110197
110146
 
110198
110147
  // ../../packages/core/src/contracts/firewall-rule-matcher.ts
@@ -112806,10 +112755,11 @@ var pushSubscriptionsContract = c44.router({
112806
112755
  init_esm_shims();
112807
112756
  var c45 = initContract();
112808
112757
  var contextEventSchema = external_exports.object({
112758
+ id: external_exports.string(),
112809
112759
  seq: external_exports.number(),
112810
112760
  source: external_exports.string(),
112811
112761
  type: external_exports.string(),
112812
- content: external_exports.string().optional(),
112762
+ content: external_exports.string().nullable(),
112813
112763
  createdAt: external_exports.string()
112814
112764
  });
112815
112765
  var contextEventsResponseSchema = external_exports.object({
@@ -112820,7 +112770,7 @@ var appendContextEventBodySchema = external_exports.object({
112820
112770
  type: external_exports.string(),
112821
112771
  content: external_exports.string().optional()
112822
112772
  });
112823
- var zeroVoiceChatContextGetContract = c45.router({
112773
+ var zeroVoiceChatContextContract = c45.router({
112824
112774
  getEvents: {
112825
112775
  method: "GET",
112826
112776
  path: "/api/zero/voice-chat/:id/context",
@@ -112833,9 +112783,7 @@ var zeroVoiceChatContextGetContract = c45.router({
112833
112783
  404: apiErrorSchema
112834
112784
  },
112835
112785
  summary: "Get shared context events for a voice-chat session"
112836
- }
112837
- });
112838
- var zeroVoiceChatContextAppendContract = c45.router({
112786
+ },
112839
112787
  appendEvent: {
112840
112788
  method: "POST",
112841
112789
  path: "/api/zero/voice-chat/:id/context",
@@ -112843,7 +112791,7 @@ var zeroVoiceChatContextAppendContract = c45.router({
112843
112791
  pathParams: external_exports.object({ id: external_exports.string().min(1) }),
112844
112792
  body: appendContextEventBodySchema,
112845
112793
  responses: {
112846
- 200: contextEventSchema,
112794
+ 200: external_exports.object({ event: contextEventSchema }),
112847
112795
  401: apiErrorSchema,
112848
112796
  404: apiErrorSchema
112849
112797
  },
@@ -112851,9 +112799,107 @@ var zeroVoiceChatContextAppendContract = c45.router({
112851
112799
  }
112852
112800
  });
112853
112801
 
112854
- // ../../packages/core/src/contracts/zero-voice-chat-prepare.ts
112802
+ // ../../packages/core/src/contracts/zero-voice-chat-sessions.ts
112855
112803
  init_esm_shims();
112856
112804
  var c46 = initContract();
112805
+ var voiceChatModeSchema = external_exports.enum(["chat", "meeting"]);
112806
+ var voiceChatSessionBaseSchema = external_exports.object({
112807
+ id: external_exports.string(),
112808
+ mode: voiceChatModeSchema,
112809
+ status: external_exports.string()
112810
+ });
112811
+ var voiceChatSessionCreatedSchema = voiceChatSessionBaseSchema.extend({
112812
+ runId: external_exports.string(),
112813
+ createdAt: external_exports.string(),
112814
+ prepared: external_exports.boolean()
112815
+ });
112816
+ var createVoiceChatSessionBodySchema = external_exports.object({
112817
+ agentId: external_exports.string().min(1),
112818
+ mode: voiceChatModeSchema.optional(),
112819
+ prompt: external_exports.string().min(1).optional()
112820
+ });
112821
+ var voiceChatTokenBodySchema = external_exports.object({
112822
+ model: external_exports.string().optional()
112823
+ });
112824
+ var voiceChatTokenResponseSchema = external_exports.object({
112825
+ client_secret: external_exports.object({
112826
+ value: external_exports.string(),
112827
+ expires_at: external_exports.number()
112828
+ })
112829
+ });
112830
+ var okResponseSchema = external_exports.object({ ok: external_exports.literal(true) });
112831
+ var zeroVoiceChatSessionsContract = c46.router({
112832
+ create: {
112833
+ method: "POST",
112834
+ path: "/api/zero/voice-chat",
112835
+ headers: authHeadersSchema,
112836
+ body: createVoiceChatSessionBodySchema,
112837
+ responses: {
112838
+ 200: external_exports.object({ session: voiceChatSessionCreatedSchema }),
112839
+ 400: apiErrorSchema,
112840
+ 401: apiErrorSchema,
112841
+ 403: apiErrorSchema
112842
+ },
112843
+ summary: "Create a new voice-chat session"
112844
+ },
112845
+ token: {
112846
+ method: "POST",
112847
+ path: "/api/zero/voice-chat/token",
112848
+ headers: authHeadersSchema,
112849
+ body: voiceChatTokenBodySchema,
112850
+ responses: {
112851
+ 200: voiceChatTokenResponseSchema,
112852
+ 401: apiErrorSchema,
112853
+ 403: apiErrorSchema,
112854
+ 500: apiErrorSchema,
112855
+ 503: apiErrorSchema
112856
+ },
112857
+ summary: "Mint an ephemeral OpenAI realtime token for voice-chat"
112858
+ },
112859
+ heartbeat: {
112860
+ method: "POST",
112861
+ path: "/api/zero/voice-chat/:id/heartbeat",
112862
+ headers: authHeadersSchema,
112863
+ pathParams: external_exports.object({ id: external_exports.string().min(1) }),
112864
+ body: external_exports.object({}),
112865
+ responses: {
112866
+ 200: okResponseSchema,
112867
+ 401: apiErrorSchema,
112868
+ 404: apiErrorSchema
112869
+ },
112870
+ summary: "Keep a voice-chat session alive"
112871
+ },
112872
+ activate: {
112873
+ method: "POST",
112874
+ path: "/api/zero/voice-chat/:id/activate",
112875
+ headers: authHeadersSchema,
112876
+ pathParams: external_exports.object({ id: external_exports.string().min(1) }),
112877
+ body: external_exports.object({}),
112878
+ responses: {
112879
+ 200: external_exports.object({ session: voiceChatSessionBaseSchema }),
112880
+ 401: apiErrorSchema,
112881
+ 404: apiErrorSchema
112882
+ },
112883
+ summary: "Activate a preparing voice-chat session"
112884
+ },
112885
+ end: {
112886
+ method: "POST",
112887
+ path: "/api/zero/voice-chat/:id/end",
112888
+ headers: authHeadersSchema,
112889
+ pathParams: external_exports.object({ id: external_exports.string().min(1) }),
112890
+ body: external_exports.object({}),
112891
+ responses: {
112892
+ 200: okResponseSchema,
112893
+ 401: apiErrorSchema,
112894
+ 404: apiErrorSchema
112895
+ },
112896
+ summary: "End a voice-chat session"
112897
+ }
112898
+ });
112899
+
112900
+ // ../../packages/core/src/contracts/zero-voice-chat-prepare.ts
112901
+ init_esm_shims();
112902
+ var c47 = initContract();
112857
112903
  var prepareTriggerBodySchema = external_exports.object({
112858
112904
  agentId: external_exports.string().min(1),
112859
112905
  mode: external_exports.enum(["chat", "meeting"]).default("chat"),
@@ -112866,7 +112912,7 @@ var prepareTriggerResponseSchema = external_exports.object({
112866
112912
  runId: external_exports.string().optional()
112867
112913
  })
112868
112914
  });
112869
- var zeroVoiceChatPrepareTriggerContract = c46.router({
112915
+ var zeroVoiceChatPrepareTriggerContract = c47.router({
112870
112916
  trigger: {
112871
112917
  method: "POST",
112872
112918
  path: "/api/zero/voice-chat/prepare",
@@ -112888,7 +112934,7 @@ var prepareCompleteResponseSchema = external_exports.object({
112888
112934
  id: external_exports.string(),
112889
112935
  status: external_exports.enum(["preparing", "ready", "failed"])
112890
112936
  });
112891
- var zeroVoiceChatPrepareCompleteContract = c46.router({
112937
+ var zeroVoiceChatPrepareCompleteContract = c47.router({
112892
112938
  complete: {
112893
112939
  method: "POST",
112894
112940
  path: "/api/zero/voice-chat/prepare/complete",
@@ -112914,7 +112960,7 @@ var prepareListResponseSchema = external_exports.object({
112914
112960
  })
112915
112961
  )
112916
112962
  });
112917
- var zeroVoiceChatPrepareListContract = c46.router({
112963
+ var zeroVoiceChatPrepareListContract = c47.router({
112918
112964
  list: {
112919
112965
  method: "GET",
112920
112966
  path: "/api/zero/voice-chat/prepare/list",
@@ -112930,7 +112976,7 @@ var zeroVoiceChatPrepareListContract = c46.router({
112930
112976
 
112931
112977
  // ../../packages/core/src/contracts/tasks.ts
112932
112978
  init_esm_shims();
112933
- var c47 = initContract();
112979
+ var c48 = initContract();
112934
112980
  var taskTypeSchema = external_exports.enum([
112935
112981
  "chat",
112936
112982
  "schedule",
@@ -112971,7 +113017,7 @@ var unarchiveTaskBodySchema = external_exports.object({
112971
113017
  taskId: external_exports.string(),
112972
113018
  taskType: taskTypeSchema
112973
113019
  });
112974
- var tasksContract = c47.router({
113020
+ var tasksContract = c48.router({
112975
113021
  list: {
112976
113022
  method: "GET",
112977
113023
  path: "/api/zero/tasks",
@@ -113011,7 +113057,7 @@ var tasksContract = c47.router({
113011
113057
 
113012
113058
  // ../../packages/core/src/contracts/zero-phone.ts
113013
113059
  init_esm_shims();
113014
- var c48 = initContract();
113060
+ var c49 = initContract();
113015
113061
  var phoneStatusResponseSchema = external_exports.object({
113016
113062
  userPhone: external_exports.string().nullable(),
113017
113063
  userPhonePending: external_exports.string().nullable(),
@@ -113030,7 +113076,7 @@ var phoneSetupResponseSchema = external_exports.object({
113030
113076
  var phoneErrorResponseSchema = external_exports.object({
113031
113077
  error: external_exports.string()
113032
113078
  });
113033
- var zeroPhoneStatusContract = c48.router({
113079
+ var zeroPhoneStatusContract = c49.router({
113034
113080
  getStatus: {
113035
113081
  method: "GET",
113036
113082
  path: "/api/zero/phone/status",
@@ -113042,7 +113088,7 @@ var zeroPhoneStatusContract = c48.router({
113042
113088
  summary: "Get the current user's phone link status"
113043
113089
  }
113044
113090
  });
113045
- var zeroPhoneLinkContract = c48.router({
113091
+ var zeroPhoneLinkContract = c49.router({
113046
113092
  link: {
113047
113093
  method: "POST",
113048
113094
  path: "/api/zero/phone/link",
@@ -113060,7 +113106,7 @@ var zeroPhoneLinkContract = c48.router({
113060
113106
  method: "DELETE",
113061
113107
  path: "/api/zero/phone/link",
113062
113108
  headers: authHeadersSchema,
113063
- body: c48.noBody(),
113109
+ body: c49.noBody(),
113064
113110
  responses: {
113065
113111
  200: phoneSuccessResponseSchema,
113066
113112
  401: phoneErrorResponseSchema
@@ -113068,12 +113114,12 @@ var zeroPhoneLinkContract = c48.router({
113068
113114
  summary: "Remove the current user's phone link"
113069
113115
  }
113070
113116
  });
113071
- var zeroPhoneSetupContract = c48.router({
113117
+ var zeroPhoneSetupContract = c49.router({
113072
113118
  setup: {
113073
113119
  method: "POST",
113074
113120
  path: "/api/zero/phone/setup",
113075
113121
  headers: authHeadersSchema,
113076
- body: c48.noBody(),
113122
+ body: c49.noBody(),
113077
113123
  responses: {
113078
113124
  200: phoneSetupResponseSchema,
113079
113125
  401: phoneErrorResponseSchema,
@@ -113095,9 +113141,6 @@ init_esm_shims();
113095
113141
  function getInstructionsStorageName(agentName) {
113096
113142
  return `agent-instructions@${agentName}`;
113097
113143
  }
113098
- function getSkillStorageName(fullPath) {
113099
- return `agent-skills@${fullPath}`;
113100
- }
113101
113144
 
113102
113145
  // ../../packages/core/src/frameworks.ts
113103
113146
  init_esm_shims();
@@ -113389,25 +113432,6 @@ function isFeatureEnabled(key, ctx) {
113389
113432
  // ../../packages/core/src/skill-frontmatter.ts
113390
113433
  init_esm_shims();
113391
113434
  var import_yaml2 = __toESM(require_dist(), 1);
113392
- function parseSkillFrontmatter(content) {
113393
- const frontmatterMatch = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
113394
- if (!frontmatterMatch) {
113395
- return {};
113396
- }
113397
- const yamlContent = frontmatterMatch[1];
113398
- if (!yamlContent) {
113399
- return {};
113400
- }
113401
- const parsed = (0, import_yaml2.parse)(yamlContent);
113402
- if (!parsed || typeof parsed !== "object") {
113403
- return {};
113404
- }
113405
- const data = parsed;
113406
- return {
113407
- name: typeof data.name === "string" ? data.name : void 0,
113408
- description: typeof data.description === "string" ? data.description : void 0
113409
- };
113410
- }
113411
113435
 
113412
113436
  // ../../packages/core/src/instructions-frontmatter.ts
113413
113437
  init_esm_shims();
@@ -113586,26 +113610,6 @@ async function updateZeroUserPreferences(body) {
113586
113610
  handleError(result, "Failed to update user preferences");
113587
113611
  }
113588
113612
 
113589
- // src/lib/api/domains/skills.ts
113590
- init_esm_shims();
113591
- async function resolveSkills(skillUrls) {
113592
- try {
113593
- const config4 = await getClientConfig();
113594
- const client = initClient(skillsResolveContract, config4);
113595
- const result = await client.resolve({ body: { skills: skillUrls } });
113596
- if (result.status === 200) return result.body;
113597
- console.error(
113598
- source_default.dim(" Skill resolve unavailable, downloading all skills")
113599
- );
113600
- return { resolved: {}, unresolved: skillUrls };
113601
- } catch {
113602
- console.error(
113603
- source_default.dim(" Skill resolve unavailable, downloading all skills")
113604
- );
113605
- return { resolved: {}, unresolved: skillUrls };
113606
- }
113607
- }
113608
-
113609
113613
  // src/lib/api/domains/zero-secrets.ts
113610
113614
  init_esm_shims();
113611
113615
  async function listZeroSecrets() {
@@ -113760,60 +113764,6 @@ async function getZeroConnector(type) {
113760
113764
  }
113761
113765
  handleError(result, `Failed to get connector "${type}"`);
113762
113766
  }
113763
- async function deleteZeroConnector(type) {
113764
- const config4 = await getClientConfig();
113765
- const client = initClient(zeroConnectorsByTypeContract, config4);
113766
- const result = await client.delete({
113767
- params: { type }
113768
- });
113769
- if (result.status === 204) {
113770
- return;
113771
- }
113772
- handleError(result, `Connector "${type}" not found`);
113773
- }
113774
- async function createZeroConnectorSession(type) {
113775
- const config4 = await getClientConfig();
113776
- const client = initClient(zeroConnectorSessionsContract, config4);
113777
- const result = await client.create({
113778
- params: { type },
113779
- body: {}
113780
- });
113781
- if (result.status === 200) {
113782
- return result.body;
113783
- }
113784
- handleError(result, "Failed to create connector session");
113785
- }
113786
- async function getZeroConnectorSession(type, sessionId) {
113787
- const config4 = await getClientConfig();
113788
- const client = initClient(zeroConnectorSessionByIdContract, config4);
113789
- const result = await client.get({
113790
- params: { type, sessionId }
113791
- });
113792
- if (result.status === 200) {
113793
- return result.body;
113794
- }
113795
- handleError(result, "Failed to get connector session status");
113796
- }
113797
- async function createZeroComputerConnector() {
113798
- const config4 = await getClientConfig();
113799
- const client = initClient(zeroComputerConnectorContract, config4);
113800
- const result = await client.create({
113801
- body: {}
113802
- });
113803
- if (result.status === 200) {
113804
- return result.body;
113805
- }
113806
- handleError(result, "Failed to create computer connector");
113807
- }
113808
- async function deleteZeroComputerConnector() {
113809
- const config4 = await getClientConfig();
113810
- const client = initClient(zeroComputerConnectorContract, config4);
113811
- const result = await client.delete({});
113812
- if (result.status === 204) {
113813
- return;
113814
- }
113815
- handleError(result, "Computer connector not found");
113816
- }
113817
113767
 
113818
113768
  // src/lib/api/domains/zero-runs.ts
113819
113769
  init_esm_shims();
@@ -114661,7 +114611,7 @@ async function getPhoneCallDetail(callId) {
114661
114611
  init_esm_shims();
114662
114612
  async function getVoiceChatContextEvents(sessionId, after) {
114663
114613
  const config4 = await getClientConfig();
114664
- const client = initClient(zeroVoiceChatContextGetContract, config4);
114614
+ const client = initClient(zeroVoiceChatContextContract, config4);
114665
114615
  const result = await client.getEvents({
114666
114616
  params: { id: sessionId },
114667
114617
  query: { after },
@@ -114674,14 +114624,14 @@ async function getVoiceChatContextEvents(sessionId, after) {
114674
114624
  }
114675
114625
  async function appendVoiceChatContextEvent(sessionId, body) {
114676
114626
  const config4 = await getClientConfig();
114677
- const client = initClient(zeroVoiceChatContextAppendContract, config4);
114627
+ const client = initClient(zeroVoiceChatContextContract, config4);
114678
114628
  const result = await client.appendEvent({
114679
114629
  params: { id: sessionId },
114680
114630
  body,
114681
114631
  headers: {}
114682
114632
  });
114683
114633
  if (result.status === 200) {
114684
- return result.body;
114634
+ return result.body.event;
114685
114635
  }
114686
114636
  handleError(result, "Failed to append voice-chat context event");
114687
114637
  }
@@ -115783,21 +115733,16 @@ export {
115783
115733
  getScopeDiff,
115784
115734
  getConnectorTypeForSecretName,
115785
115735
  require_dist,
115786
- parseGitHubTreeUrl,
115787
115736
  parseGitHubUrl,
115788
- resolveSkillRef,
115789
115737
  isFirewallConnectorType,
115790
115738
  getConnectorFirewall,
115791
115739
  resolveFirewallPolicies,
115792
115740
  findMatchingPermissions,
115793
115741
  zeroAgentCustomSkillNameSchema,
115794
115742
  getInstructionsStorageName,
115795
- getSkillStorageName,
115796
115743
  getInstructionsFilename,
115797
115744
  isFeatureEnabled,
115798
- parseSkillFrontmatter,
115799
115745
  ApiRequestError,
115800
- getBaseUrl,
115801
115746
  withErrorHandler,
115802
115747
  getComposeByName,
115803
115748
  resolveCompose,
@@ -115816,7 +115761,6 @@ export {
115816
115761
  listStorages,
115817
115762
  getZeroUserPreferences,
115818
115763
  updateZeroUserPreferences,
115819
- resolveSkills,
115820
115764
  getZeroOrg,
115821
115765
  updateZeroOrg,
115822
115766
  listZeroOrgs,
@@ -115858,11 +115802,6 @@ export {
115858
115802
  deleteSkill,
115859
115803
  listZeroConnectors,
115860
115804
  getZeroConnector,
115861
- deleteZeroConnector,
115862
- createZeroConnectorSession,
115863
- getZeroConnectorSession,
115864
- createZeroComputerConnector,
115865
- deleteZeroComputerConnector,
115866
115805
  sendSlackMessage,
115867
115806
  initSlackFileUpload,
115868
115807
  completeSlackFileUpload,
@@ -115930,4 +115869,4 @@ undici/lib/web/fetch/body.js:
115930
115869
  undici/lib/web/websocket/frame.js:
115931
115870
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
115932
115871
  */
115933
- //# sourceMappingURL=chunk-PS4P6JB6.js.map
115872
+ //# sourceMappingURL=chunk-6UFVJSUZ.js.map