@settlemint/sdk-cli 1.1.8-pr3c839147 → 1.1.8-pr54362060

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 +244 -699
  2. package/dist/cli.js.map +3 -17
  3. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -241161,8 +241161,8 @@ var require_mkdir = __commonJS((exports, module) => {
241161
241161
  return "CwdError";
241162
241162
  }
241163
241163
  }
241164
- var cGet = (cache, key3) => cache.get(normPath(key3));
241165
- var cSet = (cache, key3, val) => cache.set(normPath(key3), val);
241164
+ var cGet = (cache, key2) => cache.get(normPath(key2));
241165
+ var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
241166
241166
  var checkCwd = (dir, cb) => {
241167
241167
  fs4.stat(dir, (er2, st2) => {
241168
241168
  if (er2 || !st2.isDirectory()) {
@@ -241533,8 +241533,8 @@ var require_unpack = __commonJS((exports, module) => {
241533
241533
  }
241534
241534
  };
241535
241535
  var dropCache = (cache) => {
241536
- for (const key3 of cache.keys()) {
241537
- cache.delete(key3);
241536
+ for (const key2 of cache.keys()) {
241537
+ cache.delete(key2);
241538
241538
  }
241539
241539
  };
241540
241540
 
@@ -246331,8 +246331,8 @@ var require_lib13 = __commonJS((exports, module) => {
246331
246331
  function fetch2(input, options) {
246332
246332
  return nodeFetch.fetch(input, options);
246333
246333
  }
246334
- for (const key3 in nodeFetch) {
246335
- fetch2[key3] = nodeFetch[key3];
246334
+ for (const key2 in nodeFetch) {
246335
+ fetch2[key2] = nodeFetch[key2];
246336
246336
  }
246337
246337
  module.exports = fetch2;
246338
246338
  });
@@ -246425,11 +246425,11 @@ var require_proxy = __commonJS((exports) => {
246425
246425
  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
246426
  }
246427
246427
  e10(requireSymbols$4, "requireSymbols$4");
246428
- var errors3;
246428
+ var errors2;
246429
246429
  var hasRequiredErrors;
246430
246430
  function requireErrors() {
246431
246431
  if (hasRequiredErrors)
246432
- return errors3;
246432
+ return errors2;
246433
246433
  hasRequiredErrors = 1;
246434
246434
 
246435
246435
  class A5 extends Error {
@@ -246638,7 +246638,7 @@ var require_proxy = __commonJS((exports) => {
246638
246638
  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
246639
  }
246640
246640
  }
246641
- return errors3 = { 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 }, errors3;
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;
246642
246642
  }
246643
246643
  e10(requireErrors, "requireErrors");
246644
246644
  var constants$4;
@@ -256611,11 +256611,11 @@ var require_visit = __commonJS((exports) => {
256611
256611
  visit2.BREAK = BREAK;
256612
256612
  visit2.SKIP = SKIP;
256613
256613
  visit2.REMOVE = REMOVE;
256614
- function visit_(key3, node, visitor, path6) {
256615
- const ctrl = callVisitor(key3, node, visitor, path6);
256614
+ function visit_(key2, node, visitor, path6) {
256615
+ const ctrl = callVisitor(key2, node, visitor, path6);
256616
256616
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256617
- replaceNode(key3, path6, ctrl);
256618
- return visit_(key3, ctrl, visitor, path6);
256617
+ replaceNode(key2, path6, ctrl);
256618
+ return visit_(key2, ctrl, visitor, path6);
256619
256619
  }
256620
256620
  if (typeof ctrl !== "symbol") {
256621
256621
  if (identity2.isCollection(node)) {
@@ -256659,11 +256659,11 @@ var require_visit = __commonJS((exports) => {
256659
256659
  visitAsync.BREAK = BREAK;
256660
256660
  visitAsync.SKIP = SKIP;
256661
256661
  visitAsync.REMOVE = REMOVE;
256662
- async function visitAsync_(key3, node, visitor, path6) {
256663
- const ctrl = await callVisitor(key3, node, visitor, path6);
256662
+ async function visitAsync_(key2, node, visitor, path6) {
256663
+ const ctrl = await callVisitor(key2, node, visitor, path6);
256664
256664
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256665
- replaceNode(key3, path6, ctrl);
256666
- return visitAsync_(key3, ctrl, visitor, path6);
256665
+ replaceNode(key2, path6, ctrl);
256666
+ return visitAsync_(key2, ctrl, visitor, path6);
256667
256667
  }
256668
256668
  if (typeof ctrl !== "symbol") {
256669
256669
  if (identity2.isCollection(node)) {
@@ -256713,27 +256713,27 @@ var require_visit = __commonJS((exports) => {
256713
256713
  }
256714
256714
  return visitor;
256715
256715
  }
256716
- function callVisitor(key3, node, visitor, path6) {
256716
+ function callVisitor(key2, node, visitor, path6) {
256717
256717
  if (typeof visitor === "function")
256718
- return visitor(key3, node, path6);
256718
+ return visitor(key2, node, path6);
256719
256719
  if (identity2.isMap(node))
256720
- return visitor.Map?.(key3, node, path6);
256720
+ return visitor.Map?.(key2, node, path6);
256721
256721
  if (identity2.isSeq(node))
256722
- return visitor.Seq?.(key3, node, path6);
256722
+ return visitor.Seq?.(key2, node, path6);
256723
256723
  if (identity2.isPair(node))
256724
- return visitor.Pair?.(key3, node, path6);
256724
+ return visitor.Pair?.(key2, node, path6);
256725
256725
  if (identity2.isScalar(node))
256726
- return visitor.Scalar?.(key3, node, path6);
256726
+ return visitor.Scalar?.(key2, node, path6);
256727
256727
  if (identity2.isAlias(node))
256728
- return visitor.Alias?.(key3, node, path6);
256728
+ return visitor.Alias?.(key2, node, path6);
256729
256729
  return;
256730
256730
  }
256731
- function replaceNode(key3, path6, node) {
256731
+ function replaceNode(key2, path6, node) {
256732
256732
  const parent = path6[path6.length - 1];
256733
256733
  if (identity2.isCollection(parent)) {
256734
- parent.items[key3] = node;
256734
+ parent.items[key2] = node;
256735
256735
  } else if (identity2.isPair(parent)) {
256736
- if (key3 === "key")
256736
+ if (key2 === "key")
256737
256737
  parent.key = node;
256738
256738
  else
256739
256739
  parent.value = node;
@@ -256965,7 +256965,7 @@ var require_anchors = __commonJS((exports) => {
256965
256965
 
256966
256966
  // ../../node_modules/yaml/dist/doc/applyReviver.js
256967
256967
  var require_applyReviver = __commonJS((exports) => {
256968
- function applyReviver(reviver, obj, key3, val) {
256968
+ function applyReviver(reviver, obj, key2, val) {
256969
256969
  if (val && typeof val === "object") {
256970
256970
  if (Array.isArray(val)) {
256971
256971
  for (let i6 = 0, len = val.length;i6 < len; ++i6) {
@@ -257005,7 +257005,7 @@ var require_applyReviver = __commonJS((exports) => {
257005
257005
  }
257006
257006
  }
257007
257007
  }
257008
- return reviver.call(obj, key3, val);
257008
+ return reviver.call(obj, key2, val);
257009
257009
  }
257010
257010
  exports.applyReviver = applyReviver;
257011
257011
  });
@@ -257323,29 +257323,29 @@ var require_Collection = __commonJS((exports) => {
257323
257323
  if (isEmptyPath(path6))
257324
257324
  this.add(value4);
257325
257325
  else {
257326
- const [key3, ...rest] = path6;
257327
- const node = this.get(key3, true);
257326
+ const [key2, ...rest] = path6;
257327
+ const node = this.get(key2, true);
257328
257328
  if (identity2.isCollection(node))
257329
257329
  node.addIn(rest, value4);
257330
257330
  else if (node === undefined && this.schema)
257331
- this.set(key3, collectionFromPath(this.schema, rest, value4));
257331
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
257332
257332
  else
257333
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257333
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257334
257334
  }
257335
257335
  }
257336
257336
  deleteIn(path6) {
257337
- const [key3, ...rest] = path6;
257337
+ const [key2, ...rest] = path6;
257338
257338
  if (rest.length === 0)
257339
- return this.delete(key3);
257340
- const node = this.get(key3, true);
257339
+ return this.delete(key2);
257340
+ const node = this.get(key2, true);
257341
257341
  if (identity2.isCollection(node))
257342
257342
  return node.deleteIn(rest);
257343
257343
  else
257344
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257344
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257345
257345
  }
257346
257346
  getIn(path6, keepScalar) {
257347
- const [key3, ...rest] = path6;
257348
- const node = this.get(key3, true);
257347
+ const [key2, ...rest] = path6;
257348
+ const node = this.get(key2, true);
257349
257349
  if (rest.length === 0)
257350
257350
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
257351
257351
  else
@@ -257360,24 +257360,24 @@ var require_Collection = __commonJS((exports) => {
257360
257360
  });
257361
257361
  }
257362
257362
  hasIn(path6) {
257363
- const [key3, ...rest] = path6;
257363
+ const [key2, ...rest] = path6;
257364
257364
  if (rest.length === 0)
257365
- return this.has(key3);
257366
- const node = this.get(key3, true);
257365
+ return this.has(key2);
257366
+ const node = this.get(key2, true);
257367
257367
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
257368
257368
  }
257369
257369
  setIn(path6, value4) {
257370
- const [key3, ...rest] = path6;
257370
+ const [key2, ...rest] = path6;
257371
257371
  if (rest.length === 0) {
257372
- this.set(key3, value4);
257372
+ this.set(key2, value4);
257373
257373
  } else {
257374
- const node = this.get(key3, true);
257374
+ const node = this.get(key2, true);
257375
257375
  if (identity2.isCollection(node))
257376
257376
  node.setIn(rest, value4);
257377
257377
  else if (node === undefined && this.schema)
257378
- this.set(key3, collectionFromPath(this.schema, rest, value4));
257378
+ this.set(key2, collectionFromPath(this.schema, rest, value4));
257379
257379
  else
257380
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257380
+ throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257381
257381
  }
257382
257382
  }
257383
257383
  }
@@ -257965,19 +257965,19 @@ var require_stringifyPair = __commonJS((exports) => {
257965
257965
  var Scalar = require_Scalar();
257966
257966
  var stringify3 = require_stringify();
257967
257967
  var stringifyComment = require_stringifyComment();
257968
- function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
257968
+ function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
257969
257969
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
257970
- let keyComment = identity2.isNode(key3) && key3.comment || null;
257970
+ let keyComment = identity2.isNode(key2) && key2.comment || null;
257971
257971
  if (simpleKeys) {
257972
257972
  if (keyComment) {
257973
257973
  throw new Error("With simple keys, key nodes cannot have comments");
257974
257974
  }
257975
- if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
257975
+ if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
257976
257976
  const msg = "With simple keys, collection cannot be used as a key value";
257977
257977
  throw new Error(msg);
257978
257978
  }
257979
257979
  }
257980
- let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
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"));
257981
257981
  ctx = Object.assign({}, ctx, {
257982
257982
  allNullValues: false,
257983
257983
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -257985,7 +257985,7 @@ var require_stringifyPair = __commonJS((exports) => {
257985
257985
  });
257986
257986
  let keyCommentDone = false;
257987
257987
  let chompKeep = false;
257988
- let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
257988
+ let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
257989
257989
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
257990
257990
  if (simpleKeys)
257991
257991
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -258129,7 +258129,7 @@ var require_merge = __commonJS((exports) => {
258129
258129
  }),
258130
258130
  stringify: () => MERGE_KEY
258131
258131
  };
258132
- var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
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);
258133
258133
  function addMergeToJSMap(ctx, map3, value4) {
258134
258134
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
258135
258135
  if (identity2.isSeq(value4))
@@ -258146,14 +258146,14 @@ var require_merge = __commonJS((exports) => {
258146
258146
  if (!identity2.isMap(source))
258147
258147
  throw new Error("Merge sources must be maps or map aliases");
258148
258148
  const srcMap = source.toJSON(null, ctx, Map);
258149
- for (const [key3, value5] of srcMap) {
258149
+ for (const [key2, value5] of srcMap) {
258150
258150
  if (map3 instanceof Map) {
258151
- if (!map3.has(key3))
258152
- map3.set(key3, value5);
258151
+ if (!map3.has(key2))
258152
+ map3.set(key2, value5);
258153
258153
  } else if (map3 instanceof Set) {
258154
- map3.add(key3);
258155
- } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
258156
- Object.defineProperty(map3, key3, {
258154
+ map3.add(key2);
258155
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
258156
+ Object.defineProperty(map3, key2, {
258157
258157
  value: value5,
258158
258158
  writable: true,
258159
258159
  enumerable: true,
@@ -258175,19 +258175,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258175
258175
  var stringify3 = require_stringify();
258176
258176
  var identity2 = require_identity();
258177
258177
  var toJS = require_toJS();
258178
- function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
258179
- if (identity2.isNode(key3) && key3.addToJSMap)
258180
- key3.addToJSMap(ctx, map3, value4);
258181
- else if (merge3.isMergeKey(ctx, key3))
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))
258182
258182
  merge3.addMergeToJSMap(ctx, map3, value4);
258183
258183
  else {
258184
- const jsKey = toJS.toJS(key3, "", ctx);
258184
+ const jsKey = toJS.toJS(key2, "", ctx);
258185
258185
  if (map3 instanceof Map) {
258186
258186
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
258187
258187
  } else if (map3 instanceof Set) {
258188
258188
  map3.add(jsKey);
258189
258189
  } else {
258190
- const stringKey = stringifyKey(key3, jsKey, ctx);
258190
+ const stringKey = stringifyKey(key2, jsKey, ctx);
258191
258191
  const jsValue = toJS.toJS(value4, stringKey, ctx);
258192
258192
  if (stringKey in map3)
258193
258193
  Object.defineProperty(map3, stringKey, {
@@ -258202,19 +258202,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258202
258202
  }
258203
258203
  return map3;
258204
258204
  }
258205
- function stringifyKey(key3, jsKey, ctx) {
258205
+ function stringifyKey(key2, jsKey, ctx) {
258206
258206
  if (jsKey === null)
258207
258207
  return "";
258208
258208
  if (typeof jsKey !== "object")
258209
258209
  return String(jsKey);
258210
- if (identity2.isNode(key3) && ctx?.doc) {
258210
+ if (identity2.isNode(key2) && ctx?.doc) {
258211
258211
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
258212
258212
  strCtx.anchors = new Set;
258213
258213
  for (const node of ctx.anchors.keys())
258214
258214
  strCtx.anchors.add(node.anchor);
258215
258215
  strCtx.inFlow = true;
258216
258216
  strCtx.inStringifyKey = true;
258217
- const strKey = key3.toString(strCtx);
258217
+ const strKey = key2.toString(strCtx);
258218
258218
  if (!ctx.mapKeyWarned) {
258219
258219
  let jsonStr = JSON.stringify(strKey);
258220
258220
  if (jsonStr.length > 40)
@@ -258235,25 +258235,25 @@ var require_Pair = __commonJS((exports) => {
258235
258235
  var stringifyPair2 = require_stringifyPair();
258236
258236
  var addPairToJSMap = require_addPairToJSMap();
258237
258237
  var identity2 = require_identity();
258238
- function createPair(key3, value4, ctx) {
258239
- const k5 = createNode.createNode(key3, undefined, ctx);
258238
+ function createPair(key2, value4, ctx) {
258239
+ const k5 = createNode.createNode(key2, undefined, ctx);
258240
258240
  const v7 = createNode.createNode(value4, undefined, ctx);
258241
258241
  return new Pair(k5, v7);
258242
258242
  }
258243
258243
 
258244
258244
  class Pair {
258245
- constructor(key3, value4 = null) {
258245
+ constructor(key2, value4 = null) {
258246
258246
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
258247
- this.key = key3;
258247
+ this.key = key2;
258248
258248
  this.value = value4;
258249
258249
  }
258250
258250
  clone(schema) {
258251
- let { key: key3, value: value4 } = this;
258252
- if (identity2.isNode(key3))
258253
- key3 = key3.clone(schema);
258251
+ let { key: key2, value: value4 } = this;
258252
+ if (identity2.isNode(key2))
258253
+ key2 = key2.clone(schema);
258254
258254
  if (identity2.isNode(value4))
258255
258255
  value4 = value4.clone(schema);
258256
- return new Pair(key3, value4);
258256
+ return new Pair(key2, value4);
258257
258257
  }
258258
258258
  toJSON(_5, ctx) {
258259
258259
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -258420,11 +258420,11 @@ var require_YAMLMap = __commonJS((exports) => {
258420
258420
  var identity2 = require_identity();
258421
258421
  var Pair = require_Pair();
258422
258422
  var Scalar = require_Scalar();
258423
- function findPair(items, key3) {
258424
- const k5 = identity2.isScalar(key3) ? key3.value : key3;
258423
+ function findPair(items, key2) {
258424
+ const k5 = identity2.isScalar(key2) ? key2.value : key2;
258425
258425
  for (const it2 of items) {
258426
258426
  if (identity2.isPair(it2)) {
258427
- if (it2.key === key3 || it2.key === k5)
258427
+ if (it2.key === key2 || it2.key === k5)
258428
258428
  return it2;
258429
258429
  if (identity2.isScalar(it2.key) && it2.key.value === k5)
258430
258430
  return it2;
@@ -258444,20 +258444,20 @@ var require_YAMLMap = __commonJS((exports) => {
258444
258444
  static from(schema, obj, ctx) {
258445
258445
  const { keepUndefined, replacer } = ctx;
258446
258446
  const map3 = new this(schema);
258447
- const add = (key3, value4) => {
258447
+ const add = (key2, value4) => {
258448
258448
  if (typeof replacer === "function")
258449
- value4 = replacer.call(obj, key3, value4);
258450
- else if (Array.isArray(replacer) && !replacer.includes(key3))
258449
+ value4 = replacer.call(obj, key2, value4);
258450
+ else if (Array.isArray(replacer) && !replacer.includes(key2))
258451
258451
  return;
258452
258452
  if (value4 !== undefined || keepUndefined)
258453
- map3.items.push(Pair.createPair(key3, value4, ctx));
258453
+ map3.items.push(Pair.createPair(key2, value4, ctx));
258454
258454
  };
258455
258455
  if (obj instanceof Map) {
258456
- for (const [key3, value4] of obj)
258457
- add(key3, value4);
258456
+ for (const [key2, value4] of obj)
258457
+ add(key2, value4);
258458
258458
  } else if (obj && typeof obj === "object") {
258459
- for (const key3 of Object.keys(obj))
258460
- add(key3, obj[key3]);
258459
+ for (const key2 of Object.keys(obj))
258460
+ add(key2, obj[key2]);
258461
258461
  }
258462
258462
  if (typeof schema.sortMapEntries === "function") {
258463
258463
  map3.items.sort(schema.sortMapEntries);
@@ -258491,23 +258491,23 @@ var require_YAMLMap = __commonJS((exports) => {
258491
258491
  this.items.push(_pair);
258492
258492
  }
258493
258493
  }
258494
- delete(key3) {
258495
- const it2 = findPair(this.items, key3);
258494
+ delete(key2) {
258495
+ const it2 = findPair(this.items, key2);
258496
258496
  if (!it2)
258497
258497
  return false;
258498
258498
  const del = this.items.splice(this.items.indexOf(it2), 1);
258499
258499
  return del.length > 0;
258500
258500
  }
258501
- get(key3, keepScalar) {
258502
- const it2 = findPair(this.items, key3);
258501
+ get(key2, keepScalar) {
258502
+ const it2 = findPair(this.items, key2);
258503
258503
  const node = it2?.value;
258504
258504
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
258505
258505
  }
258506
- has(key3) {
258507
- return !!findPair(this.items, key3);
258506
+ has(key2) {
258507
+ return !!findPair(this.items, key2);
258508
258508
  }
258509
- set(key3, value4) {
258510
- this.add(new Pair.Pair(key3, value4), true);
258509
+ set(key2, value4) {
258510
+ this.add(new Pair.Pair(key2, value4), true);
258511
258511
  }
258512
258512
  toJSON(_5, ctx, Type) {
258513
258513
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -258578,28 +258578,28 @@ var require_YAMLSeq = __commonJS((exports) => {
258578
258578
  add(value4) {
258579
258579
  this.items.push(value4);
258580
258580
  }
258581
- delete(key3) {
258582
- const idx = asItemIndex(key3);
258581
+ delete(key2) {
258582
+ const idx = asItemIndex(key2);
258583
258583
  if (typeof idx !== "number")
258584
258584
  return false;
258585
258585
  const del = this.items.splice(idx, 1);
258586
258586
  return del.length > 0;
258587
258587
  }
258588
- get(key3, keepScalar) {
258589
- const idx = asItemIndex(key3);
258588
+ get(key2, keepScalar) {
258589
+ const idx = asItemIndex(key2);
258590
258590
  if (typeof idx !== "number")
258591
258591
  return;
258592
258592
  const it2 = this.items[idx];
258593
258593
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
258594
258594
  }
258595
- has(key3) {
258596
- const idx = asItemIndex(key3);
258595
+ has(key2) {
258596
+ const idx = asItemIndex(key2);
258597
258597
  return typeof idx === "number" && idx < this.items.length;
258598
258598
  }
258599
- set(key3, value4) {
258600
- const idx = asItemIndex(key3);
258599
+ set(key2, value4) {
258600
+ const idx = asItemIndex(key2);
258601
258601
  if (typeof idx !== "number")
258602
- throw new Error(`Expected a valid index, not ${key3}.`);
258602
+ throw new Error(`Expected a valid index, not ${key2}.`);
258603
258603
  const prev = this.items[idx];
258604
258604
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
258605
258605
  prev.value = value4;
@@ -258633,8 +258633,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258633
258633
  let i6 = 0;
258634
258634
  for (let it2 of obj) {
258635
258635
  if (typeof replacer === "function") {
258636
- const key3 = obj instanceof Set ? it2 : String(i6++);
258637
- it2 = replacer.call(obj, key3, it2);
258636
+ const key2 = obj instanceof Set ? it2 : String(i6++);
258637
+ it2 = replacer.call(obj, key2, it2);
258638
258638
  }
258639
258639
  seq.items.push(createNode.createNode(it2, undefined, ctx));
258640
258640
  }
@@ -258642,8 +258642,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258642
258642
  return seq;
258643
258643
  }
258644
258644
  }
258645
- function asItemIndex(key3) {
258646
- let idx = identity2.isScalar(key3) ? key3.value : key3;
258645
+ function asItemIndex(key2) {
258646
+ let idx = identity2.isScalar(key2) ? key2.value : key2;
258647
258647
  if (idx && typeof idx === "string")
258648
258648
  idx = Number(idx);
258649
258649
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -259015,25 +259015,25 @@ ${cn.comment}` : item.comment;
259015
259015
  for (let it2 of iterable) {
259016
259016
  if (typeof replacer === "function")
259017
259017
  it2 = replacer.call(iterable, String(i6++), it2);
259018
- let key3, value4;
259018
+ let key2, value4;
259019
259019
  if (Array.isArray(it2)) {
259020
259020
  if (it2.length === 2) {
259021
- key3 = it2[0];
259021
+ key2 = it2[0];
259022
259022
  value4 = it2[1];
259023
259023
  } else
259024
259024
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
259025
259025
  } else if (it2 && it2 instanceof Object) {
259026
259026
  const keys = Object.keys(it2);
259027
259027
  if (keys.length === 1) {
259028
- key3 = keys[0];
259029
- value4 = it2[key3];
259028
+ key2 = keys[0];
259029
+ value4 = it2[key2];
259030
259030
  } else {
259031
259031
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
259032
259032
  }
259033
259033
  } else {
259034
- key3 = it2;
259034
+ key2 = it2;
259035
259035
  }
259036
- pairs2.items.push(Pair.createPair(key3, value4, ctx));
259036
+ pairs2.items.push(Pair.createPair(key2, value4, ctx));
259037
259037
  }
259038
259038
  return pairs2;
259039
259039
  }
@@ -259074,16 +259074,16 @@ var require_omap = __commonJS((exports) => {
259074
259074
  if (ctx?.onCreate)
259075
259075
  ctx.onCreate(map3);
259076
259076
  for (const pair of this.items) {
259077
- let key3, value4;
259077
+ let key2, value4;
259078
259078
  if (identity2.isPair(pair)) {
259079
- key3 = toJS.toJS(pair.key, "", ctx);
259080
- value4 = toJS.toJS(pair.value, key3, ctx);
259079
+ key2 = toJS.toJS(pair.key, "", ctx);
259080
+ value4 = toJS.toJS(pair.value, key2, ctx);
259081
259081
  } else {
259082
- key3 = toJS.toJS(pair, "", ctx);
259082
+ key2 = toJS.toJS(pair, "", ctx);
259083
259083
  }
259084
- if (map3.has(key3))
259084
+ if (map3.has(key2))
259085
259085
  throw new Error("Ordered maps must not include duplicate keys");
259086
- map3.set(key3, value4);
259086
+ map3.set(key2, value4);
259087
259087
  }
259088
259088
  return map3;
259089
259089
  }
@@ -259104,12 +259104,12 @@ var require_omap = __commonJS((exports) => {
259104
259104
  resolve(seq, onError) {
259105
259105
  const pairs$1 = pairs.resolvePairs(seq, onError);
259106
259106
  const seenKeys = [];
259107
- for (const { key: key3 } of pairs$1.items) {
259108
- if (identity2.isScalar(key3)) {
259109
- if (seenKeys.includes(key3.value)) {
259110
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
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}`);
259111
259111
  } else {
259112
- seenKeys.push(key3.value);
259112
+ seenKeys.push(key2.value);
259113
259113
  }
259114
259114
  }
259115
259115
  }
@@ -259283,30 +259283,30 @@ var require_set = __commonJS((exports) => {
259283
259283
  super(schema);
259284
259284
  this.tag = YAMLSet.tag;
259285
259285
  }
259286
- add(key3) {
259286
+ add(key2) {
259287
259287
  let pair;
259288
- if (identity2.isPair(key3))
259289
- pair = key3;
259290
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
259291
- pair = new Pair.Pair(key3.key, null);
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);
259292
259292
  else
259293
- pair = new Pair.Pair(key3, null);
259293
+ pair = new Pair.Pair(key2, null);
259294
259294
  const prev = YAMLMap.findPair(this.items, pair.key);
259295
259295
  if (!prev)
259296
259296
  this.items.push(pair);
259297
259297
  }
259298
- get(key3, keepPair) {
259299
- const pair = YAMLMap.findPair(this.items, key3);
259298
+ get(key2, keepPair) {
259299
+ const pair = YAMLMap.findPair(this.items, key2);
259300
259300
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
259301
259301
  }
259302
- set(key3, value4) {
259302
+ set(key2, value4) {
259303
259303
  if (typeof value4 !== "boolean")
259304
259304
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
259305
- const prev = YAMLMap.findPair(this.items, key3);
259305
+ const prev = YAMLMap.findPair(this.items, key2);
259306
259306
  if (prev && !value4) {
259307
259307
  this.items.splice(this.items.indexOf(prev), 1);
259308
259308
  } else if (!prev && value4) {
259309
- this.items.push(new Pair.Pair(key3));
259309
+ this.items.push(new Pair.Pair(key2));
259310
259310
  }
259311
259311
  }
259312
259312
  toJSON(_5, ctx) {
@@ -259541,7 +259541,7 @@ var require_tags = __commonJS((exports) => {
259541
259541
  if (Array.isArray(customTags))
259542
259542
  tags = [];
259543
259543
  else {
259544
- const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
259544
+ const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
259545
259545
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
259546
259546
  }
259547
259547
  }
@@ -259557,7 +259557,7 @@ var require_tags = __commonJS((exports) => {
259557
259557
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
259558
259558
  if (!tagObj) {
259559
259559
  const tagName = JSON.stringify(tag);
259560
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
259560
+ const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
259561
259561
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
259562
259562
  }
259563
259563
  if (!tags2.includes(tagObj))
@@ -259792,13 +259792,13 @@ var require_Document = __commonJS((exports) => {
259792
259792
  setAnchors();
259793
259793
  return node;
259794
259794
  }
259795
- createPair(key3, value4, options = {}) {
259796
- const k5 = this.createNode(key3, null, options);
259795
+ createPair(key2, value4, options = {}) {
259796
+ const k5 = this.createNode(key2, null, options);
259797
259797
  const v7 = this.createNode(value4, null, options);
259798
259798
  return new Pair.Pair(k5, v7);
259799
259799
  }
259800
- delete(key3) {
259801
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
259800
+ delete(key2) {
259801
+ return assertCollection(this.contents) ? this.contents.delete(key2) : false;
259802
259802
  }
259803
259803
  deleteIn(path6) {
259804
259804
  if (Collection.isEmptyPath(path6)) {
@@ -259809,27 +259809,27 @@ var require_Document = __commonJS((exports) => {
259809
259809
  }
259810
259810
  return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
259811
259811
  }
259812
- get(key3, keepScalar) {
259813
- return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
259812
+ get(key2, keepScalar) {
259813
+ return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
259814
259814
  }
259815
259815
  getIn(path6, keepScalar) {
259816
259816
  if (Collection.isEmptyPath(path6))
259817
259817
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
259818
259818
  return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
259819
259819
  }
259820
- has(key3) {
259821
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
259820
+ has(key2) {
259821
+ return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
259822
259822
  }
259823
259823
  hasIn(path6) {
259824
259824
  if (Collection.isEmptyPath(path6))
259825
259825
  return this.contents !== undefined;
259826
259826
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
259827
259827
  }
259828
- set(key3, value4) {
259828
+ set(key2, value4) {
259829
259829
  if (this.contents == null) {
259830
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
259830
+ this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
259831
259831
  } else if (assertCollection(this.contents)) {
259832
- this.contents.set(key3, value4);
259832
+ this.contents.set(key2, value4);
259833
259833
  }
259834
259834
  }
259835
259835
  setIn(path6, value4) {
@@ -260113,25 +260113,25 @@ var require_resolve_props = __commonJS((exports) => {
260113
260113
 
260114
260114
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
260115
260115
  var require_util_contains_newline = __commonJS((exports) => {
260116
- function containsNewline(key3) {
260117
- if (!key3)
260116
+ function containsNewline(key2) {
260117
+ if (!key2)
260118
260118
  return null;
260119
- switch (key3.type) {
260119
+ switch (key2.type) {
260120
260120
  case "alias":
260121
260121
  case "scalar":
260122
260122
  case "double-quoted-scalar":
260123
260123
  case "single-quoted-scalar":
260124
- if (key3.source.includes(`
260124
+ if (key2.source.includes(`
260125
260125
  `))
260126
260126
  return true;
260127
- if (key3.end) {
260128
- for (const st2 of key3.end)
260127
+ if (key2.end) {
260128
+ for (const st2 of key2.end)
260129
260129
  if (st2.type === "newline")
260130
260130
  return true;
260131
260131
  }
260132
260132
  return false;
260133
260133
  case "flow-collection":
260134
- for (const it2 of key3.items) {
260134
+ for (const it2 of key2.items) {
260135
260135
  for (const st2 of it2.start)
260136
260136
  if (st2.type === "newline")
260137
260137
  return true;
@@ -260196,10 +260196,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260196
260196
  let offset = bm.offset;
260197
260197
  let commentEnd = null;
260198
260198
  for (const collItem of bm.items) {
260199
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
260199
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260200
260200
  const keyProps = resolveProps.resolveProps(start3, {
260201
260201
  indicator: "explicit-key-ind",
260202
- next: key3 ?? sep3?.[0],
260202
+ next: key2 ?? sep3?.[0],
260203
260203
  offset,
260204
260204
  onError,
260205
260205
  parentIndent: bm.indent,
@@ -260207,10 +260207,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260207
260207
  });
260208
260208
  const implicitKey = !keyProps.found;
260209
260209
  if (implicitKey) {
260210
- if (key3) {
260211
- if (key3.type === "block-seq")
260210
+ if (key2) {
260211
+ if (key2.type === "block-seq")
260212
260212
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
260213
- else if ("indent" in key3 && key3.indent !== bm.indent)
260213
+ else if ("indent" in key2 && key2.indent !== bm.indent)
260214
260214
  onError(offset, "BAD_INDENT", startColMsg);
260215
260215
  }
260216
260216
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -260224,17 +260224,17 @@ var require_resolve_block_map = __commonJS((exports) => {
260224
260224
  }
260225
260225
  continue;
260226
260226
  }
260227
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
260228
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
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");
260229
260229
  }
260230
260230
  } else if (keyProps.found?.indent !== bm.indent) {
260231
260231
  onError(offset, "BAD_INDENT", startColMsg);
260232
260232
  }
260233
260233
  ctx.atKey = true;
260234
260234
  const keyStart = keyProps.end;
260235
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260235
+ const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260236
260236
  if (ctx.schema.compat)
260237
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
260237
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
260238
260238
  ctx.atKey = false;
260239
260239
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
260240
260240
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -260244,7 +260244,7 @@ var require_resolve_block_map = __commonJS((exports) => {
260244
260244
  offset: keyNode.range[2],
260245
260245
  onError,
260246
260246
  parentIndent: bm.indent,
260247
- startOnNewline: !key3 || key3.type === "block-scalar"
260247
+ startOnNewline: !key2 || key2.type === "block-scalar"
260248
260248
  });
260249
260249
  offset = valueProps.end;
260250
260250
  if (valueProps.found) {
@@ -260400,11 +260400,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260400
260400
  let offset = fc.offset + fc.start.source.length;
260401
260401
  for (let i6 = 0;i6 < fc.items.length; ++i6) {
260402
260402
  const collItem = fc.items[i6];
260403
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
260403
+ const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260404
260404
  const props = resolveProps.resolveProps(start3, {
260405
260405
  flow: fcName,
260406
260406
  indicator: "explicit-key-ind",
260407
- next: key3 ?? sep3?.[0],
260407
+ next: key2 ?? sep3?.[0],
260408
260408
  offset,
260409
260409
  onError,
260410
260410
  parentIndent: fc.indent,
@@ -260426,8 +260426,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260426
260426
  offset = props.end;
260427
260427
  continue;
260428
260428
  }
260429
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
260430
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
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");
260431
260431
  }
260432
260432
  if (i6 === 0) {
260433
260433
  if (props.comma)
@@ -260472,8 +260472,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260472
260472
  } else {
260473
260473
  ctx.atKey = true;
260474
260474
  const keyStart = props.end;
260475
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260476
- if (isBlock(key3))
260475
+ const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260476
+ if (isBlock(key2))
260477
260477
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
260478
260478
  ctx.atKey = false;
260479
260479
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -261285,7 +261285,7 @@ var require_composer = __commonJS((exports) => {
261285
261285
  var node_process = __require("node:process");
261286
261286
  var directives4 = require_directives2();
261287
261287
  var Document = require_Document();
261288
- var errors3 = require_errors3();
261288
+ var errors2 = require_errors3();
261289
261289
  var identity2 = require_identity();
261290
261290
  var composeDoc = require_compose_doc();
261291
261291
  var resolveEnd = require_resolve_end();
@@ -261336,9 +261336,9 @@ var require_composer = __commonJS((exports) => {
261336
261336
  this.onError = (source, code2, message, warning) => {
261337
261337
  const pos = getErrorPos(source);
261338
261338
  if (warning)
261339
- this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
261339
+ this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
261340
261340
  else
261341
- this.errors.push(new errors3.YAMLParseError(pos, code2, message));
261341
+ this.errors.push(new errors2.YAMLParseError(pos, code2, message));
261342
261342
  };
261343
261343
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
261344
261344
  this.options = options;
@@ -261422,7 +261422,7 @@ ${cb}` : comment;
261422
261422
  break;
261423
261423
  case "error": {
261424
261424
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
261425
- const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261425
+ const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261426
261426
  if (this.atDirectives || !this.doc)
261427
261427
  this.errors.push(error5);
261428
261428
  else
@@ -261432,7 +261432,7 @@ ${cb}` : comment;
261432
261432
  case "doc-end": {
261433
261433
  if (!this.doc) {
261434
261434
  const msg = "Unexpected doc-end without preceding document";
261435
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261435
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261436
261436
  break;
261437
261437
  }
261438
261438
  this.doc.directives.docEnd = true;
@@ -261447,7 +261447,7 @@ ${end.comment}` : end.comment;
261447
261447
  break;
261448
261448
  }
261449
261449
  default:
261450
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261450
+ this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261451
261451
  }
261452
261452
  }
261453
261453
  *end(forceDoc = false, endOffset = -1) {
@@ -261473,7 +261473,7 @@ ${end.comment}` : end.comment;
261473
261473
  var require_cst_scalar = __commonJS((exports) => {
261474
261474
  var resolveBlockScalar = require_resolve_block_scalar();
261475
261475
  var resolveFlowScalar = require_resolve_flow_scalar();
261476
- var errors3 = require_errors3();
261476
+ var errors2 = require_errors3();
261477
261477
  var stringifyString = require_stringifyString();
261478
261478
  function resolveAsScalar(token, strict = true, onError) {
261479
261479
  if (token) {
@@ -261482,7 +261482,7 @@ var require_cst_scalar = __commonJS((exports) => {
261482
261482
  if (onError)
261483
261483
  onError(offset, code2, message);
261484
261484
  else
261485
- throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
261485
+ throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
261486
261486
  };
261487
261487
  switch (token.type) {
261488
261488
  case "scalar":
@@ -261596,9 +261596,9 @@ var require_cst_scalar = __commonJS((exports) => {
261596
261596
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
261597
261597
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
261598
261598
  ` });
261599
- for (const key3 of Object.keys(token))
261600
- if (key3 !== "type" && key3 !== "offset")
261601
- delete token[key3];
261599
+ for (const key2 of Object.keys(token))
261600
+ if (key2 !== "type" && key2 !== "offset")
261601
+ delete token[key2];
261602
261602
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
261603
261603
  }
261604
261604
  }
@@ -261647,9 +261647,9 @@ var require_cst_scalar = __commonJS((exports) => {
261647
261647
  default: {
261648
261648
  const indent2 = "indent" in token ? token.indent : -1;
261649
261649
  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 key3 of Object.keys(token))
261651
- if (key3 !== "type" && key3 !== "offset")
261652
- delete token[key3];
261650
+ for (const key2 of Object.keys(token))
261651
+ if (key2 !== "type" && key2 !== "offset")
261652
+ delete token[key2];
261653
261653
  Object.assign(token, { type: type4, indent: indent2, source, end });
261654
261654
  }
261655
261655
  }
@@ -261701,12 +261701,12 @@ var require_cst_stringify = __commonJS((exports) => {
261701
261701
  }
261702
261702
  }
261703
261703
  }
261704
- function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
261704
+ function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
261705
261705
  let res = "";
261706
261706
  for (const st2 of start3)
261707
261707
  res += st2.source;
261708
- if (key3)
261709
- res += stringifyToken(key3);
261708
+ if (key2)
261709
+ res += stringifyToken(key2);
261710
261710
  if (sep3)
261711
261711
  for (const st2 of sep3)
261712
261712
  res += st2.source;
@@ -263003,7 +263003,7 @@ var require_parser2 = __commonJS((exports) => {
263003
263003
  });
263004
263004
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
263005
263005
  const start4 = getFirstKeyStartProps(it2.start);
263006
- const key3 = it2.key;
263006
+ const key2 = it2.key;
263007
263007
  const sep3 = it2.sep;
263008
263008
  sep3.push(this.sourceToken);
263009
263009
  delete it2.key;
@@ -263012,7 +263012,7 @@ var require_parser2 = __commonJS((exports) => {
263012
263012
  type: "block-map",
263013
263013
  offset: this.offset,
263014
263014
  indent: this.indent,
263015
- items: [{ start: start4, key: key3, sep: sep3 }]
263015
+ items: [{ start: start4, key: key2, sep: sep3 }]
263016
263016
  });
263017
263017
  } else if (start3.length > 0) {
263018
263018
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -263335,7 +263335,7 @@ var require_parser2 = __commonJS((exports) => {
263335
263335
  var require_public_api = __commonJS((exports) => {
263336
263336
  var composer = require_composer();
263337
263337
  var Document = require_Document();
263338
- var errors3 = require_errors3();
263338
+ var errors2 = require_errors3();
263339
263339
  var log = require_log();
263340
263340
  var identity2 = require_identity();
263341
263341
  var lineCounter = require_line_counter();
@@ -263352,8 +263352,8 @@ var require_public_api = __commonJS((exports) => {
263352
263352
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
263353
263353
  if (prettyErrors && lineCounter2)
263354
263354
  for (const doc of docs) {
263355
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
263356
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
263355
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263356
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263357
263357
  }
263358
263358
  if (docs.length > 0)
263359
263359
  return docs;
@@ -263368,13 +263368,13 @@ var require_public_api = __commonJS((exports) => {
263368
263368
  if (!doc)
263369
263369
  doc = _doc;
263370
263370
  else if (doc.options.logLevel !== "silent") {
263371
- doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263371
+ doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263372
263372
  break;
263373
263373
  }
263374
263374
  }
263375
263375
  if (prettyErrors && lineCounter2) {
263376
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
263377
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
263376
+ doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263377
+ doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263378
263378
  }
263379
263379
  return doc;
263380
263380
  }
@@ -274462,7 +274462,7 @@ function pruneCurrentEnv(currentEnv, env2) {
274462
274462
  var package_default = {
274463
274463
  name: "@settlemint/sdk-cli",
274464
274464
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
274465
- version: "1.1.8-pr3c839147",
274465
+ version: "1.1.8-pr54362060",
274466
274466
  type: "module",
274467
274467
  private: false,
274468
274468
  license: "FSL-1.1-MIT",
@@ -274507,11 +274507,11 @@ var package_default = {
274507
274507
  devDependencies: {
274508
274508
  "@commander-js/extra-typings": "13.1.0",
274509
274509
  "@inquirer/confirm": "5.1.6",
274510
- "@inquirer/input": "4.1.5",
274510
+ "@inquirer/input": "4.1.6",
274511
274511
  "@inquirer/password": "4.0.9",
274512
274512
  "@inquirer/select": "4.0.9",
274513
- "@settlemint/sdk-js": "1.1.8-pr3c839147",
274514
- "@settlemint/sdk-utils": "1.1.8-pr3c839147",
274513
+ "@settlemint/sdk-js": "1.1.8-pr54362060",
274514
+ "@settlemint/sdk-utils": "1.1.8-pr54362060",
274515
274515
  "@types/node": "22.13.4",
274516
274516
  "@types/semver": "7.5.8",
274517
274517
  "@types/which": "3.0.4",
@@ -280337,478 +280337,23 @@ var esm_default3 = createPrompt((config3, done) => {
280337
280337
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
280338
280338
  });
280339
280339
 
280340
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
280341
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
280342
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
280343
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
280344
- class AbortPromptError2 extends Error {
280345
- name = "AbortPromptError";
280346
- message = "Prompt was aborted";
280347
- constructor(options) {
280348
- super();
280349
- this.cause = options?.cause;
280350
- }
280351
- }
280352
-
280353
- class CancelPromptError2 extends Error {
280354
- name = "CancelPromptError";
280355
- message = "Prompt was canceled";
280356
- }
280357
-
280358
- class ExitPromptError2 extends Error {
280359
- name = "ExitPromptError";
280360
- }
280361
-
280362
- class HookError2 extends Error {
280363
- name = "HookError";
280364
- }
280365
-
280366
- class ValidationError2 extends Error {
280367
- name = "ValidationError";
280368
- }
280369
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280370
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
280371
-
280372
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
280373
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
280374
- var hookStorage2 = new AsyncLocalStorage2;
280375
- function createStore2(rl) {
280376
- const store = {
280377
- rl,
280378
- hooks: [],
280379
- hooksCleanup: [],
280380
- hooksEffect: [],
280381
- index: 0,
280382
- handleChange() {
280383
- }
280384
- };
280385
- return store;
280386
- }
280387
- function withHooks2(rl, cb) {
280388
- const store = createStore2(rl);
280389
- return hookStorage2.run(store, () => {
280390
- function cycle(render) {
280391
- store.handleChange = () => {
280392
- store.index = 0;
280393
- render();
280394
- };
280395
- store.handleChange();
280396
- }
280397
- return cb(cycle);
280398
- });
280399
- }
280400
- function getStore2() {
280401
- const store = hookStorage2.getStore();
280402
- if (!store) {
280403
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
280404
- }
280405
- return store;
280406
- }
280407
- function readline3() {
280408
- return getStore2().rl;
280409
- }
280410
- function withUpdates2(fn) {
280411
- const wrapped = (...args) => {
280412
- const store = getStore2();
280413
- let shouldUpdate = false;
280414
- const oldHandleChange = store.handleChange;
280415
- store.handleChange = () => {
280416
- shouldUpdate = true;
280417
- };
280418
- const returnValue = fn(...args);
280419
- if (shouldUpdate) {
280420
- oldHandleChange();
280421
- }
280422
- store.handleChange = oldHandleChange;
280423
- return returnValue;
280424
- };
280425
- return AsyncResource4.bind(wrapped);
280426
- }
280427
- function withPointer2(cb) {
280428
- const store = getStore2();
280429
- const { index } = store;
280430
- const pointer = {
280431
- get() {
280432
- return store.hooks[index];
280433
- },
280434
- set(value4) {
280435
- store.hooks[index] = value4;
280436
- },
280437
- initialized: index in store.hooks
280438
- };
280439
- const returnValue = cb(pointer);
280440
- store.index++;
280441
- return returnValue;
280442
- }
280443
- function handleChange2() {
280444
- getStore2().handleChange();
280445
- }
280446
- var effectScheduler2 = {
280447
- queue(cb) {
280448
- const store = getStore2();
280449
- const { index } = store;
280450
- store.hooksEffect.push(() => {
280451
- store.hooksCleanup[index]?.();
280452
- const cleanFn = cb(readline3());
280453
- if (cleanFn != null && typeof cleanFn !== "function") {
280454
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
280455
- }
280456
- store.hooksCleanup[index] = cleanFn;
280457
- });
280458
- },
280459
- run() {
280460
- const store = getStore2();
280461
- withUpdates2(() => {
280462
- store.hooksEffect.forEach((effect) => {
280463
- effect();
280464
- });
280465
- store.hooksEffect.length = 0;
280466
- })();
280467
- },
280468
- clearAll() {
280469
- const store = getStore2();
280470
- store.hooksCleanup.forEach((cleanFn) => {
280471
- cleanFn?.();
280472
- });
280473
- store.hooksEffect.length = 0;
280474
- store.hooksCleanup.length = 0;
280475
- }
280476
- };
280477
-
280478
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
280479
- function useState2(defaultValue) {
280480
- return withPointer2((pointer) => {
280481
- const setFn = (newValue) => {
280482
- if (pointer.get() !== newValue) {
280483
- pointer.set(newValue);
280484
- handleChange2();
280485
- }
280486
- };
280487
- if (pointer.initialized) {
280488
- return [pointer.get(), setFn];
280489
- }
280490
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
280491
- pointer.set(value4);
280492
- return [value4, setFn];
280493
- });
280494
- }
280495
-
280496
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
280497
- function useEffect2(cb, depArray) {
280498
- withPointer2((pointer) => {
280499
- const oldDeps = pointer.get();
280500
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
280501
- if (hasChanged) {
280502
- effectScheduler2.queue(cb);
280503
- }
280504
- pointer.set(depArray);
280505
- });
280506
- }
280507
-
280508
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
280509
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
280510
- var defaultTheme2 = {
280511
- prefix: {
280512
- idle: import_yoctocolors_cjs4.default.blue("?"),
280513
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
280514
- },
280515
- spinner: {
280516
- interval: 80,
280517
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
280518
- },
280519
- style: {
280520
- answer: import_yoctocolors_cjs4.default.cyan,
280521
- message: import_yoctocolors_cjs4.default.bold,
280522
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
280523
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
280524
- help: import_yoctocolors_cjs4.default.dim,
280525
- highlight: import_yoctocolors_cjs4.default.cyan,
280526
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
280527
- }
280528
- };
280529
-
280530
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
280531
- function isPlainObject3(value4) {
280532
- if (typeof value4 !== "object" || value4 === null)
280533
- return false;
280534
- let proto = value4;
280535
- while (Object.getPrototypeOf(proto) !== null) {
280536
- proto = Object.getPrototypeOf(proto);
280537
- }
280538
- return Object.getPrototypeOf(value4) === proto;
280539
- }
280540
- function deepMerge3(...objects) {
280541
- const output = {};
280542
- for (const obj of objects) {
280543
- for (const [key2, value4] of Object.entries(obj)) {
280544
- const prevValue = output[key2];
280545
- output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
280546
- }
280547
- }
280548
- return output;
280549
- }
280550
- function makeTheme2(...themes) {
280551
- const themesToMerge = [
280552
- defaultTheme2,
280553
- ...themes.filter((theme) => theme != null)
280554
- ];
280555
- return deepMerge3(...themesToMerge);
280556
- }
280557
-
280558
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280559
- function usePrefix2({ status = "idle", theme }) {
280560
- const [showLoader, setShowLoader] = useState2(false);
280561
- const [tick, setTick] = useState2(0);
280562
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
280563
- useEffect2(() => {
280564
- if (status === "loading") {
280565
- let tickInterval;
280566
- let inc = -1;
280567
- const delayTimeout = setTimeout(AsyncResource5.bind(() => {
280568
- setShowLoader(true);
280569
- tickInterval = setInterval(AsyncResource5.bind(() => {
280570
- inc = inc + 1;
280571
- setTick(inc % spinner2.frames.length);
280572
- }), spinner2.interval);
280573
- }), 300);
280574
- return () => {
280575
- clearTimeout(delayTimeout);
280576
- clearInterval(tickInterval);
280577
- };
280578
- } else {
280579
- setShowLoader(false);
280580
- }
280581
- }, [status]);
280582
- if (showLoader) {
280583
- return spinner2.frames[tick];
280584
- }
280585
- const iconName = status === "loading" ? "idle" : status;
280586
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
280587
- }
280588
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
280589
- function useRef2(val) {
280590
- return useState2({ current: val })[0];
280591
- }
280592
-
280593
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
280594
- function useKeypress2(userHandler) {
280595
- const signal = useRef2(userHandler);
280596
- signal.current = userHandler;
280597
- useEffect2((rl) => {
280598
- let ignore = false;
280599
- const handler = withUpdates2((_input, event) => {
280600
- if (ignore)
280601
- return;
280602
- signal.current(event, rl);
280603
- });
280604
- rl.input.on("keypress", handler);
280605
- return () => {
280606
- ignore = true;
280607
- rl.input.removeListener("keypress", handler);
280608
- };
280609
- }, []);
280610
- }
280611
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
280612
- var import_cli_width2 = __toESM(require_cli_width(), 1);
280613
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
280614
- function breakLines2(content, width) {
280615
- return content.split(`
280616
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
280617
- `).map((str) => str.trimEnd())).join(`
280618
- `);
280619
- }
280620
- function readlineWidth2() {
280621
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
280622
- }
280623
-
280624
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280625
- var import_mute_stream2 = __toESM(require_lib(), 1);
280626
- import * as readline4 from "node:readline";
280627
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
280628
-
280629
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
280630
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280631
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
280632
- var height2 = (content) => content.split(`
280633
- `).length;
280634
- var lastLine2 = (content) => content.split(`
280635
- `).pop() ?? "";
280636
- function cursorDown2(n6) {
280637
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
280638
- }
280639
-
280640
- class ScreenManager2 {
280641
- rl;
280642
- height = 0;
280643
- extraLinesUnderPrompt = 0;
280644
- cursorPos;
280645
- constructor(rl) {
280646
- this.rl = rl;
280647
- this.rl = rl;
280648
- this.cursorPos = rl.getCursorPos();
280649
- }
280650
- write(content) {
280651
- this.rl.output.unmute();
280652
- this.rl.output.write(content);
280653
- this.rl.output.mute();
280654
- }
280655
- render(content, bottomContent = "") {
280656
- const promptLine = lastLine2(content);
280657
- const rawPromptLine = stripVTControlCharacters3(promptLine);
280658
- let prompt = rawPromptLine;
280659
- if (this.rl.line.length > 0) {
280660
- prompt = prompt.slice(0, -this.rl.line.length);
280661
- }
280662
- this.rl.setPrompt(prompt);
280663
- this.cursorPos = this.rl.getCursorPos();
280664
- const width = readlineWidth2();
280665
- content = breakLines2(content, width);
280666
- bottomContent = breakLines2(bottomContent, width);
280667
- if (rawPromptLine.length % width === 0) {
280668
- content += `
280669
- `;
280670
- }
280671
- let output = content + (bottomContent ? `
280672
- ` + bottomContent : "");
280673
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
280674
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
280675
- if (bottomContentHeight > 0)
280676
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
280677
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
280678
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
280679
- this.extraLinesUnderPrompt = bottomContentHeight;
280680
- this.height = height2(output);
280681
- }
280682
- checkCursorPos() {
280683
- const cursorPos = this.rl.getCursorPos();
280684
- if (cursorPos.cols !== this.cursorPos.cols) {
280685
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
280686
- this.cursorPos = cursorPos;
280687
- }
280688
- }
280689
- done({ clearContent }) {
280690
- this.rl.setPrompt("");
280691
- let output = cursorDown2(this.extraLinesUnderPrompt);
280692
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
280693
- `;
280694
- output += import_ansi_escapes3.default.cursorShow;
280695
- this.write(output);
280696
- this.rl.close();
280697
- }
280698
- }
280699
-
280700
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
280701
- class PromisePolyfill2 extends Promise {
280702
- static withResolver() {
280703
- let resolve6;
280704
- let reject;
280705
- const promise = new Promise((res, rej) => {
280706
- resolve6 = res;
280707
- reject = rej;
280708
- });
280709
- return { promise, resolve: resolve6, reject };
280710
- }
280711
- }
280712
-
280713
- // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280714
- function getCallSites2() {
280715
- const _prepareStackTrace = Error.prepareStackTrace;
280716
- try {
280717
- let result = [];
280718
- Error.prepareStackTrace = (_5, callSites) => {
280719
- const callSitesWithoutCurrent = callSites.slice(1);
280720
- result = callSitesWithoutCurrent;
280721
- return callSitesWithoutCurrent;
280722
- };
280723
- new Error().stack;
280724
- return result;
280725
- } finally {
280726
- Error.prepareStackTrace = _prepareStackTrace;
280727
- }
280728
- }
280729
- function createPrompt2(view) {
280730
- const callSites = getCallSites2();
280731
- const callerFilename = callSites[1]?.getFileName?.();
280732
- const prompt = (config3, context = {}) => {
280733
- const { input = process.stdin, signal } = context;
280734
- const cleanups = new Set;
280735
- const output = new import_mute_stream2.default;
280736
- output.pipe(context.output ?? process.stdout);
280737
- const rl = readline4.createInterface({
280738
- terminal: true,
280739
- input,
280740
- output
280741
- });
280742
- const screen = new ScreenManager2(rl);
280743
- const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
280744
- const cancel3 = () => reject(new CancelPromptError2);
280745
- if (signal) {
280746
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
280747
- if (signal.aborted) {
280748
- abort();
280749
- return Object.assign(promise, { cancel: cancel3 });
280750
- }
280751
- signal.addEventListener("abort", abort);
280752
- cleanups.add(() => signal.removeEventListener("abort", abort));
280753
- }
280754
- cleanups.add(onExit((code2, signal2) => {
280755
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
280756
- }));
280757
- const checkCursorPos = () => screen.checkCursorPos();
280758
- rl.input.on("keypress", checkCursorPos);
280759
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
280760
- return withHooks2(rl, (cycle) => {
280761
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
280762
- rl.on("close", hooksCleanup);
280763
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
280764
- cycle(() => {
280765
- try {
280766
- const nextView = view(config3, (value4) => {
280767
- setImmediate(() => resolve6(value4));
280768
- });
280769
- if (nextView === undefined) {
280770
- throw new Error(`Prompt functions must return a string.
280771
- at ${callerFilename}`);
280772
- }
280773
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
280774
- screen.render(content, bottomContent);
280775
- effectScheduler2.run();
280776
- } catch (error5) {
280777
- reject(error5);
280778
- }
280779
- });
280780
- return Object.assign(promise.then((answer) => {
280781
- effectScheduler2.clearAll();
280782
- return answer;
280783
- }, (error5) => {
280784
- effectScheduler2.clearAll();
280785
- throw error5;
280786
- }).finally(() => {
280787
- cleanups.forEach((cleanup) => cleanup());
280788
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
280789
- output.end();
280790
- }).then(() => promise), { cancel: cancel3 });
280791
- });
280792
- };
280793
- return prompt;
280794
- }
280795
280340
  // ../../node_modules/@inquirer/input/dist/esm/index.js
280796
280341
  var inputTheme = {
280797
280342
  validationFailureMode: "keep"
280798
280343
  };
280799
- var esm_default4 = createPrompt2((config3, done) => {
280344
+ var esm_default4 = createPrompt((config3, done) => {
280800
280345
  const { required, validate: validate3 = () => true } = config3;
280801
- const theme = makeTheme2(inputTheme, config3.theme);
280802
- const [status, setStatus] = useState2("idle");
280803
- const [defaultValue = "", setDefaultValue] = useState2(config3.default);
280804
- const [errorMsg, setError] = useState2();
280805
- const [value4, setValue] = useState2("");
280806
- const prefix = usePrefix2({ status, theme });
280807
- useKeypress2(async (key3, rl) => {
280346
+ const theme = makeTheme(inputTheme, config3.theme);
280347
+ const [status, setStatus] = useState("idle");
280348
+ const [defaultValue = "", setDefaultValue] = useState(config3.default);
280349
+ const [errorMsg, setError] = useState();
280350
+ const [value4, setValue] = useState("");
280351
+ const prefix = usePrefix({ status, theme });
280352
+ useKeypress(async (key2, rl) => {
280808
280353
  if (status !== "idle") {
280809
280354
  return;
280810
280355
  }
280811
- if (isEnterKey2(key3)) {
280356
+ if (isEnterKey(key2)) {
280812
280357
  const answer = value4 || defaultValue;
280813
280358
  setStatus("loading");
280814
280359
  const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
@@ -280825,9 +280370,9 @@ var esm_default4 = createPrompt2((config3, done) => {
280825
280370
  setError(isValid2 || "You must provide a valid value");
280826
280371
  setStatus("idle");
280827
280372
  }
280828
- } else if (isBackspaceKey2(key3) && !value4) {
280373
+ } else if (isBackspaceKey(key2) && !value4) {
280829
280374
  setDefaultValue(undefined);
280830
- } else if (key3.name === "tab" && !value4) {
280375
+ } else if (key2.name === "tab" && !value4) {
280831
280376
  setDefaultValue(undefined);
280832
280377
  rl.clearLine(0);
280833
280378
  rl.write(defaultValue);
@@ -280859,7 +280404,7 @@ var esm_default4 = createPrompt2((config3, done) => {
280859
280404
  });
280860
280405
 
280861
280406
  // ../../node_modules/@inquirer/password/dist/esm/index.js
280862
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
280407
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280863
280408
  var esm_default5 = createPrompt((config3, done) => {
280864
280409
  const { validate: validate3 = () => true } = config3;
280865
280410
  const theme = makeTheme(config3.theme);
@@ -280867,11 +280412,11 @@ var esm_default5 = createPrompt((config3, done) => {
280867
280412
  const [errorMsg, setError] = useState();
280868
280413
  const [value4, setValue] = useState("");
280869
280414
  const prefix = usePrefix({ status, theme });
280870
- useKeypress(async (key3, rl) => {
280415
+ useKeypress(async (key2, rl) => {
280871
280416
  if (status !== "idle") {
280872
280417
  return;
280873
280418
  }
280874
- if (isEnterKey(key3)) {
280419
+ if (isEnterKey(key2)) {
280875
280420
  const answer = value4;
280876
280421
  setStatus("loading");
280877
280422
  const isValid2 = await validate3(answer);
@@ -280896,7 +280441,7 @@ var esm_default5 = createPrompt((config3, done) => {
280896
280441
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
280897
280442
  formattedValue = maskChar.repeat(value4.length);
280898
280443
  } else if (status !== "done") {
280899
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
280444
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
280900
280445
  }
280901
280446
  if (status === "done") {
280902
280447
  formattedValue = theme.style.answer(formattedValue);
@@ -281968,7 +281513,7 @@ var basename2 = function(p6, extension) {
281968
281513
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
281969
281514
  };
281970
281515
  // ../../node_modules/defu/dist/defu.mjs
281971
- function isPlainObject4(value4) {
281516
+ function isPlainObject3(value4) {
281972
281517
  if (value4 === null || typeof value4 !== "object") {
281973
281518
  return false;
281974
281519
  }
@@ -281985,27 +281530,27 @@ function isPlainObject4(value4) {
281985
281530
  return true;
281986
281531
  }
281987
281532
  function _defu(baseObject, defaults2, namespace = ".", merger) {
281988
- if (!isPlainObject4(defaults2)) {
281533
+ if (!isPlainObject3(defaults2)) {
281989
281534
  return _defu(baseObject, {}, namespace, merger);
281990
281535
  }
281991
281536
  const object = Object.assign({}, defaults2);
281992
- for (const key3 in baseObject) {
281993
- if (key3 === "__proto__" || key3 === "constructor") {
281537
+ for (const key2 in baseObject) {
281538
+ if (key2 === "__proto__" || key2 === "constructor") {
281994
281539
  continue;
281995
281540
  }
281996
- const value4 = baseObject[key3];
281541
+ const value4 = baseObject[key2];
281997
281542
  if (value4 === null || value4 === undefined) {
281998
281543
  continue;
281999
281544
  }
282000
- if (merger && merger(object, key3, value4, namespace)) {
281545
+ if (merger && merger(object, key2, value4, namespace)) {
282001
281546
  continue;
282002
281547
  }
282003
- if (Array.isArray(value4) && Array.isArray(object[key3])) {
282004
- object[key3] = [...value4, ...object[key3]];
282005
- } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
282006
- object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
281548
+ if (Array.isArray(value4) && Array.isArray(object[key2])) {
281549
+ object[key2] = [...value4, ...object[key2]];
281550
+ } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
281551
+ object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
282007
281552
  } else {
282008
- object[key3] = value4;
281553
+ object[key2] = value4;
282009
281554
  }
282010
281555
  }
282011
281556
  return object;
@@ -282014,15 +281559,15 @@ function createDefu(merger) {
282014
281559
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
282015
281560
  }
282016
281561
  var defu = createDefu();
282017
- var defuFn = createDefu((object, key3, currentValue) => {
282018
- if (object[key3] !== undefined && typeof currentValue === "function") {
282019
- object[key3] = currentValue(object[key3]);
281562
+ var defuFn = createDefu((object, key2, currentValue) => {
281563
+ if (object[key2] !== undefined && typeof currentValue === "function") {
281564
+ object[key2] = currentValue(object[key2]);
282020
281565
  return true;
282021
281566
  }
282022
281567
  });
282023
- var defuArrayFn = createDefu((object, key3, currentValue) => {
282024
- if (Array.isArray(object[key3]) && typeof currentValue === "function") {
282025
- object[key3] = currentValue(object[key3]);
281568
+ var defuArrayFn = createDefu((object, key2, currentValue) => {
281569
+ if (Array.isArray(object[key2]) && typeof currentValue === "function") {
281570
+ object[key2] = currentValue(object[key2]);
282026
281571
  return true;
282027
281572
  }
282028
281573
  });
@@ -282284,11 +281829,11 @@ function cacheDirectory() {
282284
281829
  }
282285
281830
  function normalizeHeaders(headers = {}) {
282286
281831
  const normalized = {};
282287
- for (const [key3, value4] of Object.entries(headers)) {
281832
+ for (const [key2, value4] of Object.entries(headers)) {
282288
281833
  if (!value4) {
282289
281834
  continue;
282290
281835
  }
282291
- normalized[key3.toLowerCase()] = value4;
281836
+ normalized[key2.toLowerCase()] = value4;
282292
281837
  }
282293
281838
  return normalized;
282294
281839
  }
@@ -284521,7 +284066,7 @@ function jsonOutput(data) {
284521
284066
  var composer = require_composer();
284522
284067
  var Document = require_Document();
284523
284068
  var Schema = require_Schema();
284524
- var errors3 = require_errors3();
284069
+ var errors2 = require_errors3();
284525
284070
  var Alias = require_Alias();
284526
284071
  var identity2 = require_identity();
284527
284072
  var Pair = require_Pair();
@@ -284537,9 +284082,9 @@ var visit2 = require_visit();
284537
284082
  var $Composer = composer.Composer;
284538
284083
  var $Document = Document.Document;
284539
284084
  var $Schema = Schema.Schema;
284540
- var $YAMLError = errors3.YAMLError;
284541
- var $YAMLParseError = errors3.YAMLParseError;
284542
- var $YAMLWarning = errors3.YAMLWarning;
284085
+ var $YAMLError = errors2.YAMLError;
284086
+ var $YAMLParseError = errors2.YAMLParseError;
284087
+ var $YAMLWarning = errors2.YAMLWarning;
284543
284088
  var $Alias = Alias.Alias;
284544
284089
  var $isAlias = identity2.isAlias;
284545
284090
  var $isCollection = identity2.isCollection;
@@ -284885,7 +284430,7 @@ async function getServicesAndMapResults({
284885
284430
  const application = await settlemint.application.read(applicationUniqueName);
284886
284431
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
284887
284432
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
284888
- const [_5, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
284433
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
284889
284434
  null,
284890
284435
  { plural: serviceType }
284891
284436
  ];
@@ -285113,11 +284658,11 @@ function createCommand4() {
285113
284658
 
285114
284659
  // src/utils/commands/passthrough-options.ts
285115
284660
  function mapPassthroughOptions(options, command) {
285116
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
284661
+ const optionArgs = Object.entries(options).map(([key2, value4]) => {
285117
284662
  if (value4 === true) {
285118
- return `--${key3}`;
284663
+ return `--${key2}`;
285119
284664
  }
285120
- return `--${key3}=${value4}`;
284665
+ return `--${key2}=${value4}`;
285121
284666
  });
285122
284667
  return [...optionArgs, ...command.args];
285123
284668
  }
@@ -286128,4 +285673,4 @@ async function sdkCliCommand(argv = process.argv) {
286128
285673
  // src/cli.ts
286129
285674
  sdkCliCommand();
286130
285675
 
286131
- //# debugId=A49BC0FF62DCBF4364756E2164756E21
285676
+ //# debugId=13B6142E5081413064756E2164756E21