@settlemint/sdk-cli 1.1.1-main4d979b9b → 1.1.1-main7c5a65fb
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/cli.js +1074 -331
- package/dist/cli.js.map +18 -3
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -233728,8 +233728,8 @@ var require_mkdir = __commonJS((exports, module) => {
|
|
|
233728
233728
|
return "CwdError";
|
|
233729
233729
|
}
|
|
233730
233730
|
}
|
|
233731
|
-
var cGet = (cache,
|
|
233732
|
-
var cSet = (cache,
|
|
233731
|
+
var cGet = (cache, key4) => cache.get(normPath(key4));
|
|
233732
|
+
var cSet = (cache, key4, val) => cache.set(normPath(key4), val);
|
|
233733
233733
|
var checkCwd = (dir, cb) => {
|
|
233734
233734
|
fs3.stat(dir, (er2, st2) => {
|
|
233735
233735
|
if (er2 || !st2.isDirectory()) {
|
|
@@ -234100,8 +234100,8 @@ var require_unpack = __commonJS((exports, module) => {
|
|
|
234100
234100
|
}
|
|
234101
234101
|
};
|
|
234102
234102
|
var dropCache = (cache) => {
|
|
234103
|
-
for (const
|
|
234104
|
-
cache.delete(
|
|
234103
|
+
for (const key4 of cache.keys()) {
|
|
234104
|
+
cache.delete(key4);
|
|
234105
234105
|
}
|
|
234106
234106
|
};
|
|
234107
234107
|
|
|
@@ -238898,8 +238898,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
|
238898
238898
|
function fetch2(input, options) {
|
|
238899
238899
|
return nodeFetch.fetch(input, options);
|
|
238900
238900
|
}
|
|
238901
|
-
for (const
|
|
238902
|
-
fetch2[
|
|
238901
|
+
for (const key4 in nodeFetch) {
|
|
238902
|
+
fetch2[key4] = nodeFetch[key4];
|
|
238903
238903
|
}
|
|
238904
238904
|
module.exports = fetch2;
|
|
238905
238905
|
});
|
|
@@ -238992,11 +238992,11 @@ var require_proxy = __commonJS((exports) => {
|
|
|
238992
238992
|
return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
|
|
238993
238993
|
}
|
|
238994
238994
|
e10(requireSymbols$4, "requireSymbols$4");
|
|
238995
|
-
var
|
|
238995
|
+
var errors4;
|
|
238996
238996
|
var hasRequiredErrors;
|
|
238997
238997
|
function requireErrors() {
|
|
238998
238998
|
if (hasRequiredErrors)
|
|
238999
|
-
return
|
|
238999
|
+
return errors4;
|
|
239000
239000
|
hasRequiredErrors = 1;
|
|
239001
239001
|
|
|
239002
239002
|
class A5 extends Error {
|
|
@@ -239205,7 +239205,7 @@ var require_proxy = __commonJS((exports) => {
|
|
|
239205
239205
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
|
239206
239206
|
}
|
|
239207
239207
|
}
|
|
239208
|
-
return
|
|
239208
|
+
return errors4 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors4;
|
|
239209
239209
|
}
|
|
239210
239210
|
e10(requireErrors, "requireErrors");
|
|
239211
239211
|
var constants$4;
|
|
@@ -248494,11 +248494,11 @@ ${g6}`;
|
|
|
248494
248494
|
return e10(u6, "plural"), ms;
|
|
248495
248495
|
}
|
|
248496
248496
|
e10(requireMs, "requireMs");
|
|
248497
|
-
var
|
|
248497
|
+
var common4;
|
|
248498
248498
|
var hasRequiredCommon;
|
|
248499
248499
|
function requireCommon() {
|
|
248500
248500
|
if (hasRequiredCommon)
|
|
248501
|
-
return
|
|
248501
|
+
return common4;
|
|
248502
248502
|
hasRequiredCommon = 1;
|
|
248503
248503
|
function A5(p6) {
|
|
248504
248504
|
E6.debug = E6, E6.default = E6, E6.coerce = u6, E6.disable = l3, E6.enable = B4, E6.enabled = Q4, E6.humanize = requireMs(), E6.destroy = n6, Object.keys(p6).forEach((r6) => {
|
|
@@ -248586,7 +248586,7 @@ ${g6}`;
|
|
|
248586
248586
|
}
|
|
248587
248587
|
return e10(n6, "destroy"), E6.enable(E6.load()), E6;
|
|
248588
248588
|
}
|
|
248589
|
-
return e10(A5, "setup"),
|
|
248589
|
+
return e10(A5, "setup"), common4 = A5, common4;
|
|
248590
248590
|
}
|
|
248591
248591
|
e10(requireCommon, "requireCommon");
|
|
248592
248592
|
var hasRequiredBrowser;
|
|
@@ -249178,11 +249178,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249178
249178
|
visit2.BREAK = BREAK;
|
|
249179
249179
|
visit2.SKIP = SKIP;
|
|
249180
249180
|
visit2.REMOVE = REMOVE;
|
|
249181
|
-
function visit_(
|
|
249182
|
-
const ctrl = callVisitor(
|
|
249181
|
+
function visit_(key4, node, visitor, path5) {
|
|
249182
|
+
const ctrl = callVisitor(key4, node, visitor, path5);
|
|
249183
249183
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249184
|
-
replaceNode(
|
|
249185
|
-
return visit_(
|
|
249184
|
+
replaceNode(key4, path5, ctrl);
|
|
249185
|
+
return visit_(key4, ctrl, visitor, path5);
|
|
249186
249186
|
}
|
|
249187
249187
|
if (typeof ctrl !== "symbol") {
|
|
249188
249188
|
if (identity2.isCollection(node)) {
|
|
@@ -249226,11 +249226,11 @@ var require_visit = __commonJS((exports) => {
|
|
|
249226
249226
|
visitAsync.BREAK = BREAK;
|
|
249227
249227
|
visitAsync.SKIP = SKIP;
|
|
249228
249228
|
visitAsync.REMOVE = REMOVE;
|
|
249229
|
-
async function visitAsync_(
|
|
249230
|
-
const ctrl = await callVisitor(
|
|
249229
|
+
async function visitAsync_(key4, node, visitor, path5) {
|
|
249230
|
+
const ctrl = await callVisitor(key4, node, visitor, path5);
|
|
249231
249231
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
249232
|
-
replaceNode(
|
|
249233
|
-
return visitAsync_(
|
|
249232
|
+
replaceNode(key4, path5, ctrl);
|
|
249233
|
+
return visitAsync_(key4, ctrl, visitor, path5);
|
|
249234
249234
|
}
|
|
249235
249235
|
if (typeof ctrl !== "symbol") {
|
|
249236
249236
|
if (identity2.isCollection(node)) {
|
|
@@ -249280,27 +249280,27 @@ var require_visit = __commonJS((exports) => {
|
|
|
249280
249280
|
}
|
|
249281
249281
|
return visitor;
|
|
249282
249282
|
}
|
|
249283
|
-
function callVisitor(
|
|
249283
|
+
function callVisitor(key4, node, visitor, path5) {
|
|
249284
249284
|
if (typeof visitor === "function")
|
|
249285
|
-
return visitor(
|
|
249285
|
+
return visitor(key4, node, path5);
|
|
249286
249286
|
if (identity2.isMap(node))
|
|
249287
|
-
return visitor.Map?.(
|
|
249287
|
+
return visitor.Map?.(key4, node, path5);
|
|
249288
249288
|
if (identity2.isSeq(node))
|
|
249289
|
-
return visitor.Seq?.(
|
|
249289
|
+
return visitor.Seq?.(key4, node, path5);
|
|
249290
249290
|
if (identity2.isPair(node))
|
|
249291
|
-
return visitor.Pair?.(
|
|
249291
|
+
return visitor.Pair?.(key4, node, path5);
|
|
249292
249292
|
if (identity2.isScalar(node))
|
|
249293
|
-
return visitor.Scalar?.(
|
|
249293
|
+
return visitor.Scalar?.(key4, node, path5);
|
|
249294
249294
|
if (identity2.isAlias(node))
|
|
249295
|
-
return visitor.Alias?.(
|
|
249295
|
+
return visitor.Alias?.(key4, node, path5);
|
|
249296
249296
|
return;
|
|
249297
249297
|
}
|
|
249298
|
-
function replaceNode(
|
|
249298
|
+
function replaceNode(key4, path5, node) {
|
|
249299
249299
|
const parent = path5[path5.length - 1];
|
|
249300
249300
|
if (identity2.isCollection(parent)) {
|
|
249301
|
-
parent.items[
|
|
249301
|
+
parent.items[key4] = node;
|
|
249302
249302
|
} else if (identity2.isPair(parent)) {
|
|
249303
|
-
if (
|
|
249303
|
+
if (key4 === "key")
|
|
249304
249304
|
parent.key = node;
|
|
249305
249305
|
else
|
|
249306
249306
|
parent.value = node;
|
|
@@ -249532,7 +249532,7 @@ var require_anchors = __commonJS((exports) => {
|
|
|
249532
249532
|
|
|
249533
249533
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
|
249534
249534
|
var require_applyReviver = __commonJS((exports) => {
|
|
249535
|
-
function applyReviver(reviver, obj,
|
|
249535
|
+
function applyReviver(reviver, obj, key4, val) {
|
|
249536
249536
|
if (val && typeof val === "object") {
|
|
249537
249537
|
if (Array.isArray(val)) {
|
|
249538
249538
|
for (let i6 = 0, len = val.length;i6 < len; ++i6) {
|
|
@@ -249572,7 +249572,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
|
249572
249572
|
}
|
|
249573
249573
|
}
|
|
249574
249574
|
}
|
|
249575
|
-
return reviver.call(obj,
|
|
249575
|
+
return reviver.call(obj, key4, val);
|
|
249576
249576
|
}
|
|
249577
249577
|
exports.applyReviver = applyReviver;
|
|
249578
249578
|
});
|
|
@@ -249890,29 +249890,29 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249890
249890
|
if (isEmptyPath(path5))
|
|
249891
249891
|
this.add(value4);
|
|
249892
249892
|
else {
|
|
249893
|
-
const [
|
|
249894
|
-
const node = this.get(
|
|
249893
|
+
const [key4, ...rest] = path5;
|
|
249894
|
+
const node = this.get(key4, true);
|
|
249895
249895
|
if (identity2.isCollection(node))
|
|
249896
249896
|
node.addIn(rest, value4);
|
|
249897
249897
|
else if (node === undefined && this.schema)
|
|
249898
|
-
this.set(
|
|
249898
|
+
this.set(key4, collectionFromPath(this.schema, rest, value4));
|
|
249899
249899
|
else
|
|
249900
|
-
throw new Error(`Expected YAML collection at ${
|
|
249900
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
|
249901
249901
|
}
|
|
249902
249902
|
}
|
|
249903
249903
|
deleteIn(path5) {
|
|
249904
|
-
const [
|
|
249904
|
+
const [key4, ...rest] = path5;
|
|
249905
249905
|
if (rest.length === 0)
|
|
249906
|
-
return this.delete(
|
|
249907
|
-
const node = this.get(
|
|
249906
|
+
return this.delete(key4);
|
|
249907
|
+
const node = this.get(key4, true);
|
|
249908
249908
|
if (identity2.isCollection(node))
|
|
249909
249909
|
return node.deleteIn(rest);
|
|
249910
249910
|
else
|
|
249911
|
-
throw new Error(`Expected YAML collection at ${
|
|
249911
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
|
249912
249912
|
}
|
|
249913
249913
|
getIn(path5, keepScalar) {
|
|
249914
|
-
const [
|
|
249915
|
-
const node = this.get(
|
|
249914
|
+
const [key4, ...rest] = path5;
|
|
249915
|
+
const node = this.get(key4, true);
|
|
249916
249916
|
if (rest.length === 0)
|
|
249917
249917
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
|
249918
249918
|
else
|
|
@@ -249927,24 +249927,24 @@ var require_Collection = __commonJS((exports) => {
|
|
|
249927
249927
|
});
|
|
249928
249928
|
}
|
|
249929
249929
|
hasIn(path5) {
|
|
249930
|
-
const [
|
|
249930
|
+
const [key4, ...rest] = path5;
|
|
249931
249931
|
if (rest.length === 0)
|
|
249932
|
-
return this.has(
|
|
249933
|
-
const node = this.get(
|
|
249932
|
+
return this.has(key4);
|
|
249933
|
+
const node = this.get(key4, true);
|
|
249934
249934
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
|
249935
249935
|
}
|
|
249936
249936
|
setIn(path5, value4) {
|
|
249937
|
-
const [
|
|
249937
|
+
const [key4, ...rest] = path5;
|
|
249938
249938
|
if (rest.length === 0) {
|
|
249939
|
-
this.set(
|
|
249939
|
+
this.set(key4, value4);
|
|
249940
249940
|
} else {
|
|
249941
|
-
const node = this.get(
|
|
249941
|
+
const node = this.get(key4, true);
|
|
249942
249942
|
if (identity2.isCollection(node))
|
|
249943
249943
|
node.setIn(rest, value4);
|
|
249944
249944
|
else if (node === undefined && this.schema)
|
|
249945
|
-
this.set(
|
|
249945
|
+
this.set(key4, collectionFromPath(this.schema, rest, value4));
|
|
249946
249946
|
else
|
|
249947
|
-
throw new Error(`Expected YAML collection at ${
|
|
249947
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
|
249948
249948
|
}
|
|
249949
249949
|
}
|
|
249950
249950
|
}
|
|
@@ -250532,19 +250532,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
250532
250532
|
var Scalar = require_Scalar();
|
|
250533
250533
|
var stringify3 = require_stringify();
|
|
250534
250534
|
var stringifyComment = require_stringifyComment();
|
|
250535
|
-
function stringifyPair2({ key:
|
|
250535
|
+
function stringifyPair2({ key: key4, value: value4 }, ctx, onComment, onChompKeep) {
|
|
250536
250536
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
250537
|
-
let keyComment = identity2.isNode(
|
|
250537
|
+
let keyComment = identity2.isNode(key4) && key4.comment || null;
|
|
250538
250538
|
if (simpleKeys) {
|
|
250539
250539
|
if (keyComment) {
|
|
250540
250540
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
250541
250541
|
}
|
|
250542
|
-
if (identity2.isCollection(
|
|
250542
|
+
if (identity2.isCollection(key4) || !identity2.isNode(key4) && typeof key4 === "object") {
|
|
250543
250543
|
const msg = "With simple keys, collection cannot be used as a key value";
|
|
250544
250544
|
throw new Error(msg);
|
|
250545
250545
|
}
|
|
250546
250546
|
}
|
|
250547
|
-
let explicitKey = !simpleKeys && (!
|
|
250547
|
+
let explicitKey = !simpleKeys && (!key4 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key4) || (identity2.isScalar(key4) ? key4.type === Scalar.Scalar.BLOCK_FOLDED || key4.type === Scalar.Scalar.BLOCK_LITERAL : typeof key4 === "object"));
|
|
250548
250548
|
ctx = Object.assign({}, ctx, {
|
|
250549
250549
|
allNullValues: false,
|
|
250550
250550
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
@@ -250552,7 +250552,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
|
250552
250552
|
});
|
|
250553
250553
|
let keyCommentDone = false;
|
|
250554
250554
|
let chompKeep = false;
|
|
250555
|
-
let str = stringify3.stringify(
|
|
250555
|
+
let str = stringify3.stringify(key4, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
|
250556
250556
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
250557
250557
|
if (simpleKeys)
|
|
250558
250558
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -250696,7 +250696,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
250696
250696
|
}),
|
|
250697
250697
|
stringify: () => MERGE_KEY
|
|
250698
250698
|
};
|
|
250699
|
-
var isMergeKey = (ctx,
|
|
250699
|
+
var isMergeKey = (ctx, key4) => (merge3.identify(key4) || identity2.isScalar(key4) && (!key4.type || key4.type === Scalar.Scalar.PLAIN) && merge3.identify(key4.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
|
250700
250700
|
function addMergeToJSMap(ctx, map3, value4) {
|
|
250701
250701
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
|
250702
250702
|
if (identity2.isSeq(value4))
|
|
@@ -250713,14 +250713,14 @@ var require_merge = __commonJS((exports) => {
|
|
|
250713
250713
|
if (!identity2.isMap(source))
|
|
250714
250714
|
throw new Error("Merge sources must be maps or map aliases");
|
|
250715
250715
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
250716
|
-
for (const [
|
|
250716
|
+
for (const [key4, value5] of srcMap) {
|
|
250717
250717
|
if (map3 instanceof Map) {
|
|
250718
|
-
if (!map3.has(
|
|
250719
|
-
map3.set(
|
|
250718
|
+
if (!map3.has(key4))
|
|
250719
|
+
map3.set(key4, value5);
|
|
250720
250720
|
} else if (map3 instanceof Set) {
|
|
250721
|
-
map3.add(
|
|
250722
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
|
250723
|
-
Object.defineProperty(map3,
|
|
250721
|
+
map3.add(key4);
|
|
250722
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key4)) {
|
|
250723
|
+
Object.defineProperty(map3, key4, {
|
|
250724
250724
|
value: value5,
|
|
250725
250725
|
writable: true,
|
|
250726
250726
|
enumerable: true,
|
|
@@ -250742,19 +250742,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250742
250742
|
var stringify3 = require_stringify();
|
|
250743
250743
|
var identity2 = require_identity();
|
|
250744
250744
|
var toJS = require_toJS();
|
|
250745
|
-
function addPairToJSMap(ctx, map3, { key:
|
|
250746
|
-
if (identity2.isNode(
|
|
250747
|
-
|
|
250748
|
-
else if (merge3.isMergeKey(ctx,
|
|
250745
|
+
function addPairToJSMap(ctx, map3, { key: key4, value: value4 }) {
|
|
250746
|
+
if (identity2.isNode(key4) && key4.addToJSMap)
|
|
250747
|
+
key4.addToJSMap(ctx, map3, value4);
|
|
250748
|
+
else if (merge3.isMergeKey(ctx, key4))
|
|
250749
250749
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
|
250750
250750
|
else {
|
|
250751
|
-
const jsKey = toJS.toJS(
|
|
250751
|
+
const jsKey = toJS.toJS(key4, "", ctx);
|
|
250752
250752
|
if (map3 instanceof Map) {
|
|
250753
250753
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
|
250754
250754
|
} else if (map3 instanceof Set) {
|
|
250755
250755
|
map3.add(jsKey);
|
|
250756
250756
|
} else {
|
|
250757
|
-
const stringKey = stringifyKey(
|
|
250757
|
+
const stringKey = stringifyKey(key4, jsKey, ctx);
|
|
250758
250758
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
|
250759
250759
|
if (stringKey in map3)
|
|
250760
250760
|
Object.defineProperty(map3, stringKey, {
|
|
@@ -250769,19 +250769,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
|
250769
250769
|
}
|
|
250770
250770
|
return map3;
|
|
250771
250771
|
}
|
|
250772
|
-
function stringifyKey(
|
|
250772
|
+
function stringifyKey(key4, jsKey, ctx) {
|
|
250773
250773
|
if (jsKey === null)
|
|
250774
250774
|
return "";
|
|
250775
250775
|
if (typeof jsKey !== "object")
|
|
250776
250776
|
return String(jsKey);
|
|
250777
|
-
if (identity2.isNode(
|
|
250777
|
+
if (identity2.isNode(key4) && ctx?.doc) {
|
|
250778
250778
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
|
250779
250779
|
strCtx.anchors = new Set;
|
|
250780
250780
|
for (const node of ctx.anchors.keys())
|
|
250781
250781
|
strCtx.anchors.add(node.anchor);
|
|
250782
250782
|
strCtx.inFlow = true;
|
|
250783
250783
|
strCtx.inStringifyKey = true;
|
|
250784
|
-
const strKey =
|
|
250784
|
+
const strKey = key4.toString(strCtx);
|
|
250785
250785
|
if (!ctx.mapKeyWarned) {
|
|
250786
250786
|
let jsonStr = JSON.stringify(strKey);
|
|
250787
250787
|
if (jsonStr.length > 40)
|
|
@@ -250802,25 +250802,25 @@ var require_Pair = __commonJS((exports) => {
|
|
|
250802
250802
|
var stringifyPair2 = require_stringifyPair();
|
|
250803
250803
|
var addPairToJSMap = require_addPairToJSMap();
|
|
250804
250804
|
var identity2 = require_identity();
|
|
250805
|
-
function createPair(
|
|
250806
|
-
const k5 = createNode.createNode(
|
|
250805
|
+
function createPair(key4, value4, ctx) {
|
|
250806
|
+
const k5 = createNode.createNode(key4, undefined, ctx);
|
|
250807
250807
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
|
250808
250808
|
return new Pair(k5, v7);
|
|
250809
250809
|
}
|
|
250810
250810
|
|
|
250811
250811
|
class Pair {
|
|
250812
|
-
constructor(
|
|
250812
|
+
constructor(key4, value4 = null) {
|
|
250813
250813
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
|
250814
|
-
this.key =
|
|
250814
|
+
this.key = key4;
|
|
250815
250815
|
this.value = value4;
|
|
250816
250816
|
}
|
|
250817
250817
|
clone(schema) {
|
|
250818
|
-
let { key:
|
|
250819
|
-
if (identity2.isNode(
|
|
250820
|
-
|
|
250818
|
+
let { key: key4, value: value4 } = this;
|
|
250819
|
+
if (identity2.isNode(key4))
|
|
250820
|
+
key4 = key4.clone(schema);
|
|
250821
250821
|
if (identity2.isNode(value4))
|
|
250822
250822
|
value4 = value4.clone(schema);
|
|
250823
|
-
return new Pair(
|
|
250823
|
+
return new Pair(key4, value4);
|
|
250824
250824
|
}
|
|
250825
250825
|
toJSON(_5, ctx) {
|
|
250826
250826
|
const pair = ctx?.mapAsMap ? new Map : {};
|
|
@@ -250987,11 +250987,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
250987
250987
|
var identity2 = require_identity();
|
|
250988
250988
|
var Pair = require_Pair();
|
|
250989
250989
|
var Scalar = require_Scalar();
|
|
250990
|
-
function findPair(items,
|
|
250991
|
-
const k5 = identity2.isScalar(
|
|
250990
|
+
function findPair(items, key4) {
|
|
250991
|
+
const k5 = identity2.isScalar(key4) ? key4.value : key4;
|
|
250992
250992
|
for (const it2 of items) {
|
|
250993
250993
|
if (identity2.isPair(it2)) {
|
|
250994
|
-
if (it2.key ===
|
|
250994
|
+
if (it2.key === key4 || it2.key === k5)
|
|
250995
250995
|
return it2;
|
|
250996
250996
|
if (identity2.isScalar(it2.key) && it2.key.value === k5)
|
|
250997
250997
|
return it2;
|
|
@@ -251011,20 +251011,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251011
251011
|
static from(schema, obj, ctx) {
|
|
251012
251012
|
const { keepUndefined, replacer } = ctx;
|
|
251013
251013
|
const map3 = new this(schema);
|
|
251014
|
-
const add = (
|
|
251014
|
+
const add = (key4, value4) => {
|
|
251015
251015
|
if (typeof replacer === "function")
|
|
251016
|
-
value4 = replacer.call(obj,
|
|
251017
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
|
251016
|
+
value4 = replacer.call(obj, key4, value4);
|
|
251017
|
+
else if (Array.isArray(replacer) && !replacer.includes(key4))
|
|
251018
251018
|
return;
|
|
251019
251019
|
if (value4 !== undefined || keepUndefined)
|
|
251020
|
-
map3.items.push(Pair.createPair(
|
|
251020
|
+
map3.items.push(Pair.createPair(key4, value4, ctx));
|
|
251021
251021
|
};
|
|
251022
251022
|
if (obj instanceof Map) {
|
|
251023
|
-
for (const [
|
|
251024
|
-
add(
|
|
251023
|
+
for (const [key4, value4] of obj)
|
|
251024
|
+
add(key4, value4);
|
|
251025
251025
|
} else if (obj && typeof obj === "object") {
|
|
251026
|
-
for (const
|
|
251027
|
-
add(
|
|
251026
|
+
for (const key4 of Object.keys(obj))
|
|
251027
|
+
add(key4, obj[key4]);
|
|
251028
251028
|
}
|
|
251029
251029
|
if (typeof schema.sortMapEntries === "function") {
|
|
251030
251030
|
map3.items.sort(schema.sortMapEntries);
|
|
@@ -251058,23 +251058,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
|
251058
251058
|
this.items.push(_pair);
|
|
251059
251059
|
}
|
|
251060
251060
|
}
|
|
251061
|
-
delete(
|
|
251062
|
-
const it2 = findPair(this.items,
|
|
251061
|
+
delete(key4) {
|
|
251062
|
+
const it2 = findPair(this.items, key4);
|
|
251063
251063
|
if (!it2)
|
|
251064
251064
|
return false;
|
|
251065
251065
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
|
251066
251066
|
return del.length > 0;
|
|
251067
251067
|
}
|
|
251068
|
-
get(
|
|
251069
|
-
const it2 = findPair(this.items,
|
|
251068
|
+
get(key4, keepScalar) {
|
|
251069
|
+
const it2 = findPair(this.items, key4);
|
|
251070
251070
|
const node = it2?.value;
|
|
251071
251071
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
|
251072
251072
|
}
|
|
251073
|
-
has(
|
|
251074
|
-
return !!findPair(this.items,
|
|
251073
|
+
has(key4) {
|
|
251074
|
+
return !!findPair(this.items, key4);
|
|
251075
251075
|
}
|
|
251076
|
-
set(
|
|
251077
|
-
this.add(new Pair.Pair(
|
|
251076
|
+
set(key4, value4) {
|
|
251077
|
+
this.add(new Pair.Pair(key4, value4), true);
|
|
251078
251078
|
}
|
|
251079
251079
|
toJSON(_5, ctx, Type) {
|
|
251080
251080
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
|
@@ -251145,28 +251145,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251145
251145
|
add(value4) {
|
|
251146
251146
|
this.items.push(value4);
|
|
251147
251147
|
}
|
|
251148
|
-
delete(
|
|
251149
|
-
const idx = asItemIndex(
|
|
251148
|
+
delete(key4) {
|
|
251149
|
+
const idx = asItemIndex(key4);
|
|
251150
251150
|
if (typeof idx !== "number")
|
|
251151
251151
|
return false;
|
|
251152
251152
|
const del = this.items.splice(idx, 1);
|
|
251153
251153
|
return del.length > 0;
|
|
251154
251154
|
}
|
|
251155
|
-
get(
|
|
251156
|
-
const idx = asItemIndex(
|
|
251155
|
+
get(key4, keepScalar) {
|
|
251156
|
+
const idx = asItemIndex(key4);
|
|
251157
251157
|
if (typeof idx !== "number")
|
|
251158
251158
|
return;
|
|
251159
251159
|
const it2 = this.items[idx];
|
|
251160
251160
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
|
251161
251161
|
}
|
|
251162
|
-
has(
|
|
251163
|
-
const idx = asItemIndex(
|
|
251162
|
+
has(key4) {
|
|
251163
|
+
const idx = asItemIndex(key4);
|
|
251164
251164
|
return typeof idx === "number" && idx < this.items.length;
|
|
251165
251165
|
}
|
|
251166
|
-
set(
|
|
251167
|
-
const idx = asItemIndex(
|
|
251166
|
+
set(key4, value4) {
|
|
251167
|
+
const idx = asItemIndex(key4);
|
|
251168
251168
|
if (typeof idx !== "number")
|
|
251169
|
-
throw new Error(`Expected a valid index, not ${
|
|
251169
|
+
throw new Error(`Expected a valid index, not ${key4}.`);
|
|
251170
251170
|
const prev = this.items[idx];
|
|
251171
251171
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
|
251172
251172
|
prev.value = value4;
|
|
@@ -251200,8 +251200,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251200
251200
|
let i6 = 0;
|
|
251201
251201
|
for (let it2 of obj) {
|
|
251202
251202
|
if (typeof replacer === "function") {
|
|
251203
|
-
const
|
|
251204
|
-
it2 = replacer.call(obj,
|
|
251203
|
+
const key4 = obj instanceof Set ? it2 : String(i6++);
|
|
251204
|
+
it2 = replacer.call(obj, key4, it2);
|
|
251205
251205
|
}
|
|
251206
251206
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
|
251207
251207
|
}
|
|
@@ -251209,8 +251209,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
|
251209
251209
|
return seq;
|
|
251210
251210
|
}
|
|
251211
251211
|
}
|
|
251212
|
-
function asItemIndex(
|
|
251213
|
-
let idx = identity2.isScalar(
|
|
251212
|
+
function asItemIndex(key4) {
|
|
251213
|
+
let idx = identity2.isScalar(key4) ? key4.value : key4;
|
|
251214
251214
|
if (idx && typeof idx === "string")
|
|
251215
251215
|
idx = Number(idx);
|
|
251216
251216
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
@@ -251582,25 +251582,25 @@ ${cn.comment}` : item.comment;
|
|
|
251582
251582
|
for (let it2 of iterable) {
|
|
251583
251583
|
if (typeof replacer === "function")
|
|
251584
251584
|
it2 = replacer.call(iterable, String(i6++), it2);
|
|
251585
|
-
let
|
|
251585
|
+
let key4, value4;
|
|
251586
251586
|
if (Array.isArray(it2)) {
|
|
251587
251587
|
if (it2.length === 2) {
|
|
251588
|
-
|
|
251588
|
+
key4 = it2[0];
|
|
251589
251589
|
value4 = it2[1];
|
|
251590
251590
|
} else
|
|
251591
251591
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
|
251592
251592
|
} else if (it2 && it2 instanceof Object) {
|
|
251593
251593
|
const keys = Object.keys(it2);
|
|
251594
251594
|
if (keys.length === 1) {
|
|
251595
|
-
|
|
251596
|
-
value4 = it2[
|
|
251595
|
+
key4 = keys[0];
|
|
251596
|
+
value4 = it2[key4];
|
|
251597
251597
|
} else {
|
|
251598
251598
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
251599
251599
|
}
|
|
251600
251600
|
} else {
|
|
251601
|
-
|
|
251601
|
+
key4 = it2;
|
|
251602
251602
|
}
|
|
251603
|
-
pairs2.items.push(Pair.createPair(
|
|
251603
|
+
pairs2.items.push(Pair.createPair(key4, value4, ctx));
|
|
251604
251604
|
}
|
|
251605
251605
|
return pairs2;
|
|
251606
251606
|
}
|
|
@@ -251641,16 +251641,16 @@ var require_omap = __commonJS((exports) => {
|
|
|
251641
251641
|
if (ctx?.onCreate)
|
|
251642
251642
|
ctx.onCreate(map3);
|
|
251643
251643
|
for (const pair of this.items) {
|
|
251644
|
-
let
|
|
251644
|
+
let key4, value4;
|
|
251645
251645
|
if (identity2.isPair(pair)) {
|
|
251646
|
-
|
|
251647
|
-
value4 = toJS.toJS(pair.value,
|
|
251646
|
+
key4 = toJS.toJS(pair.key, "", ctx);
|
|
251647
|
+
value4 = toJS.toJS(pair.value, key4, ctx);
|
|
251648
251648
|
} else {
|
|
251649
|
-
|
|
251649
|
+
key4 = toJS.toJS(pair, "", ctx);
|
|
251650
251650
|
}
|
|
251651
|
-
if (map3.has(
|
|
251651
|
+
if (map3.has(key4))
|
|
251652
251652
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
251653
|
-
map3.set(
|
|
251653
|
+
map3.set(key4, value4);
|
|
251654
251654
|
}
|
|
251655
251655
|
return map3;
|
|
251656
251656
|
}
|
|
@@ -251671,12 +251671,12 @@ var require_omap = __commonJS((exports) => {
|
|
|
251671
251671
|
resolve(seq, onError) {
|
|
251672
251672
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
|
251673
251673
|
const seenKeys = [];
|
|
251674
|
-
for (const { key:
|
|
251675
|
-
if (identity2.isScalar(
|
|
251676
|
-
if (seenKeys.includes(
|
|
251677
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
|
251674
|
+
for (const { key: key4 } of pairs$1.items) {
|
|
251675
|
+
if (identity2.isScalar(key4)) {
|
|
251676
|
+
if (seenKeys.includes(key4.value)) {
|
|
251677
|
+
onError(`Ordered maps must not include duplicate keys: ${key4.value}`);
|
|
251678
251678
|
} else {
|
|
251679
|
-
seenKeys.push(
|
|
251679
|
+
seenKeys.push(key4.value);
|
|
251680
251680
|
}
|
|
251681
251681
|
}
|
|
251682
251682
|
}
|
|
@@ -251850,30 +251850,30 @@ var require_set = __commonJS((exports) => {
|
|
|
251850
251850
|
super(schema);
|
|
251851
251851
|
this.tag = YAMLSet.tag;
|
|
251852
251852
|
}
|
|
251853
|
-
add(
|
|
251853
|
+
add(key4) {
|
|
251854
251854
|
let pair;
|
|
251855
|
-
if (identity2.isPair(
|
|
251856
|
-
pair =
|
|
251857
|
-
else if (
|
|
251858
|
-
pair = new Pair.Pair(
|
|
251855
|
+
if (identity2.isPair(key4))
|
|
251856
|
+
pair = key4;
|
|
251857
|
+
else if (key4 && typeof key4 === "object" && "key" in key4 && "value" in key4 && key4.value === null)
|
|
251858
|
+
pair = new Pair.Pair(key4.key, null);
|
|
251859
251859
|
else
|
|
251860
|
-
pair = new Pair.Pair(
|
|
251860
|
+
pair = new Pair.Pair(key4, null);
|
|
251861
251861
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
|
251862
251862
|
if (!prev)
|
|
251863
251863
|
this.items.push(pair);
|
|
251864
251864
|
}
|
|
251865
|
-
get(
|
|
251866
|
-
const pair = YAMLMap.findPair(this.items,
|
|
251865
|
+
get(key4, keepPair) {
|
|
251866
|
+
const pair = YAMLMap.findPair(this.items, key4);
|
|
251867
251867
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
|
251868
251868
|
}
|
|
251869
|
-
set(
|
|
251869
|
+
set(key4, value4) {
|
|
251870
251870
|
if (typeof value4 !== "boolean")
|
|
251871
251871
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
|
251872
|
-
const prev = YAMLMap.findPair(this.items,
|
|
251872
|
+
const prev = YAMLMap.findPair(this.items, key4);
|
|
251873
251873
|
if (prev && !value4) {
|
|
251874
251874
|
this.items.splice(this.items.indexOf(prev), 1);
|
|
251875
251875
|
} else if (!prev && value4) {
|
|
251876
|
-
this.items.push(new Pair.Pair(
|
|
251876
|
+
this.items.push(new Pair.Pair(key4));
|
|
251877
251877
|
}
|
|
251878
251878
|
}
|
|
251879
251879
|
toJSON(_5, ctx) {
|
|
@@ -252108,7 +252108,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252108
252108
|
if (Array.isArray(customTags))
|
|
252109
252109
|
tags = [];
|
|
252110
252110
|
else {
|
|
252111
|
-
const keys = Array.from(schemas.keys()).filter((
|
|
252111
|
+
const keys = Array.from(schemas.keys()).filter((key4) => key4 !== "yaml11").map((key4) => JSON.stringify(key4)).join(", ");
|
|
252112
252112
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
|
252113
252113
|
}
|
|
252114
252114
|
}
|
|
@@ -252124,7 +252124,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
252124
252124
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
252125
252125
|
if (!tagObj) {
|
|
252126
252126
|
const tagName = JSON.stringify(tag);
|
|
252127
|
-
const keys = Object.keys(tagsByName).map((
|
|
252127
|
+
const keys = Object.keys(tagsByName).map((key4) => JSON.stringify(key4)).join(", ");
|
|
252128
252128
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
|
252129
252129
|
}
|
|
252130
252130
|
if (!tags2.includes(tagObj))
|
|
@@ -252359,13 +252359,13 @@ var require_Document = __commonJS((exports) => {
|
|
|
252359
252359
|
setAnchors();
|
|
252360
252360
|
return node;
|
|
252361
252361
|
}
|
|
252362
|
-
createPair(
|
|
252363
|
-
const k5 = this.createNode(
|
|
252362
|
+
createPair(key4, value4, options = {}) {
|
|
252363
|
+
const k5 = this.createNode(key4, null, options);
|
|
252364
252364
|
const v7 = this.createNode(value4, null, options);
|
|
252365
252365
|
return new Pair.Pair(k5, v7);
|
|
252366
252366
|
}
|
|
252367
|
-
delete(
|
|
252368
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
|
252367
|
+
delete(key4) {
|
|
252368
|
+
return assertCollection(this.contents) ? this.contents.delete(key4) : false;
|
|
252369
252369
|
}
|
|
252370
252370
|
deleteIn(path5) {
|
|
252371
252371
|
if (Collection.isEmptyPath(path5)) {
|
|
@@ -252376,27 +252376,27 @@ var require_Document = __commonJS((exports) => {
|
|
|
252376
252376
|
}
|
|
252377
252377
|
return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
|
|
252378
252378
|
}
|
|
252379
|
-
get(
|
|
252380
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
|
252379
|
+
get(key4, keepScalar) {
|
|
252380
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key4, keepScalar) : undefined;
|
|
252381
252381
|
}
|
|
252382
252382
|
getIn(path5, keepScalar) {
|
|
252383
252383
|
if (Collection.isEmptyPath(path5))
|
|
252384
252384
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
252385
252385
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
|
|
252386
252386
|
}
|
|
252387
|
-
has(
|
|
252388
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
|
252387
|
+
has(key4) {
|
|
252388
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key4) : false;
|
|
252389
252389
|
}
|
|
252390
252390
|
hasIn(path5) {
|
|
252391
252391
|
if (Collection.isEmptyPath(path5))
|
|
252392
252392
|
return this.contents !== undefined;
|
|
252393
252393
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
|
|
252394
252394
|
}
|
|
252395
|
-
set(
|
|
252395
|
+
set(key4, value4) {
|
|
252396
252396
|
if (this.contents == null) {
|
|
252397
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
|
252397
|
+
this.contents = Collection.collectionFromPath(this.schema, [key4], value4);
|
|
252398
252398
|
} else if (assertCollection(this.contents)) {
|
|
252399
|
-
this.contents.set(
|
|
252399
|
+
this.contents.set(key4, value4);
|
|
252400
252400
|
}
|
|
252401
252401
|
}
|
|
252402
252402
|
setIn(path5, value4) {
|
|
@@ -252680,25 +252680,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
|
252680
252680
|
|
|
252681
252681
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
|
252682
252682
|
var require_util_contains_newline = __commonJS((exports) => {
|
|
252683
|
-
function containsNewline(
|
|
252684
|
-
if (!
|
|
252683
|
+
function containsNewline(key4) {
|
|
252684
|
+
if (!key4)
|
|
252685
252685
|
return null;
|
|
252686
|
-
switch (
|
|
252686
|
+
switch (key4.type) {
|
|
252687
252687
|
case "alias":
|
|
252688
252688
|
case "scalar":
|
|
252689
252689
|
case "double-quoted-scalar":
|
|
252690
252690
|
case "single-quoted-scalar":
|
|
252691
|
-
if (
|
|
252691
|
+
if (key4.source.includes(`
|
|
252692
252692
|
`))
|
|
252693
252693
|
return true;
|
|
252694
|
-
if (
|
|
252695
|
-
for (const st2 of
|
|
252694
|
+
if (key4.end) {
|
|
252695
|
+
for (const st2 of key4.end)
|
|
252696
252696
|
if (st2.type === "newline")
|
|
252697
252697
|
return true;
|
|
252698
252698
|
}
|
|
252699
252699
|
return false;
|
|
252700
252700
|
case "flow-collection":
|
|
252701
|
-
for (const it2 of
|
|
252701
|
+
for (const it2 of key4.items) {
|
|
252702
252702
|
for (const st2 of it2.start)
|
|
252703
252703
|
if (st2.type === "newline")
|
|
252704
252704
|
return true;
|
|
@@ -252763,10 +252763,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252763
252763
|
let offset = bm.offset;
|
|
252764
252764
|
let commentEnd = null;
|
|
252765
252765
|
for (const collItem of bm.items) {
|
|
252766
|
-
const { start: start3, key:
|
|
252766
|
+
const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
|
|
252767
252767
|
const keyProps = resolveProps.resolveProps(start3, {
|
|
252768
252768
|
indicator: "explicit-key-ind",
|
|
252769
|
-
next:
|
|
252769
|
+
next: key4 ?? sep3?.[0],
|
|
252770
252770
|
offset,
|
|
252771
252771
|
onError,
|
|
252772
252772
|
parentIndent: bm.indent,
|
|
@@ -252774,10 +252774,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252774
252774
|
});
|
|
252775
252775
|
const implicitKey = !keyProps.found;
|
|
252776
252776
|
if (implicitKey) {
|
|
252777
|
-
if (
|
|
252778
|
-
if (
|
|
252777
|
+
if (key4) {
|
|
252778
|
+
if (key4.type === "block-seq")
|
|
252779
252779
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
|
252780
|
-
else if ("indent" in
|
|
252780
|
+
else if ("indent" in key4 && key4.indent !== bm.indent)
|
|
252781
252781
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
252782
252782
|
}
|
|
252783
252783
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
|
@@ -252791,17 +252791,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252791
252791
|
}
|
|
252792
252792
|
continue;
|
|
252793
252793
|
}
|
|
252794
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
|
252795
|
-
onError(
|
|
252794
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key4)) {
|
|
252795
|
+
onError(key4 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
252796
252796
|
}
|
|
252797
252797
|
} else if (keyProps.found?.indent !== bm.indent) {
|
|
252798
252798
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
252799
252799
|
}
|
|
252800
252800
|
ctx.atKey = true;
|
|
252801
252801
|
const keyStart = keyProps.end;
|
|
252802
|
-
const keyNode =
|
|
252802
|
+
const keyNode = key4 ? composeNode(ctx, key4, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
|
252803
252803
|
if (ctx.schema.compat)
|
|
252804
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
|
252804
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key4, onError);
|
|
252805
252805
|
ctx.atKey = false;
|
|
252806
252806
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
|
252807
252807
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
@@ -252811,7 +252811,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
|
252811
252811
|
offset: keyNode.range[2],
|
|
252812
252812
|
onError,
|
|
252813
252813
|
parentIndent: bm.indent,
|
|
252814
|
-
startOnNewline: !
|
|
252814
|
+
startOnNewline: !key4 || key4.type === "block-scalar"
|
|
252815
252815
|
});
|
|
252816
252816
|
offset = valueProps.end;
|
|
252817
252817
|
if (valueProps.found) {
|
|
@@ -252967,11 +252967,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
252967
252967
|
let offset = fc.offset + fc.start.source.length;
|
|
252968
252968
|
for (let i6 = 0;i6 < fc.items.length; ++i6) {
|
|
252969
252969
|
const collItem = fc.items[i6];
|
|
252970
|
-
const { start: start3, key:
|
|
252970
|
+
const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
|
|
252971
252971
|
const props = resolveProps.resolveProps(start3, {
|
|
252972
252972
|
flow: fcName,
|
|
252973
252973
|
indicator: "explicit-key-ind",
|
|
252974
|
-
next:
|
|
252974
|
+
next: key4 ?? sep3?.[0],
|
|
252975
252975
|
offset,
|
|
252976
252976
|
onError,
|
|
252977
252977
|
parentIndent: fc.indent,
|
|
@@ -252993,8 +252993,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
252993
252993
|
offset = props.end;
|
|
252994
252994
|
continue;
|
|
252995
252995
|
}
|
|
252996
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
|
252997
|
-
onError(
|
|
252996
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key4))
|
|
252997
|
+
onError(key4, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
252998
252998
|
}
|
|
252999
252999
|
if (i6 === 0) {
|
|
253000
253000
|
if (props.comma)
|
|
@@ -253039,8 +253039,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
|
253039
253039
|
} else {
|
|
253040
253040
|
ctx.atKey = true;
|
|
253041
253041
|
const keyStart = props.end;
|
|
253042
|
-
const keyNode =
|
|
253043
|
-
if (isBlock(
|
|
253042
|
+
const keyNode = key4 ? composeNode(ctx, key4, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
|
253043
|
+
if (isBlock(key4))
|
|
253044
253044
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
253045
253045
|
ctx.atKey = false;
|
|
253046
253046
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
|
@@ -253852,7 +253852,7 @@ var require_composer = __commonJS((exports) => {
|
|
|
253852
253852
|
var node_process = __require("node:process");
|
|
253853
253853
|
var directives4 = require_directives2();
|
|
253854
253854
|
var Document = require_Document();
|
|
253855
|
-
var
|
|
253855
|
+
var errors4 = require_errors3();
|
|
253856
253856
|
var identity2 = require_identity();
|
|
253857
253857
|
var composeDoc = require_compose_doc();
|
|
253858
253858
|
var resolveEnd = require_resolve_end();
|
|
@@ -253903,9 +253903,9 @@ var require_composer = __commonJS((exports) => {
|
|
|
253903
253903
|
this.onError = (source, code2, message, warning) => {
|
|
253904
253904
|
const pos = getErrorPos(source);
|
|
253905
253905
|
if (warning)
|
|
253906
|
-
this.warnings.push(new
|
|
253906
|
+
this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
|
|
253907
253907
|
else
|
|
253908
|
-
this.errors.push(new
|
|
253908
|
+
this.errors.push(new errors4.YAMLParseError(pos, code2, message));
|
|
253909
253909
|
};
|
|
253910
253910
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
|
253911
253911
|
this.options = options;
|
|
@@ -253989,7 +253989,7 @@ ${cb}` : comment;
|
|
|
253989
253989
|
break;
|
|
253990
253990
|
case "error": {
|
|
253991
253991
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
|
253992
|
-
const error5 = new
|
|
253992
|
+
const error5 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
|
253993
253993
|
if (this.atDirectives || !this.doc)
|
|
253994
253994
|
this.errors.push(error5);
|
|
253995
253995
|
else
|
|
@@ -253999,7 +253999,7 @@ ${cb}` : comment;
|
|
|
253999
253999
|
case "doc-end": {
|
|
254000
254000
|
if (!this.doc) {
|
|
254001
254001
|
const msg = "Unexpected doc-end without preceding document";
|
|
254002
|
-
this.errors.push(new
|
|
254002
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
|
254003
254003
|
break;
|
|
254004
254004
|
}
|
|
254005
254005
|
this.doc.directives.docEnd = true;
|
|
@@ -254014,7 +254014,7 @@ ${end.comment}` : end.comment;
|
|
|
254014
254014
|
break;
|
|
254015
254015
|
}
|
|
254016
254016
|
default:
|
|
254017
|
-
this.errors.push(new
|
|
254017
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
|
254018
254018
|
}
|
|
254019
254019
|
}
|
|
254020
254020
|
*end(forceDoc = false, endOffset = -1) {
|
|
@@ -254040,7 +254040,7 @@ ${end.comment}` : end.comment;
|
|
|
254040
254040
|
var require_cst_scalar = __commonJS((exports) => {
|
|
254041
254041
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
254042
254042
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
254043
|
-
var
|
|
254043
|
+
var errors4 = require_errors3();
|
|
254044
254044
|
var stringifyString = require_stringifyString();
|
|
254045
254045
|
function resolveAsScalar(token, strict = true, onError) {
|
|
254046
254046
|
if (token) {
|
|
@@ -254049,7 +254049,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254049
254049
|
if (onError)
|
|
254050
254050
|
onError(offset, code2, message);
|
|
254051
254051
|
else
|
|
254052
|
-
throw new
|
|
254052
|
+
throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
|
|
254053
254053
|
};
|
|
254054
254054
|
switch (token.type) {
|
|
254055
254055
|
case "scalar":
|
|
@@ -254163,9 +254163,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254163
254163
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
|
254164
254164
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
|
254165
254165
|
` });
|
|
254166
|
-
for (const
|
|
254167
|
-
if (
|
|
254168
|
-
delete token[
|
|
254166
|
+
for (const key4 of Object.keys(token))
|
|
254167
|
+
if (key4 !== "type" && key4 !== "offset")
|
|
254168
|
+
delete token[key4];
|
|
254169
254169
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
|
254170
254170
|
}
|
|
254171
254171
|
}
|
|
@@ -254214,9 +254214,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
|
254214
254214
|
default: {
|
|
254215
254215
|
const indent2 = "indent" in token ? token.indent : -1;
|
|
254216
254216
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
|
254217
|
-
for (const
|
|
254218
|
-
if (
|
|
254219
|
-
delete token[
|
|
254217
|
+
for (const key4 of Object.keys(token))
|
|
254218
|
+
if (key4 !== "type" && key4 !== "offset")
|
|
254219
|
+
delete token[key4];
|
|
254220
254220
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
|
254221
254221
|
}
|
|
254222
254222
|
}
|
|
@@ -254268,12 +254268,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
|
254268
254268
|
}
|
|
254269
254269
|
}
|
|
254270
254270
|
}
|
|
254271
|
-
function stringifyItem({ start: start3, key:
|
|
254271
|
+
function stringifyItem({ start: start3, key: key4, sep: sep3, value: value4 }) {
|
|
254272
254272
|
let res = "";
|
|
254273
254273
|
for (const st2 of start3)
|
|
254274
254274
|
res += st2.source;
|
|
254275
|
-
if (
|
|
254276
|
-
res += stringifyToken(
|
|
254275
|
+
if (key4)
|
|
254276
|
+
res += stringifyToken(key4);
|
|
254277
254277
|
if (sep3)
|
|
254278
254278
|
for (const st2 of sep3)
|
|
254279
254279
|
res += st2.source;
|
|
@@ -255570,7 +255570,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255570
255570
|
});
|
|
255571
255571
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
|
255572
255572
|
const start4 = getFirstKeyStartProps(it2.start);
|
|
255573
|
-
const
|
|
255573
|
+
const key4 = it2.key;
|
|
255574
255574
|
const sep3 = it2.sep;
|
|
255575
255575
|
sep3.push(this.sourceToken);
|
|
255576
255576
|
delete it2.key;
|
|
@@ -255579,7 +255579,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255579
255579
|
type: "block-map",
|
|
255580
255580
|
offset: this.offset,
|
|
255581
255581
|
indent: this.indent,
|
|
255582
|
-
items: [{ start: start4, key:
|
|
255582
|
+
items: [{ start: start4, key: key4, sep: sep3 }]
|
|
255583
255583
|
});
|
|
255584
255584
|
} else if (start3.length > 0) {
|
|
255585
255585
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
|
@@ -255902,7 +255902,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
|
255902
255902
|
var require_public_api = __commonJS((exports) => {
|
|
255903
255903
|
var composer = require_composer();
|
|
255904
255904
|
var Document = require_Document();
|
|
255905
|
-
var
|
|
255905
|
+
var errors4 = require_errors3();
|
|
255906
255906
|
var log = require_log();
|
|
255907
255907
|
var identity2 = require_identity();
|
|
255908
255908
|
var lineCounter = require_line_counter();
|
|
@@ -255919,8 +255919,8 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255919
255919
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
255920
255920
|
if (prettyErrors && lineCounter2)
|
|
255921
255921
|
for (const doc of docs) {
|
|
255922
|
-
doc.errors.forEach(
|
|
255923
|
-
doc.warnings.forEach(
|
|
255922
|
+
doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
|
255923
|
+
doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
|
255924
255924
|
}
|
|
255925
255925
|
if (docs.length > 0)
|
|
255926
255926
|
return docs;
|
|
@@ -255935,13 +255935,13 @@ var require_public_api = __commonJS((exports) => {
|
|
|
255935
255935
|
if (!doc)
|
|
255936
255936
|
doc = _doc;
|
|
255937
255937
|
else if (doc.options.logLevel !== "silent") {
|
|
255938
|
-
doc.errors.push(new
|
|
255938
|
+
doc.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
255939
255939
|
break;
|
|
255940
255940
|
}
|
|
255941
255941
|
}
|
|
255942
255942
|
if (prettyErrors && lineCounter2) {
|
|
255943
|
-
doc.errors.forEach(
|
|
255944
|
-
doc.warnings.forEach(
|
|
255943
|
+
doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
|
255944
|
+
doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
|
255945
255945
|
}
|
|
255946
255946
|
return doc;
|
|
255947
255947
|
}
|
|
@@ -267029,7 +267029,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267029
267029
|
var package_default = {
|
|
267030
267030
|
name: "@settlemint/sdk-cli",
|
|
267031
267031
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267032
|
-
version: "1.1.1-
|
|
267032
|
+
version: "1.1.1-main7c5a65fb",
|
|
267033
267033
|
type: "module",
|
|
267034
267034
|
private: false,
|
|
267035
267035
|
license: "FSL-1.1-MIT",
|
|
@@ -267074,11 +267074,11 @@ var package_default = {
|
|
|
267074
267074
|
devDependencies: {
|
|
267075
267075
|
"@commander-js/extra-typings": "13.1.0",
|
|
267076
267076
|
"@inquirer/confirm": "5.1.4",
|
|
267077
|
-
"@inquirer/input": "4.1.
|
|
267077
|
+
"@inquirer/input": "4.1.3",
|
|
267078
267078
|
"@inquirer/password": "4.0.6",
|
|
267079
267079
|
"@inquirer/select": "4.0.7",
|
|
267080
|
-
"@settlemint/sdk-js": "1.1.1-
|
|
267081
|
-
"@settlemint/sdk-utils": "1.1.1-
|
|
267080
|
+
"@settlemint/sdk-js": "1.1.1-main7c5a65fb",
|
|
267081
|
+
"@settlemint/sdk-utils": "1.1.1-main7c5a65fb",
|
|
267082
267082
|
"@types/node": "22.12.0",
|
|
267083
267083
|
"@types/semver": "7.5.8",
|
|
267084
267084
|
"@types/which": "3.0.4",
|
|
@@ -272749,75 +272749,10 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
|
272749
272749
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
272750
272750
|
});
|
|
272751
272751
|
|
|
272752
|
-
// ../../node_modules/@inquirer/input/dist/esm/
|
|
272753
|
-
var
|
|
272754
|
-
validationFailureMode: "keep"
|
|
272755
|
-
};
|
|
272756
|
-
var esm_default4 = createPrompt((config3, done) => {
|
|
272757
|
-
const { required, validate: validate3 = () => true } = config3;
|
|
272758
|
-
const theme = makeTheme(inputTheme, config3.theme);
|
|
272759
|
-
const [status, setStatus] = useState("idle");
|
|
272760
|
-
const [defaultValue = "", setDefaultValue] = useState(config3.default);
|
|
272761
|
-
const [errorMsg, setError] = useState();
|
|
272762
|
-
const [value4, setValue] = useState("");
|
|
272763
|
-
const prefix = usePrefix({ status, theme });
|
|
272764
|
-
useKeypress(async (key2, rl) => {
|
|
272765
|
-
if (status !== "idle") {
|
|
272766
|
-
return;
|
|
272767
|
-
}
|
|
272768
|
-
if (isEnterKey(key2)) {
|
|
272769
|
-
const answer = value4 || defaultValue;
|
|
272770
|
-
setStatus("loading");
|
|
272771
|
-
const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
|
|
272772
|
-
if (isValid2 === true) {
|
|
272773
|
-
setValue(answer);
|
|
272774
|
-
setStatus("done");
|
|
272775
|
-
done(answer);
|
|
272776
|
-
} else {
|
|
272777
|
-
if (theme.validationFailureMode === "clear") {
|
|
272778
|
-
setValue("");
|
|
272779
|
-
} else {
|
|
272780
|
-
rl.write(value4);
|
|
272781
|
-
}
|
|
272782
|
-
setError(isValid2 || "You must provide a valid value");
|
|
272783
|
-
setStatus("idle");
|
|
272784
|
-
}
|
|
272785
|
-
} else if (isBackspaceKey(key2) && !value4) {
|
|
272786
|
-
setDefaultValue(undefined);
|
|
272787
|
-
} else if (key2.name === "tab" && !value4) {
|
|
272788
|
-
setDefaultValue(undefined);
|
|
272789
|
-
rl.clearLine(0);
|
|
272790
|
-
rl.write(defaultValue);
|
|
272791
|
-
setValue(defaultValue);
|
|
272792
|
-
} else {
|
|
272793
|
-
setValue(rl.line);
|
|
272794
|
-
setError(undefined);
|
|
272795
|
-
}
|
|
272796
|
-
});
|
|
272797
|
-
const message = theme.style.message(config3.message, status);
|
|
272798
|
-
let formattedValue = value4;
|
|
272799
|
-
if (typeof config3.transformer === "function") {
|
|
272800
|
-
formattedValue = config3.transformer(value4, { isFinal: status === "done" });
|
|
272801
|
-
} else if (status === "done") {
|
|
272802
|
-
formattedValue = theme.style.answer(value4);
|
|
272803
|
-
}
|
|
272804
|
-
let defaultStr;
|
|
272805
|
-
if (defaultValue && status !== "done" && !value4) {
|
|
272806
|
-
defaultStr = theme.style.defaultAnswer(defaultValue);
|
|
272807
|
-
}
|
|
272808
|
-
let error5 = "";
|
|
272809
|
-
if (errorMsg) {
|
|
272810
|
-
error5 = theme.style.error(errorMsg);
|
|
272811
|
-
}
|
|
272812
|
-
return [
|
|
272813
|
-
[prefix, message, defaultStr, formattedValue].filter((v7) => v7 !== undefined).join(" "),
|
|
272814
|
-
error5
|
|
272815
|
-
];
|
|
272816
|
-
});
|
|
272817
|
-
|
|
272818
|
-
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
272752
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
272753
|
+
var isBackspaceKey2 = (key2) => key2.name === "backspace";
|
|
272819
272754
|
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
|
272820
|
-
// ../../node_modules/@inquirer/
|
|
272755
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
272821
272756
|
class AbortPromptError2 extends Error {
|
|
272822
272757
|
name = "AbortPromptError";
|
|
272823
272758
|
message = "Prompt was aborted";
|
|
@@ -272843,10 +272778,10 @@ class HookError2 extends Error {
|
|
|
272843
272778
|
class ValidationError2 extends Error {
|
|
272844
272779
|
name = "ValidationError";
|
|
272845
272780
|
}
|
|
272846
|
-
// ../../node_modules/@inquirer/
|
|
272781
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
272847
272782
|
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
|
272848
272783
|
|
|
272849
|
-
// ../../node_modules/@inquirer/
|
|
272784
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
272850
272785
|
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
272851
272786
|
var hookStorage2 = new AsyncLocalStorage2;
|
|
272852
272787
|
function createStore2(rl) {
|
|
@@ -272952,7 +272887,7 @@ var effectScheduler2 = {
|
|
|
272952
272887
|
}
|
|
272953
272888
|
};
|
|
272954
272889
|
|
|
272955
|
-
// ../../node_modules/@inquirer/
|
|
272890
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
272956
272891
|
function useState2(defaultValue) {
|
|
272957
272892
|
return withPointer2((pointer) => {
|
|
272958
272893
|
const setFn = (newValue) => {
|
|
@@ -272970,7 +272905,7 @@ function useState2(defaultValue) {
|
|
|
272970
272905
|
});
|
|
272971
272906
|
}
|
|
272972
272907
|
|
|
272973
|
-
// ../../node_modules/@inquirer/
|
|
272908
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
272974
272909
|
function useEffect2(cb, depArray) {
|
|
272975
272910
|
withPointer2((pointer) => {
|
|
272976
272911
|
const oldDeps = pointer.get();
|
|
@@ -272982,10 +272917,10 @@ function useEffect2(cb, depArray) {
|
|
|
272982
272917
|
});
|
|
272983
272918
|
}
|
|
272984
272919
|
|
|
272985
|
-
// ../../node_modules/@inquirer/
|
|
272920
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
272986
272921
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
272987
272922
|
|
|
272988
|
-
// ../../node_modules/@inquirer/
|
|
272923
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
|
|
272989
272924
|
import process8 from "node:process";
|
|
272990
272925
|
function isUnicodeSupported3() {
|
|
272991
272926
|
if (process8.platform !== "win32") {
|
|
@@ -273268,14 +273203,14 @@ var fallbackSymbols2 = {
|
|
|
273268
273203
|
};
|
|
273269
273204
|
var shouldUseMain2 = isUnicodeSupported3();
|
|
273270
273205
|
var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
|
|
273271
|
-
var
|
|
273206
|
+
var esm_default4 = figures2;
|
|
273272
273207
|
var replacements2 = Object.entries(specialMainSymbols2);
|
|
273273
273208
|
|
|
273274
|
-
// ../../node_modules/@inquirer/
|
|
273209
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
273275
273210
|
var defaultTheme2 = {
|
|
273276
273211
|
prefix: {
|
|
273277
273212
|
idle: import_yoctocolors_cjs4.default.blue("?"),
|
|
273278
|
-
done: import_yoctocolors_cjs4.default.green(
|
|
273213
|
+
done: import_yoctocolors_cjs4.default.green(esm_default4.tick)
|
|
273279
273214
|
},
|
|
273280
273215
|
spinner: {
|
|
273281
273216
|
interval: 80,
|
|
@@ -273292,7 +273227,7 @@ var defaultTheme2 = {
|
|
|
273292
273227
|
}
|
|
273293
273228
|
};
|
|
273294
273229
|
|
|
273295
|
-
// ../../node_modules/@inquirer/
|
|
273230
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
273296
273231
|
function isPlainObject3(value4) {
|
|
273297
273232
|
if (typeof value4 !== "object" || value4 === null)
|
|
273298
273233
|
return false;
|
|
@@ -273320,7 +273255,7 @@ function makeTheme2(...themes) {
|
|
|
273320
273255
|
return deepMerge3(...themesToMerge);
|
|
273321
273256
|
}
|
|
273322
273257
|
|
|
273323
|
-
// ../../node_modules/@inquirer/
|
|
273258
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
273324
273259
|
function usePrefix2({ status = "idle", theme }) {
|
|
273325
273260
|
const [showLoader, setShowLoader] = useState2(false);
|
|
273326
273261
|
const [tick, setTick] = useState2(0);
|
|
@@ -273350,12 +273285,12 @@ function usePrefix2({ status = "idle", theme }) {
|
|
|
273350
273285
|
const iconName = status === "loading" ? "idle" : status;
|
|
273351
273286
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
273352
273287
|
}
|
|
273353
|
-
// ../../node_modules/@inquirer/
|
|
273288
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
273354
273289
|
function useRef2(val) {
|
|
273355
273290
|
return useState2({ current: val })[0];
|
|
273356
273291
|
}
|
|
273357
273292
|
|
|
273358
|
-
// ../../node_modules/@inquirer/
|
|
273293
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
273359
273294
|
function useKeypress2(userHandler) {
|
|
273360
273295
|
const signal = useRef2(userHandler);
|
|
273361
273296
|
signal.current = userHandler;
|
|
@@ -273373,7 +273308,7 @@ function useKeypress2(userHandler) {
|
|
|
273373
273308
|
};
|
|
273374
273309
|
}, []);
|
|
273375
273310
|
}
|
|
273376
|
-
// ../../node_modules/@inquirer/
|
|
273311
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
273377
273312
|
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
|
273378
273313
|
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
|
273379
273314
|
function breakLines2(content, width) {
|
|
@@ -273386,12 +273321,12 @@ function readlineWidth2() {
|
|
|
273386
273321
|
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
|
273387
273322
|
}
|
|
273388
273323
|
|
|
273389
|
-
// ../../node_modules/@inquirer/
|
|
273324
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273390
273325
|
var import_mute_stream2 = __toESM(require_lib12(), 1);
|
|
273391
273326
|
import * as readline4 from "node:readline";
|
|
273392
273327
|
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
|
273393
273328
|
|
|
273394
|
-
// ../../node_modules/@inquirer/
|
|
273329
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
273395
273330
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
273396
273331
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
273397
273332
|
var height2 = (content) => content.split(`
|
|
@@ -273462,7 +273397,7 @@ class ScreenManager2 {
|
|
|
273462
273397
|
}
|
|
273463
273398
|
}
|
|
273464
273399
|
|
|
273465
|
-
// ../../node_modules/@inquirer/
|
|
273400
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
273466
273401
|
class PromisePolyfill2 extends Promise {
|
|
273467
273402
|
static withResolver() {
|
|
273468
273403
|
let resolve6;
|
|
@@ -273475,7 +273410,7 @@ class PromisePolyfill2 extends Promise {
|
|
|
273475
273410
|
}
|
|
273476
273411
|
}
|
|
273477
273412
|
|
|
273478
|
-
// ../../node_modules/@inquirer/
|
|
273413
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
273479
273414
|
function getCallSites2() {
|
|
273480
273415
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
273481
273416
|
try {
|
|
@@ -273557,12 +273492,15 @@ function createPrompt2(view) {
|
|
|
273557
273492
|
};
|
|
273558
273493
|
return prompt;
|
|
273559
273494
|
}
|
|
273560
|
-
// ../../node_modules/@inquirer/
|
|
273561
|
-
var
|
|
273562
|
-
|
|
273563
|
-
|
|
273564
|
-
|
|
273495
|
+
// ../../node_modules/@inquirer/input/dist/esm/index.js
|
|
273496
|
+
var inputTheme = {
|
|
273497
|
+
validationFailureMode: "keep"
|
|
273498
|
+
};
|
|
273499
|
+
var esm_default5 = createPrompt2((config3, done) => {
|
|
273500
|
+
const { required, validate: validate3 = () => true } = config3;
|
|
273501
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
|
273565
273502
|
const [status, setStatus] = useState2("idle");
|
|
273503
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
|
273566
273504
|
const [errorMsg, setError] = useState2();
|
|
273567
273505
|
const [value4, setValue] = useState2("");
|
|
273568
273506
|
const prefix = usePrefix2({ status, theme });
|
|
@@ -273571,6 +273509,811 @@ var esm_default6 = createPrompt2((config3, done) => {
|
|
|
273571
273509
|
return;
|
|
273572
273510
|
}
|
|
273573
273511
|
if (isEnterKey2(key3)) {
|
|
273512
|
+
const answer = value4 || defaultValue;
|
|
273513
|
+
setStatus("loading");
|
|
273514
|
+
const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
|
|
273515
|
+
if (isValid2 === true) {
|
|
273516
|
+
setValue(answer);
|
|
273517
|
+
setStatus("done");
|
|
273518
|
+
done(answer);
|
|
273519
|
+
} else {
|
|
273520
|
+
if (theme.validationFailureMode === "clear") {
|
|
273521
|
+
setValue("");
|
|
273522
|
+
} else {
|
|
273523
|
+
rl.write(value4);
|
|
273524
|
+
}
|
|
273525
|
+
setError(isValid2 || "You must provide a valid value");
|
|
273526
|
+
setStatus("idle");
|
|
273527
|
+
}
|
|
273528
|
+
} else if (isBackspaceKey2(key3) && !value4) {
|
|
273529
|
+
setDefaultValue(undefined);
|
|
273530
|
+
} else if (key3.name === "tab" && !value4) {
|
|
273531
|
+
setDefaultValue(undefined);
|
|
273532
|
+
rl.clearLine(0);
|
|
273533
|
+
rl.write(defaultValue);
|
|
273534
|
+
setValue(defaultValue);
|
|
273535
|
+
} else {
|
|
273536
|
+
setValue(rl.line);
|
|
273537
|
+
setError(undefined);
|
|
273538
|
+
}
|
|
273539
|
+
});
|
|
273540
|
+
const message = theme.style.message(config3.message, status);
|
|
273541
|
+
let formattedValue = value4;
|
|
273542
|
+
if (typeof config3.transformer === "function") {
|
|
273543
|
+
formattedValue = config3.transformer(value4, { isFinal: status === "done" });
|
|
273544
|
+
} else if (status === "done") {
|
|
273545
|
+
formattedValue = theme.style.answer(value4);
|
|
273546
|
+
}
|
|
273547
|
+
let defaultStr;
|
|
273548
|
+
if (defaultValue && status !== "done" && !value4) {
|
|
273549
|
+
defaultStr = theme.style.defaultAnswer(defaultValue);
|
|
273550
|
+
}
|
|
273551
|
+
let error5 = "";
|
|
273552
|
+
if (errorMsg) {
|
|
273553
|
+
error5 = theme.style.error(errorMsg);
|
|
273554
|
+
}
|
|
273555
|
+
return [
|
|
273556
|
+
[prefix, message, defaultStr, formattedValue].filter((v7) => v7 !== undefined).join(" "),
|
|
273557
|
+
error5
|
|
273558
|
+
];
|
|
273559
|
+
});
|
|
273560
|
+
|
|
273561
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
273562
|
+
var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
|
|
273563
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
273564
|
+
class AbortPromptError3 extends Error {
|
|
273565
|
+
name = "AbortPromptError";
|
|
273566
|
+
message = "Prompt was aborted";
|
|
273567
|
+
constructor(options) {
|
|
273568
|
+
super();
|
|
273569
|
+
this.cause = options?.cause;
|
|
273570
|
+
}
|
|
273571
|
+
}
|
|
273572
|
+
|
|
273573
|
+
class CancelPromptError3 extends Error {
|
|
273574
|
+
name = "CancelPromptError";
|
|
273575
|
+
message = "Prompt was canceled";
|
|
273576
|
+
}
|
|
273577
|
+
|
|
273578
|
+
class ExitPromptError3 extends Error {
|
|
273579
|
+
name = "ExitPromptError";
|
|
273580
|
+
}
|
|
273581
|
+
|
|
273582
|
+
class HookError3 extends Error {
|
|
273583
|
+
name = "HookError";
|
|
273584
|
+
}
|
|
273585
|
+
|
|
273586
|
+
class ValidationError3 extends Error {
|
|
273587
|
+
name = "ValidationError";
|
|
273588
|
+
}
|
|
273589
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
273590
|
+
import { AsyncResource as AsyncResource8 } from "node:async_hooks";
|
|
273591
|
+
|
|
273592
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
273593
|
+
import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
|
|
273594
|
+
var hookStorage3 = new AsyncLocalStorage3;
|
|
273595
|
+
function createStore3(rl) {
|
|
273596
|
+
const store = {
|
|
273597
|
+
rl,
|
|
273598
|
+
hooks: [],
|
|
273599
|
+
hooksCleanup: [],
|
|
273600
|
+
hooksEffect: [],
|
|
273601
|
+
index: 0,
|
|
273602
|
+
handleChange() {
|
|
273603
|
+
}
|
|
273604
|
+
};
|
|
273605
|
+
return store;
|
|
273606
|
+
}
|
|
273607
|
+
function withHooks3(rl, cb) {
|
|
273608
|
+
const store = createStore3(rl);
|
|
273609
|
+
return hookStorage3.run(store, () => {
|
|
273610
|
+
function cycle(render) {
|
|
273611
|
+
store.handleChange = () => {
|
|
273612
|
+
store.index = 0;
|
|
273613
|
+
render();
|
|
273614
|
+
};
|
|
273615
|
+
store.handleChange();
|
|
273616
|
+
}
|
|
273617
|
+
return cb(cycle);
|
|
273618
|
+
});
|
|
273619
|
+
}
|
|
273620
|
+
function getStore3() {
|
|
273621
|
+
const store = hookStorage3.getStore();
|
|
273622
|
+
if (!store) {
|
|
273623
|
+
throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
|
|
273624
|
+
}
|
|
273625
|
+
return store;
|
|
273626
|
+
}
|
|
273627
|
+
function readline5() {
|
|
273628
|
+
return getStore3().rl;
|
|
273629
|
+
}
|
|
273630
|
+
function withUpdates3(fn) {
|
|
273631
|
+
const wrapped = (...args) => {
|
|
273632
|
+
const store = getStore3();
|
|
273633
|
+
let shouldUpdate = false;
|
|
273634
|
+
const oldHandleChange = store.handleChange;
|
|
273635
|
+
store.handleChange = () => {
|
|
273636
|
+
shouldUpdate = true;
|
|
273637
|
+
};
|
|
273638
|
+
const returnValue = fn(...args);
|
|
273639
|
+
if (shouldUpdate) {
|
|
273640
|
+
oldHandleChange();
|
|
273641
|
+
}
|
|
273642
|
+
store.handleChange = oldHandleChange;
|
|
273643
|
+
return returnValue;
|
|
273644
|
+
};
|
|
273645
|
+
return AsyncResource7.bind(wrapped);
|
|
273646
|
+
}
|
|
273647
|
+
function withPointer3(cb) {
|
|
273648
|
+
const store = getStore3();
|
|
273649
|
+
const { index } = store;
|
|
273650
|
+
const pointer = {
|
|
273651
|
+
get() {
|
|
273652
|
+
return store.hooks[index];
|
|
273653
|
+
},
|
|
273654
|
+
set(value4) {
|
|
273655
|
+
store.hooks[index] = value4;
|
|
273656
|
+
},
|
|
273657
|
+
initialized: index in store.hooks
|
|
273658
|
+
};
|
|
273659
|
+
const returnValue = cb(pointer);
|
|
273660
|
+
store.index++;
|
|
273661
|
+
return returnValue;
|
|
273662
|
+
}
|
|
273663
|
+
function handleChange3() {
|
|
273664
|
+
getStore3().handleChange();
|
|
273665
|
+
}
|
|
273666
|
+
var effectScheduler3 = {
|
|
273667
|
+
queue(cb) {
|
|
273668
|
+
const store = getStore3();
|
|
273669
|
+
const { index } = store;
|
|
273670
|
+
store.hooksEffect.push(() => {
|
|
273671
|
+
store.hooksCleanup[index]?.();
|
|
273672
|
+
const cleanFn = cb(readline5());
|
|
273673
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
|
273674
|
+
throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
|
|
273675
|
+
}
|
|
273676
|
+
store.hooksCleanup[index] = cleanFn;
|
|
273677
|
+
});
|
|
273678
|
+
},
|
|
273679
|
+
run() {
|
|
273680
|
+
const store = getStore3();
|
|
273681
|
+
withUpdates3(() => {
|
|
273682
|
+
store.hooksEffect.forEach((effect) => {
|
|
273683
|
+
effect();
|
|
273684
|
+
});
|
|
273685
|
+
store.hooksEffect.length = 0;
|
|
273686
|
+
})();
|
|
273687
|
+
},
|
|
273688
|
+
clearAll() {
|
|
273689
|
+
const store = getStore3();
|
|
273690
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
|
273691
|
+
cleanFn?.();
|
|
273692
|
+
});
|
|
273693
|
+
store.hooksEffect.length = 0;
|
|
273694
|
+
store.hooksCleanup.length = 0;
|
|
273695
|
+
}
|
|
273696
|
+
};
|
|
273697
|
+
|
|
273698
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
273699
|
+
function useState3(defaultValue) {
|
|
273700
|
+
return withPointer3((pointer) => {
|
|
273701
|
+
const setFn = (newValue) => {
|
|
273702
|
+
if (pointer.get() !== newValue) {
|
|
273703
|
+
pointer.set(newValue);
|
|
273704
|
+
handleChange3();
|
|
273705
|
+
}
|
|
273706
|
+
};
|
|
273707
|
+
if (pointer.initialized) {
|
|
273708
|
+
return [pointer.get(), setFn];
|
|
273709
|
+
}
|
|
273710
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
273711
|
+
pointer.set(value4);
|
|
273712
|
+
return [value4, setFn];
|
|
273713
|
+
});
|
|
273714
|
+
}
|
|
273715
|
+
|
|
273716
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
273717
|
+
function useEffect3(cb, depArray) {
|
|
273718
|
+
withPointer3((pointer) => {
|
|
273719
|
+
const oldDeps = pointer.get();
|
|
273720
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
|
273721
|
+
if (hasChanged) {
|
|
273722
|
+
effectScheduler3.queue(cb);
|
|
273723
|
+
}
|
|
273724
|
+
pointer.set(depArray);
|
|
273725
|
+
});
|
|
273726
|
+
}
|
|
273727
|
+
|
|
273728
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
273729
|
+
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
273730
|
+
|
|
273731
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
|
|
273732
|
+
import process9 from "node:process";
|
|
273733
|
+
function isUnicodeSupported4() {
|
|
273734
|
+
if (process9.platform !== "win32") {
|
|
273735
|
+
return process9.env["TERM"] !== "linux";
|
|
273736
|
+
}
|
|
273737
|
+
return Boolean(process9.env["WT_SESSION"]) || Boolean(process9.env["TERMINUS_SUBLIME"]) || process9.env["ConEmuTask"] === "{cmd::Cmder}" || process9.env["TERM_PROGRAM"] === "Terminus-Sublime" || process9.env["TERM_PROGRAM"] === "vscode" || process9.env["TERM"] === "xterm-256color" || process9.env["TERM"] === "alacritty" || process9.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
273738
|
+
}
|
|
273739
|
+
var common3 = {
|
|
273740
|
+
circleQuestionMark: "(?)",
|
|
273741
|
+
questionMarkPrefix: "(?)",
|
|
273742
|
+
square: "█",
|
|
273743
|
+
squareDarkShade: "▓",
|
|
273744
|
+
squareMediumShade: "▒",
|
|
273745
|
+
squareLightShade: "░",
|
|
273746
|
+
squareTop: "▀",
|
|
273747
|
+
squareBottom: "▄",
|
|
273748
|
+
squareLeft: "▌",
|
|
273749
|
+
squareRight: "▐",
|
|
273750
|
+
squareCenter: "■",
|
|
273751
|
+
bullet: "●",
|
|
273752
|
+
dot: "․",
|
|
273753
|
+
ellipsis: "…",
|
|
273754
|
+
pointerSmall: "›",
|
|
273755
|
+
triangleUp: "▲",
|
|
273756
|
+
triangleUpSmall: "▴",
|
|
273757
|
+
triangleDown: "▼",
|
|
273758
|
+
triangleDownSmall: "▾",
|
|
273759
|
+
triangleLeftSmall: "◂",
|
|
273760
|
+
triangleRightSmall: "▸",
|
|
273761
|
+
home: "⌂",
|
|
273762
|
+
heart: "♥",
|
|
273763
|
+
musicNote: "♪",
|
|
273764
|
+
musicNoteBeamed: "♫",
|
|
273765
|
+
arrowUp: "↑",
|
|
273766
|
+
arrowDown: "↓",
|
|
273767
|
+
arrowLeft: "←",
|
|
273768
|
+
arrowRight: "→",
|
|
273769
|
+
arrowLeftRight: "↔",
|
|
273770
|
+
arrowUpDown: "↕",
|
|
273771
|
+
almostEqual: "≈",
|
|
273772
|
+
notEqual: "≠",
|
|
273773
|
+
lessOrEqual: "≤",
|
|
273774
|
+
greaterOrEqual: "≥",
|
|
273775
|
+
identical: "≡",
|
|
273776
|
+
infinity: "∞",
|
|
273777
|
+
subscriptZero: "₀",
|
|
273778
|
+
subscriptOne: "₁",
|
|
273779
|
+
subscriptTwo: "₂",
|
|
273780
|
+
subscriptThree: "₃",
|
|
273781
|
+
subscriptFour: "₄",
|
|
273782
|
+
subscriptFive: "₅",
|
|
273783
|
+
subscriptSix: "₆",
|
|
273784
|
+
subscriptSeven: "₇",
|
|
273785
|
+
subscriptEight: "₈",
|
|
273786
|
+
subscriptNine: "₉",
|
|
273787
|
+
oneHalf: "½",
|
|
273788
|
+
oneThird: "⅓",
|
|
273789
|
+
oneQuarter: "¼",
|
|
273790
|
+
oneFifth: "⅕",
|
|
273791
|
+
oneSixth: "⅙",
|
|
273792
|
+
oneEighth: "⅛",
|
|
273793
|
+
twoThirds: "⅔",
|
|
273794
|
+
twoFifths: "⅖",
|
|
273795
|
+
threeQuarters: "¾",
|
|
273796
|
+
threeFifths: "⅗",
|
|
273797
|
+
threeEighths: "⅜",
|
|
273798
|
+
fourFifths: "⅘",
|
|
273799
|
+
fiveSixths: "⅚",
|
|
273800
|
+
fiveEighths: "⅝",
|
|
273801
|
+
sevenEighths: "⅞",
|
|
273802
|
+
line: "─",
|
|
273803
|
+
lineBold: "━",
|
|
273804
|
+
lineDouble: "═",
|
|
273805
|
+
lineDashed0: "┄",
|
|
273806
|
+
lineDashed1: "┅",
|
|
273807
|
+
lineDashed2: "┈",
|
|
273808
|
+
lineDashed3: "┉",
|
|
273809
|
+
lineDashed4: "╌",
|
|
273810
|
+
lineDashed5: "╍",
|
|
273811
|
+
lineDashed6: "╴",
|
|
273812
|
+
lineDashed7: "╶",
|
|
273813
|
+
lineDashed8: "╸",
|
|
273814
|
+
lineDashed9: "╺",
|
|
273815
|
+
lineDashed10: "╼",
|
|
273816
|
+
lineDashed11: "╾",
|
|
273817
|
+
lineDashed12: "−",
|
|
273818
|
+
lineDashed13: "–",
|
|
273819
|
+
lineDashed14: "‐",
|
|
273820
|
+
lineDashed15: "⁃",
|
|
273821
|
+
lineVertical: "│",
|
|
273822
|
+
lineVerticalBold: "┃",
|
|
273823
|
+
lineVerticalDouble: "║",
|
|
273824
|
+
lineVerticalDashed0: "┆",
|
|
273825
|
+
lineVerticalDashed1: "┇",
|
|
273826
|
+
lineVerticalDashed2: "┊",
|
|
273827
|
+
lineVerticalDashed3: "┋",
|
|
273828
|
+
lineVerticalDashed4: "╎",
|
|
273829
|
+
lineVerticalDashed5: "╏",
|
|
273830
|
+
lineVerticalDashed6: "╵",
|
|
273831
|
+
lineVerticalDashed7: "╷",
|
|
273832
|
+
lineVerticalDashed8: "╹",
|
|
273833
|
+
lineVerticalDashed9: "╻",
|
|
273834
|
+
lineVerticalDashed10: "╽",
|
|
273835
|
+
lineVerticalDashed11: "╿",
|
|
273836
|
+
lineDownLeft: "┐",
|
|
273837
|
+
lineDownLeftArc: "╮",
|
|
273838
|
+
lineDownBoldLeftBold: "┓",
|
|
273839
|
+
lineDownBoldLeft: "┒",
|
|
273840
|
+
lineDownLeftBold: "┑",
|
|
273841
|
+
lineDownDoubleLeftDouble: "╗",
|
|
273842
|
+
lineDownDoubleLeft: "╖",
|
|
273843
|
+
lineDownLeftDouble: "╕",
|
|
273844
|
+
lineDownRight: "┌",
|
|
273845
|
+
lineDownRightArc: "╭",
|
|
273846
|
+
lineDownBoldRightBold: "┏",
|
|
273847
|
+
lineDownBoldRight: "┎",
|
|
273848
|
+
lineDownRightBold: "┍",
|
|
273849
|
+
lineDownDoubleRightDouble: "╔",
|
|
273850
|
+
lineDownDoubleRight: "╓",
|
|
273851
|
+
lineDownRightDouble: "╒",
|
|
273852
|
+
lineUpLeft: "┘",
|
|
273853
|
+
lineUpLeftArc: "╯",
|
|
273854
|
+
lineUpBoldLeftBold: "┛",
|
|
273855
|
+
lineUpBoldLeft: "┚",
|
|
273856
|
+
lineUpLeftBold: "┙",
|
|
273857
|
+
lineUpDoubleLeftDouble: "╝",
|
|
273858
|
+
lineUpDoubleLeft: "╜",
|
|
273859
|
+
lineUpLeftDouble: "╛",
|
|
273860
|
+
lineUpRight: "└",
|
|
273861
|
+
lineUpRightArc: "╰",
|
|
273862
|
+
lineUpBoldRightBold: "┗",
|
|
273863
|
+
lineUpBoldRight: "┖",
|
|
273864
|
+
lineUpRightBold: "┕",
|
|
273865
|
+
lineUpDoubleRightDouble: "╚",
|
|
273866
|
+
lineUpDoubleRight: "╙",
|
|
273867
|
+
lineUpRightDouble: "╘",
|
|
273868
|
+
lineUpDownLeft: "┤",
|
|
273869
|
+
lineUpBoldDownBoldLeftBold: "┫",
|
|
273870
|
+
lineUpBoldDownBoldLeft: "┨",
|
|
273871
|
+
lineUpDownLeftBold: "┥",
|
|
273872
|
+
lineUpBoldDownLeftBold: "┩",
|
|
273873
|
+
lineUpDownBoldLeftBold: "┪",
|
|
273874
|
+
lineUpDownBoldLeft: "┧",
|
|
273875
|
+
lineUpBoldDownLeft: "┦",
|
|
273876
|
+
lineUpDoubleDownDoubleLeftDouble: "╣",
|
|
273877
|
+
lineUpDoubleDownDoubleLeft: "╢",
|
|
273878
|
+
lineUpDownLeftDouble: "╡",
|
|
273879
|
+
lineUpDownRight: "├",
|
|
273880
|
+
lineUpBoldDownBoldRightBold: "┣",
|
|
273881
|
+
lineUpBoldDownBoldRight: "┠",
|
|
273882
|
+
lineUpDownRightBold: "┝",
|
|
273883
|
+
lineUpBoldDownRightBold: "┡",
|
|
273884
|
+
lineUpDownBoldRightBold: "┢",
|
|
273885
|
+
lineUpDownBoldRight: "┟",
|
|
273886
|
+
lineUpBoldDownRight: "┞",
|
|
273887
|
+
lineUpDoubleDownDoubleRightDouble: "╠",
|
|
273888
|
+
lineUpDoubleDownDoubleRight: "╟",
|
|
273889
|
+
lineUpDownRightDouble: "╞",
|
|
273890
|
+
lineDownLeftRight: "┬",
|
|
273891
|
+
lineDownBoldLeftBoldRightBold: "┳",
|
|
273892
|
+
lineDownLeftBoldRightBold: "┯",
|
|
273893
|
+
lineDownBoldLeftRight: "┰",
|
|
273894
|
+
lineDownBoldLeftBoldRight: "┱",
|
|
273895
|
+
lineDownBoldLeftRightBold: "┲",
|
|
273896
|
+
lineDownLeftRightBold: "┮",
|
|
273897
|
+
lineDownLeftBoldRight: "┭",
|
|
273898
|
+
lineDownDoubleLeftDoubleRightDouble: "╦",
|
|
273899
|
+
lineDownDoubleLeftRight: "╥",
|
|
273900
|
+
lineDownLeftDoubleRightDouble: "╤",
|
|
273901
|
+
lineUpLeftRight: "┴",
|
|
273902
|
+
lineUpBoldLeftBoldRightBold: "┻",
|
|
273903
|
+
lineUpLeftBoldRightBold: "┷",
|
|
273904
|
+
lineUpBoldLeftRight: "┸",
|
|
273905
|
+
lineUpBoldLeftBoldRight: "┹",
|
|
273906
|
+
lineUpBoldLeftRightBold: "┺",
|
|
273907
|
+
lineUpLeftRightBold: "┶",
|
|
273908
|
+
lineUpLeftBoldRight: "┵",
|
|
273909
|
+
lineUpDoubleLeftDoubleRightDouble: "╩",
|
|
273910
|
+
lineUpDoubleLeftRight: "╨",
|
|
273911
|
+
lineUpLeftDoubleRightDouble: "╧",
|
|
273912
|
+
lineUpDownLeftRight: "┼",
|
|
273913
|
+
lineUpBoldDownBoldLeftBoldRightBold: "╋",
|
|
273914
|
+
lineUpDownBoldLeftBoldRightBold: "╈",
|
|
273915
|
+
lineUpBoldDownLeftBoldRightBold: "╇",
|
|
273916
|
+
lineUpBoldDownBoldLeftRightBold: "╊",
|
|
273917
|
+
lineUpBoldDownBoldLeftBoldRight: "╉",
|
|
273918
|
+
lineUpBoldDownLeftRight: "╀",
|
|
273919
|
+
lineUpDownBoldLeftRight: "╁",
|
|
273920
|
+
lineUpDownLeftBoldRight: "┽",
|
|
273921
|
+
lineUpDownLeftRightBold: "┾",
|
|
273922
|
+
lineUpBoldDownBoldLeftRight: "╂",
|
|
273923
|
+
lineUpDownLeftBoldRightBold: "┿",
|
|
273924
|
+
lineUpBoldDownLeftBoldRight: "╃",
|
|
273925
|
+
lineUpBoldDownLeftRightBold: "╄",
|
|
273926
|
+
lineUpDownBoldLeftBoldRight: "╅",
|
|
273927
|
+
lineUpDownBoldLeftRightBold: "╆",
|
|
273928
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
|
|
273929
|
+
lineUpDoubleDownDoubleLeftRight: "╫",
|
|
273930
|
+
lineUpDownLeftDoubleRightDouble: "╪",
|
|
273931
|
+
lineCross: "╳",
|
|
273932
|
+
lineBackslash: "╲",
|
|
273933
|
+
lineSlash: "╱"
|
|
273934
|
+
};
|
|
273935
|
+
var specialMainSymbols3 = {
|
|
273936
|
+
tick: "✔",
|
|
273937
|
+
info: "ℹ",
|
|
273938
|
+
warning: "⚠",
|
|
273939
|
+
cross: "✘",
|
|
273940
|
+
squareSmall: "◻",
|
|
273941
|
+
squareSmallFilled: "◼",
|
|
273942
|
+
circle: "◯",
|
|
273943
|
+
circleFilled: "◉",
|
|
273944
|
+
circleDotted: "◌",
|
|
273945
|
+
circleDouble: "◎",
|
|
273946
|
+
circleCircle: "ⓞ",
|
|
273947
|
+
circleCross: "ⓧ",
|
|
273948
|
+
circlePipe: "Ⓘ",
|
|
273949
|
+
radioOn: "◉",
|
|
273950
|
+
radioOff: "◯",
|
|
273951
|
+
checkboxOn: "☒",
|
|
273952
|
+
checkboxOff: "☐",
|
|
273953
|
+
checkboxCircleOn: "ⓧ",
|
|
273954
|
+
checkboxCircleOff: "Ⓘ",
|
|
273955
|
+
pointer: "❯",
|
|
273956
|
+
triangleUpOutline: "△",
|
|
273957
|
+
triangleLeft: "◀",
|
|
273958
|
+
triangleRight: "▶",
|
|
273959
|
+
lozenge: "◆",
|
|
273960
|
+
lozengeOutline: "◇",
|
|
273961
|
+
hamburger: "☰",
|
|
273962
|
+
smiley: "㋡",
|
|
273963
|
+
mustache: "෴",
|
|
273964
|
+
star: "★",
|
|
273965
|
+
play: "▶",
|
|
273966
|
+
nodejs: "⬢",
|
|
273967
|
+
oneSeventh: "⅐",
|
|
273968
|
+
oneNinth: "⅑",
|
|
273969
|
+
oneTenth: "⅒"
|
|
273970
|
+
};
|
|
273971
|
+
var specialFallbackSymbols3 = {
|
|
273972
|
+
tick: "√",
|
|
273973
|
+
info: "i",
|
|
273974
|
+
warning: "‼",
|
|
273975
|
+
cross: "×",
|
|
273976
|
+
squareSmall: "□",
|
|
273977
|
+
squareSmallFilled: "■",
|
|
273978
|
+
circle: "( )",
|
|
273979
|
+
circleFilled: "(*)",
|
|
273980
|
+
circleDotted: "( )",
|
|
273981
|
+
circleDouble: "( )",
|
|
273982
|
+
circleCircle: "(○)",
|
|
273983
|
+
circleCross: "(×)",
|
|
273984
|
+
circlePipe: "(│)",
|
|
273985
|
+
radioOn: "(*)",
|
|
273986
|
+
radioOff: "( )",
|
|
273987
|
+
checkboxOn: "[×]",
|
|
273988
|
+
checkboxOff: "[ ]",
|
|
273989
|
+
checkboxCircleOn: "(×)",
|
|
273990
|
+
checkboxCircleOff: "( )",
|
|
273991
|
+
pointer: ">",
|
|
273992
|
+
triangleUpOutline: "∆",
|
|
273993
|
+
triangleLeft: "◄",
|
|
273994
|
+
triangleRight: "►",
|
|
273995
|
+
lozenge: "♦",
|
|
273996
|
+
lozengeOutline: "◊",
|
|
273997
|
+
hamburger: "≡",
|
|
273998
|
+
smiley: "☺",
|
|
273999
|
+
mustache: "┌─┐",
|
|
274000
|
+
star: "✶",
|
|
274001
|
+
play: "►",
|
|
274002
|
+
nodejs: "♦",
|
|
274003
|
+
oneSeventh: "1/7",
|
|
274004
|
+
oneNinth: "1/9",
|
|
274005
|
+
oneTenth: "1/10"
|
|
274006
|
+
};
|
|
274007
|
+
var mainSymbols3 = { ...common3, ...specialMainSymbols3 };
|
|
274008
|
+
var fallbackSymbols3 = {
|
|
274009
|
+
...common3,
|
|
274010
|
+
...specialFallbackSymbols3
|
|
274011
|
+
};
|
|
274012
|
+
var shouldUseMain3 = isUnicodeSupported4();
|
|
274013
|
+
var figures3 = shouldUseMain3 ? mainSymbols3 : fallbackSymbols3;
|
|
274014
|
+
var esm_default6 = figures3;
|
|
274015
|
+
var replacements3 = Object.entries(specialMainSymbols3);
|
|
274016
|
+
|
|
274017
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
274018
|
+
var defaultTheme3 = {
|
|
274019
|
+
prefix: {
|
|
274020
|
+
idle: import_yoctocolors_cjs5.default.blue("?"),
|
|
274021
|
+
done: import_yoctocolors_cjs5.default.green(esm_default6.tick)
|
|
274022
|
+
},
|
|
274023
|
+
spinner: {
|
|
274024
|
+
interval: 80,
|
|
274025
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))
|
|
274026
|
+
},
|
|
274027
|
+
style: {
|
|
274028
|
+
answer: import_yoctocolors_cjs5.default.cyan,
|
|
274029
|
+
message: import_yoctocolors_cjs5.default.bold,
|
|
274030
|
+
error: (text2) => import_yoctocolors_cjs5.default.red(`> ${text2}`),
|
|
274031
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs5.default.dim(`(${text2})`),
|
|
274032
|
+
help: import_yoctocolors_cjs5.default.dim,
|
|
274033
|
+
highlight: import_yoctocolors_cjs5.default.cyan,
|
|
274034
|
+
key: (text2) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text2}>`))
|
|
274035
|
+
}
|
|
274036
|
+
};
|
|
274037
|
+
|
|
274038
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
274039
|
+
function isPlainObject4(value4) {
|
|
274040
|
+
if (typeof value4 !== "object" || value4 === null)
|
|
274041
|
+
return false;
|
|
274042
|
+
let proto = value4;
|
|
274043
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
|
274044
|
+
proto = Object.getPrototypeOf(proto);
|
|
274045
|
+
}
|
|
274046
|
+
return Object.getPrototypeOf(value4) === proto;
|
|
274047
|
+
}
|
|
274048
|
+
function deepMerge4(...objects) {
|
|
274049
|
+
const output = {};
|
|
274050
|
+
for (const obj of objects) {
|
|
274051
|
+
for (const [key3, value4] of Object.entries(obj)) {
|
|
274052
|
+
const prevValue = output[key3];
|
|
274053
|
+
output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
|
|
274054
|
+
}
|
|
274055
|
+
}
|
|
274056
|
+
return output;
|
|
274057
|
+
}
|
|
274058
|
+
function makeTheme3(...themes) {
|
|
274059
|
+
const themesToMerge = [
|
|
274060
|
+
defaultTheme3,
|
|
274061
|
+
...themes.filter((theme) => theme != null)
|
|
274062
|
+
];
|
|
274063
|
+
return deepMerge4(...themesToMerge);
|
|
274064
|
+
}
|
|
274065
|
+
|
|
274066
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
274067
|
+
function usePrefix3({ status = "idle", theme }) {
|
|
274068
|
+
const [showLoader, setShowLoader] = useState3(false);
|
|
274069
|
+
const [tick, setTick] = useState3(0);
|
|
274070
|
+
const { prefix, spinner: spinner2 } = makeTheme3(theme);
|
|
274071
|
+
useEffect3(() => {
|
|
274072
|
+
if (status === "loading") {
|
|
274073
|
+
let tickInterval;
|
|
274074
|
+
let inc = -1;
|
|
274075
|
+
const delayTimeout = setTimeout(AsyncResource8.bind(() => {
|
|
274076
|
+
setShowLoader(true);
|
|
274077
|
+
tickInterval = setInterval(AsyncResource8.bind(() => {
|
|
274078
|
+
inc = inc + 1;
|
|
274079
|
+
setTick(inc % spinner2.frames.length);
|
|
274080
|
+
}), spinner2.interval);
|
|
274081
|
+
}), 300);
|
|
274082
|
+
return () => {
|
|
274083
|
+
clearTimeout(delayTimeout);
|
|
274084
|
+
clearInterval(tickInterval);
|
|
274085
|
+
};
|
|
274086
|
+
} else {
|
|
274087
|
+
setShowLoader(false);
|
|
274088
|
+
}
|
|
274089
|
+
}, [status]);
|
|
274090
|
+
if (showLoader) {
|
|
274091
|
+
return spinner2.frames[tick];
|
|
274092
|
+
}
|
|
274093
|
+
const iconName = status === "loading" ? "idle" : status;
|
|
274094
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
274095
|
+
}
|
|
274096
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
274097
|
+
function useRef3(val) {
|
|
274098
|
+
return useState3({ current: val })[0];
|
|
274099
|
+
}
|
|
274100
|
+
|
|
274101
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
274102
|
+
function useKeypress3(userHandler) {
|
|
274103
|
+
const signal = useRef3(userHandler);
|
|
274104
|
+
signal.current = userHandler;
|
|
274105
|
+
useEffect3((rl) => {
|
|
274106
|
+
let ignore = false;
|
|
274107
|
+
const handler = withUpdates3((_input, event) => {
|
|
274108
|
+
if (ignore)
|
|
274109
|
+
return;
|
|
274110
|
+
signal.current(event, rl);
|
|
274111
|
+
});
|
|
274112
|
+
rl.input.on("keypress", handler);
|
|
274113
|
+
return () => {
|
|
274114
|
+
ignore = true;
|
|
274115
|
+
rl.input.removeListener("keypress", handler);
|
|
274116
|
+
};
|
|
274117
|
+
}, []);
|
|
274118
|
+
}
|
|
274119
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
274120
|
+
var import_cli_width3 = __toESM(require_cli_width(), 1);
|
|
274121
|
+
var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
|
|
274122
|
+
function breakLines3(content, width) {
|
|
274123
|
+
return content.split(`
|
|
274124
|
+
`).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
|
|
274125
|
+
`).map((str) => str.trimEnd())).join(`
|
|
274126
|
+
`);
|
|
274127
|
+
}
|
|
274128
|
+
function readlineWidth3() {
|
|
274129
|
+
return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
|
|
274130
|
+
}
|
|
274131
|
+
|
|
274132
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
274133
|
+
var import_mute_stream3 = __toESM(require_lib12(), 1);
|
|
274134
|
+
import * as readline6 from "node:readline";
|
|
274135
|
+
import { AsyncResource as AsyncResource9 } from "node:async_hooks";
|
|
274136
|
+
|
|
274137
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
274138
|
+
var import_strip_ansi2 = __toESM(require_strip_ansi(), 1);
|
|
274139
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
274140
|
+
var height3 = (content) => content.split(`
|
|
274141
|
+
`).length;
|
|
274142
|
+
var lastLine3 = (content) => content.split(`
|
|
274143
|
+
`).pop() ?? "";
|
|
274144
|
+
function cursorDown3(n6) {
|
|
274145
|
+
return n6 > 0 ? import_ansi_escapes4.default.cursorDown(n6) : "";
|
|
274146
|
+
}
|
|
274147
|
+
|
|
274148
|
+
class ScreenManager3 {
|
|
274149
|
+
rl;
|
|
274150
|
+
height = 0;
|
|
274151
|
+
extraLinesUnderPrompt = 0;
|
|
274152
|
+
cursorPos;
|
|
274153
|
+
constructor(rl) {
|
|
274154
|
+
this.rl = rl;
|
|
274155
|
+
this.rl = rl;
|
|
274156
|
+
this.cursorPos = rl.getCursorPos();
|
|
274157
|
+
}
|
|
274158
|
+
write(content) {
|
|
274159
|
+
this.rl.output.unmute();
|
|
274160
|
+
this.rl.output.write(content);
|
|
274161
|
+
this.rl.output.mute();
|
|
274162
|
+
}
|
|
274163
|
+
render(content, bottomContent = "") {
|
|
274164
|
+
const promptLine = lastLine3(content);
|
|
274165
|
+
const rawPromptLine = import_strip_ansi2.default(promptLine);
|
|
274166
|
+
let prompt = rawPromptLine;
|
|
274167
|
+
if (this.rl.line.length > 0) {
|
|
274168
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
|
274169
|
+
}
|
|
274170
|
+
this.rl.setPrompt(prompt);
|
|
274171
|
+
this.cursorPos = this.rl.getCursorPos();
|
|
274172
|
+
const width = readlineWidth3();
|
|
274173
|
+
content = breakLines3(content, width);
|
|
274174
|
+
bottomContent = breakLines3(bottomContent, width);
|
|
274175
|
+
if (rawPromptLine.length % width === 0) {
|
|
274176
|
+
content += `
|
|
274177
|
+
`;
|
|
274178
|
+
}
|
|
274179
|
+
let output = content + (bottomContent ? `
|
|
274180
|
+
` + bottomContent : "");
|
|
274181
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
|
274182
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
|
|
274183
|
+
if (bottomContentHeight > 0)
|
|
274184
|
+
output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);
|
|
274185
|
+
output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);
|
|
274186
|
+
this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);
|
|
274187
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
|
274188
|
+
this.height = height3(output);
|
|
274189
|
+
}
|
|
274190
|
+
checkCursorPos() {
|
|
274191
|
+
const cursorPos = this.rl.getCursorPos();
|
|
274192
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
|
274193
|
+
this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));
|
|
274194
|
+
this.cursorPos = cursorPos;
|
|
274195
|
+
}
|
|
274196
|
+
}
|
|
274197
|
+
done({ clearContent }) {
|
|
274198
|
+
this.rl.setPrompt("");
|
|
274199
|
+
let output = cursorDown3(this.extraLinesUnderPrompt);
|
|
274200
|
+
output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `
|
|
274201
|
+
`;
|
|
274202
|
+
output += import_ansi_escapes4.default.cursorShow;
|
|
274203
|
+
this.write(output);
|
|
274204
|
+
this.rl.close();
|
|
274205
|
+
}
|
|
274206
|
+
}
|
|
274207
|
+
|
|
274208
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
274209
|
+
class PromisePolyfill3 extends Promise {
|
|
274210
|
+
static withResolver() {
|
|
274211
|
+
let resolve6;
|
|
274212
|
+
let reject;
|
|
274213
|
+
const promise = new Promise((res, rej) => {
|
|
274214
|
+
resolve6 = res;
|
|
274215
|
+
reject = rej;
|
|
274216
|
+
});
|
|
274217
|
+
return { promise, resolve: resolve6, reject };
|
|
274218
|
+
}
|
|
274219
|
+
}
|
|
274220
|
+
|
|
274221
|
+
// ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
274222
|
+
function getCallSites3() {
|
|
274223
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
|
274224
|
+
try {
|
|
274225
|
+
let result = [];
|
|
274226
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
|
274227
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
|
274228
|
+
result = callSitesWithoutCurrent;
|
|
274229
|
+
return callSitesWithoutCurrent;
|
|
274230
|
+
};
|
|
274231
|
+
new Error().stack;
|
|
274232
|
+
return result;
|
|
274233
|
+
} finally {
|
|
274234
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
|
274235
|
+
}
|
|
274236
|
+
}
|
|
274237
|
+
function createPrompt3(view) {
|
|
274238
|
+
const callSites = getCallSites3();
|
|
274239
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
|
274240
|
+
const prompt = (config3, context = {}) => {
|
|
274241
|
+
const { input = process.stdin, signal } = context;
|
|
274242
|
+
const cleanups = new Set;
|
|
274243
|
+
const output = new import_mute_stream3.default;
|
|
274244
|
+
output.pipe(context.output ?? process.stdout);
|
|
274245
|
+
const rl = readline6.createInterface({
|
|
274246
|
+
terminal: true,
|
|
274247
|
+
input,
|
|
274248
|
+
output
|
|
274249
|
+
});
|
|
274250
|
+
const screen = new ScreenManager3(rl);
|
|
274251
|
+
const { promise, resolve: resolve6, reject } = PromisePolyfill3.withResolver();
|
|
274252
|
+
const cancel3 = () => reject(new CancelPromptError3);
|
|
274253
|
+
if (signal) {
|
|
274254
|
+
const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
|
|
274255
|
+
if (signal.aborted) {
|
|
274256
|
+
abort();
|
|
274257
|
+
return Object.assign(promise, { cancel: cancel3 });
|
|
274258
|
+
}
|
|
274259
|
+
signal.addEventListener("abort", abort);
|
|
274260
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
|
274261
|
+
}
|
|
274262
|
+
cleanups.add(onExit((code2, signal2) => {
|
|
274263
|
+
reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
|
|
274264
|
+
}));
|
|
274265
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
|
274266
|
+
rl.input.on("keypress", checkCursorPos);
|
|
274267
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
274268
|
+
return withHooks3(rl, (cycle) => {
|
|
274269
|
+
const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
|
|
274270
|
+
rl.on("close", hooksCleanup);
|
|
274271
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
274272
|
+
cycle(() => {
|
|
274273
|
+
try {
|
|
274274
|
+
const nextView = view(config3, (value4) => {
|
|
274275
|
+
setImmediate(() => resolve6(value4));
|
|
274276
|
+
});
|
|
274277
|
+
if (nextView === undefined) {
|
|
274278
|
+
throw new Error(`Prompt functions must return a string.
|
|
274279
|
+
at ${callerFilename}`);
|
|
274280
|
+
}
|
|
274281
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
274282
|
+
screen.render(content, bottomContent);
|
|
274283
|
+
effectScheduler3.run();
|
|
274284
|
+
} catch (error5) {
|
|
274285
|
+
reject(error5);
|
|
274286
|
+
}
|
|
274287
|
+
});
|
|
274288
|
+
return Object.assign(promise.then((answer) => {
|
|
274289
|
+
effectScheduler3.clearAll();
|
|
274290
|
+
return answer;
|
|
274291
|
+
}, (error5) => {
|
|
274292
|
+
effectScheduler3.clearAll();
|
|
274293
|
+
throw error5;
|
|
274294
|
+
}).finally(() => {
|
|
274295
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
274296
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
|
274297
|
+
output.end();
|
|
274298
|
+
}).then(() => promise), { cancel: cancel3 });
|
|
274299
|
+
});
|
|
274300
|
+
};
|
|
274301
|
+
return prompt;
|
|
274302
|
+
}
|
|
274303
|
+
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
|
274304
|
+
var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
|
|
274305
|
+
var esm_default7 = createPrompt3((config3, done) => {
|
|
274306
|
+
const { validate: validate3 = () => true } = config3;
|
|
274307
|
+
const theme = makeTheme3(config3.theme);
|
|
274308
|
+
const [status, setStatus] = useState3("idle");
|
|
274309
|
+
const [errorMsg, setError] = useState3();
|
|
274310
|
+
const [value4, setValue] = useState3("");
|
|
274311
|
+
const prefix = usePrefix3({ status, theme });
|
|
274312
|
+
useKeypress3(async (key4, rl) => {
|
|
274313
|
+
if (status !== "idle") {
|
|
274314
|
+
return;
|
|
274315
|
+
}
|
|
274316
|
+
if (isEnterKey3(key4)) {
|
|
273574
274317
|
const answer = value4;
|
|
273575
274318
|
setStatus("loading");
|
|
273576
274319
|
const isValid2 = await validate3(answer);
|
|
@@ -273595,7 +274338,7 @@ var esm_default6 = createPrompt2((config3, done) => {
|
|
|
273595
274338
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
|
273596
274339
|
formattedValue = maskChar.repeat(value4.length);
|
|
273597
274340
|
} else if (status !== "done") {
|
|
273598
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
|
274341
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes5.default.cursorHide}`;
|
|
273599
274342
|
}
|
|
273600
274343
|
if (status === "done") {
|
|
273601
274344
|
formattedValue = theme.style.answer(formattedValue);
|
|
@@ -273630,7 +274373,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273630
274373
|
default: false
|
|
273631
274374
|
});
|
|
273632
274375
|
if (create2) {
|
|
273633
|
-
const name2 = await
|
|
274376
|
+
const name2 = await esm_default5({
|
|
273634
274377
|
message: "How would you like to name this application access token?",
|
|
273635
274378
|
default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
|
|
273636
274379
|
required: true,
|
|
@@ -273694,7 +274437,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
|
|
|
273694
274437
|
} catch (error5) {
|
|
273695
274438
|
}
|
|
273696
274439
|
}
|
|
273697
|
-
return
|
|
274440
|
+
return esm_default7({
|
|
273698
274441
|
message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
|
|
273699
274442
|
validate(value4) {
|
|
273700
274443
|
try {
|
|
@@ -274030,7 +274773,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
|
|
|
274030
274773
|
return sanitizeInstanceUrl(defaultPromptInstance);
|
|
274031
274774
|
}
|
|
274032
274775
|
if (freeTextInput) {
|
|
274033
|
-
const instance = await
|
|
274776
|
+
const instance = await esm_default5({
|
|
274034
274777
|
message: "What is the URL of your SettleMint instance?",
|
|
274035
274778
|
default: defaultPromptInstance,
|
|
274036
274779
|
required: true,
|
|
@@ -274441,7 +275184,7 @@ async function projectNamePrompt(env2, argument) {
|
|
|
274441
275184
|
if (defaultInstance) {
|
|
274442
275185
|
return defaultInstance;
|
|
274443
275186
|
}
|
|
274444
|
-
return
|
|
275187
|
+
return esm_default5({
|
|
274445
275188
|
message: "What is the name of your new SettleMint project?",
|
|
274446
275189
|
default: defaultInstance,
|
|
274447
275190
|
required: true,
|
|
@@ -274667,7 +275410,7 @@ var basename2 = function(p6, extension) {
|
|
|
274667
275410
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
274668
275411
|
};
|
|
274669
275412
|
// ../../node_modules/defu/dist/defu.mjs
|
|
274670
|
-
function
|
|
275413
|
+
function isPlainObject5(value4) {
|
|
274671
275414
|
if (value4 === null || typeof value4 !== "object") {
|
|
274672
275415
|
return false;
|
|
274673
275416
|
}
|
|
@@ -274684,27 +275427,27 @@ function isPlainObject4(value4) {
|
|
|
274684
275427
|
return true;
|
|
274685
275428
|
}
|
|
274686
275429
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
|
274687
|
-
if (!
|
|
275430
|
+
if (!isPlainObject5(defaults2)) {
|
|
274688
275431
|
return _defu(baseObject, {}, namespace, merger);
|
|
274689
275432
|
}
|
|
274690
275433
|
const object = Object.assign({}, defaults2);
|
|
274691
|
-
for (const
|
|
274692
|
-
if (
|
|
275434
|
+
for (const key4 in baseObject) {
|
|
275435
|
+
if (key4 === "__proto__" || key4 === "constructor") {
|
|
274693
275436
|
continue;
|
|
274694
275437
|
}
|
|
274695
|
-
const value4 = baseObject[
|
|
275438
|
+
const value4 = baseObject[key4];
|
|
274696
275439
|
if (value4 === null || value4 === undefined) {
|
|
274697
275440
|
continue;
|
|
274698
275441
|
}
|
|
274699
|
-
if (merger && merger(object,
|
|
275442
|
+
if (merger && merger(object, key4, value4, namespace)) {
|
|
274700
275443
|
continue;
|
|
274701
275444
|
}
|
|
274702
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
|
274703
|
-
object[
|
|
274704
|
-
} else if (
|
|
274705
|
-
object[
|
|
275445
|
+
if (Array.isArray(value4) && Array.isArray(object[key4])) {
|
|
275446
|
+
object[key4] = [...value4, ...object[key4]];
|
|
275447
|
+
} else if (isPlainObject5(value4) && isPlainObject5(object[key4])) {
|
|
275448
|
+
object[key4] = _defu(value4, object[key4], (namespace ? `${namespace}.` : "") + key4.toString(), merger);
|
|
274706
275449
|
} else {
|
|
274707
|
-
object[
|
|
275450
|
+
object[key4] = value4;
|
|
274708
275451
|
}
|
|
274709
275452
|
}
|
|
274710
275453
|
return object;
|
|
@@ -274713,15 +275456,15 @@ function createDefu(merger) {
|
|
|
274713
275456
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
|
274714
275457
|
}
|
|
274715
275458
|
var defu = createDefu();
|
|
274716
|
-
var defuFn = createDefu((object,
|
|
274717
|
-
if (object[
|
|
274718
|
-
object[
|
|
275459
|
+
var defuFn = createDefu((object, key4, currentValue) => {
|
|
275460
|
+
if (object[key4] !== undefined && typeof currentValue === "function") {
|
|
275461
|
+
object[key4] = currentValue(object[key4]);
|
|
274719
275462
|
return true;
|
|
274720
275463
|
}
|
|
274721
275464
|
});
|
|
274722
|
-
var defuArrayFn = createDefu((object,
|
|
274723
|
-
if (Array.isArray(object[
|
|
274724
|
-
object[
|
|
275465
|
+
var defuArrayFn = createDefu((object, key4, currentValue) => {
|
|
275466
|
+
if (Array.isArray(object[key4]) && typeof currentValue === "function") {
|
|
275467
|
+
object[key4] = currentValue(object[key4]);
|
|
274725
275468
|
return true;
|
|
274726
275469
|
}
|
|
274727
275470
|
});
|
|
@@ -274983,11 +275726,11 @@ function cacheDirectory() {
|
|
|
274983
275726
|
}
|
|
274984
275727
|
function normalizeHeaders(headers = {}) {
|
|
274985
275728
|
const normalized = {};
|
|
274986
|
-
for (const [
|
|
275729
|
+
for (const [key4, value4] of Object.entries(headers)) {
|
|
274987
275730
|
if (!value4) {
|
|
274988
275731
|
continue;
|
|
274989
275732
|
}
|
|
274990
|
-
normalized[
|
|
275733
|
+
normalized[key4.toLowerCase()] = value4;
|
|
274991
275734
|
}
|
|
274992
275735
|
return normalized;
|
|
274993
275736
|
}
|
|
@@ -275301,7 +276044,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
|
|
|
275301
276044
|
return defaultPersonalAccessToken;
|
|
275302
276045
|
}
|
|
275303
276046
|
}
|
|
275304
|
-
return
|
|
276047
|
+
return esm_default7({
|
|
275305
276048
|
message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
|
|
275306
276049
|
validate(value4) {
|
|
275307
276050
|
try {
|
|
@@ -276812,7 +277555,7 @@ function createCommand3() {
|
|
|
276812
277555
|
|
|
276813
277556
|
// src/prompts/delete-confirmation.prompt.ts
|
|
276814
277557
|
async function deleteConfirmationPrompt(itemDescription) {
|
|
276815
|
-
const confirmation = await
|
|
277558
|
+
const confirmation = await esm_default5({
|
|
276816
277559
|
message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
|
|
276817
277560
|
required: true,
|
|
276818
277561
|
validate(value4) {
|
|
@@ -277169,7 +277912,7 @@ function jsonOutput(data) {
|
|
|
277169
277912
|
var composer = require_composer();
|
|
277170
277913
|
var Document = require_Document();
|
|
277171
277914
|
var Schema = require_Schema();
|
|
277172
|
-
var
|
|
277915
|
+
var errors4 = require_errors3();
|
|
277173
277916
|
var Alias = require_Alias();
|
|
277174
277917
|
var identity2 = require_identity();
|
|
277175
277918
|
var Pair = require_Pair();
|
|
@@ -277185,9 +277928,9 @@ var visit2 = require_visit();
|
|
|
277185
277928
|
var $Composer = composer.Composer;
|
|
277186
277929
|
var $Document = Document.Document;
|
|
277187
277930
|
var $Schema = Schema.Schema;
|
|
277188
|
-
var $YAMLError =
|
|
277189
|
-
var $YAMLParseError =
|
|
277190
|
-
var $YAMLWarning =
|
|
277931
|
+
var $YAMLError = errors4.YAMLError;
|
|
277932
|
+
var $YAMLParseError = errors4.YAMLParseError;
|
|
277933
|
+
var $YAMLWarning = errors4.YAMLWarning;
|
|
277191
277934
|
var $Alias = Alias.Alias;
|
|
277192
277935
|
var $isAlias = identity2.isAlias;
|
|
277193
277936
|
var $isCollection = identity2.isCollection;
|
|
@@ -277533,7 +278276,7 @@ async function getServicesAndMapResults({
|
|
|
277533
278276
|
const application = await settlemint.application.read(applicationUniqueName);
|
|
277534
278277
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
|
277535
278278
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
|
277536
|
-
const [_5, labels] = Object.entries(LABELS_MAP).find(([
|
|
278279
|
+
const [_5, labels] = Object.entries(LABELS_MAP).find(([key4, value4]) => value4.command === serviceType) ?? [
|
|
277537
278280
|
null,
|
|
277538
278281
|
{ plural: serviceType }
|
|
277539
278282
|
];
|
|
@@ -277761,11 +278504,11 @@ function createCommand4() {
|
|
|
277761
278504
|
|
|
277762
278505
|
// src/utils/commands/passthrough-options.ts
|
|
277763
278506
|
function mapPassthroughOptions(options, command) {
|
|
277764
|
-
const optionArgs = Object.entries(options).map(([
|
|
278507
|
+
const optionArgs = Object.entries(options).map(([key4, value4]) => {
|
|
277765
278508
|
if (value4 === true) {
|
|
277766
|
-
return `--${
|
|
278509
|
+
return `--${key4}`;
|
|
277767
278510
|
}
|
|
277768
|
-
return `--${
|
|
278511
|
+
return `--${key4}=${value4}`;
|
|
277769
278512
|
});
|
|
277770
278513
|
return [...optionArgs, ...command.args];
|
|
277771
278514
|
}
|
|
@@ -278456,7 +279199,7 @@ async function subgraphNamePrompt({
|
|
|
278456
279199
|
}
|
|
278457
279200
|
return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_SUBGRAPH_NAME;
|
|
278458
279201
|
}
|
|
278459
|
-
const subgraphName = await
|
|
279202
|
+
const subgraphName = await esm_default5({
|
|
278460
279203
|
message: "What is the name of your subgraph?",
|
|
278461
279204
|
default: defaultSubgraphName,
|
|
278462
279205
|
required: true
|
|
@@ -278682,4 +279425,4 @@ ${error5.stack}`));
|
|
|
278682
279425
|
// src/cli.ts
|
|
278683
279426
|
sdkCliCommand();
|
|
278684
279427
|
|
|
278685
|
-
//# debugId=
|
|
279428
|
+
//# debugId=D390D340413BFCFB64756E2164756E21
|