storybook 9.1.15 → 9.1.17
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/bin/index.cjs +42 -42
- package/dist/bin/index.js +42 -42
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +54 -54
- package/dist/common/index.js +54 -54
- package/dist/core-server/index.cjs +5 -6
- package/dist/core-server/index.js +5 -5
- package/dist/core-server/presets/common-preset.cjs +4425 -4417
- package/dist/core-server/presets/common-preset.js +4534 -4526
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.cjs +157 -157
- package/dist/node-logger/index.js +137 -137
- package/dist/telemetry/index.cjs +4 -5
- package/dist/telemetry/index.d.ts +21 -1
- package/dist/telemetry/index.js +4 -4
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ var v = (t, e, r) => (r = t != null ? a0(c0(t)) : {}, In(
|
|
|
25
25
|
)), Ln = (t) => In(Bt({}, "__esModule", { value: !0 }), t);
|
|
26
26
|
|
|
27
27
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
28
|
-
var bu = c((DE,
|
|
28
|
+
var bu = c((DE, Pn) => {
|
|
29
29
|
"use strict";
|
|
30
30
|
var f0 = require("events"), p0 = 0, Eu = class extends f0 {
|
|
31
31
|
static {
|
|
@@ -35,11 +35,11 @@ var bu = c((DE, kn) => {
|
|
|
35
35
|
super(), this.id = ++p0, this.name = e;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
Pn.exports = Eu;
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// ../node_modules/are-we-there-yet/lib/tracker.js
|
|
42
|
-
var ar = c((lE,
|
|
42
|
+
var ar = c((lE, kn) => {
|
|
43
43
|
"use strict";
|
|
44
44
|
var m0 = bu(), xu = class extends m0 {
|
|
45
45
|
static {
|
|
@@ -62,7 +62,7 @@ var ar = c((lE, Pn) => {
|
|
|
62
62
|
this.workTodo = this.workDone = 1, this.emit("change", this.name, 1, this);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
kn.exports = xu;
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
// ../node_modules/are-we-there-yet/lib/tracker-stream.js
|
|
@@ -513,8 +513,8 @@ var oo = c((OE, no) => {
|
|
|
513
513
|
var Ou = c((_E, Do) => {
|
|
514
514
|
"use strict";
|
|
515
515
|
var $u = Ke(), L0 = oo();
|
|
516
|
-
Do.exports =
|
|
517
|
-
function
|
|
516
|
+
Do.exports = P0;
|
|
517
|
+
function P0(t, e) {
|
|
518
518
|
if ($u(t) === 0)
|
|
519
519
|
return t;
|
|
520
520
|
if (e <= 0)
|
|
@@ -525,18 +525,18 @@ var Ou = c((_E, Do) => {
|
|
|
525
525
|
n = n.slice(0, -1);
|
|
526
526
|
return n;
|
|
527
527
|
}
|
|
528
|
-
s(
|
|
528
|
+
s(P0, "wideTruncate");
|
|
529
529
|
});
|
|
530
530
|
|
|
531
531
|
// ../node_modules/gauge/lib/error.js
|
|
532
532
|
var ao = c((mr) => {
|
|
533
533
|
"use strict";
|
|
534
|
-
var
|
|
534
|
+
var k0 = require("util"), M0 = mr.User = /* @__PURE__ */ s(function t(e) {
|
|
535
535
|
var r = new Error(e);
|
|
536
536
|
return Error.captureStackTrace(r, t), r.code = "EGAUGE", r;
|
|
537
537
|
}, "User");
|
|
538
538
|
mr.MissingTemplateValue = /* @__PURE__ */ s(function t(e, r) {
|
|
539
|
-
var u = new M0(
|
|
539
|
+
var u = new M0(k0.format('Missing template value "%s"', e.type));
|
|
540
540
|
return Error.captureStackTrace(u, t), u.template = e, u.values = r, u;
|
|
541
541
|
}, "MissingTemplateValue");
|
|
542
542
|
mr.Internal = /* @__PURE__ */ s(function t(e) {
|
|
@@ -546,7 +546,7 @@ var ao = c((mr) => {
|
|
|
546
546
|
});
|
|
547
547
|
|
|
548
548
|
// ../node_modules/gauge/lib/template-item.js
|
|
549
|
-
var ho = c((
|
|
549
|
+
var ho = c((kE, lo) => {
|
|
550
550
|
"use strict";
|
|
551
551
|
var R0 = Ke();
|
|
552
552
|
lo.exports = Ze;
|
|
@@ -704,7 +704,7 @@ var Lu = c((RE, mo) => {
|
|
|
704
704
|
// ../node_modules/gauge/lib/plumbing.js
|
|
705
705
|
var Fo = c((NE, go) => {
|
|
706
706
|
"use strict";
|
|
707
|
-
var
|
|
707
|
+
var Pe = hr(), z0 = Lu(), gr = pr(), Ee = go.exports = function(t, e, r) {
|
|
708
708
|
r || (r = 80), gr("OAN", [t, e, r]), this.showing = !1, this.theme = t, this.width = r, this.template = e;
|
|
709
709
|
};
|
|
710
710
|
Ee.prototype = {};
|
|
@@ -718,15 +718,15 @@ var Fo = c((NE, go) => {
|
|
|
718
718
|
gr("N", [t]), this.width = t;
|
|
719
719
|
};
|
|
720
720
|
Ee.prototype.hide = function() {
|
|
721
|
-
return
|
|
721
|
+
return Pe.gotoSOL() + Pe.eraseLine();
|
|
722
722
|
};
|
|
723
|
-
Ee.prototype.hideCursor =
|
|
724
|
-
Ee.prototype.showCursor =
|
|
723
|
+
Ee.prototype.hideCursor = Pe.hideCursor;
|
|
724
|
+
Ee.prototype.showCursor = Pe.showCursor;
|
|
725
725
|
Ee.prototype.show = function(t) {
|
|
726
726
|
var e = Object.create(this.theme);
|
|
727
727
|
for (var r in t)
|
|
728
728
|
e[r] = t[r];
|
|
729
|
-
return z0(this.width, this.template, e).trim() +
|
|
729
|
+
return z0(this.width, this.template, e).trim() + Pe.color("reset") + Pe.eraseLine() + Pe.gotoSOL();
|
|
730
730
|
};
|
|
731
731
|
});
|
|
732
732
|
|
|
@@ -838,11 +838,11 @@ wt(Ao, {
|
|
|
838
838
|
signals: () => be,
|
|
839
839
|
unload: () => tp
|
|
840
840
|
});
|
|
841
|
-
var Er,
|
|
841
|
+
var Er, Pu, ku, J0, Mu, br, X0, Ru, qu, Nu, Q0, ep, tp, So = _n(() => {
|
|
842
842
|
wo();
|
|
843
843
|
Er = /* @__PURE__ */ s((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.
|
|
844
844
|
reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "\
|
|
845
|
-
function", "processOk"),
|
|
845
|
+
function", "processOk"), Pu = Symbol.for("signal-exit emitter"), ku = globalThis, J0 = Object.defineProperty.bind(Object), Mu = class {
|
|
846
846
|
static {
|
|
847
847
|
s(this, "Emitter");
|
|
848
848
|
}
|
|
@@ -857,9 +857,9 @@ function", "processOk"), ku = Symbol.for("signal-exit emitter"), Pu = globalThis
|
|
|
857
857
|
count = 0;
|
|
858
858
|
id = Math.random();
|
|
859
859
|
constructor() {
|
|
860
|
-
if (Pu
|
|
861
|
-
return Pu
|
|
862
|
-
J0(
|
|
860
|
+
if (ku[Pu])
|
|
861
|
+
return ku[Pu];
|
|
862
|
+
J0(ku, Pu, {
|
|
863
863
|
value: this,
|
|
864
864
|
writable: !1,
|
|
865
865
|
enumerable: !1,
|
|
@@ -1051,7 +1051,7 @@ var Io = c((JE, _o) => {
|
|
|
1051
1051
|
});
|
|
1052
1052
|
|
|
1053
1053
|
// ../node_modules/gauge/lib/base-theme.js
|
|
1054
|
-
var
|
|
1054
|
+
var Po = c((QE, Lo) => {
|
|
1055
1055
|
"use strict";
|
|
1056
1056
|
var np = $o(), op = Io();
|
|
1057
1057
|
Lo.exports = {
|
|
@@ -1067,13 +1067,13 @@ var ko = c((QE, Lo) => {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
|
|
1069
1069
|
// ../node_modules/gauge/lib/theme-set.js
|
|
1070
|
-
var Mo = c((t8,
|
|
1070
|
+
var Mo = c((t8, ko) => {
|
|
1071
1071
|
"use strict";
|
|
1072
|
-
|
|
1072
|
+
ko.exports = function() {
|
|
1073
1073
|
return H.newThemeSet();
|
|
1074
1074
|
};
|
|
1075
1075
|
var H = {};
|
|
1076
|
-
H.baseTheme =
|
|
1076
|
+
H.baseTheme = Po();
|
|
1077
1077
|
H.newTheme = function(t, e) {
|
|
1078
1078
|
return e || (e = t, t = this.baseTheme), Object.assign({}, t, e);
|
|
1079
1079
|
};
|
|
@@ -1223,22 +1223,22 @@ var Wo = c((n8, Gu) => {
|
|
|
1223
1223
|
// ../node_modules/gauge/lib/index.js
|
|
1224
1224
|
var Uo = c((o8, Vo) => {
|
|
1225
1225
|
"use strict";
|
|
1226
|
-
var lp = Fo(), hp = Eo(), cp = Bo(), dp = (So(), Ln(Ao)).onExit, fp = qo(), pp = jo(),
|
|
1227
|
-
Vo.exports =
|
|
1226
|
+
var lp = Fo(), hp = Eo(), cp = Bo(), dp = (So(), Ln(Ao)).onExit, fp = qo(), pp = jo(), ke = ju(), mp = Wo();
|
|
1227
|
+
Vo.exports = k;
|
|
1228
1228
|
function xr(t, e) {
|
|
1229
1229
|
return function() {
|
|
1230
1230
|
return e.call(t);
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
s(xr, "callWith");
|
|
1234
|
-
function
|
|
1234
|
+
function k(t, e) {
|
|
1235
1235
|
var r, u;
|
|
1236
|
-
t && t.write ? (u = t, r = e || {}) : e && e.write ? (u = e, r = t || {}) : (u =
|
|
1236
|
+
t && t.write ? (u = t, r = e || {}) : e && e.write ? (u = e, r = t || {}) : (u = ke.stderr, r = t || e || {}), this._status = {
|
|
1237
1237
|
spun: 0,
|
|
1238
1238
|
section: "",
|
|
1239
1239
|
subsection: ""
|
|
1240
1240
|
}, this._paused = !1, this._disabled = !0, this._showing = !1, this._onScreen = !1, this._needsRedraw = !1, this._hideCursor = r.hideCursor ==
|
|
1241
|
-
null ? !0 : r.hideCursor, this._fixedFramerate = r.fixedFramerate == null ? !/^v0\.8\./.test(
|
|
1241
|
+
null ? !0 : r.hideCursor, this._fixedFramerate = r.fixedFramerate == null ? !/^v0\.8\./.test(ke.version) : r.fixedFramerate, this._lastUpdateAt =
|
|
1242
1242
|
null, this._updateInterval = r.updateInterval == null ? 50 : r.updateInterval, this._themes = r.themes || fp, this._theme = r.theme;
|
|
1243
1243
|
var n = this._computeTheme(r.theme), o = r.template || [
|
|
1244
1244
|
{ type: "progressbar", length: 20 },
|
|
@@ -1252,15 +1252,15 @@ var Uo = c((o8, Vo) => {
|
|
|
1252
1252
|
this._cleanupOnExit = r.cleanupOnExit == null || r.cleanupOnExit, this._removeOnExit = null, r.enabled || r.enabled == null && this._tty &&
|
|
1253
1253
|
this._tty.isTTY ? this.enable() : this.disable();
|
|
1254
1254
|
}
|
|
1255
|
-
s(
|
|
1256
|
-
|
|
1257
|
-
|
|
1255
|
+
s(k, "Gauge");
|
|
1256
|
+
k.prototype = {};
|
|
1257
|
+
k.prototype.isEnabled = function() {
|
|
1258
1258
|
return !this._disabled;
|
|
1259
1259
|
};
|
|
1260
|
-
|
|
1260
|
+
k.prototype.setTemplate = function(t) {
|
|
1261
1261
|
this._gauge.setTemplate(t), this._showing && this._requestRedraw();
|
|
1262
1262
|
};
|
|
1263
|
-
|
|
1263
|
+
k.prototype._computeTheme = function(t) {
|
|
1264
1264
|
if (t || (t = {}), typeof t == "string")
|
|
1265
1265
|
t = this._themes.getTheme(t);
|
|
1266
1266
|
else if (Object.keys(t).length === 0 || t.hasUnicode != null || t.hasColor != null) {
|
|
@@ -1273,44 +1273,44 @@ var Uo = c((o8, Vo) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return t;
|
|
1275
1275
|
};
|
|
1276
|
-
|
|
1276
|
+
k.prototype.setThemeset = function(t) {
|
|
1277
1277
|
this._themes = t, this.setTheme(this._theme);
|
|
1278
1278
|
};
|
|
1279
|
-
|
|
1279
|
+
k.prototype.setTheme = function(t) {
|
|
1280
1280
|
this._gauge.setTheme(this._computeTheme(t)), this._showing && this._requestRedraw(), this._theme = t;
|
|
1281
1281
|
};
|
|
1282
|
-
|
|
1282
|
+
k.prototype._requestRedraw = function() {
|
|
1283
1283
|
this._needsRedraw = !0, this._fixedFramerate || this._doRedraw();
|
|
1284
1284
|
};
|
|
1285
|
-
|
|
1285
|
+
k.prototype.getWidth = function() {
|
|
1286
1286
|
return (this._tty && this._tty.columns || 80) - 1;
|
|
1287
1287
|
};
|
|
1288
|
-
|
|
1288
|
+
k.prototype.setWriteTo = function(t, e) {
|
|
1289
1289
|
var r = !this._disabled;
|
|
1290
|
-
r && this.disable(), this._writeTo = t, this._tty = e || t ===
|
|
1290
|
+
r && this.disable(), this._writeTo = t, this._tty = e || t === ke.stderr && ke.stdout.isTTY && ke.stdout || t.isTTY && t || this._tty, this.
|
|
1291
1291
|
_gauge && this._gauge.setWidth(this.getWidth()), r && this.enable();
|
|
1292
1292
|
};
|
|
1293
|
-
|
|
1293
|
+
k.prototype.enable = function() {
|
|
1294
1294
|
this._disabled && (this._disabled = !1, this._tty && this._enableEvents(), this._showing && this.show());
|
|
1295
1295
|
};
|
|
1296
|
-
|
|
1296
|
+
k.prototype.disable = function() {
|
|
1297
1297
|
this._disabled || (this._showing && (this._lastUpdateAt = null, this._showing = !1, this._doRedraw(), this._showing = !0), this._disabled =
|
|
1298
1298
|
!0, this._tty && this._disableEvents());
|
|
1299
1299
|
};
|
|
1300
|
-
|
|
1300
|
+
k.prototype._enableEvents = function() {
|
|
1301
1301
|
this._cleanupOnExit && (this._removeOnExit = dp(xr(this, this.disable))), this._tty.on("resize", this._$$handleSizeChange), this._fixedFramerate &&
|
|
1302
1302
|
(this.redrawTracker = pp(this._$$doRedraw, this._updateInterval), this.redrawTracker.unref && this.redrawTracker.unref());
|
|
1303
1303
|
};
|
|
1304
|
-
|
|
1304
|
+
k.prototype._disableEvents = function() {
|
|
1305
1305
|
this._tty.removeListener("resize", this._$$handleSizeChange), this._fixedFramerate && clearInterval(this.redrawTracker), this._removeOnExit &&
|
|
1306
1306
|
this._removeOnExit();
|
|
1307
1307
|
};
|
|
1308
|
-
|
|
1308
|
+
k.prototype.hide = function(t) {
|
|
1309
1309
|
if (this._disabled || !this._showing)
|
|
1310
|
-
return t &&
|
|
1310
|
+
return t && ke.nextTick(t);
|
|
1311
1311
|
this._showing = !1, this._doRedraw(), t && mp(t);
|
|
1312
1312
|
};
|
|
1313
|
-
|
|
1313
|
+
k.prototype.show = function(t, e) {
|
|
1314
1314
|
if (this._showing = !0, typeof t == "string")
|
|
1315
1315
|
this._status.section = t;
|
|
1316
1316
|
else if (typeof t == "object")
|
|
@@ -1320,13 +1320,13 @@ var Uo = c((o8, Vo) => {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
e != null && (this._status.completed = e), !this._disabled && this._requestRedraw();
|
|
1322
1322
|
};
|
|
1323
|
-
|
|
1323
|
+
k.prototype.pulse = function(t) {
|
|
1324
1324
|
this._status.subsection = t || "", this._status.spun++, !this._disabled && this._showing && this._requestRedraw();
|
|
1325
1325
|
};
|
|
1326
|
-
|
|
1326
|
+
k.prototype._handleSizeChange = function() {
|
|
1327
1327
|
this._gauge.setWidth(this._tty.columns - 1), this._requestRedraw();
|
|
1328
1328
|
};
|
|
1329
|
-
|
|
1329
|
+
k.prototype._doRedraw = function() {
|
|
1330
1330
|
if (!(this._disabled || this._paused)) {
|
|
1331
1331
|
if (!this._fixedFramerate) {
|
|
1332
1332
|
var t = Date.now();
|
|
@@ -1904,7 +1904,7 @@ var la = c((f1, aa) => {
|
|
|
1904
1904
|
});
|
|
1905
1905
|
|
|
1906
1906
|
// ../node_modules/kleur/index.js
|
|
1907
|
-
var
|
|
1907
|
+
var P = c((z1, _a) => {
|
|
1908
1908
|
"use strict";
|
|
1909
1909
|
var { FORCE_COLOR: ng, NODE_DISABLE_COLORS: og, TERM: Dg } = process.env, w = {
|
|
1910
1910
|
enabled: !og && Dg !== "dumb" && ng !== "0",
|
|
@@ -1994,9 +1994,9 @@ var La = c((Z1, Ia) => {
|
|
|
1994
1994
|
});
|
|
1995
1995
|
|
|
1996
1996
|
// ../node_modules/prompts/dist/util/strip.js
|
|
1997
|
-
var Rr = c((J1,
|
|
1997
|
+
var Rr = c((J1, Pa) => {
|
|
1998
1998
|
"use strict";
|
|
1999
|
-
|
|
1999
|
+
Pa.exports = (t) => {
|
|
2000
2000
|
let e = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
2001
2001
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"), r = new RegExp(e, "g");
|
|
2002
2002
|
return typeof t == "string" ? t.replace(r, "") : t;
|
|
@@ -2041,19 +2041,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2041
2041
|
s(lg, "_createForOfIteratorHelper");
|
|
2042
2042
|
function hg(t, e) {
|
|
2043
2043
|
if (t) {
|
|
2044
|
-
if (typeof t == "string") return
|
|
2044
|
+
if (typeof t == "string") return ka(t, e);
|
|
2045
2045
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
2046
2046
|
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t);
|
|
2047
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
2047
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return ka(t, e);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
s(hg, "_unsupportedIterableToArray");
|
|
2051
|
-
function
|
|
2051
|
+
function ka(t, e) {
|
|
2052
2052
|
(e == null || e > t.length) && (e = t.length);
|
|
2053
2053
|
for (var r = 0, u = new Array(e); r < e; r++) u[r] = t[r];
|
|
2054
2054
|
return u;
|
|
2055
2055
|
}
|
|
2056
|
-
s(
|
|
2056
|
+
s(ka, "_arrayLikeToArray");
|
|
2057
2057
|
var cg = Rr(), Ra = S(), Ma = Ra.erase, dg = Ra.cursor, fg = /* @__PURE__ */ s((t) => [...cg(t)].length, "width");
|
|
2058
2058
|
qa.exports = function(t, e) {
|
|
2059
2059
|
if (!e) return Ma.line + dg.to(0);
|
|
@@ -2109,7 +2109,7 @@ var wi = c((e6, ja) => {
|
|
|
2109
2109
|
// ../node_modules/prompts/dist/util/style.js
|
|
2110
2110
|
var Wa = c((t6, Ga) => {
|
|
2111
2111
|
"use strict";
|
|
2112
|
-
var ht =
|
|
2112
|
+
var ht = P(), je = wi(), Ai = Object.freeze({
|
|
2113
2113
|
password: {
|
|
2114
2114
|
scale: 1,
|
|
2115
2115
|
render: /* @__PURE__ */ s((t) => "*".repeat(t.length), "render")
|
|
@@ -2199,7 +2199,7 @@ var ee = c((n6, Za) => {
|
|
|
2199
2199
|
// ../node_modules/prompts/dist/elements/prompt.js
|
|
2200
2200
|
var ce = c((o6, Qa) => {
|
|
2201
2201
|
"use strict";
|
|
2202
|
-
var Ja = require("readline"), xg = ee(), vg = xg.action, yg = require("events"), Xa = S(), Bg = Xa.beep, wg = Xa.cursor, Ag =
|
|
2202
|
+
var Ja = require("readline"), xg = ee(), vg = xg.action, yg = require("events"), Xa = S(), Bg = Xa.beep, wg = Xa.cursor, Ag = P(), Si = class extends yg {
|
|
2203
2203
|
static {
|
|
2204
2204
|
s(this, "Prompt");
|
|
2205
2205
|
}
|
|
@@ -2268,7 +2268,7 @@ var il = c((a6, ul) => {
|
|
|
2268
2268
|
};
|
|
2269
2269
|
}
|
|
2270
2270
|
s(tl, "_asyncToGenerator");
|
|
2271
|
-
var qr =
|
|
2271
|
+
var qr = P(), Sg = ce(), rl = S(), Tg = rl.erase, Nt = rl.cursor, Nr = ee(), Ti = Nr.style, $i = Nr.clear, $g = Nr.lines, Og = Nr.figures,
|
|
2272
2272
|
Oi = class extends Sg {
|
|
2273
2273
|
static {
|
|
2274
2274
|
s(this, "TextPrompt");
|
|
@@ -2372,7 +2372,7 @@ ${u ? " " : Og.pointerSmall} ${qr.red().italic(r)}`, "")), this.out.write(Tg.lin
|
|
|
2372
2372
|
// ../node_modules/prompts/dist/elements/select.js
|
|
2373
2373
|
var Dl = c((h6, ol) => {
|
|
2374
2374
|
"use strict";
|
|
2375
|
-
var de =
|
|
2375
|
+
var de = P(), _g = ce(), jt = ee(), sl = jt.style, nl = jt.clear, jr = jt.figures, Ig = jt.wrap, Lg = jt.entriesToDisplay, Pg = S(), kg = Pg.
|
|
2376
2376
|
cursor, _i = class extends _g {
|
|
2377
2377
|
static {
|
|
2378
2378
|
s(this, "SelectPrompt");
|
|
@@ -2431,7 +2431,7 @@ isabled", this.cursor = e.initial || 0, this.choices = e.choices.map((r, u) => (
|
|
|
2431
2431
|
}
|
|
2432
2432
|
render() {
|
|
2433
2433
|
if (this.closed) return;
|
|
2434
|
-
this.firstRender ? this.out.write(
|
|
2434
|
+
this.firstRender ? this.out.write(kg.hide) : this.out.write(nl(this.outputText, this.out.columns)), super.render();
|
|
2435
2435
|
let e = Lg(this.cursor, this.choices.length, this.optionsPerPage), r = e.startIndex, u = e.endIndex;
|
|
2436
2436
|
if (this.outputText = [sl.symbol(this.done, this.aborted), de.bold(this.msg), sl.delimiter(!1), this.done ? this.selection.title : this.
|
|
2437
2437
|
selection.disabled ? de.yellow(this.warn) : de.gray(this.hint)].join(" "), !this.done) {
|
|
@@ -2460,7 +2460,7 @@ isabled", this.cursor = e.initial || 0, this.choices = e.choices.map((r, u) => (
|
|
|
2460
2460
|
// ../node_modules/prompts/dist/elements/toggle.js
|
|
2461
2461
|
var fl = c((d6, dl) => {
|
|
2462
2462
|
"use strict";
|
|
2463
|
-
var Gr =
|
|
2463
|
+
var Gr = P(), Mg = ce(), hl = ee(), al = hl.style, Rg = hl.clear, cl = S(), ll = cl.cursor, qg = cl.erase, Ii = class extends Mg {
|
|
2464
2464
|
static {
|
|
2465
2465
|
s(this, "TogglePrompt");
|
|
2466
2466
|
}
|
|
@@ -2567,7 +2567,7 @@ var se = c((p6, pl) => {
|
|
|
2567
2567
|
// ../node_modules/prompts/dist/dateparts/meridiem.js
|
|
2568
2568
|
var gl = c((g6, ml) => {
|
|
2569
2569
|
"use strict";
|
|
2570
|
-
var Ng = se(),
|
|
2570
|
+
var Ng = se(), Pi = class extends Ng {
|
|
2571
2571
|
static {
|
|
2572
2572
|
s(this, "Meridiem");
|
|
2573
2573
|
}
|
|
@@ -2585,13 +2585,13 @@ var gl = c((g6, ml) => {
|
|
|
2585
2585
|
return /\A/.test(this.token) ? e.toUpperCase() : e;
|
|
2586
2586
|
}
|
|
2587
2587
|
};
|
|
2588
|
-
ml.exports =
|
|
2588
|
+
ml.exports = Pi;
|
|
2589
2589
|
});
|
|
2590
2590
|
|
|
2591
2591
|
// ../node_modules/prompts/dist/dateparts/day.js
|
|
2592
2592
|
var Cl = c((C6, Fl) => {
|
|
2593
2593
|
"use strict";
|
|
2594
|
-
var jg = se(), Gg = /* @__PURE__ */ s((t) => (t = t % 10, t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th"), "pos"),
|
|
2594
|
+
var jg = se(), Gg = /* @__PURE__ */ s((t) => (t = t % 10, t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th"), "pos"), ki = class extends jg {
|
|
2595
2595
|
static {
|
|
2596
2596
|
s(this, "Day");
|
|
2597
2597
|
}
|
|
@@ -2613,7 +2613,7 @@ var Cl = c((C6, Fl) => {
|
|
|
2613
2613
|
"ddd" ? this.locales.weekdaysShort[r] : this.token === "dddd" ? this.locales.weekdays[r] : e;
|
|
2614
2614
|
}
|
|
2615
2615
|
};
|
|
2616
|
-
Fl.exports =
|
|
2616
|
+
Fl.exports = ki;
|
|
2617
2617
|
});
|
|
2618
2618
|
|
|
2619
2619
|
// ../node_modules/prompts/dist/dateparts/hours.js
|
|
@@ -2807,7 +2807,7 @@ var Wl = c((L6, Gl) => {
|
|
|
2807
2807
|
D.done ? e(a) : Promise.resolve(a).then(u, n);
|
|
2808
2808
|
}
|
|
2809
2809
|
s(Ll, "asyncGeneratorStep");
|
|
2810
|
-
function
|
|
2810
|
+
function Pl(t) {
|
|
2811
2811
|
return function() {
|
|
2812
2812
|
var e = this, r = arguments;
|
|
2813
2813
|
return new Promise(function(u, n) {
|
|
@@ -2823,8 +2823,8 @@ var Wl = c((L6, Gl) => {
|
|
|
2823
2823
|
});
|
|
2824
2824
|
};
|
|
2825
2825
|
}
|
|
2826
|
-
s(
|
|
2827
|
-
var Wi =
|
|
2826
|
+
s(Pl, "_asyncToGenerator");
|
|
2827
|
+
var Wi = P(), Kg = ce(), Ui = ee(), kl = Ui.style, Ml = Ui.clear, Zg = Ui.figures, jl = S(), Jg = jl.erase, Rl = jl.cursor, fe = Il(), ql = fe.
|
|
2828
2828
|
DatePart, Xg = fe.Meridiem, Qg = fe.Day, eF = fe.Hours, tF = fe.Milliseconds, rF = fe.Minutes, uF = fe.Month, iF = fe.Seconds, sF = fe.Year,
|
|
2829
2829
|
nF = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g, Nl = {
|
|
2830
2830
|
1: ({
|
|
@@ -2899,14 +2899,14 @@ var Wl = c((L6, Gl) => {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
validate() {
|
|
2901
2901
|
var e = this;
|
|
2902
|
-
return
|
|
2902
|
+
return Pl(function* () {
|
|
2903
2903
|
let r = yield e.validator(e.value);
|
|
2904
2904
|
typeof r == "string" && (e.errorMsg = r, r = !1), e.error = !r;
|
|
2905
2905
|
})();
|
|
2906
2906
|
}
|
|
2907
2907
|
submit() {
|
|
2908
2908
|
var e = this;
|
|
2909
|
-
return
|
|
2909
|
+
return Pl(function* () {
|
|
2910
2910
|
if (yield e.validate(), e.error) {
|
|
2911
2911
|
e.color = "red", e.fire(), e.render();
|
|
2912
2912
|
return;
|
|
@@ -2940,7 +2940,7 @@ var Wl = c((L6, Gl) => {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
render() {
|
|
2942
2942
|
this.closed || (this.firstRender ? this.out.write(Rl.hide) : this.out.write(Ml(this.outputText, this.out.columns)), super.render(), this.
|
|
2943
|
-
outputText = [
|
|
2943
|
+
outputText = [kl.symbol(this.done, this.aborted), Wi.bold(this.msg), kl.delimiter(!1), this.parts.reduce((e, r, u) => e.concat(u === this.
|
|
2944
2944
|
cursor && !this.done ? Wi.cyan().underline(r.toString()) : r), []).join("")].join(" "), this.error && (this.outputText += this.errorMsg.
|
|
2945
2945
|
split(`
|
|
2946
2946
|
`).reduce((e, r, u) => e + `
|
|
@@ -2951,7 +2951,7 @@ ${u ? " " : Zg.pointerSmall} ${Wi.red().italic(r)}`, "")), this.out.write(Jg.lin
|
|
|
2951
2951
|
});
|
|
2952
2952
|
|
|
2953
2953
|
// ../node_modules/prompts/dist/elements/number.js
|
|
2954
|
-
var Zl = c((
|
|
2954
|
+
var Zl = c((k6, Kl) => {
|
|
2955
2955
|
"use strict";
|
|
2956
2956
|
function Vl(t, e, r, u, n, o, i) {
|
|
2957
2957
|
try {
|
|
@@ -2980,7 +2980,7 @@ var Zl = c((P6, Kl) => {
|
|
|
2980
2980
|
};
|
|
2981
2981
|
}
|
|
2982
2982
|
s(Ul, "_asyncToGenerator");
|
|
2983
|
-
var Wr =
|
|
2983
|
+
var Wr = P(), DF = ce(), zl = S(), Vr = zl.cursor, aF = zl.erase, Ur = ee(), Yi = Ur.style, lF = Ur.figures, Yl = Ur.clear, hF = Ur.lines,
|
|
2984
2984
|
cF = /[0-9]/, Hi = /* @__PURE__ */ s((t) => t !== void 0, "isDef"), Hl = /* @__PURE__ */ s((t, e) => {
|
|
2985
2985
|
let r = Math.pow(10, e);
|
|
2986
2986
|
return Math.round(t * r) / r;
|
|
@@ -3078,7 +3078,7 @@ ${u ? " " : lF.pointerSmall} ${Wr.red().italic(r)}`, "")), this.out.write(aF.lin
|
|
|
3078
3078
|
// ../node_modules/prompts/dist/elements/multiselect.js
|
|
3079
3079
|
var Zi = c((R6, Ql) => {
|
|
3080
3080
|
"use strict";
|
|
3081
|
-
var ne =
|
|
3081
|
+
var ne = P(), dF = S(), fF = dF.cursor, pF = ce(), Gt = ee(), Jl = Gt.clear, Te = Gt.figures, Xl = Gt.style, mF = Gt.wrap, gF = Gt.entriesToDisplay,
|
|
3082
3082
|
Ki = class extends pF {
|
|
3083
3083
|
static {
|
|
3084
3084
|
s(this, "MultiselectPrompt");
|
|
@@ -3243,7 +3243,7 @@ var nh = c((N6, sh) => {
|
|
|
3243
3243
|
};
|
|
3244
3244
|
}
|
|
3245
3245
|
s(FF, "_asyncToGenerator");
|
|
3246
|
-
var Wt =
|
|
3246
|
+
var Wt = P(), CF = ce(), ih = S(), EF = ih.erase, th = ih.cursor, Vt = ee(), Ji = Vt.style, rh = Vt.clear, Xi = Vt.figures, bF = Vt.wrap, xF = Vt.
|
|
3247
3247
|
entriesToDisplay, uh = /* @__PURE__ */ s((t, e) => t[e] && (t[e].value || t[e].title || t[e]), "getVal"), vF = /* @__PURE__ */ s((t, e) => t[e] &&
|
|
3248
3248
|
(t[e].title || t[e].value || t[e]), "getTitle"), yF = /* @__PURE__ */ s((t, e) => {
|
|
3249
3249
|
let r = t.findIndex((u) => u.value === e || u.title === e);
|
|
@@ -3380,7 +3380,7 @@ var nh = c((N6, sh) => {
|
|
|
3380
3380
|
// ../node_modules/prompts/dist/elements/autocompleteMultiselect.js
|
|
3381
3381
|
var lh = c((G6, ah) => {
|
|
3382
3382
|
"use strict";
|
|
3383
|
-
var pe =
|
|
3383
|
+
var pe = P(), BF = S(), wF = BF.cursor, AF = Zi(), ts = ee(), oh = ts.clear, Dh = ts.style, ct = ts.figures, es = class extends AF {
|
|
3384
3384
|
static {
|
|
3385
3385
|
s(this, "AutocompleteMultiselectPrompt");
|
|
3386
3386
|
}
|
|
@@ -3472,7 +3472,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : pe.gray("Enter somet
|
|
|
3472
3472
|
// ../node_modules/prompts/dist/elements/confirm.js
|
|
3473
3473
|
var gh = c((V6, mh) => {
|
|
3474
3474
|
"use strict";
|
|
3475
|
-
var hh =
|
|
3475
|
+
var hh = P(), SF = ce(), fh = ee(), ch = fh.style, TF = fh.clear, ph = S(), $F = ph.erase, dh = ph.cursor, rs = class extends SF {
|
|
3476
3476
|
static {
|
|
3477
3477
|
s(this, "ConfirmPrompt");
|
|
3478
3478
|
}
|
|
@@ -3602,7 +3602,7 @@ var Th = c((K6, Sh) => {
|
|
|
3602
3602
|
function LF(t, e) {
|
|
3603
3603
|
var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3604
3604
|
if (!r) {
|
|
3605
|
-
if (Array.isArray(t) || (r =
|
|
3605
|
+
if (Array.isArray(t) || (r = PF(t)) || e && t && typeof t.length == "number") {
|
|
3606
3606
|
r && (t = r);
|
|
3607
3607
|
var u = 0, n = /* @__PURE__ */ s(function() {
|
|
3608
3608
|
}, "F");
|
|
@@ -3632,7 +3632,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3632
3632
|
}, "f") };
|
|
3633
3633
|
}
|
|
3634
3634
|
s(LF, "_createForOfIteratorHelper");
|
|
3635
|
-
function
|
|
3635
|
+
function PF(t, e) {
|
|
3636
3636
|
if (t) {
|
|
3637
3637
|
if (typeof t == "string") return yh(t, e);
|
|
3638
3638
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -3640,7 +3640,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3640
3640
|
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return yh(t, e);
|
|
3641
3641
|
}
|
|
3642
3642
|
}
|
|
3643
|
-
s(
|
|
3643
|
+
s(PF, "_unsupportedIterableToArray");
|
|
3644
3644
|
function yh(t, e) {
|
|
3645
3645
|
(e == null || e > t.length) && (e = t.length);
|
|
3646
3646
|
for (var r = 0, u = new Array(e); r < e; r++) u[r] = t[r];
|
|
@@ -3674,7 +3674,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3674
3674
|
};
|
|
3675
3675
|
}
|
|
3676
3676
|
s(wh, "_asyncToGenerator");
|
|
3677
|
-
var us = bh(),
|
|
3677
|
+
var us = bh(), kF = ["suggest", "format", "onState", "validate", "onRender", "type"], Ah = /* @__PURE__ */ s(() => {
|
|
3678
3678
|
}, "noop");
|
|
3679
3679
|
function $e() {
|
|
3680
3680
|
return is.apply(this, arguments);
|
|
@@ -3703,7 +3703,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3703
3703
|
var g = i;
|
|
3704
3704
|
if (a = g.name, l = g.type, typeof l == "function" && (l = yield l(o, vh({}, u), i), i.type = l), !!l) {
|
|
3705
3705
|
for (let E in i) {
|
|
3706
|
-
if (
|
|
3706
|
+
if (kF.includes(E)) continue;
|
|
3707
3707
|
let b = i[E];
|
|
3708
3708
|
i[E] = typeof b == "function" ? yield b(o, vh({}, u), h) : b;
|
|
3709
3709
|
}
|
|
@@ -3792,7 +3792,7 @@ var Hr = c((X6, _h) => {
|
|
|
3792
3792
|
});
|
|
3793
3793
|
|
|
3794
3794
|
// ../node_modules/prompts/lib/util/clear.js
|
|
3795
|
-
var
|
|
3795
|
+
var Ph = c((Q6, Lh) => {
|
|
3796
3796
|
"use strict";
|
|
3797
3797
|
var NF = Hr(), { erase: Ih, cursor: jF } = S(), GF = /* @__PURE__ */ s((t) => [...NF(t)].length, "width");
|
|
3798
3798
|
Lh.exports = function(t, e) {
|
|
@@ -3805,7 +3805,7 @@ var kh = c((Q6, Lh) => {
|
|
|
3805
3805
|
});
|
|
3806
3806
|
|
|
3807
3807
|
// ../node_modules/prompts/lib/util/figures.js
|
|
3808
|
-
var ss = c((tb,
|
|
3808
|
+
var ss = c((tb, kh) => {
|
|
3809
3809
|
"use strict";
|
|
3810
3810
|
var Ut = {
|
|
3811
3811
|
arrowUp: "\u2191",
|
|
@@ -3834,13 +3834,13 @@ var ss = c((tb, Ph) => {
|
|
|
3834
3834
|
line: "\u2500",
|
|
3835
3835
|
pointer: ">"
|
|
3836
3836
|
}, VF = process.platform === "win32" ? WF : Ut;
|
|
3837
|
-
|
|
3837
|
+
kh.exports = VF;
|
|
3838
3838
|
});
|
|
3839
3839
|
|
|
3840
3840
|
// ../node_modules/prompts/lib/util/style.js
|
|
3841
3841
|
var Rh = c((rb, Mh) => {
|
|
3842
3842
|
"use strict";
|
|
3843
|
-
var dt =
|
|
3843
|
+
var dt = P(), Ge = ss(), ns = Object.freeze({
|
|
3844
3844
|
password: { scale: 1, render: /* @__PURE__ */ s((t) => "*".repeat(t.length), "render") },
|
|
3845
3845
|
emoji: { scale: 2, render: /* @__PURE__ */ s((t) => "\u{1F603}".repeat(t.length), "render") },
|
|
3846
3846
|
invisible: { scale: 0, render: /* @__PURE__ */ s((t) => "", "render") },
|
|
@@ -3902,7 +3902,7 @@ var te = c((ob, Uh) => {
|
|
|
3902
3902
|
"use strict";
|
|
3903
3903
|
Uh.exports = {
|
|
3904
3904
|
action: Oh(),
|
|
3905
|
-
clear:
|
|
3905
|
+
clear: Ph(),
|
|
3906
3906
|
style: Rh(),
|
|
3907
3907
|
strip: Hr(),
|
|
3908
3908
|
figures: ss(),
|
|
@@ -3915,7 +3915,7 @@ var te = c((ob, Uh) => {
|
|
|
3915
3915
|
// ../node_modules/prompts/lib/elements/prompt.js
|
|
3916
3916
|
var me = c((Db, Hh) => {
|
|
3917
3917
|
"use strict";
|
|
3918
|
-
var Yh = require("readline"), { action: ZF } = te(), JF = require("events"), { beep: XF, cursor: QF } = S(), e2 =
|
|
3918
|
+
var Yh = require("readline"), { action: ZF } = te(), JF = require("events"), { beep: XF, cursor: QF } = S(), e2 = P(), os = class extends JF {
|
|
3919
3919
|
static {
|
|
3920
3920
|
s(this, "Prompt");
|
|
3921
3921
|
}
|
|
@@ -3953,7 +3953,7 @@ var me = c((Db, Hh) => {
|
|
|
3953
3953
|
|
|
3954
3954
|
// ../node_modules/prompts/lib/elements/text.js
|
|
3955
3955
|
var Kh = c((lb, zh) => {
|
|
3956
|
-
var zr =
|
|
3956
|
+
var zr = P(), t2 = me(), { erase: r2, cursor: Ht } = S(), { style: Ds, clear: as, lines: u2, figures: i2 } = te(), ls = class extends t2 {
|
|
3957
3957
|
static {
|
|
3958
3958
|
s(this, "TextPrompt");
|
|
3959
3959
|
}
|
|
@@ -4054,7 +4054,7 @@ ${u ? " " : i2.pointerSmall} ${zr.red().italic(r)}`, "")), this.out.write(r2.lin
|
|
|
4054
4054
|
// ../node_modules/prompts/lib/elements/select.js
|
|
4055
4055
|
var Qh = c((cb, Xh) => {
|
|
4056
4056
|
"use strict";
|
|
4057
|
-
var ge =
|
|
4057
|
+
var ge = P(), s2 = me(), { style: Zh, clear: Jh, figures: Kr, wrap: n2, entriesToDisplay: o2 } = te(), { cursor: D2 } = S(), hs = class extends s2 {
|
|
4058
4058
|
static {
|
|
4059
4059
|
s(this, "SelectPrompt");
|
|
4060
4060
|
}
|
|
@@ -4138,7 +4138,7 @@ isabled", this.cursor = e.initial || 0, this.choices = e.choices.map((r, u) => (
|
|
|
4138
4138
|
|
|
4139
4139
|
// ../node_modules/prompts/lib/elements/toggle.js
|
|
4140
4140
|
var uc = c((fb, rc) => {
|
|
4141
|
-
var Zr =
|
|
4141
|
+
var Zr = P(), a2 = me(), { style: ec, clear: l2 } = te(), { cursor: tc, erase: h2 } = S(), cs = class extends a2 {
|
|
4142
4142
|
static {
|
|
4143
4143
|
s(this, "TogglePrompt");
|
|
4144
4144
|
}
|
|
@@ -4473,9 +4473,9 @@ var xc = c((Lb, bc) => {
|
|
|
4473
4473
|
});
|
|
4474
4474
|
|
|
4475
4475
|
// ../node_modules/prompts/lib/elements/date.js
|
|
4476
|
-
var Tc = c((
|
|
4476
|
+
var Tc = c((Pb, Sc) => {
|
|
4477
4477
|
"use strict";
|
|
4478
|
-
var xs =
|
|
4478
|
+
var xs = P(), b2 = me(), { style: vc, clear: yc, figures: x2 } = te(), { erase: v2, cursor: Bc } = S(), { DatePart: wc, Meridiem: y2, Day: B2,
|
|
4479
4479
|
Hours: w2, Milliseconds: A2, Minutes: S2, Month: T2, Seconds: $2, Year: O2 } = xc(), _2 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,
|
|
4480
4480
|
Ac = {
|
|
4481
4481
|
1: ({ token: t }) => t.replace(/\\(.)/g, "$1"),
|
|
@@ -4596,7 +4596,7 @@ ${u ? " " : x2.pointerSmall} ${xs.red().italic(r)}`,
|
|
|
4596
4596
|
|
|
4597
4597
|
// ../node_modules/prompts/lib/elements/number.js
|
|
4598
4598
|
var Ic = c((Mb, _c) => {
|
|
4599
|
-
var Jr =
|
|
4599
|
+
var Jr = P(), L2 = me(), { cursor: Xr, erase: P2 } = S(), { style: ys, figures: k2, clear: $c, lines: M2 } = te(), R2 = /[0-9]/, Bs = /* @__PURE__ */ s(
|
|
4600
4600
|
(t) => t !== void 0, "isDef"), Oc = /* @__PURE__ */ s((t, e) => {
|
|
4601
4601
|
let r = Math.pow(10, e);
|
|
4602
4602
|
return Math.round(t * r) / r;
|
|
@@ -4683,7 +4683,7 @@ var Ic = c((Mb, _c) => {
|
|
|
4683
4683
|
!this.done || !this.done && !this.placeholder ? Jr[this.color]().underline(this.rendered) : this.rendered
|
|
4684
4684
|
].join(" "), this.error && (this.outputError += this.errorMsg.split(`
|
|
4685
4685
|
`).reduce((e, r, u) => e + `
|
|
4686
|
-
${u ? " " :
|
|
4686
|
+
${u ? " " : k2.pointerSmall} ${Jr.red().italic(r)}`, "")), this.out.write(P2.line + Xr.to(0) + this.outputText + Xr.save + this.outputError +
|
|
4687
4687
|
Xr.restore));
|
|
4688
4688
|
}
|
|
4689
4689
|
};
|
|
@@ -4691,9 +4691,9 @@ ${u ? " " : P2.pointerSmall} ${Jr.red().italic(r)}`, "")), this.out.write(k2.lin
|
|
|
4691
4691
|
});
|
|
4692
4692
|
|
|
4693
4693
|
// ../node_modules/prompts/lib/elements/multiselect.js
|
|
4694
|
-
var Ss = c((qb,
|
|
4694
|
+
var Ss = c((qb, kc) => {
|
|
4695
4695
|
"use strict";
|
|
4696
|
-
var ae =
|
|
4696
|
+
var ae = P(), { cursor: q2 } = S(), N2 = me(), { clear: Lc, figures: Oe, style: Pc, wrap: j2, entriesToDisplay: G2 } = te(), As = class extends N2 {
|
|
4697
4697
|
static {
|
|
4698
4698
|
s(this, "MultiselectPrompt");
|
|
4699
4699
|
}
|
|
@@ -4815,22 +4815,22 @@ Instructions:
|
|
|
4815
4815
|
if (this.closed) return;
|
|
4816
4816
|
this.firstRender && this.out.write(q2.hide), super.render();
|
|
4817
4817
|
let e = [
|
|
4818
|
-
|
|
4818
|
+
Pc.symbol(this.done, this.aborted),
|
|
4819
4819
|
ae.bold(this.msg),
|
|
4820
|
-
|
|
4820
|
+
Pc.delimiter(!1),
|
|
4821
4821
|
this.renderDoneOrInstructions()
|
|
4822
4822
|
].join(" ");
|
|
4823
4823
|
this.showMinError && (e += ae.red(`You must select a minimum of ${this.minSelected} choices.`), this.showMinError = !1), e += this.renderOptions(
|
|
4824
4824
|
this.value), this.out.write(this.clear + e), this.clear = Lc(e, this.out.columns);
|
|
4825
4825
|
}
|
|
4826
4826
|
};
|
|
4827
|
-
|
|
4827
|
+
kc.exports = As;
|
|
4828
4828
|
});
|
|
4829
4829
|
|
|
4830
4830
|
// ../node_modules/prompts/lib/elements/autocomplete.js
|
|
4831
4831
|
var jc = c((jb, Nc) => {
|
|
4832
4832
|
"use strict";
|
|
4833
|
-
var zt =
|
|
4833
|
+
var zt = P(), W2 = me(), { erase: V2, cursor: Mc } = S(), { style: Ts, clear: Rc, figures: $s, wrap: U2, entriesToDisplay: Y2 } = te(), qc = /* @__PURE__ */ s(
|
|
4834
4834
|
(t, e) => t[e] && (t[e].value || t[e].title || t[e]), "getVal"), H2 = /* @__PURE__ */ s((t, e) => t[e] && (t[e].title || t[e].value || t[e]),
|
|
4835
4835
|
"getTitle"), z2 = /* @__PURE__ */ s((t, e) => {
|
|
4836
4836
|
let r = t.findIndex((u) => u.value === e || u.title === e);
|
|
@@ -4960,7 +4960,7 @@ var jc = c((jb, Nc) => {
|
|
|
4960
4960
|
// ../node_modules/prompts/lib/elements/autocompleteMultiselect.js
|
|
4961
4961
|
var Uc = c((Wb, Vc) => {
|
|
4962
4962
|
"use strict";
|
|
4963
|
-
var Fe =
|
|
4963
|
+
var Fe = P(), { cursor: K2 } = S(), Z2 = Ss(), { clear: Gc, style: Wc, figures: ft } = te(), _s = class extends Z2 {
|
|
4964
4964
|
static {
|
|
4965
4965
|
s(this, "AutocompleteMultiselectPrompt");
|
|
4966
4966
|
}
|
|
@@ -5056,7 +5056,7 @@ Filtered results for: ${this.inputValue ? this.inputValue : Fe.gray("Enter somet
|
|
|
5056
5056
|
|
|
5057
5057
|
// ../node_modules/prompts/lib/elements/confirm.js
|
|
5058
5058
|
var Zc = c((Ub, Kc) => {
|
|
5059
|
-
var Yc =
|
|
5059
|
+
var Yc = P(), J2 = me(), { style: Hc, clear: X2 } = te(), { erase: Q2, cursor: zc } = S(), Is = class extends J2 {
|
|
5060
5060
|
static {
|
|
5061
5061
|
s(this, "ConfirmPrompt");
|
|
5062
5062
|
}
|
|
@@ -5293,14 +5293,14 @@ var pd = c((lx, fd) => {
|
|
|
5293
5293
|
var gd = c((dx, md) => {
|
|
5294
5294
|
var cx = require("fs"), tu;
|
|
5295
5295
|
process.platform === "win32" || global.TESTING_WINDOWS ? tu = ld() : tu = pd();
|
|
5296
|
-
md.exports =
|
|
5297
|
-
|
|
5298
|
-
function
|
|
5296
|
+
md.exports = ks;
|
|
5297
|
+
ks.sync = mC;
|
|
5298
|
+
function ks(t, e, r) {
|
|
5299
5299
|
if (typeof e == "function" && (r = e, e = {}), !r) {
|
|
5300
5300
|
if (typeof Promise != "function")
|
|
5301
5301
|
throw new TypeError("callback not provided");
|
|
5302
5302
|
return new Promise(function(u, n) {
|
|
5303
|
-
|
|
5303
|
+
ks(t, e || {}, function(o, i) {
|
|
5304
5304
|
o ? n(o) : u(i);
|
|
5305
5305
|
});
|
|
5306
5306
|
});
|
|
@@ -5309,7 +5309,7 @@ var gd = c((dx, md) => {
|
|
|
5309
5309
|
u && (u.code === "EACCES" || e && e.ignoreErrors) && (u = null, n = !1), r(u, n);
|
|
5310
5310
|
});
|
|
5311
5311
|
}
|
|
5312
|
-
s(
|
|
5312
|
+
s(ks, "isexe");
|
|
5313
5313
|
function mC(t, e) {
|
|
5314
5314
|
try {
|
|
5315
5315
|
return tu.sync(t, e || {});
|
|
@@ -5453,7 +5453,7 @@ var Id = c((vx, _d) => {
|
|
|
5453
5453
|
});
|
|
5454
5454
|
|
|
5455
5455
|
// ../node_modules/shebang-command/index.js
|
|
5456
|
-
var
|
|
5456
|
+
var Pd = c((yx, Ld) => {
|
|
5457
5457
|
"use strict";
|
|
5458
5458
|
var yC = Id();
|
|
5459
5459
|
Ld.exports = (t = "") => {
|
|
@@ -5466,9 +5466,9 @@ var kd = c((yx, Ld) => {
|
|
|
5466
5466
|
});
|
|
5467
5467
|
|
|
5468
5468
|
// ../node_modules/cross-spawn/lib/util/readShebang.js
|
|
5469
|
-
var Md = c((Bx,
|
|
5469
|
+
var Md = c((Bx, kd) => {
|
|
5470
5470
|
"use strict";
|
|
5471
|
-
var Ns = require("fs"), BC =
|
|
5471
|
+
var Ns = require("fs"), BC = Pd();
|
|
5472
5472
|
function wC(t) {
|
|
5473
5473
|
let r = Buffer.alloc(150), u;
|
|
5474
5474
|
try {
|
|
@@ -5478,7 +5478,7 @@ var Md = c((Bx, Pd) => {
|
|
|
5478
5478
|
return BC(r.toString());
|
|
5479
5479
|
}
|
|
5480
5480
|
s(wC, "readShebang");
|
|
5481
|
-
|
|
5481
|
+
kd.exports = wC;
|
|
5482
5482
|
});
|
|
5483
5483
|
|
|
5484
5484
|
// ../node_modules/cross-spawn/lib/parse.js
|
|
@@ -5536,7 +5536,7 @@ var Vd = c((Tx, Wd) => {
|
|
|
5536
5536
|
});
|
|
5537
5537
|
}
|
|
5538
5538
|
s(Gs, "notFoundError");
|
|
5539
|
-
function
|
|
5539
|
+
function PC(t, e) {
|
|
5540
5540
|
if (!js)
|
|
5541
5541
|
return;
|
|
5542
5542
|
let r = t.emit;
|
|
@@ -5549,19 +5549,19 @@ var Vd = c((Tx, Wd) => {
|
|
|
5549
5549
|
return r.apply(t, arguments);
|
|
5550
5550
|
};
|
|
5551
5551
|
}
|
|
5552
|
-
s(
|
|
5552
|
+
s(PC, "hookChildProcess");
|
|
5553
5553
|
function Gd(t, e) {
|
|
5554
5554
|
return js && t === 1 && !e.file ? Gs(e.original, "spawn") : null;
|
|
5555
5555
|
}
|
|
5556
5556
|
s(Gd, "verifyENOENT");
|
|
5557
|
-
function
|
|
5557
|
+
function kC(t, e) {
|
|
5558
5558
|
return js && t === 1 && !e.file ? Gs(e.original, "spawnSync") : null;
|
|
5559
5559
|
}
|
|
5560
|
-
s(
|
|
5560
|
+
s(kC, "verifyENOENTSync");
|
|
5561
5561
|
Wd.exports = {
|
|
5562
|
-
hookChildProcess:
|
|
5562
|
+
hookChildProcess: PC,
|
|
5563
5563
|
verifyENOENT: Gd,
|
|
5564
|
-
verifyENOENTSync:
|
|
5564
|
+
verifyENOENTSync: kC,
|
|
5565
5565
|
notFoundError: Gs
|
|
5566
5566
|
};
|
|
5567
5567
|
});
|
|
@@ -5764,8 +5764,8 @@ bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBl
|
|
|
5764
5764
|
101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49],
|
|
5765
5765
|
bgWhiteBright: [107, 49] } };
|
|
5766
5766
|
Object.keys(T.modifier);
|
|
5767
|
-
var
|
|
5768
|
-
[...
|
|
5767
|
+
var Pp = Object.keys(T.color), kp = Object.keys(T.bgColor);
|
|
5768
|
+
[...Pp, ...kp];
|
|
5769
5769
|
function Mp() {
|
|
5770
5770
|
let t = /* @__PURE__ */ new Map();
|
|
5771
5771
|
for (let [e, r] of Object.entries(T)) {
|
|
@@ -6245,12 +6245,12 @@ spacing: n = 1 } = {}) => {
|
|
|
6245
6245
|
}, "Ne"), LD = /* @__PURE__ */ s((t = "", e) => {
|
|
6246
6246
|
(e?.output ?? process.stdout).write(`${f.default.gray(Dm)} ${t}
|
|
6247
6247
|
`);
|
|
6248
|
-
}, "Pe"),
|
|
6248
|
+
}, "Pe"), PD = /* @__PURE__ */ s((t = "", e) => {
|
|
6249
6249
|
(e?.output ?? process.stdout).write(`${f.default.gray(y)}
|
|
6250
6250
|
${f.default.gray(Be)} ${t}
|
|
6251
6251
|
|
|
6252
6252
|
`);
|
|
6253
|
-
}, "Le"),
|
|
6253
|
+
}, "Le"), kD = /* @__PURE__ */ s((t) => {
|
|
6254
6254
|
let e = /* @__PURE__ */ s((r, u) => {
|
|
6255
6255
|
let n = r.label ?? String(r.value);
|
|
6256
6256
|
return u === "active" ? `${f.default.cyan(am)} ${n} ${r.hint ? f.default.dim(`(${r.hint})`) : ""}` : u === "selected" ? `${f.default.green(
|
|
@@ -6445,7 +6445,7 @@ ${f.default.cyan(Be)}
|
|
|
6445
6445
|
} }).prompt(), "Ue");
|
|
6446
6446
|
|
|
6447
6447
|
// ../node_modules/boxen/index.js
|
|
6448
|
-
var
|
|
6448
|
+
var Pt = v(require("node:process"), 1);
|
|
6449
6449
|
|
|
6450
6450
|
// ../node_modules/ansi-regex/index.js
|
|
6451
6451
|
function oi({ onlyFirst: t = !1 } = {}) {
|
|
@@ -6871,7 +6871,7 @@ gi.source), na = new RegExp(gi.source + Da.source, "gu"), oa = new RegExp("\\d+"
|
|
|
6871
6871
|
l && e(l) !== l);
|
|
6872
6872
|
}
|
|
6873
6873
|
return t;
|
|
6874
|
-
}, "preserveCamelCase"),
|
|
6874
|
+
}, "preserveCamelCase"), Pm = /* @__PURE__ */ s((t, e) => (sa.lastIndex = 0, t.replace(sa, (r) => e(r))), "preserveConsecutiveUppercase"), km = /* @__PURE__ */ s(
|
|
6875
6875
|
(t, e) => (na.lastIndex = 0, oa.lastIndex = 0, t.replace(na, (r, u) => e(u)).replace(oa, (r) => e(r))), "postProcess");
|
|
6876
6876
|
function Fi(t, e) {
|
|
6877
6877
|
if (!(typeof t == "string" || Array.isArray(t)))
|
|
@@ -6885,7 +6885,7 @@ function Fi(t, e) {
|
|
|
6885
6885
|
let r = e.locale === !1 ? (o) => o.toLowerCase() : (o) => o.toLocaleLowerCase(e.locale), u = e.locale === !1 ? (o) => o.toUpperCase() : (o) => o.
|
|
6886
6886
|
toLocaleUpperCase(e.locale);
|
|
6887
6887
|
return t.length === 1 ? gi.test(t) ? "" : e.pascalCase ? u(t) : r(t) : (t !== r(t) && (t = Lm(t, r, u, e.preserveConsecutiveUppercase)), t =
|
|
6888
|
-
t.replace(Im, ""), t = e.preserveConsecutiveUppercase ?
|
|
6888
|
+
t.replace(Im, ""), t = e.preserveConsecutiveUppercase ? Pm(t, r) : r(t), e.pascalCase && (t = u(t.charAt(0)) + t.slice(1)), km(t, u));
|
|
6889
6889
|
}
|
|
6890
6890
|
s(Fi, "camelCase");
|
|
6891
6891
|
|
|
@@ -7065,16 +7065,16 @@ s(Gm, "assembleStyles");
|
|
|
7065
7065
|
var Wm = Gm(), ma = Wm;
|
|
7066
7066
|
|
|
7067
7067
|
// ../node_modules/wrap-ansi/index.js
|
|
7068
|
-
var
|
|
7068
|
+
var Pr = /* @__PURE__ */ new Set([
|
|
7069
7069
|
"\x1B",
|
|
7070
7070
|
"\x9B"
|
|
7071
|
-
]), Vm = 39, Ei = "\x07", Ca = "[", Um = "]", Ea = "m", bi = `${Um}8;;`, ga = /* @__PURE__ */ s((t) => `${
|
|
7072
|
-
"wrapAnsiCode"), Fa = /* @__PURE__ */ s((t) => `${
|
|
7071
|
+
]), Vm = 39, Ei = "\x07", Ca = "[", Um = "]", Ea = "m", bi = `${Um}8;;`, ga = /* @__PURE__ */ s((t) => `${Pr.values().next().value}${Ca}${t}${Ea}`,
|
|
7072
|
+
"wrapAnsiCode"), Fa = /* @__PURE__ */ s((t) => `${Pr.values().next().value}${bi}${t}${Ei}`, "wrapAnsiHyperlink"), Ym = /* @__PURE__ */ s((t) => t.
|
|
7073
7073
|
split(" ").map((e) => Ne(e)), "wordLengths"), Ci = /* @__PURE__ */ s((t, e, r) => {
|
|
7074
7074
|
let u = [...e], n = !1, o = !1, i = Ne(Me(t[t.length - 1]));
|
|
7075
7075
|
for (let [D, a] of u.entries()) {
|
|
7076
7076
|
let l = Ne(a);
|
|
7077
|
-
if (i + l <= r ? t[t.length - 1] += a : (t.push(a), i = 0),
|
|
7077
|
+
if (i + l <= r ? t[t.length - 1] += a : (t.push(a), i = 0), Pr.has(a) && (n = !0, o = u.slice(D + 1).join("").startsWith(bi)), n) {
|
|
7078
7078
|
o ? a === Ei && (n = !1, o = !1) : a === Ea && (n = !1);
|
|
7079
7079
|
continue;
|
|
7080
7080
|
}
|
|
@@ -7116,7 +7116,7 @@ split(" ").map((e) => Ne(e)), "wordLengths"), Ci = /* @__PURE__ */ s((t, e, r) =
|
|
|
7116
7116
|
let a = [...D.join(`
|
|
7117
7117
|
`)];
|
|
7118
7118
|
for (let [l, h] of a.entries()) {
|
|
7119
|
-
if (u += h,
|
|
7119
|
+
if (u += h, Pr.has(h)) {
|
|
7120
7120
|
let { groups: d } = new RegExp(`(?:\\${Ca}(?<code>\\d+)m|\\${bi}(?<uri>.*)${Ei})`).exec(a.slice(l).join("")) || { groups: {} };
|
|
7121
7121
|
if (d.code !== void 0) {
|
|
7122
7122
|
let m = Number.parseFloat(d.code);
|
|
@@ -7141,8 +7141,8 @@ s(Ae, "wrapAnsi");
|
|
|
7141
7141
|
// ../node_modules/boxen/index.js
|
|
7142
7142
|
var ug = v(mi(), 1);
|
|
7143
7143
|
var Se = `
|
|
7144
|
-
`, G = " ",
|
|
7145
|
-
let { env: t, stdout: e, stderr: r } =
|
|
7144
|
+
`, G = " ", kt = "none", Ba = /* @__PURE__ */ s(() => {
|
|
7145
|
+
let { env: t, stdout: e, stderr: r } = Pt.default;
|
|
7146
7146
|
return e?.columns ? e.columns : r?.columns ? r.columns : t.COLUMNS ? Number.parseInt(t.COLUMNS, 10) : 80;
|
|
7147
7147
|
}, "terminalColumns"), ba = /* @__PURE__ */ s((t) => typeof t == "number" ? {
|
|
7148
7148
|
top: t,
|
|
@@ -7155,7 +7155,7 @@ var Se = `
|
|
|
7155
7155
|
bottom: 0,
|
|
7156
7156
|
left: 0,
|
|
7157
7157
|
...t
|
|
7158
|
-
}, "getObject"), Mt = /* @__PURE__ */ s((t) => t ===
|
|
7158
|
+
}, "getObject"), Mt = /* @__PURE__ */ s((t) => t === kt ? 0 : 2, "getBorderWidth"), Km = /* @__PURE__ */ s((t) => {
|
|
7159
7159
|
let e = [
|
|
7160
7160
|
"topLeft",
|
|
7161
7161
|
"topRight",
|
|
@@ -7166,7 +7166,7 @@ var Se = `
|
|
|
7166
7166
|
"top",
|
|
7167
7167
|
"bottom"
|
|
7168
7168
|
], r;
|
|
7169
|
-
if (t ===
|
|
7169
|
+
if (t === kt) {
|
|
7170
7170
|
t = {};
|
|
7171
7171
|
for (let u of e)
|
|
7172
7172
|
t[u] = "";
|
|
@@ -7260,19 +7260,19 @@ var Se = `
|
|
|
7260
7260
|
D = G.repeat(h);
|
|
7261
7261
|
}
|
|
7262
7262
|
let a = "";
|
|
7263
|
-
r.margin.top && (a += Se.repeat(r.margin.top)), (r.borderStyle !==
|
|
7263
|
+
r.margin.top && (a += Se.repeat(r.margin.top)), (r.borderStyle !== kt || r.title) && (a += u(D + o.topLeft + (r.title ? Zm(r.title, o.top.
|
|
7264
7264
|
repeat(e), r.titleAlignment) : o.top.repeat(e)) + o.topRight) + Se);
|
|
7265
7265
|
let l = t.split(Se);
|
|
7266
|
-
return a += l.map((h) => D + u(o.left) + n(h) + u(o.right)).join(Se), r.borderStyle !==
|
|
7266
|
+
return a += l.map((h) => D + u(o.left) + n(h) + u(o.right)).join(Se), r.borderStyle !== kt && (a += Se + u(D + o.bottomLeft + o.bottom.repeat(
|
|
7267
7267
|
e) + o.bottomRight)), r.margin.bottom && (a += Se.repeat(r.margin.bottom)), a;
|
|
7268
7268
|
}, "boxContent"), Qm = /* @__PURE__ */ s((t) => {
|
|
7269
|
-
if (t.fullscreen &&
|
|
7270
|
-
let e = [
|
|
7269
|
+
if (t.fullscreen && Pt.default?.stdout) {
|
|
7270
|
+
let e = [Pt.default.stdout.columns, Pt.default.stdout.rows];
|
|
7271
7271
|
typeof t.fullscreen == "function" && (e = t.fullscreen(...e)), t.width || (t.width = e[0]), t.height || (t.height = e[1]);
|
|
7272
7272
|
}
|
|
7273
7273
|
return t.width && (t.width = Math.max(1, t.width - Mt(t.borderStyle))), t.height && (t.height = Math.max(1, t.height - Mt(t.borderStyle))),
|
|
7274
7274
|
t;
|
|
7275
|
-
}, "sanitizeOptions"), xa = /* @__PURE__ */ s((t, e) => e ===
|
|
7275
|
+
}, "sanitizeOptions"), xa = /* @__PURE__ */ s((t, e) => e === kt ? t : ` ${t} `, "formatTitle"), eg = /* @__PURE__ */ s((t, e) => {
|
|
7276
7276
|
e = Qm(e);
|
|
7277
7277
|
let r = e.width !== void 0, u = Ba(), n = Mt(e.borderStyle), o = u - e.margin.left - e.margin.right - n, i = Lr(Ae(t, u - n, { hard: !0, trim: !1 })) +
|
|
7278
7278
|
e.padding.left + e.padding.right;
|
|
@@ -7308,8 +7308,8 @@ function yi(t, e) {
|
|
|
7308
7308
|
s(yi, "boxen");
|
|
7309
7309
|
|
|
7310
7310
|
// src/node-logger/prompts/prompt-config.ts
|
|
7311
|
-
var
|
|
7312
|
-
wt(
|
|
7311
|
+
var Ps = {};
|
|
7312
|
+
wt(Ps, {
|
|
7313
7313
|
getPreferredStdio: () => hC,
|
|
7314
7314
|
getPromptLibrary: () => aC,
|
|
7315
7315
|
getPromptProvider: () => Ie,
|
|
@@ -7325,7 +7325,7 @@ var wa = /* @__PURE__ */ s((t) => {
|
|
|
7325
7325
|
}, "optionalEnvToBoolean");
|
|
7326
7326
|
|
|
7327
7327
|
// src/node-logger/logger/log-tracker.ts
|
|
7328
|
-
var Ta = require("node:fs"),
|
|
7328
|
+
var Ta = require("node:fs"), kr = v(require("node:path"), 1), $a = require("storybook/internal/common");
|
|
7329
7329
|
|
|
7330
7330
|
// ../lib/cli-storybook/src/automigrate/helpers/cleanLog.ts
|
|
7331
7331
|
var Aa = require("node:os");
|
|
@@ -7356,7 +7356,7 @@ var sg = "debug-storybook.log", Bi = class {
|
|
|
7356
7356
|
*/
|
|
7357
7357
|
#e = !1;
|
|
7358
7358
|
constructor() {
|
|
7359
|
-
this.#t = (0,
|
|
7359
|
+
this.#t = (0, kr.join)(process.cwd(), sg);
|
|
7360
7360
|
}
|
|
7361
7361
|
/** Enables writing logs to file. */
|
|
7362
7362
|
enableLogWriting() {
|
|
@@ -7407,7 +7407,7 @@ var sg = "debug-storybook.log", Bi = class {
|
|
|
7407
7407
|
return `[${n}] [${u.level.toUpperCase()}] ${u.message}${o}`;
|
|
7408
7408
|
}).join(`
|
|
7409
7409
|
`);
|
|
7410
|
-
return await Ta.promises.writeFile(e, r, "utf-8"), this.#u = [], (0, $a.isCI)() ? e :
|
|
7410
|
+
return await Ta.promises.writeFile(e, r, "utf-8"), this.#u = [], (0, $a.isCI)() ? e : kr.default.relative(process.cwd(), e);
|
|
7411
7411
|
}
|
|
7412
7412
|
}, x = new Bi();
|
|
7413
7413
|
|
|
@@ -7439,7 +7439,7 @@ var lt = null, Mr = class extends at {
|
|
|
7439
7439
|
return this.handleCancel(u, r), x.addLog("prompt", e.message, { choice: u }), u;
|
|
7440
7440
|
}
|
|
7441
7441
|
async multiselect(e, r) {
|
|
7442
|
-
let u = await
|
|
7442
|
+
let u = await kD(e);
|
|
7443
7443
|
return this.handleCancel(u, r), x.addLog("prompt", e.message, { choice: u }), u;
|
|
7444
7444
|
}
|
|
7445
7445
|
spinner(e) {
|
|
@@ -8570,10 +8570,10 @@ var I3 = (async () => {
|
|
|
8570
8570
|
|
|
8571
8571
|
// node_modules/execa/lib/command.js
|
|
8572
8572
|
var Mf = require("node:buffer"), Rf = require("node:child_process");
|
|
8573
|
-
var qf = /* @__PURE__ */ s((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"),
|
|
8574
|
-
"string" ||
|
|
8575
|
-
d"), fn = /* @__PURE__ */ s((t, e) => qf(t, e).map((r) =>
|
|
8576
|
-
var
|
|
8573
|
+
var qf = /* @__PURE__ */ s((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), P3 = /^[\w.-]+$/, k3 = /* @__PURE__ */ s((t) => typeof t !=
|
|
8574
|
+
"string" || P3.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), dn = /* @__PURE__ */ s((t, e) => qf(t, e).join(" "), "joinComman\
|
|
8575
|
+
d"), fn = /* @__PURE__ */ s((t, e) => qf(t, e).map((r) => k3(r)).join(" "), "getEscapedCommand"), M3 = / +/g;
|
|
8576
|
+
var Pf = /* @__PURE__ */ s((t) => {
|
|
8577
8577
|
let e = typeof t;
|
|
8578
8578
|
if (e === "string")
|
|
8579
8579
|
return t;
|
|
@@ -8588,20 +8588,20 @@ var kf = /* @__PURE__ */ s((t) => {
|
|
|
8588
8588
|
throw new TypeError(`Unexpected "${r}" stdout in template expression`);
|
|
8589
8589
|
}
|
|
8590
8590
|
throw new TypeError(`Unexpected "${e}" in template expression`);
|
|
8591
|
-
}, "parseExpression"),
|
|
8591
|
+
}, "parseExpression"), kf = /* @__PURE__ */ s((t, e, r) => r || t.length === 0 || e.length === 0 ? [...t, ...e] : [
|
|
8592
8592
|
...t.slice(0, -1),
|
|
8593
8593
|
`${t.at(-1)}${e[0]}`,
|
|
8594
8594
|
...e.slice(1)
|
|
8595
8595
|
], "concatTokens"), R3 = /* @__PURE__ */ s(({ templates: t, expressions: e, tokens: r, index: u, template: n }) => {
|
|
8596
|
-
let o = n ?? t.raw[u], i = o.split(M3).filter(Boolean), D =
|
|
8596
|
+
let o = n ?? t.raw[u], i = o.split(M3).filter(Boolean), D = kf(
|
|
8597
8597
|
r,
|
|
8598
8598
|
i,
|
|
8599
8599
|
o.startsWith(" ")
|
|
8600
8600
|
);
|
|
8601
8601
|
if (u === e.length)
|
|
8602
8602
|
return D;
|
|
8603
|
-
let a = e[u], l = Array.isArray(a) ? a.map((h) =>
|
|
8604
|
-
return
|
|
8603
|
+
let a = e[u], l = Array.isArray(a) ? a.map((h) => Pf(h)) : [Pf(a)];
|
|
8604
|
+
return kf(
|
|
8605
8605
|
D,
|
|
8606
8606
|
l,
|
|
8607
8607
|
o.endsWith(" ")
|
|
@@ -8948,7 +8948,7 @@ var Ye = /* @__PURE__ */ s((t, e) => () => We() ? (r) => {
|
|
|
8948
8948
|
warn: Ye(j.warn, console.warn),
|
|
8949
8949
|
error: Ye(j.error, console.error),
|
|
8950
8950
|
intro: Ye(LD, console.log),
|
|
8951
|
-
outro: Ye(
|
|
8951
|
+
outro: Ye(PD, console.log),
|
|
8952
8952
|
step: Ye(j.step, console.log)
|
|
8953
8953
|
}, t0 = {
|
|
8954
8954
|
trace: 1,
|
|
@@ -9120,7 +9120,7 @@ var u0 = /* @__PURE__ */ s(async (t, {
|
|
|
9120
9120
|
// src/node-logger/prompts/index.ts
|
|
9121
9121
|
var s0 = {
|
|
9122
9122
|
...Sn,
|
|
9123
|
-
...
|
|
9123
|
+
...Ps,
|
|
9124
9124
|
executeTask: u0,
|
|
9125
9125
|
executeTaskWithSpinner: i0
|
|
9126
9126
|
};
|