@settlemint/sdk-cli 1.1.3-main3dbd1505 → 1.1.3-main63f795f5

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 +1181 -378
  2. package/dist/cli.js.map +39 -12
  3. package/package.json +7 -7
package/dist/cli.js CHANGED
@@ -48070,7 +48070,6 @@ var require_re6 = __commonJS((exports, module) => {
48070
48070
  var re = exports.re = [];
48071
48071
  var safeRe = exports.safeRe = [];
48072
48072
  var src = exports.src = [];
48073
- var safeSrc = exports.safeSrc = [];
48074
48073
  var t3 = exports.t = {};
48075
48074
  var R = 0;
48076
48075
  var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
@@ -48091,7 +48090,6 @@ var require_re6 = __commonJS((exports, module) => {
48091
48090
  debug(name, index, value2);
48092
48091
  t3[name] = index;
48093
48092
  src[index] = value2;
48094
- safeSrc[index] = safe;
48095
48093
  re[index] = new RegExp(value2, isGlobal ? "g" : undefined);
48096
48094
  safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
48097
48095
  };
@@ -48182,7 +48180,7 @@ var require_identifiers6 = __commonJS((exports, module) => {
48182
48180
  var require_semver10 = __commonJS((exports, module) => {
48183
48181
  var debug = require_debug6();
48184
48182
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants7();
48185
- var { safeRe: re, safeSrc: src, t: t3 } = require_re6();
48183
+ var { safeRe: re, t: t3 } = require_re6();
48186
48184
  var parseOptions = require_parse_options6();
48187
48185
  var { compareIdentifiers } = require_identifiers6();
48188
48186
 
@@ -48324,8 +48322,7 @@ var require_semver10 = __commonJS((exports, module) => {
48324
48322
  throw new Error("invalid increment argument: identifier is empty");
48325
48323
  }
48326
48324
  if (identifier) {
48327
- const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
48328
- const match2 = `-${identifier}`.match(r2);
48325
+ const match2 = `-${identifier}`.match(this.options.loose ? re[t3.PRERELEASELOOSE] : re[t3.PRERELEASE]);
48329
48326
  if (!match2 || match2[1] !== identifier) {
48330
48327
  throw new Error(`invalid identifier: ${identifier}`);
48331
48328
  }
@@ -241161,8 +241158,8 @@ var require_mkdir = __commonJS((exports, module) => {
241161
241158
  return "CwdError";
241162
241159
  }
241163
241160
  }
241164
- var cGet = (cache, key2) => cache.get(normPath(key2));
241165
- var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
241161
+ var cGet = (cache, key4) => cache.get(normPath(key4));
241162
+ var cSet = (cache, key4, val) => cache.set(normPath(key4), val);
241166
241163
  var checkCwd = (dir, cb) => {
241167
241164
  fs3.stat(dir, (er2, st2) => {
241168
241165
  if (er2 || !st2.isDirectory()) {
@@ -241533,8 +241530,8 @@ var require_unpack = __commonJS((exports, module) => {
241533
241530
  }
241534
241531
  };
241535
241532
  var dropCache = (cache) => {
241536
- for (const key2 of cache.keys()) {
241537
- cache.delete(key2);
241533
+ for (const key4 of cache.keys()) {
241534
+ cache.delete(key4);
241538
241535
  }
241539
241536
  };
241540
241537
 
@@ -246331,8 +246328,8 @@ var require_lib13 = __commonJS((exports, module) => {
246331
246328
  function fetch2(input, options) {
246332
246329
  return nodeFetch.fetch(input, options);
246333
246330
  }
246334
- for (const key2 in nodeFetch) {
246335
- fetch2[key2] = nodeFetch[key2];
246331
+ for (const key4 in nodeFetch) {
246332
+ fetch2[key4] = nodeFetch[key4];
246336
246333
  }
246337
246334
  module.exports = fetch2;
246338
246335
  });
@@ -246425,11 +246422,11 @@ var require_proxy = __commonJS((exports) => {
246425
246422
  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;
246426
246423
  }
246427
246424
  e10(requireSymbols$4, "requireSymbols$4");
246428
- var errors2;
246425
+ var errors4;
246429
246426
  var hasRequiredErrors;
246430
246427
  function requireErrors() {
246431
246428
  if (hasRequiredErrors)
246432
- return errors2;
246429
+ return errors4;
246433
246430
  hasRequiredErrors = 1;
246434
246431
 
246435
246432
  class A5 extends Error {
@@ -246638,7 +246635,7 @@ var require_proxy = __commonJS((exports) => {
246638
246635
  super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
246639
246636
  }
246640
246637
  }
246641
- 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;
246638
+ 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;
246642
246639
  }
246643
246640
  e10(requireErrors, "requireErrors");
246644
246641
  var constants$4;
@@ -256611,11 +256608,11 @@ var require_visit = __commonJS((exports) => {
256611
256608
  visit2.BREAK = BREAK;
256612
256609
  visit2.SKIP = SKIP;
256613
256610
  visit2.REMOVE = REMOVE;
256614
- function visit_(key2, node, visitor, path5) {
256615
- const ctrl = callVisitor(key2, node, visitor, path5);
256611
+ function visit_(key4, node, visitor, path5) {
256612
+ const ctrl = callVisitor(key4, node, visitor, path5);
256616
256613
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256617
- replaceNode(key2, path5, ctrl);
256618
- return visit_(key2, ctrl, visitor, path5);
256614
+ replaceNode(key4, path5, ctrl);
256615
+ return visit_(key4, ctrl, visitor, path5);
256619
256616
  }
256620
256617
  if (typeof ctrl !== "symbol") {
256621
256618
  if (identity2.isCollection(node)) {
@@ -256659,11 +256656,11 @@ var require_visit = __commonJS((exports) => {
256659
256656
  visitAsync.BREAK = BREAK;
256660
256657
  visitAsync.SKIP = SKIP;
256661
256658
  visitAsync.REMOVE = REMOVE;
256662
- async function visitAsync_(key2, node, visitor, path5) {
256663
- const ctrl = await callVisitor(key2, node, visitor, path5);
256659
+ async function visitAsync_(key4, node, visitor, path5) {
256660
+ const ctrl = await callVisitor(key4, node, visitor, path5);
256664
256661
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256665
- replaceNode(key2, path5, ctrl);
256666
- return visitAsync_(key2, ctrl, visitor, path5);
256662
+ replaceNode(key4, path5, ctrl);
256663
+ return visitAsync_(key4, ctrl, visitor, path5);
256667
256664
  }
256668
256665
  if (typeof ctrl !== "symbol") {
256669
256666
  if (identity2.isCollection(node)) {
@@ -256713,27 +256710,27 @@ var require_visit = __commonJS((exports) => {
256713
256710
  }
256714
256711
  return visitor;
256715
256712
  }
256716
- function callVisitor(key2, node, visitor, path5) {
256713
+ function callVisitor(key4, node, visitor, path5) {
256717
256714
  if (typeof visitor === "function")
256718
- return visitor(key2, node, path5);
256715
+ return visitor(key4, node, path5);
256719
256716
  if (identity2.isMap(node))
256720
- return visitor.Map?.(key2, node, path5);
256717
+ return visitor.Map?.(key4, node, path5);
256721
256718
  if (identity2.isSeq(node))
256722
- return visitor.Seq?.(key2, node, path5);
256719
+ return visitor.Seq?.(key4, node, path5);
256723
256720
  if (identity2.isPair(node))
256724
- return visitor.Pair?.(key2, node, path5);
256721
+ return visitor.Pair?.(key4, node, path5);
256725
256722
  if (identity2.isScalar(node))
256726
- return visitor.Scalar?.(key2, node, path5);
256723
+ return visitor.Scalar?.(key4, node, path5);
256727
256724
  if (identity2.isAlias(node))
256728
- return visitor.Alias?.(key2, node, path5);
256725
+ return visitor.Alias?.(key4, node, path5);
256729
256726
  return;
256730
256727
  }
256731
- function replaceNode(key2, path5, node) {
256728
+ function replaceNode(key4, path5, node) {
256732
256729
  const parent = path5[path5.length - 1];
256733
256730
  if (identity2.isCollection(parent)) {
256734
- parent.items[key2] = node;
256731
+ parent.items[key4] = node;
256735
256732
  } else if (identity2.isPair(parent)) {
256736
- if (key2 === "key")
256733
+ if (key4 === "key")
256737
256734
  parent.key = node;
256738
256735
  else
256739
256736
  parent.value = node;
@@ -256965,7 +256962,7 @@ var require_anchors = __commonJS((exports) => {
256965
256962
 
256966
256963
  // ../../node_modules/yaml/dist/doc/applyReviver.js
256967
256964
  var require_applyReviver = __commonJS((exports) => {
256968
- function applyReviver(reviver, obj, key2, val) {
256965
+ function applyReviver(reviver, obj, key4, val) {
256969
256966
  if (val && typeof val === "object") {
256970
256967
  if (Array.isArray(val)) {
256971
256968
  for (let i6 = 0, len = val.length;i6 < len; ++i6) {
@@ -257005,7 +257002,7 @@ var require_applyReviver = __commonJS((exports) => {
257005
257002
  }
257006
257003
  }
257007
257004
  }
257008
- return reviver.call(obj, key2, val);
257005
+ return reviver.call(obj, key4, val);
257009
257006
  }
257010
257007
  exports.applyReviver = applyReviver;
257011
257008
  });
@@ -257323,29 +257320,29 @@ var require_Collection = __commonJS((exports) => {
257323
257320
  if (isEmptyPath(path5))
257324
257321
  this.add(value4);
257325
257322
  else {
257326
- const [key2, ...rest] = path5;
257327
- const node = this.get(key2, true);
257323
+ const [key4, ...rest] = path5;
257324
+ const node = this.get(key4, true);
257328
257325
  if (identity2.isCollection(node))
257329
257326
  node.addIn(rest, value4);
257330
257327
  else if (node === undefined && this.schema)
257331
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257328
+ this.set(key4, collectionFromPath(this.schema, rest, value4));
257332
257329
  else
257333
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257330
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
257334
257331
  }
257335
257332
  }
257336
257333
  deleteIn(path5) {
257337
- const [key2, ...rest] = path5;
257334
+ const [key4, ...rest] = path5;
257338
257335
  if (rest.length === 0)
257339
- return this.delete(key2);
257340
- const node = this.get(key2, true);
257336
+ return this.delete(key4);
257337
+ const node = this.get(key4, true);
257341
257338
  if (identity2.isCollection(node))
257342
257339
  return node.deleteIn(rest);
257343
257340
  else
257344
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257341
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
257345
257342
  }
257346
257343
  getIn(path5, keepScalar) {
257347
- const [key2, ...rest] = path5;
257348
- const node = this.get(key2, true);
257344
+ const [key4, ...rest] = path5;
257345
+ const node = this.get(key4, true);
257349
257346
  if (rest.length === 0)
257350
257347
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
257351
257348
  else
@@ -257360,24 +257357,24 @@ var require_Collection = __commonJS((exports) => {
257360
257357
  });
257361
257358
  }
257362
257359
  hasIn(path5) {
257363
- const [key2, ...rest] = path5;
257360
+ const [key4, ...rest] = path5;
257364
257361
  if (rest.length === 0)
257365
- return this.has(key2);
257366
- const node = this.get(key2, true);
257362
+ return this.has(key4);
257363
+ const node = this.get(key4, true);
257367
257364
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
257368
257365
  }
257369
257366
  setIn(path5, value4) {
257370
- const [key2, ...rest] = path5;
257367
+ const [key4, ...rest] = path5;
257371
257368
  if (rest.length === 0) {
257372
- this.set(key2, value4);
257369
+ this.set(key4, value4);
257373
257370
  } else {
257374
- const node = this.get(key2, true);
257371
+ const node = this.get(key4, true);
257375
257372
  if (identity2.isCollection(node))
257376
257373
  node.setIn(rest, value4);
257377
257374
  else if (node === undefined && this.schema)
257378
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257375
+ this.set(key4, collectionFromPath(this.schema, rest, value4));
257379
257376
  else
257380
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257377
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
257381
257378
  }
257382
257379
  }
257383
257380
  }
@@ -257965,19 +257962,19 @@ var require_stringifyPair = __commonJS((exports) => {
257965
257962
  var Scalar = require_Scalar();
257966
257963
  var stringify3 = require_stringify();
257967
257964
  var stringifyComment = require_stringifyComment();
257968
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
257965
+ function stringifyPair2({ key: key4, value: value4 }, ctx, onComment, onChompKeep) {
257969
257966
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
257970
- let keyComment = identity2.isNode(key2) && key2.comment || null;
257967
+ let keyComment = identity2.isNode(key4) && key4.comment || null;
257971
257968
  if (simpleKeys) {
257972
257969
  if (keyComment) {
257973
257970
  throw new Error("With simple keys, key nodes cannot have comments");
257974
257971
  }
257975
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
257972
+ if (identity2.isCollection(key4) || !identity2.isNode(key4) && typeof key4 === "object") {
257976
257973
  const msg = "With simple keys, collection cannot be used as a key value";
257977
257974
  throw new Error(msg);
257978
257975
  }
257979
257976
  }
257980
- 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"));
257977
+ 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"));
257981
257978
  ctx = Object.assign({}, ctx, {
257982
257979
  allNullValues: false,
257983
257980
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -257985,7 +257982,7 @@ var require_stringifyPair = __commonJS((exports) => {
257985
257982
  });
257986
257983
  let keyCommentDone = false;
257987
257984
  let chompKeep = false;
257988
- let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
257985
+ let str = stringify3.stringify(key4, ctx, () => keyCommentDone = true, () => chompKeep = true);
257989
257986
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
257990
257987
  if (simpleKeys)
257991
257988
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -258129,7 +258126,7 @@ var require_merge = __commonJS((exports) => {
258129
258126
  }),
258130
258127
  stringify: () => MERGE_KEY
258131
258128
  };
258132
- 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);
258129
+ 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);
258133
258130
  function addMergeToJSMap(ctx, map3, value4) {
258134
258131
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
258135
258132
  if (identity2.isSeq(value4))
@@ -258146,14 +258143,14 @@ var require_merge = __commonJS((exports) => {
258146
258143
  if (!identity2.isMap(source))
258147
258144
  throw new Error("Merge sources must be maps or map aliases");
258148
258145
  const srcMap = source.toJSON(null, ctx, Map);
258149
- for (const [key2, value5] of srcMap) {
258146
+ for (const [key4, value5] of srcMap) {
258150
258147
  if (map3 instanceof Map) {
258151
- if (!map3.has(key2))
258152
- map3.set(key2, value5);
258148
+ if (!map3.has(key4))
258149
+ map3.set(key4, value5);
258153
258150
  } else if (map3 instanceof Set) {
258154
- map3.add(key2);
258155
- } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
258156
- Object.defineProperty(map3, key2, {
258151
+ map3.add(key4);
258152
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key4)) {
258153
+ Object.defineProperty(map3, key4, {
258157
258154
  value: value5,
258158
258155
  writable: true,
258159
258156
  enumerable: true,
@@ -258175,19 +258172,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258175
258172
  var stringify3 = require_stringify();
258176
258173
  var identity2 = require_identity();
258177
258174
  var toJS = require_toJS();
258178
- function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
258179
- if (identity2.isNode(key2) && key2.addToJSMap)
258180
- key2.addToJSMap(ctx, map3, value4);
258181
- else if (merge3.isMergeKey(ctx, key2))
258175
+ function addPairToJSMap(ctx, map3, { key: key4, value: value4 }) {
258176
+ if (identity2.isNode(key4) && key4.addToJSMap)
258177
+ key4.addToJSMap(ctx, map3, value4);
258178
+ else if (merge3.isMergeKey(ctx, key4))
258182
258179
  merge3.addMergeToJSMap(ctx, map3, value4);
258183
258180
  else {
258184
- const jsKey = toJS.toJS(key2, "", ctx);
258181
+ const jsKey = toJS.toJS(key4, "", ctx);
258185
258182
  if (map3 instanceof Map) {
258186
258183
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
258187
258184
  } else if (map3 instanceof Set) {
258188
258185
  map3.add(jsKey);
258189
258186
  } else {
258190
- const stringKey = stringifyKey(key2, jsKey, ctx);
258187
+ const stringKey = stringifyKey(key4, jsKey, ctx);
258191
258188
  const jsValue = toJS.toJS(value4, stringKey, ctx);
258192
258189
  if (stringKey in map3)
258193
258190
  Object.defineProperty(map3, stringKey, {
@@ -258202,19 +258199,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258202
258199
  }
258203
258200
  return map3;
258204
258201
  }
258205
- function stringifyKey(key2, jsKey, ctx) {
258202
+ function stringifyKey(key4, jsKey, ctx) {
258206
258203
  if (jsKey === null)
258207
258204
  return "";
258208
258205
  if (typeof jsKey !== "object")
258209
258206
  return String(jsKey);
258210
- if (identity2.isNode(key2) && ctx?.doc) {
258207
+ if (identity2.isNode(key4) && ctx?.doc) {
258211
258208
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
258212
258209
  strCtx.anchors = new Set;
258213
258210
  for (const node of ctx.anchors.keys())
258214
258211
  strCtx.anchors.add(node.anchor);
258215
258212
  strCtx.inFlow = true;
258216
258213
  strCtx.inStringifyKey = true;
258217
- const strKey = key2.toString(strCtx);
258214
+ const strKey = key4.toString(strCtx);
258218
258215
  if (!ctx.mapKeyWarned) {
258219
258216
  let jsonStr = JSON.stringify(strKey);
258220
258217
  if (jsonStr.length > 40)
@@ -258235,25 +258232,25 @@ var require_Pair = __commonJS((exports) => {
258235
258232
  var stringifyPair2 = require_stringifyPair();
258236
258233
  var addPairToJSMap = require_addPairToJSMap();
258237
258234
  var identity2 = require_identity();
258238
- function createPair(key2, value4, ctx) {
258239
- const k5 = createNode.createNode(key2, undefined, ctx);
258235
+ function createPair(key4, value4, ctx) {
258236
+ const k5 = createNode.createNode(key4, undefined, ctx);
258240
258237
  const v7 = createNode.createNode(value4, undefined, ctx);
258241
258238
  return new Pair(k5, v7);
258242
258239
  }
258243
258240
 
258244
258241
  class Pair {
258245
- constructor(key2, value4 = null) {
258242
+ constructor(key4, value4 = null) {
258246
258243
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
258247
- this.key = key2;
258244
+ this.key = key4;
258248
258245
  this.value = value4;
258249
258246
  }
258250
258247
  clone(schema) {
258251
- let { key: key2, value: value4 } = this;
258252
- if (identity2.isNode(key2))
258253
- key2 = key2.clone(schema);
258248
+ let { key: key4, value: value4 } = this;
258249
+ if (identity2.isNode(key4))
258250
+ key4 = key4.clone(schema);
258254
258251
  if (identity2.isNode(value4))
258255
258252
  value4 = value4.clone(schema);
258256
- return new Pair(key2, value4);
258253
+ return new Pair(key4, value4);
258257
258254
  }
258258
258255
  toJSON(_5, ctx) {
258259
258256
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -258420,11 +258417,11 @@ var require_YAMLMap = __commonJS((exports) => {
258420
258417
  var identity2 = require_identity();
258421
258418
  var Pair = require_Pair();
258422
258419
  var Scalar = require_Scalar();
258423
- function findPair(items, key2) {
258424
- const k5 = identity2.isScalar(key2) ? key2.value : key2;
258420
+ function findPair(items, key4) {
258421
+ const k5 = identity2.isScalar(key4) ? key4.value : key4;
258425
258422
  for (const it2 of items) {
258426
258423
  if (identity2.isPair(it2)) {
258427
- if (it2.key === key2 || it2.key === k5)
258424
+ if (it2.key === key4 || it2.key === k5)
258428
258425
  return it2;
258429
258426
  if (identity2.isScalar(it2.key) && it2.key.value === k5)
258430
258427
  return it2;
@@ -258444,20 +258441,20 @@ var require_YAMLMap = __commonJS((exports) => {
258444
258441
  static from(schema, obj, ctx) {
258445
258442
  const { keepUndefined, replacer } = ctx;
258446
258443
  const map3 = new this(schema);
258447
- const add = (key2, value4) => {
258444
+ const add = (key4, value4) => {
258448
258445
  if (typeof replacer === "function")
258449
- value4 = replacer.call(obj, key2, value4);
258450
- else if (Array.isArray(replacer) && !replacer.includes(key2))
258446
+ value4 = replacer.call(obj, key4, value4);
258447
+ else if (Array.isArray(replacer) && !replacer.includes(key4))
258451
258448
  return;
258452
258449
  if (value4 !== undefined || keepUndefined)
258453
- map3.items.push(Pair.createPair(key2, value4, ctx));
258450
+ map3.items.push(Pair.createPair(key4, value4, ctx));
258454
258451
  };
258455
258452
  if (obj instanceof Map) {
258456
- for (const [key2, value4] of obj)
258457
- add(key2, value4);
258453
+ for (const [key4, value4] of obj)
258454
+ add(key4, value4);
258458
258455
  } else if (obj && typeof obj === "object") {
258459
- for (const key2 of Object.keys(obj))
258460
- add(key2, obj[key2]);
258456
+ for (const key4 of Object.keys(obj))
258457
+ add(key4, obj[key4]);
258461
258458
  }
258462
258459
  if (typeof schema.sortMapEntries === "function") {
258463
258460
  map3.items.sort(schema.sortMapEntries);
@@ -258491,23 +258488,23 @@ var require_YAMLMap = __commonJS((exports) => {
258491
258488
  this.items.push(_pair);
258492
258489
  }
258493
258490
  }
258494
- delete(key2) {
258495
- const it2 = findPair(this.items, key2);
258491
+ delete(key4) {
258492
+ const it2 = findPair(this.items, key4);
258496
258493
  if (!it2)
258497
258494
  return false;
258498
258495
  const del = this.items.splice(this.items.indexOf(it2), 1);
258499
258496
  return del.length > 0;
258500
258497
  }
258501
- get(key2, keepScalar) {
258502
- const it2 = findPair(this.items, key2);
258498
+ get(key4, keepScalar) {
258499
+ const it2 = findPair(this.items, key4);
258503
258500
  const node = it2?.value;
258504
258501
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
258505
258502
  }
258506
- has(key2) {
258507
- return !!findPair(this.items, key2);
258503
+ has(key4) {
258504
+ return !!findPair(this.items, key4);
258508
258505
  }
258509
- set(key2, value4) {
258510
- this.add(new Pair.Pair(key2, value4), true);
258506
+ set(key4, value4) {
258507
+ this.add(new Pair.Pair(key4, value4), true);
258511
258508
  }
258512
258509
  toJSON(_5, ctx, Type) {
258513
258510
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -258578,28 +258575,28 @@ var require_YAMLSeq = __commonJS((exports) => {
258578
258575
  add(value4) {
258579
258576
  this.items.push(value4);
258580
258577
  }
258581
- delete(key2) {
258582
- const idx = asItemIndex(key2);
258578
+ delete(key4) {
258579
+ const idx = asItemIndex(key4);
258583
258580
  if (typeof idx !== "number")
258584
258581
  return false;
258585
258582
  const del = this.items.splice(idx, 1);
258586
258583
  return del.length > 0;
258587
258584
  }
258588
- get(key2, keepScalar) {
258589
- const idx = asItemIndex(key2);
258585
+ get(key4, keepScalar) {
258586
+ const idx = asItemIndex(key4);
258590
258587
  if (typeof idx !== "number")
258591
258588
  return;
258592
258589
  const it2 = this.items[idx];
258593
258590
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
258594
258591
  }
258595
- has(key2) {
258596
- const idx = asItemIndex(key2);
258592
+ has(key4) {
258593
+ const idx = asItemIndex(key4);
258597
258594
  return typeof idx === "number" && idx < this.items.length;
258598
258595
  }
258599
- set(key2, value4) {
258600
- const idx = asItemIndex(key2);
258596
+ set(key4, value4) {
258597
+ const idx = asItemIndex(key4);
258601
258598
  if (typeof idx !== "number")
258602
- throw new Error(`Expected a valid index, not ${key2}.`);
258599
+ throw new Error(`Expected a valid index, not ${key4}.`);
258603
258600
  const prev = this.items[idx];
258604
258601
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
258605
258602
  prev.value = value4;
@@ -258633,8 +258630,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258633
258630
  let i6 = 0;
258634
258631
  for (let it2 of obj) {
258635
258632
  if (typeof replacer === "function") {
258636
- const key2 = obj instanceof Set ? it2 : String(i6++);
258637
- it2 = replacer.call(obj, key2, it2);
258633
+ const key4 = obj instanceof Set ? it2 : String(i6++);
258634
+ it2 = replacer.call(obj, key4, it2);
258638
258635
  }
258639
258636
  seq.items.push(createNode.createNode(it2, undefined, ctx));
258640
258637
  }
@@ -258642,8 +258639,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258642
258639
  return seq;
258643
258640
  }
258644
258641
  }
258645
- function asItemIndex(key2) {
258646
- let idx = identity2.isScalar(key2) ? key2.value : key2;
258642
+ function asItemIndex(key4) {
258643
+ let idx = identity2.isScalar(key4) ? key4.value : key4;
258647
258644
  if (idx && typeof idx === "string")
258648
258645
  idx = Number(idx);
258649
258646
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -259015,25 +259012,25 @@ ${cn.comment}` : item.comment;
259015
259012
  for (let it2 of iterable) {
259016
259013
  if (typeof replacer === "function")
259017
259014
  it2 = replacer.call(iterable, String(i6++), it2);
259018
- let key2, value4;
259015
+ let key4, value4;
259019
259016
  if (Array.isArray(it2)) {
259020
259017
  if (it2.length === 2) {
259021
- key2 = it2[0];
259018
+ key4 = it2[0];
259022
259019
  value4 = it2[1];
259023
259020
  } else
259024
259021
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
259025
259022
  } else if (it2 && it2 instanceof Object) {
259026
259023
  const keys = Object.keys(it2);
259027
259024
  if (keys.length === 1) {
259028
- key2 = keys[0];
259029
- value4 = it2[key2];
259025
+ key4 = keys[0];
259026
+ value4 = it2[key4];
259030
259027
  } else {
259031
259028
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
259032
259029
  }
259033
259030
  } else {
259034
- key2 = it2;
259031
+ key4 = it2;
259035
259032
  }
259036
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
259033
+ pairs2.items.push(Pair.createPair(key4, value4, ctx));
259037
259034
  }
259038
259035
  return pairs2;
259039
259036
  }
@@ -259074,16 +259071,16 @@ var require_omap = __commonJS((exports) => {
259074
259071
  if (ctx?.onCreate)
259075
259072
  ctx.onCreate(map3);
259076
259073
  for (const pair of this.items) {
259077
- let key2, value4;
259074
+ let key4, value4;
259078
259075
  if (identity2.isPair(pair)) {
259079
- key2 = toJS.toJS(pair.key, "", ctx);
259080
- value4 = toJS.toJS(pair.value, key2, ctx);
259076
+ key4 = toJS.toJS(pair.key, "", ctx);
259077
+ value4 = toJS.toJS(pair.value, key4, ctx);
259081
259078
  } else {
259082
- key2 = toJS.toJS(pair, "", ctx);
259079
+ key4 = toJS.toJS(pair, "", ctx);
259083
259080
  }
259084
- if (map3.has(key2))
259081
+ if (map3.has(key4))
259085
259082
  throw new Error("Ordered maps must not include duplicate keys");
259086
- map3.set(key2, value4);
259083
+ map3.set(key4, value4);
259087
259084
  }
259088
259085
  return map3;
259089
259086
  }
@@ -259104,12 +259101,12 @@ var require_omap = __commonJS((exports) => {
259104
259101
  resolve(seq, onError) {
259105
259102
  const pairs$1 = pairs.resolvePairs(seq, onError);
259106
259103
  const seenKeys = [];
259107
- for (const { key: key2 } of pairs$1.items) {
259108
- if (identity2.isScalar(key2)) {
259109
- if (seenKeys.includes(key2.value)) {
259110
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
259104
+ for (const { key: key4 } of pairs$1.items) {
259105
+ if (identity2.isScalar(key4)) {
259106
+ if (seenKeys.includes(key4.value)) {
259107
+ onError(`Ordered maps must not include duplicate keys: ${key4.value}`);
259111
259108
  } else {
259112
- seenKeys.push(key2.value);
259109
+ seenKeys.push(key4.value);
259113
259110
  }
259114
259111
  }
259115
259112
  }
@@ -259283,30 +259280,30 @@ var require_set = __commonJS((exports) => {
259283
259280
  super(schema);
259284
259281
  this.tag = YAMLSet.tag;
259285
259282
  }
259286
- add(key2) {
259283
+ add(key4) {
259287
259284
  let pair;
259288
- if (identity2.isPair(key2))
259289
- pair = key2;
259290
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
259291
- pair = new Pair.Pair(key2.key, null);
259285
+ if (identity2.isPair(key4))
259286
+ pair = key4;
259287
+ else if (key4 && typeof key4 === "object" && "key" in key4 && "value" in key4 && key4.value === null)
259288
+ pair = new Pair.Pair(key4.key, null);
259292
259289
  else
259293
- pair = new Pair.Pair(key2, null);
259290
+ pair = new Pair.Pair(key4, null);
259294
259291
  const prev = YAMLMap.findPair(this.items, pair.key);
259295
259292
  if (!prev)
259296
259293
  this.items.push(pair);
259297
259294
  }
259298
- get(key2, keepPair) {
259299
- const pair = YAMLMap.findPair(this.items, key2);
259295
+ get(key4, keepPair) {
259296
+ const pair = YAMLMap.findPair(this.items, key4);
259300
259297
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
259301
259298
  }
259302
- set(key2, value4) {
259299
+ set(key4, value4) {
259303
259300
  if (typeof value4 !== "boolean")
259304
259301
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
259305
- const prev = YAMLMap.findPair(this.items, key2);
259302
+ const prev = YAMLMap.findPair(this.items, key4);
259306
259303
  if (prev && !value4) {
259307
259304
  this.items.splice(this.items.indexOf(prev), 1);
259308
259305
  } else if (!prev && value4) {
259309
- this.items.push(new Pair.Pair(key2));
259306
+ this.items.push(new Pair.Pair(key4));
259310
259307
  }
259311
259308
  }
259312
259309
  toJSON(_5, ctx) {
@@ -259541,7 +259538,7 @@ var require_tags = __commonJS((exports) => {
259541
259538
  if (Array.isArray(customTags))
259542
259539
  tags = [];
259543
259540
  else {
259544
- const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
259541
+ const keys = Array.from(schemas.keys()).filter((key4) => key4 !== "yaml11").map((key4) => JSON.stringify(key4)).join(", ");
259545
259542
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
259546
259543
  }
259547
259544
  }
@@ -259557,7 +259554,7 @@ var require_tags = __commonJS((exports) => {
259557
259554
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
259558
259555
  if (!tagObj) {
259559
259556
  const tagName = JSON.stringify(tag);
259560
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
259557
+ const keys = Object.keys(tagsByName).map((key4) => JSON.stringify(key4)).join(", ");
259561
259558
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
259562
259559
  }
259563
259560
  if (!tags2.includes(tagObj))
@@ -259792,13 +259789,13 @@ var require_Document = __commonJS((exports) => {
259792
259789
  setAnchors();
259793
259790
  return node;
259794
259791
  }
259795
- createPair(key2, value4, options = {}) {
259796
- const k5 = this.createNode(key2, null, options);
259792
+ createPair(key4, value4, options = {}) {
259793
+ const k5 = this.createNode(key4, null, options);
259797
259794
  const v7 = this.createNode(value4, null, options);
259798
259795
  return new Pair.Pair(k5, v7);
259799
259796
  }
259800
- delete(key2) {
259801
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
259797
+ delete(key4) {
259798
+ return assertCollection(this.contents) ? this.contents.delete(key4) : false;
259802
259799
  }
259803
259800
  deleteIn(path5) {
259804
259801
  if (Collection.isEmptyPath(path5)) {
@@ -259809,27 +259806,27 @@ var require_Document = __commonJS((exports) => {
259809
259806
  }
259810
259807
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
259811
259808
  }
259812
- get(key2, keepScalar) {
259813
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
259809
+ get(key4, keepScalar) {
259810
+ return identity2.isCollection(this.contents) ? this.contents.get(key4, keepScalar) : undefined;
259814
259811
  }
259815
259812
  getIn(path5, keepScalar) {
259816
259813
  if (Collection.isEmptyPath(path5))
259817
259814
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
259818
259815
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
259819
259816
  }
259820
- has(key2) {
259821
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
259817
+ has(key4) {
259818
+ return identity2.isCollection(this.contents) ? this.contents.has(key4) : false;
259822
259819
  }
259823
259820
  hasIn(path5) {
259824
259821
  if (Collection.isEmptyPath(path5))
259825
259822
  return this.contents !== undefined;
259826
259823
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
259827
259824
  }
259828
- set(key2, value4) {
259825
+ set(key4, value4) {
259829
259826
  if (this.contents == null) {
259830
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
259827
+ this.contents = Collection.collectionFromPath(this.schema, [key4], value4);
259831
259828
  } else if (assertCollection(this.contents)) {
259832
- this.contents.set(key2, value4);
259829
+ this.contents.set(key4, value4);
259833
259830
  }
259834
259831
  }
259835
259832
  setIn(path5, value4) {
@@ -260113,25 +260110,25 @@ var require_resolve_props = __commonJS((exports) => {
260113
260110
 
260114
260111
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
260115
260112
  var require_util_contains_newline = __commonJS((exports) => {
260116
- function containsNewline(key2) {
260117
- if (!key2)
260113
+ function containsNewline(key4) {
260114
+ if (!key4)
260118
260115
  return null;
260119
- switch (key2.type) {
260116
+ switch (key4.type) {
260120
260117
  case "alias":
260121
260118
  case "scalar":
260122
260119
  case "double-quoted-scalar":
260123
260120
  case "single-quoted-scalar":
260124
- if (key2.source.includes(`
260121
+ if (key4.source.includes(`
260125
260122
  `))
260126
260123
  return true;
260127
- if (key2.end) {
260128
- for (const st2 of key2.end)
260124
+ if (key4.end) {
260125
+ for (const st2 of key4.end)
260129
260126
  if (st2.type === "newline")
260130
260127
  return true;
260131
260128
  }
260132
260129
  return false;
260133
260130
  case "flow-collection":
260134
- for (const it2 of key2.items) {
260131
+ for (const it2 of key4.items) {
260135
260132
  for (const st2 of it2.start)
260136
260133
  if (st2.type === "newline")
260137
260134
  return true;
@@ -260196,10 +260193,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260196
260193
  let offset = bm.offset;
260197
260194
  let commentEnd = null;
260198
260195
  for (const collItem of bm.items) {
260199
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260196
+ const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
260200
260197
  const keyProps = resolveProps.resolveProps(start3, {
260201
260198
  indicator: "explicit-key-ind",
260202
- next: key2 ?? sep3?.[0],
260199
+ next: key4 ?? sep3?.[0],
260203
260200
  offset,
260204
260201
  onError,
260205
260202
  parentIndent: bm.indent,
@@ -260207,10 +260204,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260207
260204
  });
260208
260205
  const implicitKey = !keyProps.found;
260209
260206
  if (implicitKey) {
260210
- if (key2) {
260211
- if (key2.type === "block-seq")
260207
+ if (key4) {
260208
+ if (key4.type === "block-seq")
260212
260209
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
260213
- else if ("indent" in key2 && key2.indent !== bm.indent)
260210
+ else if ("indent" in key4 && key4.indent !== bm.indent)
260214
260211
  onError(offset, "BAD_INDENT", startColMsg);
260215
260212
  }
260216
260213
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -260224,17 +260221,17 @@ var require_resolve_block_map = __commonJS((exports) => {
260224
260221
  }
260225
260222
  continue;
260226
260223
  }
260227
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
260228
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260224
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key4)) {
260225
+ onError(key4 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260229
260226
  }
260230
260227
  } else if (keyProps.found?.indent !== bm.indent) {
260231
260228
  onError(offset, "BAD_INDENT", startColMsg);
260232
260229
  }
260233
260230
  ctx.atKey = true;
260234
260231
  const keyStart = keyProps.end;
260235
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260232
+ const keyNode = key4 ? composeNode(ctx, key4, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260236
260233
  if (ctx.schema.compat)
260237
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
260234
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key4, onError);
260238
260235
  ctx.atKey = false;
260239
260236
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
260240
260237
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -260244,7 +260241,7 @@ var require_resolve_block_map = __commonJS((exports) => {
260244
260241
  offset: keyNode.range[2],
260245
260242
  onError,
260246
260243
  parentIndent: bm.indent,
260247
- startOnNewline: !key2 || key2.type === "block-scalar"
260244
+ startOnNewline: !key4 || key4.type === "block-scalar"
260248
260245
  });
260249
260246
  offset = valueProps.end;
260250
260247
  if (valueProps.found) {
@@ -260400,11 +260397,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260400
260397
  let offset = fc.offset + fc.start.source.length;
260401
260398
  for (let i6 = 0;i6 < fc.items.length; ++i6) {
260402
260399
  const collItem = fc.items[i6];
260403
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260400
+ const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
260404
260401
  const props = resolveProps.resolveProps(start3, {
260405
260402
  flow: fcName,
260406
260403
  indicator: "explicit-key-ind",
260407
- next: key2 ?? sep3?.[0],
260404
+ next: key4 ?? sep3?.[0],
260408
260405
  offset,
260409
260406
  onError,
260410
260407
  parentIndent: fc.indent,
@@ -260426,8 +260423,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260426
260423
  offset = props.end;
260427
260424
  continue;
260428
260425
  }
260429
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
260430
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260426
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key4))
260427
+ onError(key4, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260431
260428
  }
260432
260429
  if (i6 === 0) {
260433
260430
  if (props.comma)
@@ -260472,8 +260469,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260472
260469
  } else {
260473
260470
  ctx.atKey = true;
260474
260471
  const keyStart = props.end;
260475
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260476
- if (isBlock(key2))
260472
+ const keyNode = key4 ? composeNode(ctx, key4, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260473
+ if (isBlock(key4))
260477
260474
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
260478
260475
  ctx.atKey = false;
260479
260476
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -261285,7 +261282,7 @@ var require_composer = __commonJS((exports) => {
261285
261282
  var node_process = __require("node:process");
261286
261283
  var directives4 = require_directives2();
261287
261284
  var Document = require_Document();
261288
- var errors2 = require_errors3();
261285
+ var errors4 = require_errors3();
261289
261286
  var identity2 = require_identity();
261290
261287
  var composeDoc = require_compose_doc();
261291
261288
  var resolveEnd = require_resolve_end();
@@ -261336,9 +261333,9 @@ var require_composer = __commonJS((exports) => {
261336
261333
  this.onError = (source, code2, message, warning) => {
261337
261334
  const pos = getErrorPos(source);
261338
261335
  if (warning)
261339
- this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
261336
+ this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
261340
261337
  else
261341
- this.errors.push(new errors2.YAMLParseError(pos, code2, message));
261338
+ this.errors.push(new errors4.YAMLParseError(pos, code2, message));
261342
261339
  };
261343
261340
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
261344
261341
  this.options = options;
@@ -261422,7 +261419,7 @@ ${cb}` : comment;
261422
261419
  break;
261423
261420
  case "error": {
261424
261421
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
261425
- const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261422
+ const error5 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261426
261423
  if (this.atDirectives || !this.doc)
261427
261424
  this.errors.push(error5);
261428
261425
  else
@@ -261432,7 +261429,7 @@ ${cb}` : comment;
261432
261429
  case "doc-end": {
261433
261430
  if (!this.doc) {
261434
261431
  const msg = "Unexpected doc-end without preceding document";
261435
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261432
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261436
261433
  break;
261437
261434
  }
261438
261435
  this.doc.directives.docEnd = true;
@@ -261447,7 +261444,7 @@ ${end.comment}` : end.comment;
261447
261444
  break;
261448
261445
  }
261449
261446
  default:
261450
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261447
+ this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261451
261448
  }
261452
261449
  }
261453
261450
  *end(forceDoc = false, endOffset = -1) {
@@ -261473,7 +261470,7 @@ ${end.comment}` : end.comment;
261473
261470
  var require_cst_scalar = __commonJS((exports) => {
261474
261471
  var resolveBlockScalar = require_resolve_block_scalar();
261475
261472
  var resolveFlowScalar = require_resolve_flow_scalar();
261476
- var errors2 = require_errors3();
261473
+ var errors4 = require_errors3();
261477
261474
  var stringifyString = require_stringifyString();
261478
261475
  function resolveAsScalar(token, strict = true, onError) {
261479
261476
  if (token) {
@@ -261482,7 +261479,7 @@ var require_cst_scalar = __commonJS((exports) => {
261482
261479
  if (onError)
261483
261480
  onError(offset, code2, message);
261484
261481
  else
261485
- throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
261482
+ throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
261486
261483
  };
261487
261484
  switch (token.type) {
261488
261485
  case "scalar":
@@ -261596,9 +261593,9 @@ var require_cst_scalar = __commonJS((exports) => {
261596
261593
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
261597
261594
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
261598
261595
  ` });
261599
- for (const key2 of Object.keys(token))
261600
- if (key2 !== "type" && key2 !== "offset")
261601
- delete token[key2];
261596
+ for (const key4 of Object.keys(token))
261597
+ if (key4 !== "type" && key4 !== "offset")
261598
+ delete token[key4];
261602
261599
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
261603
261600
  }
261604
261601
  }
@@ -261647,9 +261644,9 @@ var require_cst_scalar = __commonJS((exports) => {
261647
261644
  default: {
261648
261645
  const indent2 = "indent" in token ? token.indent : -1;
261649
261646
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
261650
- for (const key2 of Object.keys(token))
261651
- if (key2 !== "type" && key2 !== "offset")
261652
- delete token[key2];
261647
+ for (const key4 of Object.keys(token))
261648
+ if (key4 !== "type" && key4 !== "offset")
261649
+ delete token[key4];
261653
261650
  Object.assign(token, { type: type4, indent: indent2, source, end });
261654
261651
  }
261655
261652
  }
@@ -261701,12 +261698,12 @@ var require_cst_stringify = __commonJS((exports) => {
261701
261698
  }
261702
261699
  }
261703
261700
  }
261704
- function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
261701
+ function stringifyItem({ start: start3, key: key4, sep: sep3, value: value4 }) {
261705
261702
  let res = "";
261706
261703
  for (const st2 of start3)
261707
261704
  res += st2.source;
261708
- if (key2)
261709
- res += stringifyToken(key2);
261705
+ if (key4)
261706
+ res += stringifyToken(key4);
261710
261707
  if (sep3)
261711
261708
  for (const st2 of sep3)
261712
261709
  res += st2.source;
@@ -263003,7 +263000,7 @@ var require_parser2 = __commonJS((exports) => {
263003
263000
  });
263004
263001
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
263005
263002
  const start4 = getFirstKeyStartProps(it2.start);
263006
- const key2 = it2.key;
263003
+ const key4 = it2.key;
263007
263004
  const sep3 = it2.sep;
263008
263005
  sep3.push(this.sourceToken);
263009
263006
  delete it2.key;
@@ -263012,7 +263009,7 @@ var require_parser2 = __commonJS((exports) => {
263012
263009
  type: "block-map",
263013
263010
  offset: this.offset,
263014
263011
  indent: this.indent,
263015
- items: [{ start: start4, key: key2, sep: sep3 }]
263012
+ items: [{ start: start4, key: key4, sep: sep3 }]
263016
263013
  });
263017
263014
  } else if (start3.length > 0) {
263018
263015
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -263335,7 +263332,7 @@ var require_parser2 = __commonJS((exports) => {
263335
263332
  var require_public_api = __commonJS((exports) => {
263336
263333
  var composer = require_composer();
263337
263334
  var Document = require_Document();
263338
- var errors2 = require_errors3();
263335
+ var errors4 = require_errors3();
263339
263336
  var log = require_log();
263340
263337
  var identity2 = require_identity();
263341
263338
  var lineCounter = require_line_counter();
@@ -263352,8 +263349,8 @@ var require_public_api = __commonJS((exports) => {
263352
263349
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
263353
263350
  if (prettyErrors && lineCounter2)
263354
263351
  for (const doc of docs) {
263355
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263356
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263352
+ doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
263353
+ doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
263357
263354
  }
263358
263355
  if (docs.length > 0)
263359
263356
  return docs;
@@ -263368,13 +263365,13 @@ var require_public_api = __commonJS((exports) => {
263368
263365
  if (!doc)
263369
263366
  doc = _doc;
263370
263367
  else if (doc.options.logLevel !== "silent") {
263371
- doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263368
+ doc.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263372
263369
  break;
263373
263370
  }
263374
263371
  }
263375
263372
  if (prettyErrors && lineCounter2) {
263376
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263377
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263373
+ doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
263374
+ doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
263378
263375
  }
263379
263376
  return doc;
263380
263377
  }
@@ -274462,7 +274459,7 @@ function pruneCurrentEnv(currentEnv, env2) {
274462
274459
  var package_default = {
274463
274460
  name: "@settlemint/sdk-cli",
274464
274461
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
274465
- version: "1.1.3-main3dbd1505",
274462
+ version: "1.1.3-main63f795f5",
274466
274463
  type: "module",
274467
274464
  private: false,
274468
274465
  license: "FSL-1.1-MIT",
@@ -274507,18 +274504,18 @@ var package_default = {
274507
274504
  devDependencies: {
274508
274505
  "@commander-js/extra-typings": "13.1.0",
274509
274506
  "@inquirer/confirm": "5.1.5",
274510
- "@inquirer/input": "4.1.5",
274511
- "@inquirer/password": "4.0.8",
274507
+ "@inquirer/input": "4.1.4",
274508
+ "@inquirer/password": "4.0.7",
274512
274509
  "@inquirer/select": "4.0.8",
274513
- "@settlemint/sdk-js": "1.1.3-main3dbd1505",
274514
- "@settlemint/sdk-utils": "1.1.3-main3dbd1505",
274515
- "@types/node": "22.13.1",
274510
+ "@settlemint/sdk-js": "1.1.3-main63f795f5",
274511
+ "@settlemint/sdk-utils": "1.1.3-main63f795f5",
274512
+ "@types/node": "22.13.0",
274516
274513
  "@types/semver": "7.5.8",
274517
274514
  "@types/which": "3.0.4",
274518
274515
  "get-tsconfig": "4.10.0",
274519
274516
  giget: "1.2.4",
274520
274517
  "is-in-ci": "1.0.0",
274521
- semver: "7.7.1",
274518
+ semver: "7.7.0",
274522
274519
  slugify: "1.6.6",
274523
274520
  which: "5.0.0",
274524
274521
  yaml: "2.7.0",
@@ -276551,7 +276548,6 @@ function initGraphQLTada() {
276551
276548
  var t2 = initGraphQLTada();
276552
276549
 
276553
276550
  // ../js/dist/settlemint.mjs
276554
- import { createHash } from "node:crypto";
276555
276551
  var graphql = initGraphQLTada();
276556
276552
  var WorkspaceFragment = graphql(`
276557
276553
  fragment Workspace on Workspace {
@@ -277852,50 +277848,6 @@ var ClientOptionsSchema = z.object({
277852
277848
  accessToken: AccessTokenSchema2,
277853
277849
  instance: UrlSchema2
277854
277850
  });
277855
- function hashPincode(pincode, salt) {
277856
- return createHash("sha256").update(`${salt}${pincode}`).digest("hex");
277857
- }
277858
- function generateResponse(pincode, salt, challenge) {
277859
- const hashedPincode = hashPincode(pincode, salt);
277860
- return createHash("sha256").update(`${hashedPincode}_${challenge}`).digest("hex");
277861
- }
277862
- async function getPincodeVerificationResponse({
277863
- userWalletAddress,
277864
- pincode,
277865
- accessToken,
277866
- instance,
277867
- nodeId
277868
- }) {
277869
- const response = await fetch(`${instance}/cm/nodes/${encodeURIComponent(nodeId)}/user-wallets/${encodeURIComponent(userWalletAddress)}/verifications/challenges`, {
277870
- method: "POST",
277871
- headers: {
277872
- "Content-Type": "application/json",
277873
- "x-auth-token": accessToken
277874
- },
277875
- body: JSON.stringify({
277876
- pincode,
277877
- verificationType: "PINCODE",
277878
- name: "pincode"
277879
- })
277880
- });
277881
- if (!response.ok) {
277882
- if (response.status === 404) {
277883
- throw new Error(`No user wallet found with address '${userWalletAddress}' for node '${nodeId}'`);
277884
- }
277885
- throw new Error("Failed to get verification challenge");
277886
- }
277887
- const verificationChallenges = await response.json();
277888
- if (!verificationChallenges.length) {
277889
- throw new Error("No verification challenges received");
277890
- }
277891
- const firstChallenge = verificationChallenges[0];
277892
- const challenge = firstChallenge?.challenge;
277893
- if (!challenge?.secret || !challenge?.salt) {
277894
- throw new Error("Could not authenticate pin code, invalid challenge format");
277895
- }
277896
- const { secret, salt } = challenge;
277897
- return generateResponse(pincode, salt, secret);
277898
- }
277899
277851
  function createSettleMintClient(options) {
277900
277852
  ensureServer();
277901
277853
  const validatedOptions = options.anonymous ? validate2(z.object({
@@ -277993,13 +277945,6 @@ function createSettleMintClient(options) {
277993
277945
  },
277994
277946
  platform: {
277995
277947
  config: getPlatformConfig(gqlClient)
277996
- },
277997
- wallet: {
277998
- pincodeVerificationResponse: (args) => getPincodeVerificationResponse({
277999
- ...args,
278000
- instance: validatedOptions.instance,
278001
- accessToken: validatedOptions.accessToken
278002
- })
278003
277948
  }
278004
277949
  };
278005
277950
  }
@@ -280235,23 +280180,478 @@ var esm_default3 = createPrompt((config3, done) => {
280235
280180
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
280236
280181
  });
280237
280182
 
280183
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
280184
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
280185
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
280186
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
280187
+ class AbortPromptError2 extends Error {
280188
+ name = "AbortPromptError";
280189
+ message = "Prompt was aborted";
280190
+ constructor(options) {
280191
+ super();
280192
+ this.cause = options?.cause;
280193
+ }
280194
+ }
280195
+
280196
+ class CancelPromptError2 extends Error {
280197
+ name = "CancelPromptError";
280198
+ message = "Prompt was canceled";
280199
+ }
280200
+
280201
+ class ExitPromptError2 extends Error {
280202
+ name = "ExitPromptError";
280203
+ }
280204
+
280205
+ class HookError2 extends Error {
280206
+ name = "HookError";
280207
+ }
280208
+
280209
+ class ValidationError2 extends Error {
280210
+ name = "ValidationError";
280211
+ }
280212
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280213
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
280214
+
280215
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
280216
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
280217
+ var hookStorage2 = new AsyncLocalStorage2;
280218
+ function createStore2(rl) {
280219
+ const store = {
280220
+ rl,
280221
+ hooks: [],
280222
+ hooksCleanup: [],
280223
+ hooksEffect: [],
280224
+ index: 0,
280225
+ handleChange() {
280226
+ }
280227
+ };
280228
+ return store;
280229
+ }
280230
+ function withHooks2(rl, cb) {
280231
+ const store = createStore2(rl);
280232
+ return hookStorage2.run(store, () => {
280233
+ function cycle(render) {
280234
+ store.handleChange = () => {
280235
+ store.index = 0;
280236
+ render();
280237
+ };
280238
+ store.handleChange();
280239
+ }
280240
+ return cb(cycle);
280241
+ });
280242
+ }
280243
+ function getStore2() {
280244
+ const store = hookStorage2.getStore();
280245
+ if (!store) {
280246
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
280247
+ }
280248
+ return store;
280249
+ }
280250
+ function readline3() {
280251
+ return getStore2().rl;
280252
+ }
280253
+ function withUpdates2(fn) {
280254
+ const wrapped = (...args) => {
280255
+ const store = getStore2();
280256
+ let shouldUpdate = false;
280257
+ const oldHandleChange = store.handleChange;
280258
+ store.handleChange = () => {
280259
+ shouldUpdate = true;
280260
+ };
280261
+ const returnValue = fn(...args);
280262
+ if (shouldUpdate) {
280263
+ oldHandleChange();
280264
+ }
280265
+ store.handleChange = oldHandleChange;
280266
+ return returnValue;
280267
+ };
280268
+ return AsyncResource4.bind(wrapped);
280269
+ }
280270
+ function withPointer2(cb) {
280271
+ const store = getStore2();
280272
+ const { index } = store;
280273
+ const pointer = {
280274
+ get() {
280275
+ return store.hooks[index];
280276
+ },
280277
+ set(value4) {
280278
+ store.hooks[index] = value4;
280279
+ },
280280
+ initialized: index in store.hooks
280281
+ };
280282
+ const returnValue = cb(pointer);
280283
+ store.index++;
280284
+ return returnValue;
280285
+ }
280286
+ function handleChange2() {
280287
+ getStore2().handleChange();
280288
+ }
280289
+ var effectScheduler2 = {
280290
+ queue(cb) {
280291
+ const store = getStore2();
280292
+ const { index } = store;
280293
+ store.hooksEffect.push(() => {
280294
+ store.hooksCleanup[index]?.();
280295
+ const cleanFn = cb(readline3());
280296
+ if (cleanFn != null && typeof cleanFn !== "function") {
280297
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
280298
+ }
280299
+ store.hooksCleanup[index] = cleanFn;
280300
+ });
280301
+ },
280302
+ run() {
280303
+ const store = getStore2();
280304
+ withUpdates2(() => {
280305
+ store.hooksEffect.forEach((effect) => {
280306
+ effect();
280307
+ });
280308
+ store.hooksEffect.length = 0;
280309
+ })();
280310
+ },
280311
+ clearAll() {
280312
+ const store = getStore2();
280313
+ store.hooksCleanup.forEach((cleanFn) => {
280314
+ cleanFn?.();
280315
+ });
280316
+ store.hooksEffect.length = 0;
280317
+ store.hooksCleanup.length = 0;
280318
+ }
280319
+ };
280320
+
280321
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
280322
+ function useState2(defaultValue) {
280323
+ return withPointer2((pointer) => {
280324
+ const setFn = (newValue) => {
280325
+ if (pointer.get() !== newValue) {
280326
+ pointer.set(newValue);
280327
+ handleChange2();
280328
+ }
280329
+ };
280330
+ if (pointer.initialized) {
280331
+ return [pointer.get(), setFn];
280332
+ }
280333
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
280334
+ pointer.set(value4);
280335
+ return [value4, setFn];
280336
+ });
280337
+ }
280338
+
280339
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
280340
+ function useEffect2(cb, depArray) {
280341
+ withPointer2((pointer) => {
280342
+ const oldDeps = pointer.get();
280343
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
280344
+ if (hasChanged) {
280345
+ effectScheduler2.queue(cb);
280346
+ }
280347
+ pointer.set(depArray);
280348
+ });
280349
+ }
280350
+
280351
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
280352
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
280353
+ var defaultTheme2 = {
280354
+ prefix: {
280355
+ idle: import_yoctocolors_cjs4.default.blue("?"),
280356
+ done: import_yoctocolors_cjs4.default.green(esm_default.tick)
280357
+ },
280358
+ spinner: {
280359
+ interval: 80,
280360
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
280361
+ },
280362
+ style: {
280363
+ answer: import_yoctocolors_cjs4.default.cyan,
280364
+ message: import_yoctocolors_cjs4.default.bold,
280365
+ error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
280366
+ defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
280367
+ help: import_yoctocolors_cjs4.default.dim,
280368
+ highlight: import_yoctocolors_cjs4.default.cyan,
280369
+ key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
280370
+ }
280371
+ };
280372
+
280373
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
280374
+ function isPlainObject3(value4) {
280375
+ if (typeof value4 !== "object" || value4 === null)
280376
+ return false;
280377
+ let proto = value4;
280378
+ while (Object.getPrototypeOf(proto) !== null) {
280379
+ proto = Object.getPrototypeOf(proto);
280380
+ }
280381
+ return Object.getPrototypeOf(value4) === proto;
280382
+ }
280383
+ function deepMerge3(...objects) {
280384
+ const output = {};
280385
+ for (const obj of objects) {
280386
+ for (const [key2, value4] of Object.entries(obj)) {
280387
+ const prevValue = output[key2];
280388
+ output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
280389
+ }
280390
+ }
280391
+ return output;
280392
+ }
280393
+ function makeTheme2(...themes) {
280394
+ const themesToMerge = [
280395
+ defaultTheme2,
280396
+ ...themes.filter((theme) => theme != null)
280397
+ ];
280398
+ return deepMerge3(...themesToMerge);
280399
+ }
280400
+
280401
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280402
+ function usePrefix2({ status = "idle", theme }) {
280403
+ const [showLoader, setShowLoader] = useState2(false);
280404
+ const [tick, setTick] = useState2(0);
280405
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
280406
+ useEffect2(() => {
280407
+ if (status === "loading") {
280408
+ let tickInterval;
280409
+ let inc = -1;
280410
+ const delayTimeout = setTimeout(AsyncResource5.bind(() => {
280411
+ setShowLoader(true);
280412
+ tickInterval = setInterval(AsyncResource5.bind(() => {
280413
+ inc = inc + 1;
280414
+ setTick(inc % spinner2.frames.length);
280415
+ }), spinner2.interval);
280416
+ }), 300);
280417
+ return () => {
280418
+ clearTimeout(delayTimeout);
280419
+ clearInterval(tickInterval);
280420
+ };
280421
+ } else {
280422
+ setShowLoader(false);
280423
+ }
280424
+ }, [status]);
280425
+ if (showLoader) {
280426
+ return spinner2.frames[tick];
280427
+ }
280428
+ const iconName = status === "loading" ? "idle" : status;
280429
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
280430
+ }
280431
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
280432
+ function useRef2(val) {
280433
+ return useState2({ current: val })[0];
280434
+ }
280435
+
280436
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
280437
+ function useKeypress2(userHandler) {
280438
+ const signal = useRef2(userHandler);
280439
+ signal.current = userHandler;
280440
+ useEffect2((rl) => {
280441
+ let ignore = false;
280442
+ const handler = withUpdates2((_input, event) => {
280443
+ if (ignore)
280444
+ return;
280445
+ signal.current(event, rl);
280446
+ });
280447
+ rl.input.on("keypress", handler);
280448
+ return () => {
280449
+ ignore = true;
280450
+ rl.input.removeListener("keypress", handler);
280451
+ };
280452
+ }, []);
280453
+ }
280454
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
280455
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
280456
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
280457
+ function breakLines2(content, width) {
280458
+ return content.split(`
280459
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
280460
+ `).map((str) => str.trimEnd())).join(`
280461
+ `);
280462
+ }
280463
+ function readlineWidth2() {
280464
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
280465
+ }
280466
+
280467
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280468
+ var import_mute_stream2 = __toESM(require_lib(), 1);
280469
+ import * as readline4 from "node:readline";
280470
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
280471
+
280472
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
280473
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280474
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
280475
+ var height2 = (content) => content.split(`
280476
+ `).length;
280477
+ var lastLine2 = (content) => content.split(`
280478
+ `).pop() ?? "";
280479
+ function cursorDown2(n6) {
280480
+ return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
280481
+ }
280482
+
280483
+ class ScreenManager2 {
280484
+ rl;
280485
+ height = 0;
280486
+ extraLinesUnderPrompt = 0;
280487
+ cursorPos;
280488
+ constructor(rl) {
280489
+ this.rl = rl;
280490
+ this.rl = rl;
280491
+ this.cursorPos = rl.getCursorPos();
280492
+ }
280493
+ write(content) {
280494
+ this.rl.output.unmute();
280495
+ this.rl.output.write(content);
280496
+ this.rl.output.mute();
280497
+ }
280498
+ render(content, bottomContent = "") {
280499
+ const promptLine = lastLine2(content);
280500
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
280501
+ let prompt = rawPromptLine;
280502
+ if (this.rl.line.length > 0) {
280503
+ prompt = prompt.slice(0, -this.rl.line.length);
280504
+ }
280505
+ this.rl.setPrompt(prompt);
280506
+ this.cursorPos = this.rl.getCursorPos();
280507
+ const width = readlineWidth2();
280508
+ content = breakLines2(content, width);
280509
+ bottomContent = breakLines2(bottomContent, width);
280510
+ if (rawPromptLine.length % width === 0) {
280511
+ content += `
280512
+ `;
280513
+ }
280514
+ let output = content + (bottomContent ? `
280515
+ ` + bottomContent : "");
280516
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
280517
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
280518
+ if (bottomContentHeight > 0)
280519
+ output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
280520
+ output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
280521
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
280522
+ this.extraLinesUnderPrompt = bottomContentHeight;
280523
+ this.height = height2(output);
280524
+ }
280525
+ checkCursorPos() {
280526
+ const cursorPos = this.rl.getCursorPos();
280527
+ if (cursorPos.cols !== this.cursorPos.cols) {
280528
+ this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
280529
+ this.cursorPos = cursorPos;
280530
+ }
280531
+ }
280532
+ done({ clearContent }) {
280533
+ this.rl.setPrompt("");
280534
+ let output = cursorDown2(this.extraLinesUnderPrompt);
280535
+ output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
280536
+ `;
280537
+ output += import_ansi_escapes3.default.cursorShow;
280538
+ this.write(output);
280539
+ this.rl.close();
280540
+ }
280541
+ }
280542
+
280543
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
280544
+ class PromisePolyfill2 extends Promise {
280545
+ static withResolver() {
280546
+ let resolve6;
280547
+ let reject;
280548
+ const promise = new Promise((res, rej) => {
280549
+ resolve6 = res;
280550
+ reject = rej;
280551
+ });
280552
+ return { promise, resolve: resolve6, reject };
280553
+ }
280554
+ }
280555
+
280556
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280557
+ function getCallSites2() {
280558
+ const _prepareStackTrace = Error.prepareStackTrace;
280559
+ try {
280560
+ let result = [];
280561
+ Error.prepareStackTrace = (_5, callSites) => {
280562
+ const callSitesWithoutCurrent = callSites.slice(1);
280563
+ result = callSitesWithoutCurrent;
280564
+ return callSitesWithoutCurrent;
280565
+ };
280566
+ new Error().stack;
280567
+ return result;
280568
+ } finally {
280569
+ Error.prepareStackTrace = _prepareStackTrace;
280570
+ }
280571
+ }
280572
+ function createPrompt2(view) {
280573
+ const callSites = getCallSites2();
280574
+ const callerFilename = callSites[1]?.getFileName?.();
280575
+ const prompt = (config3, context = {}) => {
280576
+ const { input = process.stdin, signal } = context;
280577
+ const cleanups = new Set;
280578
+ const output = new import_mute_stream2.default;
280579
+ output.pipe(context.output ?? process.stdout);
280580
+ const rl = readline4.createInterface({
280581
+ terminal: true,
280582
+ input,
280583
+ output
280584
+ });
280585
+ const screen = new ScreenManager2(rl);
280586
+ const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
280587
+ const cancel3 = () => reject(new CancelPromptError2);
280588
+ if (signal) {
280589
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
280590
+ if (signal.aborted) {
280591
+ abort();
280592
+ return Object.assign(promise, { cancel: cancel3 });
280593
+ }
280594
+ signal.addEventListener("abort", abort);
280595
+ cleanups.add(() => signal.removeEventListener("abort", abort));
280596
+ }
280597
+ cleanups.add(onExit((code2, signal2) => {
280598
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
280599
+ }));
280600
+ const checkCursorPos = () => screen.checkCursorPos();
280601
+ rl.input.on("keypress", checkCursorPos);
280602
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
280603
+ return withHooks2(rl, (cycle) => {
280604
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
280605
+ rl.on("close", hooksCleanup);
280606
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
280607
+ cycle(() => {
280608
+ try {
280609
+ const nextView = view(config3, (value4) => {
280610
+ setImmediate(() => resolve6(value4));
280611
+ });
280612
+ if (nextView === undefined) {
280613
+ throw new Error(`Prompt functions must return a string.
280614
+ at ${callerFilename}`);
280615
+ }
280616
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
280617
+ screen.render(content, bottomContent);
280618
+ effectScheduler2.run();
280619
+ } catch (error5) {
280620
+ reject(error5);
280621
+ }
280622
+ });
280623
+ return Object.assign(promise.then((answer) => {
280624
+ effectScheduler2.clearAll();
280625
+ return answer;
280626
+ }, (error5) => {
280627
+ effectScheduler2.clearAll();
280628
+ throw error5;
280629
+ }).finally(() => {
280630
+ cleanups.forEach((cleanup) => cleanup());
280631
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
280632
+ output.end();
280633
+ }).then(() => promise), { cancel: cancel3 });
280634
+ });
280635
+ };
280636
+ return prompt;
280637
+ }
280238
280638
  // ../../node_modules/@inquirer/input/dist/esm/index.js
280239
280639
  var inputTheme = {
280240
280640
  validationFailureMode: "keep"
280241
280641
  };
280242
- var esm_default4 = createPrompt((config3, done) => {
280642
+ var esm_default4 = createPrompt2((config3, done) => {
280243
280643
  const { required, validate: validate3 = () => true } = config3;
280244
- const theme = makeTheme(inputTheme, config3.theme);
280245
- const [status, setStatus] = useState("idle");
280246
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
280247
- const [errorMsg, setError] = useState();
280248
- const [value4, setValue] = useState("");
280249
- const prefix = usePrefix({ status, theme });
280250
- useKeypress(async (key2, rl) => {
280644
+ const theme = makeTheme2(inputTheme, config3.theme);
280645
+ const [status, setStatus] = useState2("idle");
280646
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
280647
+ const [errorMsg, setError] = useState2();
280648
+ const [value4, setValue] = useState2("");
280649
+ const prefix = usePrefix2({ status, theme });
280650
+ useKeypress2(async (key3, rl) => {
280251
280651
  if (status !== "idle") {
280252
280652
  return;
280253
280653
  }
280254
- if (isEnterKey(key2)) {
280654
+ if (isEnterKey2(key3)) {
280255
280655
  const answer = value4 || defaultValue;
280256
280656
  setStatus("loading");
280257
280657
  const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
@@ -280268,9 +280668,9 @@ var esm_default4 = createPrompt((config3, done) => {
280268
280668
  setError(isValid2 || "You must provide a valid value");
280269
280669
  setStatus("idle");
280270
280670
  }
280271
- } else if (isBackspaceKey(key2) && !value4) {
280671
+ } else if (isBackspaceKey2(key3) && !value4) {
280272
280672
  setDefaultValue(undefined);
280273
- } else if (key2.name === "tab" && !value4) {
280673
+ } else if (key3.name === "tab" && !value4) {
280274
280674
  setDefaultValue(undefined);
280275
280675
  rl.clearLine(0);
280276
280676
  rl.write(defaultValue);
@@ -280301,20 +280701,474 @@ var esm_default4 = createPrompt((config3, done) => {
280301
280701
  ];
280302
280702
  });
280303
280703
 
280704
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
280705
+ var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
280706
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
280707
+ class AbortPromptError3 extends Error {
280708
+ name = "AbortPromptError";
280709
+ message = "Prompt was aborted";
280710
+ constructor(options) {
280711
+ super();
280712
+ this.cause = options?.cause;
280713
+ }
280714
+ }
280715
+
280716
+ class CancelPromptError3 extends Error {
280717
+ name = "CancelPromptError";
280718
+ message = "Prompt was canceled";
280719
+ }
280720
+
280721
+ class ExitPromptError3 extends Error {
280722
+ name = "ExitPromptError";
280723
+ }
280724
+
280725
+ class HookError3 extends Error {
280726
+ name = "HookError";
280727
+ }
280728
+
280729
+ class ValidationError3 extends Error {
280730
+ name = "ValidationError";
280731
+ }
280732
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280733
+ import { AsyncResource as AsyncResource8 } from "node:async_hooks";
280734
+
280735
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
280736
+ import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
280737
+ var hookStorage3 = new AsyncLocalStorage3;
280738
+ function createStore3(rl) {
280739
+ const store = {
280740
+ rl,
280741
+ hooks: [],
280742
+ hooksCleanup: [],
280743
+ hooksEffect: [],
280744
+ index: 0,
280745
+ handleChange() {
280746
+ }
280747
+ };
280748
+ return store;
280749
+ }
280750
+ function withHooks3(rl, cb) {
280751
+ const store = createStore3(rl);
280752
+ return hookStorage3.run(store, () => {
280753
+ function cycle(render) {
280754
+ store.handleChange = () => {
280755
+ store.index = 0;
280756
+ render();
280757
+ };
280758
+ store.handleChange();
280759
+ }
280760
+ return cb(cycle);
280761
+ });
280762
+ }
280763
+ function getStore3() {
280764
+ const store = hookStorage3.getStore();
280765
+ if (!store) {
280766
+ throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
280767
+ }
280768
+ return store;
280769
+ }
280770
+ function readline5() {
280771
+ return getStore3().rl;
280772
+ }
280773
+ function withUpdates3(fn) {
280774
+ const wrapped = (...args) => {
280775
+ const store = getStore3();
280776
+ let shouldUpdate = false;
280777
+ const oldHandleChange = store.handleChange;
280778
+ store.handleChange = () => {
280779
+ shouldUpdate = true;
280780
+ };
280781
+ const returnValue = fn(...args);
280782
+ if (shouldUpdate) {
280783
+ oldHandleChange();
280784
+ }
280785
+ store.handleChange = oldHandleChange;
280786
+ return returnValue;
280787
+ };
280788
+ return AsyncResource7.bind(wrapped);
280789
+ }
280790
+ function withPointer3(cb) {
280791
+ const store = getStore3();
280792
+ const { index } = store;
280793
+ const pointer = {
280794
+ get() {
280795
+ return store.hooks[index];
280796
+ },
280797
+ set(value4) {
280798
+ store.hooks[index] = value4;
280799
+ },
280800
+ initialized: index in store.hooks
280801
+ };
280802
+ const returnValue = cb(pointer);
280803
+ store.index++;
280804
+ return returnValue;
280805
+ }
280806
+ function handleChange3() {
280807
+ getStore3().handleChange();
280808
+ }
280809
+ var effectScheduler3 = {
280810
+ queue(cb) {
280811
+ const store = getStore3();
280812
+ const { index } = store;
280813
+ store.hooksEffect.push(() => {
280814
+ store.hooksCleanup[index]?.();
280815
+ const cleanFn = cb(readline5());
280816
+ if (cleanFn != null && typeof cleanFn !== "function") {
280817
+ throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
280818
+ }
280819
+ store.hooksCleanup[index] = cleanFn;
280820
+ });
280821
+ },
280822
+ run() {
280823
+ const store = getStore3();
280824
+ withUpdates3(() => {
280825
+ store.hooksEffect.forEach((effect) => {
280826
+ effect();
280827
+ });
280828
+ store.hooksEffect.length = 0;
280829
+ })();
280830
+ },
280831
+ clearAll() {
280832
+ const store = getStore3();
280833
+ store.hooksCleanup.forEach((cleanFn) => {
280834
+ cleanFn?.();
280835
+ });
280836
+ store.hooksEffect.length = 0;
280837
+ store.hooksCleanup.length = 0;
280838
+ }
280839
+ };
280840
+
280841
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
280842
+ function useState3(defaultValue) {
280843
+ return withPointer3((pointer) => {
280844
+ const setFn = (newValue) => {
280845
+ if (pointer.get() !== newValue) {
280846
+ pointer.set(newValue);
280847
+ handleChange3();
280848
+ }
280849
+ };
280850
+ if (pointer.initialized) {
280851
+ return [pointer.get(), setFn];
280852
+ }
280853
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
280854
+ pointer.set(value4);
280855
+ return [value4, setFn];
280856
+ });
280857
+ }
280858
+
280859
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
280860
+ function useEffect3(cb, depArray) {
280861
+ withPointer3((pointer) => {
280862
+ const oldDeps = pointer.get();
280863
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
280864
+ if (hasChanged) {
280865
+ effectScheduler3.queue(cb);
280866
+ }
280867
+ pointer.set(depArray);
280868
+ });
280869
+ }
280870
+
280871
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
280872
+ var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
280873
+ var defaultTheme3 = {
280874
+ prefix: {
280875
+ idle: import_yoctocolors_cjs5.default.blue("?"),
280876
+ done: import_yoctocolors_cjs5.default.green(esm_default.tick)
280877
+ },
280878
+ spinner: {
280879
+ interval: 80,
280880
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))
280881
+ },
280882
+ style: {
280883
+ answer: import_yoctocolors_cjs5.default.cyan,
280884
+ message: import_yoctocolors_cjs5.default.bold,
280885
+ error: (text2) => import_yoctocolors_cjs5.default.red(`> ${text2}`),
280886
+ defaultAnswer: (text2) => import_yoctocolors_cjs5.default.dim(`(${text2})`),
280887
+ help: import_yoctocolors_cjs5.default.dim,
280888
+ highlight: import_yoctocolors_cjs5.default.cyan,
280889
+ key: (text2) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text2}>`))
280890
+ }
280891
+ };
280892
+
280893
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
280894
+ function isPlainObject4(value4) {
280895
+ if (typeof value4 !== "object" || value4 === null)
280896
+ return false;
280897
+ let proto = value4;
280898
+ while (Object.getPrototypeOf(proto) !== null) {
280899
+ proto = Object.getPrototypeOf(proto);
280900
+ }
280901
+ return Object.getPrototypeOf(value4) === proto;
280902
+ }
280903
+ function deepMerge4(...objects) {
280904
+ const output = {};
280905
+ for (const obj of objects) {
280906
+ for (const [key3, value4] of Object.entries(obj)) {
280907
+ const prevValue = output[key3];
280908
+ output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
280909
+ }
280910
+ }
280911
+ return output;
280912
+ }
280913
+ function makeTheme3(...themes) {
280914
+ const themesToMerge = [
280915
+ defaultTheme3,
280916
+ ...themes.filter((theme) => theme != null)
280917
+ ];
280918
+ return deepMerge4(...themesToMerge);
280919
+ }
280920
+
280921
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280922
+ function usePrefix3({ status = "idle", theme }) {
280923
+ const [showLoader, setShowLoader] = useState3(false);
280924
+ const [tick, setTick] = useState3(0);
280925
+ const { prefix, spinner: spinner2 } = makeTheme3(theme);
280926
+ useEffect3(() => {
280927
+ if (status === "loading") {
280928
+ let tickInterval;
280929
+ let inc = -1;
280930
+ const delayTimeout = setTimeout(AsyncResource8.bind(() => {
280931
+ setShowLoader(true);
280932
+ tickInterval = setInterval(AsyncResource8.bind(() => {
280933
+ inc = inc + 1;
280934
+ setTick(inc % spinner2.frames.length);
280935
+ }), spinner2.interval);
280936
+ }), 300);
280937
+ return () => {
280938
+ clearTimeout(delayTimeout);
280939
+ clearInterval(tickInterval);
280940
+ };
280941
+ } else {
280942
+ setShowLoader(false);
280943
+ }
280944
+ }, [status]);
280945
+ if (showLoader) {
280946
+ return spinner2.frames[tick];
280947
+ }
280948
+ const iconName = status === "loading" ? "idle" : status;
280949
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
280950
+ }
280951
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
280952
+ function useRef3(val) {
280953
+ return useState3({ current: val })[0];
280954
+ }
280955
+
280956
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
280957
+ function useKeypress3(userHandler) {
280958
+ const signal = useRef3(userHandler);
280959
+ signal.current = userHandler;
280960
+ useEffect3((rl) => {
280961
+ let ignore = false;
280962
+ const handler = withUpdates3((_input, event) => {
280963
+ if (ignore)
280964
+ return;
280965
+ signal.current(event, rl);
280966
+ });
280967
+ rl.input.on("keypress", handler);
280968
+ return () => {
280969
+ ignore = true;
280970
+ rl.input.removeListener("keypress", handler);
280971
+ };
280972
+ }, []);
280973
+ }
280974
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
280975
+ var import_cli_width3 = __toESM(require_cli_width(), 1);
280976
+ var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
280977
+ function breakLines3(content, width) {
280978
+ return content.split(`
280979
+ `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
280980
+ `).map((str) => str.trimEnd())).join(`
280981
+ `);
280982
+ }
280983
+ function readlineWidth3() {
280984
+ return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
280985
+ }
280986
+
280987
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280988
+ var import_mute_stream3 = __toESM(require_lib(), 1);
280989
+ import * as readline6 from "node:readline";
280990
+ import { AsyncResource as AsyncResource9 } from "node:async_hooks";
280991
+
280992
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
280993
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
280994
+ import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
280995
+ var height3 = (content) => content.split(`
280996
+ `).length;
280997
+ var lastLine3 = (content) => content.split(`
280998
+ `).pop() ?? "";
280999
+ function cursorDown3(n6) {
281000
+ return n6 > 0 ? import_ansi_escapes4.default.cursorDown(n6) : "";
281001
+ }
281002
+
281003
+ class ScreenManager3 {
281004
+ rl;
281005
+ height = 0;
281006
+ extraLinesUnderPrompt = 0;
281007
+ cursorPos;
281008
+ constructor(rl) {
281009
+ this.rl = rl;
281010
+ this.rl = rl;
281011
+ this.cursorPos = rl.getCursorPos();
281012
+ }
281013
+ write(content) {
281014
+ this.rl.output.unmute();
281015
+ this.rl.output.write(content);
281016
+ this.rl.output.mute();
281017
+ }
281018
+ render(content, bottomContent = "") {
281019
+ const promptLine = lastLine3(content);
281020
+ const rawPromptLine = stripVTControlCharacters4(promptLine);
281021
+ let prompt = rawPromptLine;
281022
+ if (this.rl.line.length > 0) {
281023
+ prompt = prompt.slice(0, -this.rl.line.length);
281024
+ }
281025
+ this.rl.setPrompt(prompt);
281026
+ this.cursorPos = this.rl.getCursorPos();
281027
+ const width = readlineWidth3();
281028
+ content = breakLines3(content, width);
281029
+ bottomContent = breakLines3(bottomContent, width);
281030
+ if (rawPromptLine.length % width === 0) {
281031
+ content += `
281032
+ `;
281033
+ }
281034
+ let output = content + (bottomContent ? `
281035
+ ` + bottomContent : "");
281036
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
281037
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
281038
+ if (bottomContentHeight > 0)
281039
+ output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);
281040
+ output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);
281041
+ this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);
281042
+ this.extraLinesUnderPrompt = bottomContentHeight;
281043
+ this.height = height3(output);
281044
+ }
281045
+ checkCursorPos() {
281046
+ const cursorPos = this.rl.getCursorPos();
281047
+ if (cursorPos.cols !== this.cursorPos.cols) {
281048
+ this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));
281049
+ this.cursorPos = cursorPos;
281050
+ }
281051
+ }
281052
+ done({ clearContent }) {
281053
+ this.rl.setPrompt("");
281054
+ let output = cursorDown3(this.extraLinesUnderPrompt);
281055
+ output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `
281056
+ `;
281057
+ output += import_ansi_escapes4.default.cursorShow;
281058
+ this.write(output);
281059
+ this.rl.close();
281060
+ }
281061
+ }
281062
+
281063
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
281064
+ class PromisePolyfill3 extends Promise {
281065
+ static withResolver() {
281066
+ let resolve6;
281067
+ let reject;
281068
+ const promise = new Promise((res, rej) => {
281069
+ resolve6 = res;
281070
+ reject = rej;
281071
+ });
281072
+ return { promise, resolve: resolve6, reject };
281073
+ }
281074
+ }
281075
+
281076
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
281077
+ function getCallSites3() {
281078
+ const _prepareStackTrace = Error.prepareStackTrace;
281079
+ try {
281080
+ let result = [];
281081
+ Error.prepareStackTrace = (_5, callSites) => {
281082
+ const callSitesWithoutCurrent = callSites.slice(1);
281083
+ result = callSitesWithoutCurrent;
281084
+ return callSitesWithoutCurrent;
281085
+ };
281086
+ new Error().stack;
281087
+ return result;
281088
+ } finally {
281089
+ Error.prepareStackTrace = _prepareStackTrace;
281090
+ }
281091
+ }
281092
+ function createPrompt3(view) {
281093
+ const callSites = getCallSites3();
281094
+ const callerFilename = callSites[1]?.getFileName?.();
281095
+ const prompt = (config3, context = {}) => {
281096
+ const { input = process.stdin, signal } = context;
281097
+ const cleanups = new Set;
281098
+ const output = new import_mute_stream3.default;
281099
+ output.pipe(context.output ?? process.stdout);
281100
+ const rl = readline6.createInterface({
281101
+ terminal: true,
281102
+ input,
281103
+ output
281104
+ });
281105
+ const screen = new ScreenManager3(rl);
281106
+ const { promise, resolve: resolve6, reject } = PromisePolyfill3.withResolver();
281107
+ const cancel3 = () => reject(new CancelPromptError3);
281108
+ if (signal) {
281109
+ const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
281110
+ if (signal.aborted) {
281111
+ abort();
281112
+ return Object.assign(promise, { cancel: cancel3 });
281113
+ }
281114
+ signal.addEventListener("abort", abort);
281115
+ cleanups.add(() => signal.removeEventListener("abort", abort));
281116
+ }
281117
+ cleanups.add(onExit((code2, signal2) => {
281118
+ reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
281119
+ }));
281120
+ const checkCursorPos = () => screen.checkCursorPos();
281121
+ rl.input.on("keypress", checkCursorPos);
281122
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
281123
+ return withHooks3(rl, (cycle) => {
281124
+ const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
281125
+ rl.on("close", hooksCleanup);
281126
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
281127
+ cycle(() => {
281128
+ try {
281129
+ const nextView = view(config3, (value4) => {
281130
+ setImmediate(() => resolve6(value4));
281131
+ });
281132
+ if (nextView === undefined) {
281133
+ throw new Error(`Prompt functions must return a string.
281134
+ at ${callerFilename}`);
281135
+ }
281136
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
281137
+ screen.render(content, bottomContent);
281138
+ effectScheduler3.run();
281139
+ } catch (error5) {
281140
+ reject(error5);
281141
+ }
281142
+ });
281143
+ return Object.assign(promise.then((answer) => {
281144
+ effectScheduler3.clearAll();
281145
+ return answer;
281146
+ }, (error5) => {
281147
+ effectScheduler3.clearAll();
281148
+ throw error5;
281149
+ }).finally(() => {
281150
+ cleanups.forEach((cleanup) => cleanup());
281151
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
281152
+ output.end();
281153
+ }).then(() => promise), { cancel: cancel3 });
281154
+ });
281155
+ };
281156
+ return prompt;
281157
+ }
280304
281158
  // ../../node_modules/@inquirer/password/dist/esm/index.js
280305
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280306
- var esm_default5 = createPrompt((config3, done) => {
281159
+ var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
281160
+ var esm_default5 = createPrompt3((config3, done) => {
280307
281161
  const { validate: validate3 = () => true } = config3;
280308
- const theme = makeTheme(config3.theme);
280309
- const [status, setStatus] = useState("idle");
280310
- const [errorMsg, setError] = useState();
280311
- const [value4, setValue] = useState("");
280312
- const prefix = usePrefix({ status, theme });
280313
- useKeypress(async (key2, rl) => {
281162
+ const theme = makeTheme3(config3.theme);
281163
+ const [status, setStatus] = useState3("idle");
281164
+ const [errorMsg, setError] = useState3();
281165
+ const [value4, setValue] = useState3("");
281166
+ const prefix = usePrefix3({ status, theme });
281167
+ useKeypress3(async (key4, rl) => {
280314
281168
  if (status !== "idle") {
280315
281169
  return;
280316
281170
  }
280317
- if (isEnterKey(key2)) {
281171
+ if (isEnterKey3(key4)) {
280318
281172
  const answer = value4;
280319
281173
  setStatus("loading");
280320
281174
  const isValid2 = await validate3(answer);
@@ -280339,7 +281193,7 @@ var esm_default5 = createPrompt((config3, done) => {
280339
281193
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
280340
281194
  formattedValue = maskChar.repeat(value4.length);
280341
281195
  } else if (status !== "done") {
280342
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
281196
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes5.default.cursorHide}`;
280343
281197
  }
280344
281198
  if (status === "done") {
280345
281199
  formattedValue = theme.style.answer(formattedValue);
@@ -281411,7 +282265,7 @@ var basename2 = function(p6, extension) {
281411
282265
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
281412
282266
  };
281413
282267
  // ../../node_modules/defu/dist/defu.mjs
281414
- function isPlainObject3(value4) {
282268
+ function isPlainObject5(value4) {
281415
282269
  if (value4 === null || typeof value4 !== "object") {
281416
282270
  return false;
281417
282271
  }
@@ -281428,27 +282282,27 @@ function isPlainObject3(value4) {
281428
282282
  return true;
281429
282283
  }
281430
282284
  function _defu(baseObject, defaults2, namespace = ".", merger) {
281431
- if (!isPlainObject3(defaults2)) {
282285
+ if (!isPlainObject5(defaults2)) {
281432
282286
  return _defu(baseObject, {}, namespace, merger);
281433
282287
  }
281434
282288
  const object = Object.assign({}, defaults2);
281435
- for (const key2 in baseObject) {
281436
- if (key2 === "__proto__" || key2 === "constructor") {
282289
+ for (const key4 in baseObject) {
282290
+ if (key4 === "__proto__" || key4 === "constructor") {
281437
282291
  continue;
281438
282292
  }
281439
- const value4 = baseObject[key2];
282293
+ const value4 = baseObject[key4];
281440
282294
  if (value4 === null || value4 === undefined) {
281441
282295
  continue;
281442
282296
  }
281443
- if (merger && merger(object, key2, value4, namespace)) {
282297
+ if (merger && merger(object, key4, value4, namespace)) {
281444
282298
  continue;
281445
282299
  }
281446
- if (Array.isArray(value4) && Array.isArray(object[key2])) {
281447
- object[key2] = [...value4, ...object[key2]];
281448
- } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
281449
- object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
282300
+ if (Array.isArray(value4) && Array.isArray(object[key4])) {
282301
+ object[key4] = [...value4, ...object[key4]];
282302
+ } else if (isPlainObject5(value4) && isPlainObject5(object[key4])) {
282303
+ object[key4] = _defu(value4, object[key4], (namespace ? `${namespace}.` : "") + key4.toString(), merger);
281450
282304
  } else {
281451
- object[key2] = value4;
282305
+ object[key4] = value4;
281452
282306
  }
281453
282307
  }
281454
282308
  return object;
@@ -281457,15 +282311,15 @@ function createDefu(merger) {
281457
282311
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
281458
282312
  }
281459
282313
  var defu = createDefu();
281460
- var defuFn = createDefu((object, key2, currentValue) => {
281461
- if (object[key2] !== undefined && typeof currentValue === "function") {
281462
- object[key2] = currentValue(object[key2]);
282314
+ var defuFn = createDefu((object, key4, currentValue) => {
282315
+ if (object[key4] !== undefined && typeof currentValue === "function") {
282316
+ object[key4] = currentValue(object[key4]);
281463
282317
  return true;
281464
282318
  }
281465
282319
  });
281466
- var defuArrayFn = createDefu((object, key2, currentValue) => {
281467
- if (Array.isArray(object[key2]) && typeof currentValue === "function") {
281468
- object[key2] = currentValue(object[key2]);
282320
+ var defuArrayFn = createDefu((object, key4, currentValue) => {
282321
+ if (Array.isArray(object[key4]) && typeof currentValue === "function") {
282322
+ object[key4] = currentValue(object[key4]);
281469
282323
  return true;
281470
282324
  }
281471
282325
  });
@@ -281727,11 +282581,11 @@ function cacheDirectory() {
281727
282581
  }
281728
282582
  function normalizeHeaders(headers = {}) {
281729
282583
  const normalized = {};
281730
- for (const [key2, value4] of Object.entries(headers)) {
282584
+ for (const [key4, value4] of Object.entries(headers)) {
281731
282585
  if (!value4) {
281732
282586
  continue;
281733
282587
  }
281734
- normalized[key2.toLowerCase()] = value4;
282588
+ normalized[key4.toLowerCase()] = value4;
281735
282589
  }
281736
282590
  return normalized;
281737
282591
  }
@@ -282158,6 +283012,11 @@ function logoutCommand() {
282158
283012
  });
282159
283013
  }
282160
283014
 
283015
+ // src/commands/platform/common/cluster-service.args.ts
283016
+ function addClusterServiceArgs(cmd2) {
283017
+ return cmd2.option("--provider <provider>", "Network provider (run `settlemint platform config` to see available providers)").option("--region <region>", "Deployment region (run `settlemint platform config` to see available regions)").addOption(new Option("--size <size>", "Network size").choices(["CUSTOM", "LARGE", "MEDIUM", "SMALL"]).argParser((value4) => value4).default("SMALL")).addOption(new Option("--type <type>", "Network type").choices(["DEDICATED", "SHARED"]).argParser((value4) => value4).default("SHARED"));
283018
+ }
283019
+
282161
283020
  // src/constants/resource-type.ts
282162
283021
  var SETTLEMINT_CLIENT_MAP = {
282163
283022
  application: "application",
@@ -282194,71 +283053,6 @@ var LABELS_MAP = {
282194
283053
  }
282195
283054
  };
282196
283055
 
282197
- // src/spinners/service.spinner.ts
282198
- async function serviceSpinner(type4, task) {
282199
- const { plural } = LABELS_MAP[type4];
282200
- return spinner({
282201
- startMessage: `Loading ${plural} services`,
282202
- stopMessage: `Loaded ${plural} services`,
282203
- task
282204
- });
282205
- }
282206
-
282207
- // src/commands/pincode-verification-response.ts
282208
- function pincodeVerificationResponseCommand() {
282209
- return new Command("pincode-verification-response").alias("pvr").description("Get pincode verification response for a blockchain node").requiredOption("--wallet-address <walletAddress>", "The wallet address to get pincode verification response for").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name to get pincode verification response for").action(async ({ instance, blockchainNode, walletAddress }) => {
282210
- intro("Generating pincode verification response for wallet address");
282211
- const env2 = await loadEnv(false, false);
282212
- const applicationUniqueName = env2.SETTLEMINT_APPLICATION;
282213
- if (!applicationUniqueName) {
282214
- return missingApplication();
282215
- }
282216
- const selectedInstance = instance ? sanitizeAndValidateInstanceUrl(instance) : await instancePrompt(env2, true);
282217
- const personalAccessToken = await getInstanceCredentials(selectedInstance);
282218
- if (!personalAccessToken) {
282219
- return missingPersonalAccessTokenError();
282220
- }
282221
- const settlemint = createSettleMintClient({
282222
- accessToken: personalAccessToken.personalAccessToken,
282223
- instance: selectedInstance
282224
- });
282225
- const blockchainNodes = await serviceSpinner("blockchain node", () => settlemint.blockchainNode.list(applicationUniqueName));
282226
- let selectedBlockchainNode = blockchainNode ? blockchainNodes.find((node) => node.uniqueName === blockchainNode) : undefined;
282227
- if (!selectedBlockchainNode) {
282228
- selectedBlockchainNode = await blockchainNodePrompt({
282229
- env: env2,
282230
- nodes: blockchainNodes,
282231
- accept: false,
282232
- isRequired: true
282233
- });
282234
- if (!selectedBlockchainNode) {
282235
- return nothingSelectedError("blockchain node");
282236
- }
282237
- }
282238
- const pincode = await esm_default5({
282239
- message: "Enter your pincode",
282240
- validate(value4) {
282241
- if (!value4.trim()) {
282242
- return "Pincode is required";
282243
- }
282244
- return true;
282245
- }
282246
- });
282247
- const pincodeVerificationResponse = await settlemint.wallet.pincodeVerificationResponse({
282248
- userWalletAddress: walletAddress,
282249
- pincode,
282250
- nodeId: selectedBlockchainNode.id
282251
- });
282252
- note(`Pincode verification response: ${pincodeVerificationResponse}`);
282253
- outro("Pincode verification response generated");
282254
- });
282255
- }
282256
-
282257
- // src/commands/platform/common/cluster-service.args.ts
282258
- function addClusterServiceArgs(cmd2) {
282259
- return cmd2.option("--provider <provider>", "Network provider (run `settlemint platform config` to see available providers)").option("--region <region>", "Deployment region (run `settlemint platform config` to see available regions)").addOption(new Option("--size <size>", "Network size").choices(["CUSTOM", "LARGE", "MEDIUM", "SMALL"]).argParser((value4) => value4).default("SMALL")).addOption(new Option("--type <type>", "Network type").choices(["DEDICATED", "SHARED"]).argParser((value4) => value4).default("SHARED"));
282260
- }
282261
-
282262
283056
  // src/commands/platform/utils/wait-for-completion.ts
282263
283057
  class TimeoutError extends Error {
282264
283058
  }
@@ -282271,7 +283065,7 @@ async function waitForCompletion({
282271
283065
  restartIfTimeout = false
282272
283066
  }) {
282273
283067
  const serviceType = SETTLEMINT_CLIENT_MAP[type4];
282274
- if (serviceType === "workspace" || serviceType === "application" || serviceType === "foundry" || serviceType === "applicationAccessToken" || serviceType === "platform" || serviceType === "wallet") {
283068
+ if (serviceType === "workspace" || serviceType === "application" || serviceType === "foundry" || serviceType === "applicationAccessToken" || serviceType === "platform") {
282275
283069
  return true;
282276
283070
  }
282277
283071
  const service = settlemint[serviceType];
@@ -282888,6 +283682,16 @@ async function blockchainNetworkPrompt({
282888
283682
  });
282889
283683
  }
282890
283684
 
283685
+ // src/spinners/service.spinner.ts
283686
+ async function serviceSpinner(type4, task) {
283687
+ const { plural } = LABELS_MAP[type4];
283688
+ return spinner({
283689
+ startMessage: `Loading ${plural} services`,
283690
+ stopMessage: `Loaded ${plural} services`,
283691
+ task
283692
+ });
283693
+ }
283694
+
282891
283695
  // src/commands/platform/blockchain-node/besu/create.ts
282892
283696
  function blockchainNodeBesuCreateCommand() {
282893
283697
  return getCreateCommand({
@@ -283963,7 +284767,7 @@ function jsonOutput(data) {
283963
284767
  var composer = require_composer();
283964
284768
  var Document = require_Document();
283965
284769
  var Schema = require_Schema();
283966
- var errors2 = require_errors3();
284770
+ var errors4 = require_errors3();
283967
284771
  var Alias = require_Alias();
283968
284772
  var identity2 = require_identity();
283969
284773
  var Pair = require_Pair();
@@ -283979,9 +284783,9 @@ var visit2 = require_visit();
283979
284783
  var $Composer = composer.Composer;
283980
284784
  var $Document = Document.Document;
283981
284785
  var $Schema = Schema.Schema;
283982
- var $YAMLError = errors2.YAMLError;
283983
- var $YAMLParseError = errors2.YAMLParseError;
283984
- var $YAMLWarning = errors2.YAMLWarning;
284786
+ var $YAMLError = errors4.YAMLError;
284787
+ var $YAMLParseError = errors4.YAMLParseError;
284788
+ var $YAMLWarning = errors4.YAMLWarning;
283985
284789
  var $Alias = Alias.Alias;
283986
284790
  var $isAlias = identity2.isAlias;
283987
284791
  var $isCollection = identity2.isCollection;
@@ -284164,7 +284968,7 @@ function applicationsListCommand() {
284164
284968
  });
284165
284969
  if (printToTerminal) {
284166
284970
  const selectedWorkspace = await settlemint.workspace.read(workspaceUniqueName);
284167
- table(`Applications for workspace ${selectedWorkspace.name} (${selectedWorkspace.uniqueName}) - ${getWorkspaceUrl(selectedInstance, selectedWorkspace)}`, applicationsData);
284971
+ table(`Applications for workspace ${selectedWorkspace.name} (${selectedWorkspace}) - ${getWorkspaceUrl(selectedInstance, selectedWorkspace)}`, applicationsData);
284168
284972
  } else if (output === "json") {
284169
284973
  jsonOutput(applicationsData);
284170
284974
  } else if (output === "yaml") {
@@ -284327,7 +285131,7 @@ async function getServicesAndMapResults({
284327
285131
  const application = await settlemint.application.read(applicationUniqueName);
284328
285132
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
284329
285133
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
284330
- const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
285134
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key4, value4]) => value4.command === serviceType) ?? [
284331
285135
  null,
284332
285136
  { plural: serviceType }
284333
285137
  ];
@@ -284555,11 +285359,11 @@ function createCommand4() {
284555
285359
 
284556
285360
  // src/utils/commands/passthrough-options.ts
284557
285361
  function mapPassthroughOptions(options, command) {
284558
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
285362
+ const optionArgs = Object.entries(options).map(([key4, value4]) => {
284559
285363
  if (value4 === true) {
284560
- return `--${key2}`;
285364
+ return `--${key4}`;
284561
285365
  }
284562
- return `--${key2}=${value4}`;
285366
+ return `--${key4}=${value4}`;
284563
285367
  });
284564
285368
  return [...optionArgs, ...command.args];
284565
285369
  }
@@ -285464,7 +286268,6 @@ function registerCommands() {
285464
286268
  sdkcli.addCommand(createCommand2());
285465
286269
  sdkcli.addCommand(loginCommand());
285466
286270
  sdkcli.addCommand(logoutCommand());
285467
- sdkcli.addCommand(pincodeVerificationResponseCommand());
285468
286271
  return sdkcli;
285469
286272
  }
285470
286273
  async function sdkCliCommand(argv = process.argv) {
@@ -285484,4 +286287,4 @@ async function sdkCliCommand(argv = process.argv) {
285484
286287
  // src/cli.ts
285485
286288
  sdkCliCommand();
285486
286289
 
285487
- //# debugId=69751688D635123764756E2164756E21
286290
+ //# debugId=16229C530EBC976964756E2164756E21