mcp-proxy 5.6.0 → 5.6.1
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/bin/mcp-proxy.d.ts +1 -2
- package/dist/bin/mcp-proxy.js +50 -91
- package/dist/bin/mcp-proxy.js.map +1 -1
- package/dist/index.js +66 -61
- package/dist/index.js.map +1 -1
- package/dist/{stdio-Cm2W-uxV.js → stdio-D0Lv8ytu.js} +509 -481
- package/dist/stdio-D0Lv8ytu.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +9 -9
- package/dist/stdio-Cm2W-uxV.js.map +0 -1
|
@@ -119,7 +119,6 @@ var util$6;
|
|
|
119
119
|
};
|
|
120
120
|
util$7.find = (arr, checker) => {
|
|
121
121
|
for (const item of arr) if (checker(item)) return item;
|
|
122
|
-
return void 0;
|
|
123
122
|
};
|
|
124
123
|
util$7.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
125
124
|
function joinValues(array, separator = " | ") {
|
|
@@ -163,8 +162,7 @@ const ZodParsedType = util$6.arrayToEnum([
|
|
|
163
162
|
"set"
|
|
164
163
|
]);
|
|
165
164
|
const getParsedType = (data) => {
|
|
166
|
-
|
|
167
|
-
switch (t) {
|
|
165
|
+
switch (typeof data) {
|
|
168
166
|
case "undefined": return ZodParsedType.undefined;
|
|
169
167
|
case "string": return ZodParsedType.string;
|
|
170
168
|
case "number": return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
@@ -238,8 +236,7 @@ var ZodError = class ZodError extends Error {
|
|
|
238
236
|
let i$3 = 0;
|
|
239
237
|
while (i$3 < issue.path.length) {
|
|
240
238
|
const el = issue.path[i$3];
|
|
241
|
-
|
|
242
|
-
if (!terminal) curr[el] = curr[el] || { _errors: [] };
|
|
239
|
+
if (!(i$3 === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
|
|
243
240
|
else {
|
|
244
241
|
curr[el] = curr[el] || { _errors: [] };
|
|
245
242
|
curr[el]._errors.push(mapper(issue));
|
|
@@ -282,8 +279,7 @@ var ZodError = class ZodError extends Error {
|
|
|
282
279
|
}
|
|
283
280
|
};
|
|
284
281
|
ZodError.create = (issues) => {
|
|
285
|
-
|
|
286
|
-
return error;
|
|
282
|
+
return new ZodError(issues);
|
|
287
283
|
};
|
|
288
284
|
|
|
289
285
|
//#endregion
|
|
@@ -512,8 +508,7 @@ const handleResult = (ctx, result) => {
|
|
|
512
508
|
success: false,
|
|
513
509
|
get error() {
|
|
514
510
|
if (this._error) return this._error;
|
|
515
|
-
|
|
516
|
-
this._error = error;
|
|
511
|
+
this._error = new ZodError(ctx.common.issues);
|
|
517
512
|
return this._error;
|
|
518
513
|
}
|
|
519
514
|
};
|
|
@@ -882,8 +877,7 @@ function isValidCidr(ip, version) {
|
|
|
882
877
|
var ZodString = class ZodString extends ZodType {
|
|
883
878
|
_parse(input) {
|
|
884
879
|
if (this._def.coerce) input.data = String(input.data);
|
|
885
|
-
|
|
886
|
-
if (parsedType !== ZodParsedType.string) {
|
|
880
|
+
if (this._getType(input) !== ZodParsedType.string) {
|
|
887
881
|
const ctx$1 = this._getOrReturnCtx(input);
|
|
888
882
|
addIssueToContext(ctx$1, {
|
|
889
883
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1027,8 +1021,7 @@ var ZodString = class ZodString extends ZodType {
|
|
|
1027
1021
|
}
|
|
1028
1022
|
else if (check.kind === "regex") {
|
|
1029
1023
|
check.regex.lastIndex = 0;
|
|
1030
|
-
|
|
1031
|
-
if (!testResult) {
|
|
1024
|
+
if (!check.regex.test(input.data)) {
|
|
1032
1025
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1033
1026
|
addIssueToContext(ctx, {
|
|
1034
1027
|
validation: "regex",
|
|
@@ -1074,8 +1067,7 @@ var ZodString = class ZodString extends ZodType {
|
|
|
1074
1067
|
status$1.dirty();
|
|
1075
1068
|
}
|
|
1076
1069
|
} else if (check.kind === "datetime") {
|
|
1077
|
-
|
|
1078
|
-
if (!regex$1.test(input.data)) {
|
|
1070
|
+
if (!datetimeRegex(check).test(input.data)) {
|
|
1079
1071
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1080
1072
|
addIssueToContext(ctx, {
|
|
1081
1073
|
code: ZodIssueCode.invalid_string,
|
|
@@ -1085,8 +1077,7 @@ var ZodString = class ZodString extends ZodType {
|
|
|
1085
1077
|
status$1.dirty();
|
|
1086
1078
|
}
|
|
1087
1079
|
} else if (check.kind === "date") {
|
|
1088
|
-
|
|
1089
|
-
if (!regex$1.test(input.data)) {
|
|
1080
|
+
if (!dateRegex.test(input.data)) {
|
|
1090
1081
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1091
1082
|
addIssueToContext(ctx, {
|
|
1092
1083
|
code: ZodIssueCode.invalid_string,
|
|
@@ -1096,8 +1087,7 @@ var ZodString = class ZodString extends ZodType {
|
|
|
1096
1087
|
status$1.dirty();
|
|
1097
1088
|
}
|
|
1098
1089
|
} else if (check.kind === "time") {
|
|
1099
|
-
|
|
1100
|
-
if (!regex$1.test(input.data)) {
|
|
1090
|
+
if (!timeRegex(check).test(input.data)) {
|
|
1101
1091
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1102
1092
|
addIssueToContext(ctx, {
|
|
1103
1093
|
code: ZodIssueCode.invalid_string,
|
|
@@ -1465,8 +1455,7 @@ var ZodNumber = class ZodNumber extends ZodType {
|
|
|
1465
1455
|
}
|
|
1466
1456
|
_parse(input) {
|
|
1467
1457
|
if (this._def.coerce) input.data = Number(input.data);
|
|
1468
|
-
|
|
1469
|
-
if (parsedType !== ZodParsedType.number) {
|
|
1458
|
+
if (this._getType(input) !== ZodParsedType.number) {
|
|
1470
1459
|
const ctx$1 = this._getOrReturnCtx(input);
|
|
1471
1460
|
addIssueToContext(ctx$1, {
|
|
1472
1461
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1489,8 +1478,7 @@ var ZodNumber = class ZodNumber extends ZodType {
|
|
|
1489
1478
|
status$1.dirty();
|
|
1490
1479
|
}
|
|
1491
1480
|
} else if (check.kind === "min") {
|
|
1492
|
-
|
|
1493
|
-
if (tooSmall) {
|
|
1481
|
+
if (check.inclusive ? input.data < check.value : input.data <= check.value) {
|
|
1494
1482
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1495
1483
|
addIssueToContext(ctx, {
|
|
1496
1484
|
code: ZodIssueCode.too_small,
|
|
@@ -1503,8 +1491,7 @@ var ZodNumber = class ZodNumber extends ZodType {
|
|
|
1503
1491
|
status$1.dirty();
|
|
1504
1492
|
}
|
|
1505
1493
|
} else if (check.kind === "max") {
|
|
1506
|
-
|
|
1507
|
-
if (tooBig) {
|
|
1494
|
+
if (check.inclusive ? input.data > check.value : input.data >= check.value) {
|
|
1508
1495
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1509
1496
|
addIssueToContext(ctx, {
|
|
1510
1497
|
code: ZodIssueCode.too_big,
|
|
@@ -1683,13 +1670,11 @@ var ZodBigInt = class ZodBigInt extends ZodType {
|
|
|
1683
1670
|
} catch {
|
|
1684
1671
|
return this._getInvalidInput(input);
|
|
1685
1672
|
}
|
|
1686
|
-
|
|
1687
|
-
if (parsedType !== ZodParsedType.bigint) return this._getInvalidInput(input);
|
|
1673
|
+
if (this._getType(input) !== ZodParsedType.bigint) return this._getInvalidInput(input);
|
|
1688
1674
|
let ctx = void 0;
|
|
1689
1675
|
const status$1 = new ParseStatus();
|
|
1690
1676
|
for (const check of this._def.checks) if (check.kind === "min") {
|
|
1691
|
-
|
|
1692
|
-
if (tooSmall) {
|
|
1677
|
+
if (check.inclusive ? input.data < check.value : input.data <= check.value) {
|
|
1693
1678
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1694
1679
|
addIssueToContext(ctx, {
|
|
1695
1680
|
code: ZodIssueCode.too_small,
|
|
@@ -1701,8 +1686,7 @@ var ZodBigInt = class ZodBigInt extends ZodType {
|
|
|
1701
1686
|
status$1.dirty();
|
|
1702
1687
|
}
|
|
1703
1688
|
} else if (check.kind === "max") {
|
|
1704
|
-
|
|
1705
|
-
if (tooBig) {
|
|
1689
|
+
if (check.inclusive ? input.data > check.value : input.data >= check.value) {
|
|
1706
1690
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1707
1691
|
addIssueToContext(ctx, {
|
|
1708
1692
|
code: ZodIssueCode.too_big,
|
|
@@ -1832,8 +1816,7 @@ ZodBigInt.create = (params) => {
|
|
|
1832
1816
|
var ZodBoolean = class extends ZodType {
|
|
1833
1817
|
_parse(input) {
|
|
1834
1818
|
if (this._def.coerce) input.data = Boolean(input.data);
|
|
1835
|
-
|
|
1836
|
-
if (parsedType !== ZodParsedType.boolean) {
|
|
1819
|
+
if (this._getType(input) !== ZodParsedType.boolean) {
|
|
1837
1820
|
const ctx = this._getOrReturnCtx(input);
|
|
1838
1821
|
addIssueToContext(ctx, {
|
|
1839
1822
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1855,8 +1838,7 @@ ZodBoolean.create = (params) => {
|
|
|
1855
1838
|
var ZodDate = class ZodDate extends ZodType {
|
|
1856
1839
|
_parse(input) {
|
|
1857
1840
|
if (this._def.coerce) input.data = new Date(input.data);
|
|
1858
|
-
|
|
1859
|
-
if (parsedType !== ZodParsedType.date) {
|
|
1841
|
+
if (this._getType(input) !== ZodParsedType.date) {
|
|
1860
1842
|
const ctx$1 = this._getOrReturnCtx(input);
|
|
1861
1843
|
addIssueToContext(ctx$1, {
|
|
1862
1844
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1949,8 +1931,7 @@ ZodDate.create = (params) => {
|
|
|
1949
1931
|
};
|
|
1950
1932
|
var ZodSymbol = class extends ZodType {
|
|
1951
1933
|
_parse(input) {
|
|
1952
|
-
|
|
1953
|
-
if (parsedType !== ZodParsedType.symbol) {
|
|
1934
|
+
if (this._getType(input) !== ZodParsedType.symbol) {
|
|
1954
1935
|
const ctx = this._getOrReturnCtx(input);
|
|
1955
1936
|
addIssueToContext(ctx, {
|
|
1956
1937
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1970,8 +1951,7 @@ ZodSymbol.create = (params) => {
|
|
|
1970
1951
|
};
|
|
1971
1952
|
var ZodUndefined = class extends ZodType {
|
|
1972
1953
|
_parse(input) {
|
|
1973
|
-
|
|
1974
|
-
if (parsedType !== ZodParsedType.undefined) {
|
|
1954
|
+
if (this._getType(input) !== ZodParsedType.undefined) {
|
|
1975
1955
|
const ctx = this._getOrReturnCtx(input);
|
|
1976
1956
|
addIssueToContext(ctx, {
|
|
1977
1957
|
code: ZodIssueCode.invalid_type,
|
|
@@ -1991,8 +1971,7 @@ ZodUndefined.create = (params) => {
|
|
|
1991
1971
|
};
|
|
1992
1972
|
var ZodNull = class extends ZodType {
|
|
1993
1973
|
_parse(input) {
|
|
1994
|
-
|
|
1995
|
-
if (parsedType !== ZodParsedType.null) {
|
|
1974
|
+
if (this._getType(input) !== ZodParsedType.null) {
|
|
1996
1975
|
const ctx = this._getOrReturnCtx(input);
|
|
1997
1976
|
addIssueToContext(ctx, {
|
|
1998
1977
|
code: ZodIssueCode.invalid_type,
|
|
@@ -2059,8 +2038,7 @@ ZodNever.create = (params) => {
|
|
|
2059
2038
|
};
|
|
2060
2039
|
var ZodVoid = class extends ZodType {
|
|
2061
2040
|
_parse(input) {
|
|
2062
|
-
|
|
2063
|
-
if (parsedType !== ZodParsedType.undefined) {
|
|
2041
|
+
if (this._getType(input) !== ZodParsedType.undefined) {
|
|
2064
2042
|
const ctx = this._getOrReturnCtx(input);
|
|
2065
2043
|
addIssueToContext(ctx, {
|
|
2066
2044
|
code: ZodIssueCode.invalid_type,
|
|
@@ -2231,8 +2209,7 @@ var ZodObject = class ZodObject extends ZodType {
|
|
|
2231
2209
|
return this._cached;
|
|
2232
2210
|
}
|
|
2233
2211
|
_parse(input) {
|
|
2234
|
-
|
|
2235
|
-
if (parsedType !== ZodParsedType.object) {
|
|
2212
|
+
if (this._getType(input) !== ZodParsedType.object) {
|
|
2236
2213
|
const ctx$1 = this._getOrReturnCtx(input);
|
|
2237
2214
|
addIssueToContext(ctx$1, {
|
|
2238
2215
|
code: ZodIssueCode.invalid_type,
|
|
@@ -2354,7 +2331,7 @@ var ZodObject = class ZodObject extends ZodType {
|
|
|
2354
2331
|
* upgrade if you are experiencing issues.
|
|
2355
2332
|
*/
|
|
2356
2333
|
merge(merging) {
|
|
2357
|
-
|
|
2334
|
+
return new ZodObject({
|
|
2358
2335
|
unknownKeys: merging._def.unknownKeys,
|
|
2359
2336
|
catchall: merging._def.catchall,
|
|
2360
2337
|
shape: () => ({
|
|
@@ -2363,7 +2340,6 @@ var ZodObject = class ZodObject extends ZodType {
|
|
|
2363
2340
|
}),
|
|
2364
2341
|
typeName: ZodFirstPartyTypeKind.ZodObject
|
|
2365
2342
|
});
|
|
2366
|
-
return merged;
|
|
2367
2343
|
}
|
|
2368
2344
|
setKey(key$1, schema) {
|
|
2369
2345
|
return this.augment({ [key$1]: schema });
|
|
@@ -2412,8 +2388,7 @@ var ZodObject = class ZodObject extends ZodType {
|
|
|
2412
2388
|
const newShape = {};
|
|
2413
2389
|
for (const key$1 of util$6.objectKeys(this.shape)) if (mask && !mask[key$1]) newShape[key$1] = this.shape[key$1];
|
|
2414
2390
|
else {
|
|
2415
|
-
|
|
2416
|
-
let newField = fieldSchema;
|
|
2391
|
+
let newField = this.shape[key$1];
|
|
2417
2392
|
while (newField instanceof ZodOptional) newField = newField._def.innerType;
|
|
2418
2393
|
newShape[key$1] = newField;
|
|
2419
2394
|
}
|
|
@@ -2728,8 +2703,7 @@ var ZodTuple = class ZodTuple extends ZodType {
|
|
|
2728
2703
|
});
|
|
2729
2704
|
return INVALID;
|
|
2730
2705
|
}
|
|
2731
|
-
|
|
2732
|
-
if (!rest && ctx.data.length > this._def.items.length) {
|
|
2706
|
+
if (!this._def.rest && ctx.data.length > this._def.items.length) {
|
|
2733
2707
|
addIssueToContext(ctx, {
|
|
2734
2708
|
code: ZodIssueCode.too_big,
|
|
2735
2709
|
maximum: this._def.items.length,
|
|
@@ -3025,11 +2999,10 @@ var ZodFunction = class ZodFunction extends ZodType {
|
|
|
3025
2999
|
throw error;
|
|
3026
3000
|
});
|
|
3027
3001
|
const result = await Reflect.apply(fn, this, parsedArgs);
|
|
3028
|
-
|
|
3002
|
+
return await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
3029
3003
|
error.addIssue(makeReturnsIssue(result, e));
|
|
3030
3004
|
throw error;
|
|
3031
3005
|
});
|
|
3032
|
-
return parsedReturns;
|
|
3033
3006
|
});
|
|
3034
3007
|
} else {
|
|
3035
3008
|
const me = this;
|
|
@@ -3062,12 +3035,10 @@ var ZodFunction = class ZodFunction extends ZodType {
|
|
|
3062
3035
|
});
|
|
3063
3036
|
}
|
|
3064
3037
|
implement(func) {
|
|
3065
|
-
|
|
3066
|
-
return validatedFunc;
|
|
3038
|
+
return this.parse(func);
|
|
3067
3039
|
}
|
|
3068
3040
|
strictImplement(func) {
|
|
3069
|
-
|
|
3070
|
-
return validatedFunc;
|
|
3041
|
+
return this.parse(func);
|
|
3071
3042
|
}
|
|
3072
3043
|
static create(args, returns, params) {
|
|
3073
3044
|
return new ZodFunction({
|
|
@@ -3084,8 +3055,7 @@ var ZodLazy = class extends ZodType {
|
|
|
3084
3055
|
}
|
|
3085
3056
|
_parse(input) {
|
|
3086
3057
|
const { ctx } = this._processInputParams(input);
|
|
3087
|
-
|
|
3088
|
-
return lazySchema._parse({
|
|
3058
|
+
return this._def.getter()._parse({
|
|
3089
3059
|
data: ctx.data,
|
|
3090
3060
|
path: ctx.path,
|
|
3091
3061
|
parent: ctx
|
|
@@ -3387,8 +3357,7 @@ ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
|
|
|
3387
3357
|
};
|
|
3388
3358
|
var ZodOptional = class extends ZodType {
|
|
3389
3359
|
_parse(input) {
|
|
3390
|
-
|
|
3391
|
-
if (parsedType === ZodParsedType.undefined) return OK(void 0);
|
|
3360
|
+
if (this._getType(input) === ZodParsedType.undefined) return OK(void 0);
|
|
3392
3361
|
return this._def.innerType._parse(input);
|
|
3393
3362
|
}
|
|
3394
3363
|
unwrap() {
|
|
@@ -3404,8 +3373,7 @@ ZodOptional.create = (type, params) => {
|
|
|
3404
3373
|
};
|
|
3405
3374
|
var ZodNullable = class extends ZodType {
|
|
3406
3375
|
_parse(input) {
|
|
3407
|
-
|
|
3408
|
-
if (parsedType === ZodParsedType.null) return OK(null);
|
|
3376
|
+
if (this._getType(input) === ZodParsedType.null) return OK(null);
|
|
3409
3377
|
return this._def.innerType._parse(input);
|
|
3410
3378
|
}
|
|
3411
3379
|
unwrap() {
|
|
@@ -3492,8 +3460,7 @@ ZodCatch.create = (type, params) => {
|
|
|
3492
3460
|
};
|
|
3493
3461
|
var ZodNaN = class extends ZodType {
|
|
3494
3462
|
_parse(input) {
|
|
3495
|
-
|
|
3496
|
-
if (parsedType !== ZodParsedType.nan) {
|
|
3463
|
+
if (this._getType(input) !== ZodParsedType.nan) {
|
|
3497
3464
|
const ctx = this._getOrReturnCtx(input);
|
|
3498
3465
|
addIssueToContext(ctx, {
|
|
3499
3466
|
code: ZodIssueCode.invalid_type,
|
|
@@ -3672,9 +3639,10 @@ const optionalType = ZodOptional.create;
|
|
|
3672
3639
|
const nullableType = ZodNullable.create;
|
|
3673
3640
|
const preprocessType = ZodEffects.createWithPreprocess;
|
|
3674
3641
|
const pipelineType = ZodPipeline.create;
|
|
3642
|
+
const NEVER = INVALID;
|
|
3675
3643
|
|
|
3676
3644
|
//#endregion
|
|
3677
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
3645
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
3678
3646
|
const LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
3679
3647
|
const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
3680
3648
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
@@ -3783,6 +3751,14 @@ const CancelledNotificationSchema = NotificationSchema.extend({
|
|
|
3783
3751
|
})
|
|
3784
3752
|
});
|
|
3785
3753
|
/**
|
|
3754
|
+
* Icon schema for use in tools, prompts, resources, and implementations.
|
|
3755
|
+
*/
|
|
3756
|
+
const IconSchema = objectType({
|
|
3757
|
+
src: stringType(),
|
|
3758
|
+
mimeType: optionalType(stringType()),
|
|
3759
|
+
sizes: optionalType(stringType())
|
|
3760
|
+
}).passthrough();
|
|
3761
|
+
/**
|
|
3786
3762
|
* Base metadata interface for common properties across resources, tools, prompts, and implementations.
|
|
3787
3763
|
*/
|
|
3788
3764
|
const BaseMetadataSchema = objectType({
|
|
@@ -3792,7 +3768,11 @@ const BaseMetadataSchema = objectType({
|
|
|
3792
3768
|
/**
|
|
3793
3769
|
* Describes the name and version of an MCP implementation.
|
|
3794
3770
|
*/
|
|
3795
|
-
const ImplementationSchema = BaseMetadataSchema.extend({
|
|
3771
|
+
const ImplementationSchema = BaseMetadataSchema.extend({
|
|
3772
|
+
version: stringType(),
|
|
3773
|
+
websiteUrl: optionalType(stringType()),
|
|
3774
|
+
icons: optionalType(arrayType(IconSchema))
|
|
3775
|
+
});
|
|
3796
3776
|
/**
|
|
3797
3777
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
3798
3778
|
*/
|
|
@@ -3890,6 +3870,7 @@ const ResourceSchema = BaseMetadataSchema.extend({
|
|
|
3890
3870
|
uri: stringType(),
|
|
3891
3871
|
description: optionalType(stringType()),
|
|
3892
3872
|
mimeType: optionalType(stringType()),
|
|
3873
|
+
icons: optionalType(arrayType(IconSchema)),
|
|
3893
3874
|
_meta: optionalType(objectType({}).passthrough())
|
|
3894
3875
|
});
|
|
3895
3876
|
/**
|
|
@@ -3967,6 +3948,7 @@ const PromptArgumentSchema = objectType({
|
|
|
3967
3948
|
const PromptSchema = BaseMetadataSchema.extend({
|
|
3968
3949
|
description: optionalType(stringType()),
|
|
3969
3950
|
arguments: optionalType(arrayType(PromptArgumentSchema)),
|
|
3951
|
+
icons: optionalType(arrayType(IconSchema)),
|
|
3970
3952
|
_meta: optionalType(objectType({}).passthrough())
|
|
3971
3953
|
});
|
|
3972
3954
|
/**
|
|
@@ -4088,6 +4070,7 @@ const ToolSchema = BaseMetadataSchema.extend({
|
|
|
4088
4070
|
required: optionalType(arrayType(stringType()))
|
|
4089
4071
|
}).passthrough()),
|
|
4090
4072
|
annotations: optionalType(ToolAnnotationsSchema),
|
|
4073
|
+
icons: optionalType(arrayType(IconSchema)),
|
|
4091
4074
|
_meta: optionalType(objectType({}).passthrough())
|
|
4092
4075
|
});
|
|
4093
4076
|
/**
|
|
@@ -4477,7 +4460,7 @@ var require_bytes = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/bytes@3.1.2
|
|
|
4477
4460
|
* @public
|
|
4478
4461
|
*/
|
|
4479
4462
|
module.exports = bytes$1;
|
|
4480
|
-
module.exports.format = format
|
|
4463
|
+
module.exports.format = format;
|
|
4481
4464
|
module.exports.parse = parse$1;
|
|
4482
4465
|
/**
|
|
4483
4466
|
* Module variables.
|
|
@@ -4510,7 +4493,7 @@ var require_bytes = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/bytes@3.1.2
|
|
|
4510
4493
|
*/
|
|
4511
4494
|
function bytes$1(value, options) {
|
|
4512
4495
|
if (typeof value === "string") return parse$1(value);
|
|
4513
|
-
if (typeof value === "number") return format
|
|
4496
|
+
if (typeof value === "number") return format(value, options);
|
|
4514
4497
|
return null;
|
|
4515
4498
|
}
|
|
4516
4499
|
/**
|
|
@@ -4530,7 +4513,7 @@ var require_bytes = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/bytes@3.1.2
|
|
|
4530
4513
|
* @returns {string|null}
|
|
4531
4514
|
* @public
|
|
4532
4515
|
*/
|
|
4533
|
-
function format
|
|
4516
|
+
function format(value, options) {
|
|
4534
4517
|
if (!Number.isFinite(value)) return null;
|
|
4535
4518
|
var mag = Math.abs(value);
|
|
4536
4519
|
var thousandsSeparator = options && options.thousandsSeparator || "";
|
|
@@ -4544,8 +4527,7 @@ var require_bytes = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/bytes@3.1.2
|
|
|
4544
4527
|
else if (mag >= map.mb) unit = "MB";
|
|
4545
4528
|
else if (mag >= map.kb) unit = "KB";
|
|
4546
4529
|
else unit = "B";
|
|
4547
|
-
var
|
|
4548
|
-
var str = val.toFixed(decimalPlaces);
|
|
4530
|
+
var str = (value / map[unit.toLowerCase()]).toFixed(decimalPlaces);
|
|
4549
4531
|
if (!fixedDecimals) str = str.replace(formatDecimalsRegExp, "$1");
|
|
4550
4532
|
if (thousandsSeparator) str = str.split(".").map(function(s, i$3) {
|
|
4551
4533
|
return i$3 === 0 ? s.replace(formatThousandsRegExp, thousandsSeparator) : s;
|
|
@@ -4652,8 +4634,7 @@ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/n
|
|
|
4652
4634
|
function depd(namespace) {
|
|
4653
4635
|
if (!namespace) throw new TypeError("argument namespace is required");
|
|
4654
4636
|
var stack = getStack();
|
|
4655
|
-
var
|
|
4656
|
-
var file = site[0];
|
|
4637
|
+
var file = callSiteLocation(stack[1])[0];
|
|
4657
4638
|
function deprecate$1(message) {
|
|
4658
4639
|
log.call(deprecate$1, message);
|
|
4659
4640
|
}
|
|
@@ -4678,8 +4659,7 @@ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/n
|
|
|
4678
4659
|
* @private
|
|
4679
4660
|
*/
|
|
4680
4661
|
function eehaslisteners(emitter, type) {
|
|
4681
|
-
|
|
4682
|
-
return count > 0;
|
|
4662
|
+
return (typeof emitter.listenerCount !== "function" ? emitter.listeners(type).length : emitter.listenerCount(type)) > 0;
|
|
4683
4663
|
}
|
|
4684
4664
|
/**
|
|
4685
4665
|
* Determine if namespace is ignored.
|
|
@@ -4738,8 +4718,7 @@ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/n
|
|
|
4738
4718
|
process.emit("deprecation", err);
|
|
4739
4719
|
return;
|
|
4740
4720
|
}
|
|
4741
|
-
var
|
|
4742
|
-
var output = format$2.call(this, msg, caller, stack.slice(i$3));
|
|
4721
|
+
var output = (process.stderr.isTTY ? formatColor : formatPlain).call(this, msg, caller, stack.slice(i$3));
|
|
4743
4722
|
process.stderr.write(output + "\n", "utf8");
|
|
4744
4723
|
}
|
|
4745
4724
|
/**
|
|
@@ -4776,8 +4755,7 @@ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/n
|
|
|
4776
4755
|
* Format deprecation message without color.
|
|
4777
4756
|
*/
|
|
4778
4757
|
function formatPlain(msg, caller, stack) {
|
|
4779
|
-
var
|
|
4780
|
-
var formatted = timestamp + " " + this._namespace + " deprecated " + msg;
|
|
4758
|
+
var formatted = (/* @__PURE__ */ new Date()).toUTCString() + " " + this._namespace + " deprecated " + msg;
|
|
4781
4759
|
if (this._traced) {
|
|
4782
4760
|
for (var i$3 = 0; i$3 < stack.length; i$3++) formatted += "\n at " + stack[i$3].toString();
|
|
4783
4761
|
return formatted;
|
|
@@ -4833,8 +4811,7 @@ var require_depd = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/depd@2.0.0/n
|
|
|
4833
4811
|
var stack = getStack();
|
|
4834
4812
|
var site = callSiteLocation(stack[1]);
|
|
4835
4813
|
site.name = fn.name;
|
|
4836
|
-
|
|
4837
|
-
return deprecatedfn;
|
|
4814
|
+
return new Function("fn", "log", "deprecate", "message", "site", "\"use strict\"\nreturn function (" + args + ") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(fn, log, this, message, site);
|
|
4838
4815
|
}
|
|
4839
4816
|
/**
|
|
4840
4817
|
* Wrap property in a deprecation message.
|
|
@@ -5377,8 +5354,8 @@ var require_safer = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/safer-buffe
|
|
|
5377
5354
|
}) });
|
|
5378
5355
|
|
|
5379
5356
|
//#endregion
|
|
5380
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
5381
|
-
var require_bom_handling = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
5357
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/bom-handling.js
|
|
5358
|
+
var require_bom_handling = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/bom-handling.js": ((exports) => {
|
|
5382
5359
|
var BOMChar = "";
|
|
5383
5360
|
exports.PrependBOM = PrependBOMWrapper;
|
|
5384
5361
|
function PrependBOMWrapper(encoder, options) {
|
|
@@ -5417,8 +5394,18 @@ var require_bom_handling = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/icon
|
|
|
5417
5394
|
}) });
|
|
5418
5395
|
|
|
5419
5396
|
//#endregion
|
|
5420
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
5421
|
-
var
|
|
5397
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
5398
|
+
var require_merge_exports = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/helpers/merge-exports.js": ((exports, module) => {
|
|
5399
|
+
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
5400
|
+
function mergeModules$2(target, module$2) {
|
|
5401
|
+
for (var key$1 in module$2) if (hasOwn(module$2, key$1)) target[key$1] = module$2[key$1];
|
|
5402
|
+
}
|
|
5403
|
+
module.exports = mergeModules$2;
|
|
5404
|
+
}) });
|
|
5405
|
+
|
|
5406
|
+
//#endregion
|
|
5407
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js
|
|
5408
|
+
var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/internal.js": ((exports, module) => {
|
|
5422
5409
|
var Buffer$8 = require_safer().Buffer;
|
|
5423
5410
|
module.exports = {
|
|
5424
5411
|
utf8: {
|
|
@@ -5444,6 +5431,7 @@ var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
5444
5431
|
this.enc = codecOptions.encodingName;
|
|
5445
5432
|
this.bomAware = codecOptions.bomAware;
|
|
5446
5433
|
if (this.enc === "base64") this.encoder = InternalEncoderBase64;
|
|
5434
|
+
else if (this.enc === "utf8") this.encoder = InternalEncoderUtf8;
|
|
5447
5435
|
else if (this.enc === "cesu8") {
|
|
5448
5436
|
this.enc = "utf8";
|
|
5449
5437
|
this.encoder = InternalEncoderCesu8;
|
|
@@ -5456,7 +5444,6 @@ var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
5456
5444
|
InternalCodec.prototype.encoder = InternalEncoder;
|
|
5457
5445
|
InternalCodec.prototype.decoder = InternalDecoder;
|
|
5458
5446
|
var StringDecoder = __require("string_decoder").StringDecoder;
|
|
5459
|
-
if (!StringDecoder.prototype.end) StringDecoder.prototype.end = function() {};
|
|
5460
5447
|
function InternalDecoder(options, codec) {
|
|
5461
5448
|
this.decoder = new StringDecoder(codec.enc);
|
|
5462
5449
|
}
|
|
@@ -5489,7 +5476,8 @@ var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
5489
5476
|
};
|
|
5490
5477
|
function InternalEncoderCesu8(options, codec) {}
|
|
5491
5478
|
InternalEncoderCesu8.prototype.write = function(str) {
|
|
5492
|
-
var buf = Buffer$8.alloc(str.length * 3)
|
|
5479
|
+
var buf = Buffer$8.alloc(str.length * 3);
|
|
5480
|
+
var bufIdx = 0;
|
|
5493
5481
|
for (var i$3 = 0; i$3 < str.length; i$3++) {
|
|
5494
5482
|
var charCode = str.charCodeAt(i$3);
|
|
5495
5483
|
if (charCode < 128) buf[bufIdx++] = charCode;
|
|
@@ -5512,7 +5500,10 @@ var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
5512
5500
|
this.defaultCharUnicode = codec.defaultCharUnicode;
|
|
5513
5501
|
}
|
|
5514
5502
|
InternalDecoderCesu8.prototype.write = function(buf) {
|
|
5515
|
-
var acc = this.acc
|
|
5503
|
+
var acc = this.acc;
|
|
5504
|
+
var contBytes = this.contBytes;
|
|
5505
|
+
var accBytes = this.accBytes;
|
|
5506
|
+
var res = "";
|
|
5516
5507
|
for (var i$3 = 0; i$3 < buf.length; i$3++) {
|
|
5517
5508
|
var curByte = buf[i$3];
|
|
5518
5509
|
if ((curByte & 192) !== 128) {
|
|
@@ -5549,11 +5540,35 @@ var require_internal = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
5549
5540
|
if (this.contBytes > 0) res += this.defaultCharUnicode;
|
|
5550
5541
|
return res;
|
|
5551
5542
|
};
|
|
5543
|
+
function InternalEncoderUtf8(options, codec) {
|
|
5544
|
+
this.highSurrogate = "";
|
|
5545
|
+
}
|
|
5546
|
+
InternalEncoderUtf8.prototype.write = function(str) {
|
|
5547
|
+
if (this.highSurrogate) {
|
|
5548
|
+
str = this.highSurrogate + str;
|
|
5549
|
+
this.highSurrogate = "";
|
|
5550
|
+
}
|
|
5551
|
+
if (str.length > 0) {
|
|
5552
|
+
var charCode = str.charCodeAt(str.length - 1);
|
|
5553
|
+
if (charCode >= 55296 && charCode < 56320) {
|
|
5554
|
+
this.highSurrogate = str[str.length - 1];
|
|
5555
|
+
str = str.slice(0, str.length - 1);
|
|
5556
|
+
}
|
|
5557
|
+
}
|
|
5558
|
+
return Buffer$8.from(str, this.enc);
|
|
5559
|
+
};
|
|
5560
|
+
InternalEncoderUtf8.prototype.end = function() {
|
|
5561
|
+
if (this.highSurrogate) {
|
|
5562
|
+
var str = this.highSurrogate;
|
|
5563
|
+
this.highSurrogate = "";
|
|
5564
|
+
return Buffer$8.from(str, this.enc);
|
|
5565
|
+
}
|
|
5566
|
+
};
|
|
5552
5567
|
}) });
|
|
5553
5568
|
|
|
5554
5569
|
//#endregion
|
|
5555
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
5556
|
-
var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
5570
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js
|
|
5571
|
+
var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf32.js": ((exports) => {
|
|
5557
5572
|
var Buffer$7 = require_safer().Buffer;
|
|
5558
5573
|
exports._utf32 = Utf32Codec;
|
|
5559
5574
|
function Utf32Codec(codecOptions, iconv$2) {
|
|
@@ -5584,8 +5599,8 @@ var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5584
5599
|
var offset = 0;
|
|
5585
5600
|
for (var i$3 = 0; i$3 < src.length; i$3 += 2) {
|
|
5586
5601
|
var code = src.readUInt16LE(i$3);
|
|
5587
|
-
var isHighSurrogate =
|
|
5588
|
-
var isLowSurrogate =
|
|
5602
|
+
var isHighSurrogate = code >= 55296 && code < 56320;
|
|
5603
|
+
var isLowSurrogate = code >= 56320 && code < 57344;
|
|
5589
5604
|
if (this.highSurrogate) if (isHighSurrogate || !isLowSurrogate) {
|
|
5590
5605
|
write32.call(dst, this.highSurrogate, offset);
|
|
5591
5606
|
offset += 4;
|
|
@@ -5716,9 +5731,11 @@ var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5716
5731
|
function detectEncoding$1(bufs, defaultEncoding) {
|
|
5717
5732
|
var b = [];
|
|
5718
5733
|
var charsProcessed = 0;
|
|
5719
|
-
var invalidLE = 0
|
|
5720
|
-
var
|
|
5721
|
-
|
|
5734
|
+
var invalidLE = 0;
|
|
5735
|
+
var invalidBE = 0;
|
|
5736
|
+
var bmpCharsLE = 0;
|
|
5737
|
+
var bmpCharsBE = 0;
|
|
5738
|
+
outerLoop: for (var i$3 = 0; i$3 < bufs.length; i$3++) {
|
|
5722
5739
|
var buf = bufs[i$3];
|
|
5723
5740
|
for (var j = 0; j < buf.length; j++) {
|
|
5724
5741
|
b.push(buf[j]);
|
|
@@ -5733,7 +5750,7 @@ var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5733
5750
|
if ((b[0] !== 0 || b[1] !== 0) && b[2] === 0 && b[3] === 0) bmpCharsLE++;
|
|
5734
5751
|
b.length = 0;
|
|
5735
5752
|
charsProcessed++;
|
|
5736
|
-
if (charsProcessed >= 100) break
|
|
5753
|
+
if (charsProcessed >= 100) break outerLoop;
|
|
5737
5754
|
}
|
|
5738
5755
|
}
|
|
5739
5756
|
}
|
|
@@ -5744,8 +5761,8 @@ var require_utf32 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5744
5761
|
}) });
|
|
5745
5762
|
|
|
5746
5763
|
//#endregion
|
|
5747
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
5748
|
-
var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
5764
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf16.js
|
|
5765
|
+
var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf16.js": ((exports) => {
|
|
5749
5766
|
var Buffer$6 = require_safer().Buffer;
|
|
5750
5767
|
exports.utf16be = Utf16BECodec;
|
|
5751
5768
|
function Utf16BECodec() {}
|
|
@@ -5768,7 +5785,9 @@ var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5768
5785
|
}
|
|
5769
5786
|
Utf16BEDecoder.prototype.write = function(buf) {
|
|
5770
5787
|
if (buf.length == 0) return "";
|
|
5771
|
-
var buf2 = Buffer$6.alloc(buf.length + 1)
|
|
5788
|
+
var buf2 = Buffer$6.alloc(buf.length + 1);
|
|
5789
|
+
var i$3 = 0;
|
|
5790
|
+
var j = 0;
|
|
5772
5791
|
if (this.overflowByte !== -1) {
|
|
5773
5792
|
buf2[0] = buf[0];
|
|
5774
5793
|
buf2[1] = this.overflowByte;
|
|
@@ -5839,8 +5858,9 @@ var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5839
5858
|
function detectEncoding(bufs, defaultEncoding) {
|
|
5840
5859
|
var b = [];
|
|
5841
5860
|
var charsProcessed = 0;
|
|
5842
|
-
var asciiCharsLE = 0
|
|
5843
|
-
|
|
5861
|
+
var asciiCharsLE = 0;
|
|
5862
|
+
var asciiCharsBE = 0;
|
|
5863
|
+
outerLoop: for (var i$3 = 0; i$3 < bufs.length; i$3++) {
|
|
5844
5864
|
var buf = bufs[i$3];
|
|
5845
5865
|
for (var j = 0; j < buf.length; j++) {
|
|
5846
5866
|
b.push(buf[j]);
|
|
@@ -5853,7 +5873,7 @@ var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5853
5873
|
if (b[0] !== 0 && b[1] === 0) asciiCharsLE++;
|
|
5854
5874
|
b.length = 0;
|
|
5855
5875
|
charsProcessed++;
|
|
5856
|
-
if (charsProcessed >= 100) break
|
|
5876
|
+
if (charsProcessed >= 100) break outerLoop;
|
|
5857
5877
|
}
|
|
5858
5878
|
}
|
|
5859
5879
|
}
|
|
@@ -5864,8 +5884,8 @@ var require_utf16 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
5864
5884
|
}) });
|
|
5865
5885
|
|
|
5866
5886
|
//#endregion
|
|
5867
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
5868
|
-
var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
5887
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf7.js
|
|
5888
|
+
var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/utf7.js": ((exports) => {
|
|
5869
5889
|
var Buffer$5 = require_safer().Buffer;
|
|
5870
5890
|
exports.utf7 = Utf7Codec;
|
|
5871
5891
|
exports.unicode11utf7 = "utf7";
|
|
@@ -5893,9 +5913,14 @@ var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0
|
|
|
5893
5913
|
var base64Regex = /[A-Za-z0-9\/+]/;
|
|
5894
5914
|
var base64Chars = [];
|
|
5895
5915
|
for (var i$2 = 0; i$2 < 256; i$2++) base64Chars[i$2] = base64Regex.test(String.fromCharCode(i$2));
|
|
5896
|
-
var plusChar = "+".charCodeAt(0)
|
|
5916
|
+
var plusChar = "+".charCodeAt(0);
|
|
5917
|
+
var minusChar = "-".charCodeAt(0);
|
|
5918
|
+
var andChar = "&".charCodeAt(0);
|
|
5897
5919
|
Utf7Decoder.prototype.write = function(buf) {
|
|
5898
|
-
var res = ""
|
|
5920
|
+
var res = "";
|
|
5921
|
+
var lastI = 0;
|
|
5922
|
+
var inBase64 = this.inBase64;
|
|
5923
|
+
var base64Accum = this.base64Accum;
|
|
5899
5924
|
for (var i$3 = 0; i$3 < buf.length; i$3++) if (!inBase64) {
|
|
5900
5925
|
if (buf[i$3] == plusChar) {
|
|
5901
5926
|
res += this.iconv.decode(buf.slice(lastI, i$3), "ascii");
|
|
@@ -5946,10 +5971,14 @@ var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0
|
|
|
5946
5971
|
this.base64AccumIdx = 0;
|
|
5947
5972
|
}
|
|
5948
5973
|
Utf7IMAPEncoder.prototype.write = function(str) {
|
|
5949
|
-
var inBase64 = this.inBase64
|
|
5974
|
+
var inBase64 = this.inBase64;
|
|
5975
|
+
var base64Accum = this.base64Accum;
|
|
5976
|
+
var base64AccumIdx = this.base64AccumIdx;
|
|
5977
|
+
var buf = Buffer$5.alloc(str.length * 5 + 10);
|
|
5978
|
+
var bufIdx = 0;
|
|
5950
5979
|
for (var i$3 = 0; i$3 < str.length; i$3++) {
|
|
5951
5980
|
var uChar = str.charCodeAt(i$3);
|
|
5952
|
-
if (
|
|
5981
|
+
if (uChar >= 32 && uChar <= 126) {
|
|
5953
5982
|
if (inBase64) {
|
|
5954
5983
|
if (base64AccumIdx > 0) {
|
|
5955
5984
|
bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -5982,7 +6011,8 @@ var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0
|
|
|
5982
6011
|
return buf.slice(0, bufIdx);
|
|
5983
6012
|
};
|
|
5984
6013
|
Utf7IMAPEncoder.prototype.end = function() {
|
|
5985
|
-
var buf = Buffer$5.alloc(10)
|
|
6014
|
+
var buf = Buffer$5.alloc(10);
|
|
6015
|
+
var bufIdx = 0;
|
|
5986
6016
|
if (this.inBase64) {
|
|
5987
6017
|
if (this.base64AccumIdx > 0) {
|
|
5988
6018
|
bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -6001,7 +6031,10 @@ var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0
|
|
|
6001
6031
|
var base64IMAPChars = base64Chars.slice();
|
|
6002
6032
|
base64IMAPChars[",".charCodeAt(0)] = true;
|
|
6003
6033
|
Utf7IMAPDecoder.prototype.write = function(buf) {
|
|
6004
|
-
var res = ""
|
|
6034
|
+
var res = "";
|
|
6035
|
+
var lastI = 0;
|
|
6036
|
+
var inBase64 = this.inBase64;
|
|
6037
|
+
var base64Accum = this.base64Accum;
|
|
6005
6038
|
for (var i$3 = 0; i$3 < buf.length; i$3++) if (!inBase64) {
|
|
6006
6039
|
if (buf[i$3] == andChar) {
|
|
6007
6040
|
res += this.iconv.decode(buf.slice(lastI, i$3), "ascii");
|
|
@@ -6041,8 +6074,8 @@ var require_utf7 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0
|
|
|
6041
6074
|
}) });
|
|
6042
6075
|
|
|
6043
6076
|
//#endregion
|
|
6044
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
6045
|
-
var require_sbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
6077
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
6078
|
+
var require_sbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-codec.js": ((exports) => {
|
|
6046
6079
|
var Buffer$4 = require_safer().Buffer;
|
|
6047
6080
|
exports._sbcs = SBCSCodec;
|
|
6048
6081
|
function SBCSCodec(codecOptions, iconv$2) {
|
|
@@ -6075,7 +6108,8 @@ var require_sbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6075
6108
|
SBCSDecoder.prototype.write = function(buf) {
|
|
6076
6109
|
var decodeBuf = this.decodeBuf;
|
|
6077
6110
|
var newBuf = Buffer$4.alloc(buf.length * 2);
|
|
6078
|
-
var idx1 = 0
|
|
6111
|
+
var idx1 = 0;
|
|
6112
|
+
var idx2 = 0;
|
|
6079
6113
|
for (var i$3 = 0; i$3 < buf.length; i$3++) {
|
|
6080
6114
|
idx1 = buf[i$3] * 2;
|
|
6081
6115
|
idx2 = i$3 * 2;
|
|
@@ -6088,157 +6122,157 @@ var require_sbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6088
6122
|
}) });
|
|
6089
6123
|
|
|
6090
6124
|
//#endregion
|
|
6091
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
6092
|
-
var require_sbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
6125
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
6126
|
+
var require_sbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data.js": ((exports, module) => {
|
|
6093
6127
|
module.exports = {
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6128
|
+
10029: "maccenteuro",
|
|
6129
|
+
maccenteuro: {
|
|
6130
|
+
type: "_sbcs",
|
|
6131
|
+
chars: "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
|
|
6098
6132
|
},
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6133
|
+
808: "cp808",
|
|
6134
|
+
ibm808: "cp808",
|
|
6135
|
+
cp808: {
|
|
6136
|
+
type: "_sbcs",
|
|
6137
|
+
chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■\xA0"
|
|
6104
6138
|
},
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6139
|
+
mik: {
|
|
6140
|
+
type: "_sbcs",
|
|
6141
|
+
chars: "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0"
|
|
6108
6142
|
},
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6143
|
+
cp720: {
|
|
6144
|
+
type: "_sbcs",
|
|
6145
|
+
chars: "éâàçêëèïîّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0"
|
|
6112
6146
|
},
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6147
|
+
ascii8bit: "ascii",
|
|
6148
|
+
usascii: "ascii",
|
|
6149
|
+
ansix34: "ascii",
|
|
6150
|
+
ansix341968: "ascii",
|
|
6151
|
+
ansix341986: "ascii",
|
|
6152
|
+
csascii: "ascii",
|
|
6153
|
+
cp367: "ascii",
|
|
6154
|
+
ibm367: "ascii",
|
|
6155
|
+
isoir6: "ascii",
|
|
6156
|
+
iso646us: "ascii",
|
|
6157
|
+
iso646irv: "ascii",
|
|
6158
|
+
us: "ascii",
|
|
6159
|
+
latin1: "iso88591",
|
|
6160
|
+
latin2: "iso88592",
|
|
6161
|
+
latin3: "iso88593",
|
|
6162
|
+
latin4: "iso88594",
|
|
6163
|
+
latin5: "iso88599",
|
|
6164
|
+
latin6: "iso885910",
|
|
6165
|
+
latin7: "iso885913",
|
|
6166
|
+
latin8: "iso885914",
|
|
6167
|
+
latin9: "iso885915",
|
|
6168
|
+
latin10: "iso885916",
|
|
6169
|
+
csisolatin1: "iso88591",
|
|
6170
|
+
csisolatin2: "iso88592",
|
|
6171
|
+
csisolatin3: "iso88593",
|
|
6172
|
+
csisolatin4: "iso88594",
|
|
6173
|
+
csisolatincyrillic: "iso88595",
|
|
6174
|
+
csisolatinarabic: "iso88596",
|
|
6175
|
+
csisolatingreek: "iso88597",
|
|
6176
|
+
csisolatinhebrew: "iso88598",
|
|
6177
|
+
csisolatin5: "iso88599",
|
|
6178
|
+
csisolatin6: "iso885910",
|
|
6179
|
+
l1: "iso88591",
|
|
6180
|
+
l2: "iso88592",
|
|
6181
|
+
l3: "iso88593",
|
|
6182
|
+
l4: "iso88594",
|
|
6183
|
+
l5: "iso88599",
|
|
6184
|
+
l6: "iso885910",
|
|
6185
|
+
l7: "iso885913",
|
|
6186
|
+
l8: "iso885914",
|
|
6187
|
+
l9: "iso885915",
|
|
6188
|
+
l10: "iso885916",
|
|
6189
|
+
isoir14: "iso646jp",
|
|
6190
|
+
isoir57: "iso646cn",
|
|
6191
|
+
isoir100: "iso88591",
|
|
6192
|
+
isoir101: "iso88592",
|
|
6193
|
+
isoir109: "iso88593",
|
|
6194
|
+
isoir110: "iso88594",
|
|
6195
|
+
isoir144: "iso88595",
|
|
6196
|
+
isoir127: "iso88596",
|
|
6197
|
+
isoir126: "iso88597",
|
|
6198
|
+
isoir138: "iso88598",
|
|
6199
|
+
isoir148: "iso88599",
|
|
6200
|
+
isoir157: "iso885910",
|
|
6201
|
+
isoir166: "tis620",
|
|
6202
|
+
isoir179: "iso885913",
|
|
6203
|
+
isoir199: "iso885914",
|
|
6204
|
+
isoir203: "iso885915",
|
|
6205
|
+
isoir226: "iso885916",
|
|
6206
|
+
cp819: "iso88591",
|
|
6207
|
+
ibm819: "iso88591",
|
|
6208
|
+
cyrillic: "iso88595",
|
|
6209
|
+
arabic: "iso88596",
|
|
6210
|
+
arabic8: "iso88596",
|
|
6211
|
+
ecma114: "iso88596",
|
|
6212
|
+
asmo708: "iso88596",
|
|
6213
|
+
greek: "iso88597",
|
|
6214
|
+
greek8: "iso88597",
|
|
6215
|
+
ecma118: "iso88597",
|
|
6216
|
+
elot928: "iso88597",
|
|
6217
|
+
hebrew: "iso88598",
|
|
6218
|
+
hebrew8: "iso88598",
|
|
6219
|
+
turkish: "iso88599",
|
|
6220
|
+
turkish8: "iso88599",
|
|
6221
|
+
thai: "iso885911",
|
|
6222
|
+
thai8: "iso885911",
|
|
6223
|
+
celtic: "iso885914",
|
|
6224
|
+
celtic8: "iso885914",
|
|
6225
|
+
isoceltic: "iso885914",
|
|
6226
|
+
tis6200: "tis620",
|
|
6227
|
+
tis62025291: "tis620",
|
|
6228
|
+
tis62025330: "tis620",
|
|
6229
|
+
1e4: "macroman",
|
|
6230
|
+
10006: "macgreek",
|
|
6231
|
+
10007: "maccyrillic",
|
|
6232
|
+
10079: "maciceland",
|
|
6233
|
+
10081: "macturkish",
|
|
6234
|
+
cspc8codepage437: "cp437",
|
|
6235
|
+
cspc775baltic: "cp775",
|
|
6236
|
+
cspc850multilingual: "cp850",
|
|
6237
|
+
cspcp852: "cp852",
|
|
6238
|
+
cspc862latinhebrew: "cp862",
|
|
6239
|
+
cpgr: "cp869",
|
|
6240
|
+
msee: "cp1250",
|
|
6241
|
+
mscyrl: "cp1251",
|
|
6242
|
+
msansi: "cp1252",
|
|
6243
|
+
msgreek: "cp1253",
|
|
6244
|
+
msturk: "cp1254",
|
|
6245
|
+
mshebr: "cp1255",
|
|
6246
|
+
msarab: "cp1256",
|
|
6247
|
+
winbaltrim: "cp1257",
|
|
6248
|
+
cp20866: "koi8r",
|
|
6249
|
+
20866: "koi8r",
|
|
6250
|
+
ibm878: "koi8r",
|
|
6251
|
+
cskoi8r: "koi8r",
|
|
6252
|
+
cp21866: "koi8u",
|
|
6253
|
+
21866: "koi8u",
|
|
6254
|
+
ibm1168: "koi8u",
|
|
6255
|
+
strk10482002: "rk1048",
|
|
6256
|
+
tcvn5712: "tcvn",
|
|
6257
|
+
tcvn57121: "tcvn",
|
|
6258
|
+
gb198880: "iso646cn",
|
|
6259
|
+
cn: "iso646cn",
|
|
6260
|
+
csiso14jisc6220ro: "iso646jp",
|
|
6261
|
+
jisc62201969ro: "iso646jp",
|
|
6262
|
+
jp: "iso646jp",
|
|
6263
|
+
cshproman8: "hproman8",
|
|
6264
|
+
r8: "hproman8",
|
|
6265
|
+
roman8: "hproman8",
|
|
6266
|
+
xroman8: "hproman8",
|
|
6267
|
+
ibm1051: "hproman8",
|
|
6268
|
+
mac: "macintosh",
|
|
6269
|
+
csmacintosh: "macintosh"
|
|
6236
6270
|
};
|
|
6237
6271
|
}) });
|
|
6238
6272
|
|
|
6239
6273
|
//#endregion
|
|
6240
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
6241
|
-
var require_sbcs_data_generated = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
6274
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
6275
|
+
var require_sbcs_data_generated = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/sbcs-data-generated.js": ((exports, module) => {
|
|
6242
6276
|
module.exports = {
|
|
6243
6277
|
"437": "cp437",
|
|
6244
6278
|
"737": "cp737",
|
|
@@ -6690,11 +6724,16 @@ var require_sbcs_data_generated = /* @__PURE__ */ __commonJS({ "node_modules/.pn
|
|
|
6690
6724
|
}) });
|
|
6691
6725
|
|
|
6692
6726
|
//#endregion
|
|
6693
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
6694
|
-
var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
6727
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
6728
|
+
var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-codec.js": ((exports) => {
|
|
6695
6729
|
var Buffer$3 = require_safer().Buffer;
|
|
6696
6730
|
exports._dbcs = DBCSCodec;
|
|
6697
|
-
var UNASSIGNED = -1
|
|
6731
|
+
var UNASSIGNED = -1;
|
|
6732
|
+
var GB18030_CODE = -2;
|
|
6733
|
+
var SEQ_START = -10;
|
|
6734
|
+
var NODE_START = -1e3;
|
|
6735
|
+
var UNASSIGNED_NODE = new Array(256);
|
|
6736
|
+
var DEF_CHAR = -1;
|
|
6698
6737
|
for (var i$1 = 0; i$1 < 256; i$1++) UNASSIGNED_NODE[i$1] = UNASSIGNED;
|
|
6699
6738
|
function DBCSCodec(codecOptions, iconv$2) {
|
|
6700
6739
|
this.encodingName = codecOptions.encodingName;
|
|
@@ -6770,11 +6809,11 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6770
6809
|
var part = chunk[k];
|
|
6771
6810
|
if (typeof part === "string") for (var l = 0; l < part.length;) {
|
|
6772
6811
|
var code = part.charCodeAt(l++);
|
|
6773
|
-
if (
|
|
6812
|
+
if (code >= 55296 && code < 56320) {
|
|
6774
6813
|
var codeTrail = part.charCodeAt(l++);
|
|
6775
|
-
if (
|
|
6814
|
+
if (codeTrail >= 56320 && codeTrail < 57344) writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
|
|
6776
6815
|
else throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
|
|
6777
|
-
} else if (
|
|
6816
|
+
} else if (code > 4080 && code <= 4095) {
|
|
6778
6817
|
var len = 4095 - code + 2;
|
|
6779
6818
|
var seq = [];
|
|
6780
6819
|
for (var m = 0; m < len; m++) seq.push(part.charCodeAt(l++));
|
|
@@ -6857,7 +6896,12 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6857
6896
|
this.gb18030 = codec.gb18030;
|
|
6858
6897
|
}
|
|
6859
6898
|
DBCSEncoder.prototype.write = function(str) {
|
|
6860
|
-
var newBuf = Buffer$3.alloc(str.length * (this.gb18030 ? 4 : 3))
|
|
6899
|
+
var newBuf = Buffer$3.alloc(str.length * (this.gb18030 ? 4 : 3));
|
|
6900
|
+
var leadSurrogate = this.leadSurrogate;
|
|
6901
|
+
var seqObj = this.seqObj;
|
|
6902
|
+
var nextChar = -1;
|
|
6903
|
+
var i$3 = 0;
|
|
6904
|
+
var j = 0;
|
|
6861
6905
|
while (true) {
|
|
6862
6906
|
if (nextChar === -1) {
|
|
6863
6907
|
if (i$3 == str.length) break;
|
|
@@ -6866,7 +6910,7 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6866
6910
|
var uCode = nextChar;
|
|
6867
6911
|
nextChar = -1;
|
|
6868
6912
|
}
|
|
6869
|
-
if (
|
|
6913
|
+
if (uCode >= 55296 && uCode < 57344) if (uCode < 56320) if (leadSurrogate === -1) {
|
|
6870
6914
|
leadSurrogate = uCode;
|
|
6871
6915
|
continue;
|
|
6872
6916
|
} else {
|
|
@@ -6888,7 +6932,7 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6888
6932
|
if (typeof resCode === "object") {
|
|
6889
6933
|
seqObj = resCode;
|
|
6890
6934
|
continue;
|
|
6891
|
-
} else if (typeof resCode
|
|
6935
|
+
} else if (typeof resCode === "number") dbcsCode = resCode;
|
|
6892
6936
|
else if (resCode == void 0) {
|
|
6893
6937
|
resCode = seqObj[DEF_CHAR];
|
|
6894
6938
|
if (resCode !== void 0) {
|
|
@@ -6941,7 +6985,8 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6941
6985
|
};
|
|
6942
6986
|
DBCSEncoder.prototype.end = function() {
|
|
6943
6987
|
if (this.leadSurrogate === -1 && this.seqObj === void 0) return;
|
|
6944
|
-
var newBuf = Buffer$3.alloc(10)
|
|
6988
|
+
var newBuf = Buffer$3.alloc(10);
|
|
6989
|
+
var j = 0;
|
|
6945
6990
|
if (this.seqObj) {
|
|
6946
6991
|
var dbcsCode = this.seqObj[DEF_CHAR];
|
|
6947
6992
|
if (dbcsCode !== void 0) if (dbcsCode < 256) newBuf[j++] = dbcsCode;
|
|
@@ -6967,7 +7012,12 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
6967
7012
|
this.gb18030 = codec.gb18030;
|
|
6968
7013
|
}
|
|
6969
7014
|
DBCSDecoder.prototype.write = function(buf) {
|
|
6970
|
-
var newBuf = Buffer$3.alloc(buf.length * 2)
|
|
7015
|
+
var newBuf = Buffer$3.alloc(buf.length * 2);
|
|
7016
|
+
var nodeIdx = this.nodeIdx;
|
|
7017
|
+
var prevBytes = this.prevBytes;
|
|
7018
|
+
var prevOffset = this.prevBytes.length;
|
|
7019
|
+
var seqStart = -this.prevBytes.length;
|
|
7020
|
+
var uCode;
|
|
6971
7021
|
for (var i$3 = 0, j = 0; i$3 < buf.length; i$3++) {
|
|
6972
7022
|
var curByte = i$3 >= 0 ? buf[i$3] : prevBytes[i$3 + prevOffset];
|
|
6973
7023
|
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
@@ -7022,7 +7072,8 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
7022
7072
|
};
|
|
7023
7073
|
function findIdx(table, val) {
|
|
7024
7074
|
if (table[0] > val) return -1;
|
|
7025
|
-
var l = 0
|
|
7075
|
+
var l = 0;
|
|
7076
|
+
var r = table.length;
|
|
7026
7077
|
while (l < r - 1) {
|
|
7027
7078
|
var mid = l + (r - l + 1 >> 1);
|
|
7028
7079
|
if (table[mid] <= val) l = mid;
|
|
@@ -7033,8 +7084,8 @@ var require_dbcs_codec = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
7033
7084
|
}) });
|
|
7034
7085
|
|
|
7035
7086
|
//#endregion
|
|
7036
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
7037
|
-
var require_shiftjis = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
7087
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
7088
|
+
var require_shiftjis = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/shiftjis.json": ((exports, module) => {
|
|
7038
7089
|
module.exports = [
|
|
7039
7090
|
[
|
|
7040
7091
|
"0",
|
|
@@ -7323,8 +7374,8 @@ var require_shiftjis = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-li
|
|
|
7323
7374
|
}) });
|
|
7324
7375
|
|
|
7325
7376
|
//#endregion
|
|
7326
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
7327
|
-
var require_eucjp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
7377
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
7378
|
+
var require_eucjp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/eucjp.json": ((exports, module) => {
|
|
7328
7379
|
module.exports = [
|
|
7329
7380
|
[
|
|
7330
7381
|
"0",
|
|
@@ -7746,8 +7797,8 @@ var require_eucjp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
7746
7797
|
}) });
|
|
7747
7798
|
|
|
7748
7799
|
//#endregion
|
|
7749
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
7750
|
-
var require_cp936 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
7800
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
7801
|
+
var require_cp936 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp936.json": ((exports, module) => {
|
|
7751
7802
|
module.exports = [
|
|
7752
7803
|
[
|
|
7753
7804
|
"0",
|
|
@@ -10328,8 +10379,8 @@ var require_cp936 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
10328
10379
|
}) });
|
|
10329
10380
|
|
|
10330
10381
|
//#endregion
|
|
10331
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
10332
|
-
var require_gbk_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
10382
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
10383
|
+
var require_gbk_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gbk-added.json": ((exports, module) => {
|
|
10333
10384
|
module.exports = [
|
|
10334
10385
|
[
|
|
10335
10386
|
"a140",
|
|
@@ -10556,8 +10607,8 @@ var require_gbk_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
10556
10607
|
}) });
|
|
10557
10608
|
|
|
10558
10609
|
//#endregion
|
|
10559
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
10560
|
-
var require_gb18030_ranges = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
10610
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
10611
|
+
var require_gb18030_ranges = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json": ((exports, module) => {
|
|
10561
10612
|
module.exports = {
|
|
10562
10613
|
"uChars": [
|
|
10563
10614
|
128,
|
|
@@ -10981,8 +11032,8 @@ var require_gb18030_ranges = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ic
|
|
|
10981
11032
|
}) });
|
|
10982
11033
|
|
|
10983
11034
|
//#endregion
|
|
10984
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
10985
|
-
var require_cp949 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
11035
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
11036
|
+
var require_cp949 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp949.json": ((exports, module) => {
|
|
10986
11037
|
module.exports = [
|
|
10987
11038
|
[
|
|
10988
11039
|
"0",
|
|
@@ -13199,8 +13250,8 @@ var require_cp949 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
13199
13250
|
}) });
|
|
13200
13251
|
|
|
13201
13252
|
//#endregion
|
|
13202
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13203
|
-
var require_cp950 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13253
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
13254
|
+
var require_cp950 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/cp950.json": ((exports, module) => {
|
|
13204
13255
|
module.exports = [
|
|
13205
13256
|
[
|
|
13206
13257
|
"0",
|
|
@@ -13424,8 +13475,8 @@ var require_cp950 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@
|
|
|
13424
13475
|
}) });
|
|
13425
13476
|
|
|
13426
13477
|
//#endregion
|
|
13427
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13428
|
-
var require_big5_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13478
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
13479
|
+
var require_big5_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/tables/big5-added.json": ((exports, module) => {
|
|
13429
13480
|
module.exports = [
|
|
13430
13481
|
["8740", "䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],
|
|
13431
13482
|
["8767", "綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],
|
|
@@ -13591,10 +13642,10 @@ var require_big5_added = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-
|
|
|
13591
13642
|
}) });
|
|
13592
13643
|
|
|
13593
13644
|
//#endregion
|
|
13594
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13595
|
-
var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13645
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
13646
|
+
var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/dbcs-data.js": ((exports, module) => {
|
|
13596
13647
|
module.exports = {
|
|
13597
|
-
|
|
13648
|
+
shiftjis: {
|
|
13598
13649
|
type: "_dbcs",
|
|
13599
13650
|
table: function() {
|
|
13600
13651
|
return require_shiftjis();
|
|
@@ -13608,17 +13659,17 @@ var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
13608
13659
|
to: 63808
|
|
13609
13660
|
}]
|
|
13610
13661
|
},
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13662
|
+
csshiftjis: "shiftjis",
|
|
13663
|
+
mskanji: "shiftjis",
|
|
13664
|
+
sjis: "shiftjis",
|
|
13665
|
+
windows31j: "shiftjis",
|
|
13666
|
+
ms31j: "shiftjis",
|
|
13667
|
+
xsjis: "shiftjis",
|
|
13668
|
+
windows932: "shiftjis",
|
|
13669
|
+
ms932: "shiftjis",
|
|
13670
|
+
932: "shiftjis",
|
|
13671
|
+
cp932: "shiftjis",
|
|
13672
|
+
eucjp: {
|
|
13622
13673
|
type: "_dbcs",
|
|
13623
13674
|
table: function() {
|
|
13624
13675
|
return require_eucjp();
|
|
@@ -13628,30 +13679,30 @@ var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
13628
13679
|
"‾": 126
|
|
13629
13680
|
}
|
|
13630
13681
|
},
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13682
|
+
gb2312: "cp936",
|
|
13683
|
+
gb231280: "cp936",
|
|
13684
|
+
gb23121980: "cp936",
|
|
13685
|
+
csgb2312: "cp936",
|
|
13686
|
+
csiso58gb231280: "cp936",
|
|
13687
|
+
euccn: "cp936",
|
|
13688
|
+
windows936: "cp936",
|
|
13689
|
+
ms936: "cp936",
|
|
13690
|
+
936: "cp936",
|
|
13691
|
+
cp936: {
|
|
13641
13692
|
type: "_dbcs",
|
|
13642
13693
|
table: function() {
|
|
13643
13694
|
return require_cp936();
|
|
13644
13695
|
}
|
|
13645
13696
|
},
|
|
13646
|
-
|
|
13697
|
+
gbk: {
|
|
13647
13698
|
type: "_dbcs",
|
|
13648
13699
|
table: function() {
|
|
13649
13700
|
return require_cp936().concat(require_gbk_added());
|
|
13650
13701
|
}
|
|
13651
13702
|
},
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13703
|
+
xgbk: "gbk",
|
|
13704
|
+
isoir58: "gbk",
|
|
13705
|
+
gb18030: {
|
|
13655
13706
|
type: "_dbcs",
|
|
13656
13707
|
table: function() {
|
|
13657
13708
|
return require_cp936().concat(require_gbk_added());
|
|
@@ -13662,35 +13713,35 @@ var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
13662
13713
|
encodeSkipVals: [128],
|
|
13663
13714
|
encodeAdd: { "€": 41699 }
|
|
13664
13715
|
},
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
|
|
13669
|
-
|
|
13716
|
+
chinese: "gb18030",
|
|
13717
|
+
windows949: "cp949",
|
|
13718
|
+
ms949: "cp949",
|
|
13719
|
+
949: "cp949",
|
|
13720
|
+
cp949: {
|
|
13670
13721
|
type: "_dbcs",
|
|
13671
13722
|
table: function() {
|
|
13672
13723
|
return require_cp949();
|
|
13673
13724
|
}
|
|
13674
13725
|
},
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13726
|
+
cseuckr: "cp949",
|
|
13727
|
+
csksc56011987: "cp949",
|
|
13728
|
+
euckr: "cp949",
|
|
13729
|
+
isoir149: "cp949",
|
|
13730
|
+
korean: "cp949",
|
|
13731
|
+
ksc56011987: "cp949",
|
|
13732
|
+
ksc56011989: "cp949",
|
|
13733
|
+
ksc5601: "cp949",
|
|
13734
|
+
windows950: "cp950",
|
|
13735
|
+
ms950: "cp950",
|
|
13736
|
+
950: "cp950",
|
|
13737
|
+
cp950: {
|
|
13687
13738
|
type: "_dbcs",
|
|
13688
13739
|
table: function() {
|
|
13689
13740
|
return require_cp950();
|
|
13690
13741
|
}
|
|
13691
13742
|
},
|
|
13692
|
-
|
|
13693
|
-
|
|
13743
|
+
big5: "big5hkscs",
|
|
13744
|
+
big5hkscs: {
|
|
13694
13745
|
type: "_dbcs",
|
|
13695
13746
|
table: function() {
|
|
13696
13747
|
return require_cp950().concat(require_big5_added());
|
|
@@ -13765,15 +13816,16 @@ var require_dbcs_data = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
13765
13816
|
41678
|
|
13766
13817
|
]
|
|
13767
13818
|
},
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13819
|
+
cnbig5: "big5hkscs",
|
|
13820
|
+
csbig5: "big5hkscs",
|
|
13821
|
+
xxbig5: "big5hkscs"
|
|
13771
13822
|
};
|
|
13772
13823
|
}) });
|
|
13773
13824
|
|
|
13774
13825
|
//#endregion
|
|
13775
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13776
|
-
var require_encodings = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13826
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js
|
|
13827
|
+
var require_encodings = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/encodings/index.js": ((exports) => {
|
|
13828
|
+
var mergeModules$1 = require_merge_exports();
|
|
13777
13829
|
var modules = [
|
|
13778
13830
|
require_internal(),
|
|
13779
13831
|
require_utf32(),
|
|
@@ -13787,16 +13839,16 @@ var require_encodings = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-l
|
|
|
13787
13839
|
];
|
|
13788
13840
|
for (var i = 0; i < modules.length; i++) {
|
|
13789
13841
|
var module$1 = modules[i];
|
|
13790
|
-
|
|
13842
|
+
mergeModules$1(exports, module$1);
|
|
13791
13843
|
}
|
|
13792
13844
|
}) });
|
|
13793
13845
|
|
|
13794
13846
|
//#endregion
|
|
13795
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13796
|
-
var require_streams = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13847
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/streams.js
|
|
13848
|
+
var require_streams = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/streams.js": ((exports, module) => {
|
|
13797
13849
|
var Buffer$2 = require_safer().Buffer;
|
|
13798
|
-
module.exports = function(
|
|
13799
|
-
var Transform =
|
|
13850
|
+
module.exports = function(streamModule$1) {
|
|
13851
|
+
var Transform = streamModule$1.Transform;
|
|
13800
13852
|
function IconvLiteEncoderStream(conv, options) {
|
|
13801
13853
|
this.conv = conv;
|
|
13802
13854
|
options = options || {};
|
|
@@ -13805,7 +13857,7 @@ var require_streams = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lit
|
|
|
13805
13857
|
}
|
|
13806
13858
|
IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, { constructor: { value: IconvLiteEncoderStream } });
|
|
13807
13859
|
IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
13808
|
-
if (typeof chunk
|
|
13860
|
+
if (typeof chunk !== "string") return done(/* @__PURE__ */ new Error("Iconv encoding stream needs strings as its input."));
|
|
13809
13861
|
try {
|
|
13810
13862
|
var res = this.conv.write(chunk);
|
|
13811
13863
|
if (res && res.length) this.push(res);
|
|
@@ -13879,10 +13931,12 @@ var require_streams = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lit
|
|
|
13879
13931
|
}) });
|
|
13880
13932
|
|
|
13881
13933
|
//#endregion
|
|
13882
|
-
//#region node_modules/.pnpm/iconv-lite@0.
|
|
13883
|
-
var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
13934
|
+
//#region node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/index.js
|
|
13935
|
+
var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.7.0/node_modules/iconv-lite/lib/index.js": ((exports, module) => {
|
|
13884
13936
|
var Buffer$1 = require_safer().Buffer;
|
|
13885
|
-
var bomHandling = require_bom_handling()
|
|
13937
|
+
var bomHandling = require_bom_handling();
|
|
13938
|
+
var mergeModules = require_merge_exports();
|
|
13939
|
+
var iconv$1 = module.exports;
|
|
13886
13940
|
iconv$1.encodings = null;
|
|
13887
13941
|
iconv$1.defaultCharUnicode = "�";
|
|
13888
13942
|
iconv$1.defaultCharSingleByte = "?";
|
|
@@ -13906,9 +13960,9 @@ var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
|
13906
13960
|
var trail = decoder.end();
|
|
13907
13961
|
return trail ? res + trail : res;
|
|
13908
13962
|
};
|
|
13909
|
-
iconv$1.encodingExists = function encodingExists(enc
|
|
13963
|
+
iconv$1.encodingExists = function encodingExists(enc) {
|
|
13910
13964
|
try {
|
|
13911
|
-
iconv$1.getCodec(enc
|
|
13965
|
+
iconv$1.getCodec(enc);
|
|
13912
13966
|
return true;
|
|
13913
13967
|
} catch (e) {
|
|
13914
13968
|
return false;
|
|
@@ -13916,30 +13970,34 @@ var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
|
13916
13970
|
};
|
|
13917
13971
|
iconv$1.toEncoding = iconv$1.encode;
|
|
13918
13972
|
iconv$1.fromEncoding = iconv$1.decode;
|
|
13919
|
-
iconv$1._codecDataCache = {};
|
|
13973
|
+
iconv$1._codecDataCache = { __proto__: null };
|
|
13920
13974
|
iconv$1.getCodec = function getCodec(encoding) {
|
|
13921
|
-
if (!iconv$1.encodings)
|
|
13922
|
-
|
|
13975
|
+
if (!iconv$1.encodings) {
|
|
13976
|
+
var raw = require_encodings();
|
|
13977
|
+
iconv$1.encodings = { __proto__: null };
|
|
13978
|
+
mergeModules(iconv$1.encodings, raw);
|
|
13979
|
+
}
|
|
13980
|
+
var enc = iconv$1._canonicalizeEncoding(encoding);
|
|
13923
13981
|
var codecOptions = {};
|
|
13924
13982
|
while (true) {
|
|
13925
|
-
var codec = iconv$1._codecDataCache[enc
|
|
13983
|
+
var codec = iconv$1._codecDataCache[enc];
|
|
13926
13984
|
if (codec) return codec;
|
|
13927
|
-
var codecDef = iconv$1.encodings[enc
|
|
13985
|
+
var codecDef = iconv$1.encodings[enc];
|
|
13928
13986
|
switch (typeof codecDef) {
|
|
13929
13987
|
case "string":
|
|
13930
|
-
enc
|
|
13988
|
+
enc = codecDef;
|
|
13931
13989
|
break;
|
|
13932
13990
|
case "object":
|
|
13933
13991
|
for (var key$1 in codecDef) codecOptions[key$1] = codecDef[key$1];
|
|
13934
|
-
if (!codecOptions.encodingName) codecOptions.encodingName = enc
|
|
13935
|
-
enc
|
|
13992
|
+
if (!codecOptions.encodingName) codecOptions.encodingName = enc;
|
|
13993
|
+
enc = codecDef.type;
|
|
13936
13994
|
break;
|
|
13937
13995
|
case "function":
|
|
13938
|
-
if (!codecOptions.encodingName) codecOptions.encodingName = enc
|
|
13996
|
+
if (!codecOptions.encodingName) codecOptions.encodingName = enc;
|
|
13939
13997
|
codec = new codecDef(codecOptions, iconv$1);
|
|
13940
13998
|
iconv$1._codecDataCache[codecOptions.encodingName] = codec;
|
|
13941
13999
|
return codec;
|
|
13942
|
-
default: throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc
|
|
14000
|
+
default: throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')");
|
|
13943
14001
|
}
|
|
13944
14002
|
}
|
|
13945
14003
|
};
|
|
@@ -13947,18 +14005,20 @@ var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
|
13947
14005
|
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
13948
14006
|
};
|
|
13949
14007
|
iconv$1.getEncoder = function getEncoder(encoding, options) {
|
|
13950
|
-
var codec = iconv$1.getCodec(encoding)
|
|
14008
|
+
var codec = iconv$1.getCodec(encoding);
|
|
14009
|
+
var encoder = new codec.encoder(options, codec);
|
|
13951
14010
|
if (codec.bomAware && options && options.addBOM) encoder = new bomHandling.PrependBOM(encoder, options);
|
|
13952
14011
|
return encoder;
|
|
13953
14012
|
};
|
|
13954
14013
|
iconv$1.getDecoder = function getDecoder$1(encoding, options) {
|
|
13955
|
-
var codec = iconv$1.getCodec(encoding)
|
|
14014
|
+
var codec = iconv$1.getCodec(encoding);
|
|
14015
|
+
var decoder = new codec.decoder(options, codec);
|
|
13956
14016
|
if (codec.bomAware && !(options && options.stripBOM === false)) decoder = new bomHandling.StripBOM(decoder, options);
|
|
13957
14017
|
return decoder;
|
|
13958
14018
|
};
|
|
13959
|
-
iconv$1.enableStreamingAPI = function enableStreamingAPI(
|
|
14019
|
+
iconv$1.enableStreamingAPI = function enableStreamingAPI(streamModule$1) {
|
|
13960
14020
|
if (iconv$1.supportsStreams) return;
|
|
13961
|
-
var streams = require_streams()(
|
|
14021
|
+
var streams = require_streams()(streamModule$1);
|
|
13962
14022
|
iconv$1.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
13963
14023
|
iconv$1.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
13964
14024
|
iconv$1.encodeStream = function encodeStream(encoding, options) {
|
|
@@ -13969,11 +14029,11 @@ var require_lib = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/iconv-lite@0.
|
|
|
13969
14029
|
};
|
|
13970
14030
|
iconv$1.supportsStreams = true;
|
|
13971
14031
|
};
|
|
13972
|
-
var
|
|
14032
|
+
var streamModule;
|
|
13973
14033
|
try {
|
|
13974
|
-
|
|
14034
|
+
streamModule = __require("stream");
|
|
13975
14035
|
} catch (e) {}
|
|
13976
|
-
if (
|
|
14036
|
+
if (streamModule && streamModule.Transform) iconv$1.enableStreamingAPI(streamModule);
|
|
13977
14037
|
else iconv$1.encodeStream = iconv$1.decodeStream = function() {
|
|
13978
14038
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
13979
14039
|
};
|
|
@@ -14020,8 +14080,8 @@ var require_unpipe = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/unpipe@1.0
|
|
|
14020
14080
|
}) });
|
|
14021
14081
|
|
|
14022
14082
|
//#endregion
|
|
14023
|
-
//#region node_modules/.pnpm/raw-body@3.0.
|
|
14024
|
-
var require_raw_body = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/raw-body@3.0.
|
|
14083
|
+
//#region node_modules/.pnpm/raw-body@3.0.1/node_modules/raw-body/index.js
|
|
14084
|
+
var require_raw_body = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/raw-body@3.0.1/node_modules/raw-body/index.js": ((exports, module) => {
|
|
14025
14085
|
/**
|
|
14026
14086
|
* Module dependencies.
|
|
14027
14087
|
* @private
|
|
@@ -14234,8 +14294,6 @@ var require_content_type = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cont
|
|
|
14234
14294
|
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
|
14235
14295
|
*/
|
|
14236
14296
|
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
|
|
14237
|
-
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
14238
|
-
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
14239
14297
|
/**
|
|
14240
14298
|
* RegExp to match quoted-pair in RFC 7230 sec 3.2.6
|
|
14241
14299
|
*
|
|
@@ -14244,10 +14302,6 @@ var require_content_type = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cont
|
|
|
14244
14302
|
*/
|
|
14245
14303
|
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
|
14246
14304
|
/**
|
|
14247
|
-
* RegExp to match chars that must be quoted-pair in RFC 7230 sec 3.2.6
|
|
14248
|
-
*/
|
|
14249
|
-
var QUOTE_REGEXP = /([\\"])/g;
|
|
14250
|
-
/**
|
|
14251
14305
|
* RegExp to match type in RFC 7231 sec 3.1.1.1
|
|
14252
14306
|
*
|
|
14253
14307
|
* media-type = type "/" subtype
|
|
@@ -14255,37 +14309,8 @@ var require_content_type = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cont
|
|
|
14255
14309
|
* subtype = token
|
|
14256
14310
|
*/
|
|
14257
14311
|
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
14258
|
-
/**
|
|
14259
|
-
* Module exports.
|
|
14260
|
-
* @public
|
|
14261
|
-
*/
|
|
14262
|
-
exports.format = format;
|
|
14263
14312
|
exports.parse = parse;
|
|
14264
14313
|
/**
|
|
14265
|
-
* Format object to media type.
|
|
14266
|
-
*
|
|
14267
|
-
* @param {object} obj
|
|
14268
|
-
* @return {string}
|
|
14269
|
-
* @public
|
|
14270
|
-
*/
|
|
14271
|
-
function format(obj) {
|
|
14272
|
-
if (!obj || typeof obj !== "object") throw new TypeError("argument obj is required");
|
|
14273
|
-
var parameters = obj.parameters;
|
|
14274
|
-
var type = obj.type;
|
|
14275
|
-
if (!type || !TYPE_REGEXP.test(type)) throw new TypeError("invalid type");
|
|
14276
|
-
var string = type;
|
|
14277
|
-
if (parameters && typeof parameters === "object") {
|
|
14278
|
-
var param;
|
|
14279
|
-
var params = Object.keys(parameters).sort();
|
|
14280
|
-
for (var i$3 = 0; i$3 < params.length; i$3++) {
|
|
14281
|
-
param = params[i$3];
|
|
14282
|
-
if (!TOKEN_REGEXP.test(param)) throw new TypeError("invalid parameter name");
|
|
14283
|
-
string += "; " + param + "=" + qstring(parameters[param]);
|
|
14284
|
-
}
|
|
14285
|
-
}
|
|
14286
|
-
return string;
|
|
14287
|
-
}
|
|
14288
|
-
/**
|
|
14289
14314
|
* Parse media type to object.
|
|
14290
14315
|
*
|
|
14291
14316
|
* @param {string|object} string
|
|
@@ -14335,19 +14360,6 @@ var require_content_type = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cont
|
|
|
14335
14360
|
return header;
|
|
14336
14361
|
}
|
|
14337
14362
|
/**
|
|
14338
|
-
* Quote a string if necessary.
|
|
14339
|
-
*
|
|
14340
|
-
* @param {string} val
|
|
14341
|
-
* @return {string}
|
|
14342
|
-
* @private
|
|
14343
|
-
*/
|
|
14344
|
-
function qstring(val) {
|
|
14345
|
-
var str = String(val);
|
|
14346
|
-
if (TOKEN_REGEXP.test(str)) return str;
|
|
14347
|
-
if (str.length > 0 && !TEXT_REGEXP.test(str)) throw new TypeError("invalid parameter value");
|
|
14348
|
-
return "\"" + str.replace(QUOTE_REGEXP, "\\$1") + "\"";
|
|
14349
|
-
}
|
|
14350
|
-
/**
|
|
14351
14363
|
* Class to represent a content type.
|
|
14352
14364
|
* @private
|
|
14353
14365
|
*/
|
|
@@ -14358,7 +14370,7 @@ var require_content_type = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/cont
|
|
|
14358
14370
|
}) });
|
|
14359
14371
|
|
|
14360
14372
|
//#endregion
|
|
14361
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
14373
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js
|
|
14362
14374
|
var import_raw_body$1 = /* @__PURE__ */ __toESM(require_raw_body(), 1);
|
|
14363
14375
|
var import_content_type$1 = /* @__PURE__ */ __toESM(require_content_type(), 1);
|
|
14364
14376
|
const MAXIMUM_MESSAGE_SIZE$1 = "4mb";
|
|
@@ -14382,7 +14394,7 @@ var SSEServerTransport = class {
|
|
|
14382
14394
|
* @returns Error message if validation fails, undefined if validation passes.
|
|
14383
14395
|
*/
|
|
14384
14396
|
validateRequestHeaders(req) {
|
|
14385
|
-
if (!this._options.enableDnsRebindingProtection) return
|
|
14397
|
+
if (!this._options.enableDnsRebindingProtection) return;
|
|
14386
14398
|
if (this._options.allowedHosts && this._options.allowedHosts.length > 0) {
|
|
14387
14399
|
const hostHeader = req.headers.host;
|
|
14388
14400
|
if (!hostHeader || !this._options.allowedHosts.includes(hostHeader)) return `Invalid Host header: ${hostHeader}`;
|
|
@@ -14391,7 +14403,6 @@ var SSEServerTransport = class {
|
|
|
14391
14403
|
const originHeader = req.headers.origin;
|
|
14392
14404
|
if (!originHeader || !this._options.allowedOrigins.includes(originHeader)) return `Invalid Origin header: ${originHeader}`;
|
|
14393
14405
|
}
|
|
14394
|
-
return void 0;
|
|
14395
14406
|
}
|
|
14396
14407
|
/**
|
|
14397
14408
|
* Handles the initial SSE connection request.
|
|
@@ -14405,8 +14416,7 @@ var SSEServerTransport = class {
|
|
|
14405
14416
|
"Cache-Control": "no-cache, no-transform",
|
|
14406
14417
|
Connection: "keep-alive"
|
|
14407
14418
|
});
|
|
14408
|
-
const
|
|
14409
|
-
const endpointUrl = new URL$1(this._endpoint, dummyBase);
|
|
14419
|
+
const endpointUrl = new URL$1(this._endpoint, "http://localhost");
|
|
14410
14420
|
endpointUrl.searchParams.set("sessionId", this._sessionId);
|
|
14411
14421
|
const relativeUrlWithSession = endpointUrl.pathname + endpointUrl.search + endpointUrl.hash;
|
|
14412
14422
|
this.res.write(`event: endpoint\ndata: ${relativeUrlWithSession}\n\n`);
|
|
@@ -14496,7 +14506,7 @@ var SSEServerTransport = class {
|
|
|
14496
14506
|
};
|
|
14497
14507
|
|
|
14498
14508
|
//#endregion
|
|
14499
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
14509
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js
|
|
14500
14510
|
var import_raw_body = /* @__PURE__ */ __toESM(require_raw_body(), 1);
|
|
14501
14511
|
var import_content_type = /* @__PURE__ */ __toESM(require_content_type(), 1);
|
|
14502
14512
|
const MAXIMUM_MESSAGE_SIZE = "4mb";
|
|
@@ -14566,7 +14576,7 @@ var StreamableHTTPServerTransport = class {
|
|
|
14566
14576
|
* @returns Error message if validation fails, undefined if validation passes.
|
|
14567
14577
|
*/
|
|
14568
14578
|
validateRequestHeaders(req) {
|
|
14569
|
-
if (!this._enableDnsRebindingProtection) return
|
|
14579
|
+
if (!this._enableDnsRebindingProtection) return;
|
|
14570
14580
|
if (this._allowedHosts && this._allowedHosts.length > 0) {
|
|
14571
14581
|
const hostHeader = req.headers.host;
|
|
14572
14582
|
if (!hostHeader || !this._allowedHosts.includes(hostHeader)) return `Invalid Host header: ${hostHeader}`;
|
|
@@ -14575,7 +14585,6 @@ var StreamableHTTPServerTransport = class {
|
|
|
14575
14585
|
const originHeader = req.headers.origin;
|
|
14576
14586
|
if (!originHeader || !this._allowedOrigins.includes(originHeader)) return `Invalid Origin header: ${originHeader}`;
|
|
14577
14587
|
}
|
|
14578
|
-
return void 0;
|
|
14579
14588
|
}
|
|
14580
14589
|
/**
|
|
14581
14590
|
* Handles an incoming HTTP request, whether GET or POST
|
|
@@ -14647,6 +14656,10 @@ var StreamableHTTPServerTransport = class {
|
|
|
14647
14656
|
res.on("close", () => {
|
|
14648
14657
|
this._streamMapping.delete(this._standaloneSseStreamId);
|
|
14649
14658
|
});
|
|
14659
|
+
res.on("error", (error) => {
|
|
14660
|
+
var _a;
|
|
14661
|
+
(_a = this.onerror) === null || _a === void 0 || _a.call(this, error);
|
|
14662
|
+
});
|
|
14650
14663
|
}
|
|
14651
14664
|
/**
|
|
14652
14665
|
* Replays events that would have been sent after the specified event ID
|
|
@@ -14671,6 +14684,10 @@ var StreamableHTTPServerTransport = class {
|
|
|
14671
14684
|
}
|
|
14672
14685
|
} }));
|
|
14673
14686
|
this._streamMapping.set(streamId, res);
|
|
14687
|
+
res.on("error", (error) => {
|
|
14688
|
+
var _a$1;
|
|
14689
|
+
(_a$1 = this.onerror) === null || _a$1 === void 0 || _a$1.call(this, error);
|
|
14690
|
+
});
|
|
14674
14691
|
} catch (error) {
|
|
14675
14692
|
(_b = this.onerror) === null || _b === void 0 || _b.call(this, error);
|
|
14676
14693
|
}
|
|
@@ -14799,6 +14816,10 @@ var StreamableHTTPServerTransport = class {
|
|
|
14799
14816
|
res.on("close", () => {
|
|
14800
14817
|
this._streamMapping.delete(streamId);
|
|
14801
14818
|
});
|
|
14819
|
+
res.on("error", (error) => {
|
|
14820
|
+
var _a$1;
|
|
14821
|
+
(_a$1 = this.onerror) === null || _a$1 === void 0 || _a$1.call(this, error);
|
|
14822
|
+
});
|
|
14802
14823
|
for (const message of messages) (_d = this.onmessage) === null || _d === void 0 || _d.call(this, message, {
|
|
14803
14824
|
authInfo,
|
|
14804
14825
|
requestInfo
|
|
@@ -14928,8 +14949,7 @@ var StreamableHTTPServerTransport = class {
|
|
|
14928
14949
|
if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
|
|
14929
14950
|
this._requestResponseMap.set(requestId, message);
|
|
14930
14951
|
const relatedIds = Array.from(this._requestToStreamMapping.entries()).filter(([_, streamId$1]) => this._streamMapping.get(streamId$1) === response).map(([id]) => id);
|
|
14931
|
-
|
|
14932
|
-
if (allResponsesReady) {
|
|
14952
|
+
if (relatedIds.every((id) => this._requestResponseMap.has(id))) {
|
|
14933
14953
|
if (!response) throw new Error(`No connection established for request ID: ${String(requestId)}`);
|
|
14934
14954
|
if (this._enableJsonResponse) {
|
|
14935
14955
|
const headers = { "Content-Type": "application/json" };
|
|
@@ -15278,7 +15298,7 @@ const startHTTPServer = async ({ apiKey, createServer, enableJsonResponse, event
|
|
|
15278
15298
|
};
|
|
15279
15299
|
|
|
15280
15300
|
//#endregion
|
|
15281
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
15301
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
15282
15302
|
/**
|
|
15283
15303
|
* The default request timeout, in miliseconds.
|
|
15284
15304
|
*/
|
|
@@ -15569,9 +15589,7 @@ var Protocol = class {
|
|
|
15569
15589
|
var _a, _b;
|
|
15570
15590
|
if (!this._transport) throw new Error("Not connected");
|
|
15571
15591
|
this.assertNotificationCapability(notification.method);
|
|
15572
|
-
|
|
15573
|
-
const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !(options === null || options === void 0 ? void 0 : options.relatedRequestId);
|
|
15574
|
-
if (canDebounce) {
|
|
15592
|
+
if (((_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.debouncedNotificationMethods) !== null && _b !== void 0 ? _b : []).includes(notification.method) && !notification.params && !(options === null || options === void 0 ? void 0 : options.relatedRequestId)) {
|
|
15575
15593
|
if (this._pendingDebouncedNotifications.has(notification.method)) return;
|
|
15576
15594
|
this._pendingDebouncedNotifications.add(notification.method);
|
|
15577
15595
|
Promise.resolve().then(() => {
|
|
@@ -15676,8 +15694,8 @@ var require_uri_all = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/uri-js@4.
|
|
|
15676
15694
|
if (source) for (var key$1 in source) obj[key$1] = source[key$1];
|
|
15677
15695
|
return obj;
|
|
15678
15696
|
}
|
|
15679
|
-
function buildExps(isIRI
|
|
15680
|
-
var ALPHA$$ = "[A-Za-z]", DIGIT$$ = "[0-9]", HEXDIG$$$1 = merge(DIGIT$$, "[A-Fa-f]"), PCT_ENCODED$$1 = subexp(subexp("%[EFef]" + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1) + "|" + subexp("%" + HEXDIG$$$1 + HEXDIG$$$1)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI
|
|
15697
|
+
function buildExps(isIRI) {
|
|
15698
|
+
var ALPHA$$ = "[A-Za-z]", DIGIT$$ = "[0-9]", HEXDIG$$$1 = merge(DIGIT$$, "[A-Fa-f]"), PCT_ENCODED$$1 = subexp(subexp("%[EFef]" + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$$1 + "%" + HEXDIG$$$1 + HEXDIG$$$1) + "|" + subexp("%" + HEXDIG$$$1 + HEXDIG$$$1)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$$1 = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$$1 + "|" + merge(UNRESERVED$$$1, SUB_DELIMS$$, "[\\:]")) + "*");
|
|
15681
15699
|
subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$);
|
|
15682
15700
|
var DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$$1 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([
|
|
15683
15701
|
IPV6ADDRESS1$,
|
|
@@ -16196,7 +16214,7 @@ var require_uri_all = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/uri-js@4.
|
|
|
16196
16214
|
var fields = Array(fieldCount);
|
|
16197
16215
|
for (var x = 0; x < fieldCount; ++x) fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
|
|
16198
16216
|
if (isLastFieldIPv4Address) fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
|
|
16199
|
-
var
|
|
16217
|
+
var longestZeroFields = fields.reduce(function(acc, field, index) {
|
|
16200
16218
|
if (!field || field === "0") {
|
|
16201
16219
|
var lastLongest = acc[acc.length - 1];
|
|
16202
16220
|
if (lastLongest && lastLongest.index + lastLongest.length === index) lastLongest.length++;
|
|
@@ -16206,8 +16224,7 @@ var require_uri_all = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/uri-js@4.
|
|
|
16206
16224
|
});
|
|
16207
16225
|
}
|
|
16208
16226
|
return acc;
|
|
16209
|
-
}, [])
|
|
16210
|
-
var longestZeroFields = allZeroFields.sort(function(a, b) {
|
|
16227
|
+
}, []).sort(function(a, b) {
|
|
16211
16228
|
return b.length - a.length;
|
|
16212
16229
|
})[0];
|
|
16213
16230
|
var newHost = void 0;
|
|
@@ -16471,13 +16488,11 @@ var require_uri_all = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/uri-js@4.
|
|
|
16471
16488
|
serialize: handler$2.serialize
|
|
16472
16489
|
};
|
|
16473
16490
|
var O = {};
|
|
16474
|
-
var
|
|
16475
|
-
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
|
|
16491
|
+
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]";
|
|
16476
16492
|
var HEXDIG$$ = "[0-9A-Fa-f]";
|
|
16477
16493
|
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
|
|
16478
16494
|
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
|
|
16479
|
-
var
|
|
16480
|
-
var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
|
|
16495
|
+
var VCHAR$$ = merge("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", "[\\\"\\\\]");
|
|
16481
16496
|
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
|
|
16482
16497
|
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
|
|
16483
16498
|
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
|
|
@@ -17448,8 +17463,8 @@ var require_validate = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12
|
|
|
17448
17463
|
if ($rulesGroup.type) out += " if (" + it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers) + ") { ";
|
|
17449
17464
|
if (it.opts.useDefaults) {
|
|
17450
17465
|
if ($rulesGroup.type == "object" && it.schema.properties) {
|
|
17451
|
-
var $schema = it.schema.properties
|
|
17452
|
-
var arr3 = $
|
|
17466
|
+
var $schema = it.schema.properties;
|
|
17467
|
+
var arr3 = Object.keys($schema);
|
|
17453
17468
|
if (arr3) {
|
|
17454
17469
|
var $propertyKey, i3 = -1, l3 = arr3.length - 1;
|
|
17455
17470
|
while (i3 < l3) {
|
|
@@ -17675,8 +17690,7 @@ var require_compile = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.
|
|
|
17675
17690
|
if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);
|
|
17676
17691
|
var validate$1;
|
|
17677
17692
|
try {
|
|
17678
|
-
|
|
17679
|
-
validate$1 = makeValidate(self, RULES, formats$2, root, refVal, defaults, customRules, equal, ucs2length, ValidationError);
|
|
17693
|
+
validate$1 = new Function("self", "RULES", "formats", "root", "refVal", "defaults", "customRules", "equal", "ucs2length", "ValidationError", sourceCode)(self, RULES, formats$2, root, refVal, defaults, customRules, equal, ucs2length, ValidationError);
|
|
17680
17694
|
refVal[0] = validate$1;
|
|
17681
17695
|
} catch (e) {
|
|
17682
17696
|
self.logger.error("Error compiling schema, function code:", sourceCode);
|
|
@@ -17779,8 +17793,7 @@ var require_compile = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.
|
|
|
17779
17793
|
})) throw new Error("parent schema must have all required keywords: " + deps.join(","));
|
|
17780
17794
|
var validateSchema$1 = rule.definition.validateSchema;
|
|
17781
17795
|
if (validateSchema$1) {
|
|
17782
|
-
|
|
17783
|
-
if (!valid) {
|
|
17796
|
+
if (!validateSchema$1(schema$1)) {
|
|
17784
17797
|
var message = "keyword schema is invalid: " + self.errorsText(validateSchema$1.errors);
|
|
17785
17798
|
if (self._opts.validateSchema == "log") self.logger.error(message);
|
|
17786
17799
|
else throw new Error(message);
|
|
@@ -18159,10 +18172,9 @@ var require_anyOf = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/
|
|
|
18159
18172
|
var $closingBraces = "";
|
|
18160
18173
|
$it.level++;
|
|
18161
18174
|
var $nextValid = "valid" + $it.level;
|
|
18162
|
-
|
|
18175
|
+
if ($schema.every(function($sch$1) {
|
|
18163
18176
|
return it.opts.strictKeywords ? typeof $sch$1 == "object" && Object.keys($sch$1).length > 0 || $sch$1 === false : it.util.schemaHasRules($sch$1, it.RULES.all);
|
|
18164
|
-
})
|
|
18165
|
-
if ($noEmptySchema) {
|
|
18177
|
+
})) {
|
|
18166
18178
|
var $currentBaseId = $it.baseId;
|
|
18167
18179
|
out += " var " + $errs + " = errors; var " + $valid + " = false; ";
|
|
18168
18180
|
var $wasComposite = it.compositeRule;
|
|
@@ -18228,12 +18240,11 @@ var require_const = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/
|
|
|
18228
18240
|
var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
|
|
18229
18241
|
var $breakOnError = !it.opts.allErrors;
|
|
18230
18242
|
var $data = "data" + ($dataLvl || "");
|
|
18231
|
-
var $valid = "valid" + $lvl;
|
|
18232
|
-
var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
|
|
18243
|
+
var $valid = "valid" + $lvl, $isData = it.opts.$data && $schema && $schema.$data;
|
|
18233
18244
|
if ($isData) {
|
|
18234
18245
|
out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
|
|
18235
|
-
|
|
18236
|
-
}
|
|
18246
|
+
"" + $lvl;
|
|
18247
|
+
}
|
|
18237
18248
|
if (!$isData) out += " var schema" + $lvl + " = validate.schema" + $schemaPath + ";";
|
|
18238
18249
|
out += "var " + $valid + " = equal(" + $data + ", schema" + $lvl + "); if (!" + $valid + ") { ";
|
|
18239
18250
|
var $$outStack = $$outStack || [];
|
|
@@ -18460,12 +18471,11 @@ var require_enum = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/n
|
|
|
18460
18471
|
var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
|
|
18461
18472
|
var $breakOnError = !it.opts.allErrors;
|
|
18462
18473
|
var $data = "data" + ($dataLvl || "");
|
|
18463
|
-
var $valid = "valid" + $lvl;
|
|
18464
|
-
var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
|
|
18474
|
+
var $valid = "valid" + $lvl, $isData = it.opts.$data && $schema && $schema.$data;
|
|
18465
18475
|
if ($isData) {
|
|
18466
18476
|
out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
|
|
18467
|
-
|
|
18468
|
-
}
|
|
18477
|
+
"" + $lvl;
|
|
18478
|
+
}
|
|
18469
18479
|
var $i = "i" + $lvl, $vSchema = "schema" + $lvl;
|
|
18470
18480
|
if (!$isData) out += " var " + $vSchema + " = validate.schema" + $schemaPath + ";";
|
|
18471
18481
|
out += "var " + $valid + ";";
|
|
@@ -19636,12 +19646,11 @@ var require_required = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12
|
|
|
19636
19646
|
var $errSchemaPath = it.errSchemaPath + "/" + $keyword;
|
|
19637
19647
|
var $breakOnError = !it.opts.allErrors;
|
|
19638
19648
|
var $data = "data" + ($dataLvl || "");
|
|
19639
|
-
var $valid = "valid" + $lvl;
|
|
19640
|
-
var $isData = it.opts.$data && $schema && $schema.$data, $schemaValue;
|
|
19649
|
+
var $valid = "valid" + $lvl, $isData = it.opts.$data && $schema && $schema.$data;
|
|
19641
19650
|
if ($isData) {
|
|
19642
19651
|
out += " var schema" + $lvl + " = " + it.util.getData($schema.$data, $dataLvl, it.dataPathArr) + "; ";
|
|
19643
|
-
|
|
19644
|
-
}
|
|
19652
|
+
"" + $lvl;
|
|
19653
|
+
}
|
|
19645
19654
|
var $vSchema = "schema" + $lvl;
|
|
19646
19655
|
if (!$isData) if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
|
|
19647
19656
|
var $required = [];
|
|
@@ -19995,12 +20004,11 @@ var require_rules = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/
|
|
|
19995
20004
|
});
|
|
19996
20005
|
}
|
|
19997
20006
|
ALL.push(keyword);
|
|
19998
|
-
|
|
20007
|
+
return RULES.all[keyword] = {
|
|
19999
20008
|
keyword,
|
|
20000
20009
|
code: ruleModules[keyword],
|
|
20001
20010
|
implements: implKeywords
|
|
20002
20011
|
};
|
|
20003
|
-
return rule;
|
|
20004
20012
|
});
|
|
20005
20013
|
RULES.all.$comment = {
|
|
20006
20014
|
keyword: "$comment",
|
|
@@ -20926,9 +20934,9 @@ var require_ajv = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/no
|
|
|
20926
20934
|
* @param {String|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
|
|
20927
20935
|
* @return {Ajv} this for method chaining
|
|
20928
20936
|
*/
|
|
20929
|
-
function addFormat(name, format$
|
|
20930
|
-
if (typeof format$
|
|
20931
|
-
this._formats[name] = format$
|
|
20937
|
+
function addFormat(name, format$1) {
|
|
20938
|
+
if (typeof format$1 == "string") format$1 = new RegExp(format$1);
|
|
20939
|
+
this._formats[name] = format$1;
|
|
20932
20940
|
return this;
|
|
20933
20941
|
}
|
|
20934
20942
|
function addDefaultMetaSchema(self) {
|
|
@@ -20951,8 +20959,8 @@ var require_ajv = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/no
|
|
|
20951
20959
|
}
|
|
20952
20960
|
function addInitialFormats(self) {
|
|
20953
20961
|
for (var name in self._opts.formats) {
|
|
20954
|
-
var format$
|
|
20955
|
-
self.addFormat(name, format$
|
|
20962
|
+
var format$1 = self._opts.formats[name];
|
|
20963
|
+
self.addFormat(name, format$1);
|
|
20956
20964
|
}
|
|
20957
20965
|
}
|
|
20958
20966
|
function addInitialKeywords(self) {
|
|
@@ -20986,7 +20994,7 @@ var require_ajv = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ajv@6.12.6/no
|
|
|
20986
20994
|
}) });
|
|
20987
20995
|
|
|
20988
20996
|
//#endregion
|
|
20989
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20997
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js
|
|
20990
20998
|
var import_ajv$1 = /* @__PURE__ */ __toESM(require_ajv(), 1);
|
|
20991
20999
|
/**
|
|
20992
21000
|
* An MCP client on top of a pluggable transport.
|
|
@@ -21200,8 +21208,7 @@ var Client = class extends Protocol {
|
|
|
21200
21208
|
if (validator) {
|
|
21201
21209
|
if (!result.structuredContent && !result.isError) throw new McpError(ErrorCode.InvalidRequest, `Tool ${params.name} has an output schema but did not return structured content`);
|
|
21202
21210
|
if (result.structuredContent) try {
|
|
21203
|
-
|
|
21204
|
-
if (!isValid$1) throw new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${this._ajv.errorsText(validator.errors)}`);
|
|
21211
|
+
if (!validator(result.structuredContent)) throw new McpError(ErrorCode.InvalidParams, `Structured content does not match the tool's output schema: ${this._ajv.errorsText(validator.errors)}`);
|
|
21205
21212
|
} catch (error) {
|
|
21206
21213
|
if (error instanceof McpError) throw error;
|
|
21207
21214
|
throw new McpError(ErrorCode.InvalidParams, `Failed to validate structured content: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -21233,7 +21240,7 @@ var Client = class extends Protocol {
|
|
|
21233
21240
|
};
|
|
21234
21241
|
|
|
21235
21242
|
//#endregion
|
|
21236
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
21243
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
21237
21244
|
var import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
|
|
21238
21245
|
/**
|
|
21239
21246
|
* An MCP server on top of a pluggable transport.
|
|
@@ -21268,6 +21275,12 @@ var Server = class extends Protocol {
|
|
|
21268
21275
|
var _a;
|
|
21269
21276
|
super(options);
|
|
21270
21277
|
this._serverInfo = _serverInfo;
|
|
21278
|
+
this._loggingLevels = /* @__PURE__ */ new Map();
|
|
21279
|
+
this.LOG_LEVEL_SEVERITY = new Map(LoggingLevelSchema.options.map((level, index) => [level, index]));
|
|
21280
|
+
this.isMessageIgnored = (level, sessionId) => {
|
|
21281
|
+
const currentLevel = this._loggingLevels.get(sessionId);
|
|
21282
|
+
return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false;
|
|
21283
|
+
};
|
|
21271
21284
|
this._capabilities = (_a = options === null || options === void 0 ? void 0 : options.capabilities) !== null && _a !== void 0 ? _a : {};
|
|
21272
21285
|
this._instructions = options === null || options === void 0 ? void 0 : options.instructions;
|
|
21273
21286
|
this.setRequestHandler(InitializeRequestSchema, (request) => this._oninitialize(request));
|
|
@@ -21275,6 +21288,14 @@ var Server = class extends Protocol {
|
|
|
21275
21288
|
var _a$1;
|
|
21276
21289
|
return (_a$1 = this.oninitialized) === null || _a$1 === void 0 ? void 0 : _a$1.call(this);
|
|
21277
21290
|
});
|
|
21291
|
+
if (this._capabilities.logging) this.setRequestHandler(SetLevelRequestSchema, async (request, extra) => {
|
|
21292
|
+
var _a$1;
|
|
21293
|
+
const transportSessionId = extra.sessionId || ((_a$1 = extra.requestInfo) === null || _a$1 === void 0 ? void 0 : _a$1.headers["mcp-session-id"]) || void 0;
|
|
21294
|
+
const { level } = request.params;
|
|
21295
|
+
const parseResult = LoggingLevelSchema.safeParse(level);
|
|
21296
|
+
if (parseResult.success) this._loggingLevels.set(transportSessionId, parseResult.data);
|
|
21297
|
+
return {};
|
|
21298
|
+
});
|
|
21278
21299
|
}
|
|
21279
21300
|
/**
|
|
21280
21301
|
* Registers new capabilities. This can only be called before connecting to a transport.
|
|
@@ -21348,9 +21369,8 @@ var Server = class extends Protocol {
|
|
|
21348
21369
|
const requestedVersion = request.params.protocolVersion;
|
|
21349
21370
|
this._clientCapabilities = request.params.capabilities;
|
|
21350
21371
|
this._clientVersion = request.params.clientInfo;
|
|
21351
|
-
const protocolVersion = SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion) ? requestedVersion : LATEST_PROTOCOL_VERSION;
|
|
21352
21372
|
return {
|
|
21353
|
-
protocolVersion,
|
|
21373
|
+
protocolVersion: SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion) ? requestedVersion : LATEST_PROTOCOL_VERSION,
|
|
21354
21374
|
capabilities: this.getCapabilities(),
|
|
21355
21375
|
serverInfo: this._serverInfo,
|
|
21356
21376
|
...this._instructions && { instructions: this._instructions }
|
|
@@ -21388,8 +21408,7 @@ var Server = class extends Protocol {
|
|
|
21388
21408
|
if (result.action === "accept" && result.content) try {
|
|
21389
21409
|
const ajv = new import_ajv.default();
|
|
21390
21410
|
const validate$1 = ajv.compile(params.requestedSchema);
|
|
21391
|
-
|
|
21392
|
-
if (!isValid$1) throw new McpError(ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${ajv.errorsText(validate$1.errors)}`);
|
|
21411
|
+
if (!validate$1(result.content)) throw new McpError(ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${ajv.errorsText(validate$1.errors)}`);
|
|
21393
21412
|
} catch (error) {
|
|
21394
21413
|
if (error instanceof McpError) throw error;
|
|
21395
21414
|
throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error}`);
|
|
@@ -21402,11 +21421,20 @@ var Server = class extends Protocol {
|
|
|
21402
21421
|
params
|
|
21403
21422
|
}, ListRootsResultSchema, options);
|
|
21404
21423
|
}
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21424
|
+
/**
|
|
21425
|
+
* Sends a logging message to the client, if connected.
|
|
21426
|
+
* Note: You only need to send the parameters object, not the entire JSON RPC message
|
|
21427
|
+
* @see LoggingMessageNotification
|
|
21428
|
+
* @param params
|
|
21429
|
+
* @param sessionId optional for stateless and backward compatibility
|
|
21430
|
+
*/
|
|
21431
|
+
async sendLoggingMessage(params, sessionId) {
|
|
21432
|
+
if (this._capabilities.logging) {
|
|
21433
|
+
if (!this.isMessageIgnored(params.level, sessionId)) return this.notification({
|
|
21434
|
+
method: "notifications/message",
|
|
21435
|
+
params
|
|
21436
|
+
});
|
|
21437
|
+
}
|
|
21410
21438
|
}
|
|
21411
21439
|
async sendResourceUpdated(params) {
|
|
21412
21440
|
return this.notification({
|
|
@@ -21426,7 +21454,7 @@ var Server = class extends Protocol {
|
|
|
21426
21454
|
};
|
|
21427
21455
|
|
|
21428
21456
|
//#endregion
|
|
21429
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
21457
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.18.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
21430
21458
|
/**
|
|
21431
21459
|
* Buffers a continuous stdio stream into discrete JSON-RPC messages.
|
|
21432
21460
|
*/
|
|
@@ -21454,5 +21482,5 @@ function serializeMessage(message) {
|
|
|
21454
21482
|
}
|
|
21455
21483
|
|
|
21456
21484
|
//#endregion
|
|
21457
|
-
export { Client, InMemoryEventStore, JSONRPCMessageSchema, LATEST_PROTOCOL_VERSION, ReadBuffer, Server, __commonJS, __toESM, anyType, arrayType, booleanType, isInitializedNotification, isJSONRPCRequest, isJSONRPCResponse, numberType, objectType, proxyServer, serializeMessage, startHTTPServer, stringType };
|
|
21458
|
-
//# sourceMappingURL=stdio-
|
|
21485
|
+
export { Client, InMemoryEventStore, JSONRPCMessageSchema, LATEST_PROTOCOL_VERSION, NEVER, ReadBuffer, Server, ZodIssueCode, __commonJS, __toESM, anyType, arrayType, booleanType, isInitializedNotification, isJSONRPCRequest, isJSONRPCResponse, numberType, objectType, proxyServer, serializeMessage, startHTTPServer, stringType };
|
|
21486
|
+
//# sourceMappingURL=stdio-D0Lv8ytu.js.map
|