@settlemint/sdk-cli 0.8.6-pr09488183 → 0.8.6-pr359fad91

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 (4) hide show
  1. package/README.md +195 -11
  2. package/dist/cli.js +493 -594
  3. package/dist/cli.js.map +76 -77
  4. package/package.json +5 -4
package/dist/cli.js CHANGED
@@ -1826,7 +1826,7 @@ var require_extra_typings = __commonJS((exports, module) => {
1826
1826
  // ../../node_modules/@dotenvx/dotenvx/package.json
1827
1827
  var require_package = __commonJS((exports, module) => {
1828
1828
  module.exports = {
1829
- version: "1.31.0",
1829
+ version: "1.32.1",
1830
1830
  name: "@dotenvx/dotenvx",
1831
1831
  description: "a better dotenv–from the creator of `dotenv`",
1832
1832
  author: "@motdotla",
@@ -1879,7 +1879,7 @@ var require_package = __commonJS((exports, module) => {
1879
1879
  sinon: "^14.0.1",
1880
1880
  standard: "^17.1.0",
1881
1881
  "standard-version": "^9.5.0",
1882
- tap: "^19.2.0"
1882
+ tap: "^21.0.1"
1883
1883
  },
1884
1884
  publishConfig: {
1885
1885
  access: "public",
@@ -1970,20 +1970,12 @@ var require_logger = __commonJS((exports, module) => {
1970
1970
  var levels = {
1971
1971
  error: 0,
1972
1972
  errorv: 0,
1973
- errorvp: 0,
1974
- errorvpb: 0,
1975
1973
  errornocolor: 0,
1976
1974
  warn: 1,
1977
- warnv: 1,
1978
- warnvp: 1,
1979
- warnvpb: 1,
1980
1975
  success: 2,
1981
1976
  successv: 2,
1982
- successvp: 2,
1983
- successvpb: 2,
1984
1977
  info: 2,
1985
1978
  help: 2,
1986
- help2: 2,
1987
1979
  blank: 2,
1988
1980
  verbose: 4,
1989
1981
  debug: 5,
@@ -1994,7 +1986,6 @@ var require_logger = __commonJS((exports, module) => {
1994
1986
  var success = getColor("green");
1995
1987
  var successv = getColor("olive");
1996
1988
  var help = getColor("dodgerblue");
1997
- var help2 = getColor("gray");
1998
1989
  var verbose = getColor("plum");
1999
1990
  var debug = getColor("plum");
2000
1991
  var currentLevel = levels.info;
@@ -2014,34 +2005,18 @@ var require_logger = __commonJS((exports, module) => {
2014
2005
  return error(formattedMessage);
2015
2006
  case "errorv":
2016
2007
  return error(`[dotenvx@${packageJson.version}] ${formattedMessage}`);
2017
- case "errorvp":
2018
- return error(`[dotenvx@${packageJson.version}][precommit] ${formattedMessage}`);
2019
- case "errorvpb":
2020
- return error(`[dotenvx@${packageJson.version}][prebuild] ${formattedMessage}`);
2021
2008
  case "errornocolor":
2022
2009
  return formattedMessage;
2023
2010
  case "warn":
2024
2011
  return warn(formattedMessage);
2025
- case "warnv":
2026
- return warn(`[dotenvx@${packageJson.version}] ${formattedMessage}`);
2027
- case "warnvp":
2028
- return warn(`[dotenvx@${packageJson.version}][precommit] ${formattedMessage}`);
2029
- case "warnvpb":
2030
- return warn(`[dotenvx@${packageJson.version}][prebuild] ${formattedMessage}`);
2031
2012
  case "success":
2032
2013
  return success(formattedMessage);
2033
2014
  case "successv":
2034
2015
  return successv(`[dotenvx@${packageJson.version}] ${formattedMessage}`);
2035
- case "successvp":
2036
- return success(`[dotenvx@${packageJson.version}][precommit] ${formattedMessage}`);
2037
- case "successvpb":
2038
- return success(`[dotenvx@${packageJson.version}][prebuild] ${formattedMessage}`);
2039
2016
  case "info":
2040
2017
  return formattedMessage;
2041
2018
  case "help":
2042
2019
  return help(formattedMessage);
2043
- case "help2":
2044
- return help2(formattedMessage);
2045
2020
  case "verbose":
2046
2021
  return verbose(formattedMessage);
2047
2022
  case "debug":
@@ -2054,20 +2029,12 @@ var require_logger = __commonJS((exports, module) => {
2054
2029
  level: "info",
2055
2030
  error: (msg) => log("error", msg),
2056
2031
  errorv: (msg) => log("errorv", msg),
2057
- errorvp: (msg) => log("errorvp", msg),
2058
- errorvpb: (msg) => log("errorvpb", msg),
2059
2032
  errornocolor: (msg) => log("errornocolor", msg),
2060
2033
  warn: (msg) => log("warn", msg),
2061
- warnv: (msg) => log("warnv", msg),
2062
- warnvp: (msg) => log("warnvp", msg),
2063
- warnvpb: (msg) => log("warnvpb", msg),
2064
2034
  success: (msg) => log("success", msg),
2065
2035
  successv: (msg) => log("successv", msg),
2066
- successvp: (msg) => log("successvp", msg),
2067
- successvpb: (msg) => log("successvpb", msg),
2068
2036
  info: (msg) => log("info", msg),
2069
2037
  help: (msg) => log("help", msg),
2070
- help2: (msg) => log("help2", msg),
2071
2038
  verbose: (msg) => log("verbose", msg),
2072
2039
  debug: (msg) => log("debug", msg),
2073
2040
  blank: (msg) => log("blank", msg),
@@ -4734,7 +4701,6 @@ var require__assert = __commonJS((exports) => {
4734
4701
  exports.anumber = anumber;
4735
4702
  exports.abool = abool;
4736
4703
  exports.abytes = abytes;
4737
- exports.bytes = abytes;
4738
4704
  exports.ahash = ahash;
4739
4705
  exports.aexists = aexists;
4740
4706
  exports.aoutput = aoutput;
@@ -4775,27 +4741,17 @@ var require__assert = __commonJS((exports) => {
4775
4741
  if (typeof b !== "boolean")
4776
4742
  throw new Error(`boolean expected, not ${b}`);
4777
4743
  }
4778
- var assert = {
4779
- number: anumber,
4780
- bool: abool,
4781
- bytes: abytes,
4782
- hash: ahash,
4783
- exists: aexists,
4784
- output: aoutput
4785
- };
4786
- exports.default = assert;
4787
4744
  });
4788
4745
 
4789
4746
  // ../../node_modules/@noble/ciphers/utils.js
4790
4747
  var require_utils3 = __commonJS((exports) => {
4791
4748
  Object.defineProperty(exports, "__esModule", { value: true });
4792
- exports.wrapCipher = exports.Hash = exports.nextTick = exports.isLE = exports.createView = exports.u32 = exports.u16 = exports.u8 = undefined;
4749
+ exports.wrapCipher = exports.Hash = exports.nextTick = exports.isLE = exports.createView = exports.u32 = exports.u8 = undefined;
4793
4750
  exports.bytesToHex = bytesToHex;
4794
4751
  exports.hexToBytes = hexToBytes;
4795
4752
  exports.hexToNumber = hexToNumber;
4796
4753
  exports.bytesToNumberBE = bytesToNumberBE;
4797
4754
  exports.numberToBytesBE = numberToBytesBE;
4798
- exports.asyncLoop = asyncLoop;
4799
4755
  exports.utf8ToBytes = utf8ToBytes;
4800
4756
  exports.bytesToUtf8 = bytesToUtf8;
4801
4757
  exports.toBytes = toBytes;
@@ -4814,8 +4770,6 @@ var require_utils3 = __commonJS((exports) => {
4814
4770
  var _assert_js_1 = require__assert();
4815
4771
  var u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
4816
4772
  exports.u8 = u8;
4817
- var u16 = (arr) => new Uint16Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 2));
4818
- exports.u16 = u16;
4819
4773
  var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
4820
4774
  exports.u32 = u32;
4821
4775
  var createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
@@ -4875,17 +4829,6 @@ var require_utils3 = __commonJS((exports) => {
4875
4829
  var nextTick = async () => {
4876
4830
  };
4877
4831
  exports.nextTick = nextTick;
4878
- async function asyncLoop(iters, tick, cb) {
4879
- let ts = Date.now();
4880
- for (let i = 0;i < iters; i++) {
4881
- cb(i);
4882
- const diff = Date.now() - ts;
4883
- if (diff >= 0 && diff < tick)
4884
- continue;
4885
- await (0, exports.nextTick)();
4886
- ts += diff;
4887
- }
4888
- }
4889
4832
  function utf8ToBytes(str) {
4890
4833
  if (typeof str !== "string")
4891
4834
  throw new Error("string expected");
@@ -5202,16 +5145,14 @@ var require_webcrypto = __commonJS((exports) => {
5202
5145
  }
5203
5146
  exports.cbc = (() => generate(mode.CBC))();
5204
5147
  exports.ctr = (() => generate(mode.CTR))();
5205
- exports.gcm = (() => generate(mode.GCM))();
5148
+ exports.gcm = /* @__PURE__ */ (() => generate(mode.GCM))();
5206
5149
  });
5207
5150
 
5208
5151
  // ../../node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js
5209
5152
  var require__assert2 = __commonJS((exports) => {
5210
5153
  Object.defineProperty(exports, "__esModule", { value: true });
5211
5154
  exports.anumber = anumber;
5212
- exports.number = anumber;
5213
5155
  exports.abytes = abytes;
5214
- exports.bytes = abytes;
5215
5156
  exports.ahash = ahash;
5216
5157
  exports.aexists = aexists;
5217
5158
  exports.aoutput = aoutput;
@@ -5247,14 +5188,6 @@ var require__assert2 = __commonJS((exports) => {
5247
5188
  throw new Error("digestInto() expects output buffer of length at least " + min);
5248
5189
  }
5249
5190
  }
5250
- var assert = {
5251
- number: anumber,
5252
- bytes: abytes,
5253
- hash: ahash,
5254
- exists: aexists,
5255
- output: aoutput
5256
- };
5257
- exports.default = assert;
5258
5191
  });
5259
5192
 
5260
5193
  // ../../node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js
@@ -5332,7 +5265,7 @@ var require_utils4 = __commonJS((exports) => {
5332
5265
  const hl = hex.length;
5333
5266
  const al = hl / 2;
5334
5267
  if (hl % 2)
5335
- throw new Error("padded hex string expected, got unpadded hex of length " + hl);
5268
+ throw new Error("hex string expected, got unpadded hex of length " + hl);
5336
5269
  const array = new Uint8Array(al);
5337
5270
  for (let ai = 0, hi = 0;ai < al; ai++, hi += 2) {
5338
5271
  const n1 = asciiToBase16(hex.charCodeAt(hi));
@@ -5437,6 +5370,7 @@ var require_utils4 = __commonJS((exports) => {
5437
5370
  var require__md = __commonJS((exports) => {
5438
5371
  Object.defineProperty(exports, "__esModule", { value: true });
5439
5372
  exports.HashMD = exports.Maj = exports.Chi = undefined;
5373
+ exports.setBigUint64 = setBigUint64;
5440
5374
  var _assert_js_1 = require__assert2();
5441
5375
  var utils_js_1 = require_utils4();
5442
5376
  function setBigUint64(view, byteOffset, value, isLE) {
@@ -5920,6 +5854,7 @@ var require_sha512 = __commonJS((exports) => {
5920
5854
 
5921
5855
  // ../../node_modules/@noble/curves/abstract/utils.js
5922
5856
  var require_utils5 = __commonJS((exports) => {
5857
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
5923
5858
  Object.defineProperty(exports, "__esModule", { value: true });
5924
5859
  exports.notImplemented = exports.bitMask = undefined;
5925
5860
  exports.isBytes = isBytes;
@@ -5946,7 +5881,6 @@ var require_utils5 = __commonJS((exports) => {
5946
5881
  exports.createHmacDrbg = createHmacDrbg;
5947
5882
  exports.validateObject = validateObject;
5948
5883
  exports.memoized = memoized;
5949
- /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
5950
5884
  var _0n = /* @__PURE__ */ BigInt(0);
5951
5885
  var _1n = /* @__PURE__ */ BigInt(1);
5952
5886
  var _2n = /* @__PURE__ */ BigInt(2);
@@ -6438,6 +6372,7 @@ var require_modular = __commonJS((exports) => {
6438
6372
  let sqrtP;
6439
6373
  const f = Object.freeze({
6440
6374
  ORDER,
6375
+ isLE,
6441
6376
  BITS,
6442
6377
  BYTES,
6443
6378
  MASK: (0, utils_js_1.bitMask)(BITS),
@@ -6517,7 +6452,7 @@ var require_modular = __commonJS((exports) => {
6517
6452
  const minLen = getMinHashLength(fieldOrder);
6518
6453
  if (len < 16 || len < minLen || len > 1024)
6519
6454
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
6520
- const num = isLE ? (0, utils_js_1.bytesToNumberBE)(key) : (0, utils_js_1.bytesToNumberLE)(key);
6455
+ const num = isLE ? (0, utils_js_1.bytesToNumberLE)(key) : (0, utils_js_1.bytesToNumberBE)(key);
6521
6456
  const reduced = mod(num, fieldOrder - _1n) + _1n;
6522
6457
  return isLE ? (0, utils_js_1.numberToBytesLE)(reduced, fieldLen) : (0, utils_js_1.numberToBytesBE)(reduced, fieldLen);
6523
6458
  }
@@ -7412,6 +7347,7 @@ var require_ed25519 = __commonJS((exports) => {
7412
7347
  var hash_to_curve_js_1 = require_hash_to_curve();
7413
7348
  var modular_js_1 = require_modular();
7414
7349
  var montgomery_js_1 = require_montgomery();
7350
+ var curve_js_1 = require_curve();
7415
7351
  var utils_js_1 = require_utils5();
7416
7352
  var ED25519_P = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949");
7417
7353
  var ED25519_SQRT_M1 = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
@@ -7679,6 +7615,10 @@ var require_ed25519 = __commonJS((exports) => {
7679
7615
  throw new Error(emsg);
7680
7616
  return new RistPoint(new exports.ed25519.ExtendedPoint(x, y, _1n, t));
7681
7617
  }
7618
+ static msm(points, scalars) {
7619
+ const Fn = (0, modular_js_1.Field)(exports.ed25519.CURVE.n, exports.ed25519.CURVE.nBitLength);
7620
+ return (0, curve_js_1.pippenger)(RistPoint, Fn, points, scalars);
7621
+ }
7682
7622
  toRawBytes() {
7683
7623
  let { ex: x, ey: y, ez: z2, et: t } = this.ep;
7684
7624
  const P = exports.ed25519.CURVE.Fp.ORDER;
@@ -8011,7 +7951,7 @@ var require_hmac = __commonJS((exports) => {
8011
7951
  // ../../node_modules/@noble/curves/abstract/weierstrass.js
8012
7952
  var require_weierstrass = __commonJS((exports) => {
8013
7953
  Object.defineProperty(exports, "__esModule", { value: true });
8014
- exports.DER = undefined;
7954
+ exports.DER = exports.DERErr = undefined;
8015
7955
  exports.weierstrassPoints = weierstrassPoints;
8016
7956
  exports.weierstrass = weierstrass;
8017
7957
  exports.SWUFpSqrtRatio = SWUFpSqrtRatio;
@@ -8053,12 +7993,15 @@ var require_weierstrass = __commonJS((exports) => {
8053
7993
  return Object.freeze({ ...opts });
8054
7994
  }
8055
7995
  var { bytesToNumberBE: b2n, hexToBytes: h2b } = ut;
7996
+
7997
+ class DERErr extends Error {
7998
+ constructor(m = "") {
7999
+ super(m);
8000
+ }
8001
+ }
8002
+ exports.DERErr = DERErr;
8056
8003
  exports.DER = {
8057
- Err: class DERErr extends Error {
8058
- constructor(m = "") {
8059
- super(m);
8060
- }
8061
- },
8004
+ Err: DERErr,
8062
8005
  _tlv: {
8063
8006
  encode: (tag, data) => {
8064
8007
  const { Err: E } = exports.DER;
@@ -8930,7 +8873,7 @@ var require__shortw_utils = __commonJS((exports) => {
8930
8873
  }
8931
8874
  function createCurve(curveDef, defHash) {
8932
8875
  const create = (hash) => (0, weierstrass_js_1.weierstrass)({ ...curveDef, ...getHash(hash) });
8933
- return Object.freeze({ ...create(defHash), create });
8876
+ return { ...create(defHash), create };
8934
8877
  }
8935
8878
  });
8936
8879
 
@@ -9260,13 +9203,11 @@ var require_elliptic = __commonJS((exports) => {
9260
9203
  };
9261
9204
  });
9262
9205
 
9263
- // ../../node_modules/@noble/hashes/_assert.js
9206
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/_assert.js
9264
9207
  var require__assert3 = __commonJS((exports) => {
9265
9208
  Object.defineProperty(exports, "__esModule", { value: true });
9266
9209
  exports.anumber = anumber;
9267
- exports.number = anumber;
9268
9210
  exports.abytes = abytes;
9269
- exports.bytes = abytes;
9270
9211
  exports.ahash = ahash;
9271
9212
  exports.aexists = aexists;
9272
9213
  exports.aoutput = aoutput;
@@ -9302,17 +9243,9 @@ var require__assert3 = __commonJS((exports) => {
9302
9243
  throw new Error("digestInto() expects output buffer of length at least " + min);
9303
9244
  }
9304
9245
  }
9305
- var assert = {
9306
- number: anumber,
9307
- bytes: abytes,
9308
- hash: ahash,
9309
- exists: aexists,
9310
- output: aoutput
9311
- };
9312
- exports.default = assert;
9313
9246
  });
9314
9247
 
9315
- // ../../node_modules/@noble/hashes/cryptoNode.js
9248
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/cryptoNode.js
9316
9249
  var require_cryptoNode3 = __commonJS((exports) => {
9317
9250
  Object.defineProperty(exports, "__esModule", { value: true });
9318
9251
  exports.crypto = undefined;
@@ -9320,7 +9253,7 @@ var require_cryptoNode3 = __commonJS((exports) => {
9320
9253
  exports.crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
9321
9254
  });
9322
9255
 
9323
- // ../../node_modules/@noble/hashes/utils.js
9256
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/utils.js
9324
9257
  var require_utils6 = __commonJS((exports) => {
9325
9258
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
9326
9259
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -9488,7 +9421,7 @@ var require_utils6 = __commonJS((exports) => {
9488
9421
  }
9489
9422
  });
9490
9423
 
9491
- // ../../node_modules/@noble/hashes/hmac.js
9424
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/hmac.js
9492
9425
  var require_hmac2 = __commonJS((exports) => {
9493
9426
  Object.defineProperty(exports, "__esModule", { value: true });
9494
9427
  exports.hmac = exports.HMAC = undefined;
@@ -9562,7 +9495,7 @@ var require_hmac2 = __commonJS((exports) => {
9562
9495
  exports.hmac.create = (hash, key) => new HMAC(hash, key);
9563
9496
  });
9564
9497
 
9565
- // ../../node_modules/@noble/hashes/hkdf.js
9498
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/hkdf.js
9566
9499
  var require_hkdf = __commonJS((exports) => {
9567
9500
  Object.defineProperty(exports, "__esModule", { value: true });
9568
9501
  exports.hkdf = undefined;
@@ -9607,10 +9540,11 @@ var require_hkdf = __commonJS((exports) => {
9607
9540
  exports.hkdf = hkdf;
9608
9541
  });
9609
9542
 
9610
- // ../../node_modules/@noble/hashes/_md.js
9543
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/_md.js
9611
9544
  var require__md2 = __commonJS((exports) => {
9612
9545
  Object.defineProperty(exports, "__esModule", { value: true });
9613
9546
  exports.HashMD = exports.Maj = exports.Chi = undefined;
9547
+ exports.setBigUint64 = setBigUint64;
9614
9548
  var _assert_js_1 = require__assert3();
9615
9549
  var utils_js_1 = require_utils6();
9616
9550
  function setBigUint64(view, byteOffset, value, isLE) {
@@ -9719,7 +9653,7 @@ var require__md2 = __commonJS((exports) => {
9719
9653
  exports.HashMD = HashMD;
9720
9654
  });
9721
9655
 
9722
- // ../../node_modules/@noble/hashes/sha256.js
9656
+ // ../../node_modules/eciesjs/node_modules/@noble/hashes/sha256.js
9723
9657
  var require_sha2562 = __commonJS((exports) => {
9724
9658
  Object.defineProperty(exports, "__esModule", { value: true });
9725
9659
  exports.sha224 = exports.sha256 = exports.SHA256 = undefined;
@@ -10316,21 +10250,27 @@ var require_dist2 = __commonJS((exports) => {
10316
10250
  var config_1 = require_config();
10317
10251
  var keys_1 = require_keys();
10318
10252
  var utils_2 = require_utils7();
10319
- function encrypt(receiverRawPK, msg) {
10253
+ function encrypt(receiverRawPK, data) {
10254
+ return Buffer.from(_encrypt(receiverRawPK, data));
10255
+ }
10256
+ function _encrypt(receiverRawPK, data) {
10320
10257
  var ephemeralSK = new keys_1.PrivateKey;
10321
10258
  var receiverPK = receiverRawPK instanceof Uint8Array ? new keys_1.PublicKey(receiverRawPK) : keys_1.PublicKey.fromHex(receiverRawPK);
10322
10259
  var sharedKey = ephemeralSK.encapsulate(receiverPK, (0, config_1.isHkdfKeyCompressed)());
10323
10260
  var ephemeralPK = ephemeralSK.publicKey.toBytes((0, config_1.isEphemeralKeyCompressed)());
10324
- var encrypted = (0, utils_2.symEncrypt)(sharedKey, msg);
10325
- return Buffer.from((0, utils_1.concatBytes)(ephemeralPK, encrypted));
10261
+ var encrypted = (0, utils_2.symEncrypt)(sharedKey, data);
10262
+ return (0, utils_1.concatBytes)(ephemeralPK, encrypted);
10263
+ }
10264
+ function decrypt(receiverRawSK, data) {
10265
+ return Buffer.from(_decrypt(receiverRawSK, data));
10326
10266
  }
10327
- function decrypt(receiverRawSK, msg) {
10267
+ function _decrypt(receiverRawSK, data) {
10328
10268
  var receiverSK = receiverRawSK instanceof Uint8Array ? new keys_1.PrivateKey(receiverRawSK) : keys_1.PrivateKey.fromHex(receiverRawSK);
10329
10269
  var keySize = (0, config_1.ephemeralKeySize)();
10330
- var ephemeralPK = new keys_1.PublicKey(msg.subarray(0, keySize));
10331
- var encrypted = msg.subarray(keySize);
10270
+ var ephemeralPK = new keys_1.PublicKey(data.subarray(0, keySize));
10271
+ var encrypted = data.subarray(keySize);
10332
10272
  var sharedKey = ephemeralPK.decapsulate(receiverSK, (0, config_1.isHkdfKeyCompressed)());
10333
- return Buffer.from((0, utils_2.symDecrypt)(sharedKey, encrypted));
10273
+ return (0, utils_2.symDecrypt)(sharedKey, encrypted);
10334
10274
  }
10335
10275
  var config_2 = require_config();
10336
10276
  Object.defineProperty(exports, "ECIES_CONFIG", { enumerable: true, get: function() {
@@ -10658,6 +10598,34 @@ var require_parse2 = __commonJS((exports, module) => {
10658
10598
  module.exports = Parse;
10659
10599
  });
10660
10600
 
10601
+ // ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/dotenvParse.js
10602
+ var require_dotenvParse = __commonJS((exports, module) => {
10603
+ var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
10604
+ function dotenvParse(src, skipExpandForDoubleQuotes = false) {
10605
+ const obj = {};
10606
+ let lines = src.toString();
10607
+ lines = lines.replace(/\r\n?/mg, `
10608
+ `);
10609
+ let match;
10610
+ while ((match = LINE.exec(lines)) != null) {
10611
+ const key = match[1];
10612
+ let value = match[2] || "";
10613
+ value = value.trim();
10614
+ const maybeQuote = value[0];
10615
+ value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
10616
+ if (maybeQuote === '"' && !skipExpandForDoubleQuotes) {
10617
+ value = value.replace(/\\n/g, `
10618
+ `);
10619
+ value = value.replace(/\\r/g, "\r");
10620
+ value = value.replace(/\\t/g, "\t");
10621
+ }
10622
+ obj[key] = value;
10623
+ }
10624
+ return obj;
10625
+ }
10626
+ module.exports = dotenvParse;
10627
+ });
10628
+
10661
10629
  // ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/parseEnvironmentFromDotenvKey.js
10662
10630
  var require_parseEnvironmentFromDotenvKey = __commonJS((exports, module) => {
10663
10631
  function parseEnvironmentFromDotenvKey(dotenvKey) {
@@ -10782,7 +10750,7 @@ var require_proKeypair = __commonJS((exports, module) => {
10782
10750
  // ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/smartDotenvPublicKey.js
10783
10751
  var require_smartDotenvPublicKey = __commonJS((exports, module) => {
10784
10752
  var fsx = require_fsx();
10785
- var dotenv = require_main();
10753
+ var dotenvParse = require_dotenvParse();
10786
10754
  var guessPublicKeyName = require_guessPublicKeyName();
10787
10755
  function searchProcessEnv(publicKeyName) {
10788
10756
  if (process.env[publicKeyName] && process.env[publicKeyName].length > 0) {
@@ -10792,7 +10760,7 @@ var require_smartDotenvPublicKey = __commonJS((exports, module) => {
10792
10760
  function searchEnvFile(publicKeyName, envFilepath) {
10793
10761
  if (fsx.existsSync(envFilepath)) {
10794
10762
  const keysSrc = fsx.readFileX(envFilepath);
10795
- const keysParsed = dotenv.parse(keysSrc);
10763
+ const keysParsed = dotenvParse(keysSrc);
10796
10764
  if (keysParsed[publicKeyName] && keysParsed[publicKeyName].length > 0) {
10797
10765
  return keysParsed[publicKeyName];
10798
10766
  }
@@ -10818,9 +10786,9 @@ var require_smartDotenvPublicKey = __commonJS((exports, module) => {
10818
10786
  var require_smartDotenvPrivateKey = __commonJS((exports, module) => {
10819
10787
  var fsx = require_fsx();
10820
10788
  var path3 = __require("path");
10821
- var dotenv = require_main();
10822
10789
  var PUBLIC_KEY_SCHEMA = "DOTENV_PUBLIC_KEY";
10823
10790
  var PRIVATE_KEY_SCHEMA = "DOTENV_PRIVATE_KEY";
10791
+ var dotenvParse = require_dotenvParse();
10824
10792
  var guessPrivateKeyName = require_guessPrivateKeyName();
10825
10793
  function searchProcessEnv(privateKeyName) {
10826
10794
  if (process.env[privateKeyName] && process.env[privateKeyName].length > 0) {
@@ -10834,7 +10802,7 @@ var require_smartDotenvPrivateKey = __commonJS((exports, module) => {
10834
10802
  }
10835
10803
  if (fsx.existsSync(keysFilepath)) {
10836
10804
  const keysSrc = fsx.readFileX(keysFilepath);
10837
- const keysParsed = dotenv.parse(keysSrc);
10805
+ const keysParsed = dotenvParse(keysSrc);
10838
10806
  if (keysParsed[privateKeyName] && keysParsed[privateKeyName].length > 0) {
10839
10807
  return keysParsed[privateKeyName];
10840
10808
  }
@@ -10845,7 +10813,7 @@ var require_smartDotenvPrivateKey = __commonJS((exports, module) => {
10845
10813
  return null;
10846
10814
  }
10847
10815
  const envSrc = fsx.readFileX(envFilepath);
10848
- const envParsed = dotenv.parse(envSrc);
10816
+ const envParsed = dotenvParse(envSrc);
10849
10817
  let publicKeyName;
10850
10818
  for (const keyName of Object.keys(envParsed)) {
10851
10819
  if (keyName === PUBLIC_KEY_SCHEMA || keyName.startsWith(PUBLIC_KEY_SCHEMA)) {
@@ -11009,13 +10977,13 @@ var require_determineEnvs = __commonJS((exports, module) => {
11009
10977
  var require_run = __commonJS((exports, module) => {
11010
10978
  var fsx = require_fsx();
11011
10979
  var path3 = __require("path");
11012
- var dotenv = require_main();
11013
10980
  var TYPE_ENV = "env";
11014
10981
  var TYPE_ENV_FILE = "envFile";
11015
10982
  var TYPE_ENV_VAULT_FILE = "envVaultFile";
11016
10983
  var decrypt = require_decrypt();
11017
10984
  var Parse = require_parse2();
11018
10985
  var Errors = require_errors();
10986
+ var dotenvParse = require_dotenvParse();
11019
10987
  var parseEnvironmentFromDotenvKey = require_parseEnvironmentFromDotenvKey();
11020
10988
  var detectEncoding = require_detectEncoding();
11021
10989
  var findPrivateKey = require_findPrivateKey();
@@ -11159,7 +11127,7 @@ var require_run = __commonJS((exports, module) => {
11159
11127
  }
11160
11128
  _parsedVault(filepath) {
11161
11129
  const src = fsx.readFileX(filepath);
11162
- return dotenv.parse(src);
11130
+ return dotenvParse(src);
11163
11131
  }
11164
11132
  _decrypted(dotenvKey, parsedVault) {
11165
11133
  const environment = parseEnvironmentFromDotenvKey(dotenvKey);
@@ -11232,14 +11200,14 @@ var require_escapeDollarSigns = __commonJS((exports, module) => {
11232
11200
 
11233
11201
  // ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/replace.js
11234
11202
  var require_replace = __commonJS((exports, module) => {
11235
- var dotenv = require_main();
11236
11203
  var quotes = require_quotes();
11204
+ var dotenvParse = require_dotenvParse();
11237
11205
  var escapeForRegex = require_escapeForRegex();
11238
11206
  var escapeDollarSigns = require_escapeDollarSigns();
11239
11207
  function replace(src, key, replaceValue) {
11240
11208
  let output;
11241
11209
  let newPart = "";
11242
- const parsed = dotenv.parse(src);
11210
+ const parsed = dotenvParse(src, true);
11243
11211
  const _quotes = quotes(src);
11244
11212
  if (Object.prototype.hasOwnProperty.call(parsed, key)) {
11245
11213
  const quote = _quotes[key];
@@ -11317,7 +11285,6 @@ var require_isEncrypted = __commonJS((exports, module) => {
11317
11285
  var require_sets = __commonJS((exports, module) => {
11318
11286
  var fsx = require_fsx();
11319
11287
  var path3 = __require("path");
11320
- var dotenv = require_main();
11321
11288
  var TYPE_ENV_FILE = "envFile";
11322
11289
  var Errors = require_errors();
11323
11290
  var guessPrivateKeyName = require_guessPrivateKeyName();
@@ -11325,6 +11292,7 @@ var require_sets = __commonJS((exports, module) => {
11325
11292
  var encryptValue = require_encryptValue();
11326
11293
  var decryptKeyValue = require_decryptKeyValue();
11327
11294
  var replace = require_replace();
11295
+ var dotenvParse = require_dotenvParse();
11328
11296
  var detectEncoding = require_detectEncoding();
11329
11297
  var determineEnvs = require_determineEnvs();
11330
11298
  var findPrivateKey = require_findPrivateKey();
@@ -11370,7 +11338,7 @@ var require_sets = __commonJS((exports, module) => {
11370
11338
  try {
11371
11339
  const encoding = this._detectEncoding(filepath);
11372
11340
  let envSrc = fsx.readFileX(filepath, { encoding });
11373
- const envParsed = dotenv.parse(envSrc);
11341
+ const envParsed = dotenvParse(envSrc);
11374
11342
  row.originalValue = envParsed[row.key] || null;
11375
11343
  const wasPlainText = !isEncrypted(row.originalValue);
11376
11344
  this.readableFilepaths.add(envFilepath);
@@ -11530,10 +11498,10 @@ var require_findEnvFiles = __commonJS((exports, module) => {
11530
11498
  var require_genexample = __commonJS((exports, module) => {
11531
11499
  var fsx = require_fsx();
11532
11500
  var path3 = __require("path");
11533
- var dotenv = require_main();
11534
11501
  var Errors = require_errors();
11535
11502
  var findEnvFiles = require_findEnvFiles();
11536
11503
  var replace = require_replace();
11504
+ var dotenvParse = require_dotenvParse();
11537
11505
 
11538
11506
  class Genexample {
11539
11507
  constructor(directory = ".", envFile) {
@@ -11567,7 +11535,7 @@ var require_genexample = __commonJS((exports, module) => {
11567
11535
  throw error;
11568
11536
  }
11569
11537
  let src = fsx.readFileX(filepath);
11570
- const parsed = dotenv.parse(src);
11538
+ const parsed = dotenvParse(src);
11571
11539
  for (const key in parsed) {
11572
11540
  keys.add(key);
11573
11541
  src = replace(src, key, "");
@@ -11582,7 +11550,7 @@ ${src}`;
11582
11550
  }
11583
11551
  } else {
11584
11552
  exampleSrc = fsx.readFileX(this.exampleFilepath);
11585
- const parsed = dotenv.parse(exampleSrc);
11553
+ const parsed = dotenvParse(exampleSrc);
11586
11554
  for (const key of [...keys]) {
11587
11555
  if (key in parsed) {
11588
11556
  preExisted[key] = parsed[key];
@@ -11921,7 +11889,7 @@ var require_balanced_match = __commonJS((exports, module) => {
11921
11889
  }
11922
11890
  });
11923
11891
 
11924
- // ../../node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js
11892
+ // ../../node_modules/brace-expansion/index.js
11925
11893
  var require_brace_expansion = __commonJS((exports, module) => {
11926
11894
  var balanced = require_balanced_match();
11927
11895
  module.exports = expandTop;
@@ -14408,7 +14376,7 @@ var require_lib3 = __commonJS((exports, module) => {
14408
14376
  module.exports = GitHost;
14409
14377
  });
14410
14378
 
14411
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
14379
+ // ../../node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
14412
14380
  var require_assert_valid_pattern = __commonJS((exports) => {
14413
14381
  Object.defineProperty(exports, "__esModule", { value: true });
14414
14382
  exports.assertValidPattern = undefined;
@@ -14424,7 +14392,7 @@ var require_assert_valid_pattern = __commonJS((exports) => {
14424
14392
  exports.assertValidPattern = assertValidPattern2;
14425
14393
  });
14426
14394
 
14427
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js
14395
+ // ../../node_modules/minimatch/dist/commonjs/brace-expressions.js
14428
14396
  var require_brace_expressions = __commonJS((exports) => {
14429
14397
  Object.defineProperty(exports, "__esModule", { value: true });
14430
14398
  exports.parseClass = undefined;
@@ -14539,7 +14507,7 @@ var require_brace_expressions = __commonJS((exports) => {
14539
14507
  exports.parseClass = parseClass2;
14540
14508
  });
14541
14509
 
14542
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js
14510
+ // ../../node_modules/minimatch/dist/commonjs/unescape.js
14543
14511
  var require_unescape = __commonJS((exports) => {
14544
14512
  Object.defineProperty(exports, "__esModule", { value: true });
14545
14513
  exports.unescape = undefined;
@@ -14549,7 +14517,7 @@ var require_unescape = __commonJS((exports) => {
14549
14517
  exports.unescape = unescape3;
14550
14518
  });
14551
14519
 
14552
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js
14520
+ // ../../node_modules/minimatch/dist/commonjs/ast.js
14553
14521
  var require_ast = __commonJS((exports) => {
14554
14522
  Object.defineProperty(exports, "__esModule", { value: true });
14555
14523
  exports.AST = undefined;
@@ -14954,7 +14922,7 @@ var require_ast = __commonJS((exports) => {
14954
14922
  exports.AST = AST2;
14955
14923
  });
14956
14924
 
14957
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js
14925
+ // ../../node_modules/minimatch/dist/commonjs/escape.js
14958
14926
  var require_escape = __commonJS((exports) => {
14959
14927
  Object.defineProperty(exports, "__esModule", { value: true });
14960
14928
  exports.escape = undefined;
@@ -14964,7 +14932,7 @@ var require_escape = __commonJS((exports) => {
14964
14932
  exports.escape = escape2;
14965
14933
  });
14966
14934
 
14967
- // ../../node_modules/glob/node_modules/minimatch/dist/commonjs/index.js
14935
+ // ../../node_modules/minimatch/dist/commonjs/index.js
14968
14936
  var require_commonjs2 = __commonJS((exports) => {
14969
14937
  var __importDefault = exports && exports.__importDefault || function(mod) {
14970
14938
  return mod && mod.__esModule ? mod : { default: mod };
@@ -19645,7 +19613,7 @@ var require_lib4 = __commonJS((exports, module) => {
19645
19613
  var rRel = new RegExp(`^\\.${rSlash.source}`);
19646
19614
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
19647
19615
  var getPathInfo = (cmd, {
19648
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.7jU4tKSgKF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19616
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.zSzX5MI673:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19649
19617
  pathExt: optPathExt = process.env.PATHEXT,
19650
19618
  delimiter: optDelimiter = delimiter
19651
19619
  }) => {
@@ -19849,7 +19817,7 @@ var require_lib5 = __commonJS((exports, module) => {
19849
19817
  let pathToInitial;
19850
19818
  try {
19851
19819
  pathToInitial = which.sync(initialCmd, {
19852
- path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.7jU4tKSgKF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19820
+ path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.zSzX5MI673:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
19853
19821
  pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
19854
19822
  }).toLowerCase();
19855
19823
  } catch (err) {
@@ -20566,7 +20534,7 @@ var require_lib6 = __commonJS((exports, module) => {
20566
20534
  var rRel = new RegExp(`^\\.${rSlash.source}`);
20567
20535
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
20568
20536
  var getPathInfo = (cmd, {
20569
- path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.7jU4tKSgKF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
20537
+ path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.zSzX5MI673:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
20570
20538
  pathExt: optPathExt = process.env.PATHEXT,
20571
20539
  delimiter: optDelimiter = delimiter
20572
20540
  }) => {
@@ -23193,13 +23161,13 @@ var require_is = __commonJS((exports, module) => {
23193
23161
  // ../../node_modules/@npmcli/git/lib/find.js
23194
23162
  var require_find = __commonJS((exports, module) => {
23195
23163
  var is = require_is();
23196
- var { dirname } = __require("path");
23164
+ var { dirname: dirname2 } = __require("path");
23197
23165
  module.exports = async ({ cwd = process.cwd(), root } = {}) => {
23198
23166
  while (true) {
23199
23167
  if (await is({ cwd })) {
23200
23168
  return cwd;
23201
23169
  }
23202
- const next = dirname(cwd);
23170
+ const next = dirname2(cwd);
23203
23171
  if (cwd === root || cwd === next) {
23204
23172
  return null;
23205
23173
  }
@@ -222109,7 +222077,7 @@ Could not find "${i7}"`);
222109
222077
  cwd: t7
222110
222078
  });
222111
222079
  }(function getPkgManager() {
222112
- var e10 = "bun/1.1.40 npm/? node/v22.6.0 linux x64";
222080
+ var e10 = "bun/1.1.42 npm/? node/v22.6.0 linux x64";
222113
222081
  if (e10.startsWith("yarn")) {
222114
222082
  return "yarn";
222115
222083
  }
@@ -223340,7 +223308,7 @@ ${Bt.cyan(Yt)}
223340
223308
  code: "ENOENT"
223341
223309
  }), getPathInfo = (e9, t7) => {
223342
223310
  var r6 = t7.colon || or;
223343
- var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.7jU4tKSgKF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
223311
+ var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.zSzX5MI673:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
223344
223312
  var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
223345
223313
  var a5 = nr ? n6.split(r6) : [""];
223346
223314
  if (nr) {
@@ -226477,7 +226445,7 @@ ${whileRunning(e9)}`;
226477
226445
  };
226478
226446
  ni = Object.assign(async function _main() {
226479
226447
  var e9 = new Cli({
226480
- binaryVersion: "0.8.6-pr09488183",
226448
+ binaryVersion: "0.8.6-pr359fad91",
226481
226449
  binaryLabel: "gql.tada CLI",
226482
226450
  binaryName: "gql.tada"
226483
226451
  });
@@ -228233,7 +228201,7 @@ var init_mjs = __esm(() => {
228233
228201
  } = signalExitWrap(processOk2(process6) ? new SignalExit2(process6) : new SignalExitFallback2));
228234
228202
  });
228235
228203
 
228236
- // ../../node_modules/@inquirer/core/node_modules/ansi-escapes/index.js
228204
+ // ../../node_modules/ansi-escapes/index.js
228237
228205
  var require_ansi_escapes = __commonJS((exports, module) => {
228238
228206
  var ansiEscapes = exports;
228239
228207
  exports.default = ansiEscapes;
@@ -228351,242 +228319,6 @@ var require_ansi_escapes = __commonJS((exports, module) => {
228351
228319
  };
228352
228320
  });
228353
228321
 
228354
- // ../../node_modules/@inquirer/select/node_modules/ansi-escapes/index.js
228355
- var require_ansi_escapes2 = __commonJS((exports, module) => {
228356
- var ansiEscapes2 = exports;
228357
- exports.default = ansiEscapes2;
228358
- var ESC = "\x1B[";
228359
- var OSC = "\x1B]";
228360
- var BEL = "\x07";
228361
- var SEP = ";";
228362
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
228363
- ansiEscapes2.cursorTo = (x5, y4) => {
228364
- if (typeof x5 !== "number") {
228365
- throw new TypeError("The `x` argument is required");
228366
- }
228367
- if (typeof y4 !== "number") {
228368
- return ESC + (x5 + 1) + "G";
228369
- }
228370
- return ESC + (y4 + 1) + ";" + (x5 + 1) + "H";
228371
- };
228372
- ansiEscapes2.cursorMove = (x5, y4) => {
228373
- if (typeof x5 !== "number") {
228374
- throw new TypeError("The `x` argument is required");
228375
- }
228376
- let ret = "";
228377
- if (x5 < 0) {
228378
- ret += ESC + -x5 + "D";
228379
- } else if (x5 > 0) {
228380
- ret += ESC + x5 + "C";
228381
- }
228382
- if (y4 < 0) {
228383
- ret += ESC + -y4 + "A";
228384
- } else if (y4 > 0) {
228385
- ret += ESC + y4 + "B";
228386
- }
228387
- return ret;
228388
- };
228389
- ansiEscapes2.cursorUp = (count = 1) => ESC + count + "A";
228390
- ansiEscapes2.cursorDown = (count = 1) => ESC + count + "B";
228391
- ansiEscapes2.cursorForward = (count = 1) => ESC + count + "C";
228392
- ansiEscapes2.cursorBackward = (count = 1) => ESC + count + "D";
228393
- ansiEscapes2.cursorLeft = ESC + "G";
228394
- ansiEscapes2.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
228395
- ansiEscapes2.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
228396
- ansiEscapes2.cursorGetPosition = ESC + "6n";
228397
- ansiEscapes2.cursorNextLine = ESC + "E";
228398
- ansiEscapes2.cursorPrevLine = ESC + "F";
228399
- ansiEscapes2.cursorHide = ESC + "?25l";
228400
- ansiEscapes2.cursorShow = ESC + "?25h";
228401
- ansiEscapes2.eraseLines = (count) => {
228402
- let clear = "";
228403
- for (let i6 = 0;i6 < count; i6++) {
228404
- clear += ansiEscapes2.eraseLine + (i6 < count - 1 ? ansiEscapes2.cursorUp() : "");
228405
- }
228406
- if (count) {
228407
- clear += ansiEscapes2.cursorLeft;
228408
- }
228409
- return clear;
228410
- };
228411
- ansiEscapes2.eraseEndLine = ESC + "K";
228412
- ansiEscapes2.eraseStartLine = ESC + "1K";
228413
- ansiEscapes2.eraseLine = ESC + "2K";
228414
- ansiEscapes2.eraseDown = ESC + "J";
228415
- ansiEscapes2.eraseUp = ESC + "1J";
228416
- ansiEscapes2.eraseScreen = ESC + "2J";
228417
- ansiEscapes2.scrollUp = ESC + "S";
228418
- ansiEscapes2.scrollDown = ESC + "T";
228419
- ansiEscapes2.clearScreen = "\x1Bc";
228420
- ansiEscapes2.clearTerminal = process.platform === "win32" ? `${ansiEscapes2.eraseScreen}${ESC}0f` : `${ansiEscapes2.eraseScreen}${ESC}3J${ESC}H`;
228421
- ansiEscapes2.beep = BEL;
228422
- ansiEscapes2.link = (text2, url) => {
228423
- return [
228424
- OSC,
228425
- "8",
228426
- SEP,
228427
- SEP,
228428
- url,
228429
- BEL,
228430
- text2,
228431
- OSC,
228432
- "8",
228433
- SEP,
228434
- SEP,
228435
- BEL
228436
- ].join("");
228437
- };
228438
- ansiEscapes2.image = (buffer, options = {}) => {
228439
- let ret = `${OSC}1337;File=inline=1`;
228440
- if (options.width) {
228441
- ret += `;width=${options.width}`;
228442
- }
228443
- if (options.height) {
228444
- ret += `;height=${options.height}`;
228445
- }
228446
- if (options.preserveAspectRatio === false) {
228447
- ret += ";preserveAspectRatio=0";
228448
- }
228449
- return ret + ":" + buffer.toString("base64") + BEL;
228450
- };
228451
- ansiEscapes2.iTerm = {
228452
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
228453
- annotation: (message, options = {}) => {
228454
- let ret = `${OSC}1337;`;
228455
- const hasX = typeof options.x !== "undefined";
228456
- const hasY = typeof options.y !== "undefined";
228457
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
228458
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
228459
- }
228460
- message = message.replace(/\|/g, "");
228461
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
228462
- if (options.length > 0) {
228463
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
228464
- } else {
228465
- ret += message;
228466
- }
228467
- return ret + BEL;
228468
- }
228469
- };
228470
- });
228471
-
228472
- // ../../node_modules/@inquirer/password/node_modules/ansi-escapes/index.js
228473
- var require_ansi_escapes3 = __commonJS((exports, module) => {
228474
- var ansiEscapes3 = exports;
228475
- exports.default = ansiEscapes3;
228476
- var ESC = "\x1B[";
228477
- var OSC = "\x1B]";
228478
- var BEL = "\x07";
228479
- var SEP = ";";
228480
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
228481
- ansiEscapes3.cursorTo = (x5, y4) => {
228482
- if (typeof x5 !== "number") {
228483
- throw new TypeError("The `x` argument is required");
228484
- }
228485
- if (typeof y4 !== "number") {
228486
- return ESC + (x5 + 1) + "G";
228487
- }
228488
- return ESC + (y4 + 1) + ";" + (x5 + 1) + "H";
228489
- };
228490
- ansiEscapes3.cursorMove = (x5, y4) => {
228491
- if (typeof x5 !== "number") {
228492
- throw new TypeError("The `x` argument is required");
228493
- }
228494
- let ret = "";
228495
- if (x5 < 0) {
228496
- ret += ESC + -x5 + "D";
228497
- } else if (x5 > 0) {
228498
- ret += ESC + x5 + "C";
228499
- }
228500
- if (y4 < 0) {
228501
- ret += ESC + -y4 + "A";
228502
- } else if (y4 > 0) {
228503
- ret += ESC + y4 + "B";
228504
- }
228505
- return ret;
228506
- };
228507
- ansiEscapes3.cursorUp = (count = 1) => ESC + count + "A";
228508
- ansiEscapes3.cursorDown = (count = 1) => ESC + count + "B";
228509
- ansiEscapes3.cursorForward = (count = 1) => ESC + count + "C";
228510
- ansiEscapes3.cursorBackward = (count = 1) => ESC + count + "D";
228511
- ansiEscapes3.cursorLeft = ESC + "G";
228512
- ansiEscapes3.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
228513
- ansiEscapes3.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
228514
- ansiEscapes3.cursorGetPosition = ESC + "6n";
228515
- ansiEscapes3.cursorNextLine = ESC + "E";
228516
- ansiEscapes3.cursorPrevLine = ESC + "F";
228517
- ansiEscapes3.cursorHide = ESC + "?25l";
228518
- ansiEscapes3.cursorShow = ESC + "?25h";
228519
- ansiEscapes3.eraseLines = (count) => {
228520
- let clear = "";
228521
- for (let i6 = 0;i6 < count; i6++) {
228522
- clear += ansiEscapes3.eraseLine + (i6 < count - 1 ? ansiEscapes3.cursorUp() : "");
228523
- }
228524
- if (count) {
228525
- clear += ansiEscapes3.cursorLeft;
228526
- }
228527
- return clear;
228528
- };
228529
- ansiEscapes3.eraseEndLine = ESC + "K";
228530
- ansiEscapes3.eraseStartLine = ESC + "1K";
228531
- ansiEscapes3.eraseLine = ESC + "2K";
228532
- ansiEscapes3.eraseDown = ESC + "J";
228533
- ansiEscapes3.eraseUp = ESC + "1J";
228534
- ansiEscapes3.eraseScreen = ESC + "2J";
228535
- ansiEscapes3.scrollUp = ESC + "S";
228536
- ansiEscapes3.scrollDown = ESC + "T";
228537
- ansiEscapes3.clearScreen = "\x1Bc";
228538
- ansiEscapes3.clearTerminal = process.platform === "win32" ? `${ansiEscapes3.eraseScreen}${ESC}0f` : `${ansiEscapes3.eraseScreen}${ESC}3J${ESC}H`;
228539
- ansiEscapes3.beep = BEL;
228540
- ansiEscapes3.link = (text2, url) => {
228541
- return [
228542
- OSC,
228543
- "8",
228544
- SEP,
228545
- SEP,
228546
- url,
228547
- BEL,
228548
- text2,
228549
- OSC,
228550
- "8",
228551
- SEP,
228552
- SEP,
228553
- BEL
228554
- ].join("");
228555
- };
228556
- ansiEscapes3.image = (buffer, options = {}) => {
228557
- let ret = `${OSC}1337;File=inline=1`;
228558
- if (options.width) {
228559
- ret += `;width=${options.width}`;
228560
- }
228561
- if (options.height) {
228562
- ret += `;height=${options.height}`;
228563
- }
228564
- if (options.preserveAspectRatio === false) {
228565
- ret += ";preserveAspectRatio=0";
228566
- }
228567
- return ret + ":" + buffer.toString("base64") + BEL;
228568
- };
228569
- ansiEscapes3.iTerm = {
228570
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
228571
- annotation: (message, options = {}) => {
228572
- let ret = `${OSC}1337;`;
228573
- const hasX = typeof options.x !== "undefined";
228574
- const hasY = typeof options.y !== "undefined";
228575
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
228576
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
228577
- }
228578
- message = message.replace(/\|/g, "");
228579
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
228580
- if (options.length > 0) {
228581
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
228582
- } else {
228583
- ret += message;
228584
- }
228585
- return ret + BEL;
228586
- }
228587
- };
228588
- });
228589
-
228590
228322
  // ../../node_modules/tar/lib/high-level-opt.js
228591
228323
  var require_high_level_opt = __commonJS((exports, module) => {
228592
228324
  var argmap = new Map([
@@ -233700,11 +233432,11 @@ var require_path_arg = __commonJS((exports, module) => {
233700
233432
 
233701
233433
  // ../../node_modules/mkdirp/lib/find-made.js
233702
233434
  var require_find_made = __commonJS((exports, module) => {
233703
- var { dirname: dirname4 } = __require("path");
233435
+ var { dirname: dirname7 } = __require("path");
233704
233436
  var findMade = (opts, parent, path5 = undefined) => {
233705
233437
  if (path5 === parent)
233706
233438
  return Promise.resolve();
233707
- return opts.statAsync(parent).then((st2) => st2.isDirectory() ? path5 : undefined, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname4(parent), parent) : undefined);
233439
+ return opts.statAsync(parent).then((st2) => st2.isDirectory() ? path5 : undefined, (er2) => er2.code === "ENOENT" ? findMade(opts, dirname7(parent), parent) : undefined);
233708
233440
  };
233709
233441
  var findMadeSync = (opts, parent, path5 = undefined) => {
233710
233442
  if (path5 === parent)
@@ -233712,7 +233444,7 @@ var require_find_made = __commonJS((exports, module) => {
233712
233444
  try {
233713
233445
  return opts.statSync(parent).isDirectory() ? path5 : undefined;
233714
233446
  } catch (er2) {
233715
- return er2.code === "ENOENT" ? findMadeSync(opts, dirname4(parent), parent) : undefined;
233447
+ return er2.code === "ENOENT" ? findMadeSync(opts, dirname7(parent), parent) : undefined;
233716
233448
  }
233717
233449
  };
233718
233450
  module.exports = { findMade, findMadeSync };
@@ -233720,10 +233452,10 @@ var require_find_made = __commonJS((exports, module) => {
233720
233452
 
233721
233453
  // ../../node_modules/mkdirp/lib/mkdirp-manual.js
233722
233454
  var require_mkdirp_manual = __commonJS((exports, module) => {
233723
- var { dirname: dirname4 } = __require("path");
233455
+ var { dirname: dirname7 } = __require("path");
233724
233456
  var mkdirpManual = (path5, opts, made) => {
233725
233457
  opts.recursive = false;
233726
- const parent = dirname4(path5);
233458
+ const parent = dirname7(path5);
233727
233459
  if (parent === path5) {
233728
233460
  return opts.mkdirAsync(path5, opts).catch((er2) => {
233729
233461
  if (er2.code !== "EISDIR")
@@ -233746,7 +233478,7 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
233746
233478
  });
233747
233479
  };
233748
233480
  var mkdirpManualSync = (path5, opts, made) => {
233749
- const parent = dirname4(path5);
233481
+ const parent = dirname7(path5);
233750
233482
  opts.recursive = false;
233751
233483
  if (parent === path5) {
233752
233484
  try {
@@ -233779,12 +233511,12 @@ var require_mkdirp_manual = __commonJS((exports, module) => {
233779
233511
 
233780
233512
  // ../../node_modules/mkdirp/lib/mkdirp-native.js
233781
233513
  var require_mkdirp_native = __commonJS((exports, module) => {
233782
- var { dirname: dirname4 } = __require("path");
233514
+ var { dirname: dirname7 } = __require("path");
233783
233515
  var { findMade, findMadeSync } = require_find_made();
233784
233516
  var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
233785
233517
  var mkdirpNative = (path5, opts) => {
233786
233518
  opts.recursive = true;
233787
- const parent = dirname4(path5);
233519
+ const parent = dirname7(path5);
233788
233520
  if (parent === path5)
233789
233521
  return opts.mkdirAsync(path5, opts);
233790
233522
  return findMade(opts, path5).then((made) => opts.mkdirAsync(path5, opts).then(() => made).catch((er2) => {
@@ -233796,7 +233528,7 @@ var require_mkdirp_native = __commonJS((exports, module) => {
233796
233528
  };
233797
233529
  var mkdirpNativeSync = (path5, opts) => {
233798
233530
  opts.recursive = true;
233799
- const parent = dirname4(path5);
233531
+ const parent = dirname7(path5);
233800
233532
  if (parent === path5)
233801
233533
  return opts.mkdirSync(path5, opts);
233802
233534
  const made = findMadeSync(opts, path5);
@@ -235213,7 +234945,7 @@ var require_which2 = __commonJS((exports, module) => {
235213
234945
  const colon = opt2.colon || COLON;
235214
234946
  const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
235215
234947
  ...isWindows2 ? [process.cwd()] : [],
235216
- ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.7jU4tKSgKF:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
234948
+ ...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.zSzX5MI673:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
235217
234949
  ];
235218
234950
  const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
235219
234951
  const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
@@ -251281,14 +251013,15 @@ ${ctx.indent}`;
251281
251013
 
251282
251014
  // ../../node_modules/yaml/dist/log.js
251283
251015
  var require_log = __commonJS((exports) => {
251016
+ var node_process = __require("node:process");
251284
251017
  function debug3(logLevel, ...messages) {
251285
251018
  if (logLevel === "debug")
251286
251019
  console.log(...messages);
251287
251020
  }
251288
251021
  function warn(logLevel, warning) {
251289
251022
  if (logLevel === "debug" || logLevel === "warn") {
251290
- if (typeof process !== "undefined" && process.emitWarning)
251291
- process.emitWarning(warning);
251023
+ if (typeof node_process.emitWarning === "function")
251024
+ node_process.emitWarning(warning);
251292
251025
  else
251293
251026
  console.warn(warning);
251294
251027
  }
@@ -252105,6 +251838,7 @@ var require_schema3 = __commonJS((exports) => {
252105
251838
 
252106
251839
  // ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
252107
251840
  var require_binary = __commonJS((exports) => {
251841
+ var node_buffer = __require("node:buffer");
252108
251842
  var Scalar = require_Scalar();
252109
251843
  var stringifyString = require_stringifyString();
252110
251844
  var binary = {
@@ -252112,8 +251846,8 @@ var require_binary = __commonJS((exports) => {
252112
251846
  default: false,
252113
251847
  tag: "tag:yaml.org,2002:binary",
252114
251848
  resolve(src, onError) {
252115
- if (typeof Buffer === "function") {
252116
- return Buffer.from(src, "base64");
251849
+ if (typeof node_buffer.Buffer === "function") {
251850
+ return node_buffer.Buffer.from(src, "base64");
252117
251851
  } else if (typeof atob === "function") {
252118
251852
  const str = atob(src.replace(/[\n\r]/g, ""));
252119
251853
  const buffer = new Uint8Array(str.length);
@@ -252128,8 +251862,8 @@ var require_binary = __commonJS((exports) => {
252128
251862
  stringify({ comment, type: type4, value: value4 }, ctx, onComment, onChompKeep) {
252129
251863
  const buf = value4;
252130
251864
  let str;
252131
- if (typeof Buffer === "function") {
252132
- str = buf instanceof Buffer ? buf.toString("base64") : Buffer.from(buf.buffer).toString("base64");
251865
+ if (typeof node_buffer.Buffer === "function") {
251866
+ str = buf instanceof node_buffer.Buffer ? buf.toString("base64") : node_buffer.Buffer.from(buf.buffer).toString("base64");
252133
251867
  } else if (typeof btoa === "function") {
252134
251868
  let s8 = "";
252135
251869
  for (let i6 = 0;i6 < buf.length; ++i6)
@@ -253213,7 +252947,7 @@ var require_resolve_props = __commonJS((exports) => {
253213
252947
  if (atNewline) {
253214
252948
  if (comment)
253215
252949
  comment += token.source;
253216
- else
252950
+ else if (!found || indicator !== "seq-item-ind")
253217
252951
  spaceBefore = true;
253218
252952
  } else
253219
252953
  commentSep += token.source;
@@ -254464,6 +254198,7 @@ var require_compose_doc = __commonJS((exports) => {
254464
254198
 
254465
254199
  // ../../node_modules/yaml/dist/compose/composer.js
254466
254200
  var require_composer = __commonJS((exports) => {
254201
+ var node_process = __require("node:process");
254467
254202
  var directives4 = require_directives2();
254468
254203
  var Document = require_Document();
254469
254204
  var errors2 = require_errors3();
@@ -254571,7 +254306,7 @@ ${cb}` : comment;
254571
254306
  yield* this.end(forceDoc, endOffset);
254572
254307
  }
254573
254308
  *next(token) {
254574
- if (process.env.LOG_STREAM)
254309
+ if (node_process.env.LOG_STREAM)
254575
254310
  console.dir(token, { depth: null });
254576
254311
  switch (token.type) {
254577
254312
  case "directive":
@@ -255674,6 +255409,7 @@ var require_line_counter = __commonJS((exports) => {
255674
255409
 
255675
255410
  // ../../node_modules/yaml/dist/parse/parser.js
255676
255411
  var require_parser2 = __commonJS((exports) => {
255412
+ var node_process = __require("node:process");
255677
255413
  var cst = require_cst();
255678
255414
  var lexer = require_lexer2();
255679
255415
  function includesToken(list2, type4) {
@@ -255783,7 +255519,7 @@ var require_parser2 = __commonJS((exports) => {
255783
255519
  }
255784
255520
  *next(source) {
255785
255521
  this.source = source;
255786
- if (process.env.LOG_TOKENS)
255522
+ if (node_process.env.LOG_TOKENS)
255787
255523
  console.log("|", cst.prettyToken(source));
255788
255524
  if (this.atScalar) {
255789
255525
  this.atScalar = false;
@@ -257033,7 +256769,7 @@ ${error.stack}`));
257033
256769
  var package_default = {
257034
256770
  name: "@settlemint/sdk-cli",
257035
256771
  description: "SettleMint SDK, integrate SettleMint into your application with ease.",
257036
- version: "0.8.6-pr09488183",
256772
+ version: "0.8.6-pr359fad91",
257037
256773
  type: "module",
257038
256774
  private: false,
257039
256775
  license: "FSL-1.1-MIT",
@@ -257069,7 +256805,8 @@ var package_default = {
257069
256805
  "test:coverage": "bun test --coverage",
257070
256806
  typecheck: "tsc --noEmit",
257071
256807
  "publish-npm": "bun publish --tag ${TAG} --access public || exit 0",
257072
- docs: "bun scripts/create-docs.ts"
256808
+ docs: "bun scripts/create-docs.ts",
256809
+ prepack: "cp ../../LICENSE ."
257073
256810
  },
257074
256811
  dependencies: {
257075
256812
  hardhat: "2.22.17"
@@ -257085,8 +256822,8 @@ var package_default = {
257085
256822
  "@inquirer/input": "4.1.1",
257086
256823
  "@inquirer/password": "4.0.4",
257087
256824
  "@inquirer/select": "4.0.4",
257088
- "@settlemint/sdk-js": "0.8.6-pr09488183",
257089
- "@settlemint/sdk-utils": "0.8.6-pr09488183",
256825
+ "@settlemint/sdk-js": "0.8.6-pr359fad91",
256826
+ "@settlemint/sdk-utils": "0.8.6-pr359fad91",
257090
256827
  "get-tsconfig": "4.8.1",
257091
256828
  giget: "1.2.3"
257092
256829
  },
@@ -257101,8 +256838,7 @@ import { mkdir, writeFile } from "node:fs/promises";
257101
256838
  import { join } from "node:path";
257102
256839
 
257103
256840
  // ../utils/dist/filesystem.mjs
257104
- import { stat } from "node:fs/promises";
257105
- import { dirname as dirname2 } from "node:path";
256841
+ import { dirname } from "node:path";
257106
256842
 
257107
256843
  // ../../node_modules/find-up/index.js
257108
256844
  import path2 from "node:path";
@@ -257334,6 +257070,14 @@ async function findUp(name, options = {}) {
257334
257070
  }
257335
257071
 
257336
257072
  // ../utils/dist/filesystem.mjs
257073
+ import { stat } from "node:fs/promises";
257074
+ async function projectRoot() {
257075
+ const packageJsonPath = await findUp("package.json");
257076
+ if (!packageJsonPath) {
257077
+ throw new Error("Unable to find project root (no package.json found)");
257078
+ }
257079
+ return dirname(packageJsonPath);
257080
+ }
257337
257081
  async function exists(path3) {
257338
257082
  try {
257339
257083
  await stat(path3);
@@ -257342,13 +257086,6 @@ async function exists(path3) {
257342
257086
  return false;
257343
257087
  }
257344
257088
  }
257345
- async function projectRoot() {
257346
- const packageJsonPath = await findUp("package.json");
257347
- if (!packageJsonPath) {
257348
- throw new Error("Unable to find project root (no package.json found)");
257349
- }
257350
- return dirname2(packageJsonPath);
257351
- }
257352
257089
 
257353
257090
  // src/commands/codegen/write-template.ts
257354
257091
  async function writeTemplate(template, directory, filename) {
@@ -261373,8 +261110,8 @@ var z = /* @__PURE__ */ Object.freeze({
261373
261110
 
261374
261111
  // ../utils/dist/index.mjs
261375
261112
  var import_dotenvx = __toESM(require_main2(), 1);
261376
- import { stat as stat2 } from "node:fs/promises";
261377
261113
  var import_dotenvx2 = __toESM(require_main2(), 1);
261114
+ import { stat as stat2 } from "node:fs/promises";
261378
261115
 
261379
261116
  // ../../node_modules/deepmerge-ts/dist/index.mjs
261380
261117
  var actions = {
@@ -261621,10 +261358,10 @@ function mergeOthers(values, utils, meta) {
261621
261358
  return result;
261622
261359
  }
261623
261360
 
261624
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
261361
+ // ../../node_modules/minimatch/dist/esm/index.js
261625
261362
  var import_brace_expansion = __toESM(require_brace_expansion(), 1);
261626
261363
 
261627
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
261364
+ // ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
261628
261365
  var MAX_PATTERN_LENGTH = 1024 * 64;
261629
261366
  var assertValidPattern = (pattern) => {
261630
261367
  if (typeof pattern !== "string") {
@@ -261635,7 +261372,7 @@ var assertValidPattern = (pattern) => {
261635
261372
  }
261636
261373
  };
261637
261374
 
261638
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
261375
+ // ../../node_modules/minimatch/dist/esm/brace-expressions.js
261639
261376
  var posixClasses = {
261640
261377
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
261641
261378
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -261745,12 +261482,12 @@ var parseClass = (glob, position) => {
261745
261482
  return [comb, uflag, endPos - pos, true];
261746
261483
  };
261747
261484
 
261748
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
261485
+ // ../../node_modules/minimatch/dist/esm/unescape.js
261749
261486
  var unescape2 = (s, { windowsPathsNoEscape = false } = {}) => {
261750
261487
  return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
261751
261488
  };
261752
261489
 
261753
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
261490
+ // ../../node_modules/minimatch/dist/esm/ast.js
261754
261491
  var types = new Set(["!", "?", "+", "*", "@"]);
261755
261492
  var isExtglobType = (c) => types.has(c);
261756
261493
  var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
@@ -262148,12 +261885,12 @@ class AST {
262148
261885
  }
262149
261886
  }
262150
261887
 
262151
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
261888
+ // ../../node_modules/minimatch/dist/esm/escape.js
262152
261889
  var escape = (s, { windowsPathsNoEscape = false } = {}) => {
262153
261890
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
262154
261891
  };
262155
261892
 
262156
- // ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
261893
+ // ../../node_modules/minimatch/dist/esm/index.js
262157
261894
  var minimatch = (p, pattern, options = {}) => {
262158
261895
  assertValidPattern(pattern);
262159
261896
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -270005,7 +269742,7 @@ class Separator {
270005
269742
  }
270006
269743
  // ../../node_modules/@inquirer/select/dist/esm/index.js
270007
269744
  var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
270008
- var import_ansi_escapes2 = __toESM(require_ansi_escapes2(), 1);
269745
+ var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
270009
269746
  var selectTheme = {
270010
269747
  icon: { cursor: esm_default.pointer },
270011
269748
  style: {
@@ -270175,10 +269912,10 @@ async function subgraphNamePrompt(env2) {
270175
269912
  import { join as join5 } from "node:path";
270176
269913
  var import_dotenvx3 = __toESM(require_main2(), 1);
270177
269914
  import { readFile as readFile4, writeFile as writeFile5 } from "node:fs/promises";
270178
- import { dirname as dirname32, join as join22 } from "node:path";
270179
- import { stat as stat7 } from "node:fs/promises";
270180
- import { dirname as dirname22 } from "node:path";
269915
+ import { dirname as dirname22, join as join22 } from "node:path";
269916
+ import { dirname as dirname5 } from "node:path";
270181
269917
  var import_dotenvx4 = __toESM(require_main2(), 1);
269918
+ import { stat as stat7 } from "node:fs/promises";
270182
269919
  var maskTokens3 = (output) => {
270183
269920
  return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
270184
269921
  };
@@ -270291,6 +270028,13 @@ async function loadEnvironmentEnv2(validateEnv, prod, path5 = process.cwd()) {
270291
270028
  return {};
270292
270029
  }
270293
270030
  }
270031
+ async function projectRoot2() {
270032
+ const packageJsonPath = await findUp("package.json");
270033
+ if (!packageJsonPath) {
270034
+ throw new Error("Unable to find project root (no package.json found)");
270035
+ }
270036
+ return dirname5(packageJsonPath);
270037
+ }
270294
270038
  async function exists3(path5) {
270295
270039
  try {
270296
270040
  await stat7(path5);
@@ -270299,13 +270043,6 @@ async function exists3(path5) {
270299
270043
  return false;
270300
270044
  }
270301
270045
  }
270302
- async function projectRoot2() {
270303
- const packageJsonPath = await findUp("package.json");
270304
- if (!packageJsonPath) {
270305
- throw new Error("Unable to find project root (no package.json found)");
270306
- }
270307
- return dirname22(packageJsonPath);
270308
- }
270309
270046
  async function findMonoRepoRoot(startDir) {
270310
270047
  let currentDir = startDir;
270311
270048
  while (currentDir !== "/") {
@@ -270316,7 +270053,7 @@ async function findMonoRepoRoot(startDir) {
270316
270053
  return currentDir;
270317
270054
  }
270318
270055
  }
270319
- const parentDir = dirname32(currentDir);
270056
+ const parentDir = dirname22(currentDir);
270320
270057
  if (parentDir === currentDir) {
270321
270058
  break;
270322
270059
  }
@@ -270594,9 +270331,31 @@ export const { client } = createServerMinioClient({
270594
270331
  await writeTemplate(clientTemplate, "/lib/settlemint", "minio.ts");
270595
270332
  }
270596
270333
 
270334
+ // src/commands/platform/utils/create-examples.ts
270335
+ function createExamples(examples) {
270336
+ return `
270337
+ Examples:
270338
+
270339
+ ${examples.map(({ description, command, commandPrefix }) => {
270340
+ return ` # ${description}
270341
+ $ ${commandPrefix ?? ""}settlemint ${command}`;
270342
+ }).join(`
270343
+
270344
+ `)}`;
270345
+ }
270346
+
270597
270347
  // src/commands/codegen.ts
270598
270348
  function codegenCommand() {
270599
- return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").description("Generate GraphQL and REST types and queries").action(async ({ prod, thegraphSubgraphNames }) => {
270349
+ return new Command("codegen").option("--prod", "Connect to your production environment").option("--thegraph-subgraph-names <subgraph-names...>", "The name(s) of the TheGraph subgraph(s) to generate (skip if you want to generate all)").description("Generate GraphQL and REST types and queries").usage(createExamples([
270350
+ {
270351
+ description: "Generate GraphQL types and queries for your dApp",
270352
+ command: "codegen"
270353
+ },
270354
+ {
270355
+ description: "Generate GraphQL types and queries for specific TheGraph subgraphs",
270356
+ command: "codegen --thegraph-subgraph-names subgraph1 subgraph2"
270357
+ }
270358
+ ])).action(async ({ prod, thegraphSubgraphNames }) => {
270600
270359
  intro("Generating GraphQL types and queries for your dApp");
270601
270360
  const env2 = await loadEnv2(true, !!prod);
270602
270361
  if (!Array.isArray(thegraphSubgraphNames)) {
@@ -271516,7 +271275,7 @@ var addCredits = graphql(`
271516
271275
  addCredits(workspaceId: $workspaceId, amount: $amount)
271517
271276
  }
271518
271277
  `);
271519
- var workspaceList = (gqlClient, options) => {
271278
+ var workspaceList = (gqlClient) => {
271520
271279
  return async () => {
271521
271280
  const { workspaces } = await gqlClient.request(getWorkspacesAndApplications);
271522
271281
  const allWorkspaces = workspaces.reduce((acc, workspace) => {
@@ -271529,19 +271288,19 @@ var workspaceList = (gqlClient, options) => {
271529
271288
  return allWorkspaces.sort((a8, b4) => a8.name.localeCompare(b4.name));
271530
271289
  };
271531
271290
  };
271532
- var workspaceRead = (gqlClient, options) => {
271291
+ var workspaceRead = (gqlClient) => {
271533
271292
  return async (workspaceUniqueName) => {
271534
271293
  const { workspaceByUniqueName } = await gqlClient.request(getWorkspace, { uniqueName: workspaceUniqueName });
271535
271294
  return workspaceByUniqueName;
271536
271295
  };
271537
271296
  };
271538
- var workspaceCreate = (gqlClient, options) => {
271297
+ var workspaceCreate = (gqlClient) => {
271539
271298
  return async (createWorkspaceArgs) => {
271540
271299
  const { createWorkspace: workspace } = await gqlClient.request(createWorkspace, createWorkspaceArgs);
271541
271300
  return workspace;
271542
271301
  };
271543
271302
  };
271544
- var workspaceDelete = (gqlClient, options) => {
271303
+ var workspaceDelete = (gqlClient) => {
271545
271304
  return async (workspaceUniqueName) => {
271546
271305
  const { deleteWorkspaceByUniqueName: workspace } = await gqlClient.request(deleteWorkspace, {
271547
271306
  uniqueName: workspaceUniqueName
@@ -271549,7 +271308,7 @@ var workspaceDelete = (gqlClient, options) => {
271549
271308
  return workspace;
271550
271309
  };
271551
271310
  };
271552
- var workspaceAddCredits = (gqlClient, options) => {
271311
+ var workspaceAddCredits = (gqlClient) => {
271553
271312
  return async (workspaceId, amount) => {
271554
271313
  const id = validate3(IdSchema3, workspaceId);
271555
271314
  if (amount <= 0) {
@@ -271600,7 +271359,7 @@ var deleteApplication = graphql(`
271600
271359
  }
271601
271360
  }
271602
271361
  `, [ApplicationFragment]);
271603
- var applicationList = (gqlClient, options) => {
271362
+ var applicationList = (gqlClient) => {
271604
271363
  return async (workspaceUniqueName) => {
271605
271364
  const {
271606
271365
  workspaceByUniqueName: { applications }
@@ -271608,7 +271367,7 @@ var applicationList = (gqlClient, options) => {
271608
271367
  return applications;
271609
271368
  };
271610
271369
  };
271611
- var applicationRead = (gqlClient, options) => {
271370
+ var applicationRead = (gqlClient) => {
271612
271371
  return async (applicationUniqueName) => {
271613
271372
  const { applicationByUniqueName: application } = await gqlClient.request(readApplication, {
271614
271373
  applicationUniqueName
@@ -271616,10 +271375,10 @@ var applicationRead = (gqlClient, options) => {
271616
271375
  return application;
271617
271376
  };
271618
271377
  };
271619
- var applicationCreate = (gqlClient, options) => {
271378
+ var applicationCreate = (gqlClient) => {
271620
271379
  return async (args) => {
271621
271380
  const { workspaceUniqueName, ...otherArgs } = args;
271622
- const workspace = await workspaceRead(gqlClient, options)(workspaceUniqueName);
271381
+ const workspace = await workspaceRead(gqlClient)(workspaceUniqueName);
271623
271382
  const { createApplication: application } = await gqlClient.request(createApplication, {
271624
271383
  ...otherArgs,
271625
271384
  workspaceId: workspace.id
@@ -271627,7 +271386,7 @@ var applicationCreate = (gqlClient, options) => {
271627
271386
  return application;
271628
271387
  };
271629
271388
  };
271630
- var applicationDelete = (gqlClient, options) => {
271389
+ var applicationDelete = (gqlClient) => {
271631
271390
  return async (applicationUniqueName) => {
271632
271391
  const { deleteApplicationByUniqueName: application } = await gqlClient.request(deleteApplication, {
271633
271392
  uniqueName: applicationUniqueName
@@ -271670,10 +271429,10 @@ var createApplicationAccessToken = graphql(`
271670
271429
  }
271671
271430
  }
271672
271431
  `, []);
271673
- var applicationAccessTokenCreate = (gqlClient, options) => {
271432
+ var applicationAccessTokenCreate = (gqlClient) => {
271674
271433
  return async (args) => {
271675
271434
  const { applicationUniqueName, ...otherArgs } = args;
271676
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
271435
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
271677
271436
  const { createApplicationAccessToken: applicationAccessToken } = await gqlClient.request(createApplicationAccessToken, {
271678
271437
  ...otherArgs,
271679
271438
  applicationId: application.id
@@ -271813,7 +271572,7 @@ var restartBlockchainNetwork = graphql(`
271813
271572
  }
271814
271573
  }
271815
271574
  `, [BlockchainNetworkFragment]);
271816
- var blockchainNetworkList = (gqlClient, options) => {
271575
+ var blockchainNetworkList = (gqlClient) => {
271817
271576
  return async (applicationUniqueName) => {
271818
271577
  const {
271819
271578
  blockchainNetworksByUniqueName: { items }
@@ -271821,7 +271580,7 @@ var blockchainNetworkList = (gqlClient, options) => {
271821
271580
  return items;
271822
271581
  };
271823
271582
  };
271824
- var blockchainNetworkRead = (gqlClient, options) => {
271583
+ var blockchainNetworkRead = (gqlClient) => {
271825
271584
  return async (blockchainNetworkUniqueName) => {
271826
271585
  const { blockchainNetworkByUniqueName } = await gqlClient.request(getBlockchainNetwork, {
271827
271586
  uniqueName: blockchainNetworkUniqueName
@@ -271829,10 +271588,10 @@ var blockchainNetworkRead = (gqlClient, options) => {
271829
271588
  return blockchainNetworkByUniqueName;
271830
271589
  };
271831
271590
  };
271832
- var blockchainNetworkCreate = (gqlClient, options) => {
271591
+ var blockchainNetworkCreate = (gqlClient) => {
271833
271592
  return async (args) => {
271834
271593
  const { applicationUniqueName, ...otherArgs } = args;
271835
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
271594
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
271836
271595
  const blockchainNetworkArgs = setNetworkDefaults(otherArgs);
271837
271596
  const { createBlockchainNetwork: blockchainNetwork } = await gqlClient.request(createBlockchainNetwork, {
271838
271597
  ...blockchainNetworkArgs,
@@ -271841,7 +271600,7 @@ var blockchainNetworkCreate = (gqlClient, options) => {
271841
271600
  return blockchainNetwork;
271842
271601
  };
271843
271602
  };
271844
- var blockchainNetworkDelete = (gqlClient, options) => {
271603
+ var blockchainNetworkDelete = (gqlClient) => {
271845
271604
  return async (blockchainNetworkUniqueName) => {
271846
271605
  const { deleteBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(deleteBlockchainNetwork, {
271847
271606
  uniqueName: blockchainNetworkUniqueName
@@ -271849,7 +271608,7 @@ var blockchainNetworkDelete = (gqlClient, options) => {
271849
271608
  return blockchainNetwork;
271850
271609
  };
271851
271610
  };
271852
- var blockchainNetworkRestart = (gqlClient, _options) => async (blockchainNetworkUniqueName) => {
271611
+ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName) => {
271853
271612
  const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
271854
271613
  return blockchainNetwork;
271855
271614
  };
@@ -271938,7 +271697,7 @@ var restartBlockchainNode = graphql(`
271938
271697
  }
271939
271698
  }
271940
271699
  `, [BlockchainNodeFragment]);
271941
- var blockchainNodeList = (gqlClient, options) => {
271700
+ var blockchainNodeList = (gqlClient) => {
271942
271701
  return async (applicationUniqueName) => {
271943
271702
  const {
271944
271703
  blockchainNodesByUniqueName: { items }
@@ -271946,7 +271705,7 @@ var blockchainNodeList = (gqlClient, options) => {
271946
271705
  return items;
271947
271706
  };
271948
271707
  };
271949
- var blockchainNodeRead = (gqlClient, options) => {
271708
+ var blockchainNodeRead = (gqlClient) => {
271950
271709
  return async (blockchainNodeUniqueName) => {
271951
271710
  const { blockchainNodeByUniqueName } = await gqlClient.request(getBlockchainNode, {
271952
271711
  uniqueName: blockchainNodeUniqueName
@@ -271954,12 +271713,12 @@ var blockchainNodeRead = (gqlClient, options) => {
271954
271713
  return blockchainNodeByUniqueName;
271955
271714
  };
271956
271715
  };
271957
- var blockchainNodeCreate = (gqlClient, options) => {
271716
+ var blockchainNodeCreate = (gqlClient) => {
271958
271717
  return async (args) => {
271959
271718
  const { applicationUniqueName, blockchainNetworkUniqueName, ...otherArgs } = args;
271960
271719
  const [application, blockchainNetwork] = await Promise.all([
271961
- applicationRead(gqlClient, options)(applicationUniqueName),
271962
- blockchainNetworkRead(gqlClient, options)(blockchainNetworkUniqueName)
271720
+ applicationRead(gqlClient)(applicationUniqueName),
271721
+ blockchainNetworkRead(gqlClient)(blockchainNetworkUniqueName)
271963
271722
  ]);
271964
271723
  const { createBlockchainNode: blockchainNode } = await gqlClient.request(createBlockchainNode, {
271965
271724
  ...otherArgs,
@@ -271969,7 +271728,7 @@ var blockchainNodeCreate = (gqlClient, options) => {
271969
271728
  return blockchainNode;
271970
271729
  };
271971
271730
  };
271972
- var blockchainNodeRestart = (gqlClient, _options) => async (blockchainNodeUniqueName) => {
271731
+ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
271973
271732
  const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, {
271974
271733
  uniqueName: blockchainNodeUniqueName
271975
271734
  });
@@ -272050,7 +271809,7 @@ var restartCustomDeployment = graphql(`
272050
271809
  }
272051
271810
  }
272052
271811
  `, [CustomDeploymentFragment]);
272053
- var customdeploymentList = (gqlClient, options) => {
271812
+ var customdeploymentList = (gqlClient) => {
272054
271813
  return async (applicationUniqueName) => {
272055
271814
  const {
272056
271815
  customDeploymentsByUniqueName: { items }
@@ -272058,7 +271817,7 @@ var customdeploymentList = (gqlClient, options) => {
272058
271817
  return items;
272059
271818
  };
272060
271819
  };
272061
- var customdeploymentRead = (gqlClient, options) => {
271820
+ var customdeploymentRead = (gqlClient) => {
272062
271821
  return async (customDeploymentUniqueName) => {
272063
271822
  const { customDeploymentByUniqueName: customDeployment } = await gqlClient.request(getCustomDeployment, {
272064
271823
  uniqueName: customDeploymentUniqueName
@@ -272066,7 +271825,7 @@ var customdeploymentRead = (gqlClient, options) => {
272066
271825
  return customDeployment;
272067
271826
  };
272068
271827
  };
272069
- var customdeploymentUpdate = (gqlClient, options) => {
271828
+ var customdeploymentUpdate = (gqlClient) => {
272070
271829
  return async (customDeploymentUniqueName, imageTag) => {
272071
271830
  const { editCustomDeploymentByUniqueName: cd } = await gqlClient.request(editCustomDeployment, {
272072
271831
  uniqueName: customDeploymentUniqueName,
@@ -272075,10 +271834,10 @@ var customdeploymentUpdate = (gqlClient, options) => {
272075
271834
  return cd;
272076
271835
  };
272077
271836
  };
272078
- var customdeploymentCreate = (gqlClient, options) => {
271837
+ var customdeploymentCreate = (gqlClient) => {
272079
271838
  return async (args) => {
272080
271839
  const { applicationUniqueName, ...otherArgs } = args;
272081
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
271840
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
272082
271841
  const { createCustomDeployment: customDeployment } = await gqlClient.request(createCustomDeployment, {
272083
271842
  ...otherArgs,
272084
271843
  applicationId: application.id
@@ -272086,7 +271845,7 @@ var customdeploymentCreate = (gqlClient, options) => {
272086
271845
  return customDeployment;
272087
271846
  };
272088
271847
  };
272089
- var customDeploymentRestart = (gqlClient, _options) => async (customDeploymentUniqueName) => {
271848
+ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName) => {
272090
271849
  const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, {
272091
271850
  uniqueName: customDeploymentUniqueName
272092
271851
  });
@@ -272097,7 +271856,7 @@ var getFoundryEnvConfig = graphql(`
272097
271856
  foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
272098
271857
  }
272099
271858
  `);
272100
- var getEnv = (gqlClient, _options) => {
271859
+ var getEnv = (gqlClient) => {
272101
271860
  return async (blockchainNodeUniqueName) => {
272102
271861
  const { foundryEnvConfigByUniqueName } = await gqlClient.request(getFoundryEnvConfig, { blockchainNodeUniqueName });
272103
271862
  return foundryEnvConfigByUniqueName;
@@ -272116,7 +271875,7 @@ var getLoadBalancer = graphql(`
272116
271875
  }
272117
271876
  }
272118
271877
  `, [LoadBalancerFragment]);
272119
- var loadBalancerRead = (gqlClient, options) => {
271878
+ var loadBalancerRead = (gqlClient) => {
272120
271879
  return async (loadBalancerUniqueName) => {
272121
271880
  const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, {
272122
271881
  uniqueName: loadBalancerUniqueName
@@ -272194,7 +271953,7 @@ var restartInsights = graphql(`
272194
271953
  }
272195
271954
  }
272196
271955
  `, [InsightsFragment]);
272197
- var insightsList = (gqlClient, options) => {
271956
+ var insightsList = (gqlClient) => {
272198
271957
  return async (applicationUniqueName) => {
272199
271958
  const {
272200
271959
  insightsListByUniqueName: { items }
@@ -272202,19 +271961,19 @@ var insightsList = (gqlClient, options) => {
272202
271961
  return items;
272203
271962
  };
272204
271963
  };
272205
- var insightsRead = (gqlClient, options) => {
271964
+ var insightsRead = (gqlClient) => {
272206
271965
  return async (insightsUniqueName) => {
272207
271966
  const { insightsByUniqueName: insights } = await gqlClient.request(getInsight, { uniqueName: insightsUniqueName });
272208
271967
  return insights;
272209
271968
  };
272210
271969
  };
272211
- var insightsCreate = (gqlClient, options) => {
271970
+ var insightsCreate = (gqlClient) => {
272212
271971
  return async (args) => {
272213
271972
  const { applicationUniqueName, blockchainNodeUniqueName, loadBalancerUniqueName, ...otherArgs } = args;
272214
271973
  const [application, blockchainNode, loadBalancer] = await Promise.all([
272215
- applicationRead(gqlClient, options)(applicationUniqueName),
272216
- blockchainNodeUniqueName ? blockchainNodeRead(gqlClient, options)(blockchainNodeUniqueName) : Promise.resolve(undefined),
272217
- loadBalancerUniqueName ? loadBalancerRead(gqlClient, options)(loadBalancerUniqueName) : Promise.resolve(undefined)
271974
+ applicationRead(gqlClient)(applicationUniqueName),
271975
+ blockchainNodeUniqueName ? blockchainNodeRead(gqlClient)(blockchainNodeUniqueName) : Promise.resolve(undefined),
271976
+ loadBalancerUniqueName ? loadBalancerRead(gqlClient)(loadBalancerUniqueName) : Promise.resolve(undefined)
272218
271977
  ]);
272219
271978
  const { createInsights: insights } = await gqlClient.request(createInsights, {
272220
271979
  ...otherArgs,
@@ -272225,7 +271984,7 @@ var insightsCreate = (gqlClient, options) => {
272225
271984
  return insights;
272226
271985
  };
272227
271986
  };
272228
- var insightsRestart = (gqlClient, _options) => async (insightsUniqueName) => {
271987
+ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
272229
271988
  const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, {
272230
271989
  uniqueName: insightsUniqueName
272231
271990
  });
@@ -272297,7 +272056,7 @@ var restartIntegrationTool = graphql(`
272297
272056
  }
272298
272057
  }
272299
272058
  `, [IntegrationFragment]);
272300
- var integrationToolList = (gqlClient, options) => {
272059
+ var integrationToolList = (gqlClient) => {
272301
272060
  return async (applicationUniqueName) => {
272302
272061
  const {
272303
272062
  integrationsByUniqueName: { items }
@@ -272305,16 +272064,16 @@ var integrationToolList = (gqlClient, options) => {
272305
272064
  return items;
272306
272065
  };
272307
272066
  };
272308
- var integrationToolRead = (gqlClient, options) => {
272067
+ var integrationToolRead = (gqlClient) => {
272309
272068
  return async (integrationUniqueName) => {
272310
272069
  const { integrationByUniqueName } = await gqlClient.request(getIntegration, { uniqueName: integrationUniqueName });
272311
272070
  return integrationByUniqueName;
272312
272071
  };
272313
272072
  };
272314
- var integrationToolCreate = (gqlClient, options) => {
272073
+ var integrationToolCreate = (gqlClient) => {
272315
272074
  return async (args) => {
272316
272075
  const { applicationUniqueName, ...otherArgs } = args;
272317
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
272076
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
272318
272077
  const { createIntegration: integration } = await gqlClient.request(createIntegration, {
272319
272078
  ...otherArgs,
272320
272079
  applicationId: application.id
@@ -272322,7 +272081,7 @@ var integrationToolCreate = (gqlClient, options) => {
272322
272081
  return integration;
272323
272082
  };
272324
272083
  };
272325
- var integrationToolRestart = (gqlClient, _options) => async (integrationUniqueName) => {
272084
+ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
272326
272085
  const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, {
272327
272086
  uniqueName: integrationUniqueName
272328
272087
  });
@@ -272394,7 +272153,7 @@ var restartStorage = graphql(`
272394
272153
  }
272395
272154
  }
272396
272155
  `, [StorageFragment]);
272397
- var storageList = (gqlClient, options) => {
272156
+ var storageList = (gqlClient) => {
272398
272157
  return async (applicationUniqueName) => {
272399
272158
  const {
272400
272159
  storagesByUniqueName: { items }
@@ -272402,16 +272161,16 @@ var storageList = (gqlClient, options) => {
272402
272161
  return items;
272403
272162
  };
272404
272163
  };
272405
- var storageRead = (gqlClient, options) => {
272164
+ var storageRead = (gqlClient) => {
272406
272165
  return async (storageUniqueName) => {
272407
272166
  const { storageByUniqueName: storage } = await gqlClient.request(getStorage, { uniqueName: storageUniqueName });
272408
272167
  return storage;
272409
272168
  };
272410
272169
  };
272411
- var storageCreate = (gqlClient, options) => {
272170
+ var storageCreate = (gqlClient) => {
272412
272171
  return async (args) => {
272413
272172
  const { applicationUniqueName, ...otherArgs } = args;
272414
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
272173
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
272415
272174
  const { createStorage: storage } = await gqlClient.request(createStorage, {
272416
272175
  ...otherArgs,
272417
272176
  applicationId: application.id
@@ -272419,7 +272178,7 @@ var storageCreate = (gqlClient, options) => {
272419
272178
  return storage;
272420
272179
  };
272421
272180
  };
272422
- var storageRestart = (gqlClient, _options) => async (storageUniqueName) => {
272181
+ var storageRestart = (gqlClient) => async (storageUniqueName) => {
272423
272182
  const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, {
272424
272183
  uniqueName: storageUniqueName
272425
272184
  });
@@ -272514,7 +272273,7 @@ var restartMiddleware = graphql(`
272514
272273
  }
272515
272274
  }
272516
272275
  `, [MiddlewareFragment]);
272517
- var middlewareList = (gqlClient, options) => {
272276
+ var middlewareList = (gqlClient) => {
272518
272277
  return async (applicationUniqueName) => {
272519
272278
  const {
272520
272279
  middlewaresByUniqueName: { items }
@@ -272522,7 +272281,7 @@ var middlewareList = (gqlClient, options) => {
272522
272281
  return items;
272523
272282
  };
272524
272283
  };
272525
- var middlewareRead = (gqlClient, options) => {
272284
+ var middlewareRead = (gqlClient) => {
272526
272285
  return async (middlewareUniqueName) => {
272527
272286
  const { middlewareByUniqueName: middleware } = await gqlClient.request(getMiddleware, {
272528
272287
  uniqueName: middlewareUniqueName
@@ -272530,14 +272289,14 @@ var middlewareRead = (gqlClient, options) => {
272530
272289
  return middleware;
272531
272290
  };
272532
272291
  };
272533
- var middlewareCreate = (gqlClient, options) => {
272292
+ var middlewareCreate = (gqlClient) => {
272534
272293
  return async (args) => {
272535
272294
  const { applicationUniqueName, blockchainNodeUniqueName, loadBalancerUniqueName, storageUniqueName, ...otherArgs } = args;
272536
272295
  const [application, blockchainNode, loadBalancer, storage] = await Promise.all([
272537
- applicationRead(gqlClient, options)(applicationUniqueName),
272538
- blockchainNodeUniqueName ? blockchainNodeRead(gqlClient, options)(blockchainNodeUniqueName) : Promise.resolve(undefined),
272539
- loadBalancerUniqueName ? loadBalancerRead(gqlClient, options)(loadBalancerUniqueName) : Promise.resolve(undefined),
272540
- storageUniqueName ? storageRead(gqlClient, options)(storageUniqueName) : Promise.resolve(undefined)
272296
+ applicationRead(gqlClient)(applicationUniqueName),
272297
+ blockchainNodeUniqueName ? blockchainNodeRead(gqlClient)(blockchainNodeUniqueName) : Promise.resolve(undefined),
272298
+ loadBalancerUniqueName ? loadBalancerRead(gqlClient)(loadBalancerUniqueName) : Promise.resolve(undefined),
272299
+ storageUniqueName ? storageRead(gqlClient)(storageUniqueName) : Promise.resolve(undefined)
272541
272300
  ]);
272542
272301
  const { createMiddleware: middleware } = await gqlClient.request(createMiddleware, {
272543
272302
  ...otherArgs,
@@ -272549,7 +272308,7 @@ var middlewareCreate = (gqlClient, options) => {
272549
272308
  return middleware;
272550
272309
  };
272551
272310
  };
272552
- var middlewareRestart = (gqlClient, _options) => async (middlewareUniqueName) => {
272311
+ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
272553
272312
  const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, {
272554
272313
  uniqueName: middlewareUniqueName
272555
272314
  });
@@ -272613,7 +272372,7 @@ var restartPrivateKey = graphql(`
272613
272372
  }
272614
272373
  }
272615
272374
  `, [PrivateKeyFragment]);
272616
- var privateKeyList = (gqlClient, options) => {
272375
+ var privateKeyList = (gqlClient) => {
272617
272376
  return async (applicationUniqueName) => {
272618
272377
  const {
272619
272378
  privateKeysByUniqueName: { items }
@@ -272621,7 +272380,7 @@ var privateKeyList = (gqlClient, options) => {
272621
272380
  return items;
272622
272381
  };
272623
272382
  };
272624
- var privatekeyRead = (gqlClient, options) => {
272383
+ var privatekeyRead = (gqlClient) => {
272625
272384
  return async (privateKeyUniqueName) => {
272626
272385
  const { privateKeyByUniqueName: privateKey } = await gqlClient.request(getPrivateKey, {
272627
272386
  uniqueName: privateKeyUniqueName
@@ -272629,11 +272388,11 @@ var privatekeyRead = (gqlClient, options) => {
272629
272388
  return privateKey;
272630
272389
  };
272631
272390
  };
272632
- var privateKeyCreate = (gqlClient, options) => {
272391
+ var privateKeyCreate = (gqlClient) => {
272633
272392
  return async (args) => {
272634
272393
  const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
272635
- const application = await applicationRead(gqlClient, options)(applicationUniqueName);
272636
- const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient, options)(uniqueName))) : [];
272394
+ const application = await applicationRead(gqlClient)(applicationUniqueName);
272395
+ const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
272637
272396
  const { createPrivateKey: privateKey } = await gqlClient.request(createPrivateKey, {
272638
272397
  ...otherArgs,
272639
272398
  applicationId: application.id,
@@ -272642,7 +272401,7 @@ var privateKeyCreate = (gqlClient, options) => {
272642
272401
  return privateKey;
272643
272402
  };
272644
272403
  };
272645
- var privateKeyRestart = (gqlClient, _options) => async (privateKeyUniqueName) => {
272404
+ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
272646
272405
  const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, {
272647
272406
  uniqueName: privateKeyUniqueName
272648
272407
  });
@@ -272687,73 +272446,73 @@ function createSettleMintClient(options) {
272687
272446
  });
272688
272447
  return {
272689
272448
  workspace: {
272690
- list: workspaceList(gqlClient, options),
272691
- read: workspaceRead(gqlClient, options),
272692
- create: workspaceCreate(gqlClient, options),
272693
- delete: workspaceDelete(gqlClient, options),
272694
- addCredits: workspaceAddCredits(gqlClient, options)
272449
+ list: workspaceList(gqlClient),
272450
+ read: workspaceRead(gqlClient),
272451
+ create: workspaceCreate(gqlClient),
272452
+ delete: workspaceDelete(gqlClient),
272453
+ addCredits: workspaceAddCredits(gqlClient)
272695
272454
  },
272696
272455
  application: {
272697
- list: applicationList(gqlClient, options),
272698
- read: applicationRead(gqlClient, options),
272699
- create: applicationCreate(gqlClient, options),
272700
- delete: applicationDelete(gqlClient, options)
272456
+ list: applicationList(gqlClient),
272457
+ read: applicationRead(gqlClient),
272458
+ create: applicationCreate(gqlClient),
272459
+ delete: applicationDelete(gqlClient)
272701
272460
  },
272702
272461
  blockchainNetwork: {
272703
- list: blockchainNetworkList(gqlClient, options),
272704
- read: blockchainNetworkRead(gqlClient, options),
272705
- create: blockchainNetworkCreate(gqlClient, options),
272706
- delete: blockchainNetworkDelete(gqlClient, options),
272707
- restart: blockchainNetworkRestart(gqlClient, options)
272462
+ list: blockchainNetworkList(gqlClient),
272463
+ read: blockchainNetworkRead(gqlClient),
272464
+ create: blockchainNetworkCreate(gqlClient),
272465
+ delete: blockchainNetworkDelete(gqlClient),
272466
+ restart: blockchainNetworkRestart(gqlClient)
272708
272467
  },
272709
272468
  blockchainNode: {
272710
- list: blockchainNodeList(gqlClient, options),
272711
- read: blockchainNodeRead(gqlClient, options),
272712
- create: blockchainNodeCreate(gqlClient, options),
272713
- restart: blockchainNodeRestart(gqlClient, options)
272469
+ list: blockchainNodeList(gqlClient),
272470
+ read: blockchainNodeRead(gqlClient),
272471
+ create: blockchainNodeCreate(gqlClient),
272472
+ restart: blockchainNodeRestart(gqlClient)
272714
272473
  },
272715
272474
  middleware: {
272716
- list: middlewareList(gqlClient, options),
272717
- read: middlewareRead(gqlClient, options),
272718
- create: middlewareCreate(gqlClient, options),
272719
- restart: middlewareRestart(gqlClient, options)
272475
+ list: middlewareList(gqlClient),
272476
+ read: middlewareRead(gqlClient),
272477
+ create: middlewareCreate(gqlClient),
272478
+ restart: middlewareRestart(gqlClient)
272720
272479
  },
272721
272480
  integrationTool: {
272722
- list: integrationToolList(gqlClient, options),
272723
- read: integrationToolRead(gqlClient, options),
272724
- create: integrationToolCreate(gqlClient, options),
272725
- restart: integrationToolRestart(gqlClient, options)
272481
+ list: integrationToolList(gqlClient),
272482
+ read: integrationToolRead(gqlClient),
272483
+ create: integrationToolCreate(gqlClient),
272484
+ restart: integrationToolRestart(gqlClient)
272726
272485
  },
272727
272486
  storage: {
272728
- list: storageList(gqlClient, options),
272729
- read: storageRead(gqlClient, options),
272730
- create: storageCreate(gqlClient, options),
272731
- restart: storageRestart(gqlClient, options)
272487
+ list: storageList(gqlClient),
272488
+ read: storageRead(gqlClient),
272489
+ create: storageCreate(gqlClient),
272490
+ restart: storageRestart(gqlClient)
272732
272491
  },
272733
272492
  privateKey: {
272734
- list: privateKeyList(gqlClient, options),
272735
- read: privatekeyRead(gqlClient, options),
272736
- create: privateKeyCreate(gqlClient, options),
272737
- restart: privateKeyRestart(gqlClient, options)
272493
+ list: privateKeyList(gqlClient),
272494
+ read: privatekeyRead(gqlClient),
272495
+ create: privateKeyCreate(gqlClient),
272496
+ restart: privateKeyRestart(gqlClient)
272738
272497
  },
272739
272498
  insights: {
272740
- list: insightsList(gqlClient, options),
272741
- read: insightsRead(gqlClient, options),
272742
- create: insightsCreate(gqlClient, options),
272743
- restart: insightsRestart(gqlClient, options)
272499
+ list: insightsList(gqlClient),
272500
+ read: insightsRead(gqlClient),
272501
+ create: insightsCreate(gqlClient),
272502
+ restart: insightsRestart(gqlClient)
272744
272503
  },
272745
272504
  customDeployment: {
272746
- list: customdeploymentList(gqlClient, options),
272747
- read: customdeploymentRead(gqlClient, options),
272748
- create: customdeploymentCreate(gqlClient, options),
272749
- update: customdeploymentUpdate(gqlClient, options),
272750
- restart: customDeploymentRestart(gqlClient, options)
272505
+ list: customdeploymentList(gqlClient),
272506
+ read: customdeploymentRead(gqlClient),
272507
+ create: customdeploymentCreate(gqlClient),
272508
+ update: customdeploymentUpdate(gqlClient),
272509
+ restart: customDeploymentRestart(gqlClient)
272751
272510
  },
272752
272511
  foundry: {
272753
- env: getEnv(gqlClient, options)
272512
+ env: getEnv(gqlClient)
272754
272513
  },
272755
272514
  applicationAccessToken: {
272756
- create: applicationAccessTokenCreate(gqlClient, options)
272515
+ create: applicationAccessTokenCreate(gqlClient)
272757
272516
  }
272758
272517
  };
272759
272518
  }
@@ -272869,7 +272628,7 @@ var esm_default4 = createPrompt((config4, done) => {
272869
272628
  });
272870
272629
 
272871
272630
  // ../../node_modules/@inquirer/password/dist/esm/index.js
272872
- var import_ansi_escapes3 = __toESM(require_ansi_escapes3(), 1);
272631
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
272873
272632
  var esm_default5 = createPrompt((config4, done) => {
272874
272633
  const { validate: validate4 = () => true } = config4;
272875
272634
  const theme = makeTheme(config4.theme);
@@ -273506,10 +273265,17 @@ async function templatePrompt(templates, argument) {
273506
273265
  // ../utils/dist/package-manager.mjs
273507
273266
  import { readdir as readdir3, rm as rm2 } from "node:fs/promises";
273508
273267
  import { resolve as resolve4 } from "node:path";
273268
+ import { dirname as dirname6 } from "node:path";
273509
273269
  import { stat as stat8 } from "node:fs/promises";
273510
- import { dirname as dirname23 } from "node:path";
273511
273270
  var import_package_json3 = __toESM(require_lib12(), 1);
273512
273271
  var import_package_json4 = __toESM(require_lib12(), 1);
273272
+ async function projectRoot3() {
273273
+ const packageJsonPath = await findUp("package.json");
273274
+ if (!packageJsonPath) {
273275
+ throw new Error("Unable to find project root (no package.json found)");
273276
+ }
273277
+ return dirname6(packageJsonPath);
273278
+ }
273513
273279
  async function exists4(path5) {
273514
273280
  try {
273515
273281
  await stat8(path5);
@@ -273518,13 +273284,6 @@ async function exists4(path5) {
273518
273284
  return false;
273519
273285
  }
273520
273286
  }
273521
- async function projectRoot3() {
273522
- const packageJsonPath = await findUp("package.json");
273523
- if (!packageJsonPath) {
273524
- throw new Error("Unable to find project root (no package.json found)");
273525
- }
273526
- return dirname23(packageJsonPath);
273527
- }
273528
273287
  var templates = [
273529
273288
  { value: "@settlemint/starterkit-asset-tokenization", label: "Asset Tokenization" }
273530
273289
  ];
@@ -273707,7 +273466,7 @@ function normalizeString(path5, allowAboveRoot) {
273707
273466
  var isAbsolute = function(p5) {
273708
273467
  return _IS_ABSOLUTE_RE.test(p5);
273709
273468
  };
273710
- var dirname6 = function(p5) {
273469
+ var dirname7 = function(p5) {
273711
273470
  const segments = normalizeWindowsPath(p5).replace(/\/$/, "").split("/").slice(0, -1);
273712
273471
  if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
273713
273472
  segments[0] += "/";
@@ -274175,7 +273934,7 @@ async function downloadTemplate(input, options = {}) {
274175
273934
  options.offline = true;
274176
273935
  }
274177
273936
  if (!options.offline) {
274178
- await mkdir4(dirname6(tarPath), { recursive: true });
273937
+ await mkdir4(dirname7(tarPath), { recursive: true });
274179
273938
  const s22 = Date.now();
274180
273939
  await download(template.tar, tarPath, {
274181
273940
  headers: {
@@ -274252,7 +274011,7 @@ async function downloadAndExtractNpmPackage(template, targetDir) {
274252
274011
 
274253
274012
  // src/commands/create.ts
274254
274013
  function createCommand2() {
274255
- return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").option("-t, --template <template>", `The template for your SettleMint project, options are ${templates.map((templates2) => templates2.value).join(", ")}`).action(async ({ projectName, template }) => {
274014
+ return new Command("create").description("Bootstrap your SettleMint project").option("-n, --project-name <name>", "The name for your SettleMint project").addOption(new Option("-t, --template <template>", "Thehe template for your SettleMint project").choices(templates.map((templates2) => templates2.value))).action(async ({ projectName, template }) => {
274256
274015
  intro("Creating a new SettleMint project");
274257
274016
  const env2 = await loadEnv2(false, false);
274258
274017
  const name2 = await namePrompt(env2, projectName);
@@ -274298,19 +274057,6 @@ async function loginSpinner(settlemint) {
274298
274057
  });
274299
274058
  }
274300
274059
 
274301
- // src/commands/platform/utils/create-examples.ts
274302
- function createExamples(examples) {
274303
- return `
274304
- Examples:
274305
-
274306
- ${examples.map(({ description, command, commandPrefix }) => {
274307
- return ` # ${description}
274308
- $ ${commandPrefix ?? ""}settlemint ${command}`;
274309
- }).join(`
274310
-
274311
- `)}`;
274312
- }
274313
-
274314
274060
  // src/commands/connect/pat.prompt.ts
274315
274061
  async function personalAccessTokenPrompt(env2, instance, accept) {
274316
274062
  const existingConfig = await getInstanceCredentials(instance);
@@ -274536,9 +274282,13 @@ function getCreateCommand({
274536
274282
  alias,
274537
274283
  examples,
274538
274284
  execute: execute2,
274539
- usePersonalAccessToken = true
274285
+ usePersonalAccessToken = true,
274286
+ requiresDeployment = true
274540
274287
  }) {
274541
- const cmd2 = new Command(sanitizeCommandName(name2)).alias(alias).description(`Create a new ${type4} in the SettleMint platform.`).usage(createExamples(examples)).argument("<name>", `The ${type4} name`).option("-a, --accept-defaults", "Accept the default values").option("-d, --default", `Save as default ${type4}`).option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded").option("--prod", "Connect to production environment");
274288
+ const cmd2 = new Command(sanitizeCommandName(name2)).alias(alias).description(`Create a new ${type4} in the SettleMint platform.`).usage(createExamples(examples)).argument("<name>", `The ${type4} name`).option("-a, --accept-defaults", "Accept the default values").option("-d, --default", `Save as default ${type4}`).option("--prod", "Connect to production environment");
274289
+ if (requiresDeployment) {
274290
+ cmd2.option("-w, --wait", "Wait until deployed").option("-r, --restart-if-timeout", "Restart if wait time is exceeded");
274291
+ }
274542
274292
  execute2(cmd2, async ({ acceptDefaults, prod, default: isDefault, wait, restartIfTimeout }, createFunction) => {
274543
274293
  intro(`Creating ${type4} in the SettleMint platform`);
274544
274294
  const autoAccept = !!acceptDefaults || is_in_ci_default;
@@ -274814,7 +274564,8 @@ function workspaceCreateCommand() {
274814
274564
  description: "Create a workspace and save as default",
274815
274565
  command: "platform create workspace my-workspace -d"
274816
274566
  }
274817
- ]
274567
+ ],
274568
+ requiresDeployment: false
274818
274569
  });
274819
274570
  }
274820
274571
 
@@ -274899,7 +274650,8 @@ function applicationAccessTokenCreateCommand() {
274899
274650
  description: "Create an application access token (shorthand)",
274900
274651
  command: "platform create aat my-token"
274901
274652
  }
274902
- ]
274653
+ ],
274654
+ requiresDeployment: false
274903
274655
  });
274904
274656
  }
274905
274657
 
@@ -274940,7 +274692,8 @@ function applicationCreateCommand() {
274940
274692
  description: "Create an application in a specific workspace",
274941
274693
  command: "platform create application my-app --workspace my-workspace"
274942
274694
  }
274943
- ]
274695
+ ],
274696
+ requiresDeployment: false
274944
274697
  });
274945
274698
  }
274946
274699
 
@@ -275214,11 +274967,14 @@ function smartContractPortalMiddlewareCreateCommand() {
275214
274967
  alias: "scp",
275215
274968
  execute: (cmd2, baseAction) => {
275216
274969
  addClusterServiceArgs(cmd2).option("--application <application>", "Application unique name").option("--load-balancer <loadBalancer>", "Load Balancer unique name (mutually exclusive with blockchain-node)").option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (mutually exclusive with load-balancer)").option("--abis <abis...>", "Path to abi file(s)").addOption(new Option("--include-predeployed-abis <includePredeployedAbis...>", "Include pre-deployed abis").choices([
275217
- "StarterKitERC20Registry",
275218
- "StarterKitERC20Factory",
275219
- "StarterKitERC20",
275220
- "StarterKitERC20DexFactory",
275221
- "StarterKitERC20Dex"
274970
+ "Bond",
274971
+ "BondFactory",
274972
+ "CryptoCurrency",
274973
+ "CryptoCurrencyFactory",
274974
+ "Equity",
274975
+ "EquityFactory",
274976
+ "StableCoin",
274977
+ "StableCoinFactory"
275222
274978
  ])).action(async (name2, {
275223
274979
  application,
275224
274980
  blockchainNode,
@@ -275535,7 +275291,7 @@ function getDeleteCommand({
275535
275291
  description: `Force deletes the specified ${type4} without confirmation`,
275536
275292
  command: `platform delete ${type4} <${type4}-unique-name> --force`
275537
275293
  }
275538
- ])).argument("<uniqueName>", `The unique name of the ${type4}, use 'default' to delete the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until destroyed").option("-f, --force", `Force delete the ${type4} without confirmation`).action(async (uniqueName, { acceptDefaults, prod, force, wait }) => {
275294
+ ])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to delete the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-f, --force", `Force delete the ${type4} without confirmation`).action(async (uniqueName, { acceptDefaults, prod, force }) => {
275539
275295
  intro2(`Deleting ${type4} in the SettleMint platform`);
275540
275296
  if (!force) {
275541
275297
  await deleteConfirmationPrompt(`this ${type4}`);
@@ -275573,9 +275329,6 @@ function getDeleteCommand({
275573
275329
  await writeEnvSpinner(!!prod, newEnv);
275574
275330
  note(`${capitalizeFirstLetter(type4)} removed as default`);
275575
275331
  }
275576
- if (wait) {
275577
- await waitForCompletion({ settlemint, type: type4, uniqueName: serviceUniqueName, action: "destroy" });
275578
- }
275579
275332
  outro(`${capitalizeFirstLetter(type4)} ${result.name} deleted successfully`);
275580
275333
  });
275581
275334
  }
@@ -275636,7 +275389,7 @@ function getRestartCommand({
275636
275389
  description: `Restarts the default ${type4} in the production environment`,
275637
275390
  command: `platform restart ${commandName}${subType ? ` ${subType}` : ""} default --prod`
275638
275391
  }
275639
- ])).argument("<uniqueName>", `The unique name of the ${type4}, use 'default' to restart the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until restarted").action(async (uniqueName, { acceptDefaults, prod, wait }) => {
275392
+ ])).argument("<unique-name>", `The unique name of the ${type4}, use 'default' to restart the default one from your .env file`).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").option("-w, --wait", "Wait until restarted").action(async (uniqueName, { acceptDefaults, prod, wait }) => {
275640
275393
  intro(`Restarting ${type4} in the SettleMint platform`);
275641
275394
  const autoAccept = !!acceptDefaults || is_in_ci_default;
275642
275395
  const env2 = await loadEnv2(false, !!prod);
@@ -275825,7 +275578,7 @@ function restartCommand() {
275825
275578
 
275826
275579
  // src/commands/platform/custom-deployments/update.ts
275827
275580
  function customDeploymentsUpdateCommand() {
275828
- return new Command("custom-deployment").alias("custom-deployments").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").action(async (tag, { uniqueName, prod, wait }) => {
275581
+ return new Command("custom-deployment").alias("cd").argument("<tag>", "The tag to update the custom deployment to").option("--unique-name <uniqueName>", "The unique name of the custom deployment to update. If not provided, will use SETTLEMINT_CUSTOM_DEPLOYMENT from env").option("--prod", "Connect to your production environment").option("--wait", "Wait for the custom deployment to be redeployed").description("Update a custom deployment in the SettleMint platform").action(async (tag, { uniqueName, prod, wait }) => {
275829
275582
  intro("Updating custom deployment in the SettleMint platform");
275830
275583
  const env2 = await loadEnv2(false, !!prod);
275831
275584
  const customDeploymentUniqueName = uniqueName ?? env2.SETTLEMINT_CUSTOM_DEPLOYMENT;
@@ -276123,7 +275876,20 @@ function mapPassthroughOptions(options, command) {
276123
275876
 
276124
275877
  // src/commands/smart-contract-set/foundry/build.ts
276125
275878
  function foundryBuildCommand() {
276126
- return new Command("build").description("Build the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275879
+ return new Command("build").description("Build the smart contracts using Foundry/forge").usage(createExamples([
275880
+ {
275881
+ description: "Build the smart contracts using Foundry",
275882
+ command: "scs foundry build"
275883
+ },
275884
+ {
275885
+ description: "Get list of possible Forge build options",
275886
+ command: "scs foundry build --help"
275887
+ },
275888
+ {
275889
+ description: "Build the smart contracts with additional Forge options",
275890
+ command: "scs foundry build --optimize --force"
275891
+ }
275892
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276127
275893
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276128
275894
  await executeCommand("forge", ["build", ...forgeOptions]);
276129
275895
  });
@@ -276131,7 +275897,20 @@ function foundryBuildCommand() {
276131
275897
 
276132
275898
  // src/commands/smart-contract-set/foundry/format.ts
276133
275899
  function foundryFormatCommand() {
276134
- return new Command("format").description("Format the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275900
+ return new Command("format").description("Format the smart contracts using Foundry/forge").usage(createExamples([
275901
+ {
275902
+ description: "Format the smart contracts using Foundry",
275903
+ command: "scs foundry format"
275904
+ },
275905
+ {
275906
+ description: "Get list of possible Forge format options",
275907
+ command: "scs foundry format --help"
275908
+ },
275909
+ {
275910
+ description: "Format the smart contracts with additional Forge options",
275911
+ command: "scs foundry format --check"
275912
+ }
275913
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276135
275914
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276136
275915
  await executeCommand("forge", ["fmt", ...forgeOptions]);
276137
275916
  note("Smart contract set formatted successfully!");
@@ -276140,7 +275919,20 @@ function foundryFormatCommand() {
276140
275919
 
276141
275920
  // src/commands/smart-contract-set/foundry/network.ts
276142
275921
  function foundryNetworkCommand() {
276143
- return new Command("network").description("Start a development network Foundry/anvil").helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275922
+ return new Command("network").description("Start a development network Foundry/anvil").usage(createExamples([
275923
+ {
275924
+ description: "Start a development network using Foundry",
275925
+ command: "scs foundry network"
275926
+ },
275927
+ {
275928
+ description: "Get list of possible Anvil options",
275929
+ command: "scs foundry network --help"
275930
+ },
275931
+ {
275932
+ description: "Start a development network using Foundry with a specific port",
275933
+ command: "scs foundry network --port 3000"
275934
+ }
275935
+ ])).helpOption(false).option("-h, --help", "Get list of possible anvil options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276144
275936
  const anvilOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276145
275937
  await executeCommand("anvil", anvilOptions);
276146
275938
  });
@@ -276148,7 +275940,20 @@ function foundryNetworkCommand() {
276148
275940
 
276149
275941
  // src/commands/smart-contract-set/foundry/test.ts
276150
275942
  function foundryTestCommand() {
276151
- return new Command("test").description("Test the smart contracts using Foundry/forge").helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275943
+ return new Command("test").description("Test the smart contracts using Foundry/forge").usage(createExamples([
275944
+ {
275945
+ description: "Run tests using Foundry",
275946
+ command: "scs foundry test"
275947
+ },
275948
+ {
275949
+ description: "Get list of possible Forge test options",
275950
+ command: "scs foundry test --help"
275951
+ },
275952
+ {
275953
+ description: "Run a specific test function",
275954
+ command: "scs foundry test --match-test testToken"
275955
+ }
275956
+ ])).helpOption(false).option("-h, --help", "Get list of possible forge options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276152
275957
  const forgeOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276153
275958
  await executeCommand("forge", ["test", ...forgeOptions]);
276154
275959
  });
@@ -276156,7 +275961,20 @@ function foundryTestCommand() {
276156
275961
 
276157
275962
  // src/commands/smart-contract-set/hardhat/build.ts
276158
275963
  function hardhatBuildCommand() {
276159
- return new Command("build").description("Build the smart contracts using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
275964
+ return new Command("build").description("Build the smart contracts using Hardhat").usage(createExamples([
275965
+ {
275966
+ description: "Build the smart contracts using Hardhat",
275967
+ command: "scs hardhat build"
275968
+ },
275969
+ {
275970
+ description: "Get list of possible Hardhat compile options",
275971
+ command: "scs hardhat build --help"
275972
+ },
275973
+ {
275974
+ description: "Build the smart contracts using additional options to the Hardhat compile command",
275975
+ command: "scs hardhat build --concurrency 2"
275976
+ }
275977
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat compile options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276160
275978
  const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276161
275979
  const { command, args } = await getPackageManagerExecutable();
276162
275980
  await executeCommand(command, [...args, "hardhat", "compile", ...hardhatOptions]);
@@ -276165,7 +275983,24 @@ function hardhatBuildCommand() {
276165
275983
 
276166
275984
  // src/commands/smart-contract-set/hardhat/deploy/local.ts
276167
275985
  function hardhatDeployLocalCommand() {
276168
- return new Command("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset: reset2, verify }) => {
275986
+ return new Command("local").description("Deploy the smart contracts using Hardhat/ignition to the local development network").usage(createExamples([
275987
+ {
275988
+ description: "Deploy smart contracts to local network using Hardhat/Ignition",
275989
+ command: "scs hardhat deploy local"
275990
+ },
275991
+ {
275992
+ description: "Deploy a specific Ignition module",
275993
+ command: "scs hardhat deploy local --module ignition/modules/custom.ts"
275994
+ },
275995
+ {
275996
+ description: "Deploy with a clean deployment state",
275997
+ command: "scs hardhat deploy local --reset"
275998
+ },
275999
+ {
276000
+ description: "Deploy and verify contracts on Etherscan",
276001
+ command: "scs hardhat deploy local --verify"
276002
+ }
276003
+ ])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").action(async ({ module, reset: reset2, verify }) => {
276169
276004
  const { command, args } = await getPackageManagerExecutable();
276170
276005
  await executeCommand(command, [
276171
276006
  ...args,
@@ -276244,7 +276079,32 @@ function isHardhatConfig(config4) {
276244
276079
 
276245
276080
  // src/commands/smart-contract-set/hardhat/deploy/remote.ts
276246
276081
  function hardhatDeployRemoteCommand() {
276247
- const cmd2 = new Command("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").option("--default-sender <defaultSender>", "Set the default sender for the deployment").option("--parameters <parameters>", "A relative path to a JSON file to use for the module parameters").option("--strategy <strategy>", `Set the deployment strategy to use (default: "basic")`).option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values");
276082
+ const cmd2 = new Command("remote").description("Deploy the smart contracts using Hardhat/ignition to the remote network on the platform").usage(createExamples([
276083
+ {
276084
+ description: "Deploy smart contracts to remote network using Hardhat/Ignition",
276085
+ command: "scs hardhat deploy remote"
276086
+ },
276087
+ {
276088
+ description: "Deploy a specific Ignition module to remote network",
276089
+ command: "scs hardhat deploy remote --module ignition/modules/custom.ts"
276090
+ },
276091
+ {
276092
+ description: "Deploy with a clean deployment state to remote network",
276093
+ command: "scs hardhat deploy remote --reset"
276094
+ },
276095
+ {
276096
+ description: "Deploy and verify contracts on remote network",
276097
+ command: "scs hardhat deploy remote --verify"
276098
+ },
276099
+ {
276100
+ description: "Deploy to remote network with specific blockchain node",
276101
+ command: "scs hardhat deploy remote --blockchain-node my-node"
276102
+ },
276103
+ {
276104
+ description: "Deploy to production environment",
276105
+ command: "scs hardhat deploy remote --prod"
276106
+ }
276107
+ ])).option("-m, --module <ignitionmodule>", 'The module to deploy with Ignition, defaults to "ignition/modules/main.ts"').option("--deployment-id <deploymentId>", "Set the id of the deployment").option("-r, --reset", "Wipes the existing deployment state before deploying").option("-v, --verify", "Verify the deployment on Etherscan").option("--default-sender <defaultSender>", "Set the default sender for the deployment").option("--parameters <parameters>", "A relative path to a JSON file to use for the module parameters").option("--strategy <strategy>", `Set the deployment strategy to use (default: "basic")`).option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values");
276248
276108
  cmd2.action(async ({
276249
276109
  module,
276250
276110
  reset: reset2,
@@ -276324,7 +276184,7 @@ function hardhatDeployRemoteCommand() {
276324
276184
 
276325
276185
  // src/commands/smart-contract-set/hardhat/deploy.ts
276326
276186
  function hardhatDeployCommand() {
276327
- const deploy = new Command("deploy");
276187
+ const deploy = new Command("deploy").description("Deploy the smart contracts using Hardhat");
276328
276188
  deploy.addCommand(hardhatDeployLocalCommand());
276329
276189
  deploy.addCommand(hardhatDeployRemoteCommand());
276330
276190
  return deploy;
@@ -276332,7 +276192,20 @@ function hardhatDeployCommand() {
276332
276192
 
276333
276193
  // src/commands/smart-contract-set/hardhat/network.ts
276334
276194
  function hardhatNetworkCommand() {
276335
- return new Command("network").description("Start a development network using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276195
+ return new Command("network").description("Start a development network using Hardhat").usage(createExamples([
276196
+ {
276197
+ description: "Start a development network using Hardhat",
276198
+ command: "scs hardhat network"
276199
+ },
276200
+ {
276201
+ description: "Get list of possible Hardhat node options",
276202
+ command: "scs hardhat network --help"
276203
+ },
276204
+ {
276205
+ description: "Start a development network using Hardhat with a specific port",
276206
+ command: "scs hardhat network --port 3000"
276207
+ }
276208
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat node options").passThroughOptions().allowUnknownOption(true).action(async (passThroughOptions, cmd2) => {
276336
276209
  const hardhatOptions = mapPassthroughOptions(passThroughOptions, cmd2);
276337
276210
  const { command, args } = await getPackageManagerExecutable();
276338
276211
  await executeCommand(command, [...args, "hardhat", "node", ...hardhatOptions]);
@@ -276389,7 +276262,7 @@ function hardhatScriptRemoteCommand() {
276389
276262
 
276390
276263
  // src/commands/smart-contract-set/hardhat/script.ts
276391
276264
  function hardhatScriptCommand() {
276392
- const script = new Command("script");
276265
+ const script = new Command("script").description("Run a script using Hardhat");
276393
276266
  script.addCommand(hardhatScriptRemoteCommand());
276394
276267
  script.addCommand(hardhatScriptLocalCommand());
276395
276268
  return script;
@@ -276397,7 +276270,24 @@ function hardhatScriptCommand() {
276397
276270
 
276398
276271
  // src/commands/smart-contract-set/hardhat/test.ts
276399
276272
  function hardhatTestCommand() {
276400
- return new Command("test").description("Test the smart contracts using Hardhat").helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption().action(async (options, cmd2) => {
276273
+ return new Command("test").description("Test the smart contracts using Hardhat").usage(createExamples([
276274
+ {
276275
+ description: "Run tests using Hardhat",
276276
+ command: "scs hardhat test"
276277
+ },
276278
+ {
276279
+ description: "Get list of possible Hardhat test options",
276280
+ command: "scs hardhat test --help"
276281
+ },
276282
+ {
276283
+ description: "Run tests and stop on the first test that fails",
276284
+ command: "scs hardhat test --bail"
276285
+ },
276286
+ {
276287
+ description: "Run a specific test file",
276288
+ command: "scs hardhat test test/token.test.ts"
276289
+ }
276290
+ ])).helpOption(false).option("-h, --help", "Get list of possible hardhat test options").passThroughOptions().allowUnknownOption().action(async (options, cmd2) => {
276401
276291
  const hardhatOptions = mapPassthroughOptions(options, cmd2);
276402
276292
  const { command, args } = await getPackageManagerExecutable();
276403
276293
  await executeCommand(command, [...args, "hardhat", "test", ...hardhatOptions]);
@@ -276405,7 +276295,7 @@ function hardhatTestCommand() {
276405
276295
  }
276406
276296
 
276407
276297
  // src/commands/smart-contract-set/subgraph/build.ts
276408
- import { dirname as dirname7 } from "node:path";
276298
+ import { dirname as dirname8 } from "node:path";
276409
276299
 
276410
276300
  // src/commands/smart-contract-set/subgraph/utils/setup.ts
276411
276301
  import { rm as rm4 } from "node:fs/promises";
@@ -276616,14 +276506,14 @@ function subgraphBuildCommand() {
276616
276506
  });
276617
276507
  const { command, args } = await getPackageManagerExecutable();
276618
276508
  const subgraphYamlFile = await getSubgraphYamlFile();
276619
- const cwd2 = dirname7(subgraphYamlFile);
276509
+ const cwd2 = dirname8(subgraphYamlFile);
276620
276510
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
276621
276511
  await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
276622
276512
  });
276623
276513
  }
276624
276514
 
276625
276515
  // src/commands/smart-contract-set/subgraph/codegen.ts
276626
- import { dirname as dirname8 } from "node:path";
276516
+ import { dirname as dirname9 } from "node:path";
276627
276517
  function subgraphCodegenCommand() {
276628
276518
  return new Command("codegen").description("Codegen the subgraph types").action(async () => {
276629
276519
  await subgraphSetup({
@@ -276632,13 +276522,13 @@ function subgraphCodegenCommand() {
276632
276522
  const { command, args } = await getPackageManagerExecutable();
276633
276523
  const subgraphYamlFile = await getSubgraphYamlFile();
276634
276524
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
276635
- cwd: dirname8(subgraphYamlFile)
276525
+ cwd: dirname9(subgraphYamlFile)
276636
276526
  });
276637
276527
  });
276638
276528
  }
276639
276529
 
276640
276530
  // src/commands/smart-contract-set/subgraph/deploy.ts
276641
- import { dirname as dirname9 } from "node:path";
276531
+ import { dirname as dirname10 } from "node:path";
276642
276532
 
276643
276533
  // src/commands/smart-contract-set/prompts/subgraph-name.prompt.ts
276644
276534
  async function subgraphNamePrompt2(defaultName, env2, accept, prod) {
@@ -276669,7 +276559,16 @@ async function saveSubgraphName(sanitizedSubgraphName, env2, prod) {
276669
276559
 
276670
276560
  // src/commands/smart-contract-set/subgraph/deploy.ts
276671
276561
  function subgraphDeployCommand() {
276672
- return new Command("deploy").description("Deploy the subgraph").option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").argument("[subgraphName]", "The name of the subgraph to deploy (defaults to value in .env if not provided)").action(async (subgraphName, { prod, acceptDefaults }) => {
276562
+ return new Command("deploy").description("Deploy the subgraph").usage(createExamples([
276563
+ {
276564
+ description: "Deploy the subgraph",
276565
+ command: "scs subgraph deploy"
276566
+ },
276567
+ {
276568
+ description: "Deploy the subgraph with a specific name",
276569
+ command: "scs subgraph deploy my-subgraph"
276570
+ }
276571
+ ])).option("-a, --accept-defaults", "Accept the default and previously set values").option("--prod", "Connect to your production environment").argument("[subgraph-name]", "The name of the subgraph to deploy (defaults to value in .env if not provided)").action(async (subgraphName, { prod, acceptDefaults }) => {
276673
276572
  const autoAccept = !!acceptDefaults || is_in_ci_default;
276674
276573
  const env2 = await loadEnv(false, !!prod);
276675
276574
  const instance = await instancePrompt(env2, true);
@@ -276690,7 +276589,7 @@ function subgraphDeployCommand() {
276690
276589
  await updateSpecVersion(theGraphMiddleware.specVersion);
276691
276590
  const { command, args } = await getPackageManagerExecutable();
276692
276591
  await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
276693
- cwd: dirname9(subgraphYamlFile)
276592
+ cwd: dirname10(subgraphYamlFile)
276694
276593
  });
276695
276594
  const generated = await isGenerated();
276696
276595
  if (generated) {
@@ -276739,12 +276638,12 @@ async function updateSpecVersion(specVersion) {
276739
276638
 
276740
276639
  // src/commands/smart-contract.set.ts
276741
276640
  function smartContractSetCommand() {
276742
- const foundry = new Command("foundry").alias("f").description("Foundry commands for building, testing and deploying smart contracts");
276641
+ const foundry = new Command("foundry").alias("f").description("Foundry commands for building and testing smart contracts");
276743
276642
  foundry.addCommand(foundryBuildCommand());
276744
276643
  foundry.addCommand(foundryFormatCommand());
276745
276644
  foundry.addCommand(foundryNetworkCommand());
276746
276645
  foundry.addCommand(foundryTestCommand());
276747
- const hardhat = new Command("hardhat").alias("h").description("Hardhat commands for Ethereum development environment");
276646
+ const hardhat = new Command("hardhat").alias("h").description("Hardhat commands for building, testing and deploying smart contracts");
276748
276647
  hardhat.addCommand(hardhatBuildCommand());
276749
276648
  hardhat.addCommand(hardhatDeployCommand());
276750
276649
  hardhat.addCommand(hardhatNetworkCommand());
@@ -276783,4 +276682,4 @@ function sdkCliCommand(exitOverride = undefined) {
276783
276682
  ascii();
276784
276683
  sdkCliCommand();
276785
276684
 
276786
- //# debugId=443A6BAD0B5D658A64756E2164756E21
276685
+ //# debugId=7CF4AD4A9D3FA12E64756E2164756E21