@baton-dx/cli 0.7.1 → 0.8.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.
@@ -7,7 +7,7 @@ import N, { stdin, stdout } from "node:process";
7
7
  import * as tty from "node:tty";
8
8
  import { ReadStream } from "node:tty";
9
9
  import * as k from "node:readline";
10
- import ot from "node:readline";
10
+ import f from "node:readline";
11
11
  import { existsSync, lstatSync, readdirSync } from "node:fs";
12
12
 
13
13
  //#region ../../node_modules/.bun/consola@3.4.2/node_modules/consola/dist/core.mjs
@@ -666,7 +666,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
666
666
  const e = i(true);
667
667
  return Object.keys(e);
668
668
  }
669
- }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
669
+ }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f$1 = [
670
670
  ["APPVEYOR"],
671
671
  [
672
672
  "AWS_AMPLIFY",
@@ -758,7 +758,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
758
758
  ]
759
759
  ];
760
760
  function b() {
761
- if (globalThis.process?.env) for (const e of f) {
761
+ if (globalThis.process?.env) for (const e of f$1) {
762
762
  const s = e[1] || e[0];
763
763
  if (globalThis.process?.env[s]) return {
764
764
  name: e[0].toLowerCase(),
@@ -948,7 +948,7 @@ function createConsola(options = {}) {
948
948
  defaults: { level },
949
949
  stdout: process.stdout,
950
950
  stderr: process.stderr,
951
- prompt: (...args) => import("./prompt-DXfUeR3X.mjs").then((m) => m.prompt(...args)),
951
+ prompt: (...args) => import("./prompt-YyCqLdrb.mjs").then((m) => m.prompt(...args)),
952
952
  reporters: options.reporters || [options.fancy ?? !(T$1 || R$1) ? new FancyReporter() : new BasicReporter()],
953
953
  ...options
954
954
  });
@@ -1710,7 +1710,7 @@ var x$1 = class {
1710
1710
  this.state = "cancel", this.close();
1711
1711
  }, { once: !0 });
1712
1712
  }
1713
- this.rl = ot.createInterface({
1713
+ this.rl = f.createInterface({
1714
1714
  input: this.input,
1715
1715
  tabSize: 2,
1716
1716
  prompt: "",
@@ -2172,7 +2172,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
2172
2172
  limit: Infinity,
2173
2173
  ellipsis: "",
2174
2174
  ellipsisWidth: 0
2175
- }, M = (t, r = {}) => jt(t, Ee, r).width, ot$1 = "\x1B", Gt = "›", ve = 39, Ct = "\x07", kt = "[", Ae = "]", Vt = "m", St = `${Ae}8;;`, Ht = new RegExp(`(?:\\${kt}(?<code>\\d+)m|\\${St}(?<uri>.*)${Ct})`, "y"), we = (t) => {
2175
+ }, M = (t, r = {}) => jt(t, Ee, r).width, ot = "\x1B", Gt = "›", ve = 39, Ct = "\x07", kt = "[", Ae = "]", Vt = "m", St = `${Ae}8;;`, Ht = new RegExp(`(?:\\${kt}(?<code>\\d+)m|\\${St}(?<uri>.*)${Ct})`, "y"), we = (t) => {
2176
2176
  if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
2177
2177
  if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
2178
2178
  if (t === 1 || t === 2) return 22;
@@ -2182,12 +2182,12 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
2182
2182
  if (t === 8) return 28;
2183
2183
  if (t === 9) return 29;
2184
2184
  if (t === 0) return 0;
2185
- }, Ut = (t) => `${ot$1}${kt}${t}${Vt}`, Kt = (t) => `${ot$1}${St}${t}${Ct}`, Ce = (t) => t.map((r) => M(r)), It = (t, r, s) => {
2185
+ }, Ut = (t) => `${ot}${kt}${t}${Vt}`, Kt = (t) => `${ot}${St}${t}${Ct}`, Ce = (t) => t.map((r) => M(r)), It = (t, r, s) => {
2186
2186
  const i = r[Symbol.iterator]();
2187
2187
  let a = !1, o = !1, u = t.at(-1), l = u === void 0 ? 0 : M(u), n = i.next(), c = i.next(), g = 0;
2188
2188
  for (; !n.done;) {
2189
2189
  const F = n.value, p = M(F);
2190
- l + p <= s ? t[t.length - 1] += F : (t.push(F), l = 0), (F === ot$1 || F === Gt) && (a = !0, o = r.startsWith(St, g + 1)), a ? o ? F === Ct && (a = !1, o = !1) : F === Vt && (a = !1) : (l += p, l === s && !c.done && (t.push(""), l = 0)), n = c, c = i.next(), g += F.length;
2190
+ l + p <= s ? t[t.length - 1] += F : (t.push(F), l = 0), (F === ot || F === Gt) && (a = !0, o = r.startsWith(St, g + 1)), a ? o ? F === Ct && (a = !1, o = !1) : F === Vt && (a = !1) : (l += p, l === s && !c.done && (t.push(""), l = 0)), n = c, c = i.next(), g += F.length;
2191
2191
  }
2192
2192
  u = t.at(-1), !l && u !== void 0 && u.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
2193
2193
  }, Se = (t) => {
@@ -2227,7 +2227,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
2227
2227
  let F = g.next(), p = g.next(), E = 0;
2228
2228
  for (; !F.done;) {
2229
2229
  const $ = F.value, m = p.value;
2230
- if (i += $, $ === ot$1 || $ === Gt) {
2230
+ if (i += $, $ === ot || $ === Gt) {
2231
2231
  Ht.lastIndex = E + 1;
2232
2232
  const f = Ht.exec(c)?.groups;
2233
2233
  if (f?.code !== void 0) {
@@ -3188,4 +3188,4 @@ async function findSourceRoot(cwd = process.cwd(), options) {
3188
3188
 
3189
3189
  //#endregion
3190
3190
  export { Ne as a, Ve as c, bt as d, je as f, runMain as h, Le as i, We as l, defineCommand as m, isInSourceRepo as n, R as o, Ct$1 as p, Je as r, Re as s, findSourceRoot as t, Ze as u };
3191
- //# sourceMappingURL=context-detection-DO0ZeRyQ.mjs.map
3191
+ //# sourceMappingURL=context-detection-BxY5Qs8X.mjs.map