@settlemint/sdk-mcp 2.1.4-pr77f5143c → 2.1.4-pr7bd2d5c7

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.
package/dist/mcp.js CHANGED
@@ -28357,51 +28357,23 @@ var require_decrypt = __commonJS((exports, module) => {
28357
28357
  module.exports = decrypt;
28358
28358
  });
28359
28359
 
28360
- // ../../node_modules/@noble/ciphers/utils.js
28361
- var require_utils6 = __commonJS((exports) => {
28362
- /*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
28360
+ // ../../node_modules/@noble/ciphers/_assert.js
28361
+ var require__assert = __commonJS((exports) => {
28363
28362
  Object.defineProperty(exports, "__esModule", { value: true });
28364
- exports.wrapCipher = exports.Hash = exports.nextTick = exports.isLE = undefined;
28365
- exports.isBytes = isBytes;
28366
28363
  exports.abool = abool;
28367
- exports.anumber = anumber;
28368
28364
  exports.abytes = abytes;
28369
- exports.ahash = ahash;
28370
28365
  exports.aexists = aexists;
28366
+ exports.ahash = ahash;
28367
+ exports.anumber = anumber;
28371
28368
  exports.aoutput = aoutput;
28372
- exports.u8 = u8;
28373
- exports.u32 = u32;
28374
- exports.clean = clean;
28375
- exports.createView = createView;
28376
- exports.bytesToHex = bytesToHex;
28377
- exports.hexToBytes = hexToBytes;
28378
- exports.hexToNumber = hexToNumber;
28379
- exports.bytesToNumberBE = bytesToNumberBE;
28380
- exports.numberToBytesBE = numberToBytesBE;
28381
- exports.utf8ToBytes = utf8ToBytes;
28382
- exports.bytesToUtf8 = bytesToUtf8;
28383
- exports.toBytes = toBytes;
28384
- exports.overlapBytes = overlapBytes;
28385
- exports.complexOverlapBytes = complexOverlapBytes;
28386
- exports.concatBytes = concatBytes;
28387
- exports.checkOpts = checkOpts;
28388
- exports.equalBytes = equalBytes;
28389
- exports.getOutput = getOutput;
28390
- exports.setBigUint64 = setBigUint64;
28391
- exports.u64Lengths = u64Lengths;
28392
- exports.isAligned32 = isAligned32;
28393
- exports.copyBytes = copyBytes;
28394
- function isBytes(a) {
28395
- return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
28396
- }
28397
- function abool(b) {
28398
- if (typeof b !== "boolean")
28399
- throw new Error(`boolean expected, not ${b}`);
28400
- }
28369
+ exports.isBytes = isBytes;
28401
28370
  function anumber(n) {
28402
28371
  if (!Number.isSafeInteger(n) || n < 0)
28403
28372
  throw new Error("positive integer expected, got " + n);
28404
28373
  }
28374
+ function isBytes(a) {
28375
+ return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
28376
+ }
28405
28377
  function abytes(b, ...lengths) {
28406
28378
  if (!isBytes(b))
28407
28379
  throw new Error("Uint8Array expected");
@@ -28410,7 +28382,7 @@ var require_utils6 = __commonJS((exports) => {
28410
28382
  }
28411
28383
  function ahash(h) {
28412
28384
  if (typeof h !== "function" || typeof h.create !== "function")
28413
- throw new Error("Hash should be wrapped by utils.createHasher");
28385
+ throw new Error("Hash should be wrapped by utils.wrapConstructor");
28414
28386
  anumber(h.outputLen);
28415
28387
  anumber(h.blockLen);
28416
28388
  }
@@ -28427,27 +28399,49 @@ var require_utils6 = __commonJS((exports) => {
28427
28399
  throw new Error("digestInto() expects output buffer of length at least " + min);
28428
28400
  }
28429
28401
  }
28430
- function u8(arr) {
28431
- return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
28432
- }
28433
- function u32(arr) {
28434
- return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
28435
- }
28436
- function clean(...arrays) {
28437
- for (let i = 0;i < arrays.length; i++) {
28438
- arrays[i].fill(0);
28439
- }
28440
- }
28441
- function createView(arr) {
28442
- return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
28402
+ function abool(b) {
28403
+ if (typeof b !== "boolean")
28404
+ throw new Error(`boolean expected, not ${b}`);
28443
28405
  }
28444
- exports.isLE = (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
28445
- var hasHexBuiltin = /* @__PURE__ */ (() => typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function")();
28406
+ });
28407
+
28408
+ // ../../node_modules/@noble/ciphers/utils.js
28409
+ var require_utils6 = __commonJS((exports) => {
28410
+ Object.defineProperty(exports, "__esModule", { value: true });
28411
+ exports.wrapCipher = exports.Hash = exports.nextTick = exports.isLE = exports.createView = exports.u32 = exports.u8 = undefined;
28412
+ exports.bytesToHex = bytesToHex;
28413
+ exports.hexToBytes = hexToBytes;
28414
+ exports.hexToNumber = hexToNumber;
28415
+ exports.bytesToNumberBE = bytesToNumberBE;
28416
+ exports.numberToBytesBE = numberToBytesBE;
28417
+ exports.utf8ToBytes = utf8ToBytes;
28418
+ exports.bytesToUtf8 = bytesToUtf8;
28419
+ exports.toBytes = toBytes;
28420
+ exports.overlapBytes = overlapBytes;
28421
+ exports.complexOverlapBytes = complexOverlapBytes;
28422
+ exports.concatBytes = concatBytes;
28423
+ exports.checkOpts = checkOpts;
28424
+ exports.equalBytes = equalBytes;
28425
+ exports.getOutput = getOutput;
28426
+ exports.setBigUint64 = setBigUint64;
28427
+ exports.u64Lengths = u64Lengths;
28428
+ exports.isAligned32 = isAligned32;
28429
+ exports.copyBytes = copyBytes;
28430
+ exports.clean = clean;
28431
+ /*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */
28432
+ var _assert_js_1 = require__assert();
28433
+ var u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
28434
+ exports.u8 = u8;
28435
+ var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
28436
+ exports.u32 = u32;
28437
+ var createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
28438
+ exports.createView = createView;
28439
+ exports.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
28440
+ if (!exports.isLE)
28441
+ throw new Error("Non little-endian hardware is not supported");
28446
28442
  var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
28447
28443
  function bytesToHex(bytes) {
28448
- abytes(bytes);
28449
- if (hasHexBuiltin)
28450
- return bytes.toHex();
28444
+ (0, _assert_js_1.abytes)(bytes);
28451
28445
  let hex = "";
28452
28446
  for (let i = 0;i < bytes.length; i++) {
28453
28447
  hex += hexes[bytes[i]];
@@ -28467,8 +28461,6 @@ var require_utils6 = __commonJS((exports) => {
28467
28461
  function hexToBytes(hex) {
28468
28462
  if (typeof hex !== "string")
28469
28463
  throw new Error("hex string expected, got " + typeof hex);
28470
- if (hasHexBuiltin)
28471
- return Uint8Array.fromHex(hex);
28472
28464
  const hl = hex.length;
28473
28465
  const al = hl / 2;
28474
28466
  if (hl % 2)
@@ -28509,7 +28501,7 @@ var require_utils6 = __commonJS((exports) => {
28509
28501
  function toBytes(data) {
28510
28502
  if (typeof data === "string")
28511
28503
  data = utf8ToBytes(data);
28512
- else if (isBytes(data))
28504
+ else if ((0, _assert_js_1.isBytes)(data))
28513
28505
  data = copyBytes(data);
28514
28506
  else
28515
28507
  throw new Error("Uint8Array expected, got " + typeof data);
@@ -28526,7 +28518,7 @@ var require_utils6 = __commonJS((exports) => {
28526
28518
  let sum = 0;
28527
28519
  for (let i = 0;i < arrays.length; i++) {
28528
28520
  const a = arrays[i];
28529
- abytes(a);
28521
+ (0, _assert_js_1.abytes)(a);
28530
28522
  sum += a.length;
28531
28523
  }
28532
28524
  const res = new Uint8Array(sum);
@@ -28557,28 +28549,26 @@ var require_utils6 = __commonJS((exports) => {
28557
28549
  exports.Hash = Hash;
28558
28550
  var wrapCipher = (params, constructor) => {
28559
28551
  function wrappedCipher(key, ...args) {
28560
- abytes(key);
28561
- if (!exports.isLE)
28562
- throw new Error("Non little-endian hardware is not yet supported");
28552
+ (0, _assert_js_1.abytes)(key);
28563
28553
  if (params.nonceLength !== undefined) {
28564
28554
  const nonce = args[0];
28565
28555
  if (!nonce)
28566
28556
  throw new Error("nonce / iv required");
28567
28557
  if (params.varSizeNonce)
28568
- abytes(nonce);
28558
+ (0, _assert_js_1.abytes)(nonce);
28569
28559
  else
28570
- abytes(nonce, params.nonceLength);
28560
+ (0, _assert_js_1.abytes)(nonce, params.nonceLength);
28571
28561
  }
28572
28562
  const tagl = params.tagLength;
28573
28563
  if (tagl && args[1] !== undefined) {
28574
- abytes(args[1]);
28564
+ (0, _assert_js_1.abytes)(args[1]);
28575
28565
  }
28576
28566
  const cipher = constructor(key, ...args);
28577
28567
  const checkOutput = (fnLength, output) => {
28578
28568
  if (output !== undefined) {
28579
28569
  if (fnLength !== 2)
28580
28570
  throw new Error("cipher output not supported");
28581
- abytes(output);
28571
+ (0, _assert_js_1.abytes)(output);
28582
28572
  }
28583
28573
  };
28584
28574
  let called = false;
@@ -28587,12 +28577,12 @@ var require_utils6 = __commonJS((exports) => {
28587
28577
  if (called)
28588
28578
  throw new Error("cannot encrypt() twice with same key + nonce");
28589
28579
  called = true;
28590
- abytes(data);
28580
+ (0, _assert_js_1.abytes)(data);
28591
28581
  checkOutput(cipher.encrypt.length, output);
28592
28582
  return cipher.encrypt(data, output);
28593
28583
  },
28594
28584
  decrypt(data, output) {
28595
- abytes(data);
28585
+ (0, _assert_js_1.abytes)(data);
28596
28586
  if (tagl && data.length < tagl)
28597
28587
  throw new Error("invalid ciphertext length: smaller than tagLength=" + tagl);
28598
28588
  checkOutput(cipher.decrypt.length, output);
@@ -28626,12 +28616,11 @@ var require_utils6 = __commonJS((exports) => {
28626
28616
  view.setUint32(byteOffset + h, wh, isLE);
28627
28617
  view.setUint32(byteOffset + l, wl, isLE);
28628
28618
  }
28629
- function u64Lengths(dataLength, aadLength, isLE) {
28630
- abool(isLE);
28619
+ function u64Lengths(ciphertext, AAD) {
28631
28620
  const num = new Uint8Array(16);
28632
- const view = createView(num);
28633
- setBigUint64(view, 0, BigInt(aadLength), isLE);
28634
- setBigUint64(view, 8, BigInt(dataLength), isLE);
28621
+ const view = (0, exports.createView)(num);
28622
+ setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true);
28623
+ setBigUint64(view, 8, BigInt(ciphertext.length), true);
28635
28624
  return num;
28636
28625
  }
28637
28626
  function isAligned32(bytes) {
@@ -28640,6 +28629,11 @@ var require_utils6 = __commonJS((exports) => {
28640
28629
  function copyBytes(bytes) {
28641
28630
  return Uint8Array.from(bytes);
28642
28631
  }
28632
+ function clean(...arrays) {
28633
+ for (let i = 0;i < arrays.length; i++) {
28634
+ arrays[i].fill(0);
28635
+ }
28636
+ }
28643
28637
  });
28644
28638
 
28645
28639
  // ../../node_modules/eciesjs/dist/consts.js
@@ -28722,13 +28716,14 @@ var require_webcrypto = __commonJS((exports) => {
28722
28716
  exports.getWebcryptoSubtle = getWebcryptoSubtle;
28723
28717
  exports.managedNonce = managedNonce;
28724
28718
  var crypto_1 = require_cryptoNode();
28725
- var utils_ts_1 = require_utils6();
28719
+ var _assert_js_1 = require__assert();
28720
+ var utils_js_1 = require_utils6();
28726
28721
  function randomBytes(bytesLength = 32) {
28727
28722
  if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === "function") {
28728
28723
  return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength));
28729
28724
  }
28730
28725
  if (crypto_1.crypto && typeof crypto_1.crypto.randomBytes === "function") {
28731
- return Uint8Array.from(crypto_1.crypto.randomBytes(bytesLength));
28726
+ return crypto_1.crypto.randomBytes(bytesLength);
28732
28727
  }
28733
28728
  throw new Error("crypto.getRandomValues must be defined");
28734
28729
  }
@@ -28739,12 +28734,12 @@ var require_webcrypto = __commonJS((exports) => {
28739
28734
  }
28740
28735
  function managedNonce(fn) {
28741
28736
  const { nonceLength } = fn;
28742
- (0, utils_ts_1.anumber)(nonceLength);
28737
+ (0, _assert_js_1.anumber)(nonceLength);
28743
28738
  return (key, ...args) => ({
28744
28739
  encrypt(plaintext, ...argsEnc) {
28745
28740
  const nonce = randomBytes(nonceLength);
28746
28741
  const ciphertext = fn(key, nonce, ...args).encrypt(plaintext, ...argsEnc);
28747
- const out = (0, utils_ts_1.concatBytes)(nonce, ciphertext);
28742
+ const out = (0, utils_js_1.concatBytes)(nonce, ciphertext);
28748
28743
  ciphertext.fill(0);
28749
28744
  return out;
28750
28745
  },
@@ -28789,21 +28784,21 @@ var require_webcrypto = __commonJS((exports) => {
28789
28784
  }
28790
28785
  function generate(algo) {
28791
28786
  return (key, nonce, AAD) => {
28792
- (0, utils_ts_1.abytes)(key);
28793
- (0, utils_ts_1.abytes)(nonce);
28787
+ (0, _assert_js_1.abytes)(key);
28788
+ (0, _assert_js_1.abytes)(nonce);
28794
28789
  const keyParams = { name: algo, length: key.length * 8 };
28795
28790
  const cryptParams = getCryptParams(algo, nonce, AAD);
28796
28791
  let consumed = false;
28797
28792
  return {
28798
28793
  encrypt(plaintext) {
28799
- (0, utils_ts_1.abytes)(plaintext);
28794
+ (0, _assert_js_1.abytes)(plaintext);
28800
28795
  if (consumed)
28801
28796
  throw new Error("Cannot encrypt() twice with same key / nonce");
28802
28797
  consumed = true;
28803
28798
  return exports.utils.encrypt(key, keyParams, cryptParams, plaintext);
28804
28799
  },
28805
28800
  decrypt(ciphertext) {
28806
- (0, utils_ts_1.abytes)(ciphertext);
28801
+ (0, _assert_js_1.abytes)(ciphertext);
28807
28802
  return exports.utils.decrypt(key, keyParams, cryptParams, ciphertext);
28808
28803
  }
28809
28804
  };
@@ -28815,7 +28810,7 @@ var require_webcrypto = __commonJS((exports) => {
28815
28810
  });
28816
28811
 
28817
28812
  // ../../node_modules/@noble/hashes/_assert.js
28818
- var require__assert = __commonJS((exports) => {
28813
+ var require__assert2 = __commonJS((exports) => {
28819
28814
  Object.defineProperty(exports, "__esModule", { value: true });
28820
28815
  exports.anumber = anumber;
28821
28816
  exports.abytes = abytes;
@@ -28889,7 +28884,7 @@ var require_utils7 = __commonJS((exports) => {
28889
28884
  exports.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts;
28890
28885
  exports.randomBytes = randomBytes;
28891
28886
  var crypto_1 = require_cryptoNode2();
28892
- var _assert_ts_1 = require__assert();
28887
+ var _assert_ts_1 = require__assert2();
28893
28888
  function isBytes(a) {
28894
28889
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
28895
28890
  }
@@ -29055,7 +29050,7 @@ var require__md = __commonJS((exports) => {
29055
29050
  exports.setBigUint64 = setBigUint64;
29056
29051
  exports.Chi = Chi;
29057
29052
  exports.Maj = Maj;
29058
- var _assert_ts_1 = require__assert();
29053
+ var _assert_ts_1 = require__assert2();
29059
29054
  var utils_ts_1 = require_utils7();
29060
29055
  function setBigUint64(view, byteOffset, value, isLE) {
29061
29056
  if (typeof view.setBigUint64 === "function")
@@ -31578,7 +31573,7 @@ var require_ed25519 = __commonJS((exports) => {
31578
31573
  var require_hmac = __commonJS((exports) => {
31579
31574
  Object.defineProperty(exports, "__esModule", { value: true });
31580
31575
  exports.hmac = exports.HMAC = undefined;
31581
- var _assert_ts_1 = require__assert();
31576
+ var _assert_ts_1 = require__assert2();
31582
31577
  var utils_ts_1 = require_utils7();
31583
31578
 
31584
31579
  class HMAC extends utils_ts_1.Hash {
@@ -32906,7 +32901,7 @@ var require_hkdf = __commonJS((exports) => {
32906
32901
  exports.hkdf = undefined;
32907
32902
  exports.extract = extract;
32908
32903
  exports.expand = expand;
32909
- var _assert_ts_1 = require__assert();
32904
+ var _assert_ts_1 = require__assert2();
32910
32905
  var hmac_ts_1 = require_hmac();
32911
32906
  var utils_ts_1 = require_utils7();
32912
32907
  function extract(hash, ikm, salt) {
@@ -61134,7 +61129,7 @@ var {
61134
61129
  var package_default = {
61135
61130
  name: "@settlemint/sdk-mcp",
61136
61131
  description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
61137
- version: "2.1.4-pr77f5143c",
61132
+ version: "2.1.4-pr7bd2d5c7",
61138
61133
  type: "module",
61139
61134
  private: false,
61140
61135
  license: "FSL-1.1-MIT",
@@ -61176,8 +61171,8 @@ var package_default = {
61176
61171
  "@graphql-tools/load": "8.1.0",
61177
61172
  "@graphql-tools/url-loader": "8.0.31",
61178
61173
  "@modelcontextprotocol/sdk": "1.10.2",
61179
- "@settlemint/sdk-js": "2.1.4-pr77f5143c",
61180
- "@settlemint/sdk-utils": "2.1.4-pr77f5143c",
61174
+ "@settlemint/sdk-js": "2.1.4-pr7bd2d5c7",
61175
+ "@settlemint/sdk-utils": "2.1.4-pr7bd2d5c7",
61181
61176
  "@commander-js/extra-typings": "11.1.0",
61182
61177
  commander: "11.1.0",
61183
61178
  zod: "3.24.3"
@@ -66774,4 +66769,4 @@ await main().catch((error2) => {
66774
66769
  process.exit(1);
66775
66770
  });
66776
66771
 
66777
- //# debugId=3E2D395A2310AE0064756E2164756E21
66772
+ //# debugId=A0A739A7EFBF238364756E2164756E21