@dalmia/calibrate-mcp 0.0.84 → 0.0.85

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/bin/mcp-server.js CHANGED
@@ -25889,7 +25889,8 @@ var require_formats = __commonJS(function(exports, module) {
25889
25889
  var percentTwenties = /%20/g;
25890
25890
  var Format = {
25891
25891
  RFC1738: "RFC1738",
25892
- RFC3986: "RFC3986"
25892
+ RFC3986: "RFC3986",
25893
+ WHATWG: "WHATWG"
25893
25894
  };
25894
25895
  module.exports = {
25895
25896
  default: Format.RFC3986,
@@ -25899,10 +25900,14 @@ var require_formats = __commonJS(function(exports, module) {
25899
25900
  },
25900
25901
  RFC3986: function(value) {
25901
25902
  return String(value);
25903
+ },
25904
+ WHATWG: function(value) {
25905
+ return replace.call(value, percentTwenties, "+");
25902
25906
  }
25903
25907
  },
25904
25908
  RFC1738: Format.RFC1738,
25905
- RFC3986: Format.RFC3986
25909
+ RFC3986: Format.RFC3986,
25910
+ WHATWG: Format.WHATWG
25906
25911
  };
25907
25912
  });
25908
25913
 
@@ -26206,7 +26211,7 @@ var require_utils2 = __commonJS(function(exports, module) {
26206
26211
  var arr = [];
26207
26212
  for (var i = 0;i < segment.length; ++i) {
26208
26213
  var c = segment.charCodeAt(i);
26209
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
26214
+ if (c === 45 || c === 46 || c === 95 || c === 126 && format !== formats.WHATWG || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41) || format === formats.WHATWG && c === 42) {
26210
26215
  arr[arr.length] = segment.charAt(i);
26211
26216
  continue;
26212
26217
  }
@@ -26222,9 +26227,14 @@ var require_utils2 = __commonJS(function(exports, module) {
26222
26227
  arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26223
26228
  continue;
26224
26229
  }
26225
- i += 1;
26226
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
26227
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26230
+ var next = segment.charCodeAt(i + 1);
26231
+ if (c <= 56319 && next >= 56320 && next <= 57343) {
26232
+ i += 1;
26233
+ c = 65536 + ((c & 1023) << 10 | next & 1023);
26234
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26235
+ } else {
26236
+ arr[arr.length] = "%EF%BF%BD";
26237
+ }
26228
26238
  }
26229
26239
  out += arr.join("");
26230
26240
  }
@@ -26304,6 +26314,7 @@ var require_utils2 = __commonJS(function(exports, module) {
26304
26314
  markOverflow,
26305
26315
  maybeMap,
26306
26316
  merge,
26317
+ setProperty,
26307
26318
  toCoercible
26308
26319
  };
26309
26320
  });
@@ -26428,7 +26439,7 @@ var require_stringify = __commonJS(function(exports, module) {
26428
26439
  var encodedPrefix = String(prefix);
26429
26440
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
26430
26441
  if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
26431
- return adjustedPrefix + "[]";
26442
+ return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, "key", format) : adjustedPrefix) + "[]";
26432
26443
  }
26433
26444
  for (var j = 0;j < objKeys.length; ++j) {
26434
26445
  var key = objKeys[j];
@@ -26518,7 +26529,7 @@ var require_stringify = __commonJS(function(exports, module) {
26518
26529
  filter = options.filter;
26519
26530
  obj = filter("", obj);
26520
26531
  } else if (isArray(options.filter)) {
26521
- filter = options.filter;
26532
+ filter = options.filter.slice();
26522
26533
  objKeys = filter;
26523
26534
  }
26524
26535
  var keys = [];
@@ -26544,7 +26555,7 @@ var require_stringify = __commonJS(function(exports, module) {
26544
26555
  continue;
26545
26556
  }
26546
26557
  var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
26547
- pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
26558
+ pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
26548
26559
  }
26549
26560
  var joined = keys.join(options.delimiter);
26550
26561
  var prefix = options.addQueryPrefix === true ? "?" : "";
@@ -26600,9 +26611,9 @@ var require_parse = __commonJS(function(exports, module) {
26600
26611
  copies.set(value, copy);
26601
26612
  queue[queue.length] = { source: value, target: copy };
26602
26613
  }
26603
- target[keys[j]] = copies.get(value);
26614
+ utils.setProperty(target, keys[j], copies.get(value));
26604
26615
  } else {
26605
- target[keys[j]] = value;
26616
+ utils.setProperty(target, keys[j], value);
26606
26617
  }
26607
26618
  }
26608
26619
  }
@@ -26652,7 +26663,7 @@ var require_parse = __commonJS(function(exports, module) {
26652
26663
  }
26653
26664
  return val.split(",");
26654
26665
  }
26655
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
26666
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit && currentArrayLength > 0) {
26656
26667
  throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
26657
26668
  }
26658
26669
  return val;
@@ -26700,13 +26711,15 @@ var require_parse = __commonJS(function(exports, module) {
26700
26711
  } else {
26701
26712
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
26702
26713
  if (key !== null) {
26703
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
26714
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) && (options.duplicates === "combine" || isEmptyBracketKey) ? obj[key].length : 0), function(encodedVal) {
26704
26715
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
26705
26716
  });
26706
26717
  }
26707
26718
  }
26708
26719
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
26709
- val = interpretNumericEntities(String(val));
26720
+ val = utils.maybeMap(val, function(value) {
26721
+ return value ? interpretNumericEntities(String(value)) : value;
26722
+ });
26710
26723
  }
26711
26724
  if (isEmptyBracketKey) {
26712
26725
  val = isArray(val) ? [val] : val;
@@ -26744,7 +26757,7 @@ var require_parse = __commonJS(function(exports, module) {
26744
26757
  } else {
26745
26758
  obj = options.plainObjects ? { __proto__: null } : {};
26746
26759
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
26747
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
26760
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
26748
26761
  var index = parseInt(decodedRoot, 10);
26749
26762
  var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
26750
26763
  if (!options.parseArrays && decodedRoot === "") {
@@ -53266,9 +53279,9 @@ var init_config = __esm(() => {
53266
53279
  SDK_METADATA = {
53267
53280
  language: "typescript",
53268
53281
  openapiDocVersion: "0.1.0",
53269
- sdkVersion: "0.0.84",
53282
+ sdkVersion: "0.0.85",
53270
53283
  genVersion: "2.915.1",
53271
- userAgent: "speakeasy-sdk/mcp-typescript 0.0.84 2.915.1 0.1.0 @dalmia/calibrate-mcp"
53284
+ userAgent: "speakeasy-sdk/mcp-typescript 0.0.85 2.915.1 0.1.0 @dalmia/calibrate-mcp"
53272
53285
  };
53273
53286
  });
53274
53287
 
@@ -62941,7 +62954,7 @@ last. Requires a Calibrate API key (CALIBRATE_API_KEY).
62941
62954
  function createMCPServer(deps) {
62942
62955
  const server = new McpServer({
62943
62956
  name: "CalibrateMcp",
62944
- version: "0.0.84"
62957
+ version: "0.0.85"
62945
62958
  });
62946
62959
  const getClient = deps.getSDK || (() => new CalibrateMcpCore({
62947
62960
  security: deps.security,
@@ -64266,7 +64279,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
64266
64279
  <h1>Instructions</h1>
64267
64280
  <p>One-click installation for Claude Desktop users</p>
64268
64281
  <div class="instruction-item">
64269
- <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.84/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64282
+ <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.85/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64270
64283
  \uD83D\uDCE5 Download MCP Bundle
64271
64284
  </a>
64272
64285
  </div>
@@ -67220,7 +67233,7 @@ var routes = buildRouteMap({
67220
67233
  var app = buildApplication(routes, {
67221
67234
  name: "mcp",
67222
67235
  versionInfo: {
67223
- currentVersion: "0.0.84"
67236
+ currentVersion: "0.0.85"
67224
67237
  }
67225
67238
  });
67226
67239
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67228,5 +67241,5 @@ export {
67228
67241
  app
67229
67242
  };
67230
67243
 
67231
- //# debugId=836868EA84BFD5EF64756E2164756E21
67244
+ //# debugId=A1741B450B8DD19464756E2164756E21
67232
67245
  //# sourceMappingURL=mcp-server.js.map