@baton-dx/cli 0.5.0 → 0.6.1

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 \0rolldown/runtime.js
@@ -695,7 +695,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
695
695
  const e = i(true);
696
696
  return Object.keys(e);
697
697
  }
698
- }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f = [
698
+ }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f$1 = [
699
699
  ["APPVEYOR"],
700
700
  [
701
701
  "AWS_AMPLIFY",
@@ -787,7 +787,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
787
787
  ]
788
788
  ];
789
789
  function b() {
790
- if (globalThis.process?.env) for (const e of f) {
790
+ if (globalThis.process?.env) for (const e of f$1) {
791
791
  const s = e[1] || e[0];
792
792
  if (globalThis.process?.env[s]) return {
793
793
  name: e[0].toLowerCase(),
@@ -977,7 +977,7 @@ function createConsola(options = {}) {
977
977
  defaults: { level },
978
978
  stdout: process.stdout,
979
979
  stderr: process.stderr,
980
- prompt: (...args) => import("./prompt-C7kAOs-S.mjs").then((m) => m.prompt(...args)),
980
+ prompt: (...args) => import("./prompt-JYaE4U2w.mjs").then((m) => m.prompt(...args)),
981
981
  reporters: options.reporters || [options.fancy ?? !(T$1 || R$1) ? new FancyReporter() : new BasicReporter()],
982
982
  ...options
983
983
  });
@@ -8389,7 +8389,7 @@ var x$1 = class {
8389
8389
  this.state = "cancel", this.close();
8390
8390
  }, { once: !0 });
8391
8391
  }
8392
- this.rl = ot.createInterface({
8392
+ this.rl = f.createInterface({
8393
8393
  input: this.input,
8394
8394
  tabSize: 2,
8395
8395
  prompt: "",
@@ -8851,7 +8851,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
8851
8851
  limit: Infinity,
8852
8852
  ellipsis: "",
8853
8853
  ellipsisWidth: 0
8854
- }, 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) => {
8854
+ }, 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) => {
8855
8855
  if (t >= 30 && t <= 37 || t >= 90 && t <= 97) return 39;
8856
8856
  if (t >= 40 && t <= 47 || t >= 100 && t <= 107) return 49;
8857
8857
  if (t === 1 || t === 2) return 22;
@@ -8861,12 +8861,12 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
8861
8861
  if (t === 8) return 28;
8862
8862
  if (t === 9) return 29;
8863
8863
  if (t === 0) return 0;
8864
- }, 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) => {
8864
+ }, Ut = (t) => `${ot}${kt}${t}${Vt}`, Kt = (t) => `${ot}${St}${t}${Ct}`, Ce = (t) => t.map((r) => M(r)), It = (t, r, s) => {
8865
8865
  const i = r[Symbol.iterator]();
8866
8866
  let a = !1, o = !1, u = t.at(-1), l = u === void 0 ? 0 : M(u), n = i.next(), c = i.next(), g = 0;
8867
8867
  for (; !n.done;) {
8868
8868
  const F = n.value, p = M(F);
8869
- 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;
8869
+ 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;
8870
8870
  }
8871
8871
  u = t.at(-1), !l && u !== void 0 && u.length > 0 && t.length > 1 && (t[t.length - 2] += t.pop());
8872
8872
  }, Se = (t) => {
@@ -8906,7 +8906,7 @@ const et = me(), ct = () => process.env.CI === "true", Mt = (t) => t.isTTY === !
8906
8906
  let F = g.next(), p = g.next(), E = 0;
8907
8907
  for (; !F.done;) {
8908
8908
  const $ = F.value, m = p.value;
8909
- if (i += $, $ === ot$1 || $ === Gt) {
8909
+ if (i += $, $ === ot || $ === Gt) {
8910
8910
  Ht.lastIndex = E + 1;
8911
8911
  const f = Ht.exec(c)?.groups;
8912
8912
  if (f?.code !== void 0) {
@@ -9867,4 +9867,4 @@ async function findSourceRoot(cwd = process.cwd(), options) {
9867
9867
 
9868
9868
  //#endregion
9869
9869
  export { __commonJSMin as _, Ne as a, Ve as c, bt as d, je as f, runMain as g, defineCommand as h, Le as i, We as l, require_dist as m, isInSourceRepo as n, R as o, Ct$1 as p, Je as r, Re as s, findSourceRoot as t, Ze as u, __require as v, __toESM as y };
9870
- //# sourceMappingURL=context-detection-C7T1evnW.mjs.map
9870
+ //# sourceMappingURL=context-detection-CGh_5f6N.mjs.map