@vm0/cli 9.180.12 → 9.180.14

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.
@@ -47560,7 +47560,7 @@ var require_src21 = __commonJS({
47560
47560
  var ESC = "\x1B";
47561
47561
  var CSI = `${ESC}[`;
47562
47562
  var beep = "\x07";
47563
- var cursor = {
47563
+ var cursor2 = {
47564
47564
  to(x2, y) {
47565
47565
  if (!y) return `${CSI}${x2 + 1}G`;
47566
47566
  return `${CSI}${y + 1};${x2 + 1}H`;
@@ -47599,13 +47599,13 @@ var require_src21 = __commonJS({
47599
47599
  lines(count) {
47600
47600
  let clear = "";
47601
47601
  for (let i = 0; i < count; i++)
47602
- clear += this.line + (i < count - 1 ? cursor.up() : "");
47602
+ clear += this.line + (i < count - 1 ? cursor2.up() : "");
47603
47603
  if (count)
47604
- clear += cursor.left;
47604
+ clear += cursor2.left;
47605
47605
  return clear;
47606
47606
  }
47607
47607
  };
47608
- module2.exports = { cursor, scroll, erase, beep };
47608
+ module2.exports = { cursor: cursor2, scroll, erase, beep };
47609
47609
  }
47610
47610
  });
47611
47611
 
@@ -47665,10 +47665,10 @@ var require_clear = __commonJS({
47665
47665
  var strip = require_strip();
47666
47666
  var _require = require_src21();
47667
47667
  var erase = _require.erase;
47668
- var cursor = _require.cursor;
47668
+ var cursor2 = _require.cursor;
47669
47669
  var width = (str) => [...strip(str)].length;
47670
47670
  module2.exports = function(prompt, perLine) {
47671
- if (!perLine) return erase.line + cursor.to(0);
47671
+ if (!perLine) return erase.line + cursor2.to(0);
47672
47672
  let rows = 0;
47673
47673
  const lines = prompt.split(/\r?\n/);
47674
47674
  var _iterator = _createForOfIteratorHelper(lines), _step;
@@ -47807,9 +47807,9 @@ var require_entriesToDisplay = __commonJS({
47807
47807
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.js"(exports, module2) {
47808
47808
  "use strict";
47809
47809
  init_esm_shims();
47810
- module2.exports = (cursor, total, maxVisible) => {
47810
+ module2.exports = (cursor2, total, maxVisible) => {
47811
47811
  maxVisible = maxVisible || total;
47812
- let startIndex = Math.min(total - maxVisible, cursor - Math.floor(maxVisible / 2));
47812
+ let startIndex = Math.min(total - maxVisible, cursor2 - Math.floor(maxVisible / 2));
47813
47813
  if (startIndex < 0) startIndex = 0;
47814
47814
  let endIndex = Math.min(startIndex + maxVisible, total);
47815
47815
  return {
@@ -47849,7 +47849,7 @@ var require_prompt = __commonJS({
47849
47849
  var EventEmitter2 = __require("events");
47850
47850
  var _require2 = require_src21();
47851
47851
  var beep = _require2.beep;
47852
- var cursor = _require2.cursor;
47852
+ var cursor2 = _require2.cursor;
47853
47853
  var color = require_kleur();
47854
47854
  var Prompt = class extends EventEmitter2 {
47855
47855
  constructor(opts = {}) {
@@ -47876,7 +47876,7 @@ var require_prompt = __commonJS({
47876
47876
  }
47877
47877
  };
47878
47878
  this.close = () => {
47879
- this.out.write(cursor.show);
47879
+ this.out.write(cursor2.show);
47880
47880
  this.in.removeListener("keypress", keypress);
47881
47881
  if (this.in.isTTY) this.in.setRawMode(false);
47882
47882
  rl.close();
@@ -47942,7 +47942,7 @@ var require_text = __commonJS({
47942
47942
  var Prompt = require_prompt();
47943
47943
  var _require = require_src21();
47944
47944
  var erase = _require.erase;
47945
- var cursor = _require.cursor;
47945
+ var cursor2 = _require.cursor;
47946
47946
  var _require2 = require_util9();
47947
47947
  var style = _require2.style;
47948
47948
  var clear = _require2.clear;
@@ -48103,7 +48103,7 @@ var require_text = __commonJS({
48103
48103
  render() {
48104
48104
  if (this.closed) return;
48105
48105
  if (!this.firstRender) {
48106
- if (this.outputError) this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
48106
+ if (this.outputError) this.out.write(cursor2.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
48107
48107
  this.out.write(clear(this.outputText, this.out.columns));
48108
48108
  }
48109
48109
  super.render();
@@ -48114,7 +48114,7 @@ var require_text = __commonJS({
48114
48114
  `).reduce((a, l, i) => a + `
48115
48115
  ${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
48116
48116
  }
48117
- this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));
48117
+ this.out.write(erase.line + cursor2.to(0) + this.outputText + cursor2.save + this.outputError + cursor2.restore + cursor2.move(this.cursorOffset, 0));
48118
48118
  }
48119
48119
  };
48120
48120
  module2.exports = TextPrompt;
@@ -48135,7 +48135,7 @@ var require_select = __commonJS({
48135
48135
  var wrap2 = _require.wrap;
48136
48136
  var entriesToDisplay = _require.entriesToDisplay;
48137
48137
  var _require2 = require_src21();
48138
- var cursor = _require2.cursor;
48138
+ var cursor2 = _require2.cursor;
48139
48139
  var SelectPrompt = class extends Prompt {
48140
48140
  constructor(opts = {}) {
48141
48141
  super(opts);
@@ -48227,7 +48227,7 @@ var require_select = __commonJS({
48227
48227
  }
48228
48228
  render() {
48229
48229
  if (this.closed) return;
48230
- if (this.firstRender) this.out.write(cursor.hide);
48230
+ if (this.firstRender) this.out.write(cursor2.hide);
48231
48231
  else this.out.write(clear(this.outputText, this.out.columns));
48232
48232
  super.render();
48233
48233
  let _entriesToDisplay = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage), startIndex = _entriesToDisplay.startIndex, endIndex = _entriesToDisplay.endIndex;
@@ -48281,7 +48281,7 @@ var require_toggle = __commonJS({
48281
48281
  var style = _require.style;
48282
48282
  var clear = _require.clear;
48283
48283
  var _require2 = require_src21();
48284
- var cursor = _require2.cursor;
48284
+ var cursor2 = _require2.cursor;
48285
48285
  var erase = _require2.erase;
48286
48286
  var TogglePrompt = class extends Prompt {
48287
48287
  constructor(opts = {}) {
@@ -48358,11 +48358,11 @@ var require_toggle = __commonJS({
48358
48358
  }
48359
48359
  render() {
48360
48360
  if (this.closed) return;
48361
- if (this.firstRender) this.out.write(cursor.hide);
48361
+ if (this.firstRender) this.out.write(cursor2.hide);
48362
48362
  else this.out.write(clear(this.outputText, this.out.columns));
48363
48363
  super.render();
48364
48364
  this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.value ? this.inactive : color.cyan().underline(this.inactive), color.gray("/"), this.value ? color.cyan().underline(this.active) : this.active].join(" ");
48365
- this.out.write(erase.line + cursor.to(0) + this.outputText);
48365
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
48366
48366
  }
48367
48367
  };
48368
48368
  module2.exports = TogglePrompt;
@@ -48698,7 +48698,7 @@ var require_date = __commonJS({
48698
48698
  var figures = _require.figures;
48699
48699
  var _require2 = require_src21();
48700
48700
  var erase = _require2.erase;
48701
- var cursor = _require2.cursor;
48701
+ var cursor2 = _require2.cursor;
48702
48702
  var _require3 = require_dateparts();
48703
48703
  var DatePart = _require3.DatePart;
48704
48704
  var Meridiem = _require3.Meridiem;
@@ -48868,7 +48868,7 @@ var require_date = __commonJS({
48868
48868
  }
48869
48869
  render() {
48870
48870
  if (this.closed) return;
48871
- if (this.firstRender) this.out.write(cursor.hide);
48871
+ if (this.firstRender) this.out.write(cursor2.hide);
48872
48872
  else this.out.write(clear(this.outputText, this.out.columns));
48873
48873
  super.render();
48874
48874
  this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.parts.reduce((arr, p, idx) => arr.concat(idx === this.cursor && !this.done ? color.cyan().underline(p.toString()) : p), []).join("")].join(" ");
@@ -48876,7 +48876,7 @@ var require_date = __commonJS({
48876
48876
  this.outputText += this.errorMsg.split("\n").reduce((a, l, i) => a + `
48877
48877
  ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
48878
48878
  }
48879
- this.out.write(erase.line + cursor.to(0) + this.outputText);
48879
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
48880
48880
  }
48881
48881
  };
48882
48882
  module2.exports = DatePrompt;
@@ -48920,7 +48920,7 @@ var require_number = __commonJS({
48920
48920
  var color = require_kleur();
48921
48921
  var Prompt = require_prompt();
48922
48922
  var _require = require_src21();
48923
- var cursor = _require.cursor;
48923
+ var cursor2 = _require.cursor;
48924
48924
  var erase = _require.erase;
48925
48925
  var _require2 = require_util9();
48926
48926
  var style = _require2.style;
@@ -49081,7 +49081,7 @@ var require_number = __commonJS({
49081
49081
  render() {
49082
49082
  if (this.closed) return;
49083
49083
  if (!this.firstRender) {
49084
- if (this.outputError) this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
49084
+ if (this.outputError) this.out.write(cursor2.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
49085
49085
  this.out.write(clear(this.outputText, this.out.columns));
49086
49086
  }
49087
49087
  super.render();
@@ -49092,7 +49092,7 @@ var require_number = __commonJS({
49092
49092
  `).reduce((a, l, i) => a + `
49093
49093
  ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
49094
49094
  }
49095
- this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);
49095
+ this.out.write(erase.line + cursor2.to(0) + this.outputText + cursor2.save + this.outputError + cursor2.restore);
49096
49096
  }
49097
49097
  };
49098
49098
  module2.exports = NumberPrompt;
@@ -49106,7 +49106,7 @@ var require_multiselect = __commonJS({
49106
49106
  init_esm_shims();
49107
49107
  var color = require_kleur();
49108
49108
  var _require = require_src21();
49109
- var cursor = _require.cursor;
49109
+ var cursor2 = _require.cursor;
49110
49110
  var Prompt = require_prompt();
49111
49111
  var _require2 = require_util9();
49112
49112
  var clear = _require2.clear;
@@ -49258,14 +49258,14 @@ Instructions:
49258
49258
  }
49259
49259
  return "";
49260
49260
  }
49261
- renderOption(cursor2, v, i, arrowIndicator) {
49261
+ renderOption(cursor3, v, i, arrowIndicator) {
49262
49262
  const prefix = (v.selected ? color.green(figures.radioOn) : figures.radioOff) + " " + arrowIndicator + " ";
49263
49263
  let title, desc;
49264
49264
  if (v.disabled) {
49265
- title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
49265
+ title = cursor3 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
49266
49266
  } else {
49267
- title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
49268
- if (cursor2 === i && v.description) {
49267
+ title = cursor3 === i ? color.cyan().underline(v.title) : v.title;
49268
+ if (cursor3 === i && v.description) {
49269
49269
  desc = ` - ${v.description}`;
49270
49270
  if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {
49271
49271
  desc = "\n" + wrap2(v.description, {
@@ -49315,7 +49315,7 @@ Instructions:
49315
49315
  }
49316
49316
  render() {
49317
49317
  if (this.closed) return;
49318
- if (this.firstRender) this.out.write(cursor.hide);
49318
+ if (this.firstRender) this.out.write(cursor2.hide);
49319
49319
  super.render();
49320
49320
  let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.renderDoneOrInstructions()].join(" ");
49321
49321
  if (this.showMinError) {
@@ -49369,7 +49369,7 @@ var require_autocomplete = __commonJS({
49369
49369
  var Prompt = require_prompt();
49370
49370
  var _require = require_src21();
49371
49371
  var erase = _require.erase;
49372
- var cursor = _require.cursor;
49372
+ var cursor2 = _require.cursor;
49373
49373
  var _require2 = require_util9();
49374
49374
  var style = _require2.style;
49375
49375
  var clear = _require2.clear;
@@ -49570,7 +49570,7 @@ var require_autocomplete = __commonJS({
49570
49570
  }
49571
49571
  render() {
49572
49572
  if (this.closed) return;
49573
- if (this.firstRender) this.out.write(cursor.hide);
49573
+ if (this.firstRender) this.out.write(cursor2.hide);
49574
49574
  else this.out.write(clear(this.outputText, this.out.columns));
49575
49575
  super.render();
49576
49576
  let _entriesToDisplay = entriesToDisplay(this.select, this.choices.length, this.limit), startIndex = _entriesToDisplay.startIndex, endIndex = _entriesToDisplay.endIndex;
@@ -49580,7 +49580,7 @@ var require_autocomplete = __commonJS({
49580
49580
  this.outputText += `
49581
49581
  ` + (suggestions || color.gray(this.fallback.title));
49582
49582
  }
49583
- this.out.write(erase.line + cursor.to(0) + this.outputText);
49583
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
49584
49584
  }
49585
49585
  };
49586
49586
  module2.exports = AutocompletePrompt;
@@ -49594,7 +49594,7 @@ var require_autocompleteMultiselect = __commonJS({
49594
49594
  init_esm_shims();
49595
49595
  var color = require_kleur();
49596
49596
  var _require = require_src21();
49597
- var cursor = _require.cursor;
49597
+ var cursor2 = _require.cursor;
49598
49598
  var MultiselectPrompt = require_multiselect();
49599
49599
  var _require2 = require_util9();
49600
49600
  var clear = _require2.clear;
@@ -49713,10 +49713,10 @@ Instructions:
49713
49713
  Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter something to filter")}
49714
49714
  `;
49715
49715
  }
49716
- renderOption(cursor2, v, i) {
49716
+ renderOption(cursor3, v, i) {
49717
49717
  let title;
49718
- if (v.disabled) title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
49719
- else title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
49718
+ if (v.disabled) title = cursor3 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
49719
+ else title = cursor3 === i ? color.cyan().underline(v.title) : v.title;
49720
49720
  return (v.selected ? color.green(figures.radioOn) : figures.radioOff) + " " + title;
49721
49721
  }
49722
49722
  renderDoneOrInstructions() {
@@ -49731,7 +49731,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
49731
49731
  }
49732
49732
  render() {
49733
49733
  if (this.closed) return;
49734
- if (this.firstRender) this.out.write(cursor.hide);
49734
+ if (this.firstRender) this.out.write(cursor2.hide);
49735
49735
  super.render();
49736
49736
  let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.renderDoneOrInstructions()].join(" ");
49737
49737
  if (this.showMinError) {
@@ -49759,7 +49759,7 @@ var require_confirm = __commonJS({
49759
49759
  var clear = _require.clear;
49760
49760
  var _require2 = require_src21();
49761
49761
  var erase = _require2.erase;
49762
- var cursor = _require2.cursor;
49762
+ var cursor2 = _require2.cursor;
49763
49763
  var ConfirmPrompt = class extends Prompt {
49764
49764
  constructor(opts = {}) {
49765
49765
  super(opts);
@@ -49809,11 +49809,11 @@ var require_confirm = __commonJS({
49809
49809
  }
49810
49810
  render() {
49811
49811
  if (this.closed) return;
49812
- if (this.firstRender) this.out.write(cursor.hide);
49812
+ if (this.firstRender) this.out.write(cursor2.hide);
49813
49813
  else this.out.write(clear(this.outputText, this.out.columns));
49814
49814
  super.render();
49815
49815
  this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(" ");
49816
- this.out.write(erase.line + cursor.to(0) + this.outputText);
49816
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
49817
49817
  }
49818
49818
  };
49819
49819
  module2.exports = ConfirmPrompt;
@@ -50185,10 +50185,10 @@ var require_clear2 = __commonJS({
50185
50185
  "use strict";
50186
50186
  init_esm_shims();
50187
50187
  var strip = require_strip2();
50188
- var { erase, cursor } = require_src21();
50188
+ var { erase, cursor: cursor2 } = require_src21();
50189
50189
  var width = (str) => [...strip(str)].length;
50190
50190
  module2.exports = function(prompt, perLine) {
50191
- if (!perLine) return erase.line + cursor.to(0);
50191
+ if (!perLine) return erase.line + cursor2.to(0);
50192
50192
  let rows = 0;
50193
50193
  const lines = prompt.split(/\r?\n/);
50194
50194
  for (let line2 of lines) {
@@ -50308,9 +50308,9 @@ var require_entriesToDisplay2 = __commonJS({
50308
50308
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.js"(exports, module2) {
50309
50309
  "use strict";
50310
50310
  init_esm_shims();
50311
- module2.exports = (cursor, total, maxVisible) => {
50311
+ module2.exports = (cursor2, total, maxVisible) => {
50312
50312
  maxVisible = maxVisible || total;
50313
- let startIndex = Math.min(total - maxVisible, cursor - Math.floor(maxVisible / 2));
50313
+ let startIndex = Math.min(total - maxVisible, cursor2 - Math.floor(maxVisible / 2));
50314
50314
  if (startIndex < 0) startIndex = 0;
50315
50315
  let endIndex = Math.min(startIndex + maxVisible, total);
50316
50316
  return { startIndex, endIndex };
@@ -50344,7 +50344,7 @@ var require_prompt2 = __commonJS({
50344
50344
  var readline = __require("readline");
50345
50345
  var { action } = require_util10();
50346
50346
  var EventEmitter2 = __require("events");
50347
- var { beep, cursor } = require_src21();
50347
+ var { beep, cursor: cursor2 } = require_src21();
50348
50348
  var color = require_kleur();
50349
50349
  var Prompt = class extends EventEmitter2 {
50350
50350
  constructor(opts = {}) {
@@ -50368,7 +50368,7 @@ var require_prompt2 = __commonJS({
50368
50368
  }
50369
50369
  };
50370
50370
  this.close = () => {
50371
- this.out.write(cursor.show);
50371
+ this.out.write(cursor2.show);
50372
50372
  this.in.removeListener("keypress", keypress);
50373
50373
  if (this.in.isTTY) this.in.setRawMode(false);
50374
50374
  rl.close();
@@ -50403,7 +50403,7 @@ var require_text2 = __commonJS({
50403
50403
  init_esm_shims();
50404
50404
  var color = require_kleur();
50405
50405
  var Prompt = require_prompt2();
50406
- var { erase, cursor } = require_src21();
50406
+ var { erase, cursor: cursor2 } = require_src21();
50407
50407
  var { style, clear, lines, figures } = require_util10();
50408
50408
  var TextPrompt = class extends Prompt {
50409
50409
  constructor(opts = {}) {
@@ -50555,7 +50555,7 @@ var require_text2 = __commonJS({
50555
50555
  if (this.closed) return;
50556
50556
  if (!this.firstRender) {
50557
50557
  if (this.outputError)
50558
- this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
50558
+ this.out.write(cursor2.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
50559
50559
  this.out.write(clear(this.outputText, this.out.columns));
50560
50560
  }
50561
50561
  super.render();
@@ -50571,7 +50571,7 @@ var require_text2 = __commonJS({
50571
50571
  `).reduce((a, l, i) => a + `
50572
50572
  ${i ? " " : figures.pointerSmall} ${color.red().italic(l)}`, ``);
50573
50573
  }
50574
- this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));
50574
+ this.out.write(erase.line + cursor2.to(0) + this.outputText + cursor2.save + this.outputError + cursor2.restore + cursor2.move(this.cursorOffset, 0));
50575
50575
  }
50576
50576
  };
50577
50577
  module2.exports = TextPrompt;
@@ -50586,7 +50586,7 @@ var require_select2 = __commonJS({
50586
50586
  var color = require_kleur();
50587
50587
  var Prompt = require_prompt2();
50588
50588
  var { style, clear, figures, wrap: wrap2, entriesToDisplay } = require_util10();
50589
- var { cursor } = require_src21();
50589
+ var { cursor: cursor2 } = require_src21();
50590
50590
  var SelectPrompt = class extends Prompt {
50591
50591
  constructor(opts = {}) {
50592
50592
  super(opts);
@@ -50677,7 +50677,7 @@ var require_select2 = __commonJS({
50677
50677
  }
50678
50678
  render() {
50679
50679
  if (this.closed) return;
50680
- if (this.firstRender) this.out.write(cursor.hide);
50680
+ if (this.firstRender) this.out.write(cursor2.hide);
50681
50681
  else this.out.write(clear(this.outputText, this.out.columns));
50682
50682
  super.render();
50683
50683
  let { startIndex, endIndex } = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage);
@@ -50730,7 +50730,7 @@ var require_toggle2 = __commonJS({
50730
50730
  var color = require_kleur();
50731
50731
  var Prompt = require_prompt2();
50732
50732
  var { style, clear } = require_util10();
50733
- var { cursor, erase } = require_src21();
50733
+ var { cursor: cursor2, erase } = require_src21();
50734
50734
  var TogglePrompt = class extends Prompt {
50735
50735
  constructor(opts = {}) {
50736
50736
  super(opts);
@@ -50806,7 +50806,7 @@ var require_toggle2 = __commonJS({
50806
50806
  }
50807
50807
  render() {
50808
50808
  if (this.closed) return;
50809
- if (this.firstRender) this.out.write(cursor.hide);
50809
+ if (this.firstRender) this.out.write(cursor2.hide);
50810
50810
  else this.out.write(clear(this.outputText, this.out.columns));
50811
50811
  super.render();
50812
50812
  this.outputText = [
@@ -50817,7 +50817,7 @@ var require_toggle2 = __commonJS({
50817
50817
  color.gray("/"),
50818
50818
  this.value ? color.cyan().underline(this.active) : this.active
50819
50819
  ].join(" ");
50820
- this.out.write(erase.line + cursor.to(0) + this.outputText);
50820
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
50821
50821
  }
50822
50822
  };
50823
50823
  module2.exports = TogglePrompt;
@@ -51115,7 +51115,7 @@ var require_date2 = __commonJS({
51115
51115
  var color = require_kleur();
51116
51116
  var Prompt = require_prompt2();
51117
51117
  var { style, clear, figures } = require_util10();
51118
- var { erase, cursor } = require_src21();
51118
+ var { erase, cursor: cursor2 } = require_src21();
51119
51119
  var { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require_dateparts2();
51120
51120
  var regex = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
51121
51121
  var regexGroups = {
@@ -51264,7 +51264,7 @@ var require_date2 = __commonJS({
51264
51264
  }
51265
51265
  render() {
51266
51266
  if (this.closed) return;
51267
- if (this.firstRender) this.out.write(cursor.hide);
51267
+ if (this.firstRender) this.out.write(cursor2.hide);
51268
51268
  else this.out.write(clear(this.outputText, this.out.columns));
51269
51269
  super.render();
51270
51270
  this.outputText = [
@@ -51280,7 +51280,7 @@ ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`,
51280
51280
  ``
51281
51281
  );
51282
51282
  }
51283
- this.out.write(erase.line + cursor.to(0) + this.outputText);
51283
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
51284
51284
  }
51285
51285
  };
51286
51286
  module2.exports = DatePrompt;
@@ -51294,7 +51294,7 @@ var require_number2 = __commonJS({
51294
51294
  init_esm_shims();
51295
51295
  var color = require_kleur();
51296
51296
  var Prompt = require_prompt2();
51297
- var { cursor, erase } = require_src21();
51297
+ var { cursor: cursor2, erase } = require_src21();
51298
51298
  var { style, figures, clear, lines } = require_util10();
51299
51299
  var isNumber = /[0-9]/;
51300
51300
  var isDef = (any2) => any2 !== void 0;
@@ -51445,7 +51445,7 @@ var require_number2 = __commonJS({
51445
51445
  if (this.closed) return;
51446
51446
  if (!this.firstRender) {
51447
51447
  if (this.outputError)
51448
- this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
51448
+ this.out.write(cursor2.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
51449
51449
  this.out.write(clear(this.outputText, this.out.columns));
51450
51450
  }
51451
51451
  super.render();
@@ -51461,7 +51461,7 @@ var require_number2 = __commonJS({
51461
51461
  `).reduce((a, l, i) => a + `
51462
51462
  ${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);
51463
51463
  }
51464
- this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);
51464
+ this.out.write(erase.line + cursor2.to(0) + this.outputText + cursor2.save + this.outputError + cursor2.restore);
51465
51465
  }
51466
51466
  };
51467
51467
  module2.exports = NumberPrompt;
@@ -51474,7 +51474,7 @@ var require_multiselect2 = __commonJS({
51474
51474
  "use strict";
51475
51475
  init_esm_shims();
51476
51476
  var color = require_kleur();
51477
- var { cursor } = require_src21();
51477
+ var { cursor: cursor2 } = require_src21();
51478
51478
  var Prompt = require_prompt2();
51479
51479
  var { clear, figures, style, wrap: wrap2, entriesToDisplay } = require_util10();
51480
51480
  var MultiselectPrompt = class extends Prompt {
@@ -51619,14 +51619,14 @@ Instructions:
51619
51619
  }
51620
51620
  return "";
51621
51621
  }
51622
- renderOption(cursor2, v, i, arrowIndicator) {
51622
+ renderOption(cursor3, v, i, arrowIndicator) {
51623
51623
  const prefix = (v.selected ? color.green(figures.radioOn) : figures.radioOff) + " " + arrowIndicator + " ";
51624
51624
  let title, desc;
51625
51625
  if (v.disabled) {
51626
- title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
51626
+ title = cursor3 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
51627
51627
  } else {
51628
- title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
51629
- if (cursor2 === i && v.description) {
51628
+ title = cursor3 === i ? color.cyan().underline(v.title) : v.title;
51629
+ if (cursor3 === i && v.description) {
51630
51630
  desc = ` - ${v.description}`;
51631
51631
  if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\r?\n/).length > 1) {
51632
51632
  desc = "\n" + wrap2(v.description, { margin: prefix.length, width: this.out.columns });
@@ -51673,7 +51673,7 @@ Instructions:
51673
51673
  }
51674
51674
  render() {
51675
51675
  if (this.closed) return;
51676
- if (this.firstRender) this.out.write(cursor.hide);
51676
+ if (this.firstRender) this.out.write(cursor2.hide);
51677
51677
  super.render();
51678
51678
  let prompt = [
51679
51679
  style.symbol(this.done, this.aborted),
@@ -51701,7 +51701,7 @@ var require_autocomplete2 = __commonJS({
51701
51701
  init_esm_shims();
51702
51702
  var color = require_kleur();
51703
51703
  var Prompt = require_prompt2();
51704
- var { erase, cursor } = require_src21();
51704
+ var { erase, cursor: cursor2 } = require_src21();
51705
51705
  var { style, clear, figures, wrap: wrap2, entriesToDisplay } = require_util10();
51706
51706
  var getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);
51707
51707
  var getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);
@@ -51884,7 +51884,7 @@ var require_autocomplete2 = __commonJS({
51884
51884
  }
51885
51885
  render() {
51886
51886
  if (this.closed) return;
51887
- if (this.firstRender) this.out.write(cursor.hide);
51887
+ if (this.firstRender) this.out.write(cursor2.hide);
51888
51888
  else this.out.write(clear(this.outputText, this.out.columns));
51889
51889
  super.render();
51890
51890
  let { startIndex, endIndex } = entriesToDisplay(this.select, this.choices.length, this.limit);
@@ -51904,7 +51904,7 @@ var require_autocomplete2 = __commonJS({
51904
51904
  this.outputText += `
51905
51905
  ` + (suggestions || color.gray(this.fallback.title));
51906
51906
  }
51907
- this.out.write(erase.line + cursor.to(0) + this.outputText);
51907
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
51908
51908
  }
51909
51909
  };
51910
51910
  module2.exports = AutocompletePrompt;
@@ -51917,7 +51917,7 @@ var require_autocompleteMultiselect2 = __commonJS({
51917
51917
  "use strict";
51918
51918
  init_esm_shims();
51919
51919
  var color = require_kleur();
51920
- var { cursor } = require_src21();
51920
+ var { cursor: cursor2 } = require_src21();
51921
51921
  var MultiselectPrompt = require_multiselect2();
51922
51922
  var { clear, style, figures } = require_util10();
51923
51923
  var AutocompleteMultiselectPrompt = class extends MultiselectPrompt {
@@ -52033,10 +52033,10 @@ Instructions:
52033
52033
  Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter something to filter")}
52034
52034
  `;
52035
52035
  }
52036
- renderOption(cursor2, v, i) {
52036
+ renderOption(cursor3, v, i) {
52037
52037
  let title;
52038
- if (v.disabled) title = cursor2 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
52039
- else title = cursor2 === i ? color.cyan().underline(v.title) : v.title;
52038
+ if (v.disabled) title = cursor3 === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);
52039
+ else title = cursor3 === i ? color.cyan().underline(v.title) : v.title;
52040
52040
  return (v.selected ? color.green(figures.radioOn) : figures.radioOff) + " " + title;
52041
52041
  }
52042
52042
  renderDoneOrInstructions() {
@@ -52051,7 +52051,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : color.gray("Enter so
52051
52051
  }
52052
52052
  render() {
52053
52053
  if (this.closed) return;
52054
- if (this.firstRender) this.out.write(cursor.hide);
52054
+ if (this.firstRender) this.out.write(cursor2.hide);
52055
52055
  super.render();
52056
52056
  let prompt = [
52057
52057
  style.symbol(this.done, this.aborted),
@@ -52080,7 +52080,7 @@ var require_confirm2 = __commonJS({
52080
52080
  var color = require_kleur();
52081
52081
  var Prompt = require_prompt2();
52082
52082
  var { style, clear } = require_util10();
52083
- var { erase, cursor } = require_src21();
52083
+ var { erase, cursor: cursor2 } = require_src21();
52084
52084
  var ConfirmPrompt = class extends Prompt {
52085
52085
  constructor(opts = {}) {
52086
52086
  super(opts);
@@ -52130,7 +52130,7 @@ var require_confirm2 = __commonJS({
52130
52130
  }
52131
52131
  render() {
52132
52132
  if (this.closed) return;
52133
- if (this.firstRender) this.out.write(cursor.hide);
52133
+ if (this.firstRender) this.out.write(cursor2.hide);
52134
52134
  else this.out.write(clear(this.outputText, this.out.columns));
52135
52135
  super.render();
52136
52136
  this.outputText = [
@@ -52139,7 +52139,7 @@ var require_confirm2 = __commonJS({
52139
52139
  style.delimiter(this.done),
52140
52140
  this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)
52141
52141
  ].join(" ");
52142
- this.out.write(erase.line + cursor.to(0) + this.outputText);
52142
+ this.out.write(erase.line + cursor2.to(0) + this.outputText);
52143
52143
  }
52144
52144
  };
52145
52145
  module2.exports = ConfirmPrompt;
@@ -74083,7 +74083,7 @@ if (DSN) {
74083
74083
  init2({
74084
74084
  dsn: DSN,
74085
74085
  environment: process.env.SENTRY_ENVIRONMENT ?? "production",
74086
- release: "9.180.12",
74086
+ release: "9.180.14",
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.180.12",
74105
+ version: "9.180.14",
74106
74106
  command: process.argv.slice(2).join(" ")
74107
74107
  });
74108
74108
  setContext("runtime", {
@@ -96612,6 +96612,9 @@ var downgradeResponseSchema = external_exports.object({
96612
96612
  success: external_exports.boolean(),
96613
96613
  effectiveDate: external_exports.string().nullable()
96614
96614
  });
96615
+ var restoreResponseSchema = external_exports.object({
96616
+ success: external_exports.boolean()
96617
+ });
96615
96618
  var zeroBillingDowngradeContract = c10.router({
96616
96619
  create: {
96617
96620
  method: "POST",
@@ -96630,6 +96633,23 @@ var zeroBillingDowngradeContract = c10.router({
96630
96633
  summary: "Downgrade subscription to a lower tier"
96631
96634
  }
96632
96635
  });
96636
+ var zeroBillingRestoreContract = c10.router({
96637
+ create: {
96638
+ method: "POST",
96639
+ path: "/api/zero/billing/restore",
96640
+ headers: authHeadersSchema,
96641
+ body: external_exports.object({}),
96642
+ responses: {
96643
+ 200: restoreResponseSchema,
96644
+ 401: apiErrorSchema,
96645
+ 403: apiErrorSchema,
96646
+ 409: apiErrorSchema,
96647
+ 500: apiErrorSchema,
96648
+ 503: apiErrorSchema
96649
+ },
96650
+ summary: "Restore a subscription scheduled for cancellation"
96651
+ }
96652
+ });
96633
96653
  var zeroBillingRedeemContract = c10.router({
96634
96654
  create: {
96635
96655
  method: "POST",
@@ -101005,6 +101025,44 @@ var crustdata = {
101005
101025
  }
101006
101026
  };
101007
101027
 
101028
+ // ../../packages/connectors/src/connectors/cursor.ts
101029
+ init_esm_shims();
101030
+ var cursor = {
101031
+ cursor: {
101032
+ label: "Cursor",
101033
+ category: "ai-agent-apps",
101034
+ helpText: "Connect your Cursor account to launch and manage cloud coding agents via the Cursor Cloud Agents API",
101035
+ authMethods: {
101036
+ "api-token": {
101037
+ label: "API Key",
101038
+ helpText: "1. Sign in at [cursor.com](https://cursor.com)\n2. Open **Dashboard \u2192 API Keys** ([cursor.com/dashboard/api](https://cursor.com/dashboard/api))\n3. Click **Create API Key**\n4. Copy the key (it begins with `key_`). Paste it here.",
101039
+ storage: {
101040
+ secrets: ["CURSOR_TOKEN"],
101041
+ variables: []
101042
+ },
101043
+ grant: {
101044
+ kind: "manual",
101045
+ fields: {
101046
+ CURSOR_TOKEN: {
101047
+ label: "API Key",
101048
+ required: true,
101049
+ placeholder: "key_c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ff"
101050
+ }
101051
+ }
101052
+ },
101053
+ access: {
101054
+ kind: "static",
101055
+ envBindings: {
101056
+ CURSOR_TOKEN: "$secrets.CURSOR_TOKEN"
101057
+ }
101058
+ },
101059
+ revoke: { kind: "none" }
101060
+ }
101061
+ },
101062
+ defaultAuthMethod: "api-token"
101063
+ }
101064
+ };
101065
+
101008
101066
  // ../../packages/connectors/src/connectors/customer-io.ts
101009
101067
  init_esm_shims();
101010
101068
  var customerIo = {
@@ -108656,6 +108714,7 @@ var CONNECTOR_TYPES_DEF = defineConnectors({
108656
108714
  ...coresignal,
108657
108715
  ...cronlytic,
108658
108716
  ...crustdata,
108717
+ ...cursor,
108659
108718
  ...customerIo,
108660
108719
  ...db9,
108661
108720
  ...deel,
@@ -117687,7 +117746,7 @@ var CONNECTOR_AUTH_METHOD_PRIORITY = {
117687
117746
  function connectorAuthMethodPriority(authMethod) {
117688
117747
  return CONNECTOR_AUTH_METHOD_PRIORITY[authMethod];
117689
117748
  }
117690
- function getConfiguredConnectorAuthMethods(type) {
117749
+ function getConfiguredConnectorAuthMethodIds(type) {
117691
117750
  return Object.keys(CONNECTOR_TYPES[type].authMethods).map((authMethod) => {
117692
117751
  return connectorAuthMethodIdSchema.parse(authMethod);
117693
117752
  }).sort((a, b) => {
@@ -117734,7 +117793,7 @@ function getConnectorGenerationTypes(type) {
117734
117793
  const config4 = CONNECTOR_TYPES[type];
117735
117794
  return "generation" in config4 ? config4.generation ?? [] : [];
117736
117795
  }
117737
- function connectorMethodOwnedSecretNames(method) {
117796
+ function connectorAuthMethodOwnedSecretNames(method) {
117738
117797
  return method ? [...method.storage.secrets] : [];
117739
117798
  }
117740
117799
  function getConnectorAuthMethodEnvBindings(type, authMethod) {
@@ -117743,7 +117802,7 @@ function getConnectorAuthMethodEnvBindings(type, authMethod) {
117743
117802
  }
117744
117803
  function getConnectorEnvBindingEntries(type) {
117745
117804
  const entries = [];
117746
- for (const authMethod of getConfiguredConnectorAuthMethods(type)) {
117805
+ for (const authMethod of getConfiguredConnectorAuthMethodIds(type)) {
117747
117806
  const envBindings = getConnectorAuthMethodEnvBindings(type, authMethod);
117748
117807
  for (const [envName, valueRef] of Object.entries(envBindings)) {
117749
117808
  entries.push({ authMethod, envName, valueRef });
@@ -117756,7 +117815,7 @@ function getConnectorStoredSecretDisplayInfo(secretName) {
117756
117815
  for (const type of allTypes) {
117757
117816
  const config4 = CONNECTOR_TYPES[type];
117758
117817
  const found = Object.values(config4.authMethods).some((method) => {
117759
- return connectorMethodOwnedSecretNames(method).includes(secretName);
117818
+ return connectorAuthMethodOwnedSecretNames(method).includes(secretName);
117760
117819
  });
117761
117820
  if (!found) {
117762
117821
  continue;
@@ -119463,6 +119522,27 @@ var crustdataFirewall = {
119463
119522
  ]
119464
119523
  };
119465
119524
 
119525
+ // ../../packages/connectors/src/firewalls/cursor.generated.ts
119526
+ init_esm_shims();
119527
+ var cursorFirewall = {
119528
+ name: "cursor",
119529
+ description: "Cursor",
119530
+ placeholders: {
119531
+ CURSOR_TOKEN: "key_c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ffee5afe10ca1c0ff"
119532
+ },
119533
+ apis: [
119534
+ {
119535
+ base: "https://api.cursor.com",
119536
+ auth: {
119537
+ headers: {
119538
+ Authorization: "Bearer ${{ secrets.CURSOR_TOKEN }}"
119539
+ }
119540
+ },
119541
+ permissions: []
119542
+ }
119543
+ ]
119544
+ };
119545
+
119466
119546
  // ../../packages/connectors/src/firewalls/customer-io.generated.ts
119467
119547
  init_esm_shims();
119468
119548
  var customerIoFirewall = {
@@ -129020,6 +129100,7 @@ var CONNECTOR_FIREWALLS = {
129020
129100
  coresignal: coresignalFirewall,
129021
129101
  cronlytic: cronlyticFirewall,
129022
129102
  crustdata: crustdataFirewall,
129103
+ cursor: cursorFirewall,
129023
129104
  "customer-io": customerIoFirewall,
129024
129105
  deel: deelFirewall,
129025
129106
  defillama: defillamaFirewall,
@@ -136100,7 +136181,7 @@ export {
136100
136181
  promptConfirm,
136101
136182
  promptSelect,
136102
136183
  promptPassword,
136103
- getConfiguredConnectorAuthMethods,
136184
+ getConfiguredConnectorAuthMethodIds,
136104
136185
  getConnectorAuthMethod,
136105
136186
  getConnectorGenerationTypes,
136106
136187
  getConnectorEnvBindingEntries,
@@ -136141,4 +136222,4 @@ undici/lib/web/fetch/body.js:
136141
136222
  undici/lib/web/websocket/frame.js:
136142
136223
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
136143
136224
  */
136144
- //# sourceMappingURL=chunk-6L4Z5I4P.js.map
136225
+ //# sourceMappingURL=chunk-GR23TPWA.js.map