@_davideast/stitch-mcp 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ var __export = (target, all) => {
26
26
  });
27
27
  };
28
28
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
+ var __promiseAll = (args) => Promise.all(args);
29
30
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
31
 
31
32
  // node_modules/adm-zip/util/constants.js
@@ -2975,7 +2976,12 @@ class GcloudHandler {
2975
2976
  }
2976
2977
  const localSdkPath = getGcloudSdkPath();
2977
2978
  const localBinaryPath = joinPath(localSdkPath, "bin", this.platform.gcloudBinaryName);
2978
- if (fs.existsSync(localBinaryPath)) {
2979
+ let localExists = false;
2980
+ try {
2981
+ await fs.promises.access(localBinaryPath, fs.constants.F_OK);
2982
+ localExists = true;
2983
+ } catch {}
2984
+ if (localExists) {
2979
2985
  const version2 = await this.getVersionFromPath(localBinaryPath);
2980
2986
  if (version2) {
2981
2987
  this.gcloudPath = localBinaryPath;
@@ -3489,11 +3495,11 @@ to obtain new credentials.`);
3489
3495
  }
3490
3496
  var import_adm_zip;
3491
3497
  var init_handler = __esm(() => {
3492
- import_adm_zip = __toESM(require_adm_zip(), 1);
3493
3498
  init_detector();
3494
3499
  init_shell();
3495
3500
  init_paths();
3496
3501
  init_theme();
3502
+ import_adm_zip = __toESM(require_adm_zip(), 1);
3497
3503
  });
3498
3504
 
3499
3505
  // node_modules/@inquirer/core/dist/lib/key.js
@@ -3638,7 +3644,7 @@ var init_hook_engine = __esm(() => {
3638
3644
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
3639
3645
  function useState(defaultValue) {
3640
3646
  return withPointer((pointer) => {
3641
- const setState = AsyncResource2.bind(function setState(newValue) {
3647
+ const setState = AsyncResource2.bind(function setState2(newValue) {
3642
3648
  if (pointer.get() !== newValue) {
3643
3649
  pointer.set(newValue);
3644
3650
  handleChange();
@@ -4144,319 +4150,192 @@ var require_cli_width = __commonJS((exports, module) => {
4144
4150
  }
4145
4151
  });
4146
4152
 
4147
- // node_modules/wrap-ansi/node_modules/ansi-regex/index.js
4148
- function ansiRegex({ onlyFirst = false } = {}) {
4149
- const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
4150
- const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
4151
- const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
4152
- const pattern = `${osc}|${csi}`;
4153
- return new RegExp(pattern, onlyFirst ? undefined : "g");
4154
- }
4155
-
4156
- // node_modules/wrap-ansi/node_modules/strip-ansi/index.js
4157
- function stripAnsi(string) {
4158
- if (typeof string !== "string") {
4159
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
4160
- }
4161
- return string.replace(regex, "");
4162
- }
4163
- var regex;
4164
- var init_strip_ansi = __esm(() => {
4165
- regex = ansiRegex();
4166
- });
4167
-
4168
- // node_modules/get-east-asian-width/lookup.js
4169
- function isAmbiguous(x) {
4170
- return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
4171
- }
4172
- function isFullWidth(x) {
4153
+ // node_modules/fast-string-truncated-width/dist/utils.js
4154
+ var getCodePointsLength, isFullWidth = (x) => {
4173
4155
  return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
4174
- }
4175
- function isWide(x) {
4176
- return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x >= 94192 && x <= 94198 || x >= 94208 && x <= 101589 || x >= 101631 && x <= 101662 || x >= 101760 && x <= 101874 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128728 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129674 || x >= 129678 && x <= 129734 || x === 129736 || x >= 129741 && x <= 129756 || x >= 129759 && x <= 129770 || x >= 129775 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
4177
- }
4178
- var init_lookup = () => {};
4179
-
4180
- // node_modules/get-east-asian-width/index.js
4181
- function validate(codePoint) {
4182
- if (!Number.isSafeInteger(codePoint)) {
4183
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
4184
- }
4185
- }
4186
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
4187
- validate(codePoint);
4188
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
4189
- return 2;
4190
- }
4191
- return 1;
4192
- }
4193
- var init_get_east_asian_width = __esm(() => {
4194
- init_lookup();
4195
- init_lookup();
4196
- });
4197
-
4198
- // node_modules/wrap-ansi/node_modules/emoji-regex/index.js
4199
- var require_emoji_regex = __commonJS((exports, module) => {
4200
- module.exports = () => {
4201
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
4202
- };
4156
+ }, isWideNotCJKTNotEmoji = (x) => {
4157
+ return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
4158
+ };
4159
+ var init_utils = __esm(() => {
4160
+ getCodePointsLength = (() => {
4161
+ const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
4162
+ return (input) => {
4163
+ let surrogatePairsNr = 0;
4164
+ SURROGATE_PAIR_RE.lastIndex = 0;
4165
+ while (SURROGATE_PAIR_RE.test(input)) {
4166
+ surrogatePairsNr += 1;
4167
+ }
4168
+ return input.length - surrogatePairsNr;
4169
+ };
4170
+ })();
4203
4171
  });
4204
4172
 
4205
- // node_modules/wrap-ansi/node_modules/string-width/index.js
4206
- function stringWidth(string, options = {}) {
4207
- if (typeof string !== "string" || string.length === 0) {
4208
- return 0;
4209
- }
4210
- const {
4211
- ambiguousIsNarrow = true,
4212
- countAnsiEscapeCodes = false
4213
- } = options;
4214
- if (!countAnsiEscapeCodes) {
4215
- string = stripAnsi(string);
4216
- }
4217
- if (string.length === 0) {
4218
- return 0;
4219
- }
4173
+ // node_modules/fast-string-truncated-width/dist/index.js
4174
+ var ANSI_RE, CONTROL_RE, CJKT_WIDE_RE, TAB_RE, EMOJI_RE, LATIN_RE, MODIFIER_RE, NO_TRUNCATION, getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
4175
+ const LIMIT = truncationOptions.limit ?? Infinity;
4176
+ const ELLIPSIS = truncationOptions.ellipsis ?? "";
4177
+ const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
4178
+ const ANSI_WIDTH = 0;
4179
+ const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
4180
+ const TAB_WIDTH = widthOptions.tabWidth ?? 8;
4181
+ const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
4182
+ const FULL_WIDTH_WIDTH = 2;
4183
+ const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
4184
+ const WIDE_WIDTH = widthOptions.wideWidth ?? FULL_WIDTH_WIDTH;
4185
+ const PARSE_BLOCKS = [
4186
+ [LATIN_RE, REGULAR_WIDTH],
4187
+ [ANSI_RE, ANSI_WIDTH],
4188
+ [CONTROL_RE, CONTROL_WIDTH],
4189
+ [TAB_RE, TAB_WIDTH],
4190
+ [EMOJI_RE, EMOJI_WIDTH],
4191
+ [CJKT_WIDE_RE, WIDE_WIDTH]
4192
+ ];
4193
+ let indexPrev = 0;
4194
+ let index = 0;
4195
+ let length = input.length;
4196
+ let lengthExtra = 0;
4197
+ let truncationEnabled = false;
4198
+ let truncationIndex = length;
4199
+ let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
4200
+ let unmatchedStart = 0;
4201
+ let unmatchedEnd = 0;
4220
4202
  let width = 0;
4221
- const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
4222
- for (const { segment: character } of segmenter.segment(string)) {
4223
- const codePoint = character.codePointAt(0);
4224
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
4225
- continue;
4226
- }
4227
- if (codePoint >= 8203 && codePoint <= 8207 || codePoint === 65279) {
4228
- continue;
4229
- }
4230
- if (codePoint >= 768 && codePoint <= 879 || codePoint >= 6832 && codePoint <= 6911 || codePoint >= 7616 && codePoint <= 7679 || codePoint >= 8400 && codePoint <= 8447 || codePoint >= 65056 && codePoint <= 65071) {
4231
- continue;
4232
- }
4233
- if (codePoint >= 55296 && codePoint <= 57343) {
4234
- continue;
4235
- }
4236
- if (codePoint >= 65024 && codePoint <= 65039) {
4237
- continue;
4238
- }
4239
- if (defaultIgnorableCodePointRegex.test(character)) {
4240
- continue;
4241
- }
4242
- if (import_emoji_regex.default().test(character)) {
4243
- width += 2;
4244
- continue;
4245
- }
4246
- width += eastAsianWidth(codePoint, eastAsianWidthOptions);
4247
- }
4248
- return width;
4249
- }
4250
- var import_emoji_regex, segmenter, defaultIgnorableCodePointRegex;
4251
- var init_string_width = __esm(() => {
4252
- init_strip_ansi();
4253
- init_get_east_asian_width();
4254
- import_emoji_regex = __toESM(require_emoji_regex(), 1);
4255
- segmenter = new Intl.Segmenter;
4256
- defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
4257
- });
4258
-
4259
- // node_modules/ansi-styles/index.js
4260
- function assembleStyles2() {
4261
- const codes = new Map;
4262
- for (const [groupName, group] of Object.entries(styles3)) {
4263
- for (const [styleName, style] of Object.entries(group)) {
4264
- styles3[styleName] = {
4265
- open: `\x1B[${style[0]}m`,
4266
- close: `\x1B[${style[1]}m`
4267
- };
4268
- group[styleName] = styles3[styleName];
4269
- codes.set(style[0], style[1]);
4270
- }
4271
- Object.defineProperty(styles3, groupName, {
4272
- value: group,
4273
- enumerable: false
4274
- });
4275
- }
4276
- Object.defineProperty(styles3, "codes", {
4277
- value: codes,
4278
- enumerable: false
4279
- });
4280
- styles3.color.close = "\x1B[39m";
4281
- styles3.bgColor.close = "\x1B[49m";
4282
- styles3.color.ansi = wrapAnsi162();
4283
- styles3.color.ansi256 = wrapAnsi2562();
4284
- styles3.color.ansi16m = wrapAnsi16m2();
4285
- styles3.bgColor.ansi = wrapAnsi162(ANSI_BACKGROUND_OFFSET2);
4286
- styles3.bgColor.ansi256 = wrapAnsi2562(ANSI_BACKGROUND_OFFSET2);
4287
- styles3.bgColor.ansi16m = wrapAnsi16m2(ANSI_BACKGROUND_OFFSET2);
4288
- Object.defineProperties(styles3, {
4289
- rgbToAnsi256: {
4290
- value(red, green, blue) {
4291
- if (red === green && green === blue) {
4292
- if (red < 8) {
4293
- return 16;
4203
+ let widthExtra = 0;
4204
+ outer:
4205
+ while (true) {
4206
+ if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
4207
+ const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
4208
+ lengthExtra = 0;
4209
+ for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
4210
+ const codePoint = char.codePointAt(0) || 0;
4211
+ if (isFullWidth(codePoint)) {
4212
+ widthExtra = FULL_WIDTH_WIDTH;
4213
+ } else if (isWideNotCJKTNotEmoji(codePoint)) {
4214
+ widthExtra = WIDE_WIDTH;
4215
+ } else {
4216
+ widthExtra = REGULAR_WIDTH;
4294
4217
  }
4295
- if (red > 248) {
4296
- return 231;
4218
+ if (width + widthExtra > truncationLimit) {
4219
+ truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
4297
4220
  }
4298
- return Math.round((red - 8) / 247 * 24) + 232;
4299
- }
4300
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
4301
- },
4302
- enumerable: false
4303
- },
4304
- hexToRgb: {
4305
- value(hex) {
4306
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
4307
- if (!matches) {
4308
- return [0, 0, 0];
4309
- }
4310
- let [colorString] = matches;
4311
- if (colorString.length === 3) {
4312
- colorString = [...colorString].map((character) => character + character).join("");
4313
- }
4314
- const integer = Number.parseInt(colorString, 16);
4315
- return [
4316
- integer >> 16 & 255,
4317
- integer >> 8 & 255,
4318
- integer & 255
4319
- ];
4320
- },
4321
- enumerable: false
4322
- },
4323
- hexToAnsi256: {
4324
- value: (hex) => styles3.rgbToAnsi256(...styles3.hexToRgb(hex)),
4325
- enumerable: false
4326
- },
4327
- ansi256ToAnsi: {
4328
- value(code) {
4329
- if (code < 8) {
4330
- return 30 + code;
4331
- }
4332
- if (code < 16) {
4333
- return 90 + (code - 8);
4334
- }
4335
- let red;
4336
- let green;
4337
- let blue;
4338
- if (code >= 232) {
4339
- red = ((code - 232) * 10 + 8) / 255;
4340
- green = red;
4341
- blue = red;
4342
- } else {
4343
- code -= 16;
4344
- const remainder = code % 36;
4345
- red = Math.floor(code / 36) / 5;
4346
- green = Math.floor(remainder / 6) / 5;
4347
- blue = remainder % 6 / 5;
4348
- }
4349
- const value = Math.max(red, green, blue) * 2;
4350
- if (value === 0) {
4351
- return 30;
4221
+ if (width + widthExtra > LIMIT) {
4222
+ truncationEnabled = true;
4223
+ break outer;
4224
+ }
4225
+ lengthExtra += char.length;
4226
+ width += widthExtra;
4352
4227
  }
4353
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
4354
- if (value === 2) {
4355
- result += 60;
4228
+ unmatchedStart = unmatchedEnd = 0;
4229
+ }
4230
+ if (index >= length) {
4231
+ break outer;
4232
+ }
4233
+ for (let i = 0, l = PARSE_BLOCKS.length;i < l; i++) {
4234
+ const [BLOCK_RE, BLOCK_WIDTH] = PARSE_BLOCKS[i];
4235
+ BLOCK_RE.lastIndex = index;
4236
+ if (BLOCK_RE.test(input)) {
4237
+ lengthExtra = BLOCK_RE === CJKT_WIDE_RE ? getCodePointsLength(input.slice(index, BLOCK_RE.lastIndex)) : BLOCK_RE === EMOJI_RE ? 1 : BLOCK_RE.lastIndex - index;
4238
+ widthExtra = lengthExtra * BLOCK_WIDTH;
4239
+ if (width + widthExtra > truncationLimit) {
4240
+ truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / BLOCK_WIDTH));
4241
+ }
4242
+ if (width + widthExtra > LIMIT) {
4243
+ truncationEnabled = true;
4244
+ break outer;
4245
+ }
4246
+ width += widthExtra;
4247
+ unmatchedStart = indexPrev;
4248
+ unmatchedEnd = index;
4249
+ index = indexPrev = BLOCK_RE.lastIndex;
4250
+ continue outer;
4356
4251
  }
4357
- return result;
4358
- },
4359
- enumerable: false
4360
- },
4361
- rgbToAnsi: {
4362
- value: (red, green, blue) => styles3.ansi256ToAnsi(styles3.rgbToAnsi256(red, green, blue)),
4363
- enumerable: false
4364
- },
4365
- hexToAnsi: {
4366
- value: (hex) => styles3.ansi256ToAnsi(styles3.hexToAnsi256(hex)),
4367
- enumerable: false
4368
- }
4369
- });
4370
- return styles3;
4371
- }
4372
- var ANSI_BACKGROUND_OFFSET2 = 10, wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m2 = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles3, modifierNames2, foregroundColorNames2, backgroundColorNames2, colorNames2, ansiStyles2, ansi_styles_default2;
4373
- var init_ansi_styles2 = __esm(() => {
4374
- styles3 = {
4375
- modifier: {
4376
- reset: [0, 0],
4377
- bold: [1, 22],
4378
- dim: [2, 22],
4379
- italic: [3, 23],
4380
- underline: [4, 24],
4381
- overline: [53, 55],
4382
- inverse: [7, 27],
4383
- hidden: [8, 28],
4384
- strikethrough: [9, 29]
4385
- },
4386
- color: {
4387
- black: [30, 39],
4388
- red: [31, 39],
4389
- green: [32, 39],
4390
- yellow: [33, 39],
4391
- blue: [34, 39],
4392
- magenta: [35, 39],
4393
- cyan: [36, 39],
4394
- white: [37, 39],
4395
- blackBright: [90, 39],
4396
- gray: [90, 39],
4397
- grey: [90, 39],
4398
- redBright: [91, 39],
4399
- greenBright: [92, 39],
4400
- yellowBright: [93, 39],
4401
- blueBright: [94, 39],
4402
- magentaBright: [95, 39],
4403
- cyanBright: [96, 39],
4404
- whiteBright: [97, 39]
4405
- },
4406
- bgColor: {
4407
- bgBlack: [40, 49],
4408
- bgRed: [41, 49],
4409
- bgGreen: [42, 49],
4410
- bgYellow: [43, 49],
4411
- bgBlue: [44, 49],
4412
- bgMagenta: [45, 49],
4413
- bgCyan: [46, 49],
4414
- bgWhite: [47, 49],
4415
- bgBlackBright: [100, 49],
4416
- bgGray: [100, 49],
4417
- bgGrey: [100, 49],
4418
- bgRedBright: [101, 49],
4419
- bgGreenBright: [102, 49],
4420
- bgYellowBright: [103, 49],
4421
- bgBlueBright: [104, 49],
4422
- bgMagentaBright: [105, 49],
4423
- bgCyanBright: [106, 49],
4424
- bgWhiteBright: [107, 49]
4252
+ }
4253
+ index += 1;
4425
4254
  }
4255
+ return {
4256
+ width: truncationEnabled ? truncationLimit : width,
4257
+ index: truncationEnabled ? truncationIndex : length,
4258
+ truncated: truncationEnabled,
4259
+ ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
4426
4260
  };
4427
- modifierNames2 = Object.keys(styles3.modifier);
4428
- foregroundColorNames2 = Object.keys(styles3.color);
4429
- backgroundColorNames2 = Object.keys(styles3.bgColor);
4430
- colorNames2 = [...foregroundColorNames2, ...backgroundColorNames2];
4431
- ansiStyles2 = assembleStyles2();
4432
- ansi_styles_default2 = ansiStyles2;
4261
+ }, dist_default2;
4262
+ var init_dist2 = __esm(() => {
4263
+ init_utils();
4264
+ ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
4265
+ CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
4266
+ CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
4267
+ TAB_RE = /\t{1,1000}/y;
4268
+ EMOJI_RE = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu;
4269
+ LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
4270
+ MODIFIER_RE = /\p{M}+/gu;
4271
+ NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
4272
+ dist_default2 = getStringTruncatedWidth;
4273
+ });
4274
+
4275
+ // node_modules/fast-string-width/dist/index.js
4276
+ var NO_TRUNCATION2, fastStringWidth = (input, options = {}) => {
4277
+ return dist_default2(input, NO_TRUNCATION2, options).width;
4278
+ }, dist_default3;
4279
+ var init_dist3 = __esm(() => {
4280
+ init_dist2();
4281
+ NO_TRUNCATION2 = {
4282
+ limit: Infinity,
4283
+ ellipsis: "",
4284
+ ellipsisWidth: 0
4285
+ };
4286
+ dist_default3 = fastStringWidth;
4433
4287
  });
4434
4288
 
4435
- // node_modules/wrap-ansi/index.js
4289
+ // node_modules/fast-wrap-ansi/lib/main.js
4436
4290
  function wrapAnsi(string, columns, options) {
4437
- return String(string).normalize().replaceAll(`\r
4438
- `, `
4439
- `).split(`
4440
- `).map((line) => exec(line, columns, options)).join(`
4291
+ return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join(`
4441
4292
  `);
4442
4293
  }
4443
- var ESCAPES, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC = "]", ANSI_SGR_TERMINATOR = "m", ANSI_ESCAPE_LINK, wrapAnsiCode = (code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, wrapAnsiHyperlink = (url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`, wordLengths = (string) => string.split(" ").map((character) => stringWidth(character)), wrapWord = (rows, word, columns) => {
4444
- const characters = [...word];
4294
+ var ESC = "\x1B", CSI = "›", END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC = "]", ANSI_SGR_TERMINATOR = "m", ANSI_ESCAPE_LINK, GROUP_REGEX, getClosingCode = (openingCode) => {
4295
+ if (openingCode >= 30 && openingCode <= 37)
4296
+ return 39;
4297
+ if (openingCode >= 90 && openingCode <= 97)
4298
+ return 39;
4299
+ if (openingCode >= 40 && openingCode <= 47)
4300
+ return 49;
4301
+ if (openingCode >= 100 && openingCode <= 107)
4302
+ return 49;
4303
+ if (openingCode === 1 || openingCode === 2)
4304
+ return 22;
4305
+ if (openingCode === 3)
4306
+ return 23;
4307
+ if (openingCode === 4)
4308
+ return 24;
4309
+ if (openingCode === 7)
4310
+ return 27;
4311
+ if (openingCode === 8)
4312
+ return 28;
4313
+ if (openingCode === 9)
4314
+ return 29;
4315
+ if (openingCode === 0)
4316
+ return 0;
4317
+ return;
4318
+ }, wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`, wrapWord = (rows, word, columns) => {
4319
+ const characters = word[Symbol.iterator]();
4445
4320
  let isInsideEscape = false;
4446
4321
  let isInsideLinkEscape = false;
4447
- let visible = stringWidth(stripAnsi(rows.at(-1)));
4448
- for (const [index, character] of characters.entries()) {
4449
- const characterLength = stringWidth(character);
4322
+ let lastRow = rows.at(-1);
4323
+ let visible = lastRow === undefined ? 0 : dist_default3(lastRow);
4324
+ let currentCharacter = characters.next();
4325
+ let nextCharacter = characters.next();
4326
+ let rawCharacterIndex = 0;
4327
+ while (!currentCharacter.done) {
4328
+ const character = currentCharacter.value;
4329
+ const characterLength = dist_default3(character);
4450
4330
  if (visible + characterLength <= columns) {
4451
4331
  rows[rows.length - 1] += character;
4452
4332
  } else {
4453
4333
  rows.push(character);
4454
4334
  visible = 0;
4455
4335
  }
4456
- if (ESCAPES.has(character)) {
4336
+ if (character === ESC || character === CSI) {
4457
4337
  isInsideEscape = true;
4458
- const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
4459
- isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
4338
+ isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
4460
4339
  }
4461
4340
  if (isInsideEscape) {
4462
4341
  if (isInsideLinkEscape) {
@@ -4467,22 +4346,26 @@ var ESCAPES, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
4467
4346
  } else if (character === ANSI_SGR_TERMINATOR) {
4468
4347
  isInsideEscape = false;
4469
4348
  }
4470
- continue;
4471
- }
4472
- visible += characterLength;
4473
- if (visible === columns && index < characters.length - 1) {
4474
- rows.push("");
4475
- visible = 0;
4349
+ } else {
4350
+ visible += characterLength;
4351
+ if (visible === columns && !nextCharacter.done) {
4352
+ rows.push("");
4353
+ visible = 0;
4354
+ }
4476
4355
  }
4356
+ currentCharacter = nextCharacter;
4357
+ nextCharacter = characters.next();
4358
+ rawCharacterIndex += character.length;
4477
4359
  }
4478
- if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
4360
+ lastRow = rows.at(-1);
4361
+ if (!visible && lastRow !== undefined && lastRow.length && rows.length > 1) {
4479
4362
  rows[rows.length - 2] += rows.pop();
4480
4363
  }
4481
4364
  }, stringVisibleTrimSpacesRight = (string) => {
4482
4365
  const words = string.split(" ");
4483
4366
  let last = words.length;
4484
- while (last > 0) {
4485
- if (stringWidth(words[last - 1]) > 0) {
4367
+ while (last) {
4368
+ if (dist_default3(words[last - 1])) {
4486
4369
  break;
4487
4370
  }
4488
4371
  last--;
@@ -4498,95 +4381,112 @@ var ESCAPES, END_CODE = 39, ANSI_ESCAPE_BELL = "\x07", ANSI_CSI = "[", ANSI_OSC
4498
4381
  let returnValue = "";
4499
4382
  let escapeCode;
4500
4383
  let escapeUrl;
4501
- const lengths = wordLengths(string);
4384
+ const words = string.split(" ");
4502
4385
  let rows = [""];
4503
- for (const [index, word] of string.split(" ").entries()) {
4386
+ let rowLength = 0;
4387
+ for (let index = 0;index < words.length; index++) {
4388
+ const word = words[index];
4504
4389
  if (options.trim !== false) {
4505
- rows[rows.length - 1] = rows.at(-1).trimStart();
4390
+ const row = rows.at(-1) ?? "";
4391
+ const trimmed = row.trimStart();
4392
+ if (row.length !== trimmed.length) {
4393
+ rows[rows.length - 1] = trimmed;
4394
+ rowLength = dist_default3(trimmed);
4395
+ }
4506
4396
  }
4507
- let rowLength = stringWidth(rows.at(-1));
4508
4397
  if (index !== 0) {
4509
4398
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
4510
4399
  rows.push("");
4511
4400
  rowLength = 0;
4512
4401
  }
4513
- if (rowLength > 0 || options.trim === false) {
4402
+ if (rowLength || options.trim === false) {
4514
4403
  rows[rows.length - 1] += " ";
4515
4404
  rowLength++;
4516
4405
  }
4517
4406
  }
4518
- if (options.hard && lengths[index] > columns) {
4407
+ const wordLength = dist_default3(word);
4408
+ if (options.hard && wordLength > columns) {
4519
4409
  const remainingColumns = columns - rowLength;
4520
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
4521
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
4410
+ const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
4411
+ const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
4522
4412
  if (breaksStartingNextLine < breaksStartingThisLine) {
4523
4413
  rows.push("");
4524
4414
  }
4525
4415
  wrapWord(rows, word, columns);
4416
+ rowLength = dist_default3(rows.at(-1) ?? "");
4526
4417
  continue;
4527
4418
  }
4528
- if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
4419
+ if (rowLength + wordLength > columns && rowLength && wordLength) {
4529
4420
  if (options.wordWrap === false && rowLength < columns) {
4530
4421
  wrapWord(rows, word, columns);
4422
+ rowLength = dist_default3(rows.at(-1) ?? "");
4531
4423
  continue;
4532
4424
  }
4533
4425
  rows.push("");
4426
+ rowLength = 0;
4534
4427
  }
4535
- if (rowLength + lengths[index] > columns && options.wordWrap === false) {
4428
+ if (rowLength + wordLength > columns && options.wordWrap === false) {
4536
4429
  wrapWord(rows, word, columns);
4430
+ rowLength = dist_default3(rows.at(-1) ?? "");
4537
4431
  continue;
4538
4432
  }
4539
4433
  rows[rows.length - 1] += word;
4434
+ rowLength += wordLength;
4540
4435
  }
4541
4436
  if (options.trim !== false) {
4542
4437
  rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
4543
4438
  }
4544
4439
  const preString = rows.join(`
4545
4440
  `);
4546
- const pre = [...preString];
4547
- let preStringIndex = 0;
4548
- for (const [index, character] of pre.entries()) {
4441
+ let inSurrogate = false;
4442
+ for (let i = 0;i < preString.length; i++) {
4443
+ const character = preString[i];
4549
4444
  returnValue += character;
4550
- if (ESCAPES.has(character)) {
4551
- const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
4552
- if (groups.code !== undefined) {
4553
- const code2 = Number.parseFloat(groups.code);
4554
- escapeCode = code2 === END_CODE ? undefined : code2;
4555
- } else if (groups.uri !== undefined) {
4445
+ if (!inSurrogate) {
4446
+ inSurrogate = character >= "\uD800" && character <= "\uDBFF";
4447
+ if (inSurrogate) {
4448
+ continue;
4449
+ }
4450
+ } else {
4451
+ inSurrogate = false;
4452
+ }
4453
+ if (character === ESC || character === CSI) {
4454
+ GROUP_REGEX.lastIndex = i + 1;
4455
+ const groupsResult = GROUP_REGEX.exec(preString);
4456
+ const groups = groupsResult?.groups;
4457
+ if (groups?.code !== undefined) {
4458
+ const code = Number.parseFloat(groups.code);
4459
+ escapeCode = code === END_CODE ? undefined : code;
4460
+ } else if (groups?.uri !== undefined) {
4556
4461
  escapeUrl = groups.uri.length === 0 ? undefined : groups.uri;
4557
4462
  }
4558
4463
  }
4559
- const code = ansi_styles_default2.codes.get(Number(escapeCode));
4560
- if (pre[index + 1] === `
4464
+ if (preString[i + 1] === `
4561
4465
  `) {
4562
4466
  if (escapeUrl) {
4563
4467
  returnValue += wrapAnsiHyperlink("");
4564
4468
  }
4565
- if (escapeCode && code) {
4566
- returnValue += wrapAnsiCode(code);
4469
+ const closingCode = escapeCode ? getClosingCode(escapeCode) : undefined;
4470
+ if (escapeCode && closingCode) {
4471
+ returnValue += wrapAnsiCode(closingCode);
4567
4472
  }
4568
4473
  } else if (character === `
4569
4474
  `) {
4570
- if (escapeCode && code) {
4475
+ if (escapeCode && getClosingCode(escapeCode)) {
4571
4476
  returnValue += wrapAnsiCode(escapeCode);
4572
4477
  }
4573
4478
  if (escapeUrl) {
4574
4479
  returnValue += wrapAnsiHyperlink(escapeUrl);
4575
4480
  }
4576
4481
  }
4577
- preStringIndex += character.length;
4578
4482
  }
4579
4483
  return returnValue;
4580
- };
4581
- var init_wrap_ansi = __esm(() => {
4582
- init_string_width();
4583
- init_strip_ansi();
4584
- init_ansi_styles2();
4585
- ESCAPES = new Set([
4586
- "\x1B",
4587
- "›"
4588
- ]);
4484
+ }, CRLF_OR_LF;
4485
+ var init_main = __esm(() => {
4486
+ init_dist3();
4589
4487
  ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
4488
+ GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
4489
+ CRLF_OR_LF = /\r?\n/;
4590
4490
  });
4591
4491
 
4592
4492
  // node_modules/@inquirer/core/dist/lib/utils.js
@@ -4600,10 +4500,10 @@ function readlineWidth() {
4600
4500
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
4601
4501
  }
4602
4502
  var import_cli_width;
4603
- var init_utils = __esm(() => {
4604
- import_cli_width = __toESM(require_cli_width(), 1);
4605
- init_wrap_ansi();
4503
+ var init_utils2 = __esm(() => {
4504
+ init_main();
4606
4505
  init_hook_engine();
4506
+ import_cli_width = __toESM(require_cli_width(), 1);
4607
4507
  });
4608
4508
 
4609
4509
  // node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js
@@ -4674,7 +4574,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
4674
4574
  }
4675
4575
  var init_use_pagination = __esm(() => {
4676
4576
  init_use_ref();
4677
- init_utils();
4577
+ init_utils2();
4678
4578
  });
4679
4579
 
4680
4580
  // node_modules/mute-stream/lib/index.js
@@ -5008,17 +4908,17 @@ var init_mjs = __esm(() => {
5008
4908
  });
5009
4909
 
5010
4910
  // node_modules/@inquirer/ansi/dist/index.js
5011
- var ESC = "\x1B[", cursorLeft, cursorHide, cursorShow, cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "", cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "", cursorTo = (x, y) => {
4911
+ var ESC2 = "\x1B[", cursorLeft, cursorHide, cursorShow, cursorUp = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "", cursorDown = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "", cursorTo = (x, y) => {
5012
4912
  if (typeof y === "number" && !Number.isNaN(y)) {
5013
- return `${ESC}${y + 1};${x + 1}H`;
4913
+ return `${ESC2}${y + 1};${x + 1}H`;
5014
4914
  }
5015
- return `${ESC}${x + 1}G`;
4915
+ return `${ESC2}${x + 1}G`;
5016
4916
  }, eraseLine, eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
5017
- var init_dist2 = __esm(() => {
5018
- cursorLeft = ESC + "G";
5019
- cursorHide = ESC + "?25l";
5020
- cursorShow = ESC + "?25h";
5021
- eraseLine = ESC + "2K";
4917
+ var init_dist4 = __esm(() => {
4918
+ cursorLeft = ESC2 + "G";
4919
+ cursorHide = ESC2 + "?25l";
4920
+ cursorShow = ESC2 + "?25h";
4921
+ eraseLine = ESC2 + "2K";
5022
4922
  });
5023
4923
 
5024
4924
  // node_modules/@inquirer/core/dist/lib/screen-manager.js
@@ -5086,8 +4986,8 @@ var height = (content) => content.split(`
5086
4986
  `).length, lastLine = (content) => content.split(`
5087
4987
  `).pop() ?? "";
5088
4988
  var init_screen_manager = __esm(() => {
5089
- init_utils();
5090
- init_dist2();
4989
+ init_utils2();
4990
+ init_dist4();
5091
4991
  });
5092
4992
 
5093
4993
  // node_modules/@inquirer/core/dist/lib/promise-polyfill.js
@@ -5196,12 +5096,12 @@ function createPrompt(view) {
5196
5096
  }
5197
5097
  var import_mute_stream;
5198
5098
  var init_create_prompt = __esm(() => {
5199
- import_mute_stream = __toESM(require_lib(), 1);
5200
5099
  init_mjs();
5201
5100
  init_screen_manager();
5202
5101
  init_promise_polyfill();
5203
5102
  init_hook_engine();
5204
5103
  init_errors();
5104
+ import_mute_stream = __toESM(require_lib(), 1);
5205
5105
  });
5206
5106
 
5207
5107
  // node_modules/@inquirer/core/dist/lib/Separator.js
@@ -5224,8 +5124,7 @@ var init_Separator = __esm(() => {
5224
5124
  });
5225
5125
 
5226
5126
  // node_modules/@inquirer/core/dist/index.js
5227
- var init_dist3 = __esm(() => {
5228
- init_errors();
5127
+ var init_dist5 = __esm(() => {
5229
5128
  init_use_prefix();
5230
5129
  init_use_state();
5231
5130
  init_use_effect();
@@ -5236,6 +5135,7 @@ var init_dist3 = __esm(() => {
5236
5135
  init_use_pagination();
5237
5136
  init_create_prompt();
5238
5137
  init_Separator();
5138
+ init_errors();
5239
5139
  });
5240
5140
 
5241
5141
  // node_modules/@inquirer/confirm/dist/index.js
@@ -5250,10 +5150,10 @@ function getBooleanValue(value, defaultValue) {
5250
5150
  function boolToString(value) {
5251
5151
  return value ? "Yes" : "No";
5252
5152
  }
5253
- var dist_default2;
5254
- var init_dist4 = __esm(() => {
5255
- init_dist3();
5256
- dist_default2 = createPrompt((config, done) => {
5153
+ var dist_default4;
5154
+ var init_dist6 = __esm(() => {
5155
+ init_dist5();
5156
+ dist_default4 = createPrompt((config, done) => {
5257
5157
  const { transformer = boolToString } = config;
5258
5158
  const [status, setStatus] = useState("idle");
5259
5159
  const [value, setValue] = useState("");
@@ -5289,21 +5189,21 @@ var init_dist4 = __esm(() => {
5289
5189
  });
5290
5190
 
5291
5191
  // node_modules/@inquirer/input/dist/index.js
5292
- var inputTheme, dist_default3;
5293
- var init_dist5 = __esm(() => {
5294
- init_dist3();
5192
+ var inputTheme, dist_default5;
5193
+ var init_dist7 = __esm(() => {
5194
+ init_dist5();
5295
5195
  inputTheme = {
5296
5196
  validationFailureMode: "keep"
5297
5197
  };
5298
- dist_default3 = createPrompt((config, done) => {
5198
+ dist_default5 = createPrompt((config, done) => {
5299
5199
  const { prefill = "tab" } = config;
5300
5200
  const theme2 = makeTheme(inputTheme, config.theme);
5301
5201
  const [status, setStatus] = useState("idle");
5302
- const [defaultValue = "", setDefaultValue] = useState(config.default);
5202
+ const [defaultValue, setDefaultValue] = useState(String(config.default ?? ""));
5303
5203
  const [errorMsg, setError] = useState();
5304
5204
  const [value, setValue] = useState("");
5305
5205
  const prefix = usePrefix({ status, theme: theme2 });
5306
- async function validate2(value2) {
5206
+ async function validate(value2) {
5307
5207
  const { required, pattern, patternError = "Invalid input" } = config;
5308
5208
  if (required && !value2) {
5309
5209
  return "You must provide a value";
@@ -5323,7 +5223,7 @@ var init_dist5 = __esm(() => {
5323
5223
  if (isEnterKey(key)) {
5324
5224
  const answer = value || defaultValue;
5325
5225
  setStatus("loading");
5326
- const isValid = await validate2(answer);
5226
+ const isValid = await validate(answer);
5327
5227
  if (isValid === true) {
5328
5228
  setValue(answer);
5329
5229
  setStatus("done");
@@ -5338,9 +5238,9 @@ var init_dist5 = __esm(() => {
5338
5238
  setStatus("idle");
5339
5239
  }
5340
5240
  } else if (isBackspaceKey(key) && !value) {
5341
- setDefaultValue(undefined);
5241
+ setDefaultValue("");
5342
5242
  } else if (isTabKey(key) && !value) {
5343
- setDefaultValue(undefined);
5243
+ setDefaultValue("");
5344
5244
  rl.clearLine(0);
5345
5245
  rl.write(defaultValue);
5346
5246
  setValue(defaultValue);
@@ -5378,12 +5278,12 @@ var init_dist5 = __esm(() => {
5378
5278
  });
5379
5279
 
5380
5280
  // node_modules/@inquirer/password/dist/index.js
5381
- var dist_default4;
5382
- var init_dist6 = __esm(() => {
5383
- init_dist3();
5384
- init_dist2();
5385
- dist_default4 = createPrompt((config, done) => {
5386
- const { validate: validate2 = () => true } = config;
5281
+ var dist_default6;
5282
+ var init_dist8 = __esm(() => {
5283
+ init_dist5();
5284
+ init_dist4();
5285
+ dist_default6 = createPrompt((config, done) => {
5286
+ const { validate = () => true } = config;
5387
5287
  const theme2 = makeTheme(config.theme);
5388
5288
  const [status, setStatus] = useState("idle");
5389
5289
  const [errorMsg, setError] = useState();
@@ -5396,7 +5296,7 @@ var init_dist6 = __esm(() => {
5396
5296
  if (isEnterKey(key)) {
5397
5297
  const answer = value;
5398
5298
  setStatus("loading");
5399
- const isValid = await validate2(answer);
5299
+ const isValid = await validate(answer);
5400
5300
  if (isValid === true) {
5401
5301
  setValue(answer);
5402
5302
  setStatus("done");
@@ -5462,10 +5362,10 @@ function normalizeChoices(choices) {
5462
5362
  return normalizedChoice;
5463
5363
  });
5464
5364
  }
5465
- var selectTheme, dist_default5;
5466
- var init_dist7 = __esm(() => {
5467
- init_dist3();
5468
- init_dist2();
5365
+ var selectTheme, dist_default7;
5366
+ var init_dist9 = __esm(() => {
5367
+ init_dist5();
5368
+ init_dist4();
5469
5369
  init_dist();
5470
5370
  selectTheme = {
5471
5371
  icon: { cursor: dist_default.pointer },
@@ -5477,7 +5377,7 @@ var init_dist7 = __esm(() => {
5477
5377
  indexMode: "hidden",
5478
5378
  keybindings: []
5479
5379
  };
5480
- dist_default5 = createPrompt((config, done) => {
5380
+ dist_default7 = createPrompt((config, done) => {
5481
5381
  const { loop = true, pageSize = 7 } = config;
5482
5382
  const theme2 = makeTheme(selectTheme, config.theme);
5483
5383
  const { keybindings } = theme2;
@@ -5595,16 +5495,16 @@ var init_dist7 = __esm(() => {
5595
5495
  });
5596
5496
 
5597
5497
  // node_modules/@inquirer/prompts/dist/index.js
5598
- var init_dist8 = __esm(() => {
5599
- init_dist4();
5600
- init_dist5();
5498
+ var init_dist10 = __esm(() => {
5601
5499
  init_dist6();
5602
5500
  init_dist7();
5501
+ init_dist8();
5502
+ init_dist9();
5603
5503
  });
5604
5504
 
5605
5505
  // src/ui/wizard.ts
5606
5506
  async function promptMcpClient() {
5607
- return await dist_default5({
5507
+ return await dist_default7({
5608
5508
  message: "Which MCP client are you using?",
5609
5509
  choices: [
5610
5510
  { name: "Antigravity", value: "antigravity" },
@@ -5618,7 +5518,7 @@ async function promptMcpClient() {
5618
5518
  });
5619
5519
  }
5620
5520
  async function promptAuthMode() {
5621
- return await dist_default5({
5521
+ return await dist_default7({
5622
5522
  message: "Select Authentication Mode:",
5623
5523
  choices: [
5624
5524
  {
@@ -5635,7 +5535,7 @@ async function promptAuthMode() {
5635
5535
  });
5636
5536
  }
5637
5537
  async function promptApiKeyStorage() {
5638
- return await dist_default5({
5538
+ return await dist_default7({
5639
5539
  message: "Where would you like to store your API Key?",
5640
5540
  choices: [
5641
5541
  {
@@ -5657,23 +5557,23 @@ async function promptApiKeyStorage() {
5657
5557
  });
5658
5558
  }
5659
5559
  async function promptApiKey() {
5660
- return await dist_default4({
5560
+ return await dist_default6({
5661
5561
  message: "Enter your Stitch API Key:",
5662
5562
  mask: "*"
5663
5563
  });
5664
5564
  }
5665
5565
  async function promptSelect(message, choices) {
5666
- return await dist_default5({ message, choices });
5566
+ return await dist_default7({ message, choices });
5667
5567
  }
5668
5568
  async function promptInput(message, defaultValue) {
5669
- return await dist_default3({ message, default: defaultValue });
5569
+ return await dist_default5({ message, default: defaultValue });
5670
5570
  }
5671
5571
  async function promptConfirm(message, defaultValue = true) {
5672
- return await dist_default2({ message, default: defaultValue });
5572
+ return await dist_default4({ message, default: defaultValue });
5673
5573
  }
5674
5574
  async function promptTransportType(authMode = "oauth") {
5675
5575
  const isApiKey = authMode === "apiKey";
5676
- return await dist_default5({
5576
+ return await dist_default7({
5677
5577
  message: "How would you like to connect to Stitch?",
5678
5578
  choices: [
5679
5579
  {
@@ -5690,7 +5590,7 @@ async function promptTransportType(authMode = "oauth") {
5690
5590
  });
5691
5591
  }
5692
5592
  var init_wizard = __esm(() => {
5693
- init_dist8();
5593
+ init_dist10();
5694
5594
  });
5695
5595
 
5696
5596
  // src/services/project/handler.ts
@@ -7050,10 +6950,14 @@ var isWsl = () => {
7050
6950
  return true;
7051
6951
  }
7052
6952
  try {
7053
- return fs7.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
7054
- } catch {
7055
- return false;
6953
+ if (fs7.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft")) {
6954
+ return !isInsideContainer();
6955
+ }
6956
+ } catch {}
6957
+ if (fs7.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop") || fs7.existsSync("/run/WSL")) {
6958
+ return !isInsideContainer();
7056
6959
  }
6960
+ return false;
7057
6961
  }, is_wsl_default;
7058
6962
  var init_is_wsl = __esm(() => {
7059
6963
  init_is_inside_container();
@@ -8201,7 +8105,7 @@ var require_signal_exit = __commonJS((exports, module) => {
8201
8105
  emitter.on(ev, cb);
8202
8106
  return remove;
8203
8107
  };
8204
- unload2 = function unload() {
8108
+ unload2 = function unload3() {
8205
8109
  if (!loaded || !processOk2(global.process)) {
8206
8110
  return;
8207
8111
  }
@@ -8216,7 +8120,7 @@ var require_signal_exit = __commonJS((exports, module) => {
8216
8120
  emitter.count -= 1;
8217
8121
  };
8218
8122
  module.exports.unload = unload2;
8219
- emit = function emit(event, code, signal) {
8123
+ emit = function emit2(event, code, signal) {
8220
8124
  if (emitter.emitted[event]) {
8221
8125
  return;
8222
8126
  }
@@ -8245,7 +8149,7 @@ var require_signal_exit = __commonJS((exports, module) => {
8245
8149
  return signals2;
8246
8150
  };
8247
8151
  loaded = false;
8248
- load2 = function load() {
8152
+ load2 = function load3() {
8249
8153
  if (loaded || !processOk2(global.process)) {
8250
8154
  return;
8251
8155
  }
@@ -8264,7 +8168,7 @@ var require_signal_exit = __commonJS((exports, module) => {
8264
8168
  };
8265
8169
  module.exports.load = load2;
8266
8170
  originalProcessReallyExit = process7.reallyExit;
8267
- processReallyExit = function processReallyExit(code) {
8171
+ processReallyExit = function processReallyExit2(code) {
8268
8172
  if (!processOk2(global.process)) {
8269
8173
  return;
8270
8174
  }
@@ -8274,7 +8178,7 @@ var require_signal_exit = __commonJS((exports, module) => {
8274
8178
  originalProcessReallyExit.call(process7, process7.exitCode);
8275
8179
  };
8276
8180
  originalProcessEmit = process7.emit;
8277
- processEmit = function processEmit(ev, arg) {
8181
+ processEmit = function processEmit2(ev, arg) {
8278
8182
  if (ev === "exit" && processOk2(global.process)) {
8279
8183
  if (arg !== undefined) {
8280
8184
  process7.exitCode = arg;
@@ -11005,9 +10909,9 @@ ${input}
11005
10909
  return result.data && JSON.parse(result.data).data;
11006
10910
  };
11007
10911
  var init_run_jxa = __esm(() => {
11008
- import_execa = __toESM(require_execa(), 1);
11009
10912
  init_subsume();
11010
10913
  init_macos_version();
10914
+ import_execa = __toESM(require_execa(), 1);
11011
10915
  subsume = new Subsume;
11012
10916
  commandArguments = ["-l", "JavaScript"];
11013
10917
  });
@@ -12452,7 +12356,7 @@ var getSignalsByName = () => {
12452
12356
  }
12453
12357
  return signals2.find((signalA) => signalA.number === number);
12454
12358
  }, signalsByNumber;
12455
- var init_main = __esm(() => {
12359
+ var init_main2 = __esm(() => {
12456
12360
  init_signals2();
12457
12361
  signalsByName = getSignalsByName();
12458
12362
  signalsByNumber = getSignalsByNumber();
@@ -12493,7 +12397,7 @@ ${getAvailableSignals()}`);
12493
12397
  }, getAvailableSignals = () => `Available signal names: ${getAvailableSignalNames()}.
12494
12398
  Available signal numbers: ${getAvailableSignalIntegers()}.`, getAvailableSignalNames = () => Object.keys(constants3.signals).sort().map((signalName) => `'${signalName}'`).join(", "), getAvailableSignalIntegers = () => [...new Set(Object.values(constants3.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", "), getSignalDescription = (signal) => signalsByName[signal].description;
12495
12399
  var init_signal = __esm(() => {
12496
- init_main();
12400
+ init_main2();
12497
12401
  signalsIntegerToName = getSignalsIntegerToName();
12498
12402
  });
12499
12403
 
@@ -13386,7 +13290,6 @@ var import_cross_spawn, normalizeOptions = (filePath, rawArguments, rawOptions)
13386
13290
  return env2;
13387
13291
  };
13388
13292
  var init_options = __esm(() => {
13389
- import_cross_spawn = __toESM(require_cross_spawn(), 1);
13390
13293
  init_npm_run_path();
13391
13294
  init_kill();
13392
13295
  init_signal();
@@ -13399,6 +13302,7 @@ var init_options = __esm(() => {
13399
13302
  init_cwd();
13400
13303
  init_file_url();
13401
13304
  init_specific();
13305
+ import_cross_spawn = __toESM(require_cross_spawn(), 1);
13402
13306
  });
13403
13307
 
13404
13308
  // node_modules/execa/lib/arguments/shell.js
@@ -17959,7 +17863,7 @@ var init_windows = __esm(() => {
17959
17863
  init_is64bit();
17960
17864
  init_powershell_utils();
17961
17865
  __dirname3 = path9.dirname(fileURLToPath5(import.meta.url));
17962
- binarySuffix = is64bitSync() ? "x86_64" : "i686";
17866
+ binarySuffix = process.arch === "arm64" ? "aarch64" : is64bitSync() ? "x86_64" : "i686";
17963
17867
  windowBinaryPath = path9.join(__dirname3, `../fallbacks/windows/clipboard_${binarySuffix}.exe`);
17964
17868
  hasWindowsBinaryFallback = fs10.existsSync(windowBinaryPath);
17965
17869
  psCopyScript = `
@@ -20112,7 +20016,7 @@ var init_log_symbols = __esm(() => {
20112
20016
  });
20113
20017
 
20114
20018
  // node_modules/ora/node_modules/ansi-regex/index.js
20115
- function ansiRegex2({ onlyFirst = false } = {}) {
20019
+ function ansiRegex({ onlyFirst = false } = {}) {
20116
20020
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
20117
20021
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
20118
20022
  const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
@@ -20121,26 +20025,56 @@ function ansiRegex2({ onlyFirst = false } = {}) {
20121
20025
  }
20122
20026
 
20123
20027
  // node_modules/ora/node_modules/strip-ansi/index.js
20124
- function stripAnsi2(string) {
20028
+ function stripAnsi(string) {
20125
20029
  if (typeof string !== "string") {
20126
20030
  throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
20127
20031
  }
20128
- return string.replace(regex2, "");
20032
+ return string.replace(regex, "");
20033
+ }
20034
+ var regex;
20035
+ var init_strip_ansi = __esm(() => {
20036
+ regex = ansiRegex();
20037
+ });
20038
+
20039
+ // node_modules/get-east-asian-width/lookup.js
20040
+ function isAmbiguous(x) {
20041
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
20042
+ }
20043
+ function isFullWidth2(x) {
20044
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
20045
+ }
20046
+ function isWide(x) {
20047
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x >= 94192 && x <= 94198 || x >= 94208 && x <= 101589 || x >= 101631 && x <= 101662 || x >= 101760 && x <= 101874 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128728 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129674 || x >= 129678 && x <= 129734 || x === 129736 || x >= 129741 && x <= 129756 || x >= 129759 && x <= 129770 || x >= 129775 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
20048
+ }
20049
+ var init_lookup = () => {};
20050
+
20051
+ // node_modules/get-east-asian-width/index.js
20052
+ function validate(codePoint) {
20053
+ if (!Number.isSafeInteger(codePoint)) {
20054
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
20055
+ }
20056
+ }
20057
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
20058
+ validate(codePoint);
20059
+ if (isFullWidth2(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
20060
+ return 2;
20061
+ }
20062
+ return 1;
20129
20063
  }
20130
- var regex2;
20131
- var init_strip_ansi2 = __esm(() => {
20132
- regex2 = ansiRegex2();
20064
+ var init_get_east_asian_width = __esm(() => {
20065
+ init_lookup();
20066
+ init_lookup();
20133
20067
  });
20134
20068
 
20135
20069
  // node_modules/ora/node_modules/emoji-regex/index.js
20136
- var require_emoji_regex2 = __commonJS((exports, module) => {
20070
+ var require_emoji_regex = __commonJS((exports, module) => {
20137
20071
  module.exports = () => {
20138
20072
  return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
20139
20073
  };
20140
20074
  });
20141
20075
 
20142
20076
  // node_modules/ora/node_modules/string-width/index.js
20143
- function stringWidth2(string, options = {}) {
20077
+ function stringWidth(string, options = {}) {
20144
20078
  if (typeof string !== "string" || string.length === 0) {
20145
20079
  return 0;
20146
20080
  }
@@ -20149,14 +20083,14 @@ function stringWidth2(string, options = {}) {
20149
20083
  countAnsiEscapeCodes = false
20150
20084
  } = options;
20151
20085
  if (!countAnsiEscapeCodes) {
20152
- string = stripAnsi2(string);
20086
+ string = stripAnsi(string);
20153
20087
  }
20154
20088
  if (string.length === 0) {
20155
20089
  return 0;
20156
20090
  }
20157
20091
  let width = 0;
20158
20092
  const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
20159
- for (const { segment: character } of segmenter2.segment(string)) {
20093
+ for (const { segment: character } of segmenter.segment(string)) {
20160
20094
  const codePoint = character.codePointAt(0);
20161
20095
  if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
20162
20096
  continue;
@@ -20173,10 +20107,10 @@ function stringWidth2(string, options = {}) {
20173
20107
  if (codePoint >= 65024 && codePoint <= 65039) {
20174
20108
  continue;
20175
20109
  }
20176
- if (defaultIgnorableCodePointRegex2.test(character)) {
20110
+ if (defaultIgnorableCodePointRegex.test(character)) {
20177
20111
  continue;
20178
20112
  }
20179
- if (import_emoji_regex2.default().test(character)) {
20113
+ if (import_emoji_regex.default().test(character)) {
20180
20114
  width += 2;
20181
20115
  continue;
20182
20116
  }
@@ -20184,13 +20118,13 @@ function stringWidth2(string, options = {}) {
20184
20118
  }
20185
20119
  return width;
20186
20120
  }
20187
- var import_emoji_regex2, segmenter2, defaultIgnorableCodePointRegex2;
20188
- var init_string_width2 = __esm(() => {
20189
- init_strip_ansi2();
20121
+ var import_emoji_regex, segmenter, defaultIgnorableCodePointRegex;
20122
+ var init_string_width = __esm(() => {
20123
+ init_strip_ansi();
20190
20124
  init_get_east_asian_width();
20191
- import_emoji_regex2 = __toESM(require_emoji_regex2(), 1);
20192
- segmenter2 = new Intl.Segmenter;
20193
- defaultIgnorableCodePointRegex2 = /^\p{Default_Ignorable_Code_Point}$/u;
20125
+ import_emoji_regex = __toESM(require_emoji_regex(), 1);
20126
+ segmenter = new Intl.Segmenter;
20127
+ defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
20194
20128
  });
20195
20129
 
20196
20130
  // node_modules/is-interactive/index.js
@@ -20395,9 +20329,9 @@ class Ora {
20395
20329
  const fullSuffixText = this.#getFullSuffixText(this.#suffixText, "-");
20396
20330
  const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
20397
20331
  this.#lineCount = 0;
20398
- for (const line of stripAnsi2(fullText).split(`
20332
+ for (const line of stripAnsi(fullText).split(`
20399
20333
  `)) {
20400
- this.#lineCount += Math.max(1, Math.ceil(stringWidth2(line, { countAnsiEscapeCodes: true }) / columns));
20334
+ this.#lineCount += Math.max(1, Math.ceil(stringWidth(line, { countAnsiEscapeCodes: true }) / columns));
20401
20335
  }
20402
20336
  }
20403
20337
  get isEnabled() {
@@ -20544,12 +20478,12 @@ var import_cli_spinners, import_cli_spinners2;
20544
20478
  var init_ora = __esm(() => {
20545
20479
  init_source();
20546
20480
  init_cli_cursor();
20547
- import_cli_spinners = __toESM(require_cli_spinners(), 1);
20548
20481
  init_log_symbols();
20549
- init_strip_ansi2();
20550
- init_string_width2();
20482
+ init_strip_ansi();
20483
+ init_string_width();
20551
20484
  init_is_unicode_supported();
20552
20485
  init_stdin_discarder();
20486
+ import_cli_spinners = __toESM(require_cli_spinners(), 1);
20553
20487
  import_cli_spinners2 = __toESM(require_cli_spinners(), 1);
20554
20488
  });
20555
20489
 
@@ -20623,7 +20557,13 @@ class ConfigStep {
20623
20557
  async setupGeminiExtension(context) {
20624
20558
  const spinner = createSpinner();
20625
20559
  const extensionPath = path11.join(os4.homedir(), ".gemini", "extensions", "Stitch", "gemini-extension.json");
20626
- const isInstalled = fs11.existsSync(extensionPath);
20560
+ let isInstalled = false;
20561
+ try {
20562
+ await fs11.promises.access(extensionPath);
20563
+ isInstalled = true;
20564
+ } catch {
20565
+ isInstalled = false;
20566
+ }
20627
20567
  if (isInstalled) {
20628
20568
  spinner.succeed("Stitch extension is already installed");
20629
20569
  } else {
@@ -20642,13 +20582,15 @@ class ConfigStep {
20642
20582
  }
20643
20583
  }
20644
20584
  spinner.start("Configuring extension...");
20645
- if (!fs11.existsSync(extensionPath)) {
20585
+ try {
20586
+ await fs11.promises.access(extensionPath);
20587
+ } catch {
20646
20588
  spinner.fail("Extension configuration file not found");
20647
20589
  context.ui.log(theme.gray(` Expected path: ${extensionPath}`));
20648
20590
  return;
20649
20591
  }
20650
20592
  try {
20651
- const content = fs11.readFileSync(extensionPath, "utf8");
20593
+ const content = await fs11.promises.readFile(extensionPath, "utf8");
20652
20594
  const config = JSON.parse(content);
20653
20595
  if (!config.mcpServers?.stitch) {
20654
20596
  spinner.fail("Invalid extension configuration format detected");
@@ -20668,7 +20610,7 @@ class ConfigStep {
20668
20610
  args: ["@_davideast/stitch-mcp", "proxy"],
20669
20611
  env: env3
20670
20612
  };
20671
- fs11.writeFileSync(extensionPath, JSON.stringify(config, null, 4));
20613
+ await fs11.promises.writeFile(extensionPath, JSON.stringify(config, null, 4));
20672
20614
  const successMsg = context.apiKey ? "Stitch extension configured for STDIO with API Key" : `Stitch extension configured for STDIO: Project ID set to ${theme.blue(context.projectId)}`;
20673
20615
  spinner.succeed(successMsg);
20674
20616
  } else {
@@ -20685,7 +20627,7 @@ class ConfigStep {
20685
20627
  delete config.mcpServers.stitch.headers["Authorization"];
20686
20628
  if (config.mcpServers.stitch.headers["X-Goog-User-Project"])
20687
20629
  delete config.mcpServers.stitch.headers["X-Goog-User-Project"];
20688
- fs11.writeFileSync(extensionPath, JSON.stringify(config, null, 4));
20630
+ await fs11.promises.writeFile(extensionPath, JSON.stringify(config, null, 4));
20689
20631
  spinner.succeed(`Stitch extension configured for HTTP with API Key`);
20690
20632
  } else {
20691
20633
  config.mcpServers.stitch = {
@@ -20696,7 +20638,7 @@ class ConfigStep {
20696
20638
  "X-Goog-User-Project": context.projectId
20697
20639
  }
20698
20640
  };
20699
- fs11.writeFileSync(extensionPath, JSON.stringify(config, null, 4));
20641
+ await fs11.promises.writeFile(extensionPath, JSON.stringify(config, null, 4));
20700
20642
  spinner.succeed(`Stitch extension configured for HTTP: Project ID set to ${theme.blue(context.projectId)}`);
20701
20643
  }
20702
20644
  }
@@ -20913,7 +20855,7 @@ var init_handler6 = __esm(() => {
20913
20855
  var require_package = __commonJS((exports, module) => {
20914
20856
  module.exports = {
20915
20857
  name: "dotenv",
20916
- version: "17.2.4",
20858
+ version: "17.3.1",
20917
20859
  description: "Loads environment variables from .env file",
20918
20860
  main: "lib/main.js",
20919
20861
  types: "lib/main.d.ts",
@@ -20987,12 +20929,9 @@ var require_main2 = __commonJS((exports, module) => {
20987
20929
  "\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com",
20988
20930
  "\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit",
20989
20931
  "\uD83D\uDD10 prevent building .env in docker: https://dotenvx.com/prebuild",
20990
- "\uD83D\uDCE1 add observability to secrets: https://dotenvx.com/ops",
20991
- "\uD83D\uDC65 sync secrets across teammates & machines: https://dotenvx.com/ops",
20992
- "\uD83D\uDDC2backup and recover secrets: https://dotenvx.com/ops",
20993
- "✅ audit secrets and track compliance: https://dotenvx.com/ops",
20994
- "\uD83D\uDD04 add secrets lifecycle management: https://dotenvx.com/ops",
20995
- "\uD83D\uDD11 add access controls to secrets: https://dotenvx.com/ops",
20932
+ "\uD83E\uDD16 agentic secret storage: https://dotenvx.com/as2",
20933
+ "⚡️ secrets for agents: https://dotenvx.com/as2",
20934
+ "\uD83D\uDEE1auth for agents: https://vestauth.com",
20996
20935
  "\uD83D\uDEE0️ run anywhere with `dotenvx run -- yourcommand`",
20997
20936
  "⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
20998
20937
  "⚙️ enable debug logging with { debug: true }",
@@ -21570,7 +21509,7 @@ class DoctorHandler {
21570
21509
  ];
21571
21510
  }
21572
21511
  async execute(input) {
21573
- import_dotenv.default.config();
21512
+ import_dotenv.default.config({ quiet: true });
21574
21513
  const apiKey = process.env.STITCH_API_KEY;
21575
21514
  const context = {
21576
21515
  input,