@dalmia/calibrate-mcp 0.0.73 → 0.0.75
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 +263 -38
- package/bin/mcp-server.js.map +12 -12
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/traceingest.js +1 -1
- package/esm/models/traceingest.js.map +1 -1
- package/package.json +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/traceingest.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -25865,6 +25865,17 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25865
25865
|
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
25866
25866
|
overflowChannel.set(obj, maxIndex);
|
|
25867
25867
|
};
|
|
25868
|
+
var conflictChannel = getSideChannel();
|
|
25869
|
+
var markConflict = function markConflict(obj, maxIndex) {
|
|
25870
|
+
conflictChannel.set(obj, maxIndex);
|
|
25871
|
+
return obj;
|
|
25872
|
+
};
|
|
25873
|
+
var isConflict = function isConflict(obj) {
|
|
25874
|
+
return conflictChannel.has(obj);
|
|
25875
|
+
};
|
|
25876
|
+
var getConflictIndex = function getConflictIndex(obj) {
|
|
25877
|
+
return conflictChannel.get(obj);
|
|
25878
|
+
};
|
|
25868
25879
|
var hexTable = function() {
|
|
25869
25880
|
var array = [];
|
|
25870
25881
|
for (var i = 0;i < 256; ++i) {
|
|
@@ -25908,6 +25919,27 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25908
25919
|
obj[key] = value;
|
|
25909
25920
|
}
|
|
25910
25921
|
};
|
|
25922
|
+
var maxNumericIndex = function maxNumericIndex(obj, min) {
|
|
25923
|
+
var max = min;
|
|
25924
|
+
var keys = Object.keys(obj);
|
|
25925
|
+
for (var i = 0;i < keys.length; ++i) {
|
|
25926
|
+
var num = parseInt(keys[i], 10);
|
|
25927
|
+
if (String(num) === keys[i] && num > max) {
|
|
25928
|
+
max = num;
|
|
25929
|
+
}
|
|
25930
|
+
}
|
|
25931
|
+
return max;
|
|
25932
|
+
};
|
|
25933
|
+
var limitedPair = function limitedPair(first, second, options) {
|
|
25934
|
+
var pair = [first, second];
|
|
25935
|
+
if (options && typeof options.arrayLimit === "number" && pair.length > options.arrayLimit) {
|
|
25936
|
+
if (options.throwOnLimitExceeded) {
|
|
25937
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
25938
|
+
}
|
|
25939
|
+
return markOverflow(arrayToObject(pair, options), 1);
|
|
25940
|
+
}
|
|
25941
|
+
return pair;
|
|
25942
|
+
};
|
|
25911
25943
|
var merge = function merge(target, source, options) {
|
|
25912
25944
|
if (!source) {
|
|
25913
25945
|
return target;
|
|
@@ -25927,13 +25959,21 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25927
25959
|
var newIndex = getMaxIndex(target) + 1;
|
|
25928
25960
|
target[newIndex] = source;
|
|
25929
25961
|
setMaxIndex(target, newIndex);
|
|
25962
|
+
} else if (options && options.strictMerge && isConflict(target)) {
|
|
25963
|
+
var nextConflict = getConflictIndex(target) + 1;
|
|
25964
|
+
if (options.throwOnLimitExceeded && typeof options.arrayLimit === "number" && nextConflict >= options.arrayLimit) {
|
|
25965
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
25966
|
+
}
|
|
25967
|
+
target[nextConflict] = source;
|
|
25968
|
+
markConflict(target, nextConflict);
|
|
25930
25969
|
} else if (options && options.strictMerge) {
|
|
25931
|
-
|
|
25970
|
+
var conflict = limitedPair(target, source, options);
|
|
25971
|
+
return isArray(conflict) ? markConflict(conflict, 1) : conflict;
|
|
25932
25972
|
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
25933
25973
|
target[source] = true;
|
|
25934
25974
|
}
|
|
25935
25975
|
} else {
|
|
25936
|
-
return
|
|
25976
|
+
return limitedPair(target, source, options);
|
|
25937
25977
|
}
|
|
25938
25978
|
return target;
|
|
25939
25979
|
}
|
|
@@ -25959,6 +25999,9 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25959
25999
|
var mergeTarget = target;
|
|
25960
26000
|
if (isArray(target) && !isArray(source)) {
|
|
25961
26001
|
mergeTarget = arrayToObject(target, options);
|
|
26002
|
+
if (isConflict(target)) {
|
|
26003
|
+
markConflict(mergeTarget, target.length - 1);
|
|
26004
|
+
}
|
|
25962
26005
|
}
|
|
25963
26006
|
if (isArray(target) && isArray(source)) {
|
|
25964
26007
|
source.forEach(function(item, i) {
|
|
@@ -25989,7 +26032,7 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25989
26032
|
setProperty(acc, key, value);
|
|
25990
26033
|
}
|
|
25991
26034
|
if (isOverflow(source) && !isOverflow(acc)) {
|
|
25992
|
-
markOverflow(acc, getMaxIndex(source));
|
|
26035
|
+
markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
|
|
25993
26036
|
}
|
|
25994
26037
|
if (isOverflow(acc)) {
|
|
25995
26038
|
var keyNum = parseInt(key, 10);
|
|
@@ -25997,6 +26040,12 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
25997
26040
|
setMaxIndex(acc, keyNum);
|
|
25998
26041
|
}
|
|
25999
26042
|
}
|
|
26043
|
+
if (isConflict(acc)) {
|
|
26044
|
+
var conflictKey = parseInt(key, 10);
|
|
26045
|
+
if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
|
|
26046
|
+
markConflict(acc, conflictKey);
|
|
26047
|
+
}
|
|
26048
|
+
}
|
|
26000
26049
|
return acc;
|
|
26001
26050
|
}, mergeTarget);
|
|
26002
26051
|
};
|
|
@@ -26007,6 +26056,9 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26007
26056
|
}, target);
|
|
26008
26057
|
};
|
|
26009
26058
|
var decode = function(str, defaultDecoder, charset) {
|
|
26059
|
+
if (typeof str === "string" && str.indexOf("%") === -1) {
|
|
26060
|
+
return str.indexOf("+") === -1 ? str : str.replace(/\+/g, " ");
|
|
26061
|
+
}
|
|
26010
26062
|
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
26011
26063
|
if (charset === "iso-8859-1") {
|
|
26012
26064
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -26017,6 +26069,52 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26017
26069
|
return strWithoutPlus;
|
|
26018
26070
|
}
|
|
26019
26071
|
};
|
|
26072
|
+
var hasToPrimitive = typeof Symbol === "function" && typeof Symbol.toPrimitive === "symbol";
|
|
26073
|
+
var arrayJoin = Array.prototype.join;
|
|
26074
|
+
var arrayToString = Array.prototype.toString;
|
|
26075
|
+
var objectToString = Object.prototype.toString;
|
|
26076
|
+
var toCoercible = function toCoercible(value, joining) {
|
|
26077
|
+
if (!value || typeof value !== "object" && typeof value !== "function") {
|
|
26078
|
+
return value;
|
|
26079
|
+
}
|
|
26080
|
+
if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
|
|
26081
|
+
return value;
|
|
26082
|
+
}
|
|
26083
|
+
if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
|
|
26084
|
+
var ancestors = joining || getSideChannel();
|
|
26085
|
+
if (ancestors.has(value)) {
|
|
26086
|
+
return "";
|
|
26087
|
+
}
|
|
26088
|
+
ancestors.set(value, true);
|
|
26089
|
+
var copy;
|
|
26090
|
+
for (var i = 0;i < value.length; i += 1) {
|
|
26091
|
+
var item = value[i];
|
|
26092
|
+
var coerced = toCoercible(item, ancestors);
|
|
26093
|
+
if (!copy && coerced !== item) {
|
|
26094
|
+
copy = [];
|
|
26095
|
+
for (var j = 0;j < i; j += 1) {
|
|
26096
|
+
copy[j] = value[j];
|
|
26097
|
+
}
|
|
26098
|
+
}
|
|
26099
|
+
if (copy) {
|
|
26100
|
+
copy[i] = coerced;
|
|
26101
|
+
}
|
|
26102
|
+
}
|
|
26103
|
+
ancestors["delete"](value);
|
|
26104
|
+
return copy || value;
|
|
26105
|
+
}
|
|
26106
|
+
if (typeof value.toString === "function") {
|
|
26107
|
+
return value;
|
|
26108
|
+
}
|
|
26109
|
+
var valueOf = value.valueOf;
|
|
26110
|
+
if (typeof valueOf === "function") {
|
|
26111
|
+
var primitive = valueOf.call(value);
|
|
26112
|
+
if (!primitive || typeof primitive !== "object" && typeof primitive !== "function") {
|
|
26113
|
+
return String(primitive);
|
|
26114
|
+
}
|
|
26115
|
+
}
|
|
26116
|
+
return objectToString.call(value);
|
|
26117
|
+
};
|
|
26020
26118
|
var limit = 1024;
|
|
26021
26119
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
26022
26120
|
if (str.length === 0) {
|
|
@@ -26026,12 +26124,12 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26026
26124
|
if (typeof str === "symbol") {
|
|
26027
26125
|
string = Symbol.prototype.toString.call(str);
|
|
26028
26126
|
} else if (typeof str !== "string") {
|
|
26029
|
-
string = String(str);
|
|
26127
|
+
string = String(toCoercible(str));
|
|
26030
26128
|
}
|
|
26031
26129
|
if (charset === "iso-8859-1") {
|
|
26032
26130
|
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
26033
26131
|
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
26034
|
-
});
|
|
26132
|
+
}).replace(/\+/g, "%2B");
|
|
26035
26133
|
}
|
|
26036
26134
|
var out = "";
|
|
26037
26135
|
for (var j = 0;j < string.length; j += limit) {
|
|
@@ -26143,7 +26241,8 @@ var require_utils2 = __commonJS(function(exports, module) {
|
|
|
26143
26241
|
isRegExp,
|
|
26144
26242
|
markOverflow,
|
|
26145
26243
|
maybeMap,
|
|
26146
|
-
merge
|
|
26244
|
+
merge,
|
|
26245
|
+
toCoercible
|
|
26147
26246
|
};
|
|
26148
26247
|
});
|
|
26149
26248
|
|
|
@@ -26254,17 +26353,17 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26254
26353
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
26255
26354
|
if (encodeValuesOnly && encoder) {
|
|
26256
26355
|
obj = utils.maybeMap(obj, function(v) {
|
|
26257
|
-
return v == null ? v : encoder(v);
|
|
26356
|
+
return v == null ? v : encoder(v, defaults.encoder, charset, "value", format);
|
|
26258
26357
|
});
|
|
26259
26358
|
}
|
|
26260
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }];
|
|
26359
|
+
objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(",") || null : undefined }];
|
|
26261
26360
|
} else if (isArray(filter)) {
|
|
26262
26361
|
objKeys = filter;
|
|
26263
26362
|
} else {
|
|
26264
26363
|
var keys = Object.keys(obj);
|
|
26265
26364
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
26266
26365
|
}
|
|
26267
|
-
var encodedPrefix =
|
|
26366
|
+
var encodedPrefix = String(prefix);
|
|
26268
26367
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
26269
26368
|
if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
26270
26369
|
return adjustedPrefix + "[]";
|
|
@@ -26314,7 +26413,7 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26314
26413
|
filter = opts.filter;
|
|
26315
26414
|
}
|
|
26316
26415
|
var arrayFormat;
|
|
26317
|
-
if (opts.arrayFormat
|
|
26416
|
+
if (has.call(arrayPrefixGenerators, opts.arrayFormat)) {
|
|
26318
26417
|
arrayFormat = opts.arrayFormat;
|
|
26319
26418
|
} else if ("indices" in opts) {
|
|
26320
26419
|
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
@@ -26400,9 +26499,53 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
26400
26499
|
|
|
26401
26500
|
// node_modules/qs/lib/parse.js
|
|
26402
26501
|
var require_parse = __commonJS(function(exports, module) {
|
|
26502
|
+
var getSideChannel = require_side_channel();
|
|
26403
26503
|
var utils = require_utils2();
|
|
26404
26504
|
var has = Object.prototype.hasOwnProperty;
|
|
26405
26505
|
var isArray = Array.isArray;
|
|
26506
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
26507
|
+
var isPlainContainer = function isPlainContainer(value) {
|
|
26508
|
+
if (!value || typeof value !== "object") {
|
|
26509
|
+
return false;
|
|
26510
|
+
}
|
|
26511
|
+
if (isArray(value)) {
|
|
26512
|
+
return true;
|
|
26513
|
+
}
|
|
26514
|
+
var proto = getPrototypeOf(value);
|
|
26515
|
+
return proto === Object.prototype || proto === null;
|
|
26516
|
+
};
|
|
26517
|
+
var emptyCopyOf = function emptyCopyOf(value) {
|
|
26518
|
+
if (isArray(value)) {
|
|
26519
|
+
var arr = [];
|
|
26520
|
+
arr.length = value.length;
|
|
26521
|
+
return arr;
|
|
26522
|
+
}
|
|
26523
|
+
return getPrototypeOf(value) === null ? { __proto__: null } : {};
|
|
26524
|
+
};
|
|
26525
|
+
var copyInput = function copyInput(input) {
|
|
26526
|
+
var copies = getSideChannel();
|
|
26527
|
+
var result = {};
|
|
26528
|
+
var queue = [{ source: input, target: result }];
|
|
26529
|
+
for (var i = 0;i < queue.length; ++i) {
|
|
26530
|
+
var source = queue[i].source;
|
|
26531
|
+
var target = queue[i].target;
|
|
26532
|
+
var keys = Object.keys(source);
|
|
26533
|
+
for (var j = 0;j < keys.length; ++j) {
|
|
26534
|
+
var value = source[keys[j]];
|
|
26535
|
+
if (isPlainContainer(value)) {
|
|
26536
|
+
if (!copies.has(value)) {
|
|
26537
|
+
var copy = emptyCopyOf(value);
|
|
26538
|
+
copies.set(value, copy);
|
|
26539
|
+
queue[queue.length] = { source: value, target: copy };
|
|
26540
|
+
}
|
|
26541
|
+
target[keys[j]] = copies.get(value);
|
|
26542
|
+
} else {
|
|
26543
|
+
target[keys[j]] = value;
|
|
26544
|
+
}
|
|
26545
|
+
}
|
|
26546
|
+
}
|
|
26547
|
+
return result;
|
|
26548
|
+
};
|
|
26406
26549
|
var defaults = {
|
|
26407
26550
|
allowDots: false,
|
|
26408
26551
|
allowEmptyArrays: false,
|
|
@@ -26486,6 +26629,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26486
26629
|
var part = parts[i];
|
|
26487
26630
|
var bracketEqualsPos = part.indexOf("]=");
|
|
26488
26631
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
26632
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === "[]";
|
|
26489
26633
|
var key;
|
|
26490
26634
|
var val;
|
|
26491
26635
|
if (pos === -1) {
|
|
@@ -26502,7 +26646,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26502
26646
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
26503
26647
|
val = interpretNumericEntities(String(val));
|
|
26504
26648
|
}
|
|
26505
|
-
if (
|
|
26649
|
+
if (isEmptyBracketKey) {
|
|
26506
26650
|
val = isArray(val) ? [val] : val;
|
|
26507
26651
|
}
|
|
26508
26652
|
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
@@ -26510,7 +26654,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26510
26654
|
}
|
|
26511
26655
|
if (key !== null) {
|
|
26512
26656
|
var existing = has.call(obj, key);
|
|
26513
|
-
if (existing && (options.duplicates === "combine" ||
|
|
26657
|
+
if (existing && (options.duplicates === "combine" || isEmptyBracketKey)) {
|
|
26514
26658
|
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
|
|
26515
26659
|
} else if (!existing || options.duplicates === "last") {
|
|
26516
26660
|
obj[key] = val;
|
|
@@ -26559,8 +26703,35 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26559
26703
|
}
|
|
26560
26704
|
return leaf;
|
|
26561
26705
|
};
|
|
26706
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
|
|
26707
|
+
var result = "";
|
|
26708
|
+
var depth = 0;
|
|
26709
|
+
for (var i = 0;i < key.length; i += 1) {
|
|
26710
|
+
var cu = key.charCodeAt(i);
|
|
26711
|
+
if (cu === 91) {
|
|
26712
|
+
depth += 1;
|
|
26713
|
+
result += "[";
|
|
26714
|
+
} else if (cu === 93) {
|
|
26715
|
+
if (depth > 0) {
|
|
26716
|
+
depth -= 1;
|
|
26717
|
+
}
|
|
26718
|
+
result += "]";
|
|
26719
|
+
} else if (cu === 46 && depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 46 && key.charCodeAt(i + 1) !== 91) {
|
|
26720
|
+
var start = i + 1;
|
|
26721
|
+
var j = start;
|
|
26722
|
+
while (j < key.length && key.charCodeAt(j) !== 46 && key.charCodeAt(j) !== 91) {
|
|
26723
|
+
j += 1;
|
|
26724
|
+
}
|
|
26725
|
+
result += "[" + key.slice(start, j) + "]";
|
|
26726
|
+
i = j - 1;
|
|
26727
|
+
} else {
|
|
26728
|
+
result += key.charAt(i);
|
|
26729
|
+
}
|
|
26730
|
+
}
|
|
26731
|
+
return result;
|
|
26732
|
+
};
|
|
26562
26733
|
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
26563
|
-
var key = options.allowDots ? originalKey
|
|
26734
|
+
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
26564
26735
|
if (options.depth <= 0) {
|
|
26565
26736
|
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
26566
26737
|
if (!options.allowPrototypes) {
|
|
@@ -26685,7 +26856,7 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
26685
26856
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
26686
26857
|
return options.plainObjects ? { __proto__: null } : {};
|
|
26687
26858
|
}
|
|
26688
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
26859
|
+
var tempObj = typeof str === "string" ? parseValues(str, options) : copyInput(str);
|
|
26689
26860
|
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
26690
26861
|
var keys = Object.keys(tempObj);
|
|
26691
26862
|
for (var i = 0;i < keys.length; ++i) {
|
|
@@ -42096,6 +42267,37 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42096
42267
|
}
|
|
42097
42268
|
return output.join("");
|
|
42098
42269
|
}
|
|
42270
|
+
function removeDotSegmentsRelative(path) {
|
|
42271
|
+
if (path === "" || path[0] === "/") {
|
|
42272
|
+
return removeDotSegments(path);
|
|
42273
|
+
}
|
|
42274
|
+
const segments = path.split("/");
|
|
42275
|
+
const last = segments.length - 1;
|
|
42276
|
+
const output = [];
|
|
42277
|
+
let trailingDirectory = false;
|
|
42278
|
+
for (let i = 0;i <= last; i++) {
|
|
42279
|
+
const segment = segments[i];
|
|
42280
|
+
if (segment === "." || segment === "..") {
|
|
42281
|
+
if (segment === "..") {
|
|
42282
|
+
if (output.length !== 0 && output[output.length - 1] !== "..") {
|
|
42283
|
+
output.pop();
|
|
42284
|
+
} else {
|
|
42285
|
+
output.push("..");
|
|
42286
|
+
}
|
|
42287
|
+
}
|
|
42288
|
+
trailingDirectory = i === last;
|
|
42289
|
+
} else {
|
|
42290
|
+
output.push(segment);
|
|
42291
|
+
}
|
|
42292
|
+
}
|
|
42293
|
+
if (trailingDirectory && output[output.length - 1] !== "..") {
|
|
42294
|
+
output.push("");
|
|
42295
|
+
}
|
|
42296
|
+
if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
|
|
42297
|
+
output.unshift(".");
|
|
42298
|
+
}
|
|
42299
|
+
return output.join("/");
|
|
42300
|
+
}
|
|
42099
42301
|
var IP_HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23" };
|
|
42100
42302
|
var IP_HOST_DELIM_RE = /[@/?#]/g;
|
|
42101
42303
|
function encodeHost(host, isIP, allowNonAscii = false) {
|
|
@@ -42415,6 +42617,7 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42415
42617
|
encodeFragment,
|
|
42416
42618
|
escapePreservingEscapes,
|
|
42417
42619
|
removeDotSegments,
|
|
42620
|
+
removeDotSegmentsRelative,
|
|
42418
42621
|
isIPv4,
|
|
42419
42622
|
isUUID,
|
|
42420
42623
|
normalizeIPv6,
|
|
@@ -42850,16 +43053,18 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42850
43053
|
|
|
42851
43054
|
// node_modules/fast-uri/index.js
|
|
42852
43055
|
var require_fast_uri = __commonJS(function(exports, module) {
|
|
42853
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils4();
|
|
43056
|
+
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils4();
|
|
42854
43057
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
42855
43058
|
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
42856
43059
|
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
42857
|
-
|
|
42858
|
-
|
|
42859
|
-
|
|
43060
|
+
var MALFORMED_HOST_ERROR = "URI host is malformed.";
|
|
43061
|
+
var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
43062
|
+
function validateScheme(scheme) {
|
|
43063
|
+
const stringScheme = String(scheme);
|
|
43064
|
+
if (!VALID_SCHEME.test(stringScheme)) {
|
|
42860
43065
|
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
42861
43066
|
}
|
|
42862
|
-
return
|
|
43067
|
+
return stringScheme;
|
|
42863
43068
|
}
|
|
42864
43069
|
function normalize(uri, options) {
|
|
42865
43070
|
if (typeof uri === "string") {
|
|
@@ -42899,6 +43104,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42899
43104
|
throw new Error("HTTP URIs must have a host.");
|
|
42900
43105
|
}
|
|
42901
43106
|
const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
43107
|
+
if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
|
|
43108
|
+
throw new Error(MALFORMED_HOST_ERROR);
|
|
43109
|
+
}
|
|
42902
43110
|
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
42903
43111
|
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
|
|
42904
43112
|
if (resolved.error && !encodedASCIIHost) {
|
|
@@ -42950,14 +43158,15 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42950
43158
|
if (relative.path[0] === "/") {
|
|
42951
43159
|
target.path = removeDotSegments(relative.path);
|
|
42952
43160
|
} else {
|
|
42953
|
-
|
|
43161
|
+
const baseHasAuthority = base.userinfo !== undefined || base.host !== undefined || base.port !== undefined;
|
|
43162
|
+
if (baseHasAuthority && !base.path) {
|
|
42954
43163
|
target.path = "/" + relative.path;
|
|
42955
43164
|
} else if (!base.path) {
|
|
42956
43165
|
target.path = relative.path;
|
|
42957
43166
|
} else {
|
|
42958
43167
|
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
42959
43168
|
}
|
|
42960
|
-
target.path = removeDotSegments(target.path);
|
|
43169
|
+
target.path = base.scheme === undefined && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
|
|
42961
43170
|
}
|
|
42962
43171
|
target.query = relative.query;
|
|
42963
43172
|
}
|
|
@@ -43000,13 +43209,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43000
43209
|
const options = Object.assign({}, opts);
|
|
43001
43210
|
const uriTokens = [];
|
|
43002
43211
|
if (component.scheme) {
|
|
43003
|
-
component.scheme =
|
|
43212
|
+
component.scheme = validateScheme(component.scheme);
|
|
43004
43213
|
}
|
|
43005
43214
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
43006
43215
|
if (schemeHandler && schemeHandler.serialize)
|
|
43007
43216
|
schemeHandler.serialize(component, options);
|
|
43008
43217
|
const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
|
|
43009
|
-
const
|
|
43218
|
+
const schemelessReference = (component.scheme === undefined || options.reference === "suffix") && !hasAuthority;
|
|
43219
|
+
const pathNoScheme = !options.skipEscape && schemelessReference;
|
|
43010
43220
|
if (component.path !== undefined) {
|
|
43011
43221
|
if (!options.skipEscape) {
|
|
43012
43222
|
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
@@ -43015,7 +43225,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43015
43225
|
}
|
|
43016
43226
|
}
|
|
43017
43227
|
if (options.reference !== "suffix" && component.scheme) {
|
|
43018
|
-
component.scheme =
|
|
43228
|
+
component.scheme = validateScheme(component.scheme);
|
|
43019
43229
|
uriTokens.push(component.scheme, ":");
|
|
43020
43230
|
}
|
|
43021
43231
|
const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport);
|
|
@@ -43032,9 +43242,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43032
43242
|
if (component.path !== undefined) {
|
|
43033
43243
|
let s = component.path;
|
|
43034
43244
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
43035
|
-
s = removeDotSegments(s);
|
|
43245
|
+
s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
|
|
43036
43246
|
}
|
|
43037
|
-
if (
|
|
43247
|
+
if (schemelessReference) {
|
|
43038
43248
|
s = serializePathEncoding(s, true);
|
|
43039
43249
|
}
|
|
43040
43250
|
if (authority === undefined && s[0] === "/" && s[1] === "/") {
|
|
@@ -43083,16 +43293,32 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43083
43293
|
}
|
|
43084
43294
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
43085
43295
|
const bracketedIPLiteral = parsed.host && parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
|
|
43296
|
+
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
43297
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
43298
|
+
return true;
|
|
43299
|
+
}
|
|
43086
43300
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && !bracketedIPLiteral && nonSimpleDomain(parsed.host)) {
|
|
43301
|
+
let url;
|
|
43087
43302
|
try {
|
|
43088
|
-
|
|
43303
|
+
url = new URL("http://" + parsed.host);
|
|
43089
43304
|
} catch (e) {
|
|
43090
43305
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
43091
43306
|
return true;
|
|
43092
43307
|
}
|
|
43308
|
+
if (!isHostOnlyURL(url)) {
|
|
43309
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
43310
|
+
return true;
|
|
43311
|
+
}
|
|
43312
|
+
parsed.host = url.hostname;
|
|
43093
43313
|
}
|
|
43094
43314
|
return false;
|
|
43095
43315
|
}
|
|
43316
|
+
function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
|
|
43317
|
+
return Boolean(parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host));
|
|
43318
|
+
}
|
|
43319
|
+
function isHostOnlyURL(url) {
|
|
43320
|
+
return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
|
|
43321
|
+
}
|
|
43096
43322
|
function parseWithStatus(uri, opts) {
|
|
43097
43323
|
const options = Object.assign({}, opts);
|
|
43098
43324
|
const parsed = {
|
|
@@ -43151,9 +43377,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43151
43377
|
parsed.query = matches[7];
|
|
43152
43378
|
parsed.fragment = matches[8];
|
|
43153
43379
|
if (parsed.scheme !== undefined) {
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
parsed.scheme = decodedScheme.toLowerCase();
|
|
43380
|
+
if (VALID_SCHEME.test(parsed.scheme)) {
|
|
43381
|
+
parsed.scheme = parsed.scheme.toLowerCase();
|
|
43157
43382
|
} else {
|
|
43158
43383
|
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
43159
43384
|
malformedScheme = true;
|
|
@@ -43184,7 +43409,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43184
43409
|
parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
|
|
43185
43410
|
}
|
|
43186
43411
|
if (malformedIPLiteral) {
|
|
43187
|
-
parsed.error = parsed.error ||
|
|
43412
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
43188
43413
|
malformedAuthorityOrPort = true;
|
|
43189
43414
|
}
|
|
43190
43415
|
} else {
|
|
@@ -52979,9 +53204,9 @@ var init_config = __esm(() => {
|
|
|
52979
53204
|
SDK_METADATA = {
|
|
52980
53205
|
language: "typescript",
|
|
52981
53206
|
openapiDocVersion: "0.1.0",
|
|
52982
|
-
sdkVersion: "0.0.
|
|
53207
|
+
sdkVersion: "0.0.75",
|
|
52983
53208
|
genVersion: "2.915.1",
|
|
52984
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
53209
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.75 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
52985
53210
|
};
|
|
52986
53211
|
});
|
|
52987
53212
|
|
|
@@ -61734,7 +61959,7 @@ var init_traceingest = __esm(() => {
|
|
|
61734
61959
|
]).describe("What the agent was given for this turn. For a `general` agent, the standalone prompt as a string. For a `conversation` agent, the history up to the reported output, oldest turn first, in OpenAI chat format");
|
|
61735
61960
|
TraceIngest$zodSchema = object({
|
|
61736
61961
|
agent_id: string2().describe("ID of the agent that produced the turn. Must be an agent in your workspace"),
|
|
61737
|
-
conversation_id: string2().nullable().optional().describe("Your own ID for the conversation this turn belongs to
|
|
61962
|
+
conversation_id: string2().nullable().optional().describe("Your own ID for the conversation this turn belongs to. Turns sharing it are grouped into one conversation. Omit if you have none"),
|
|
61738
61963
|
input: union([
|
|
61739
61964
|
string2(),
|
|
61740
61965
|
array(TraceTurn$zodSchema)
|
|
@@ -61895,7 +62120,7 @@ hits its trace limit.
|
|
|
61895
62120
|
function createMCPServer(deps) {
|
|
61896
62121
|
const server = new McpServer({
|
|
61897
62122
|
name: "CalibrateMcp",
|
|
61898
|
-
version: "0.0.
|
|
62123
|
+
version: "0.0.75"
|
|
61899
62124
|
});
|
|
61900
62125
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
61901
62126
|
security: deps.security,
|
|
@@ -63184,7 +63409,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
63184
63409
|
<h1>Instructions</h1>
|
|
63185
63410
|
<p>One-click installation for Claude Desktop users</p>
|
|
63186
63411
|
<div class="instruction-item">
|
|
63187
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
63412
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.75/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
63188
63413
|
\uD83D\uDCE5 Download MCP Bundle
|
|
63189
63414
|
</a>
|
|
63190
63415
|
</div>
|
|
@@ -66138,7 +66363,7 @@ var routes = buildRouteMap({
|
|
|
66138
66363
|
var app = buildApplication(routes, {
|
|
66139
66364
|
name: "mcp",
|
|
66140
66365
|
versionInfo: {
|
|
66141
|
-
currentVersion: "0.0.
|
|
66366
|
+
currentVersion: "0.0.75"
|
|
66142
66367
|
}
|
|
66143
66368
|
});
|
|
66144
66369
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -66146,5 +66371,5 @@ export {
|
|
|
66146
66371
|
app
|
|
66147
66372
|
};
|
|
66148
66373
|
|
|
66149
|
-
//# debugId=
|
|
66374
|
+
//# debugId=9B6766393D30A36664756E2164756E21
|
|
66150
66375
|
//# sourceMappingURL=mcp-server.js.map
|