@settlemint/sdk-cli 1.1.16-pr3067e493 → 1.1.16-pr54de587d

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 +1333 -425
  2. package/dist/cli.js.map +32 -4
  3. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -232245,8 +232245,8 @@ var require_lib13 = __commonJS((exports, module) => {
232245
232245
  function fetch2(input, options) {
232246
232246
  return nodeFetch.fetch(input, options);
232247
232247
  }
232248
- for (const key3 in nodeFetch) {
232249
- fetch2[key3] = nodeFetch[key3];
232248
+ for (const key5 in nodeFetch) {
232249
+ fetch2[key5] = nodeFetch[key5];
232250
232250
  }
232251
232251
  module.exports = fetch2;
232252
232252
  });
@@ -232339,11 +232339,11 @@ var require_proxy = __commonJS((exports) => {
232339
232339
  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;
232340
232340
  }
232341
232341
  e10(requireSymbols$4, "requireSymbols$4");
232342
- var errors3;
232342
+ var errors5;
232343
232343
  var hasRequiredErrors;
232344
232344
  function requireErrors() {
232345
232345
  if (hasRequiredErrors)
232346
- return errors3;
232346
+ return errors5;
232347
232347
  hasRequiredErrors = 1;
232348
232348
 
232349
232349
  class A5 extends Error {
@@ -232552,7 +232552,7 @@ var require_proxy = __commonJS((exports) => {
232552
232552
  super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
232553
232553
  }
232554
232554
  }
232555
- return errors3 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l2, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors3;
232555
+ return errors5 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l2, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors5;
232556
232556
  }
232557
232557
  e10(requireErrors, "requireErrors");
232558
232558
  var constants$4;
@@ -242525,11 +242525,11 @@ var require_visit = __commonJS((exports) => {
242525
242525
  visit2.BREAK = BREAK;
242526
242526
  visit2.SKIP = SKIP;
242527
242527
  visit2.REMOVE = REMOVE;
242528
- function visit_(key3, node, visitor, path5) {
242529
- const ctrl = callVisitor(key3, node, visitor, path5);
242528
+ function visit_(key5, node, visitor, path5) {
242529
+ const ctrl = callVisitor(key5, node, visitor, path5);
242530
242530
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
242531
- replaceNode(key3, path5, ctrl);
242532
- return visit_(key3, ctrl, visitor, path5);
242531
+ replaceNode(key5, path5, ctrl);
242532
+ return visit_(key5, ctrl, visitor, path5);
242533
242533
  }
242534
242534
  if (typeof ctrl !== "symbol") {
242535
242535
  if (identity2.isCollection(node)) {
@@ -242573,11 +242573,11 @@ var require_visit = __commonJS((exports) => {
242573
242573
  visitAsync.BREAK = BREAK;
242574
242574
  visitAsync.SKIP = SKIP;
242575
242575
  visitAsync.REMOVE = REMOVE;
242576
- async function visitAsync_(key3, node, visitor, path5) {
242577
- const ctrl = await callVisitor(key3, node, visitor, path5);
242576
+ async function visitAsync_(key5, node, visitor, path5) {
242577
+ const ctrl = await callVisitor(key5, node, visitor, path5);
242578
242578
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
242579
- replaceNode(key3, path5, ctrl);
242580
- return visitAsync_(key3, ctrl, visitor, path5);
242579
+ replaceNode(key5, path5, ctrl);
242580
+ return visitAsync_(key5, ctrl, visitor, path5);
242581
242581
  }
242582
242582
  if (typeof ctrl !== "symbol") {
242583
242583
  if (identity2.isCollection(node)) {
@@ -242627,27 +242627,27 @@ var require_visit = __commonJS((exports) => {
242627
242627
  }
242628
242628
  return visitor;
242629
242629
  }
242630
- function callVisitor(key3, node, visitor, path5) {
242630
+ function callVisitor(key5, node, visitor, path5) {
242631
242631
  if (typeof visitor === "function")
242632
- return visitor(key3, node, path5);
242632
+ return visitor(key5, node, path5);
242633
242633
  if (identity2.isMap(node))
242634
- return visitor.Map?.(key3, node, path5);
242634
+ return visitor.Map?.(key5, node, path5);
242635
242635
  if (identity2.isSeq(node))
242636
- return visitor.Seq?.(key3, node, path5);
242636
+ return visitor.Seq?.(key5, node, path5);
242637
242637
  if (identity2.isPair(node))
242638
- return visitor.Pair?.(key3, node, path5);
242638
+ return visitor.Pair?.(key5, node, path5);
242639
242639
  if (identity2.isScalar(node))
242640
- return visitor.Scalar?.(key3, node, path5);
242640
+ return visitor.Scalar?.(key5, node, path5);
242641
242641
  if (identity2.isAlias(node))
242642
- return visitor.Alias?.(key3, node, path5);
242642
+ return visitor.Alias?.(key5, node, path5);
242643
242643
  return;
242644
242644
  }
242645
- function replaceNode(key3, path5, node) {
242645
+ function replaceNode(key5, path5, node) {
242646
242646
  const parent = path5[path5.length - 1];
242647
242647
  if (identity2.isCollection(parent)) {
242648
- parent.items[key3] = node;
242648
+ parent.items[key5] = node;
242649
242649
  } else if (identity2.isPair(parent)) {
242650
- if (key3 === "key")
242650
+ if (key5 === "key")
242651
242651
  parent.key = node;
242652
242652
  else
242653
242653
  parent.value = node;
@@ -242879,7 +242879,7 @@ var require_anchors = __commonJS((exports) => {
242879
242879
 
242880
242880
  // ../../node_modules/yaml/dist/doc/applyReviver.js
242881
242881
  var require_applyReviver = __commonJS((exports) => {
242882
- function applyReviver(reviver, obj, key3, val) {
242882
+ function applyReviver(reviver, obj, key5, val) {
242883
242883
  if (val && typeof val === "object") {
242884
242884
  if (Array.isArray(val)) {
242885
242885
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -242919,7 +242919,7 @@ var require_applyReviver = __commonJS((exports) => {
242919
242919
  }
242920
242920
  }
242921
242921
  }
242922
- return reviver.call(obj, key3, val);
242922
+ return reviver.call(obj, key5, val);
242923
242923
  }
242924
242924
  exports.applyReviver = applyReviver;
242925
242925
  });
@@ -243237,29 +243237,29 @@ var require_Collection = __commonJS((exports) => {
243237
243237
  if (isEmptyPath(path5))
243238
243238
  this.add(value4);
243239
243239
  else {
243240
- const [key3, ...rest] = path5;
243241
- const node = this.get(key3, true);
243240
+ const [key5, ...rest] = path5;
243241
+ const node = this.get(key5, true);
243242
243242
  if (identity2.isCollection(node))
243243
243243
  node.addIn(rest, value4);
243244
243244
  else if (node === undefined && this.schema)
243245
- this.set(key3, collectionFromPath(this.schema, rest, value4));
243245
+ this.set(key5, collectionFromPath(this.schema, rest, value4));
243246
243246
  else
243247
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243247
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
243248
243248
  }
243249
243249
  }
243250
243250
  deleteIn(path5) {
243251
- const [key3, ...rest] = path5;
243251
+ const [key5, ...rest] = path5;
243252
243252
  if (rest.length === 0)
243253
- return this.delete(key3);
243254
- const node = this.get(key3, true);
243253
+ return this.delete(key5);
243254
+ const node = this.get(key5, true);
243255
243255
  if (identity2.isCollection(node))
243256
243256
  return node.deleteIn(rest);
243257
243257
  else
243258
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243258
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
243259
243259
  }
243260
243260
  getIn(path5, keepScalar) {
243261
- const [key3, ...rest] = path5;
243262
- const node = this.get(key3, true);
243261
+ const [key5, ...rest] = path5;
243262
+ const node = this.get(key5, true);
243263
243263
  if (rest.length === 0)
243264
243264
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
243265
243265
  else
@@ -243274,24 +243274,24 @@ var require_Collection = __commonJS((exports) => {
243274
243274
  });
243275
243275
  }
243276
243276
  hasIn(path5) {
243277
- const [key3, ...rest] = path5;
243277
+ const [key5, ...rest] = path5;
243278
243278
  if (rest.length === 0)
243279
- return this.has(key3);
243280
- const node = this.get(key3, true);
243279
+ return this.has(key5);
243280
+ const node = this.get(key5, true);
243281
243281
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
243282
243282
  }
243283
243283
  setIn(path5, value4) {
243284
- const [key3, ...rest] = path5;
243284
+ const [key5, ...rest] = path5;
243285
243285
  if (rest.length === 0) {
243286
- this.set(key3, value4);
243286
+ this.set(key5, value4);
243287
243287
  } else {
243288
- const node = this.get(key3, true);
243288
+ const node = this.get(key5, true);
243289
243289
  if (identity2.isCollection(node))
243290
243290
  node.setIn(rest, value4);
243291
243291
  else if (node === undefined && this.schema)
243292
- this.set(key3, collectionFromPath(this.schema, rest, value4));
243292
+ this.set(key5, collectionFromPath(this.schema, rest, value4));
243293
243293
  else
243294
- throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243294
+ throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
243295
243295
  }
243296
243296
  }
243297
243297
  }
@@ -243879,19 +243879,19 @@ var require_stringifyPair = __commonJS((exports) => {
243879
243879
  var Scalar = require_Scalar();
243880
243880
  var stringify3 = require_stringify();
243881
243881
  var stringifyComment = require_stringifyComment();
243882
- function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
243882
+ function stringifyPair2({ key: key5, value: value4 }, ctx, onComment, onChompKeep) {
243883
243883
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
243884
- let keyComment = identity2.isNode(key3) && key3.comment || null;
243884
+ let keyComment = identity2.isNode(key5) && key5.comment || null;
243885
243885
  if (simpleKeys) {
243886
243886
  if (keyComment) {
243887
243887
  throw new Error("With simple keys, key nodes cannot have comments");
243888
243888
  }
243889
- if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
243889
+ if (identity2.isCollection(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
243890
243890
  const msg = "With simple keys, collection cannot be used as a key value";
243891
243891
  throw new Error(msg);
243892
243892
  }
243893
243893
  }
243894
- 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"));
243894
+ let explicitKey = !simpleKeys && (!key5 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key5) || (identity2.isScalar(key5) ? key5.type === Scalar.Scalar.BLOCK_FOLDED || key5.type === Scalar.Scalar.BLOCK_LITERAL : typeof key5 === "object"));
243895
243895
  ctx = Object.assign({}, ctx, {
243896
243896
  allNullValues: false,
243897
243897
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -243899,7 +243899,7 @@ var require_stringifyPair = __commonJS((exports) => {
243899
243899
  });
243900
243900
  let keyCommentDone = false;
243901
243901
  let chompKeep = false;
243902
- let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
243902
+ let str = stringify3.stringify(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
243903
243903
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
243904
243904
  if (simpleKeys)
243905
243905
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -244043,7 +244043,7 @@ var require_merge = __commonJS((exports) => {
244043
244043
  }),
244044
244044
  stringify: () => MERGE_KEY
244045
244045
  };
244046
- 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);
244046
+ var isMergeKey = (ctx, key5) => (merge3.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge3.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
244047
244047
  function addMergeToJSMap(ctx, map3, value4) {
244048
244048
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
244049
244049
  if (identity2.isSeq(value4))
@@ -244060,14 +244060,14 @@ var require_merge = __commonJS((exports) => {
244060
244060
  if (!identity2.isMap(source))
244061
244061
  throw new Error("Merge sources must be maps or map aliases");
244062
244062
  const srcMap = source.toJSON(null, ctx, Map);
244063
- for (const [key3, value5] of srcMap) {
244063
+ for (const [key5, value5] of srcMap) {
244064
244064
  if (map3 instanceof Map) {
244065
- if (!map3.has(key3))
244066
- map3.set(key3, value5);
244065
+ if (!map3.has(key5))
244066
+ map3.set(key5, value5);
244067
244067
  } else if (map3 instanceof Set) {
244068
- map3.add(key3);
244069
- } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
244070
- Object.defineProperty(map3, key3, {
244068
+ map3.add(key5);
244069
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key5)) {
244070
+ Object.defineProperty(map3, key5, {
244071
244071
  value: value5,
244072
244072
  writable: true,
244073
244073
  enumerable: true,
@@ -244089,19 +244089,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
244089
244089
  var stringify3 = require_stringify();
244090
244090
  var identity2 = require_identity();
244091
244091
  var toJS = require_toJS();
244092
- function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
244093
- if (identity2.isNode(key3) && key3.addToJSMap)
244094
- key3.addToJSMap(ctx, map3, value4);
244095
- else if (merge3.isMergeKey(ctx, key3))
244092
+ function addPairToJSMap(ctx, map3, { key: key5, value: value4 }) {
244093
+ if (identity2.isNode(key5) && key5.addToJSMap)
244094
+ key5.addToJSMap(ctx, map3, value4);
244095
+ else if (merge3.isMergeKey(ctx, key5))
244096
244096
  merge3.addMergeToJSMap(ctx, map3, value4);
244097
244097
  else {
244098
- const jsKey = toJS.toJS(key3, "", ctx);
244098
+ const jsKey = toJS.toJS(key5, "", ctx);
244099
244099
  if (map3 instanceof Map) {
244100
244100
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
244101
244101
  } else if (map3 instanceof Set) {
244102
244102
  map3.add(jsKey);
244103
244103
  } else {
244104
- const stringKey = stringifyKey(key3, jsKey, ctx);
244104
+ const stringKey = stringifyKey(key5, jsKey, ctx);
244105
244105
  const jsValue = toJS.toJS(value4, stringKey, ctx);
244106
244106
  if (stringKey in map3)
244107
244107
  Object.defineProperty(map3, stringKey, {
@@ -244116,19 +244116,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
244116
244116
  }
244117
244117
  return map3;
244118
244118
  }
244119
- function stringifyKey(key3, jsKey, ctx) {
244119
+ function stringifyKey(key5, jsKey, ctx) {
244120
244120
  if (jsKey === null)
244121
244121
  return "";
244122
244122
  if (typeof jsKey !== "object")
244123
244123
  return String(jsKey);
244124
- if (identity2.isNode(key3) && ctx?.doc) {
244124
+ if (identity2.isNode(key5) && ctx?.doc) {
244125
244125
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
244126
244126
  strCtx.anchors = new Set;
244127
244127
  for (const node of ctx.anchors.keys())
244128
244128
  strCtx.anchors.add(node.anchor);
244129
244129
  strCtx.inFlow = true;
244130
244130
  strCtx.inStringifyKey = true;
244131
- const strKey = key3.toString(strCtx);
244131
+ const strKey = key5.toString(strCtx);
244132
244132
  if (!ctx.mapKeyWarned) {
244133
244133
  let jsonStr = JSON.stringify(strKey);
244134
244134
  if (jsonStr.length > 40)
@@ -244149,25 +244149,25 @@ var require_Pair = __commonJS((exports) => {
244149
244149
  var stringifyPair2 = require_stringifyPair();
244150
244150
  var addPairToJSMap = require_addPairToJSMap();
244151
244151
  var identity2 = require_identity();
244152
- function createPair(key3, value4, ctx) {
244153
- const k6 = createNode.createNode(key3, undefined, ctx);
244152
+ function createPair(key5, value4, ctx) {
244153
+ const k6 = createNode.createNode(key5, undefined, ctx);
244154
244154
  const v7 = createNode.createNode(value4, undefined, ctx);
244155
244155
  return new Pair(k6, v7);
244156
244156
  }
244157
244157
 
244158
244158
  class Pair {
244159
- constructor(key3, value4 = null) {
244159
+ constructor(key5, value4 = null) {
244160
244160
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
244161
- this.key = key3;
244161
+ this.key = key5;
244162
244162
  this.value = value4;
244163
244163
  }
244164
244164
  clone(schema) {
244165
- let { key: key3, value: value4 } = this;
244166
- if (identity2.isNode(key3))
244167
- key3 = key3.clone(schema);
244165
+ let { key: key5, value: value4 } = this;
244166
+ if (identity2.isNode(key5))
244167
+ key5 = key5.clone(schema);
244168
244168
  if (identity2.isNode(value4))
244169
244169
  value4 = value4.clone(schema);
244170
- return new Pair(key3, value4);
244170
+ return new Pair(key5, value4);
244171
244171
  }
244172
244172
  toJSON(_6, ctx) {
244173
244173
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -244334,11 +244334,11 @@ var require_YAMLMap = __commonJS((exports) => {
244334
244334
  var identity2 = require_identity();
244335
244335
  var Pair = require_Pair();
244336
244336
  var Scalar = require_Scalar();
244337
- function findPair(items, key3) {
244338
- const k6 = identity2.isScalar(key3) ? key3.value : key3;
244337
+ function findPair(items, key5) {
244338
+ const k6 = identity2.isScalar(key5) ? key5.value : key5;
244339
244339
  for (const it2 of items) {
244340
244340
  if (identity2.isPair(it2)) {
244341
- if (it2.key === key3 || it2.key === k6)
244341
+ if (it2.key === key5 || it2.key === k6)
244342
244342
  return it2;
244343
244343
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
244344
244344
  return it2;
@@ -244358,20 +244358,20 @@ var require_YAMLMap = __commonJS((exports) => {
244358
244358
  static from(schema, obj, ctx) {
244359
244359
  const { keepUndefined, replacer } = ctx;
244360
244360
  const map3 = new this(schema);
244361
- const add = (key3, value4) => {
244361
+ const add = (key5, value4) => {
244362
244362
  if (typeof replacer === "function")
244363
- value4 = replacer.call(obj, key3, value4);
244364
- else if (Array.isArray(replacer) && !replacer.includes(key3))
244363
+ value4 = replacer.call(obj, key5, value4);
244364
+ else if (Array.isArray(replacer) && !replacer.includes(key5))
244365
244365
  return;
244366
244366
  if (value4 !== undefined || keepUndefined)
244367
- map3.items.push(Pair.createPair(key3, value4, ctx));
244367
+ map3.items.push(Pair.createPair(key5, value4, ctx));
244368
244368
  };
244369
244369
  if (obj instanceof Map) {
244370
- for (const [key3, value4] of obj)
244371
- add(key3, value4);
244370
+ for (const [key5, value4] of obj)
244371
+ add(key5, value4);
244372
244372
  } else if (obj && typeof obj === "object") {
244373
- for (const key3 of Object.keys(obj))
244374
- add(key3, obj[key3]);
244373
+ for (const key5 of Object.keys(obj))
244374
+ add(key5, obj[key5]);
244375
244375
  }
244376
244376
  if (typeof schema.sortMapEntries === "function") {
244377
244377
  map3.items.sort(schema.sortMapEntries);
@@ -244405,23 +244405,23 @@ var require_YAMLMap = __commonJS((exports) => {
244405
244405
  this.items.push(_pair);
244406
244406
  }
244407
244407
  }
244408
- delete(key3) {
244409
- const it2 = findPair(this.items, key3);
244408
+ delete(key5) {
244409
+ const it2 = findPair(this.items, key5);
244410
244410
  if (!it2)
244411
244411
  return false;
244412
244412
  const del = this.items.splice(this.items.indexOf(it2), 1);
244413
244413
  return del.length > 0;
244414
244414
  }
244415
- get(key3, keepScalar) {
244416
- const it2 = findPair(this.items, key3);
244415
+ get(key5, keepScalar) {
244416
+ const it2 = findPair(this.items, key5);
244417
244417
  const node = it2?.value;
244418
244418
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
244419
244419
  }
244420
- has(key3) {
244421
- return !!findPair(this.items, key3);
244420
+ has(key5) {
244421
+ return !!findPair(this.items, key5);
244422
244422
  }
244423
- set(key3, value4) {
244424
- this.add(new Pair.Pair(key3, value4), true);
244423
+ set(key5, value4) {
244424
+ this.add(new Pair.Pair(key5, value4), true);
244425
244425
  }
244426
244426
  toJSON(_6, ctx, Type) {
244427
244427
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -244492,28 +244492,28 @@ var require_YAMLSeq = __commonJS((exports) => {
244492
244492
  add(value4) {
244493
244493
  this.items.push(value4);
244494
244494
  }
244495
- delete(key3) {
244496
- const idx = asItemIndex(key3);
244495
+ delete(key5) {
244496
+ const idx = asItemIndex(key5);
244497
244497
  if (typeof idx !== "number")
244498
244498
  return false;
244499
244499
  const del = this.items.splice(idx, 1);
244500
244500
  return del.length > 0;
244501
244501
  }
244502
- get(key3, keepScalar) {
244503
- const idx = asItemIndex(key3);
244502
+ get(key5, keepScalar) {
244503
+ const idx = asItemIndex(key5);
244504
244504
  if (typeof idx !== "number")
244505
244505
  return;
244506
244506
  const it2 = this.items[idx];
244507
244507
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
244508
244508
  }
244509
- has(key3) {
244510
- const idx = asItemIndex(key3);
244509
+ has(key5) {
244510
+ const idx = asItemIndex(key5);
244511
244511
  return typeof idx === "number" && idx < this.items.length;
244512
244512
  }
244513
- set(key3, value4) {
244514
- const idx = asItemIndex(key3);
244513
+ set(key5, value4) {
244514
+ const idx = asItemIndex(key5);
244515
244515
  if (typeof idx !== "number")
244516
- throw new Error(`Expected a valid index, not ${key3}.`);
244516
+ throw new Error(`Expected a valid index, not ${key5}.`);
244517
244517
  const prev = this.items[idx];
244518
244518
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
244519
244519
  prev.value = value4;
@@ -244547,8 +244547,8 @@ var require_YAMLSeq = __commonJS((exports) => {
244547
244547
  let i7 = 0;
244548
244548
  for (let it2 of obj) {
244549
244549
  if (typeof replacer === "function") {
244550
- const key3 = obj instanceof Set ? it2 : String(i7++);
244551
- it2 = replacer.call(obj, key3, it2);
244550
+ const key5 = obj instanceof Set ? it2 : String(i7++);
244551
+ it2 = replacer.call(obj, key5, it2);
244552
244552
  }
244553
244553
  seq.items.push(createNode.createNode(it2, undefined, ctx));
244554
244554
  }
@@ -244556,8 +244556,8 @@ var require_YAMLSeq = __commonJS((exports) => {
244556
244556
  return seq;
244557
244557
  }
244558
244558
  }
244559
- function asItemIndex(key3) {
244560
- let idx = identity2.isScalar(key3) ? key3.value : key3;
244559
+ function asItemIndex(key5) {
244560
+ let idx = identity2.isScalar(key5) ? key5.value : key5;
244561
244561
  if (idx && typeof idx === "string")
244562
244562
  idx = Number(idx);
244563
244563
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -244929,25 +244929,25 @@ ${cn.comment}` : item.comment;
244929
244929
  for (let it2 of iterable) {
244930
244930
  if (typeof replacer === "function")
244931
244931
  it2 = replacer.call(iterable, String(i7++), it2);
244932
- let key3, value4;
244932
+ let key5, value4;
244933
244933
  if (Array.isArray(it2)) {
244934
244934
  if (it2.length === 2) {
244935
- key3 = it2[0];
244935
+ key5 = it2[0];
244936
244936
  value4 = it2[1];
244937
244937
  } else
244938
244938
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
244939
244939
  } else if (it2 && it2 instanceof Object) {
244940
244940
  const keys = Object.keys(it2);
244941
244941
  if (keys.length === 1) {
244942
- key3 = keys[0];
244943
- value4 = it2[key3];
244942
+ key5 = keys[0];
244943
+ value4 = it2[key5];
244944
244944
  } else {
244945
244945
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
244946
244946
  }
244947
244947
  } else {
244948
- key3 = it2;
244948
+ key5 = it2;
244949
244949
  }
244950
- pairs2.items.push(Pair.createPair(key3, value4, ctx));
244950
+ pairs2.items.push(Pair.createPair(key5, value4, ctx));
244951
244951
  }
244952
244952
  return pairs2;
244953
244953
  }
@@ -244988,16 +244988,16 @@ var require_omap = __commonJS((exports) => {
244988
244988
  if (ctx?.onCreate)
244989
244989
  ctx.onCreate(map3);
244990
244990
  for (const pair of this.items) {
244991
- let key3, value4;
244991
+ let key5, value4;
244992
244992
  if (identity2.isPair(pair)) {
244993
- key3 = toJS.toJS(pair.key, "", ctx);
244994
- value4 = toJS.toJS(pair.value, key3, ctx);
244993
+ key5 = toJS.toJS(pair.key, "", ctx);
244994
+ value4 = toJS.toJS(pair.value, key5, ctx);
244995
244995
  } else {
244996
- key3 = toJS.toJS(pair, "", ctx);
244996
+ key5 = toJS.toJS(pair, "", ctx);
244997
244997
  }
244998
- if (map3.has(key3))
244998
+ if (map3.has(key5))
244999
244999
  throw new Error("Ordered maps must not include duplicate keys");
245000
- map3.set(key3, value4);
245000
+ map3.set(key5, value4);
245001
245001
  }
245002
245002
  return map3;
245003
245003
  }
@@ -245018,12 +245018,12 @@ var require_omap = __commonJS((exports) => {
245018
245018
  resolve(seq, onError) {
245019
245019
  const pairs$1 = pairs.resolvePairs(seq, onError);
245020
245020
  const seenKeys = [];
245021
- for (const { key: key3 } of pairs$1.items) {
245022
- if (identity2.isScalar(key3)) {
245023
- if (seenKeys.includes(key3.value)) {
245024
- onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
245021
+ for (const { key: key5 } of pairs$1.items) {
245022
+ if (identity2.isScalar(key5)) {
245023
+ if (seenKeys.includes(key5.value)) {
245024
+ onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
245025
245025
  } else {
245026
- seenKeys.push(key3.value);
245026
+ seenKeys.push(key5.value);
245027
245027
  }
245028
245028
  }
245029
245029
  }
@@ -245197,30 +245197,30 @@ var require_set = __commonJS((exports) => {
245197
245197
  super(schema);
245198
245198
  this.tag = YAMLSet.tag;
245199
245199
  }
245200
- add(key3) {
245200
+ add(key5) {
245201
245201
  let pair;
245202
- if (identity2.isPair(key3))
245203
- pair = key3;
245204
- else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
245205
- pair = new Pair.Pair(key3.key, null);
245202
+ if (identity2.isPair(key5))
245203
+ pair = key5;
245204
+ else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
245205
+ pair = new Pair.Pair(key5.key, null);
245206
245206
  else
245207
- pair = new Pair.Pair(key3, null);
245207
+ pair = new Pair.Pair(key5, null);
245208
245208
  const prev = YAMLMap.findPair(this.items, pair.key);
245209
245209
  if (!prev)
245210
245210
  this.items.push(pair);
245211
245211
  }
245212
- get(key3, keepPair) {
245213
- const pair = YAMLMap.findPair(this.items, key3);
245212
+ get(key5, keepPair) {
245213
+ const pair = YAMLMap.findPair(this.items, key5);
245214
245214
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
245215
245215
  }
245216
- set(key3, value4) {
245216
+ set(key5, value4) {
245217
245217
  if (typeof value4 !== "boolean")
245218
245218
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
245219
- const prev = YAMLMap.findPair(this.items, key3);
245219
+ const prev = YAMLMap.findPair(this.items, key5);
245220
245220
  if (prev && !value4) {
245221
245221
  this.items.splice(this.items.indexOf(prev), 1);
245222
245222
  } else if (!prev && value4) {
245223
- this.items.push(new Pair.Pair(key3));
245223
+ this.items.push(new Pair.Pair(key5));
245224
245224
  }
245225
245225
  }
245226
245226
  toJSON(_6, ctx) {
@@ -245455,7 +245455,7 @@ var require_tags = __commonJS((exports) => {
245455
245455
  if (Array.isArray(customTags))
245456
245456
  tags = [];
245457
245457
  else {
245458
- const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
245458
+ const keys = Array.from(schemas.keys()).filter((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
245459
245459
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
245460
245460
  }
245461
245461
  }
@@ -245471,7 +245471,7 @@ var require_tags = __commonJS((exports) => {
245471
245471
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
245472
245472
  if (!tagObj) {
245473
245473
  const tagName = JSON.stringify(tag);
245474
- const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
245474
+ const keys = Object.keys(tagsByName).map((key5) => JSON.stringify(key5)).join(", ");
245475
245475
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
245476
245476
  }
245477
245477
  if (!tags2.includes(tagObj))
@@ -245706,13 +245706,13 @@ var require_Document = __commonJS((exports) => {
245706
245706
  setAnchors();
245707
245707
  return node;
245708
245708
  }
245709
- createPair(key3, value4, options = {}) {
245710
- const k6 = this.createNode(key3, null, options);
245709
+ createPair(key5, value4, options = {}) {
245710
+ const k6 = this.createNode(key5, null, options);
245711
245711
  const v7 = this.createNode(value4, null, options);
245712
245712
  return new Pair.Pair(k6, v7);
245713
245713
  }
245714
- delete(key3) {
245715
- return assertCollection(this.contents) ? this.contents.delete(key3) : false;
245714
+ delete(key5) {
245715
+ return assertCollection(this.contents) ? this.contents.delete(key5) : false;
245716
245716
  }
245717
245717
  deleteIn(path5) {
245718
245718
  if (Collection.isEmptyPath(path5)) {
@@ -245723,27 +245723,27 @@ var require_Document = __commonJS((exports) => {
245723
245723
  }
245724
245724
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
245725
245725
  }
245726
- get(key3, keepScalar) {
245727
- return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
245726
+ get(key5, keepScalar) {
245727
+ return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
245728
245728
  }
245729
245729
  getIn(path5, keepScalar) {
245730
245730
  if (Collection.isEmptyPath(path5))
245731
245731
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
245732
245732
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
245733
245733
  }
245734
- has(key3) {
245735
- return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
245734
+ has(key5) {
245735
+ return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
245736
245736
  }
245737
245737
  hasIn(path5) {
245738
245738
  if (Collection.isEmptyPath(path5))
245739
245739
  return this.contents !== undefined;
245740
245740
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
245741
245741
  }
245742
- set(key3, value4) {
245742
+ set(key5, value4) {
245743
245743
  if (this.contents == null) {
245744
- this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
245744
+ this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
245745
245745
  } else if (assertCollection(this.contents)) {
245746
- this.contents.set(key3, value4);
245746
+ this.contents.set(key5, value4);
245747
245747
  }
245748
245748
  }
245749
245749
  setIn(path5, value4) {
@@ -246027,25 +246027,25 @@ var require_resolve_props = __commonJS((exports) => {
246027
246027
 
246028
246028
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
246029
246029
  var require_util_contains_newline = __commonJS((exports) => {
246030
- function containsNewline(key3) {
246031
- if (!key3)
246030
+ function containsNewline(key5) {
246031
+ if (!key5)
246032
246032
  return null;
246033
- switch (key3.type) {
246033
+ switch (key5.type) {
246034
246034
  case "alias":
246035
246035
  case "scalar":
246036
246036
  case "double-quoted-scalar":
246037
246037
  case "single-quoted-scalar":
246038
- if (key3.source.includes(`
246038
+ if (key5.source.includes(`
246039
246039
  `))
246040
246040
  return true;
246041
- if (key3.end) {
246042
- for (const st2 of key3.end)
246041
+ if (key5.end) {
246042
+ for (const st2 of key5.end)
246043
246043
  if (st2.type === "newline")
246044
246044
  return true;
246045
246045
  }
246046
246046
  return false;
246047
246047
  case "flow-collection":
246048
- for (const it2 of key3.items) {
246048
+ for (const it2 of key5.items) {
246049
246049
  for (const st2 of it2.start)
246050
246050
  if (st2.type === "newline")
246051
246051
  return true;
@@ -246110,10 +246110,10 @@ var require_resolve_block_map = __commonJS((exports) => {
246110
246110
  let offset = bm.offset;
246111
246111
  let commentEnd = null;
246112
246112
  for (const collItem of bm.items) {
246113
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
246113
+ const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
246114
246114
  const keyProps = resolveProps.resolveProps(start3, {
246115
246115
  indicator: "explicit-key-ind",
246116
- next: key3 ?? sep3?.[0],
246116
+ next: key5 ?? sep3?.[0],
246117
246117
  offset,
246118
246118
  onError,
246119
246119
  parentIndent: bm.indent,
@@ -246121,10 +246121,10 @@ var require_resolve_block_map = __commonJS((exports) => {
246121
246121
  });
246122
246122
  const implicitKey = !keyProps.found;
246123
246123
  if (implicitKey) {
246124
- if (key3) {
246125
- if (key3.type === "block-seq")
246124
+ if (key5) {
246125
+ if (key5.type === "block-seq")
246126
246126
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
246127
- else if ("indent" in key3 && key3.indent !== bm.indent)
246127
+ else if ("indent" in key5 && key5.indent !== bm.indent)
246128
246128
  onError(offset, "BAD_INDENT", startColMsg);
246129
246129
  }
246130
246130
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -246138,17 +246138,17 @@ var require_resolve_block_map = __commonJS((exports) => {
246138
246138
  }
246139
246139
  continue;
246140
246140
  }
246141
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
246142
- onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
246141
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key5)) {
246142
+ onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
246143
246143
  }
246144
246144
  } else if (keyProps.found?.indent !== bm.indent) {
246145
246145
  onError(offset, "BAD_INDENT", startColMsg);
246146
246146
  }
246147
246147
  ctx.atKey = true;
246148
246148
  const keyStart = keyProps.end;
246149
- const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
246149
+ const keyNode = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
246150
246150
  if (ctx.schema.compat)
246151
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
246151
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
246152
246152
  ctx.atKey = false;
246153
246153
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
246154
246154
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -246158,7 +246158,7 @@ var require_resolve_block_map = __commonJS((exports) => {
246158
246158
  offset: keyNode.range[2],
246159
246159
  onError,
246160
246160
  parentIndent: bm.indent,
246161
- startOnNewline: !key3 || key3.type === "block-scalar"
246161
+ startOnNewline: !key5 || key5.type === "block-scalar"
246162
246162
  });
246163
246163
  offset = valueProps.end;
246164
246164
  if (valueProps.found) {
@@ -246314,11 +246314,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246314
246314
  let offset = fc.offset + fc.start.source.length;
246315
246315
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
246316
246316
  const collItem = fc.items[i7];
246317
- const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
246317
+ const { start: start3, key: key5, sep: sep3, value: value4 } = collItem;
246318
246318
  const props = resolveProps.resolveProps(start3, {
246319
246319
  flow: fcName,
246320
246320
  indicator: "explicit-key-ind",
246321
- next: key3 ?? sep3?.[0],
246321
+ next: key5 ?? sep3?.[0],
246322
246322
  offset,
246323
246323
  onError,
246324
246324
  parentIndent: fc.indent,
@@ -246340,8 +246340,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246340
246340
  offset = props.end;
246341
246341
  continue;
246342
246342
  }
246343
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
246344
- onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
246343
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key5))
246344
+ onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
246345
246345
  }
246346
246346
  if (i7 === 0) {
246347
246347
  if (props.comma)
@@ -246386,8 +246386,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246386
246386
  } else {
246387
246387
  ctx.atKey = true;
246388
246388
  const keyStart = props.end;
246389
- const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
246390
- if (isBlock(key3))
246389
+ const keyNode = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
246390
+ if (isBlock(key5))
246391
246391
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
246392
246392
  ctx.atKey = false;
246393
246393
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -247199,7 +247199,7 @@ var require_composer = __commonJS((exports) => {
247199
247199
  var node_process = __require("node:process");
247200
247200
  var directives4 = require_directives2();
247201
247201
  var Document = require_Document();
247202
- var errors3 = require_errors3();
247202
+ var errors5 = require_errors3();
247203
247203
  var identity2 = require_identity();
247204
247204
  var composeDoc = require_compose_doc();
247205
247205
  var resolveEnd = require_resolve_end();
@@ -247250,9 +247250,9 @@ var require_composer = __commonJS((exports) => {
247250
247250
  this.onError = (source, code2, message, warning) => {
247251
247251
  const pos = getErrorPos(source);
247252
247252
  if (warning)
247253
- this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
247253
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
247254
247254
  else
247255
- this.errors.push(new errors3.YAMLParseError(pos, code2, message));
247255
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
247256
247256
  };
247257
247257
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
247258
247258
  this.options = options;
@@ -247336,7 +247336,7 @@ ${cb}` : comment;
247336
247336
  break;
247337
247337
  case "error": {
247338
247338
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
247339
- const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
247339
+ const error5 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
247340
247340
  if (this.atDirectives || !this.doc)
247341
247341
  this.errors.push(error5);
247342
247342
  else
@@ -247346,7 +247346,7 @@ ${cb}` : comment;
247346
247346
  case "doc-end": {
247347
247347
  if (!this.doc) {
247348
247348
  const msg = "Unexpected doc-end without preceding document";
247349
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
247349
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
247350
247350
  break;
247351
247351
  }
247352
247352
  this.doc.directives.docEnd = true;
@@ -247361,7 +247361,7 @@ ${end.comment}` : end.comment;
247361
247361
  break;
247362
247362
  }
247363
247363
  default:
247364
- this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
247364
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
247365
247365
  }
247366
247366
  }
247367
247367
  *end(forceDoc = false, endOffset = -1) {
@@ -247387,7 +247387,7 @@ ${end.comment}` : end.comment;
247387
247387
  var require_cst_scalar = __commonJS((exports) => {
247388
247388
  var resolveBlockScalar = require_resolve_block_scalar();
247389
247389
  var resolveFlowScalar = require_resolve_flow_scalar();
247390
- var errors3 = require_errors3();
247390
+ var errors5 = require_errors3();
247391
247391
  var stringifyString = require_stringifyString();
247392
247392
  function resolveAsScalar(token, strict = true, onError) {
247393
247393
  if (token) {
@@ -247396,7 +247396,7 @@ var require_cst_scalar = __commonJS((exports) => {
247396
247396
  if (onError)
247397
247397
  onError(offset, code2, message);
247398
247398
  else
247399
- throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
247399
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
247400
247400
  };
247401
247401
  switch (token.type) {
247402
247402
  case "scalar":
@@ -247510,9 +247510,9 @@ var require_cst_scalar = __commonJS((exports) => {
247510
247510
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
247511
247511
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
247512
247512
  ` });
247513
- for (const key3 of Object.keys(token))
247514
- if (key3 !== "type" && key3 !== "offset")
247515
- delete token[key3];
247513
+ for (const key5 of Object.keys(token))
247514
+ if (key5 !== "type" && key5 !== "offset")
247515
+ delete token[key5];
247516
247516
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
247517
247517
  }
247518
247518
  }
@@ -247561,9 +247561,9 @@ var require_cst_scalar = __commonJS((exports) => {
247561
247561
  default: {
247562
247562
  const indent2 = "indent" in token ? token.indent : -1;
247563
247563
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
247564
- for (const key3 of Object.keys(token))
247565
- if (key3 !== "type" && key3 !== "offset")
247566
- delete token[key3];
247564
+ for (const key5 of Object.keys(token))
247565
+ if (key5 !== "type" && key5 !== "offset")
247566
+ delete token[key5];
247567
247567
  Object.assign(token, { type: type4, indent: indent2, source, end });
247568
247568
  }
247569
247569
  }
@@ -247615,12 +247615,12 @@ var require_cst_stringify = __commonJS((exports) => {
247615
247615
  }
247616
247616
  }
247617
247617
  }
247618
- function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
247618
+ function stringifyItem({ start: start3, key: key5, sep: sep3, value: value4 }) {
247619
247619
  let res = "";
247620
247620
  for (const st2 of start3)
247621
247621
  res += st2.source;
247622
- if (key3)
247623
- res += stringifyToken(key3);
247622
+ if (key5)
247623
+ res += stringifyToken(key5);
247624
247624
  if (sep3)
247625
247625
  for (const st2 of sep3)
247626
247626
  res += st2.source;
@@ -248917,7 +248917,7 @@ var require_parser2 = __commonJS((exports) => {
248917
248917
  });
248918
248918
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
248919
248919
  const start4 = getFirstKeyStartProps(it2.start);
248920
- const key3 = it2.key;
248920
+ const key5 = it2.key;
248921
248921
  const sep3 = it2.sep;
248922
248922
  sep3.push(this.sourceToken);
248923
248923
  delete it2.key;
@@ -248926,7 +248926,7 @@ var require_parser2 = __commonJS((exports) => {
248926
248926
  type: "block-map",
248927
248927
  offset: this.offset,
248928
248928
  indent: this.indent,
248929
- items: [{ start: start4, key: key3, sep: sep3 }]
248929
+ items: [{ start: start4, key: key5, sep: sep3 }]
248930
248930
  });
248931
248931
  } else if (start3.length > 0) {
248932
248932
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -249249,7 +249249,7 @@ var require_parser2 = __commonJS((exports) => {
249249
249249
  var require_public_api = __commonJS((exports) => {
249250
249250
  var composer = require_composer();
249251
249251
  var Document = require_Document();
249252
- var errors3 = require_errors3();
249252
+ var errors5 = require_errors3();
249253
249253
  var log = require_log();
249254
249254
  var identity2 = require_identity();
249255
249255
  var lineCounter = require_line_counter();
@@ -249266,8 +249266,8 @@ var require_public_api = __commonJS((exports) => {
249266
249266
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
249267
249267
  if (prettyErrors && lineCounter2)
249268
249268
  for (const doc of docs) {
249269
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
249270
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
249269
+ doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
249270
+ doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
249271
249271
  }
249272
249272
  if (docs.length > 0)
249273
249273
  return docs;
@@ -249282,13 +249282,13 @@ var require_public_api = __commonJS((exports) => {
249282
249282
  if (!doc)
249283
249283
  doc = _doc;
249284
249284
  else if (doc.options.logLevel !== "silent") {
249285
- doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
249285
+ doc.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
249286
249286
  break;
249287
249287
  }
249288
249288
  }
249289
249289
  if (prettyErrors && lineCounter2) {
249290
- doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
249291
- doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
249290
+ doc.errors.forEach(errors5.prettifyError(source, lineCounter2));
249291
+ doc.warnings.forEach(errors5.prettifyError(source, lineCounter2));
249292
249292
  }
249293
249293
  return doc;
249294
249294
  }
@@ -259683,7 +259683,7 @@ function pruneCurrentEnv(currentEnv, env2) {
259683
259683
  var package_default = {
259684
259684
  name: "@settlemint/sdk-cli",
259685
259685
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
259686
- version: "1.1.16-pr3067e493",
259686
+ version: "1.1.16-pr54de587d",
259687
259687
  type: "module",
259688
259688
  private: false,
259689
259689
  license: "FSL-1.1-MIT",
@@ -259728,11 +259728,11 @@ var package_default = {
259728
259728
  devDependencies: {
259729
259729
  "@commander-js/extra-typings": "13.1.0",
259730
259730
  "@inquirer/confirm": "5.1.6",
259731
- "@inquirer/input": "4.1.6",
259732
- "@inquirer/password": "4.0.9",
259731
+ "@inquirer/input": "4.1.7",
259732
+ "@inquirer/password": "4.0.10",
259733
259733
  "@inquirer/select": "4.0.10",
259734
- "@settlemint/sdk-js": "1.1.16-pr3067e493",
259735
- "@settlemint/sdk-utils": "1.1.16-pr3067e493",
259734
+ "@settlemint/sdk-js": "1.1.16-pr54de587d",
259735
+ "@settlemint/sdk-utils": "1.1.16-pr54de587d",
259736
259736
  "@types/node": "22.13.10",
259737
259737
  "@types/semver": "7.5.8",
259738
259738
  "@types/which": "3.0.4",
@@ -259822,7 +259822,6 @@ var {
259822
259822
  } = import__.default;
259823
259823
 
259824
259824
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
259825
- var isBackspaceKey = (key) => key.name === "backspace";
259826
259825
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
259827
259826
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
259828
259827
  class AbortPromptError extends Error {
@@ -264970,97 +264969,10 @@ function sanitizeName(value4, length = 35) {
264970
264969
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
264971
264970
  }
264972
264971
 
264973
- // ../../node_modules/@inquirer/input/dist/esm/index.js
264974
- var inputTheme = {
264975
- validationFailureMode: "keep"
264976
- };
264977
- var esm_default2 = createPrompt((config3, done) => {
264978
- const { required, validate: validate3 = () => true } = config3;
264979
- const theme = makeTheme(inputTheme, config3.theme);
264980
- const [status, setStatus] = useState("idle");
264981
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
264982
- const [errorMsg, setError] = useState();
264983
- const [value4, setValue] = useState("");
264984
- const prefix = usePrefix({ status, theme });
264985
- useKeypress(async (key2, rl) => {
264986
- if (status !== "idle") {
264987
- return;
264988
- }
264989
- if (isEnterKey(key2)) {
264990
- const answer = value4 || defaultValue;
264991
- setStatus("loading");
264992
- const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
264993
- if (isValid2 === true) {
264994
- setValue(answer);
264995
- setStatus("done");
264996
- done(answer);
264997
- } else {
264998
- if (theme.validationFailureMode === "clear") {
264999
- setValue("");
265000
- } else {
265001
- rl.write(value4);
265002
- }
265003
- setError(isValid2 || "You must provide a valid value");
265004
- setStatus("idle");
265005
- }
265006
- } else if (isBackspaceKey(key2) && !value4) {
265007
- setDefaultValue(undefined);
265008
- } else if (key2.name === "tab" && !value4) {
265009
- setDefaultValue(undefined);
265010
- rl.clearLine(0);
265011
- rl.write(defaultValue);
265012
- setValue(defaultValue);
265013
- } else {
265014
- setValue(rl.line);
265015
- setError(undefined);
265016
- }
265017
- });
265018
- const message = theme.style.message(config3.message, status);
265019
- let formattedValue = value4;
265020
- if (typeof config3.transformer === "function") {
265021
- formattedValue = config3.transformer(value4, { isFinal: status === "done" });
265022
- } else if (status === "done") {
265023
- formattedValue = theme.style.answer(value4);
265024
- }
265025
- let defaultStr;
265026
- if (defaultValue && status !== "done" && !value4) {
265027
- defaultStr = theme.style.defaultAnswer(defaultValue);
265028
- }
265029
- let error5 = "";
265030
- if (errorMsg) {
265031
- error5 = theme.style.error(errorMsg);
265032
- }
265033
- return [
265034
- [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
265035
- error5
265036
- ];
265037
- });
265038
-
265039
- // src/prompts/smart-contract-set/subgraph-name.prompt.ts
265040
- async function subgraphNamePrompt({
265041
- defaultName,
265042
- env: env2,
265043
- accept
265044
- }) {
265045
- const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
265046
- if (accept) {
265047
- return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
265048
- }
265049
- const subgraphName = await esm_default2({
265050
- message: "What is the name of your subgraph?",
265051
- default: defaultSubgraphName,
265052
- required: true
265053
- });
265054
- return sanitizeName(subgraphName);
265055
- }
265056
-
265057
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
265058
- var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
265059
- var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
265060
- var isBackspaceKey2 = (key2) => key2.name === "backspace";
265061
- var isNumberKey = (key2) => "123456789".includes(key2.name);
264972
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
264973
+ var isBackspaceKey = (key2) => key2.name === "backspace";
265062
264974
  var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
265063
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
264975
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
265064
264976
  class AbortPromptError2 extends Error {
265065
264977
  name = "AbortPromptError";
265066
264978
  message = "Prompt was aborted";
@@ -265086,10 +264998,10 @@ class HookError2 extends Error {
265086
264998
  class ValidationError2 extends Error {
265087
264999
  name = "ValidationError";
265088
265000
  }
265089
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265001
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265090
265002
  import { AsyncResource as AsyncResource5 } from "node:async_hooks";
265091
265003
 
265092
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265004
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265093
265005
  import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
265094
265006
  var hookStorage2 = new AsyncLocalStorage2;
265095
265007
  function createStore2(rl) {
@@ -265195,7 +265107,7 @@ var effectScheduler2 = {
265195
265107
  }
265196
265108
  };
265197
265109
 
265198
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265110
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265199
265111
  function useState2(defaultValue) {
265200
265112
  return withPointer2((pointer) => {
265201
265113
  const setFn = (newValue) => {
@@ -265213,7 +265125,7 @@ function useState2(defaultValue) {
265213
265125
  });
265214
265126
  }
265215
265127
 
265216
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265128
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265217
265129
  function useEffect2(cb, depArray) {
265218
265130
  withPointer2((pointer) => {
265219
265131
  const oldDeps = pointer.get();
@@ -265225,7 +265137,7 @@ function useEffect2(cb, depArray) {
265225
265137
  });
265226
265138
  }
265227
265139
 
265228
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265140
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
265229
265141
  var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
265230
265142
 
265231
265143
  // ../../node_modules/@inquirer/figures/dist/esm/index.js
@@ -265511,14 +265423,14 @@ var fallbackSymbols2 = {
265511
265423
  };
265512
265424
  var shouldUseMain2 = isUnicodeSupported3();
265513
265425
  var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
265514
- var esm_default3 = figures2;
265426
+ var esm_default2 = figures2;
265515
265427
  var replacements2 = Object.entries(specialMainSymbols2);
265516
265428
 
265517
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265429
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
265518
265430
  var defaultTheme2 = {
265519
265431
  prefix: {
265520
265432
  idle: import_yoctocolors_cjs2.default.blue("?"),
265521
- done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
265433
+ done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
265522
265434
  },
265523
265435
  spinner: {
265524
265436
  interval: 80,
@@ -265535,7 +265447,7 @@ var defaultTheme2 = {
265535
265447
  }
265536
265448
  };
265537
265449
 
265538
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265450
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265539
265451
  function isPlainObject3(value4) {
265540
265452
  if (typeof value4 !== "object" || value4 === null)
265541
265453
  return false;
@@ -265563,7 +265475,7 @@ function makeTheme2(...themes) {
265563
265475
  return deepMerge3(...themesToMerge);
265564
265476
  }
265565
265477
 
265566
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265478
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265567
265479
  function usePrefix2({ status = "idle", theme }) {
265568
265480
  const [showLoader, setShowLoader] = useState2(false);
265569
265481
  const [tick, setTick] = useState2(0);
@@ -265593,9 +265505,551 @@ function usePrefix2({ status = "idle", theme }) {
265593
265505
  const iconName = status === "loading" ? "idle" : status;
265594
265506
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
265595
265507
  }
265508
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
265509
+ function useRef2(val) {
265510
+ return useState2({ current: val })[0];
265511
+ }
265512
+
265513
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
265514
+ function useKeypress2(userHandler) {
265515
+ const signal = useRef2(userHandler);
265516
+ signal.current = userHandler;
265517
+ useEffect2((rl) => {
265518
+ let ignore = false;
265519
+ const handler = withUpdates2((_input, event) => {
265520
+ if (ignore)
265521
+ return;
265522
+ signal.current(event, rl);
265523
+ });
265524
+ rl.input.on("keypress", handler);
265525
+ return () => {
265526
+ ignore = true;
265527
+ rl.input.removeListener("keypress", handler);
265528
+ };
265529
+ }, []);
265530
+ }
265531
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
265532
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
265533
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
265534
+ function breakLines2(content, width) {
265535
+ return content.split(`
265536
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
265537
+ `).map((str) => str.trimEnd())).join(`
265538
+ `);
265539
+ }
265540
+ function readlineWidth2() {
265541
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
265542
+ }
265543
+
265544
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265545
+ var import_mute_stream2 = __toESM(require_lib(), 1);
265546
+ import * as readline4 from "node:readline";
265547
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
265548
+
265549
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
265550
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
265551
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
265552
+ var height2 = (content) => content.split(`
265553
+ `).length;
265554
+ var lastLine2 = (content) => content.split(`
265555
+ `).pop() ?? "";
265556
+ function cursorDown2(n6) {
265557
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
265558
+ }
265559
+
265560
+ class ScreenManager2 {
265561
+ height = 0;
265562
+ extraLinesUnderPrompt = 0;
265563
+ cursorPos;
265564
+ rl;
265565
+ constructor(rl) {
265566
+ this.rl = rl;
265567
+ this.cursorPos = rl.getCursorPos();
265568
+ }
265569
+ write(content) {
265570
+ this.rl.output.unmute();
265571
+ this.rl.output.write(content);
265572
+ this.rl.output.mute();
265573
+ }
265574
+ render(content, bottomContent = "") {
265575
+ const promptLine = lastLine2(content);
265576
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
265577
+ let prompt = rawPromptLine;
265578
+ if (this.rl.line.length > 0) {
265579
+ prompt = prompt.slice(0, -this.rl.line.length);
265580
+ }
265581
+ this.rl.setPrompt(prompt);
265582
+ this.cursorPos = this.rl.getCursorPos();
265583
+ const width = readlineWidth2();
265584
+ content = breakLines2(content, width);
265585
+ bottomContent = breakLines2(bottomContent, width);
265586
+ if (rawPromptLine.length % width === 0) {
265587
+ content += `
265588
+ `;
265589
+ }
265590
+ let output = content + (bottomContent ? `
265591
+ ` + bottomContent : "");
265592
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
265593
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
265594
+ if (bottomContentHeight > 0)
265595
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
265596
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
265597
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
265598
+ this.extraLinesUnderPrompt = bottomContentHeight;
265599
+ this.height = height2(output);
265600
+ }
265601
+ checkCursorPos() {
265602
+ const cursorPos = this.rl.getCursorPos();
265603
+ if (cursorPos.cols !== this.cursorPos.cols) {
265604
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
265605
+ this.cursorPos = cursorPos;
265606
+ }
265607
+ }
265608
+ done({ clearContent }) {
265609
+ this.rl.setPrompt("");
265610
+ let output = cursorDown2(this.extraLinesUnderPrompt);
265611
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
265612
+ `;
265613
+ output += import_ansi_escapes2.default.cursorShow;
265614
+ this.write(output);
265615
+ this.rl.close();
265616
+ }
265617
+ }
265618
+
265619
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
265620
+ class PromisePolyfill2 extends Promise {
265621
+ static withResolver() {
265622
+ let resolve5;
265623
+ let reject;
265624
+ const promise = new Promise((res, rej) => {
265625
+ resolve5 = res;
265626
+ reject = rej;
265627
+ });
265628
+ return { promise, resolve: resolve5, reject };
265629
+ }
265630
+ }
265631
+
265632
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265633
+ function getCallSites2() {
265634
+ const _prepareStackTrace = Error.prepareStackTrace;
265635
+ let result = [];
265636
+ try {
265637
+ Error.prepareStackTrace = (_5, callSites) => {
265638
+ const callSitesWithoutCurrent = callSites.slice(1);
265639
+ result = callSitesWithoutCurrent;
265640
+ return callSitesWithoutCurrent;
265641
+ };
265642
+ new Error().stack;
265643
+ } catch {
265644
+ return result;
265645
+ }
265646
+ Error.prepareStackTrace = _prepareStackTrace;
265647
+ return result;
265648
+ }
265649
+ function createPrompt2(view) {
265650
+ const callSites = getCallSites2();
265651
+ const prompt = (config3, context = {}) => {
265652
+ const { input = process.stdin, signal } = context;
265653
+ const cleanups = new Set;
265654
+ const output = new import_mute_stream2.default;
265655
+ output.pipe(context.output ?? process.stdout);
265656
+ const rl = readline4.createInterface({
265657
+ terminal: true,
265658
+ input,
265659
+ output
265660
+ });
265661
+ const screen = new ScreenManager2(rl);
265662
+ const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
265663
+ const cancel3 = () => reject(new CancelPromptError2);
265664
+ if (signal) {
265665
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
265666
+ if (signal.aborted) {
265667
+ abort();
265668
+ return Object.assign(promise, { cancel: cancel3 });
265669
+ }
265670
+ signal.addEventListener("abort", abort);
265671
+ cleanups.add(() => signal.removeEventListener("abort", abort));
265672
+ }
265673
+ cleanups.add(onExit((code2, signal2) => {
265674
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
265675
+ }));
265676
+ const checkCursorPos = () => screen.checkCursorPos();
265677
+ rl.input.on("keypress", checkCursorPos);
265678
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
265679
+ return withHooks2(rl, (cycle) => {
265680
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
265681
+ rl.on("close", hooksCleanup);
265682
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
265683
+ cycle(() => {
265684
+ try {
265685
+ const nextView = view(config3, (value4) => {
265686
+ setImmediate(() => resolve5(value4));
265687
+ });
265688
+ if (nextView === undefined) {
265689
+ const callerFilename = callSites[1]?.getFileName?.();
265690
+ throw new Error(`Prompt functions must return a string.
265691
+ at ${callerFilename}`);
265692
+ }
265693
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
265694
+ screen.render(content, bottomContent);
265695
+ effectScheduler2.run();
265696
+ } catch (error5) {
265697
+ reject(error5);
265698
+ }
265699
+ });
265700
+ return Object.assign(promise.then((answer) => {
265701
+ effectScheduler2.clearAll();
265702
+ return answer;
265703
+ }, (error5) => {
265704
+ effectScheduler2.clearAll();
265705
+ throw error5;
265706
+ }).finally(() => {
265707
+ cleanups.forEach((cleanup) => cleanup());
265708
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
265709
+ output.end();
265710
+ }).then(() => promise), { cancel: cancel3 });
265711
+ });
265712
+ };
265713
+ return prompt;
265714
+ }
265715
+ // ../../node_modules/@inquirer/input/dist/esm/index.js
265716
+ var inputTheme = {
265717
+ validationFailureMode: "keep"
265718
+ };
265719
+ var esm_default3 = createPrompt2((config3, done) => {
265720
+ const { required, validate: validate3 = () => true } = config3;
265721
+ const theme = makeTheme2(inputTheme, config3.theme);
265722
+ const [status, setStatus] = useState2("idle");
265723
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
265724
+ const [errorMsg, setError] = useState2();
265725
+ const [value4, setValue] = useState2("");
265726
+ const prefix = usePrefix2({ status, theme });
265727
+ useKeypress2(async (key3, rl) => {
265728
+ if (status !== "idle") {
265729
+ return;
265730
+ }
265731
+ if (isEnterKey2(key3)) {
265732
+ const answer = value4 || defaultValue;
265733
+ setStatus("loading");
265734
+ const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
265735
+ if (isValid2 === true) {
265736
+ setValue(answer);
265737
+ setStatus("done");
265738
+ done(answer);
265739
+ } else {
265740
+ if (theme.validationFailureMode === "clear") {
265741
+ setValue("");
265742
+ } else {
265743
+ rl.write(value4);
265744
+ }
265745
+ setError(isValid2 || "You must provide a valid value");
265746
+ setStatus("idle");
265747
+ }
265748
+ } else if (isBackspaceKey(key3) && !value4) {
265749
+ setDefaultValue(undefined);
265750
+ } else if (key3.name === "tab" && !value4) {
265751
+ setDefaultValue(undefined);
265752
+ rl.clearLine(0);
265753
+ rl.write(defaultValue);
265754
+ setValue(defaultValue);
265755
+ } else {
265756
+ setValue(rl.line);
265757
+ setError(undefined);
265758
+ }
265759
+ });
265760
+ const message = theme.style.message(config3.message, status);
265761
+ let formattedValue = value4;
265762
+ if (typeof config3.transformer === "function") {
265763
+ formattedValue = config3.transformer(value4, { isFinal: status === "done" });
265764
+ } else if (status === "done") {
265765
+ formattedValue = theme.style.answer(value4);
265766
+ }
265767
+ let defaultStr;
265768
+ if (defaultValue && status !== "done" && !value4) {
265769
+ defaultStr = theme.style.defaultAnswer(defaultValue);
265770
+ }
265771
+ let error5 = "";
265772
+ if (errorMsg) {
265773
+ error5 = theme.style.error(errorMsg);
265774
+ }
265775
+ return [
265776
+ [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
265777
+ error5
265778
+ ];
265779
+ });
265780
+
265781
+ // src/prompts/smart-contract-set/subgraph-name.prompt.ts
265782
+ async function subgraphNamePrompt({
265783
+ defaultName,
265784
+ env: env2,
265785
+ accept
265786
+ }) {
265787
+ const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
265788
+ if (accept) {
265789
+ return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
265790
+ }
265791
+ const subgraphName = await esm_default3({
265792
+ message: "What is the name of your subgraph?",
265793
+ default: defaultSubgraphName,
265794
+ required: true
265795
+ });
265796
+ return sanitizeName(subgraphName);
265797
+ }
265798
+
265799
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
265800
+ var isUpKey = (key3) => key3.name === "up" || key3.name === "k" || key3.ctrl && key3.name === "p";
265801
+ var isDownKey = (key3) => key3.name === "down" || key3.name === "j" || key3.ctrl && key3.name === "n";
265802
+ var isBackspaceKey2 = (key3) => key3.name === "backspace";
265803
+ var isNumberKey = (key3) => "123456789".includes(key3.name);
265804
+ var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
265805
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
265806
+ class AbortPromptError3 extends Error {
265807
+ name = "AbortPromptError";
265808
+ message = "Prompt was aborted";
265809
+ constructor(options) {
265810
+ super();
265811
+ this.cause = options?.cause;
265812
+ }
265813
+ }
265814
+
265815
+ class CancelPromptError3 extends Error {
265816
+ name = "CancelPromptError";
265817
+ message = "Prompt was canceled";
265818
+ }
265819
+
265820
+ class ExitPromptError3 extends Error {
265821
+ name = "ExitPromptError";
265822
+ }
265823
+
265824
+ class HookError3 extends Error {
265825
+ name = "HookError";
265826
+ }
265827
+
265828
+ class ValidationError3 extends Error {
265829
+ name = "ValidationError";
265830
+ }
265831
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265832
+ import { AsyncResource as AsyncResource8 } from "node:async_hooks";
265833
+
265834
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265835
+ import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
265836
+ var hookStorage3 = new AsyncLocalStorage3;
265837
+ function createStore3(rl) {
265838
+ const store = {
265839
+ rl,
265840
+ hooks: [],
265841
+ hooksCleanup: [],
265842
+ hooksEffect: [],
265843
+ index: 0,
265844
+ handleChange() {
265845
+ }
265846
+ };
265847
+ return store;
265848
+ }
265849
+ function withHooks3(rl, cb) {
265850
+ const store = createStore3(rl);
265851
+ return hookStorage3.run(store, () => {
265852
+ function cycle(render) {
265853
+ store.handleChange = () => {
265854
+ store.index = 0;
265855
+ render();
265856
+ };
265857
+ store.handleChange();
265858
+ }
265859
+ return cb(cycle);
265860
+ });
265861
+ }
265862
+ function getStore3() {
265863
+ const store = hookStorage3.getStore();
265864
+ if (!store) {
265865
+ throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
265866
+ }
265867
+ return store;
265868
+ }
265869
+ function readline5() {
265870
+ return getStore3().rl;
265871
+ }
265872
+ function withUpdates3(fn) {
265873
+ const wrapped = (...args) => {
265874
+ const store = getStore3();
265875
+ let shouldUpdate = false;
265876
+ const oldHandleChange = store.handleChange;
265877
+ store.handleChange = () => {
265878
+ shouldUpdate = true;
265879
+ };
265880
+ const returnValue = fn(...args);
265881
+ if (shouldUpdate) {
265882
+ oldHandleChange();
265883
+ }
265884
+ store.handleChange = oldHandleChange;
265885
+ return returnValue;
265886
+ };
265887
+ return AsyncResource7.bind(wrapped);
265888
+ }
265889
+ function withPointer3(cb) {
265890
+ const store = getStore3();
265891
+ const { index } = store;
265892
+ const pointer = {
265893
+ get() {
265894
+ return store.hooks[index];
265895
+ },
265896
+ set(value4) {
265897
+ store.hooks[index] = value4;
265898
+ },
265899
+ initialized: index in store.hooks
265900
+ };
265901
+ const returnValue = cb(pointer);
265902
+ store.index++;
265903
+ return returnValue;
265904
+ }
265905
+ function handleChange3() {
265906
+ getStore3().handleChange();
265907
+ }
265908
+ var effectScheduler3 = {
265909
+ queue(cb) {
265910
+ const store = getStore3();
265911
+ const { index } = store;
265912
+ store.hooksEffect.push(() => {
265913
+ store.hooksCleanup[index]?.();
265914
+ const cleanFn = cb(readline5());
265915
+ if (cleanFn != null && typeof cleanFn !== "function") {
265916
+ throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
265917
+ }
265918
+ store.hooksCleanup[index] = cleanFn;
265919
+ });
265920
+ },
265921
+ run() {
265922
+ const store = getStore3();
265923
+ withUpdates3(() => {
265924
+ store.hooksEffect.forEach((effect) => {
265925
+ effect();
265926
+ });
265927
+ store.hooksEffect.length = 0;
265928
+ })();
265929
+ },
265930
+ clearAll() {
265931
+ const store = getStore3();
265932
+ store.hooksCleanup.forEach((cleanFn) => {
265933
+ cleanFn?.();
265934
+ });
265935
+ store.hooksEffect.length = 0;
265936
+ store.hooksCleanup.length = 0;
265937
+ }
265938
+ };
265939
+
265940
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265941
+ function useState3(defaultValue) {
265942
+ return withPointer3((pointer) => {
265943
+ const setFn = (newValue) => {
265944
+ if (pointer.get() !== newValue) {
265945
+ pointer.set(newValue);
265946
+ handleChange3();
265947
+ }
265948
+ };
265949
+ if (pointer.initialized) {
265950
+ return [pointer.get(), setFn];
265951
+ }
265952
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
265953
+ pointer.set(value4);
265954
+ return [value4, setFn];
265955
+ });
265956
+ }
265957
+
265958
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265959
+ function useEffect3(cb, depArray) {
265960
+ withPointer3((pointer) => {
265961
+ const oldDeps = pointer.get();
265962
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
265963
+ if (hasChanged) {
265964
+ effectScheduler3.queue(cb);
265965
+ }
265966
+ pointer.set(depArray);
265967
+ });
265968
+ }
265969
+
265970
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265971
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
265972
+ var defaultTheme3 = {
265973
+ prefix: {
265974
+ idle: import_yoctocolors_cjs3.default.blue("?"),
265975
+ done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
265976
+ },
265977
+ spinner: {
265978
+ interval: 80,
265979
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
265980
+ },
265981
+ style: {
265982
+ answer: import_yoctocolors_cjs3.default.cyan,
265983
+ message: import_yoctocolors_cjs3.default.bold,
265984
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
265985
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
265986
+ help: import_yoctocolors_cjs3.default.dim,
265987
+ highlight: import_yoctocolors_cjs3.default.cyan,
265988
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
265989
+ }
265990
+ };
265991
+
265992
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265993
+ function isPlainObject4(value4) {
265994
+ if (typeof value4 !== "object" || value4 === null)
265995
+ return false;
265996
+ let proto = value4;
265997
+ while (Object.getPrototypeOf(proto) !== null) {
265998
+ proto = Object.getPrototypeOf(proto);
265999
+ }
266000
+ return Object.getPrototypeOf(value4) === proto;
266001
+ }
266002
+ function deepMerge4(...objects) {
266003
+ const output = {};
266004
+ for (const obj of objects) {
266005
+ for (const [key3, value4] of Object.entries(obj)) {
266006
+ const prevValue = output[key3];
266007
+ output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
266008
+ }
266009
+ }
266010
+ return output;
266011
+ }
266012
+ function makeTheme3(...themes) {
266013
+ const themesToMerge = [
266014
+ defaultTheme3,
266015
+ ...themes.filter((theme) => theme != null)
266016
+ ];
266017
+ return deepMerge4(...themesToMerge);
266018
+ }
266019
+
266020
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
266021
+ function usePrefix3({ status = "idle", theme }) {
266022
+ const [showLoader, setShowLoader] = useState3(false);
266023
+ const [tick, setTick] = useState3(0);
266024
+ const { prefix, spinner: spinner2 } = makeTheme3(theme);
266025
+ useEffect3(() => {
266026
+ if (status === "loading") {
266027
+ let tickInterval;
266028
+ let inc = -1;
266029
+ const delayTimeout = setTimeout(AsyncResource8.bind(() => {
266030
+ setShowLoader(true);
266031
+ tickInterval = setInterval(AsyncResource8.bind(() => {
266032
+ inc = inc + 1;
266033
+ setTick(inc % spinner2.frames.length);
266034
+ }), spinner2.interval);
266035
+ }), 300);
266036
+ return () => {
266037
+ clearTimeout(delayTimeout);
266038
+ clearInterval(tickInterval);
266039
+ };
266040
+ } else {
266041
+ setShowLoader(false);
266042
+ }
266043
+ }, [status]);
266044
+ if (showLoader) {
266045
+ return spinner2.frames[tick];
266046
+ }
266047
+ const iconName = status === "loading" ? "idle" : status;
266048
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
266049
+ }
265596
266050
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
265597
266051
  function useMemo(fn, dependencies) {
265598
- return withPointer2((pointer) => {
266052
+ return withPointer3((pointer) => {
265599
266053
  const prev = pointer.get();
265600
266054
  if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
265601
266055
  const value4 = fn();
@@ -265606,16 +266060,16 @@ function useMemo(fn, dependencies) {
265606
266060
  });
265607
266061
  }
265608
266062
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
265609
- function useRef2(val) {
265610
- return useState2({ current: val })[0];
266063
+ function useRef3(val) {
266064
+ return useState3({ current: val })[0];
265611
266065
  }
265612
266066
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
265613
- function useKeypress2(userHandler) {
265614
- const signal = useRef2(userHandler);
266067
+ function useKeypress3(userHandler) {
266068
+ const signal = useRef3(userHandler);
265615
266069
  signal.current = userHandler;
265616
- useEffect2((rl) => {
266070
+ useEffect3((rl) => {
265617
266071
  let ignore = false;
265618
- const handler = withUpdates2((_input, event) => {
266072
+ const handler = withUpdates3((_input, event) => {
265619
266073
  if (ignore)
265620
266074
  return;
265621
266075
  signal.current(event, rl);
@@ -265628,21 +266082,21 @@ function useKeypress2(userHandler) {
265628
266082
  }, []);
265629
266083
  }
265630
266084
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
265631
- var import_cli_width2 = __toESM(require_cli_width(), 1);
265632
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
265633
- function breakLines2(content, width) {
266085
+ var import_cli_width3 = __toESM(require_cli_width(), 1);
266086
+ var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
266087
+ function breakLines3(content, width) {
265634
266088
  return content.split(`
265635
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
266089
+ `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
265636
266090
  `).map((str) => str.trimEnd())).join(`
265637
266091
  `);
265638
266092
  }
265639
- function readlineWidth2() {
265640
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
266093
+ function readlineWidth3() {
266094
+ return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
265641
266095
  }
265642
266096
 
265643
266097
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
265644
266098
  function split2(content, width) {
265645
- return breakLines2(content, width).split(`
266099
+ return breakLines3(content, width).split(`
265646
266100
  `);
265647
266101
  }
265648
266102
  function rotate(count, items) {
@@ -265705,7 +266159,7 @@ function infinite({ active, lastActive, total, pageSize, pointer }) {
265705
266159
 
265706
266160
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
265707
266161
  function usePagination({ items, active, renderItem, pageSize, loop = true }) {
265708
- const state = useRef2({ position: 0, lastActive: 0 });
266162
+ const state = useRef3({ position: 0, lastActive: 0 });
265709
266163
  const position = loop ? infinite({
265710
266164
  active,
265711
266165
  lastActive: state.current.lastActive,
@@ -265721,7 +266175,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
265721
266175
  state.current.lastActive = active;
265722
266176
  return lines({
265723
266177
  items,
265724
- width: readlineWidth2(),
266178
+ width: readlineWidth3(),
265725
266179
  renderItem,
265726
266180
  active,
265727
266181
  position,
@@ -265730,22 +266184,22 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
265730
266184
  `);
265731
266185
  }
265732
266186
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265733
- var import_mute_stream2 = __toESM(require_lib(), 1);
265734
- import * as readline4 from "node:readline";
265735
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
266187
+ var import_mute_stream3 = __toESM(require_lib(), 1);
266188
+ import * as readline6 from "node:readline";
266189
+ import { AsyncResource as AsyncResource9 } from "node:async_hooks";
265736
266190
 
265737
266191
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
265738
- var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
265739
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
265740
- var height2 = (content) => content.split(`
266192
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
266193
+ import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
266194
+ var height3 = (content) => content.split(`
265741
266195
  `).length;
265742
- var lastLine2 = (content) => content.split(`
266196
+ var lastLine3 = (content) => content.split(`
265743
266197
  `).pop() ?? "";
265744
- function cursorDown2(n6) {
265745
- return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
266198
+ function cursorDown3(n6) {
266199
+ return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
265746
266200
  }
265747
266201
 
265748
- class ScreenManager2 {
266202
+ class ScreenManager3 {
265749
266203
  height = 0;
265750
266204
  extraLinesUnderPrompt = 0;
265751
266205
  cursorPos;
@@ -265760,17 +266214,17 @@ class ScreenManager2 {
265760
266214
  this.rl.output.mute();
265761
266215
  }
265762
266216
  render(content, bottomContent = "") {
265763
- const promptLine = lastLine2(content);
265764
- const rawPromptLine = stripVTControlCharacters3(promptLine);
266217
+ const promptLine = lastLine3(content);
266218
+ const rawPromptLine = stripVTControlCharacters4(promptLine);
265765
266219
  let prompt = rawPromptLine;
265766
266220
  if (this.rl.line.length > 0) {
265767
266221
  prompt = prompt.slice(0, -this.rl.line.length);
265768
266222
  }
265769
266223
  this.rl.setPrompt(prompt);
265770
266224
  this.cursorPos = this.rl.getCursorPos();
265771
- const width = readlineWidth2();
265772
- content = breakLines2(content, width);
265773
- bottomContent = breakLines2(bottomContent, width);
266225
+ const width = readlineWidth3();
266226
+ content = breakLines3(content, width);
266227
+ bottomContent = breakLines3(bottomContent, width);
265774
266228
  if (rawPromptLine.length % width === 0) {
265775
266229
  content += `
265776
266230
  `;
@@ -265778,34 +266232,34 @@ class ScreenManager2 {
265778
266232
  let output = content + (bottomContent ? `
265779
266233
  ` + bottomContent : "");
265780
266234
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
265781
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
266235
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
265782
266236
  if (bottomContentHeight > 0)
265783
- output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
265784
- output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
265785
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
266237
+ output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
266238
+ output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
266239
+ this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
265786
266240
  this.extraLinesUnderPrompt = bottomContentHeight;
265787
- this.height = height2(output);
266241
+ this.height = height3(output);
265788
266242
  }
265789
266243
  checkCursorPos() {
265790
266244
  const cursorPos = this.rl.getCursorPos();
265791
266245
  if (cursorPos.cols !== this.cursorPos.cols) {
265792
- this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
266246
+ this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
265793
266247
  this.cursorPos = cursorPos;
265794
266248
  }
265795
266249
  }
265796
266250
  done({ clearContent }) {
265797
266251
  this.rl.setPrompt("");
265798
- let output = cursorDown2(this.extraLinesUnderPrompt);
265799
- output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
266252
+ let output = cursorDown3(this.extraLinesUnderPrompt);
266253
+ output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
265800
266254
  `;
265801
- output += import_ansi_escapes2.default.cursorShow;
266255
+ output += import_ansi_escapes3.default.cursorShow;
265802
266256
  this.write(output);
265803
266257
  this.rl.close();
265804
266258
  }
265805
266259
  }
265806
266260
 
265807
266261
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
265808
- class PromisePolyfill2 extends Promise {
266262
+ class PromisePolyfill3 extends Promise {
265809
266263
  static withResolver() {
265810
266264
  let resolve5;
265811
266265
  let reject;
@@ -265818,7 +266272,7 @@ class PromisePolyfill2 extends Promise {
265818
266272
  }
265819
266273
 
265820
266274
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265821
- function getCallSites2() {
266275
+ function getCallSites3() {
265822
266276
  const _prepareStackTrace = Error.prepareStackTrace;
265823
266277
  let result = [];
265824
266278
  try {
@@ -265834,23 +266288,23 @@ function getCallSites2() {
265834
266288
  Error.prepareStackTrace = _prepareStackTrace;
265835
266289
  return result;
265836
266290
  }
265837
- function createPrompt2(view) {
265838
- const callSites = getCallSites2();
266291
+ function createPrompt3(view) {
266292
+ const callSites = getCallSites3();
265839
266293
  const prompt = (config3, context = {}) => {
265840
266294
  const { input = process.stdin, signal } = context;
265841
266295
  const cleanups = new Set;
265842
- const output = new import_mute_stream2.default;
266296
+ const output = new import_mute_stream3.default;
265843
266297
  output.pipe(context.output ?? process.stdout);
265844
- const rl = readline4.createInterface({
266298
+ const rl = readline6.createInterface({
265845
266299
  terminal: true,
265846
266300
  input,
265847
266301
  output
265848
266302
  });
265849
- const screen = new ScreenManager2(rl);
265850
- const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
265851
- const cancel3 = () => reject(new CancelPromptError2);
266303
+ const screen = new ScreenManager3(rl);
266304
+ const { promise, resolve: resolve5, reject } = PromisePolyfill3.withResolver();
266305
+ const cancel3 = () => reject(new CancelPromptError3);
265852
266306
  if (signal) {
265853
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
266307
+ const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
265854
266308
  if (signal.aborted) {
265855
266309
  abort();
265856
266310
  return Object.assign(promise, { cancel: cancel3 });
@@ -265859,13 +266313,13 @@ function createPrompt2(view) {
265859
266313
  cleanups.add(() => signal.removeEventListener("abort", abort));
265860
266314
  }
265861
266315
  cleanups.add(onExit((code2, signal2) => {
265862
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
266316
+ reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
265863
266317
  }));
265864
266318
  const checkCursorPos = () => screen.checkCursorPos();
265865
266319
  rl.input.on("keypress", checkCursorPos);
265866
266320
  cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
265867
- return withHooks2(rl, (cycle) => {
265868
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
266321
+ return withHooks3(rl, (cycle) => {
266322
+ const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
265869
266323
  rl.on("close", hooksCleanup);
265870
266324
  cleanups.add(() => rl.removeListener("close", hooksCleanup));
265871
266325
  cycle(() => {
@@ -265880,16 +266334,16 @@ function createPrompt2(view) {
265880
266334
  }
265881
266335
  const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
265882
266336
  screen.render(content, bottomContent);
265883
- effectScheduler2.run();
266337
+ effectScheduler3.run();
265884
266338
  } catch (error5) {
265885
266339
  reject(error5);
265886
266340
  }
265887
266341
  });
265888
266342
  return Object.assign(promise.then((answer) => {
265889
- effectScheduler2.clearAll();
266343
+ effectScheduler3.clearAll();
265890
266344
  return answer;
265891
266345
  }, (error5) => {
265892
- effectScheduler2.clearAll();
266346
+ effectScheduler3.clearAll();
265893
266347
  throw error5;
265894
266348
  }).finally(() => {
265895
266349
  cleanups.forEach((cleanup) => cleanup());
@@ -265901,9 +266355,9 @@ function createPrompt2(view) {
265901
266355
  return prompt;
265902
266356
  }
265903
266357
  // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
265904
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
266358
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
265905
266359
  class Separator {
265906
- separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
266360
+ separator = import_yoctocolors_cjs4.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
265907
266361
  type = "separator";
265908
266362
  constructor(separator) {
265909
266363
  if (separator) {
@@ -265915,13 +266369,13 @@ class Separator {
265915
266369
  }
265916
266370
  }
265917
266371
  // ../../node_modules/@inquirer/select/dist/esm/index.js
265918
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
265919
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
266372
+ var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
266373
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
265920
266374
  var selectTheme = {
265921
- icon: { cursor: esm_default3.pointer },
266375
+ icon: { cursor: esm_default2.pointer },
265922
266376
  style: {
265923
- disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
265924
- description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
266377
+ disabled: (text2) => import_yoctocolors_cjs5.default.dim(`- ${text2}`),
266378
+ description: (text2) => import_yoctocolors_cjs5.default.cyan(text2)
265925
266379
  },
265926
266380
  helpMode: "auto"
265927
266381
  };
@@ -265950,19 +266404,19 @@ function normalizeChoices(choices) {
265950
266404
  };
265951
266405
  });
265952
266406
  }
265953
- var esm_default4 = createPrompt2((config3, done) => {
266407
+ var esm_default4 = createPrompt3((config3, done) => {
265954
266408
  const { loop = true, pageSize = 7 } = config3;
265955
- const firstRender = useRef2(true);
265956
- const theme = makeTheme2(selectTheme, config3.theme);
265957
- const [status, setStatus] = useState2("idle");
265958
- const prefix = usePrefix2({ status, theme });
265959
- const searchTimeoutRef = useRef2();
266409
+ const firstRender = useRef3(true);
266410
+ const theme = makeTheme3(selectTheme, config3.theme);
266411
+ const [status, setStatus] = useState3("idle");
266412
+ const prefix = usePrefix3({ status, theme });
266413
+ const searchTimeoutRef = useRef3();
265960
266414
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
265961
266415
  const bounds = useMemo(() => {
265962
266416
  const first = items.findIndex(isSelectable);
265963
266417
  const last = items.findLastIndex(isSelectable);
265964
266418
  if (first === -1) {
265965
- throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
266419
+ throw new ValidationError3("[select prompt] No selectable choices. All choices are disabled.");
265966
266420
  }
265967
266421
  return { first, last };
265968
266422
  }, [items]);
@@ -265971,31 +266425,31 @@ var esm_default4 = createPrompt2((config3, done) => {
265971
266425
  return -1;
265972
266426
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
265973
266427
  }, [config3.default, items]);
265974
- const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
266428
+ const [active, setActive] = useState3(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
265975
266429
  const selectedChoice = items[active];
265976
- useKeypress2((key3, rl) => {
266430
+ useKeypress3((key4, rl) => {
265977
266431
  clearTimeout(searchTimeoutRef.current);
265978
- if (isEnterKey2(key3)) {
266432
+ if (isEnterKey3(key4)) {
265979
266433
  setStatus("done");
265980
266434
  done(selectedChoice.value);
265981
- } else if (isUpKey(key3) || isDownKey(key3)) {
266435
+ } else if (isUpKey(key4) || isDownKey(key4)) {
265982
266436
  rl.clearLine(0);
265983
- if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
265984
- const offset = isUpKey(key3) ? -1 : 1;
266437
+ if (loop || isUpKey(key4) && active !== bounds.first || isDownKey(key4) && active !== bounds.last) {
266438
+ const offset = isUpKey(key4) ? -1 : 1;
265985
266439
  let next = active;
265986
266440
  do {
265987
266441
  next = (next + offset + items.length) % items.length;
265988
266442
  } while (!isSelectable(items[next]));
265989
266443
  setActive(next);
265990
266444
  }
265991
- } else if (isNumberKey(key3)) {
266445
+ } else if (isNumberKey(key4)) {
265992
266446
  rl.clearLine(0);
265993
- const position = Number(key3.name) - 1;
266447
+ const position = Number(key4.name) - 1;
265994
266448
  const item = items[position];
265995
266449
  if (item != null && isSelectable(item)) {
265996
266450
  setActive(position);
265997
266451
  }
265998
- } else if (isBackspaceKey2(key3)) {
266452
+ } else if (isBackspaceKey2(key4)) {
265999
266453
  rl.clearLine(0);
266000
266454
  } else {
266001
266455
  const searchTerm = rl.line.toLowerCase();
@@ -266012,7 +266466,7 @@ var esm_default4 = createPrompt2((config3, done) => {
266012
266466
  }, 700);
266013
266467
  }
266014
266468
  });
266015
- useEffect2(() => () => {
266469
+ useEffect3(() => () => {
266016
266470
  clearTimeout(searchTimeoutRef.current);
266017
266471
  }, []);
266018
266472
  const message = theme.style.message(config3.message, status);
@@ -266051,7 +266505,7 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
266051
266505
  const choiceDescription = selectedChoice.description ? `
266052
266506
  ${theme.style.description(selectedChoice.description)}` : ``;
266053
266507
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
266054
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
266508
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
266055
266509
  });
266056
266510
 
266057
266511
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -266439,13 +266893,13 @@ var esm_default5 = createPrompt((config3, done) => {
266439
266893
  const [value4, setValue] = useState("");
266440
266894
  const theme = makeTheme(config3.theme);
266441
266895
  const prefix = usePrefix({ status, theme });
266442
- useKeypress((key3, rl) => {
266443
- if (isEnterKey(key3)) {
266896
+ useKeypress((key4, rl) => {
266897
+ if (isEnterKey(key4)) {
266444
266898
  const answer = getBooleanValue(value4, config3.default);
266445
266899
  setValue(transformer(answer));
266446
266900
  setStatus("done");
266447
266901
  done(answer);
266448
- } else if (key3.name === "tab") {
266902
+ } else if (key4.name === "tab") {
266449
266903
  const answer = boolToString(!getBooleanValue(value4, config3.default));
266450
266904
  rl.clearLine(0);
266451
266905
  rl.write(answer);
@@ -266465,20 +266919,474 @@ var esm_default5 = createPrompt((config3, done) => {
266465
266919
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
266466
266920
  });
266467
266921
 
266922
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
266923
+ var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
266924
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
266925
+ class AbortPromptError4 extends Error {
266926
+ name = "AbortPromptError";
266927
+ message = "Prompt was aborted";
266928
+ constructor(options) {
266929
+ super();
266930
+ this.cause = options?.cause;
266931
+ }
266932
+ }
266933
+
266934
+ class CancelPromptError4 extends Error {
266935
+ name = "CancelPromptError";
266936
+ message = "Prompt was canceled";
266937
+ }
266938
+
266939
+ class ExitPromptError4 extends Error {
266940
+ name = "ExitPromptError";
266941
+ }
266942
+
266943
+ class HookError4 extends Error {
266944
+ name = "HookError";
266945
+ }
266946
+
266947
+ class ValidationError4 extends Error {
266948
+ name = "ValidationError";
266949
+ }
266950
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
266951
+ import { AsyncResource as AsyncResource11 } from "node:async_hooks";
266952
+
266953
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
266954
+ import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource10 } from "node:async_hooks";
266955
+ var hookStorage4 = new AsyncLocalStorage4;
266956
+ function createStore4(rl) {
266957
+ const store = {
266958
+ rl,
266959
+ hooks: [],
266960
+ hooksCleanup: [],
266961
+ hooksEffect: [],
266962
+ index: 0,
266963
+ handleChange() {
266964
+ }
266965
+ };
266966
+ return store;
266967
+ }
266968
+ function withHooks4(rl, cb) {
266969
+ const store = createStore4(rl);
266970
+ return hookStorage4.run(store, () => {
266971
+ function cycle(render) {
266972
+ store.handleChange = () => {
266973
+ store.index = 0;
266974
+ render();
266975
+ };
266976
+ store.handleChange();
266977
+ }
266978
+ return cb(cycle);
266979
+ });
266980
+ }
266981
+ function getStore4() {
266982
+ const store = hookStorage4.getStore();
266983
+ if (!store) {
266984
+ throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
266985
+ }
266986
+ return store;
266987
+ }
266988
+ function readline7() {
266989
+ return getStore4().rl;
266990
+ }
266991
+ function withUpdates4(fn) {
266992
+ const wrapped = (...args) => {
266993
+ const store = getStore4();
266994
+ let shouldUpdate = false;
266995
+ const oldHandleChange = store.handleChange;
266996
+ store.handleChange = () => {
266997
+ shouldUpdate = true;
266998
+ };
266999
+ const returnValue = fn(...args);
267000
+ if (shouldUpdate) {
267001
+ oldHandleChange();
267002
+ }
267003
+ store.handleChange = oldHandleChange;
267004
+ return returnValue;
267005
+ };
267006
+ return AsyncResource10.bind(wrapped);
267007
+ }
267008
+ function withPointer4(cb) {
267009
+ const store = getStore4();
267010
+ const { index } = store;
267011
+ const pointer = {
267012
+ get() {
267013
+ return store.hooks[index];
267014
+ },
267015
+ set(value4) {
267016
+ store.hooks[index] = value4;
267017
+ },
267018
+ initialized: index in store.hooks
267019
+ };
267020
+ const returnValue = cb(pointer);
267021
+ store.index++;
267022
+ return returnValue;
267023
+ }
267024
+ function handleChange4() {
267025
+ getStore4().handleChange();
267026
+ }
267027
+ var effectScheduler4 = {
267028
+ queue(cb) {
267029
+ const store = getStore4();
267030
+ const { index } = store;
267031
+ store.hooksEffect.push(() => {
267032
+ store.hooksCleanup[index]?.();
267033
+ const cleanFn = cb(readline7());
267034
+ if (cleanFn != null && typeof cleanFn !== "function") {
267035
+ throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
267036
+ }
267037
+ store.hooksCleanup[index] = cleanFn;
267038
+ });
267039
+ },
267040
+ run() {
267041
+ const store = getStore4();
267042
+ withUpdates4(() => {
267043
+ store.hooksEffect.forEach((effect) => {
267044
+ effect();
267045
+ });
267046
+ store.hooksEffect.length = 0;
267047
+ })();
267048
+ },
267049
+ clearAll() {
267050
+ const store = getStore4();
267051
+ store.hooksCleanup.forEach((cleanFn) => {
267052
+ cleanFn?.();
267053
+ });
267054
+ store.hooksEffect.length = 0;
267055
+ store.hooksCleanup.length = 0;
267056
+ }
267057
+ };
267058
+
267059
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
267060
+ function useState4(defaultValue) {
267061
+ return withPointer4((pointer) => {
267062
+ const setFn = (newValue) => {
267063
+ if (pointer.get() !== newValue) {
267064
+ pointer.set(newValue);
267065
+ handleChange4();
267066
+ }
267067
+ };
267068
+ if (pointer.initialized) {
267069
+ return [pointer.get(), setFn];
267070
+ }
267071
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
267072
+ pointer.set(value4);
267073
+ return [value4, setFn];
267074
+ });
267075
+ }
267076
+
267077
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
267078
+ function useEffect4(cb, depArray) {
267079
+ withPointer4((pointer) => {
267080
+ const oldDeps = pointer.get();
267081
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
267082
+ if (hasChanged) {
267083
+ effectScheduler4.queue(cb);
267084
+ }
267085
+ pointer.set(depArray);
267086
+ });
267087
+ }
267088
+
267089
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
267090
+ var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
267091
+ var defaultTheme4 = {
267092
+ prefix: {
267093
+ idle: import_yoctocolors_cjs6.default.blue("?"),
267094
+ done: import_yoctocolors_cjs6.default.green(esm_default2.tick)
267095
+ },
267096
+ spinner: {
267097
+ interval: 80,
267098
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
267099
+ },
267100
+ style: {
267101
+ answer: import_yoctocolors_cjs6.default.cyan,
267102
+ message: import_yoctocolors_cjs6.default.bold,
267103
+ error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
267104
+ defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
267105
+ help: import_yoctocolors_cjs6.default.dim,
267106
+ highlight: import_yoctocolors_cjs6.default.cyan,
267107
+ key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
267108
+ }
267109
+ };
267110
+
267111
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
267112
+ function isPlainObject5(value4) {
267113
+ if (typeof value4 !== "object" || value4 === null)
267114
+ return false;
267115
+ let proto = value4;
267116
+ while (Object.getPrototypeOf(proto) !== null) {
267117
+ proto = Object.getPrototypeOf(proto);
267118
+ }
267119
+ return Object.getPrototypeOf(value4) === proto;
267120
+ }
267121
+ function deepMerge5(...objects) {
267122
+ const output = {};
267123
+ for (const obj of objects) {
267124
+ for (const [key4, value4] of Object.entries(obj)) {
267125
+ const prevValue = output[key4];
267126
+ output[key4] = isPlainObject5(prevValue) && isPlainObject5(value4) ? deepMerge5(prevValue, value4) : value4;
267127
+ }
267128
+ }
267129
+ return output;
267130
+ }
267131
+ function makeTheme4(...themes) {
267132
+ const themesToMerge = [
267133
+ defaultTheme4,
267134
+ ...themes.filter((theme) => theme != null)
267135
+ ];
267136
+ return deepMerge5(...themesToMerge);
267137
+ }
267138
+
267139
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
267140
+ function usePrefix4({ status = "idle", theme }) {
267141
+ const [showLoader, setShowLoader] = useState4(false);
267142
+ const [tick, setTick] = useState4(0);
267143
+ const { prefix, spinner: spinner2 } = makeTheme4(theme);
267144
+ useEffect4(() => {
267145
+ if (status === "loading") {
267146
+ let tickInterval;
267147
+ let inc = -1;
267148
+ const delayTimeout = setTimeout(AsyncResource11.bind(() => {
267149
+ setShowLoader(true);
267150
+ tickInterval = setInterval(AsyncResource11.bind(() => {
267151
+ inc = inc + 1;
267152
+ setTick(inc % spinner2.frames.length);
267153
+ }), spinner2.interval);
267154
+ }), 300);
267155
+ return () => {
267156
+ clearTimeout(delayTimeout);
267157
+ clearInterval(tickInterval);
267158
+ };
267159
+ } else {
267160
+ setShowLoader(false);
267161
+ }
267162
+ }, [status]);
267163
+ if (showLoader) {
267164
+ return spinner2.frames[tick];
267165
+ }
267166
+ const iconName = status === "loading" ? "idle" : status;
267167
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
267168
+ }
267169
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
267170
+ function useRef4(val) {
267171
+ return useState4({ current: val })[0];
267172
+ }
267173
+
267174
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
267175
+ function useKeypress4(userHandler) {
267176
+ const signal = useRef4(userHandler);
267177
+ signal.current = userHandler;
267178
+ useEffect4((rl) => {
267179
+ let ignore = false;
267180
+ const handler = withUpdates4((_input, event) => {
267181
+ if (ignore)
267182
+ return;
267183
+ signal.current(event, rl);
267184
+ });
267185
+ rl.input.on("keypress", handler);
267186
+ return () => {
267187
+ ignore = true;
267188
+ rl.input.removeListener("keypress", handler);
267189
+ };
267190
+ }, []);
267191
+ }
267192
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
267193
+ var import_cli_width4 = __toESM(require_cli_width(), 1);
267194
+ var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
267195
+ function breakLines4(content, width) {
267196
+ return content.split(`
267197
+ `).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
267198
+ `).map((str) => str.trimEnd())).join(`
267199
+ `);
267200
+ }
267201
+ function readlineWidth4() {
267202
+ return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
267203
+ }
267204
+
267205
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
267206
+ var import_mute_stream4 = __toESM(require_lib(), 1);
267207
+ import * as readline8 from "node:readline";
267208
+ import { AsyncResource as AsyncResource12 } from "node:async_hooks";
267209
+
267210
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
267211
+ var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
267212
+ import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
267213
+ var height4 = (content) => content.split(`
267214
+ `).length;
267215
+ var lastLine4 = (content) => content.split(`
267216
+ `).pop() ?? "";
267217
+ function cursorDown4(n6) {
267218
+ return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
267219
+ }
267220
+
267221
+ class ScreenManager4 {
267222
+ height = 0;
267223
+ extraLinesUnderPrompt = 0;
267224
+ cursorPos;
267225
+ rl;
267226
+ constructor(rl) {
267227
+ this.rl = rl;
267228
+ this.cursorPos = rl.getCursorPos();
267229
+ }
267230
+ write(content) {
267231
+ this.rl.output.unmute();
267232
+ this.rl.output.write(content);
267233
+ this.rl.output.mute();
267234
+ }
267235
+ render(content, bottomContent = "") {
267236
+ const promptLine = lastLine4(content);
267237
+ const rawPromptLine = stripVTControlCharacters5(promptLine);
267238
+ let prompt = rawPromptLine;
267239
+ if (this.rl.line.length > 0) {
267240
+ prompt = prompt.slice(0, -this.rl.line.length);
267241
+ }
267242
+ this.rl.setPrompt(prompt);
267243
+ this.cursorPos = this.rl.getCursorPos();
267244
+ const width = readlineWidth4();
267245
+ content = breakLines4(content, width);
267246
+ bottomContent = breakLines4(bottomContent, width);
267247
+ if (rawPromptLine.length % width === 0) {
267248
+ content += `
267249
+ `;
267250
+ }
267251
+ let output = content + (bottomContent ? `
267252
+ ` + bottomContent : "");
267253
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
267254
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
267255
+ if (bottomContentHeight > 0)
267256
+ output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
267257
+ output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
267258
+ this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
267259
+ this.extraLinesUnderPrompt = bottomContentHeight;
267260
+ this.height = height4(output);
267261
+ }
267262
+ checkCursorPos() {
267263
+ const cursorPos = this.rl.getCursorPos();
267264
+ if (cursorPos.cols !== this.cursorPos.cols) {
267265
+ this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
267266
+ this.cursorPos = cursorPos;
267267
+ }
267268
+ }
267269
+ done({ clearContent }) {
267270
+ this.rl.setPrompt("");
267271
+ let output = cursorDown4(this.extraLinesUnderPrompt);
267272
+ output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
267273
+ `;
267274
+ output += import_ansi_escapes5.default.cursorShow;
267275
+ this.write(output);
267276
+ this.rl.close();
267277
+ }
267278
+ }
267279
+
267280
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
267281
+ class PromisePolyfill4 extends Promise {
267282
+ static withResolver() {
267283
+ let resolve6;
267284
+ let reject;
267285
+ const promise = new Promise((res, rej) => {
267286
+ resolve6 = res;
267287
+ reject = rej;
267288
+ });
267289
+ return { promise, resolve: resolve6, reject };
267290
+ }
267291
+ }
267292
+
267293
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
267294
+ function getCallSites4() {
267295
+ const _prepareStackTrace = Error.prepareStackTrace;
267296
+ let result = [];
267297
+ try {
267298
+ Error.prepareStackTrace = (_5, callSites) => {
267299
+ const callSitesWithoutCurrent = callSites.slice(1);
267300
+ result = callSitesWithoutCurrent;
267301
+ return callSitesWithoutCurrent;
267302
+ };
267303
+ new Error().stack;
267304
+ } catch {
267305
+ return result;
267306
+ }
267307
+ Error.prepareStackTrace = _prepareStackTrace;
267308
+ return result;
267309
+ }
267310
+ function createPrompt4(view) {
267311
+ const callSites = getCallSites4();
267312
+ const prompt = (config3, context = {}) => {
267313
+ const { input = process.stdin, signal } = context;
267314
+ const cleanups = new Set;
267315
+ const output = new import_mute_stream4.default;
267316
+ output.pipe(context.output ?? process.stdout);
267317
+ const rl = readline8.createInterface({
267318
+ terminal: true,
267319
+ input,
267320
+ output
267321
+ });
267322
+ const screen = new ScreenManager4(rl);
267323
+ const { promise, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
267324
+ const cancel3 = () => reject(new CancelPromptError4);
267325
+ if (signal) {
267326
+ const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
267327
+ if (signal.aborted) {
267328
+ abort();
267329
+ return Object.assign(promise, { cancel: cancel3 });
267330
+ }
267331
+ signal.addEventListener("abort", abort);
267332
+ cleanups.add(() => signal.removeEventListener("abort", abort));
267333
+ }
267334
+ cleanups.add(onExit((code2, signal2) => {
267335
+ reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
267336
+ }));
267337
+ const checkCursorPos = () => screen.checkCursorPos();
267338
+ rl.input.on("keypress", checkCursorPos);
267339
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
267340
+ return withHooks4(rl, (cycle) => {
267341
+ const hooksCleanup = AsyncResource12.bind(() => effectScheduler4.clearAll());
267342
+ rl.on("close", hooksCleanup);
267343
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
267344
+ cycle(() => {
267345
+ try {
267346
+ const nextView = view(config3, (value4) => {
267347
+ setImmediate(() => resolve6(value4));
267348
+ });
267349
+ if (nextView === undefined) {
267350
+ const callerFilename = callSites[1]?.getFileName?.();
267351
+ throw new Error(`Prompt functions must return a string.
267352
+ at ${callerFilename}`);
267353
+ }
267354
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
267355
+ screen.render(content, bottomContent);
267356
+ effectScheduler4.run();
267357
+ } catch (error5) {
267358
+ reject(error5);
267359
+ }
267360
+ });
267361
+ return Object.assign(promise.then((answer) => {
267362
+ effectScheduler4.clearAll();
267363
+ return answer;
267364
+ }, (error5) => {
267365
+ effectScheduler4.clearAll();
267366
+ throw error5;
267367
+ }).finally(() => {
267368
+ cleanups.forEach((cleanup) => cleanup());
267369
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
267370
+ output.end();
267371
+ }).then(() => promise), { cancel: cancel3 });
267372
+ });
267373
+ };
267374
+ return prompt;
267375
+ }
266468
267376
  // ../../node_modules/@inquirer/password/dist/esm/index.js
266469
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
266470
- var esm_default6 = createPrompt((config3, done) => {
267377
+ var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
267378
+ var esm_default6 = createPrompt4((config3, done) => {
266471
267379
  const { validate: validate3 = () => true } = config3;
266472
- const theme = makeTheme(config3.theme);
266473
- const [status, setStatus] = useState("idle");
266474
- const [errorMsg, setError] = useState();
266475
- const [value4, setValue] = useState("");
266476
- const prefix = usePrefix({ status, theme });
266477
- useKeypress(async (key3, rl) => {
267380
+ const theme = makeTheme4(config3.theme);
267381
+ const [status, setStatus] = useState4("idle");
267382
+ const [errorMsg, setError] = useState4();
267383
+ const [value4, setValue] = useState4("");
267384
+ const prefix = usePrefix4({ status, theme });
267385
+ useKeypress4(async (key5, rl) => {
266478
267386
  if (status !== "idle") {
266479
267387
  return;
266480
267388
  }
266481
- if (isEnterKey(key3)) {
267389
+ if (isEnterKey4(key5)) {
266482
267390
  const answer = value4;
266483
267391
  setStatus("loading");
266484
267392
  const isValid2 = await validate3(answer);
@@ -266503,7 +267411,7 @@ var esm_default6 = createPrompt((config3, done) => {
266503
267411
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
266504
267412
  formattedValue = maskChar.repeat(value4.length);
266505
267413
  } else if (status !== "done") {
266506
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
267414
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
266507
267415
  }
266508
267416
  if (status === "done") {
266509
267417
  formattedValue = theme.style.answer(formattedValue);
@@ -266538,7 +267446,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
266538
267446
  default: false
266539
267447
  });
266540
267448
  if (create2) {
266541
- const name3 = await esm_default2({
267449
+ const name3 = await esm_default3({
266542
267450
  message: "How would you like to name this application access token?",
266543
267451
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
266544
267452
  required: true,
@@ -266938,7 +267846,7 @@ async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_
266938
267846
  return sanitizeInstanceUrl(defaultPromptInstance);
266939
267847
  }
266940
267848
  if (freeTextInput) {
266941
- const instance = await esm_default2({
267849
+ const instance = await esm_default3({
266942
267850
  message: "What is the URL of your SettleMint instance?",
266943
267851
  default: defaultPromptInstance,
266944
267852
  required: true,
@@ -267390,7 +268298,7 @@ async function projectNamePrompt(env2, argument) {
267390
268298
  if (defaultInstance) {
267391
268299
  return defaultInstance;
267392
268300
  }
267393
- return esm_default2({
268301
+ return esm_default3({
267394
268302
  message: "What is the name of your new SettleMint project?",
267395
268303
  default: defaultInstance,
267396
268304
  required: true,
@@ -267592,7 +268500,7 @@ var basename2 = function(p6, extension) {
267592
268500
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
267593
268501
  };
267594
268502
  // ../../node_modules/defu/dist/defu.mjs
267595
- function isPlainObject4(value4) {
268503
+ function isPlainObject6(value4) {
267596
268504
  if (value4 === null || typeof value4 !== "object") {
267597
268505
  return false;
267598
268506
  }
@@ -267609,27 +268517,27 @@ function isPlainObject4(value4) {
267609
268517
  return true;
267610
268518
  }
267611
268519
  function _defu(baseObject, defaults2, namespace = ".", merger) {
267612
- if (!isPlainObject4(defaults2)) {
268520
+ if (!isPlainObject6(defaults2)) {
267613
268521
  return _defu(baseObject, {}, namespace, merger);
267614
268522
  }
267615
268523
  const object = Object.assign({}, defaults2);
267616
- for (const key3 in baseObject) {
267617
- if (key3 === "__proto__" || key3 === "constructor") {
268524
+ for (const key5 in baseObject) {
268525
+ if (key5 === "__proto__" || key5 === "constructor") {
267618
268526
  continue;
267619
268527
  }
267620
- const value4 = baseObject[key3];
268528
+ const value4 = baseObject[key5];
267621
268529
  if (value4 === null || value4 === undefined) {
267622
268530
  continue;
267623
268531
  }
267624
- if (merger && merger(object, key3, value4, namespace)) {
268532
+ if (merger && merger(object, key5, value4, namespace)) {
267625
268533
  continue;
267626
268534
  }
267627
- if (Array.isArray(value4) && Array.isArray(object[key3])) {
267628
- object[key3] = [...value4, ...object[key3]];
267629
- } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
267630
- object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
268535
+ if (Array.isArray(value4) && Array.isArray(object[key5])) {
268536
+ object[key5] = [...value4, ...object[key5]];
268537
+ } else if (isPlainObject6(value4) && isPlainObject6(object[key5])) {
268538
+ object[key5] = _defu(value4, object[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
267631
268539
  } else {
267632
- object[key3] = value4;
268540
+ object[key5] = value4;
267633
268541
  }
267634
268542
  }
267635
268543
  return object;
@@ -267638,15 +268546,15 @@ function createDefu(merger) {
267638
268546
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
267639
268547
  }
267640
268548
  var defu = createDefu();
267641
- var defuFn = createDefu((object, key3, currentValue) => {
267642
- if (object[key3] !== undefined && typeof currentValue === "function") {
267643
- object[key3] = currentValue(object[key3]);
268549
+ var defuFn = createDefu((object, key5, currentValue) => {
268550
+ if (object[key5] !== undefined && typeof currentValue === "function") {
268551
+ object[key5] = currentValue(object[key5]);
267644
268552
  return true;
267645
268553
  }
267646
268554
  });
267647
- var defuArrayFn = createDefu((object, key3, currentValue) => {
267648
- if (Array.isArray(object[key3]) && typeof currentValue === "function") {
267649
- object[key3] = currentValue(object[key3]);
268555
+ var defuArrayFn = createDefu((object, key5, currentValue) => {
268556
+ if (Array.isArray(object[key5]) && typeof currentValue === "function") {
268557
+ object[key5] = currentValue(object[key5]);
267650
268558
  return true;
267651
268559
  }
267652
268560
  });
@@ -270360,11 +271268,11 @@ function cacheDirectory() {
270360
271268
  }
270361
271269
  function normalizeHeaders(headers = {}) {
270362
271270
  const normalized = {};
270363
- for (const [key3, value4] of Object.entries(headers)) {
271271
+ for (const [key5, value4] of Object.entries(headers)) {
270364
271272
  if (!value4) {
270365
271273
  continue;
270366
271274
  }
270367
- normalized[key3.toLowerCase()] = value4;
271275
+ normalized[key5.toLowerCase()] = value4;
270368
271276
  }
270369
271277
  return normalized;
270370
271278
  }
@@ -272250,7 +273158,7 @@ function createCommand3() {
272250
273158
 
272251
273159
  // src/prompts/delete-confirmation.prompt.ts
272252
273160
  async function deleteConfirmationPrompt(itemDescription) {
272253
- const confirmation = await esm_default2({
273161
+ const confirmation = await esm_default3({
272254
273162
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
272255
273163
  required: true,
272256
273164
  validate(value4) {
@@ -272607,7 +273515,7 @@ function jsonOutput(data) {
272607
273515
  var composer = require_composer();
272608
273516
  var Document = require_Document();
272609
273517
  var Schema = require_Schema();
272610
- var errors3 = require_errors3();
273518
+ var errors5 = require_errors3();
272611
273519
  var Alias = require_Alias();
272612
273520
  var identity2 = require_identity();
272613
273521
  var Pair = require_Pair();
@@ -272623,9 +273531,9 @@ var visit2 = require_visit();
272623
273531
  var $Composer = composer.Composer;
272624
273532
  var $Document = Document.Document;
272625
273533
  var $Schema = Schema.Schema;
272626
- var $YAMLError = errors3.YAMLError;
272627
- var $YAMLParseError = errors3.YAMLParseError;
272628
- var $YAMLWarning = errors3.YAMLWarning;
273534
+ var $YAMLError = errors5.YAMLError;
273535
+ var $YAMLParseError = errors5.YAMLParseError;
273536
+ var $YAMLWarning = errors5.YAMLWarning;
272629
273537
  var $Alias = Alias.Alias;
272630
273538
  var $isAlias = identity2.isAlias;
272631
273539
  var $isCollection = identity2.isCollection;
@@ -272973,7 +273881,7 @@ async function getServicesAndMapResults({
272973
273881
  const application = await settlemint.application.read(applicationUniqueName);
272974
273882
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
272975
273883
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
272976
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
273884
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key5, value4]) => value4.command === serviceType) ?? [
272977
273885
  null,
272978
273886
  { plural: serviceType }
272979
273887
  ];
@@ -273201,11 +274109,11 @@ function createCommand4() {
273201
274109
 
273202
274110
  // src/utils/commands/passthrough-options.ts
273203
274111
  function mapPassthroughOptions(options, command) {
273204
- const optionArgs = Object.entries(options).map(([key3, value4]) => {
274112
+ const optionArgs = Object.entries(options).map(([key5, value4]) => {
273205
274113
  if (value4 === true) {
273206
- return `--${key3}`;
274114
+ return `--${key5}`;
273207
274115
  }
273208
- return `--${key3}=${value4}`;
274116
+ return `--${key5}=${value4}`;
273209
274117
  });
273210
274118
  return [...optionArgs, ...command.args];
273211
274119
  }
@@ -274216,4 +275124,4 @@ async function sdkCliCommand(argv = process.argv) {
274216
275124
  // src/cli.ts
274217
275125
  sdkCliCommand();
274218
275126
 
274219
- //# debugId=DE30300DE392FD3764756E2164756E21
275127
+ //# debugId=826A2A289E566D5264756E2164756E21