@settlemint/sdk-cli 1.1.1-main7c5a65fb → 1.1.1-maind4f60edd

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.
Files changed (3) hide show
  1. package/dist/cli.js +308 -1793
  2. package/dist/cli.js.map +3 -33
  3. package/package.json +5 -5
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, key4) => cache.get(normPath(key4));
233732
- var cSet = (cache, key4, val) => cache.set(normPath(key4), val);
233731
+ var cGet = (cache, key2) => cache.get(normPath(key2));
233732
+ var cSet = (cache, key2, val) => cache.set(normPath(key2), 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 key4 of cache.keys()) {
234104
- cache.delete(key4);
234103
+ for (const key2 of cache.keys()) {
234104
+ cache.delete(key2);
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 key4 in nodeFetch) {
238902
- fetch2[key4] = nodeFetch[key4];
238901
+ for (const key2 in nodeFetch) {
238902
+ fetch2[key2] = nodeFetch[key2];
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 errors4;
238995
+ var errors2;
238996
238996
  var hasRequiredErrors;
238997
238997
  function requireErrors() {
238998
238998
  if (hasRequiredErrors)
238999
- return errors4;
238999
+ return errors2;
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 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;
239208
+ return errors2 = { 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 }, errors2;
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 common4;
248497
+ var common2;
248498
248498
  var hasRequiredCommon;
248499
248499
  function requireCommon() {
248500
248500
  if (hasRequiredCommon)
248501
- return common4;
248501
+ return common2;
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"), common4 = A5, common4;
248589
+ return e10(A5, "setup"), common2 = A5, common2;
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_(key4, node, visitor, path5) {
249182
- const ctrl = callVisitor(key4, node, visitor, path5);
249181
+ function visit_(key2, node, visitor, path5) {
249182
+ const ctrl = callVisitor(key2, node, visitor, path5);
249183
249183
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
249184
- replaceNode(key4, path5, ctrl);
249185
- return visit_(key4, ctrl, visitor, path5);
249184
+ replaceNode(key2, path5, ctrl);
249185
+ return visit_(key2, 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_(key4, node, visitor, path5) {
249230
- const ctrl = await callVisitor(key4, node, visitor, path5);
249229
+ async function visitAsync_(key2, node, visitor, path5) {
249230
+ const ctrl = await callVisitor(key2, node, visitor, path5);
249231
249231
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
249232
- replaceNode(key4, path5, ctrl);
249233
- return visitAsync_(key4, ctrl, visitor, path5);
249232
+ replaceNode(key2, path5, ctrl);
249233
+ return visitAsync_(key2, 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(key4, node, visitor, path5) {
249283
+ function callVisitor(key2, node, visitor, path5) {
249284
249284
  if (typeof visitor === "function")
249285
- return visitor(key4, node, path5);
249285
+ return visitor(key2, node, path5);
249286
249286
  if (identity2.isMap(node))
249287
- return visitor.Map?.(key4, node, path5);
249287
+ return visitor.Map?.(key2, node, path5);
249288
249288
  if (identity2.isSeq(node))
249289
- return visitor.Seq?.(key4, node, path5);
249289
+ return visitor.Seq?.(key2, node, path5);
249290
249290
  if (identity2.isPair(node))
249291
- return visitor.Pair?.(key4, node, path5);
249291
+ return visitor.Pair?.(key2, node, path5);
249292
249292
  if (identity2.isScalar(node))
249293
- return visitor.Scalar?.(key4, node, path5);
249293
+ return visitor.Scalar?.(key2, node, path5);
249294
249294
  if (identity2.isAlias(node))
249295
- return visitor.Alias?.(key4, node, path5);
249295
+ return visitor.Alias?.(key2, node, path5);
249296
249296
  return;
249297
249297
  }
249298
- function replaceNode(key4, path5, node) {
249298
+ function replaceNode(key2, path5, node) {
249299
249299
  const parent = path5[path5.length - 1];
249300
249300
  if (identity2.isCollection(parent)) {
249301
- parent.items[key4] = node;
249301
+ parent.items[key2] = node;
249302
249302
  } else if (identity2.isPair(parent)) {
249303
- if (key4 === "key")
249303
+ if (key2 === "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, key4, val) {
249535
+ function applyReviver(reviver, obj, key2, 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, key4, val);
249575
+ return reviver.call(obj, key2, 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 [key4, ...rest] = path5;
249894
- const node = this.get(key4, true);
249893
+ const [key2, ...rest] = path5;
249894
+ const node = this.get(key2, true);
249895
249895
  if (identity2.isCollection(node))
249896
249896
  node.addIn(rest, value4);
249897
249897
  else if (node === undefined && this.schema)
249898
- this.set(key4, collectionFromPath(this.schema, rest, value4));
249898
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
249899
249899
  else
249900
- throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
249900
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
249901
249901
  }
249902
249902
  }
249903
249903
  deleteIn(path5) {
249904
- const [key4, ...rest] = path5;
249904
+ const [key2, ...rest] = path5;
249905
249905
  if (rest.length === 0)
249906
- return this.delete(key4);
249907
- const node = this.get(key4, true);
249906
+ return this.delete(key2);
249907
+ const node = this.get(key2, true);
249908
249908
  if (identity2.isCollection(node))
249909
249909
  return node.deleteIn(rest);
249910
249910
  else
249911
- throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
249911
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
249912
249912
  }
249913
249913
  getIn(path5, keepScalar) {
249914
- const [key4, ...rest] = path5;
249915
- const node = this.get(key4, true);
249914
+ const [key2, ...rest] = path5;
249915
+ const node = this.get(key2, 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 [key4, ...rest] = path5;
249930
+ const [key2, ...rest] = path5;
249931
249931
  if (rest.length === 0)
249932
- return this.has(key4);
249933
- const node = this.get(key4, true);
249932
+ return this.has(key2);
249933
+ const node = this.get(key2, true);
249934
249934
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
249935
249935
  }
249936
249936
  setIn(path5, value4) {
249937
- const [key4, ...rest] = path5;
249937
+ const [key2, ...rest] = path5;
249938
249938
  if (rest.length === 0) {
249939
- this.set(key4, value4);
249939
+ this.set(key2, value4);
249940
249940
  } else {
249941
- const node = this.get(key4, true);
249941
+ const node = this.get(key2, true);
249942
249942
  if (identity2.isCollection(node))
249943
249943
  node.setIn(rest, value4);
249944
249944
  else if (node === undefined && this.schema)
249945
- this.set(key4, collectionFromPath(this.schema, rest, value4));
249945
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
249946
249946
  else
249947
- throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
249947
+ throw new Error(`Expected YAML collection at ${key2}. 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: key4, value: value4 }, ctx, onComment, onChompKeep) {
250535
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
250536
250536
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
250537
- let keyComment = identity2.isNode(key4) && key4.comment || null;
250537
+ let keyComment = identity2.isNode(key2) && key2.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(key4) || !identity2.isNode(key4) && typeof key4 === "object") {
250542
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "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 && (!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"));
250547
+ let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "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(key4, ctx, () => keyCommentDone = true, () => chompKeep = true);
250555
+ let str = stringify3.stringify(key2, 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, 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);
250699
+ var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.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 [key4, value5] of srcMap) {
250716
+ for (const [key2, value5] of srcMap) {
250717
250717
  if (map3 instanceof Map) {
250718
- if (!map3.has(key4))
250719
- map3.set(key4, value5);
250718
+ if (!map3.has(key2))
250719
+ map3.set(key2, value5);
250720
250720
  } else if (map3 instanceof Set) {
250721
- map3.add(key4);
250722
- } else if (!Object.prototype.hasOwnProperty.call(map3, key4)) {
250723
- Object.defineProperty(map3, key4, {
250721
+ map3.add(key2);
250722
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
250723
+ Object.defineProperty(map3, key2, {
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: key4, value: value4 }) {
250746
- if (identity2.isNode(key4) && key4.addToJSMap)
250747
- key4.addToJSMap(ctx, map3, value4);
250748
- else if (merge3.isMergeKey(ctx, key4))
250745
+ function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
250746
+ if (identity2.isNode(key2) && key2.addToJSMap)
250747
+ key2.addToJSMap(ctx, map3, value4);
250748
+ else if (merge3.isMergeKey(ctx, key2))
250749
250749
  merge3.addMergeToJSMap(ctx, map3, value4);
250750
250750
  else {
250751
- const jsKey = toJS.toJS(key4, "", ctx);
250751
+ const jsKey = toJS.toJS(key2, "", 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(key4, jsKey, ctx);
250757
+ const stringKey = stringifyKey(key2, 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(key4, jsKey, ctx) {
250772
+ function stringifyKey(key2, 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(key4) && ctx?.doc) {
250777
+ if (identity2.isNode(key2) && 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 = key4.toString(strCtx);
250784
+ const strKey = key2.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(key4, value4, ctx) {
250806
- const k5 = createNode.createNode(key4, undefined, ctx);
250805
+ function createPair(key2, value4, ctx) {
250806
+ const k5 = createNode.createNode(key2, 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(key4, value4 = null) {
250812
+ constructor(key2, value4 = null) {
250813
250813
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
250814
- this.key = key4;
250814
+ this.key = key2;
250815
250815
  this.value = value4;
250816
250816
  }
250817
250817
  clone(schema) {
250818
- let { key: key4, value: value4 } = this;
250819
- if (identity2.isNode(key4))
250820
- key4 = key4.clone(schema);
250818
+ let { key: key2, value: value4 } = this;
250819
+ if (identity2.isNode(key2))
250820
+ key2 = key2.clone(schema);
250821
250821
  if (identity2.isNode(value4))
250822
250822
  value4 = value4.clone(schema);
250823
- return new Pair(key4, value4);
250823
+ return new Pair(key2, 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, key4) {
250991
- const k5 = identity2.isScalar(key4) ? key4.value : key4;
250990
+ function findPair(items, key2) {
250991
+ const k5 = identity2.isScalar(key2) ? key2.value : key2;
250992
250992
  for (const it2 of items) {
250993
250993
  if (identity2.isPair(it2)) {
250994
- if (it2.key === key4 || it2.key === k5)
250994
+ if (it2.key === key2 || 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 = (key4, value4) => {
251014
+ const add = (key2, value4) => {
251015
251015
  if (typeof replacer === "function")
251016
- value4 = replacer.call(obj, key4, value4);
251017
- else if (Array.isArray(replacer) && !replacer.includes(key4))
251016
+ value4 = replacer.call(obj, key2, value4);
251017
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
251018
251018
  return;
251019
251019
  if (value4 !== undefined || keepUndefined)
251020
- map3.items.push(Pair.createPair(key4, value4, ctx));
251020
+ map3.items.push(Pair.createPair(key2, value4, ctx));
251021
251021
  };
251022
251022
  if (obj instanceof Map) {
251023
- for (const [key4, value4] of obj)
251024
- add(key4, value4);
251023
+ for (const [key2, value4] of obj)
251024
+ add(key2, value4);
251025
251025
  } else if (obj && typeof obj === "object") {
251026
- for (const key4 of Object.keys(obj))
251027
- add(key4, obj[key4]);
251026
+ for (const key2 of Object.keys(obj))
251027
+ add(key2, obj[key2]);
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(key4) {
251062
- const it2 = findPair(this.items, key4);
251061
+ delete(key2) {
251062
+ const it2 = findPair(this.items, key2);
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(key4, keepScalar) {
251069
- const it2 = findPair(this.items, key4);
251068
+ get(key2, keepScalar) {
251069
+ const it2 = findPair(this.items, key2);
251070
251070
  const node = it2?.value;
251071
251071
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
251072
251072
  }
251073
- has(key4) {
251074
- return !!findPair(this.items, key4);
251073
+ has(key2) {
251074
+ return !!findPair(this.items, key2);
251075
251075
  }
251076
- set(key4, value4) {
251077
- this.add(new Pair.Pair(key4, value4), true);
251076
+ set(key2, value4) {
251077
+ this.add(new Pair.Pair(key2, 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(key4) {
251149
- const idx = asItemIndex(key4);
251148
+ delete(key2) {
251149
+ const idx = asItemIndex(key2);
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(key4, keepScalar) {
251156
- const idx = asItemIndex(key4);
251155
+ get(key2, keepScalar) {
251156
+ const idx = asItemIndex(key2);
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(key4) {
251163
- const idx = asItemIndex(key4);
251162
+ has(key2) {
251163
+ const idx = asItemIndex(key2);
251164
251164
  return typeof idx === "number" && idx < this.items.length;
251165
251165
  }
251166
- set(key4, value4) {
251167
- const idx = asItemIndex(key4);
251166
+ set(key2, value4) {
251167
+ const idx = asItemIndex(key2);
251168
251168
  if (typeof idx !== "number")
251169
- throw new Error(`Expected a valid index, not ${key4}.`);
251169
+ throw new Error(`Expected a valid index, not ${key2}.`);
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 key4 = obj instanceof Set ? it2 : String(i6++);
251204
- it2 = replacer.call(obj, key4, it2);
251203
+ const key2 = obj instanceof Set ? it2 : String(i6++);
251204
+ it2 = replacer.call(obj, key2, 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(key4) {
251213
- let idx = identity2.isScalar(key4) ? key4.value : key4;
251212
+ function asItemIndex(key2) {
251213
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
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 key4, value4;
251585
+ let key2, value4;
251586
251586
  if (Array.isArray(it2)) {
251587
251587
  if (it2.length === 2) {
251588
- key4 = it2[0];
251588
+ key2 = 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
- key4 = keys[0];
251596
- value4 = it2[key4];
251595
+ key2 = keys[0];
251596
+ value4 = it2[key2];
251597
251597
  } else {
251598
251598
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
251599
251599
  }
251600
251600
  } else {
251601
- key4 = it2;
251601
+ key2 = it2;
251602
251602
  }
251603
- pairs2.items.push(Pair.createPair(key4, value4, ctx));
251603
+ pairs2.items.push(Pair.createPair(key2, 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 key4, value4;
251644
+ let key2, value4;
251645
251645
  if (identity2.isPair(pair)) {
251646
- key4 = toJS.toJS(pair.key, "", ctx);
251647
- value4 = toJS.toJS(pair.value, key4, ctx);
251646
+ key2 = toJS.toJS(pair.key, "", ctx);
251647
+ value4 = toJS.toJS(pair.value, key2, ctx);
251648
251648
  } else {
251649
- key4 = toJS.toJS(pair, "", ctx);
251649
+ key2 = toJS.toJS(pair, "", ctx);
251650
251650
  }
251651
- if (map3.has(key4))
251651
+ if (map3.has(key2))
251652
251652
  throw new Error("Ordered maps must not include duplicate keys");
251653
- map3.set(key4, value4);
251653
+ map3.set(key2, 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: 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}`);
251674
+ for (const { key: key2 } of pairs$1.items) {
251675
+ if (identity2.isScalar(key2)) {
251676
+ if (seenKeys.includes(key2.value)) {
251677
+ onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
251678
251678
  } else {
251679
- seenKeys.push(key4.value);
251679
+ seenKeys.push(key2.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(key4) {
251853
+ add(key2) {
251854
251854
  let 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);
251855
+ if (identity2.isPair(key2))
251856
+ pair = key2;
251857
+ else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
251858
+ pair = new Pair.Pair(key2.key, null);
251859
251859
  else
251860
- pair = new Pair.Pair(key4, null);
251860
+ pair = new Pair.Pair(key2, 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(key4, keepPair) {
251866
- const pair = YAMLMap.findPair(this.items, key4);
251865
+ get(key2, keepPair) {
251866
+ const pair = YAMLMap.findPair(this.items, key2);
251867
251867
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
251868
251868
  }
251869
- set(key4, value4) {
251869
+ set(key2, 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, key4);
251872
+ const prev = YAMLMap.findPair(this.items, key2);
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(key4));
251876
+ this.items.push(new Pair.Pair(key2));
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((key4) => key4 !== "yaml11").map((key4) => JSON.stringify(key4)).join(", ");
252111
+ const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).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((key4) => JSON.stringify(key4)).join(", ");
252127
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).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(key4, value4, options = {}) {
252363
- const k5 = this.createNode(key4, null, options);
252362
+ createPair(key2, value4, options = {}) {
252363
+ const k5 = this.createNode(key2, null, options);
252364
252364
  const v7 = this.createNode(value4, null, options);
252365
252365
  return new Pair.Pair(k5, v7);
252366
252366
  }
252367
- delete(key4) {
252368
- return assertCollection(this.contents) ? this.contents.delete(key4) : false;
252367
+ delete(key2) {
252368
+ return assertCollection(this.contents) ? this.contents.delete(key2) : 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(key4, keepScalar) {
252380
- return identity2.isCollection(this.contents) ? this.contents.get(key4, keepScalar) : undefined;
252379
+ get(key2, keepScalar) {
252380
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, 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(key4) {
252388
- return identity2.isCollection(this.contents) ? this.contents.has(key4) : false;
252387
+ has(key2) {
252388
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : 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(key4, value4) {
252395
+ set(key2, value4) {
252396
252396
  if (this.contents == null) {
252397
- this.contents = Collection.collectionFromPath(this.schema, [key4], value4);
252397
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
252398
252398
  } else if (assertCollection(this.contents)) {
252399
- this.contents.set(key4, value4);
252399
+ this.contents.set(key2, 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(key4) {
252684
- if (!key4)
252683
+ function containsNewline(key2) {
252684
+ if (!key2)
252685
252685
  return null;
252686
- switch (key4.type) {
252686
+ switch (key2.type) {
252687
252687
  case "alias":
252688
252688
  case "scalar":
252689
252689
  case "double-quoted-scalar":
252690
252690
  case "single-quoted-scalar":
252691
- if (key4.source.includes(`
252691
+ if (key2.source.includes(`
252692
252692
  `))
252693
252693
  return true;
252694
- if (key4.end) {
252695
- for (const st2 of key4.end)
252694
+ if (key2.end) {
252695
+ for (const st2 of key2.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 key4.items) {
252701
+ for (const it2 of key2.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: key4, sep: sep3, value: value4 } = collItem;
252766
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
252767
252767
  const keyProps = resolveProps.resolveProps(start3, {
252768
252768
  indicator: "explicit-key-ind",
252769
- next: key4 ?? sep3?.[0],
252769
+ next: key2 ?? 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 (key4) {
252778
- if (key4.type === "block-seq")
252777
+ if (key2) {
252778
+ if (key2.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 key4 && key4.indent !== bm.indent)
252780
+ else if ("indent" in key2 && key2.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(key4)) {
252795
- onError(key4 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
252794
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
252795
+ onError(key2 ?? 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 = key4 ? composeNode(ctx, key4, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
252802
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
252803
252803
  if (ctx.schema.compat)
252804
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key4, onError);
252804
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, 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: !key4 || key4.type === "block-scalar"
252814
+ startOnNewline: !key2 || key2.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: key4, sep: sep3, value: value4 } = collItem;
252970
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
252971
252971
  const props = resolveProps.resolveProps(start3, {
252972
252972
  flow: fcName,
252973
252973
  indicator: "explicit-key-ind",
252974
- next: key4 ?? sep3?.[0],
252974
+ next: key2 ?? 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(key4))
252997
- onError(key4, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
252996
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
252997
+ onError(key2, "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 = key4 ? composeNode(ctx, key4, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
253043
- if (isBlock(key4))
253042
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
253043
+ if (isBlock(key2))
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 errors4 = require_errors3();
253855
+ var errors2 = 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 errors4.YAMLWarning(pos, code2, message));
253906
+ this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
253907
253907
  else
253908
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
253908
+ this.errors.push(new errors2.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
253992
+ const error5 = new errors2.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
254002
+ this.errors.push(new errors2.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 errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
254017
+ this.errors.push(new errors2.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 errors4 = require_errors3();
254043
+ var errors2 = 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 errors4.YAMLParseError([offset, offset + 1], code2, message);
254052
+ throw new errors2.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 key4 of Object.keys(token))
254167
- if (key4 !== "type" && key4 !== "offset")
254168
- delete token[key4];
254166
+ for (const key2 of Object.keys(token))
254167
+ if (key2 !== "type" && key2 !== "offset")
254168
+ delete token[key2];
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 key4 of Object.keys(token))
254218
- if (key4 !== "type" && key4 !== "offset")
254219
- delete token[key4];
254217
+ for (const key2 of Object.keys(token))
254218
+ if (key2 !== "type" && key2 !== "offset")
254219
+ delete token[key2];
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: key4, sep: sep3, value: value4 }) {
254271
+ function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
254272
254272
  let res = "";
254273
254273
  for (const st2 of start3)
254274
254274
  res += st2.source;
254275
- if (key4)
254276
- res += stringifyToken(key4);
254275
+ if (key2)
254276
+ res += stringifyToken(key2);
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 key4 = it2.key;
255573
+ const key2 = 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: key4, sep: sep3 }]
255582
+ items: [{ start: start4, key: key2, 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 errors4 = require_errors3();
255905
+ var errors2 = 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(errors4.prettifyError(source, lineCounter2));
255923
- doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
255922
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
255923
+ doc.warnings.forEach(errors2.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 errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
255938
+ doc.errors.push(new errors2.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(errors4.prettifyError(source, lineCounter2));
255944
- doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
255943
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
255944
+ doc.warnings.forEach(errors2.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-main7c5a65fb",
267032
+ version: "1.1.1-maind4f60edd",
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.3",
267078
- "@inquirer/password": "4.0.6",
267077
+ "@inquirer/input": "4.1.4",
267078
+ "@inquirer/password": "4.0.7",
267079
267079
  "@inquirer/select": "4.0.7",
267080
- "@settlemint/sdk-js": "1.1.1-main7c5a65fb",
267081
- "@settlemint/sdk-utils": "1.1.1-main7c5a65fb",
267080
+ "@settlemint/sdk-js": "1.1.1-maind4f60edd",
267081
+ "@settlemint/sdk-utils": "1.1.1-maind4f60edd",
267082
267082
  "@types/node": "22.12.0",
267083
267083
  "@types/semver": "7.5.8",
267084
267084
  "@types/which": "3.0.4",
@@ -272749,1571 +272749,86 @@ var esm_default3 = createPrompt((config3, done) => {
272749
272749
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
272750
272750
  });
272751
272751
 
272752
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
272753
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
272754
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
272755
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
272756
- class AbortPromptError2 extends Error {
272757
- name = "AbortPromptError";
272758
- message = "Prompt was aborted";
272759
- constructor(options) {
272760
- super();
272761
- this.cause = options?.cause;
272762
- }
272763
- }
272764
-
272765
- class CancelPromptError2 extends Error {
272766
- name = "CancelPromptError";
272767
- message = "Prompt was canceled";
272768
- }
272769
-
272770
- class ExitPromptError2 extends Error {
272771
- name = "ExitPromptError";
272772
- }
272773
-
272774
- class HookError2 extends Error {
272775
- name = "HookError";
272776
- }
272777
-
272778
- class ValidationError2 extends Error {
272779
- name = "ValidationError";
272780
- }
272781
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
272782
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
272783
-
272784
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
272785
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
272786
- var hookStorage2 = new AsyncLocalStorage2;
272787
- function createStore2(rl) {
272788
- const store = {
272789
- rl,
272790
- hooks: [],
272791
- hooksCleanup: [],
272792
- hooksEffect: [],
272793
- index: 0,
272794
- handleChange() {
272795
- }
272796
- };
272797
- return store;
272798
- }
272799
- function withHooks2(rl, cb) {
272800
- const store = createStore2(rl);
272801
- return hookStorage2.run(store, () => {
272802
- function cycle(render) {
272803
- store.handleChange = () => {
272804
- store.index = 0;
272805
- render();
272806
- };
272807
- store.handleChange();
272808
- }
272809
- return cb(cycle);
272810
- });
272811
- }
272812
- function getStore2() {
272813
- const store = hookStorage2.getStore();
272814
- if (!store) {
272815
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
272816
- }
272817
- return store;
272818
- }
272819
- function readline3() {
272820
- return getStore2().rl;
272821
- }
272822
- function withUpdates2(fn) {
272823
- const wrapped = (...args) => {
272824
- const store = getStore2();
272825
- let shouldUpdate = false;
272826
- const oldHandleChange = store.handleChange;
272827
- store.handleChange = () => {
272828
- shouldUpdate = true;
272829
- };
272830
- const returnValue = fn(...args);
272831
- if (shouldUpdate) {
272832
- oldHandleChange();
272833
- }
272834
- store.handleChange = oldHandleChange;
272835
- return returnValue;
272836
- };
272837
- return AsyncResource4.bind(wrapped);
272838
- }
272839
- function withPointer2(cb) {
272840
- const store = getStore2();
272841
- const { index } = store;
272842
- const pointer = {
272843
- get() {
272844
- return store.hooks[index];
272845
- },
272846
- set(value4) {
272847
- store.hooks[index] = value4;
272848
- },
272849
- initialized: index in store.hooks
272850
- };
272851
- const returnValue = cb(pointer);
272852
- store.index++;
272853
- return returnValue;
272854
- }
272855
- function handleChange2() {
272856
- getStore2().handleChange();
272857
- }
272858
- var effectScheduler2 = {
272859
- queue(cb) {
272860
- const store = getStore2();
272861
- const { index } = store;
272862
- store.hooksEffect.push(() => {
272863
- store.hooksCleanup[index]?.();
272864
- const cleanFn = cb(readline3());
272865
- if (cleanFn != null && typeof cleanFn !== "function") {
272866
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
272867
- }
272868
- store.hooksCleanup[index] = cleanFn;
272869
- });
272870
- },
272871
- run() {
272872
- const store = getStore2();
272873
- withUpdates2(() => {
272874
- store.hooksEffect.forEach((effect) => {
272875
- effect();
272876
- });
272877
- store.hooksEffect.length = 0;
272878
- })();
272879
- },
272880
- clearAll() {
272881
- const store = getStore2();
272882
- store.hooksCleanup.forEach((cleanFn) => {
272883
- cleanFn?.();
272884
- });
272885
- store.hooksEffect.length = 0;
272886
- store.hooksCleanup.length = 0;
272887
- }
272888
- };
272889
-
272890
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
272891
- function useState2(defaultValue) {
272892
- return withPointer2((pointer) => {
272893
- const setFn = (newValue) => {
272894
- if (pointer.get() !== newValue) {
272895
- pointer.set(newValue);
272896
- handleChange2();
272897
- }
272898
- };
272899
- if (pointer.initialized) {
272900
- return [pointer.get(), setFn];
272901
- }
272902
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
272903
- pointer.set(value4);
272904
- return [value4, setFn];
272905
- });
272906
- }
272907
-
272908
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
272909
- function useEffect2(cb, depArray) {
272910
- withPointer2((pointer) => {
272911
- const oldDeps = pointer.get();
272912
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
272913
- if (hasChanged) {
272914
- effectScheduler2.queue(cb);
272915
- }
272916
- pointer.set(depArray);
272917
- });
272918
- }
272919
-
272920
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
272921
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
272922
-
272923
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
272924
- import process8 from "node:process";
272925
- function isUnicodeSupported3() {
272926
- if (process8.platform !== "win32") {
272927
- return process8.env["TERM"] !== "linux";
272928
- }
272929
- return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
272930
- }
272931
- var common2 = {
272932
- circleQuestionMark: "(?)",
272933
- questionMarkPrefix: "(?)",
272934
- square: "█",
272935
- squareDarkShade: "▓",
272936
- squareMediumShade: "▒",
272937
- squareLightShade: "░",
272938
- squareTop: "▀",
272939
- squareBottom: "▄",
272940
- squareLeft: "▌",
272941
- squareRight: "▐",
272942
- squareCenter: "■",
272943
- bullet: "●",
272944
- dot: "․",
272945
- ellipsis: "…",
272946
- pointerSmall: "›",
272947
- triangleUp: "▲",
272948
- triangleUpSmall: "▴",
272949
- triangleDown: "▼",
272950
- triangleDownSmall: "▾",
272951
- triangleLeftSmall: "◂",
272952
- triangleRightSmall: "▸",
272953
- home: "⌂",
272954
- heart: "♥",
272955
- musicNote: "♪",
272956
- musicNoteBeamed: "♫",
272957
- arrowUp: "↑",
272958
- arrowDown: "↓",
272959
- arrowLeft: "←",
272960
- arrowRight: "→",
272961
- arrowLeftRight: "↔",
272962
- arrowUpDown: "↕",
272963
- almostEqual: "≈",
272964
- notEqual: "≠",
272965
- lessOrEqual: "≤",
272966
- greaterOrEqual: "≥",
272967
- identical: "≡",
272968
- infinity: "∞",
272969
- subscriptZero: "₀",
272970
- subscriptOne: "₁",
272971
- subscriptTwo: "₂",
272972
- subscriptThree: "₃",
272973
- subscriptFour: "₄",
272974
- subscriptFive: "₅",
272975
- subscriptSix: "₆",
272976
- subscriptSeven: "₇",
272977
- subscriptEight: "₈",
272978
- subscriptNine: "₉",
272979
- oneHalf: "½",
272980
- oneThird: "⅓",
272981
- oneQuarter: "¼",
272982
- oneFifth: "⅕",
272983
- oneSixth: "⅙",
272984
- oneEighth: "⅛",
272985
- twoThirds: "⅔",
272986
- twoFifths: "⅖",
272987
- threeQuarters: "¾",
272988
- threeFifths: "⅗",
272989
- threeEighths: "⅜",
272990
- fourFifths: "⅘",
272991
- fiveSixths: "⅚",
272992
- fiveEighths: "⅝",
272993
- sevenEighths: "⅞",
272994
- line: "─",
272995
- lineBold: "━",
272996
- lineDouble: "═",
272997
- lineDashed0: "┄",
272998
- lineDashed1: "┅",
272999
- lineDashed2: "┈",
273000
- lineDashed3: "┉",
273001
- lineDashed4: "╌",
273002
- lineDashed5: "╍",
273003
- lineDashed6: "╴",
273004
- lineDashed7: "╶",
273005
- lineDashed8: "╸",
273006
- lineDashed9: "╺",
273007
- lineDashed10: "╼",
273008
- lineDashed11: "╾",
273009
- lineDashed12: "−",
273010
- lineDashed13: "–",
273011
- lineDashed14: "‐",
273012
- lineDashed15: "⁃",
273013
- lineVertical: "│",
273014
- lineVerticalBold: "┃",
273015
- lineVerticalDouble: "║",
273016
- lineVerticalDashed0: "┆",
273017
- lineVerticalDashed1: "┇",
273018
- lineVerticalDashed2: "┊",
273019
- lineVerticalDashed3: "┋",
273020
- lineVerticalDashed4: "╎",
273021
- lineVerticalDashed5: "╏",
273022
- lineVerticalDashed6: "╵",
273023
- lineVerticalDashed7: "╷",
273024
- lineVerticalDashed8: "╹",
273025
- lineVerticalDashed9: "╻",
273026
- lineVerticalDashed10: "╽",
273027
- lineVerticalDashed11: "╿",
273028
- lineDownLeft: "┐",
273029
- lineDownLeftArc: "╮",
273030
- lineDownBoldLeftBold: "┓",
273031
- lineDownBoldLeft: "┒",
273032
- lineDownLeftBold: "┑",
273033
- lineDownDoubleLeftDouble: "╗",
273034
- lineDownDoubleLeft: "╖",
273035
- lineDownLeftDouble: "╕",
273036
- lineDownRight: "┌",
273037
- lineDownRightArc: "╭",
273038
- lineDownBoldRightBold: "┏",
273039
- lineDownBoldRight: "┎",
273040
- lineDownRightBold: "┍",
273041
- lineDownDoubleRightDouble: "╔",
273042
- lineDownDoubleRight: "╓",
273043
- lineDownRightDouble: "╒",
273044
- lineUpLeft: "┘",
273045
- lineUpLeftArc: "╯",
273046
- lineUpBoldLeftBold: "┛",
273047
- lineUpBoldLeft: "┚",
273048
- lineUpLeftBold: "┙",
273049
- lineUpDoubleLeftDouble: "╝",
273050
- lineUpDoubleLeft: "╜",
273051
- lineUpLeftDouble: "╛",
273052
- lineUpRight: "└",
273053
- lineUpRightArc: "╰",
273054
- lineUpBoldRightBold: "┗",
273055
- lineUpBoldRight: "┖",
273056
- lineUpRightBold: "┕",
273057
- lineUpDoubleRightDouble: "╚",
273058
- lineUpDoubleRight: "╙",
273059
- lineUpRightDouble: "╘",
273060
- lineUpDownLeft: "┤",
273061
- lineUpBoldDownBoldLeftBold: "┫",
273062
- lineUpBoldDownBoldLeft: "┨",
273063
- lineUpDownLeftBold: "┥",
273064
- lineUpBoldDownLeftBold: "┩",
273065
- lineUpDownBoldLeftBold: "┪",
273066
- lineUpDownBoldLeft: "┧",
273067
- lineUpBoldDownLeft: "┦",
273068
- lineUpDoubleDownDoubleLeftDouble: "╣",
273069
- lineUpDoubleDownDoubleLeft: "╢",
273070
- lineUpDownLeftDouble: "╡",
273071
- lineUpDownRight: "├",
273072
- lineUpBoldDownBoldRightBold: "┣",
273073
- lineUpBoldDownBoldRight: "┠",
273074
- lineUpDownRightBold: "┝",
273075
- lineUpBoldDownRightBold: "┡",
273076
- lineUpDownBoldRightBold: "┢",
273077
- lineUpDownBoldRight: "┟",
273078
- lineUpBoldDownRight: "┞",
273079
- lineUpDoubleDownDoubleRightDouble: "╠",
273080
- lineUpDoubleDownDoubleRight: "╟",
273081
- lineUpDownRightDouble: "╞",
273082
- lineDownLeftRight: "┬",
273083
- lineDownBoldLeftBoldRightBold: "┳",
273084
- lineDownLeftBoldRightBold: "┯",
273085
- lineDownBoldLeftRight: "┰",
273086
- lineDownBoldLeftBoldRight: "┱",
273087
- lineDownBoldLeftRightBold: "┲",
273088
- lineDownLeftRightBold: "┮",
273089
- lineDownLeftBoldRight: "┭",
273090
- lineDownDoubleLeftDoubleRightDouble: "╦",
273091
- lineDownDoubleLeftRight: "╥",
273092
- lineDownLeftDoubleRightDouble: "╤",
273093
- lineUpLeftRight: "┴",
273094
- lineUpBoldLeftBoldRightBold: "┻",
273095
- lineUpLeftBoldRightBold: "┷",
273096
- lineUpBoldLeftRight: "┸",
273097
- lineUpBoldLeftBoldRight: "┹",
273098
- lineUpBoldLeftRightBold: "┺",
273099
- lineUpLeftRightBold: "┶",
273100
- lineUpLeftBoldRight: "┵",
273101
- lineUpDoubleLeftDoubleRightDouble: "╩",
273102
- lineUpDoubleLeftRight: "╨",
273103
- lineUpLeftDoubleRightDouble: "╧",
273104
- lineUpDownLeftRight: "┼",
273105
- lineUpBoldDownBoldLeftBoldRightBold: "╋",
273106
- lineUpDownBoldLeftBoldRightBold: "╈",
273107
- lineUpBoldDownLeftBoldRightBold: "╇",
273108
- lineUpBoldDownBoldLeftRightBold: "╊",
273109
- lineUpBoldDownBoldLeftBoldRight: "╉",
273110
- lineUpBoldDownLeftRight: "╀",
273111
- lineUpDownBoldLeftRight: "╁",
273112
- lineUpDownLeftBoldRight: "┽",
273113
- lineUpDownLeftRightBold: "┾",
273114
- lineUpBoldDownBoldLeftRight: "╂",
273115
- lineUpDownLeftBoldRightBold: "┿",
273116
- lineUpBoldDownLeftBoldRight: "╃",
273117
- lineUpBoldDownLeftRightBold: "╄",
273118
- lineUpDownBoldLeftBoldRight: "╅",
273119
- lineUpDownBoldLeftRightBold: "╆",
273120
- lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
273121
- lineUpDoubleDownDoubleLeftRight: "╫",
273122
- lineUpDownLeftDoubleRightDouble: "╪",
273123
- lineCross: "╳",
273124
- lineBackslash: "╲",
273125
- lineSlash: "╱"
273126
- };
273127
- var specialMainSymbols2 = {
273128
- tick: "✔",
273129
- info: "ℹ",
273130
- warning: "⚠",
273131
- cross: "✘",
273132
- squareSmall: "◻",
273133
- squareSmallFilled: "◼",
273134
- circle: "◯",
273135
- circleFilled: "◉",
273136
- circleDotted: "◌",
273137
- circleDouble: "◎",
273138
- circleCircle: "ⓞ",
273139
- circleCross: "ⓧ",
273140
- circlePipe: "Ⓘ",
273141
- radioOn: "◉",
273142
- radioOff: "◯",
273143
- checkboxOn: "☒",
273144
- checkboxOff: "☐",
273145
- checkboxCircleOn: "ⓧ",
273146
- checkboxCircleOff: "Ⓘ",
273147
- pointer: "❯",
273148
- triangleUpOutline: "△",
273149
- triangleLeft: "◀",
273150
- triangleRight: "▶",
273151
- lozenge: "◆",
273152
- lozengeOutline: "◇",
273153
- hamburger: "☰",
273154
- smiley: "㋡",
273155
- mustache: "෴",
273156
- star: "★",
273157
- play: "▶",
273158
- nodejs: "⬢",
273159
- oneSeventh: "⅐",
273160
- oneNinth: "⅑",
273161
- oneTenth: "⅒"
273162
- };
273163
- var specialFallbackSymbols2 = {
273164
- tick: "√",
273165
- info: "i",
273166
- warning: "‼",
273167
- cross: "×",
273168
- squareSmall: "□",
273169
- squareSmallFilled: "■",
273170
- circle: "( )",
273171
- circleFilled: "(*)",
273172
- circleDotted: "( )",
273173
- circleDouble: "( )",
273174
- circleCircle: "(○)",
273175
- circleCross: "(×)",
273176
- circlePipe: "(│)",
273177
- radioOn: "(*)",
273178
- radioOff: "( )",
273179
- checkboxOn: "[×]",
273180
- checkboxOff: "[ ]",
273181
- checkboxCircleOn: "(×)",
273182
- checkboxCircleOff: "( )",
273183
- pointer: ">",
273184
- triangleUpOutline: "∆",
273185
- triangleLeft: "◄",
273186
- triangleRight: "►",
273187
- lozenge: "♦",
273188
- lozengeOutline: "◊",
273189
- hamburger: "≡",
273190
- smiley: "☺",
273191
- mustache: "┌─┐",
273192
- star: "✶",
273193
- play: "►",
273194
- nodejs: "♦",
273195
- oneSeventh: "1/7",
273196
- oneNinth: "1/9",
273197
- oneTenth: "1/10"
273198
- };
273199
- var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
273200
- var fallbackSymbols2 = {
273201
- ...common2,
273202
- ...specialFallbackSymbols2
273203
- };
273204
- var shouldUseMain2 = isUnicodeSupported3();
273205
- var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
273206
- var esm_default4 = figures2;
273207
- var replacements2 = Object.entries(specialMainSymbols2);
273208
-
273209
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
273210
- var defaultTheme2 = {
273211
- prefix: {
273212
- idle: import_yoctocolors_cjs4.default.blue("?"),
273213
- done: import_yoctocolors_cjs4.default.green(esm_default4.tick)
273214
- },
273215
- spinner: {
273216
- interval: 80,
273217
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
273218
- },
273219
- style: {
273220
- answer: import_yoctocolors_cjs4.default.cyan,
273221
- message: import_yoctocolors_cjs4.default.bold,
273222
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
273223
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
273224
- help: import_yoctocolors_cjs4.default.dim,
273225
- highlight: import_yoctocolors_cjs4.default.cyan,
273226
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
273227
- }
273228
- };
273229
-
273230
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
273231
- function isPlainObject3(value4) {
273232
- if (typeof value4 !== "object" || value4 === null)
273233
- return false;
273234
- let proto = value4;
273235
- while (Object.getPrototypeOf(proto) !== null) {
273236
- proto = Object.getPrototypeOf(proto);
273237
- }
273238
- return Object.getPrototypeOf(value4) === proto;
273239
- }
273240
- function deepMerge3(...objects) {
273241
- const output = {};
273242
- for (const obj of objects) {
273243
- for (const [key2, value4] of Object.entries(obj)) {
273244
- const prevValue = output[key2];
273245
- output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
273246
- }
273247
- }
273248
- return output;
273249
- }
273250
- function makeTheme2(...themes) {
273251
- const themesToMerge = [
273252
- defaultTheme2,
273253
- ...themes.filter((theme) => theme != null)
273254
- ];
273255
- return deepMerge3(...themesToMerge);
273256
- }
273257
-
273258
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273259
- function usePrefix2({ status = "idle", theme }) {
273260
- const [showLoader, setShowLoader] = useState2(false);
273261
- const [tick, setTick] = useState2(0);
273262
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
273263
- useEffect2(() => {
273264
- if (status === "loading") {
273265
- let tickInterval;
273266
- let inc = -1;
273267
- const delayTimeout = setTimeout(AsyncResource5.bind(() => {
273268
- setShowLoader(true);
273269
- tickInterval = setInterval(AsyncResource5.bind(() => {
273270
- inc = inc + 1;
273271
- setTick(inc % spinner2.frames.length);
273272
- }), spinner2.interval);
273273
- }), 300);
273274
- return () => {
273275
- clearTimeout(delayTimeout);
273276
- clearInterval(tickInterval);
273277
- };
273278
- } else {
273279
- setShowLoader(false);
273280
- }
273281
- }, [status]);
273282
- if (showLoader) {
273283
- return spinner2.frames[tick];
273284
- }
273285
- const iconName = status === "loading" ? "idle" : status;
273286
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
273287
- }
273288
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
273289
- function useRef2(val) {
273290
- return useState2({ current: val })[0];
273291
- }
273292
-
273293
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
273294
- function useKeypress2(userHandler) {
273295
- const signal = useRef2(userHandler);
273296
- signal.current = userHandler;
273297
- useEffect2((rl) => {
273298
- let ignore = false;
273299
- const handler = withUpdates2((_input, event) => {
273300
- if (ignore)
273301
- return;
273302
- signal.current(event, rl);
273303
- });
273304
- rl.input.on("keypress", handler);
273305
- return () => {
273306
- ignore = true;
273307
- rl.input.removeListener("keypress", handler);
273308
- };
273309
- }, []);
273310
- }
273311
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
273312
- var import_cli_width2 = __toESM(require_cli_width(), 1);
273313
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
273314
- function breakLines2(content, width) {
273315
- return content.split(`
273316
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
273317
- `).map((str) => str.trimEnd())).join(`
273318
- `);
273319
- }
273320
- function readlineWidth2() {
273321
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
273322
- }
273323
-
273324
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273325
- var import_mute_stream2 = __toESM(require_lib12(), 1);
273326
- import * as readline4 from "node:readline";
273327
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
273328
-
273329
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
273330
- var import_strip_ansi = __toESM(require_strip_ansi(), 1);
273331
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
273332
- var height2 = (content) => content.split(`
273333
- `).length;
273334
- var lastLine2 = (content) => content.split(`
273335
- `).pop() ?? "";
273336
- function cursorDown2(n6) {
273337
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
273338
- }
273339
-
273340
- class ScreenManager2 {
273341
- rl;
273342
- height = 0;
273343
- extraLinesUnderPrompt = 0;
273344
- cursorPos;
273345
- constructor(rl) {
273346
- this.rl = rl;
273347
- this.rl = rl;
273348
- this.cursorPos = rl.getCursorPos();
273349
- }
273350
- write(content) {
273351
- this.rl.output.unmute();
273352
- this.rl.output.write(content);
273353
- this.rl.output.mute();
273354
- }
273355
- render(content, bottomContent = "") {
273356
- const promptLine = lastLine2(content);
273357
- const rawPromptLine = import_strip_ansi.default(promptLine);
273358
- let prompt = rawPromptLine;
273359
- if (this.rl.line.length > 0) {
273360
- prompt = prompt.slice(0, -this.rl.line.length);
273361
- }
273362
- this.rl.setPrompt(prompt);
273363
- this.cursorPos = this.rl.getCursorPos();
273364
- const width = readlineWidth2();
273365
- content = breakLines2(content, width);
273366
- bottomContent = breakLines2(bottomContent, width);
273367
- if (rawPromptLine.length % width === 0) {
273368
- content += `
273369
- `;
273370
- }
273371
- let output = content + (bottomContent ? `
273372
- ` + bottomContent : "");
273373
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
273374
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
273375
- if (bottomContentHeight > 0)
273376
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
273377
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
273378
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
273379
- this.extraLinesUnderPrompt = bottomContentHeight;
273380
- this.height = height2(output);
273381
- }
273382
- checkCursorPos() {
273383
- const cursorPos = this.rl.getCursorPos();
273384
- if (cursorPos.cols !== this.cursorPos.cols) {
273385
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
273386
- this.cursorPos = cursorPos;
273387
- }
273388
- }
273389
- done({ clearContent }) {
273390
- this.rl.setPrompt("");
273391
- let output = cursorDown2(this.extraLinesUnderPrompt);
273392
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
273393
- `;
273394
- output += import_ansi_escapes3.default.cursorShow;
273395
- this.write(output);
273396
- this.rl.close();
273397
- }
273398
- }
273399
-
273400
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273401
- class PromisePolyfill2 extends Promise {
273402
- static withResolver() {
273403
- let resolve6;
273404
- let reject;
273405
- const promise = new Promise((res, rej) => {
273406
- resolve6 = res;
273407
- reject = rej;
273408
- });
273409
- return { promise, resolve: resolve6, reject };
273410
- }
273411
- }
273412
-
273413
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273414
- function getCallSites2() {
273415
- const _prepareStackTrace = Error.prepareStackTrace;
273416
- try {
273417
- let result = [];
273418
- Error.prepareStackTrace = (_5, callSites) => {
273419
- const callSitesWithoutCurrent = callSites.slice(1);
273420
- result = callSitesWithoutCurrent;
273421
- return callSitesWithoutCurrent;
273422
- };
273423
- new Error().stack;
273424
- return result;
273425
- } finally {
273426
- Error.prepareStackTrace = _prepareStackTrace;
273427
- }
273428
- }
273429
- function createPrompt2(view) {
273430
- const callSites = getCallSites2();
273431
- const callerFilename = callSites[1]?.getFileName?.();
273432
- const prompt = (config3, context = {}) => {
273433
- const { input = process.stdin, signal } = context;
273434
- const cleanups = new Set;
273435
- const output = new import_mute_stream2.default;
273436
- output.pipe(context.output ?? process.stdout);
273437
- const rl = readline4.createInterface({
273438
- terminal: true,
273439
- input,
273440
- output
273441
- });
273442
- const screen = new ScreenManager2(rl);
273443
- const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
273444
- const cancel3 = () => reject(new CancelPromptError2);
273445
- if (signal) {
273446
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273447
- if (signal.aborted) {
273448
- abort();
273449
- return Object.assign(promise, { cancel: cancel3 });
273450
- }
273451
- signal.addEventListener("abort", abort);
273452
- cleanups.add(() => signal.removeEventListener("abort", abort));
273453
- }
273454
- cleanups.add(onExit((code2, signal2) => {
273455
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273456
- }));
273457
- const checkCursorPos = () => screen.checkCursorPos();
273458
- rl.input.on("keypress", checkCursorPos);
273459
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273460
- return withHooks2(rl, (cycle) => {
273461
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273462
- rl.on("close", hooksCleanup);
273463
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
273464
- cycle(() => {
273465
- try {
273466
- const nextView = view(config3, (value4) => {
273467
- setImmediate(() => resolve6(value4));
273468
- });
273469
- if (nextView === undefined) {
273470
- throw new Error(`Prompt functions must return a string.
273471
- at ${callerFilename}`);
273472
- }
273473
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273474
- screen.render(content, bottomContent);
273475
- effectScheduler2.run();
273476
- } catch (error5) {
273477
- reject(error5);
273478
- }
273479
- });
273480
- return Object.assign(promise.then((answer) => {
273481
- effectScheduler2.clearAll();
273482
- return answer;
273483
- }, (error5) => {
273484
- effectScheduler2.clearAll();
273485
- throw error5;
273486
- }).finally(() => {
273487
- cleanups.forEach((cleanup) => cleanup());
273488
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273489
- output.end();
273490
- }).then(() => promise), { cancel: cancel3 });
273491
- });
273492
- };
273493
- return prompt;
273494
- }
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);
273502
- const [status, setStatus] = useState2("idle");
273503
- const [defaultValue = "", setDefaultValue] = useState2(config3.default);
273504
- const [errorMsg, setError] = useState2();
273505
- const [value4, setValue] = useState2("");
273506
- const prefix = usePrefix2({ status, theme });
273507
- useKeypress2(async (key3, rl) => {
273508
- if (status !== "idle") {
273509
- return;
273510
- }
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
- }
272752
+ // ../../node_modules/@inquirer/input/dist/esm/index.js
272753
+ var inputTheme = {
272754
+ validationFailureMode: "keep"
274036
272755
  };
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;
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;
274054
272767
  }
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
- };
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);
274086
272792
  } 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;
272793
+ setValue(rl.line);
272794
+ setError(undefined);
274195
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);
274196
272803
  }
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();
272804
+ let defaultStr;
272805
+ if (defaultValue && status !== "done" && !value4) {
272806
+ defaultStr = theme.style.defaultAnswer(defaultValue);
274205
272807
  }
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 };
272808
+ let error5 = "";
272809
+ if (errorMsg) {
272810
+ error5 = theme.style.error(errorMsg);
274218
272811
  }
274219
- }
272812
+ return [
272813
+ [prefix, message, defaultStr, formattedValue].filter((v7) => v7 !== undefined).join(" "),
272814
+ error5
272815
+ ];
272816
+ });
274220
272817
 
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
272818
  // ../../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) => {
272819
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
272820
+ var esm_default5 = createPrompt((config3, done) => {
274306
272821
  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) => {
272822
+ const theme = makeTheme(config3.theme);
272823
+ const [status, setStatus] = useState("idle");
272824
+ const [errorMsg, setError] = useState();
272825
+ const [value4, setValue] = useState("");
272826
+ const prefix = usePrefix({ status, theme });
272827
+ useKeypress(async (key2, rl) => {
274313
272828
  if (status !== "idle") {
274314
272829
  return;
274315
272830
  }
274316
- if (isEnterKey3(key4)) {
272831
+ if (isEnterKey(key2)) {
274317
272832
  const answer = value4;
274318
272833
  setStatus("loading");
274319
272834
  const isValid2 = await validate3(answer);
@@ -274338,7 +272853,7 @@ var esm_default7 = createPrompt3((config3, done) => {
274338
272853
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
274339
272854
  formattedValue = maskChar.repeat(value4.length);
274340
272855
  } else if (status !== "done") {
274341
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes5.default.cursorHide}`;
272856
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
274342
272857
  }
274343
272858
  if (status === "done") {
274344
272859
  formattedValue = theme.style.answer(formattedValue);
@@ -274373,7 +272888,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
274373
272888
  default: false
274374
272889
  });
274375
272890
  if (create2) {
274376
- const name2 = await esm_default5({
272891
+ const name2 = await esm_default4({
274377
272892
  message: "How would you like to name this application access token?",
274378
272893
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
274379
272894
  required: true,
@@ -274437,7 +272952,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
274437
272952
  } catch (error5) {
274438
272953
  }
274439
272954
  }
274440
- return esm_default7({
272955
+ return esm_default5({
274441
272956
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
274442
272957
  validate(value4) {
274443
272958
  try {
@@ -274773,7 +273288,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
274773
273288
  return sanitizeInstanceUrl(defaultPromptInstance);
274774
273289
  }
274775
273290
  if (freeTextInput) {
274776
- const instance = await esm_default5({
273291
+ const instance = await esm_default4({
274777
273292
  message: "What is the URL of your SettleMint instance?",
274778
273293
  default: defaultPromptInstance,
274779
273294
  required: true,
@@ -275184,7 +273699,7 @@ async function projectNamePrompt(env2, argument) {
275184
273699
  if (defaultInstance) {
275185
273700
  return defaultInstance;
275186
273701
  }
275187
- return esm_default5({
273702
+ return esm_default4({
275188
273703
  message: "What is the name of your new SettleMint project?",
275189
273704
  default: defaultInstance,
275190
273705
  required: true,
@@ -275410,7 +273925,7 @@ var basename2 = function(p6, extension) {
275410
273925
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
275411
273926
  };
275412
273927
  // ../../node_modules/defu/dist/defu.mjs
275413
- function isPlainObject5(value4) {
273928
+ function isPlainObject3(value4) {
275414
273929
  if (value4 === null || typeof value4 !== "object") {
275415
273930
  return false;
275416
273931
  }
@@ -275427,27 +273942,27 @@ function isPlainObject5(value4) {
275427
273942
  return true;
275428
273943
  }
275429
273944
  function _defu(baseObject, defaults2, namespace = ".", merger) {
275430
- if (!isPlainObject5(defaults2)) {
273945
+ if (!isPlainObject3(defaults2)) {
275431
273946
  return _defu(baseObject, {}, namespace, merger);
275432
273947
  }
275433
273948
  const object = Object.assign({}, defaults2);
275434
- for (const key4 in baseObject) {
275435
- if (key4 === "__proto__" || key4 === "constructor") {
273949
+ for (const key2 in baseObject) {
273950
+ if (key2 === "__proto__" || key2 === "constructor") {
275436
273951
  continue;
275437
273952
  }
275438
- const value4 = baseObject[key4];
273953
+ const value4 = baseObject[key2];
275439
273954
  if (value4 === null || value4 === undefined) {
275440
273955
  continue;
275441
273956
  }
275442
- if (merger && merger(object, key4, value4, namespace)) {
273957
+ if (merger && merger(object, key2, value4, namespace)) {
275443
273958
  continue;
275444
273959
  }
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);
273960
+ if (Array.isArray(value4) && Array.isArray(object[key2])) {
273961
+ object[key2] = [...value4, ...object[key2]];
273962
+ } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
273963
+ object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
275449
273964
  } else {
275450
- object[key4] = value4;
273965
+ object[key2] = value4;
275451
273966
  }
275452
273967
  }
275453
273968
  return object;
@@ -275456,15 +273971,15 @@ function createDefu(merger) {
275456
273971
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
275457
273972
  }
275458
273973
  var defu = createDefu();
275459
- var defuFn = createDefu((object, key4, currentValue) => {
275460
- if (object[key4] !== undefined && typeof currentValue === "function") {
275461
- object[key4] = currentValue(object[key4]);
273974
+ var defuFn = createDefu((object, key2, currentValue) => {
273975
+ if (object[key2] !== undefined && typeof currentValue === "function") {
273976
+ object[key2] = currentValue(object[key2]);
275462
273977
  return true;
275463
273978
  }
275464
273979
  });
275465
- var defuArrayFn = createDefu((object, key4, currentValue) => {
275466
- if (Array.isArray(object[key4]) && typeof currentValue === "function") {
275467
- object[key4] = currentValue(object[key4]);
273980
+ var defuArrayFn = createDefu((object, key2, currentValue) => {
273981
+ if (Array.isArray(object[key2]) && typeof currentValue === "function") {
273982
+ object[key2] = currentValue(object[key2]);
275468
273983
  return true;
275469
273984
  }
275470
273985
  });
@@ -275726,11 +274241,11 @@ function cacheDirectory() {
275726
274241
  }
275727
274242
  function normalizeHeaders(headers = {}) {
275728
274243
  const normalized = {};
275729
- for (const [key4, value4] of Object.entries(headers)) {
274244
+ for (const [key2, value4] of Object.entries(headers)) {
275730
274245
  if (!value4) {
275731
274246
  continue;
275732
274247
  }
275733
- normalized[key4.toLowerCase()] = value4;
274248
+ normalized[key2.toLowerCase()] = value4;
275734
274249
  }
275735
274250
  return normalized;
275736
274251
  }
@@ -276044,7 +274559,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
276044
274559
  return defaultPersonalAccessToken;
276045
274560
  }
276046
274561
  }
276047
- return esm_default7({
274562
+ return esm_default5({
276048
274563
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
276049
274564
  validate(value4) {
276050
274565
  try {
@@ -277555,7 +276070,7 @@ function createCommand3() {
277555
276070
 
277556
276071
  // src/prompts/delete-confirmation.prompt.ts
277557
276072
  async function deleteConfirmationPrompt(itemDescription) {
277558
- const confirmation = await esm_default5({
276073
+ const confirmation = await esm_default4({
277559
276074
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
277560
276075
  required: true,
277561
276076
  validate(value4) {
@@ -277912,7 +276427,7 @@ function jsonOutput(data) {
277912
276427
  var composer = require_composer();
277913
276428
  var Document = require_Document();
277914
276429
  var Schema = require_Schema();
277915
- var errors4 = require_errors3();
276430
+ var errors2 = require_errors3();
277916
276431
  var Alias = require_Alias();
277917
276432
  var identity2 = require_identity();
277918
276433
  var Pair = require_Pair();
@@ -277928,9 +276443,9 @@ var visit2 = require_visit();
277928
276443
  var $Composer = composer.Composer;
277929
276444
  var $Document = Document.Document;
277930
276445
  var $Schema = Schema.Schema;
277931
- var $YAMLError = errors4.YAMLError;
277932
- var $YAMLParseError = errors4.YAMLParseError;
277933
- var $YAMLWarning = errors4.YAMLWarning;
276446
+ var $YAMLError = errors2.YAMLError;
276447
+ var $YAMLParseError = errors2.YAMLParseError;
276448
+ var $YAMLWarning = errors2.YAMLWarning;
277934
276449
  var $Alias = Alias.Alias;
277935
276450
  var $isAlias = identity2.isAlias;
277936
276451
  var $isCollection = identity2.isCollection;
@@ -278276,7 +276791,7 @@ async function getServicesAndMapResults({
278276
276791
  const application = await settlemint.application.read(applicationUniqueName);
278277
276792
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
278278
276793
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
278279
- const [_5, labels] = Object.entries(LABELS_MAP).find(([key4, value4]) => value4.command === serviceType) ?? [
276794
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
278280
276795
  null,
278281
276796
  { plural: serviceType }
278282
276797
  ];
@@ -278504,11 +277019,11 @@ function createCommand4() {
278504
277019
 
278505
277020
  // src/utils/commands/passthrough-options.ts
278506
277021
  function mapPassthroughOptions(options, command) {
278507
- const optionArgs = Object.entries(options).map(([key4, value4]) => {
277022
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
278508
277023
  if (value4 === true) {
278509
- return `--${key4}`;
277024
+ return `--${key2}`;
278510
277025
  }
278511
- return `--${key4}=${value4}`;
277026
+ return `--${key2}=${value4}`;
278512
277027
  });
278513
277028
  return [...optionArgs, ...command.args];
278514
277029
  }
@@ -279199,7 +277714,7 @@ async function subgraphNamePrompt({
279199
277714
  }
279200
277715
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_SUBGRAPH_NAME;
279201
277716
  }
279202
- const subgraphName = await esm_default5({
277717
+ const subgraphName = await esm_default4({
279203
277718
  message: "What is the name of your subgraph?",
279204
277719
  default: defaultSubgraphName,
279205
277720
  required: true
@@ -279425,4 +277940,4 @@ ${error5.stack}`));
279425
277940
  // src/cli.ts
279426
277941
  sdkCliCommand();
279427
277942
 
279428
- //# debugId=D390D340413BFCFB64756E2164756E21
277943
+ //# debugId=62ACFCA62C340C5D64756E2164756E21