@cyberdexa/contextbridge-mcp 0.1.0 → 0.1.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/index.js +382 -352
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6,13 +6,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
};
|
|
12
|
-
var __export = (target, all) => {
|
|
13
|
-
for (var name in all)
|
|
14
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
-
};
|
|
16
9
|
var __copyProps = (to, from, except, desc) => {
|
|
17
10
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
11
|
for (let key of __getOwnPropNames(from))
|
|
@@ -30,7 +23,39 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
23
|
mod
|
|
31
24
|
));
|
|
32
25
|
|
|
33
|
-
//
|
|
26
|
+
// dist/index.clean.tmp.mjs
|
|
27
|
+
var __create2 = Object.create;
|
|
28
|
+
var __defProp2 = Object.defineProperty;
|
|
29
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
30
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
31
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
32
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
33
|
+
var __esm = (fn, res) => function __init() {
|
|
34
|
+
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
|
|
35
|
+
};
|
|
36
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
37
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
38
|
+
};
|
|
39
|
+
var __export = (target, all) => {
|
|
40
|
+
for (var name in all)
|
|
41
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
42
|
+
};
|
|
43
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
44
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
45
|
+
for (let key of __getOwnPropNames2(from))
|
|
46
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
47
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
48
|
+
}
|
|
49
|
+
return to;
|
|
50
|
+
};
|
|
51
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
52
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
53
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
54
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
55
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
56
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
57
|
+
mod
|
|
58
|
+
));
|
|
34
59
|
var require_code = __commonJS({
|
|
35
60
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
|
|
36
61
|
"use strict";
|
|
@@ -183,8 +208,6 @@ var require_code = __commonJS({
|
|
|
183
208
|
exports2.regexpCode = regexpCode;
|
|
184
209
|
}
|
|
185
210
|
});
|
|
186
|
-
|
|
187
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
188
211
|
var require_scope = __commonJS({
|
|
189
212
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
|
|
190
213
|
"use strict";
|
|
@@ -328,8 +351,6 @@ var require_scope = __commonJS({
|
|
|
328
351
|
exports2.ValueScope = ValueScope;
|
|
329
352
|
}
|
|
330
353
|
});
|
|
331
|
-
|
|
332
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
333
354
|
var require_codegen = __commonJS({
|
|
334
355
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
|
|
335
356
|
"use strict";
|
|
@@ -1048,8 +1069,6 @@ var require_codegen = __commonJS({
|
|
|
1048
1069
|
}
|
|
1049
1070
|
}
|
|
1050
1071
|
});
|
|
1051
|
-
|
|
1052
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
1053
1072
|
var require_util = __commonJS({
|
|
1054
1073
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports2) {
|
|
1055
1074
|
"use strict";
|
|
@@ -1215,8 +1234,6 @@ var require_util = __commonJS({
|
|
|
1215
1234
|
exports2.checkStrictMode = checkStrictMode;
|
|
1216
1235
|
}
|
|
1217
1236
|
});
|
|
1218
|
-
|
|
1219
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
1220
1237
|
var require_names = __commonJS({
|
|
1221
1238
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports2) {
|
|
1222
1239
|
"use strict";
|
|
@@ -1254,8 +1271,6 @@ var require_names = __commonJS({
|
|
|
1254
1271
|
exports2.default = names;
|
|
1255
1272
|
}
|
|
1256
1273
|
});
|
|
1257
|
-
|
|
1258
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
1259
1274
|
var require_errors = __commonJS({
|
|
1260
1275
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports2) {
|
|
1261
1276
|
"use strict";
|
|
@@ -1376,8 +1391,6 @@ var require_errors = __commonJS({
|
|
|
1376
1391
|
}
|
|
1377
1392
|
}
|
|
1378
1393
|
});
|
|
1379
|
-
|
|
1380
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1381
1394
|
var require_boolSchema = __commonJS({
|
|
1382
1395
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
|
|
1383
1396
|
"use strict";
|
|
@@ -1427,8 +1440,6 @@ var require_boolSchema = __commonJS({
|
|
|
1427
1440
|
}
|
|
1428
1441
|
}
|
|
1429
1442
|
});
|
|
1430
|
-
|
|
1431
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
1432
1443
|
var require_rules = __commonJS({
|
|
1433
1444
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports2) {
|
|
1434
1445
|
"use strict";
|
|
@@ -1458,8 +1469,6 @@ var require_rules = __commonJS({
|
|
|
1458
1469
|
exports2.getRules = getRules;
|
|
1459
1470
|
}
|
|
1460
1471
|
});
|
|
1461
|
-
|
|
1462
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1463
1472
|
var require_applicability = __commonJS({
|
|
1464
1473
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
|
|
1465
1474
|
"use strict";
|
|
@@ -1481,8 +1490,6 @@ var require_applicability = __commonJS({
|
|
|
1481
1490
|
exports2.shouldUseRule = shouldUseRule;
|
|
1482
1491
|
}
|
|
1483
1492
|
});
|
|
1484
|
-
|
|
1485
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1486
1493
|
var require_dataType = __commonJS({
|
|
1487
1494
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
|
|
1488
1495
|
"use strict";
|
|
@@ -1665,8 +1672,6 @@ var require_dataType = __commonJS({
|
|
|
1665
1672
|
}
|
|
1666
1673
|
}
|
|
1667
1674
|
});
|
|
1668
|
-
|
|
1669
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1670
1675
|
var require_defaults = __commonJS({
|
|
1671
1676
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
|
|
1672
1677
|
"use strict";
|
|
@@ -1702,8 +1707,6 @@ var require_defaults = __commonJS({
|
|
|
1702
1707
|
}
|
|
1703
1708
|
}
|
|
1704
1709
|
});
|
|
1705
|
-
|
|
1706
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1707
1710
|
var require_code2 = __commonJS({
|
|
1708
1711
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports2) {
|
|
1709
1712
|
"use strict";
|
|
@@ -1835,8 +1838,6 @@ var require_code2 = __commonJS({
|
|
|
1835
1838
|
exports2.validateUnion = validateUnion;
|
|
1836
1839
|
}
|
|
1837
1840
|
});
|
|
1838
|
-
|
|
1839
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1840
1841
|
var require_keyword = __commonJS({
|
|
1841
1842
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
|
|
1842
1843
|
"use strict";
|
|
@@ -1953,8 +1954,6 @@ var require_keyword = __commonJS({
|
|
|
1953
1954
|
exports2.validateKeywordUsage = validateKeywordUsage;
|
|
1954
1955
|
}
|
|
1955
1956
|
});
|
|
1956
|
-
|
|
1957
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1958
1957
|
var require_subschema = __commonJS({
|
|
1959
1958
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
|
|
1960
1959
|
"use strict";
|
|
@@ -2036,8 +2035,6 @@ var require_subschema = __commonJS({
|
|
|
2036
2035
|
exports2.extendSubschemaMode = extendSubschemaMode;
|
|
2037
2036
|
}
|
|
2038
2037
|
});
|
|
2039
|
-
|
|
2040
|
-
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2041
2038
|
var require_fast_deep_equal = __commonJS({
|
|
2042
2039
|
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports2, module2) {
|
|
2043
2040
|
"use strict";
|
|
@@ -2071,8 +2068,6 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2071
2068
|
};
|
|
2072
2069
|
}
|
|
2073
2070
|
});
|
|
2074
|
-
|
|
2075
|
-
// ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2076
2071
|
var require_json_schema_traverse = __commonJS({
|
|
2077
2072
|
"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports2, module2) {
|
|
2078
2073
|
"use strict";
|
|
@@ -2159,8 +2154,6 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2159
2154
|
}
|
|
2160
2155
|
}
|
|
2161
2156
|
});
|
|
2162
|
-
|
|
2163
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
2164
2157
|
var require_resolve = __commonJS({
|
|
2165
2158
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports2) {
|
|
2166
2159
|
"use strict";
|
|
@@ -2315,8 +2308,6 @@ var require_resolve = __commonJS({
|
|
|
2315
2308
|
exports2.getSchemaRefs = getSchemaRefs;
|
|
2316
2309
|
}
|
|
2317
2310
|
});
|
|
2318
|
-
|
|
2319
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2320
2311
|
var require_validate = __commonJS({
|
|
2321
2312
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports2) {
|
|
2322
2313
|
"use strict";
|
|
@@ -2823,8 +2814,6 @@ var require_validate = __commonJS({
|
|
|
2823
2814
|
exports2.getData = getData;
|
|
2824
2815
|
}
|
|
2825
2816
|
});
|
|
2826
|
-
|
|
2827
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2828
2817
|
var require_validation_error = __commonJS({
|
|
2829
2818
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
|
|
2830
2819
|
"use strict";
|
|
@@ -2839,8 +2828,6 @@ var require_validation_error = __commonJS({
|
|
|
2839
2828
|
exports2.default = ValidationError;
|
|
2840
2829
|
}
|
|
2841
2830
|
});
|
|
2842
|
-
|
|
2843
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2844
2831
|
var require_ref_error = __commonJS({
|
|
2845
2832
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports2) {
|
|
2846
2833
|
"use strict";
|
|
@@ -2856,8 +2843,6 @@ var require_ref_error = __commonJS({
|
|
|
2856
2843
|
exports2.default = MissingRefError;
|
|
2857
2844
|
}
|
|
2858
2845
|
});
|
|
2859
|
-
|
|
2860
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
2861
2846
|
var require_compile = __commonJS({
|
|
2862
2847
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports2) {
|
|
2863
2848
|
"use strict";
|
|
@@ -3080,8 +3065,6 @@ var require_compile = __commonJS({
|
|
|
3080
3065
|
}
|
|
3081
3066
|
}
|
|
3082
3067
|
});
|
|
3083
|
-
|
|
3084
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
3085
3068
|
var require_data = __commonJS({
|
|
3086
3069
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports2, module2) {
|
|
3087
3070
|
module2.exports = {
|
|
@@ -3099,8 +3082,6 @@ var require_data = __commonJS({
|
|
|
3099
3082
|
};
|
|
3100
3083
|
}
|
|
3101
3084
|
});
|
|
3102
|
-
|
|
3103
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
|
|
3104
3085
|
var require_utils = __commonJS({
|
|
3105
3086
|
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(exports2, module2) {
|
|
3106
3087
|
"use strict";
|
|
@@ -3412,8 +3393,6 @@ var require_utils = __commonJS({
|
|
|
3412
3393
|
};
|
|
3413
3394
|
}
|
|
3414
3395
|
});
|
|
3415
|
-
|
|
3416
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
|
|
3417
3396
|
var require_schemes = __commonJS({
|
|
3418
3397
|
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
|
|
3419
3398
|
"use strict";
|
|
@@ -3622,8 +3601,6 @@ var require_schemes = __commonJS({
|
|
|
3622
3601
|
};
|
|
3623
3602
|
}
|
|
3624
3603
|
});
|
|
3625
|
-
|
|
3626
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
|
|
3627
3604
|
var require_fast_uri = __commonJS({
|
|
3628
3605
|
"../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(exports2, module2) {
|
|
3629
3606
|
"use strict";
|
|
@@ -3908,8 +3885,6 @@ var require_fast_uri = __commonJS({
|
|
|
3908
3885
|
module2.exports.fastUri = fastUri;
|
|
3909
3886
|
}
|
|
3910
3887
|
});
|
|
3911
|
-
|
|
3912
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
3913
3888
|
var require_uri = __commonJS({
|
|
3914
3889
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
3915
3890
|
"use strict";
|
|
@@ -3919,8 +3894,6 @@ var require_uri = __commonJS({
|
|
|
3919
3894
|
exports2.default = uri;
|
|
3920
3895
|
}
|
|
3921
3896
|
});
|
|
3922
|
-
|
|
3923
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
3924
3897
|
var require_core = __commonJS({
|
|
3925
3898
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports2) {
|
|
3926
3899
|
"use strict";
|
|
@@ -4530,8 +4503,6 @@ var require_core = __commonJS({
|
|
|
4530
4503
|
}
|
|
4531
4504
|
}
|
|
4532
4505
|
});
|
|
4533
|
-
|
|
4534
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4535
4506
|
var require_id = __commonJS({
|
|
4536
4507
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
|
|
4537
4508
|
"use strict";
|
|
@@ -4545,8 +4516,6 @@ var require_id = __commonJS({
|
|
|
4545
4516
|
exports2.default = def;
|
|
4546
4517
|
}
|
|
4547
4518
|
});
|
|
4548
|
-
|
|
4549
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4550
4519
|
var require_ref = __commonJS({
|
|
4551
4520
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
4552
4521
|
"use strict";
|
|
@@ -4667,8 +4636,6 @@ var require_ref = __commonJS({
|
|
|
4667
4636
|
exports2.default = def;
|
|
4668
4637
|
}
|
|
4669
4638
|
});
|
|
4670
|
-
|
|
4671
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4672
4639
|
var require_core2 = __commonJS({
|
|
4673
4640
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
4674
4641
|
"use strict";
|
|
@@ -4688,8 +4655,6 @@ var require_core2 = __commonJS({
|
|
|
4688
4655
|
exports2.default = core;
|
|
4689
4656
|
}
|
|
4690
4657
|
});
|
|
4691
|
-
|
|
4692
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4693
4658
|
var require_limitNumber = __commonJS({
|
|
4694
4659
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
|
|
4695
4660
|
"use strict";
|
|
@@ -4720,8 +4685,6 @@ var require_limitNumber = __commonJS({
|
|
|
4720
4685
|
exports2.default = def;
|
|
4721
4686
|
}
|
|
4722
4687
|
});
|
|
4723
|
-
|
|
4724
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4725
4688
|
var require_multipleOf = __commonJS({
|
|
4726
4689
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
|
|
4727
4690
|
"use strict";
|
|
@@ -4748,8 +4711,6 @@ var require_multipleOf = __commonJS({
|
|
|
4748
4711
|
exports2.default = def;
|
|
4749
4712
|
}
|
|
4750
4713
|
});
|
|
4751
|
-
|
|
4752
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4753
4714
|
var require_ucs2length = __commonJS({
|
|
4754
4715
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
|
|
4755
4716
|
"use strict";
|
|
@@ -4774,8 +4735,6 @@ var require_ucs2length = __commonJS({
|
|
|
4774
4735
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4775
4736
|
}
|
|
4776
4737
|
});
|
|
4777
|
-
|
|
4778
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4779
4738
|
var require_limitLength = __commonJS({
|
|
4780
4739
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
|
|
4781
4740
|
"use strict";
|
|
@@ -4806,8 +4765,6 @@ var require_limitLength = __commonJS({
|
|
|
4806
4765
|
exports2.default = def;
|
|
4807
4766
|
}
|
|
4808
4767
|
});
|
|
4809
|
-
|
|
4810
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4811
4768
|
var require_pattern = __commonJS({
|
|
4812
4769
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
|
|
4813
4770
|
"use strict";
|
|
@@ -4843,8 +4800,6 @@ var require_pattern = __commonJS({
|
|
|
4843
4800
|
exports2.default = def;
|
|
4844
4801
|
}
|
|
4845
4802
|
});
|
|
4846
|
-
|
|
4847
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4848
4803
|
var require_limitProperties = __commonJS({
|
|
4849
4804
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
|
|
4850
4805
|
"use strict";
|
|
@@ -4872,8 +4827,6 @@ var require_limitProperties = __commonJS({
|
|
|
4872
4827
|
exports2.default = def;
|
|
4873
4828
|
}
|
|
4874
4829
|
});
|
|
4875
|
-
|
|
4876
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4877
4830
|
var require_required = __commonJS({
|
|
4878
4831
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
|
|
4879
4832
|
"use strict";
|
|
@@ -4954,8 +4907,6 @@ var require_required = __commonJS({
|
|
|
4954
4907
|
exports2.default = def;
|
|
4955
4908
|
}
|
|
4956
4909
|
});
|
|
4957
|
-
|
|
4958
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4959
4910
|
var require_limitItems = __commonJS({
|
|
4960
4911
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
|
|
4961
4912
|
"use strict";
|
|
@@ -4983,8 +4934,6 @@ var require_limitItems = __commonJS({
|
|
|
4983
4934
|
exports2.default = def;
|
|
4984
4935
|
}
|
|
4985
4936
|
});
|
|
4986
|
-
|
|
4987
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
4988
4937
|
var require_equal = __commonJS({
|
|
4989
4938
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports2) {
|
|
4990
4939
|
"use strict";
|
|
@@ -4994,8 +4943,6 @@ var require_equal = __commonJS({
|
|
|
4994
4943
|
exports2.default = equal;
|
|
4995
4944
|
}
|
|
4996
4945
|
});
|
|
4997
|
-
|
|
4998
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4999
4946
|
var require_uniqueItems = __commonJS({
|
|
5000
4947
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
|
|
5001
4948
|
"use strict";
|
|
@@ -5061,8 +5008,6 @@ var require_uniqueItems = __commonJS({
|
|
|
5061
5008
|
exports2.default = def;
|
|
5062
5009
|
}
|
|
5063
5010
|
});
|
|
5064
|
-
|
|
5065
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5066
5011
|
var require_const = __commonJS({
|
|
5067
5012
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
|
|
5068
5013
|
"use strict";
|
|
@@ -5090,8 +5035,6 @@ var require_const = __commonJS({
|
|
|
5090
5035
|
exports2.default = def;
|
|
5091
5036
|
}
|
|
5092
5037
|
});
|
|
5093
|
-
|
|
5094
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5095
5038
|
var require_enum = __commonJS({
|
|
5096
5039
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
|
|
5097
5040
|
"use strict";
|
|
@@ -5139,8 +5082,6 @@ var require_enum = __commonJS({
|
|
|
5139
5082
|
exports2.default = def;
|
|
5140
5083
|
}
|
|
5141
5084
|
});
|
|
5142
|
-
|
|
5143
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5144
5085
|
var require_validation = __commonJS({
|
|
5145
5086
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
|
|
5146
5087
|
"use strict";
|
|
@@ -5177,8 +5118,6 @@ var require_validation = __commonJS({
|
|
|
5177
5118
|
exports2.default = validation;
|
|
5178
5119
|
}
|
|
5179
5120
|
});
|
|
5180
|
-
|
|
5181
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5182
5121
|
var require_additionalItems = __commonJS({
|
|
5183
5122
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
|
|
5184
5123
|
"use strict";
|
|
@@ -5230,8 +5169,6 @@ var require_additionalItems = __commonJS({
|
|
|
5230
5169
|
exports2.default = def;
|
|
5231
5170
|
}
|
|
5232
5171
|
});
|
|
5233
|
-
|
|
5234
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5235
5172
|
var require_items = __commonJS({
|
|
5236
5173
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
|
|
5237
5174
|
"use strict";
|
|
@@ -5287,8 +5224,6 @@ var require_items = __commonJS({
|
|
|
5287
5224
|
exports2.default = def;
|
|
5288
5225
|
}
|
|
5289
5226
|
});
|
|
5290
|
-
|
|
5291
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5292
5227
|
var require_prefixItems = __commonJS({
|
|
5293
5228
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
|
|
5294
5229
|
"use strict";
|
|
@@ -5304,8 +5239,6 @@ var require_prefixItems = __commonJS({
|
|
|
5304
5239
|
exports2.default = def;
|
|
5305
5240
|
}
|
|
5306
5241
|
});
|
|
5307
|
-
|
|
5308
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5309
5242
|
var require_items2020 = __commonJS({
|
|
5310
5243
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
|
|
5311
5244
|
"use strict";
|
|
@@ -5339,8 +5272,6 @@ var require_items2020 = __commonJS({
|
|
|
5339
5272
|
exports2.default = def;
|
|
5340
5273
|
}
|
|
5341
5274
|
});
|
|
5342
|
-
|
|
5343
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5344
5275
|
var require_contains = __commonJS({
|
|
5345
5276
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
|
|
5346
5277
|
"use strict";
|
|
@@ -5433,8 +5364,6 @@ var require_contains = __commonJS({
|
|
|
5433
5364
|
exports2.default = def;
|
|
5434
5365
|
}
|
|
5435
5366
|
});
|
|
5436
|
-
|
|
5437
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5438
5367
|
var require_dependencies = __commonJS({
|
|
5439
5368
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
|
|
5440
5369
|
"use strict";
|
|
@@ -5527,8 +5456,6 @@ var require_dependencies = __commonJS({
|
|
|
5527
5456
|
exports2.default = def;
|
|
5528
5457
|
}
|
|
5529
5458
|
});
|
|
5530
|
-
|
|
5531
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5532
5459
|
var require_propertyNames = __commonJS({
|
|
5533
5460
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
|
|
5534
5461
|
"use strict";
|
|
@@ -5570,8 +5497,6 @@ var require_propertyNames = __commonJS({
|
|
|
5570
5497
|
exports2.default = def;
|
|
5571
5498
|
}
|
|
5572
5499
|
});
|
|
5573
|
-
|
|
5574
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5575
5500
|
var require_additionalProperties = __commonJS({
|
|
5576
5501
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
|
|
5577
5502
|
"use strict";
|
|
@@ -5676,8 +5601,6 @@ var require_additionalProperties = __commonJS({
|
|
|
5676
5601
|
exports2.default = def;
|
|
5677
5602
|
}
|
|
5678
5603
|
});
|
|
5679
|
-
|
|
5680
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5681
5604
|
var require_properties = __commonJS({
|
|
5682
5605
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
|
|
5683
5606
|
"use strict";
|
|
@@ -5734,8 +5657,6 @@ var require_properties = __commonJS({
|
|
|
5734
5657
|
exports2.default = def;
|
|
5735
5658
|
}
|
|
5736
5659
|
});
|
|
5737
|
-
|
|
5738
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5739
5660
|
var require_patternProperties = __commonJS({
|
|
5740
5661
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
|
|
5741
5662
|
"use strict";
|
|
@@ -5808,8 +5729,6 @@ var require_patternProperties = __commonJS({
|
|
|
5808
5729
|
exports2.default = def;
|
|
5809
5730
|
}
|
|
5810
5731
|
});
|
|
5811
|
-
|
|
5812
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5813
5732
|
var require_not = __commonJS({
|
|
5814
5733
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
|
|
5815
5734
|
"use strict";
|
|
@@ -5839,8 +5758,6 @@ var require_not = __commonJS({
|
|
|
5839
5758
|
exports2.default = def;
|
|
5840
5759
|
}
|
|
5841
5760
|
});
|
|
5842
|
-
|
|
5843
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5844
5761
|
var require_anyOf = __commonJS({
|
|
5845
5762
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
|
|
5846
5763
|
"use strict";
|
|
@@ -5856,8 +5773,6 @@ var require_anyOf = __commonJS({
|
|
|
5856
5773
|
exports2.default = def;
|
|
5857
5774
|
}
|
|
5858
5775
|
});
|
|
5859
|
-
|
|
5860
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5861
5776
|
var require_oneOf = __commonJS({
|
|
5862
5777
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
|
|
5863
5778
|
"use strict";
|
|
@@ -5914,8 +5829,6 @@ var require_oneOf = __commonJS({
|
|
|
5914
5829
|
exports2.default = def;
|
|
5915
5830
|
}
|
|
5916
5831
|
});
|
|
5917
|
-
|
|
5918
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5919
5832
|
var require_allOf = __commonJS({
|
|
5920
5833
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
|
|
5921
5834
|
"use strict";
|
|
@@ -5941,8 +5854,6 @@ var require_allOf = __commonJS({
|
|
|
5941
5854
|
exports2.default = def;
|
|
5942
5855
|
}
|
|
5943
5856
|
});
|
|
5944
|
-
|
|
5945
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5946
5857
|
var require_if = __commonJS({
|
|
5947
5858
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
|
|
5948
5859
|
"use strict";
|
|
@@ -6010,8 +5921,6 @@ var require_if = __commonJS({
|
|
|
6010
5921
|
exports2.default = def;
|
|
6011
5922
|
}
|
|
6012
5923
|
});
|
|
6013
|
-
|
|
6014
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6015
5924
|
var require_thenElse = __commonJS({
|
|
6016
5925
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
|
|
6017
5926
|
"use strict";
|
|
@@ -6028,8 +5937,6 @@ var require_thenElse = __commonJS({
|
|
|
6028
5937
|
exports2.default = def;
|
|
6029
5938
|
}
|
|
6030
5939
|
});
|
|
6031
|
-
|
|
6032
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6033
5940
|
var require_applicator = __commonJS({
|
|
6034
5941
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
|
|
6035
5942
|
"use strict";
|
|
@@ -6076,8 +5983,6 @@ var require_applicator = __commonJS({
|
|
|
6076
5983
|
exports2.default = getApplicator;
|
|
6077
5984
|
}
|
|
6078
5985
|
});
|
|
6079
|
-
|
|
6080
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
6081
5986
|
var require_format = __commonJS({
|
|
6082
5987
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
|
|
6083
5988
|
"use strict";
|
|
@@ -6166,8 +6071,6 @@ var require_format = __commonJS({
|
|
|
6166
6071
|
exports2.default = def;
|
|
6167
6072
|
}
|
|
6168
6073
|
});
|
|
6169
|
-
|
|
6170
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6171
6074
|
var require_format2 = __commonJS({
|
|
6172
6075
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
|
|
6173
6076
|
"use strict";
|
|
@@ -6177,8 +6080,6 @@ var require_format2 = __commonJS({
|
|
|
6177
6080
|
exports2.default = format;
|
|
6178
6081
|
}
|
|
6179
6082
|
});
|
|
6180
|
-
|
|
6181
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6182
6083
|
var require_metadata = __commonJS({
|
|
6183
6084
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
|
|
6184
6085
|
"use strict";
|
|
@@ -6200,8 +6101,6 @@ var require_metadata = __commonJS({
|
|
|
6200
6101
|
];
|
|
6201
6102
|
}
|
|
6202
6103
|
});
|
|
6203
|
-
|
|
6204
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6205
6104
|
var require_draft7 = __commonJS({
|
|
6206
6105
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
|
|
6207
6106
|
"use strict";
|
|
@@ -6222,8 +6121,6 @@ var require_draft7 = __commonJS({
|
|
|
6222
6121
|
exports2.default = draft7Vocabularies;
|
|
6223
6122
|
}
|
|
6224
6123
|
});
|
|
6225
|
-
|
|
6226
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6227
6124
|
var require_types = __commonJS({
|
|
6228
6125
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
|
|
6229
6126
|
"use strict";
|
|
@@ -6236,8 +6133,6 @@ var require_types = __commonJS({
|
|
|
6236
6133
|
})(DiscrError || (exports2.DiscrError = DiscrError = {}));
|
|
6237
6134
|
}
|
|
6238
6135
|
});
|
|
6239
|
-
|
|
6240
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6241
6136
|
var require_discriminator = __commonJS({
|
|
6242
6137
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
|
|
6243
6138
|
"use strict";
|
|
@@ -6341,8 +6236,6 @@ var require_discriminator = __commonJS({
|
|
|
6341
6236
|
exports2.default = def;
|
|
6342
6237
|
}
|
|
6343
6238
|
});
|
|
6344
|
-
|
|
6345
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6346
6239
|
var require_json_schema_draft_07 = __commonJS({
|
|
6347
6240
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
|
|
6348
6241
|
module2.exports = {
|
|
@@ -6498,8 +6391,6 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6498
6391
|
};
|
|
6499
6392
|
}
|
|
6500
6393
|
});
|
|
6501
|
-
|
|
6502
|
-
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
6503
6394
|
var require_ajv = __commonJS({
|
|
6504
6395
|
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports2, module2) {
|
|
6505
6396
|
"use strict";
|
|
@@ -6568,8 +6459,6 @@ var require_ajv = __commonJS({
|
|
|
6568
6459
|
} });
|
|
6569
6460
|
}
|
|
6570
6461
|
});
|
|
6571
|
-
|
|
6572
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
|
|
6573
6462
|
var require_formats = __commonJS({
|
|
6574
6463
|
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports2) {
|
|
6575
6464
|
"use strict";
|
|
@@ -6771,8 +6660,6 @@ var require_formats = __commonJS({
|
|
|
6771
6660
|
}
|
|
6772
6661
|
}
|
|
6773
6662
|
});
|
|
6774
|
-
|
|
6775
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
|
|
6776
6663
|
var require_limit = __commonJS({
|
|
6777
6664
|
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports2) {
|
|
6778
6665
|
"use strict";
|
|
@@ -6843,8 +6730,6 @@ var require_limit = __commonJS({
|
|
|
6843
6730
|
exports2.default = formatLimitPlugin;
|
|
6844
6731
|
}
|
|
6845
6732
|
});
|
|
6846
|
-
|
|
6847
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
|
|
6848
6733
|
var require_dist = __commonJS({
|
|
6849
6734
|
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports2, module2) {
|
|
6850
6735
|
"use strict";
|
|
@@ -6885,30 +6770,106 @@ var require_dist = __commonJS({
|
|
|
6885
6770
|
exports2.default = formatsPlugin;
|
|
6886
6771
|
}
|
|
6887
6772
|
});
|
|
6888
|
-
|
|
6889
|
-
|
|
6773
|
+
var semantic_embedder_exports = {};
|
|
6774
|
+
__export(semantic_embedder_exports, {
|
|
6775
|
+
SemanticEmbedder: () => SemanticEmbedder
|
|
6776
|
+
});
|
|
6777
|
+
var SemanticEmbedder;
|
|
6778
|
+
var init_semantic_embedder = __esm({
|
|
6779
|
+
"../core/dist/semantic-embedder.js"() {
|
|
6780
|
+
"use strict";
|
|
6781
|
+
SemanticEmbedder = class {
|
|
6782
|
+
pipeline = null;
|
|
6783
|
+
_initPromise = null;
|
|
6784
|
+
_available = false;
|
|
6785
|
+
/**
|
|
6786
|
+
* Try to initialize the embedding pipeline.
|
|
6787
|
+
* Resolves without throwing even if @xenova/transformers is unavailable.
|
|
6788
|
+
*/
|
|
6789
|
+
async tryInitialize() {
|
|
6790
|
+
if (this._initPromise) {
|
|
6791
|
+
await this._initPromise;
|
|
6792
|
+
return this._available;
|
|
6793
|
+
}
|
|
6794
|
+
this._initPromise = this._load();
|
|
6795
|
+
await this._initPromise;
|
|
6796
|
+
return this._available;
|
|
6797
|
+
}
|
|
6798
|
+
async _load() {
|
|
6799
|
+
try {
|
|
6800
|
+
const { pipeline, env } = await import("@xenova/transformers");
|
|
6801
|
+
env.cacheDir = void 0;
|
|
6802
|
+
this.pipeline = await pipeline("feature-extraction", "Xenova/all-MiniLM-L6-v2", {
|
|
6803
|
+
quantized: true
|
|
6804
|
+
});
|
|
6805
|
+
this._available = true;
|
|
6806
|
+
} catch {
|
|
6807
|
+
this._available = false;
|
|
6808
|
+
}
|
|
6809
|
+
}
|
|
6810
|
+
get isAvailable() {
|
|
6811
|
+
return this._available;
|
|
6812
|
+
}
|
|
6813
|
+
/**
|
|
6814
|
+
* Embed a text string. Returns a normalized 384-dim Float32Array.
|
|
6815
|
+
* Throws if the embedder was not successfully initialized.
|
|
6816
|
+
*/
|
|
6817
|
+
async embed(text) {
|
|
6818
|
+
if (!this._available || !this.pipeline) {
|
|
6819
|
+
throw new Error("SemanticEmbedder is not available. Install @xenova/transformers to enable semantic search.");
|
|
6820
|
+
}
|
|
6821
|
+
const output = await this.pipeline(text, { pooling: "mean", normalize: true });
|
|
6822
|
+
return new Float32Array(output.data);
|
|
6823
|
+
}
|
|
6824
|
+
/**
|
|
6825
|
+
* Cosine similarity between two normalized vectors.
|
|
6826
|
+
* For unit vectors, this is equivalent to the dot product.
|
|
6827
|
+
*/
|
|
6828
|
+
static cosineSimilarity(a, b) {
|
|
6829
|
+
let dot = 0;
|
|
6830
|
+
for (let i = 0; i < a.length; i++) {
|
|
6831
|
+
dot += a[i] * b[i];
|
|
6832
|
+
}
|
|
6833
|
+
return dot;
|
|
6834
|
+
}
|
|
6835
|
+
/**
|
|
6836
|
+
* Build a text string to embed for a function entity.
|
|
6837
|
+
*/
|
|
6838
|
+
static functionText(name, signature, docComment) {
|
|
6839
|
+
return [name, signature, docComment].filter(Boolean).join(" ").trim().slice(0, 512);
|
|
6840
|
+
}
|
|
6841
|
+
/**
|
|
6842
|
+
* Build a text string to embed for a class entity.
|
|
6843
|
+
*/
|
|
6844
|
+
static classText(name, methods) {
|
|
6845
|
+
const methodNames = methods.map((m) => m.split(":").pop() || m);
|
|
6846
|
+
return `class ${name} ${methodNames.slice(0, 10).join(" ")}`.trim().slice(0, 512);
|
|
6847
|
+
}
|
|
6848
|
+
};
|
|
6849
|
+
}
|
|
6850
|
+
});
|
|
6890
6851
|
var require_typescript = __commonJS({
|
|
6891
6852
|
"../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js"(exports2, module2) {
|
|
6892
6853
|
var ts2 = {};
|
|
6893
6854
|
((module3) => {
|
|
6894
6855
|
"use strict";
|
|
6895
|
-
var
|
|
6896
|
-
var
|
|
6897
|
-
var
|
|
6898
|
-
var
|
|
6856
|
+
var __defProp22 = Object.defineProperty;
|
|
6857
|
+
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
6858
|
+
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
6859
|
+
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
6899
6860
|
var __export2 = (target, all) => {
|
|
6900
6861
|
for (var name in all)
|
|
6901
|
-
|
|
6862
|
+
__defProp22(target, name, { get: all[name], enumerable: true });
|
|
6902
6863
|
};
|
|
6903
|
-
var
|
|
6864
|
+
var __copyProps22 = (to, from, except, desc) => {
|
|
6904
6865
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
6905
|
-
for (let key of
|
|
6906
|
-
if (!
|
|
6907
|
-
|
|
6866
|
+
for (let key of __getOwnPropNames22(from))
|
|
6867
|
+
if (!__hasOwnProp22.call(to, key) && key !== except)
|
|
6868
|
+
__defProp22(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc22(from, key)) || desc.enumerable });
|
|
6908
6869
|
}
|
|
6909
6870
|
return to;
|
|
6910
6871
|
};
|
|
6911
|
-
var __toCommonJS = (mod) => (
|
|
6872
|
+
var __toCommonJS = (mod) => (__copyProps22, mod);
|
|
6912
6873
|
var typescript_exports = {};
|
|
6913
6874
|
__export2(typescript_exports, {
|
|
6914
6875
|
ANONYMOUS: () => ANONYMOUS,
|
|
@@ -217626,8 +217587,6 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
217626
217587
|
} });
|
|
217627
217588
|
}
|
|
217628
217589
|
});
|
|
217629
|
-
|
|
217630
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
217631
217590
|
var _a;
|
|
217632
217591
|
// @__NO_SIDE_EFFECTS__
|
|
217633
217592
|
function $constructor(name, initializer3, params) {
|
|
@@ -217699,8 +217658,6 @@ function config(newConfig) {
|
|
|
217699
217658
|
Object.assign(globalConfig, newConfig);
|
|
217700
217659
|
return globalConfig;
|
|
217701
217660
|
}
|
|
217702
|
-
|
|
217703
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
217704
217661
|
var util_exports = {};
|
|
217705
217662
|
__export(util_exports, {
|
|
217706
217663
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -218395,8 +218352,6 @@ var Class = class {
|
|
|
218395
218352
|
constructor(..._args) {
|
|
218396
218353
|
}
|
|
218397
218354
|
};
|
|
218398
|
-
|
|
218399
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
218400
218355
|
var initializer = (inst, def) => {
|
|
218401
218356
|
inst.name = "$ZodError";
|
|
218402
218357
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -218413,8 +218368,8 @@ var initializer = (inst, def) => {
|
|
|
218413
218368
|
enumerable: false
|
|
218414
218369
|
});
|
|
218415
218370
|
};
|
|
218416
|
-
var $ZodError = $constructor("$ZodError", initializer);
|
|
218417
|
-
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
218371
|
+
var $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer);
|
|
218372
|
+
var $ZodRealError = /* @__PURE__ */ $constructor("$ZodError", initializer, { Parent: Error });
|
|
218418
218373
|
function flattenError(error2, mapper = (issue2) => issue2.message) {
|
|
218419
218374
|
const fieldErrors = {};
|
|
218420
218375
|
const formErrors = [];
|
|
@@ -218464,8 +218419,6 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
|
|
|
218464
218419
|
processError(error2);
|
|
218465
218420
|
return fieldErrors;
|
|
218466
218421
|
}
|
|
218467
|
-
|
|
218468
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
218469
218422
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
218470
218423
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
218471
218424
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -218542,8 +218495,6 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
218542
218495
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
218543
218496
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
218544
218497
|
};
|
|
218545
|
-
|
|
218546
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
218547
218498
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
218548
218499
|
var cuid2 = /^[0-9a-z]+$/;
|
|
218549
218500
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -218600,8 +218551,6 @@ var boolean = /^(?:true|false)$/i;
|
|
|
218600
218551
|
var _null = /^null$/i;
|
|
218601
218552
|
var lowercase = /^[^A-Z]*$/;
|
|
218602
218553
|
var uppercase = /^[^a-z]*$/;
|
|
218603
|
-
|
|
218604
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
218605
218554
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
218606
218555
|
var _a3;
|
|
218607
218556
|
inst._zod ?? (inst._zod = {});
|
|
@@ -218990,8 +218939,6 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
218990
218939
|
payload.value = def.tx(payload.value);
|
|
218991
218940
|
};
|
|
218992
218941
|
});
|
|
218993
|
-
|
|
218994
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
218995
218942
|
var Doc = class {
|
|
218996
218943
|
constructor(args = []) {
|
|
218997
218944
|
this.content = [];
|
|
@@ -219026,15 +218973,11 @@ var Doc = class {
|
|
|
219026
218973
|
return new F(...args, lines.join("\n"));
|
|
219027
218974
|
}
|
|
219028
218975
|
};
|
|
219029
|
-
|
|
219030
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
219031
218976
|
var version = {
|
|
219032
218977
|
major: 4,
|
|
219033
218978
|
minor: 4,
|
|
219034
218979
|
patch: 3
|
|
219035
218980
|
};
|
|
219036
|
-
|
|
219037
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
219038
218981
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
219039
218982
|
var _a3;
|
|
219040
218983
|
inst ?? (inst = {});
|
|
@@ -220513,8 +220456,6 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
220513
220456
|
payload.issues.push(issue(_iss));
|
|
220514
220457
|
}
|
|
220515
220458
|
}
|
|
220516
|
-
|
|
220517
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
220518
220459
|
var error = () => {
|
|
220519
220460
|
const Sizable = {
|
|
220520
220461
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -220626,8 +220567,6 @@ function en_default() {
|
|
|
220626
220567
|
localeError: error()
|
|
220627
220568
|
};
|
|
220628
220569
|
}
|
|
220629
|
-
|
|
220630
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
220631
220570
|
var _a2;
|
|
220632
220571
|
var $ZodRegistry = class {
|
|
220633
220572
|
constructor() {
|
|
@@ -220674,8 +220613,6 @@ function registry() {
|
|
|
220674
220613
|
}
|
|
220675
220614
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
220676
220615
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
220677
|
-
|
|
220678
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
220679
220616
|
// @__NO_SIDE_EFFECTS__
|
|
220680
220617
|
function _string(Class2, params) {
|
|
220681
220618
|
return new Class2({
|
|
@@ -221202,8 +221139,6 @@ function _check(fn, params) {
|
|
|
221202
221139
|
ch._zod.check = fn;
|
|
221203
221140
|
return ch;
|
|
221204
221141
|
}
|
|
221205
|
-
|
|
221206
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
221207
221142
|
function initializeContext(params) {
|
|
221208
221143
|
let target = params?.target ?? "draft-2020-12";
|
|
221209
221144
|
if (target === "draft-4")
|
|
@@ -221561,8 +221496,6 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
221561
221496
|
extractDefs(ctx, schema);
|
|
221562
221497
|
return finalize(ctx, schema);
|
|
221563
221498
|
};
|
|
221564
|
-
|
|
221565
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
221566
221499
|
var formatMap = {
|
|
221567
221500
|
guid: "uuid",
|
|
221568
221501
|
url: "uri",
|
|
@@ -221894,8 +221827,6 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
221894
221827
|
const seen = ctx.seen.get(schema);
|
|
221895
221828
|
seen.ref = def.innerType;
|
|
221896
221829
|
};
|
|
221897
|
-
|
|
221898
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
221899
221830
|
function isZ4Schema(s) {
|
|
221900
221831
|
const schema = s;
|
|
221901
221832
|
return !!schema._zod;
|
|
@@ -221957,8 +221888,6 @@ function getLiteralValue(schema) {
|
|
|
221957
221888
|
return directValue;
|
|
221958
221889
|
return void 0;
|
|
221959
221890
|
}
|
|
221960
|
-
|
|
221961
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
221962
221891
|
var iso_exports = {};
|
|
221963
221892
|
__export(iso_exports, {
|
|
221964
221893
|
ZodISODate: () => ZodISODate,
|
|
@@ -221975,31 +221904,29 @@ var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def)
|
|
|
221975
221904
|
ZodStringFormat.init(inst, def);
|
|
221976
221905
|
});
|
|
221977
221906
|
function datetime2(params) {
|
|
221978
|
-
return _isoDateTime(ZodISODateTime, params);
|
|
221907
|
+
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
221979
221908
|
}
|
|
221980
221909
|
var ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
|
|
221981
221910
|
$ZodISODate.init(inst, def);
|
|
221982
221911
|
ZodStringFormat.init(inst, def);
|
|
221983
221912
|
});
|
|
221984
221913
|
function date2(params) {
|
|
221985
|
-
return _isoDate(ZodISODate, params);
|
|
221914
|
+
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
221986
221915
|
}
|
|
221987
221916
|
var ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
|
|
221988
221917
|
$ZodISOTime.init(inst, def);
|
|
221989
221918
|
ZodStringFormat.init(inst, def);
|
|
221990
221919
|
});
|
|
221991
221920
|
function time2(params) {
|
|
221992
|
-
return _isoTime(ZodISOTime, params);
|
|
221921
|
+
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
221993
221922
|
}
|
|
221994
221923
|
var ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
|
|
221995
221924
|
$ZodISODuration.init(inst, def);
|
|
221996
221925
|
ZodStringFormat.init(inst, def);
|
|
221997
221926
|
});
|
|
221998
221927
|
function duration2(params) {
|
|
221999
|
-
return _isoDuration(ZodISODuration, params);
|
|
221928
|
+
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
222000
221929
|
}
|
|
222001
|
-
|
|
222002
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
222003
221930
|
var initializer2 = (inst, issues) => {
|
|
222004
221931
|
$ZodError.init(inst, issues);
|
|
222005
221932
|
inst.name = "ZodError";
|
|
@@ -222037,8 +221964,6 @@ var initializer2 = (inst, issues) => {
|
|
|
222037
221964
|
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
222038
221965
|
Parent: Error
|
|
222039
221966
|
});
|
|
222040
|
-
|
|
222041
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
222042
221967
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
222043
221968
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
222044
221969
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -222051,8 +221976,6 @@ var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
222051
221976
|
var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
222052
221977
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
222053
221978
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
222054
|
-
|
|
222055
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
222056
221979
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
222057
221980
|
function _installLazyMethods(inst, group, methods) {
|
|
222058
221981
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -222145,7 +222068,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
222145
222068
|
return this.check(superRefine(refinement, params));
|
|
222146
222069
|
},
|
|
222147
222070
|
overwrite(fn) {
|
|
222148
|
-
return this.check(_overwrite(fn));
|
|
222071
|
+
return this.check(/* @__PURE__ */ _overwrite(fn));
|
|
222149
222072
|
},
|
|
222150
222073
|
optional() {
|
|
222151
222074
|
return optional(this);
|
|
@@ -222229,85 +222152,85 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
222229
222152
|
inst.maxLength = bag.maximum ?? null;
|
|
222230
222153
|
_installLazyMethods(inst, "_ZodString", {
|
|
222231
222154
|
regex(...args) {
|
|
222232
|
-
return this.check(_regex(...args));
|
|
222155
|
+
return this.check(/* @__PURE__ */ _regex(...args));
|
|
222233
222156
|
},
|
|
222234
222157
|
includes(...args) {
|
|
222235
|
-
return this.check(_includes(...args));
|
|
222158
|
+
return this.check(/* @__PURE__ */ _includes(...args));
|
|
222236
222159
|
},
|
|
222237
222160
|
startsWith(...args) {
|
|
222238
|
-
return this.check(_startsWith(...args));
|
|
222161
|
+
return this.check(/* @__PURE__ */ _startsWith(...args));
|
|
222239
222162
|
},
|
|
222240
222163
|
endsWith(...args) {
|
|
222241
|
-
return this.check(_endsWith(...args));
|
|
222164
|
+
return this.check(/* @__PURE__ */ _endsWith(...args));
|
|
222242
222165
|
},
|
|
222243
222166
|
min(...args) {
|
|
222244
|
-
return this.check(_minLength(...args));
|
|
222167
|
+
return this.check(/* @__PURE__ */ _minLength(...args));
|
|
222245
222168
|
},
|
|
222246
222169
|
max(...args) {
|
|
222247
|
-
return this.check(_maxLength(...args));
|
|
222170
|
+
return this.check(/* @__PURE__ */ _maxLength(...args));
|
|
222248
222171
|
},
|
|
222249
222172
|
length(...args) {
|
|
222250
|
-
return this.check(_length(...args));
|
|
222173
|
+
return this.check(/* @__PURE__ */ _length(...args));
|
|
222251
222174
|
},
|
|
222252
222175
|
nonempty(...args) {
|
|
222253
|
-
return this.check(_minLength(1, ...args));
|
|
222176
|
+
return this.check(/* @__PURE__ */ _minLength(1, ...args));
|
|
222254
222177
|
},
|
|
222255
222178
|
lowercase(params) {
|
|
222256
|
-
return this.check(_lowercase(params));
|
|
222179
|
+
return this.check(/* @__PURE__ */ _lowercase(params));
|
|
222257
222180
|
},
|
|
222258
222181
|
uppercase(params) {
|
|
222259
|
-
return this.check(_uppercase(params));
|
|
222182
|
+
return this.check(/* @__PURE__ */ _uppercase(params));
|
|
222260
222183
|
},
|
|
222261
222184
|
trim() {
|
|
222262
|
-
return this.check(_trim());
|
|
222185
|
+
return this.check(/* @__PURE__ */ _trim());
|
|
222263
222186
|
},
|
|
222264
222187
|
normalize(...args) {
|
|
222265
|
-
return this.check(_normalize(...args));
|
|
222188
|
+
return this.check(/* @__PURE__ */ _normalize(...args));
|
|
222266
222189
|
},
|
|
222267
222190
|
toLowerCase() {
|
|
222268
|
-
return this.check(_toLowerCase());
|
|
222191
|
+
return this.check(/* @__PURE__ */ _toLowerCase());
|
|
222269
222192
|
},
|
|
222270
222193
|
toUpperCase() {
|
|
222271
|
-
return this.check(_toUpperCase());
|
|
222194
|
+
return this.check(/* @__PURE__ */ _toUpperCase());
|
|
222272
222195
|
},
|
|
222273
222196
|
slugify() {
|
|
222274
|
-
return this.check(_slugify());
|
|
222197
|
+
return this.check(/* @__PURE__ */ _slugify());
|
|
222275
222198
|
}
|
|
222276
222199
|
});
|
|
222277
222200
|
});
|
|
222278
222201
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
222279
222202
|
$ZodString.init(inst, def);
|
|
222280
222203
|
_ZodString.init(inst, def);
|
|
222281
|
-
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
222282
|
-
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
222283
|
-
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
222284
|
-
inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));
|
|
222285
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
222286
|
-
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
222287
|
-
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
222288
|
-
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
222289
|
-
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
222290
|
-
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
222291
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
222292
|
-
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
222293
|
-
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
222294
|
-
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
222295
|
-
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
222296
|
-
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
222297
|
-
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
222298
|
-
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
222299
|
-
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
222300
|
-
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
222301
|
-
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
222302
|
-
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
222303
|
-
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
222204
|
+
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
222205
|
+
inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
|
|
222206
|
+
inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
|
|
222207
|
+
inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji2(ZodEmoji, params));
|
|
222208
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
222209
|
+
inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
|
|
222210
|
+
inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
|
|
222211
|
+
inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
|
|
222212
|
+
inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
|
|
222213
|
+
inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
|
|
222214
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
222215
|
+
inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
|
|
222216
|
+
inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
|
|
222217
|
+
inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
|
|
222218
|
+
inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
|
|
222219
|
+
inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
|
|
222220
|
+
inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
|
|
222221
|
+
inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
|
|
222222
|
+
inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
|
|
222223
|
+
inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
|
|
222224
|
+
inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
|
|
222225
|
+
inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
|
|
222226
|
+
inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
|
|
222304
222227
|
inst.datetime = (params) => inst.check(datetime2(params));
|
|
222305
222228
|
inst.date = (params) => inst.check(date2(params));
|
|
222306
222229
|
inst.time = (params) => inst.check(time2(params));
|
|
222307
222230
|
inst.duration = (params) => inst.check(duration2(params));
|
|
222308
222231
|
});
|
|
222309
222232
|
function string2(params) {
|
|
222310
|
-
return _string(ZodString, params);
|
|
222233
|
+
return /* @__PURE__ */ _string(ZodString, params);
|
|
222311
222234
|
}
|
|
222312
222235
|
var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
222313
222236
|
$ZodStringFormat.init(inst, def);
|
|
@@ -222395,22 +222318,22 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
222395
222318
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
222396
222319
|
_installLazyMethods(inst, "ZodNumber", {
|
|
222397
222320
|
gt(value, params) {
|
|
222398
|
-
return this.check(_gt(value, params));
|
|
222321
|
+
return this.check(/* @__PURE__ */ _gt(value, params));
|
|
222399
222322
|
},
|
|
222400
222323
|
gte(value, params) {
|
|
222401
|
-
return this.check(_gte(value, params));
|
|
222324
|
+
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
222402
222325
|
},
|
|
222403
222326
|
min(value, params) {
|
|
222404
|
-
return this.check(_gte(value, params));
|
|
222327
|
+
return this.check(/* @__PURE__ */ _gte(value, params));
|
|
222405
222328
|
},
|
|
222406
222329
|
lt(value, params) {
|
|
222407
|
-
return this.check(_lt(value, params));
|
|
222330
|
+
return this.check(/* @__PURE__ */ _lt(value, params));
|
|
222408
222331
|
},
|
|
222409
222332
|
lte(value, params) {
|
|
222410
|
-
return this.check(_lte(value, params));
|
|
222333
|
+
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
222411
222334
|
},
|
|
222412
222335
|
max(value, params) {
|
|
222413
|
-
return this.check(_lte(value, params));
|
|
222336
|
+
return this.check(/* @__PURE__ */ _lte(value, params));
|
|
222414
222337
|
},
|
|
222415
222338
|
int(params) {
|
|
222416
222339
|
return this.check(int(params));
|
|
@@ -222419,22 +222342,22 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
222419
222342
|
return this.check(int(params));
|
|
222420
222343
|
},
|
|
222421
222344
|
positive(params) {
|
|
222422
|
-
return this.check(_gt(0, params));
|
|
222345
|
+
return this.check(/* @__PURE__ */ _gt(0, params));
|
|
222423
222346
|
},
|
|
222424
222347
|
nonnegative(params) {
|
|
222425
|
-
return this.check(_gte(0, params));
|
|
222348
|
+
return this.check(/* @__PURE__ */ _gte(0, params));
|
|
222426
222349
|
},
|
|
222427
222350
|
negative(params) {
|
|
222428
|
-
return this.check(_lt(0, params));
|
|
222351
|
+
return this.check(/* @__PURE__ */ _lt(0, params));
|
|
222429
222352
|
},
|
|
222430
222353
|
nonpositive(params) {
|
|
222431
|
-
return this.check(_lte(0, params));
|
|
222354
|
+
return this.check(/* @__PURE__ */ _lte(0, params));
|
|
222432
222355
|
},
|
|
222433
222356
|
multipleOf(value, params) {
|
|
222434
|
-
return this.check(_multipleOf(value, params));
|
|
222357
|
+
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
222435
222358
|
},
|
|
222436
222359
|
step(value, params) {
|
|
222437
|
-
return this.check(_multipleOf(value, params));
|
|
222360
|
+
return this.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
222438
222361
|
},
|
|
222439
222362
|
finite() {
|
|
222440
222363
|
return this;
|
|
@@ -222448,14 +222371,14 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
222448
222371
|
inst.format = bag.format ?? null;
|
|
222449
222372
|
});
|
|
222450
222373
|
function number2(params) {
|
|
222451
|
-
return _number(ZodNumber, params);
|
|
222374
|
+
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
222452
222375
|
}
|
|
222453
222376
|
var ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
|
|
222454
222377
|
$ZodNumberFormat.init(inst, def);
|
|
222455
222378
|
ZodNumber.init(inst, def);
|
|
222456
222379
|
});
|
|
222457
222380
|
function int(params) {
|
|
222458
|
-
return _int(ZodNumberFormat, params);
|
|
222381
|
+
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
222459
222382
|
}
|
|
222460
222383
|
var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
222461
222384
|
$ZodBoolean.init(inst, def);
|
|
@@ -222463,7 +222386,7 @@ var ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
222463
222386
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
222464
222387
|
});
|
|
222465
222388
|
function boolean2(params) {
|
|
222466
|
-
return _boolean(ZodBoolean, params);
|
|
222389
|
+
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
222467
222390
|
}
|
|
222468
222391
|
var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
222469
222392
|
$ZodNull.init(inst, def);
|
|
@@ -222471,7 +222394,7 @@ var ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
222471
222394
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
222472
222395
|
});
|
|
222473
222396
|
function _null3(params) {
|
|
222474
|
-
return _null2(ZodNull, params);
|
|
222397
|
+
return /* @__PURE__ */ _null2(ZodNull, params);
|
|
222475
222398
|
}
|
|
222476
222399
|
var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
222477
222400
|
$ZodUnknown.init(inst, def);
|
|
@@ -222479,7 +222402,7 @@ var ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
222479
222402
|
inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
|
|
222480
222403
|
});
|
|
222481
222404
|
function unknown() {
|
|
222482
|
-
return _unknown(ZodUnknown);
|
|
222405
|
+
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
222483
222406
|
}
|
|
222484
222407
|
var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
222485
222408
|
$ZodNever.init(inst, def);
|
|
@@ -222487,7 +222410,7 @@ var ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
222487
222410
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
222488
222411
|
});
|
|
222489
222412
|
function never(params) {
|
|
222490
|
-
return _never(ZodNever, params);
|
|
222413
|
+
return /* @__PURE__ */ _never(ZodNever, params);
|
|
222491
222414
|
}
|
|
222492
222415
|
var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
222493
222416
|
$ZodArray.init(inst, def);
|
|
@@ -222496,16 +222419,16 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
222496
222419
|
inst.element = def.element;
|
|
222497
222420
|
_installLazyMethods(inst, "ZodArray", {
|
|
222498
222421
|
min(n, params) {
|
|
222499
|
-
return this.check(_minLength(n, params));
|
|
222422
|
+
return this.check(/* @__PURE__ */ _minLength(n, params));
|
|
222500
222423
|
},
|
|
222501
222424
|
nonempty(params) {
|
|
222502
|
-
return this.check(_minLength(1, params));
|
|
222425
|
+
return this.check(/* @__PURE__ */ _minLength(1, params));
|
|
222503
222426
|
},
|
|
222504
222427
|
max(n, params) {
|
|
222505
|
-
return this.check(_maxLength(n, params));
|
|
222428
|
+
return this.check(/* @__PURE__ */ _maxLength(n, params));
|
|
222506
222429
|
},
|
|
222507
222430
|
length(n, params) {
|
|
222508
|
-
return this.check(_length(n, params));
|
|
222431
|
+
return this.check(/* @__PURE__ */ _length(n, params));
|
|
222509
222432
|
},
|
|
222510
222433
|
unwrap() {
|
|
222511
222434
|
return this.element;
|
|
@@ -222513,7 +222436,7 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
222513
222436
|
});
|
|
222514
222437
|
});
|
|
222515
222438
|
function array(element, params) {
|
|
222516
|
-
return _array(ZodArray, element, params);
|
|
222439
|
+
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
222517
222440
|
}
|
|
222518
222441
|
var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
222519
222442
|
$ZodObjectJIT.init(inst, def);
|
|
@@ -222878,13 +222801,13 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
222878
222801
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
222879
222802
|
});
|
|
222880
222803
|
function custom(fn, _params) {
|
|
222881
|
-
return _custom(ZodCustom, fn ?? (() => true), _params);
|
|
222804
|
+
return /* @__PURE__ */ _custom(ZodCustom, fn ?? (() => true), _params);
|
|
222882
222805
|
}
|
|
222883
222806
|
function refine(fn, _params = {}) {
|
|
222884
|
-
return _refine(ZodCustom, fn, _params);
|
|
222807
|
+
return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
|
|
222885
222808
|
}
|
|
222886
222809
|
function superRefine(fn, params) {
|
|
222887
|
-
return _superRefine(fn, params);
|
|
222810
|
+
return /* @__PURE__ */ _superRefine(fn, params);
|
|
222888
222811
|
}
|
|
222889
222812
|
function preprocess(fn, schema) {
|
|
222890
222813
|
return new ZodPreprocess({
|
|
@@ -222893,11 +222816,7 @@ function preprocess(fn, schema) {
|
|
|
222893
222816
|
out: schema
|
|
222894
222817
|
});
|
|
222895
222818
|
}
|
|
222896
|
-
|
|
222897
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
222898
222819
|
config(en_default());
|
|
222899
|
-
|
|
222900
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
222901
222820
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
222902
222821
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
222903
222822
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -224415,16 +224334,10 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
224415
224334
|
return this.data?.elicitations ?? [];
|
|
224416
224335
|
}
|
|
224417
224336
|
};
|
|
224418
|
-
|
|
224419
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
224420
224337
|
function isTerminal(status) {
|
|
224421
224338
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
224422
224339
|
}
|
|
224423
|
-
|
|
224424
|
-
// ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.4.3/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
224425
224340
|
var ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
224426
|
-
|
|
224427
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
224428
224341
|
function getMethodLiteral(schema) {
|
|
224429
224342
|
const shape = getObjectShape(schema);
|
|
224430
224343
|
const methodSchema = shape?.method;
|
|
@@ -224444,8 +224357,6 @@ function parseWithCompat(schema, data) {
|
|
|
224444
224357
|
}
|
|
224445
224358
|
return result.data;
|
|
224446
224359
|
}
|
|
224447
|
-
|
|
224448
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
224449
224360
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
224450
224361
|
var Protocol = class {
|
|
224451
224362
|
constructor(_options) {
|
|
@@ -225398,10 +225309,8 @@ function mergeCapabilities(base, additional) {
|
|
|
225398
225309
|
}
|
|
225399
225310
|
return result;
|
|
225400
225311
|
}
|
|
225401
|
-
|
|
225402
|
-
|
|
225403
|
-
var import_ajv = __toESM(require_ajv(), 1);
|
|
225404
|
-
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
225312
|
+
var import_ajv = __toESM2(require_ajv(), 1);
|
|
225313
|
+
var import_ajv_formats = __toESM2(require_dist(), 1);
|
|
225405
225314
|
function createDefaultAjvInstance() {
|
|
225406
225315
|
const ajv = new import_ajv.default({
|
|
225407
225316
|
strict: false,
|
|
@@ -225466,8 +225375,6 @@ var AjvJsonSchemaValidator = class {
|
|
|
225466
225375
|
};
|
|
225467
225376
|
}
|
|
225468
225377
|
};
|
|
225469
|
-
|
|
225470
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
225471
225378
|
var ExperimentalServerTasks = class {
|
|
225472
225379
|
constructor(_server) {
|
|
225473
225380
|
this._server = _server;
|
|
@@ -225679,8 +225586,6 @@ var ExperimentalServerTasks = class {
|
|
|
225679
225586
|
return this._server.cancelTask({ taskId }, options);
|
|
225680
225587
|
}
|
|
225681
225588
|
};
|
|
225682
|
-
|
|
225683
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
225684
225589
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
225685
225590
|
if (!requests) {
|
|
225686
225591
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -225714,8 +225619,6 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
225714
225619
|
break;
|
|
225715
225620
|
}
|
|
225716
225621
|
}
|
|
225717
|
-
|
|
225718
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
225719
225622
|
var Server = class extends Protocol {
|
|
225720
225623
|
/**
|
|
225721
225624
|
* Initializes this server with the given name and version information.
|
|
@@ -226094,11 +225997,7 @@ var Server = class extends Protocol {
|
|
|
226094
225997
|
return this.notification({ method: "notifications/prompts/list_changed" });
|
|
226095
225998
|
}
|
|
226096
225999
|
};
|
|
226097
|
-
|
|
226098
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
226099
|
-
var import_node_process = __toESM(require("node:process"), 1);
|
|
226100
|
-
|
|
226101
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
226000
|
+
var import_node_process = __toESM2(require("node:process"), 1);
|
|
226102
226001
|
var ReadBuffer = class {
|
|
226103
226002
|
append(chunk) {
|
|
226104
226003
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -226125,8 +226024,6 @@ function deserializeMessage(line) {
|
|
|
226125
226024
|
function serializeMessage(message) {
|
|
226126
226025
|
return JSON.stringify(message) + "\n";
|
|
226127
226026
|
}
|
|
226128
|
-
|
|
226129
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
226130
226027
|
var StdioServerTransport = class {
|
|
226131
226028
|
constructor(_stdin = import_node_process.default.stdin, _stdout = import_node_process.default.stdout) {
|
|
226132
226029
|
this._stdin = _stdin;
|
|
@@ -226186,31 +226083,36 @@ var StdioServerTransport = class {
|
|
|
226186
226083
|
});
|
|
226187
226084
|
}
|
|
226188
226085
|
};
|
|
226189
|
-
|
|
226190
|
-
|
|
226191
|
-
var
|
|
226192
|
-
var
|
|
226193
|
-
var
|
|
226194
|
-
var import_node_http = __toESM(require("node:http"), 1);
|
|
226195
|
-
|
|
226196
|
-
// ../core/dist/context-engine.js
|
|
226197
|
-
var import_node_crypto = __toESM(require("node:crypto"), 1);
|
|
226086
|
+
var import_node_crypto7 = __toESM2(require("node:crypto"), 1);
|
|
226087
|
+
var import_node_fs3 = __toESM2(require("node:fs"), 1);
|
|
226088
|
+
var import_node_path3 = __toESM2(require("node:path"), 1);
|
|
226089
|
+
var import_node_http = __toESM2(require("node:http"), 1);
|
|
226090
|
+
var import_node_crypto = __toESM2(require("node:crypto"), 1);
|
|
226198
226091
|
var ContextEngine = class {
|
|
226199
226092
|
storage;
|
|
226200
|
-
|
|
226093
|
+
embedder;
|
|
226094
|
+
constructor(storage, embedder) {
|
|
226201
226095
|
this.storage = storage;
|
|
226096
|
+
this.embedder = embedder;
|
|
226202
226097
|
}
|
|
226203
226098
|
/**
|
|
226204
|
-
* Retrieve context for a given query.
|
|
226099
|
+
* Retrieve context for a given query.
|
|
226100
|
+
* When query.semantic is true (and embeddings exist), uses hybrid keyword + vector scoring.
|
|
226205
226101
|
*/
|
|
226206
|
-
getContext(query) {
|
|
226102
|
+
async getContext(query) {
|
|
226207
226103
|
const startTime = performance.now();
|
|
226208
226104
|
const sections = [];
|
|
226209
226105
|
const entitiesFound = [];
|
|
226210
226106
|
const queryStr = this.normalizeQuery(query.query);
|
|
226211
226107
|
const maxTokens = query.maxTokens || 4e3;
|
|
226212
226108
|
let totalTokens = 0;
|
|
226213
|
-
const
|
|
226109
|
+
const useSemantic = query.semantic !== false && this.embedder?.isAvailable && this.storage.hasEmbeddings();
|
|
226110
|
+
let functions = this.storage.searchFunctions(queryStr, useSemantic ? 8 : 10);
|
|
226111
|
+
if (useSemantic && this.embedder) {
|
|
226112
|
+
const semanticFunctions = await this.semanticSearchFunctions(query.query, 8);
|
|
226113
|
+
const merged = this.mergeFunctionResults(functions, semanticFunctions);
|
|
226114
|
+
functions = merged.slice(0, 10);
|
|
226115
|
+
}
|
|
226214
226116
|
if (functions.length > 0) {
|
|
226215
226117
|
entitiesFound.push(...functions.map((f) => f.fullName));
|
|
226216
226118
|
const section = this.buildFunctionSection(functions, queryStr);
|
|
@@ -226248,7 +226150,6 @@ var ContextEngine = class {
|
|
|
226248
226150
|
}
|
|
226249
226151
|
}
|
|
226250
226152
|
const summary = this.buildSummary(query.query, sections, functions);
|
|
226251
|
-
const elapsed = performance.now() - startTime;
|
|
226252
226153
|
const contextId = import_node_crypto.default.randomUUID();
|
|
226253
226154
|
return {
|
|
226254
226155
|
id: contextId,
|
|
@@ -226262,6 +226163,58 @@ var ContextEngine = class {
|
|
|
226262
226163
|
}
|
|
226263
226164
|
};
|
|
226264
226165
|
}
|
|
226166
|
+
/**
|
|
226167
|
+
* Embed the query and return the most similar functions by cosine similarity.
|
|
226168
|
+
*/
|
|
226169
|
+
async semanticSearchFunctions(query, limit) {
|
|
226170
|
+
if (!this.embedder)
|
|
226171
|
+
return [];
|
|
226172
|
+
let queryVec;
|
|
226173
|
+
try {
|
|
226174
|
+
queryVec = await this.embedder.embed(query);
|
|
226175
|
+
} catch {
|
|
226176
|
+
return [];
|
|
226177
|
+
}
|
|
226178
|
+
const allEmbeddings = this.storage.getAllEmbeddings();
|
|
226179
|
+
const fnEmbeddings = allEmbeddings.filter((e) => e.entityType === "function");
|
|
226180
|
+
const { SemanticEmbedder: SemanticEmbedder2 } = await Promise.resolve().then(() => (init_semantic_embedder(), semantic_embedder_exports));
|
|
226181
|
+
const scored = fnEmbeddings.map((e) => ({
|
|
226182
|
+
entityId: e.entityId,
|
|
226183
|
+
score: SemanticEmbedder2.cosineSimilarity(queryVec, e.embedding)
|
|
226184
|
+
}));
|
|
226185
|
+
scored.sort((a, b) => b.score - a.score);
|
|
226186
|
+
const topIds = scored.slice(0, limit).map((s) => s.entityId);
|
|
226187
|
+
return topIds.map((id) => this.storage.getFunctionById(id)).filter((fn) => fn !== null);
|
|
226188
|
+
}
|
|
226189
|
+
/**
|
|
226190
|
+
* Merge keyword results and semantic results, deduplicating by id.
|
|
226191
|
+
* Entities present in both lists are ranked first.
|
|
226192
|
+
*/
|
|
226193
|
+
mergeFunctionResults(keyword, semantic) {
|
|
226194
|
+
const seen = /* @__PURE__ */ new Set();
|
|
226195
|
+
const both = [];
|
|
226196
|
+
const keywordOnly = [];
|
|
226197
|
+
const semanticOnly = [];
|
|
226198
|
+
const semanticIds = new Set(semantic.map((f) => f.id));
|
|
226199
|
+
const keywordIds = new Set(keyword.map((f) => f.id));
|
|
226200
|
+
for (const fn of keyword) {
|
|
226201
|
+
if (seen.has(fn.id))
|
|
226202
|
+
continue;
|
|
226203
|
+
seen.add(fn.id);
|
|
226204
|
+
if (semanticIds.has(fn.id))
|
|
226205
|
+
both.push(fn);
|
|
226206
|
+
else
|
|
226207
|
+
keywordOnly.push(fn);
|
|
226208
|
+
}
|
|
226209
|
+
for (const fn of semantic) {
|
|
226210
|
+
if (seen.has(fn.id))
|
|
226211
|
+
continue;
|
|
226212
|
+
seen.add(fn.id);
|
|
226213
|
+
if (!keywordIds.has(fn.id))
|
|
226214
|
+
semanticOnly.push(fn);
|
|
226215
|
+
}
|
|
226216
|
+
return [...both, ...keywordOnly, ...semanticOnly];
|
|
226217
|
+
}
|
|
226265
226218
|
/**
|
|
226266
226219
|
* Get context for a specific file.
|
|
226267
226220
|
*/
|
|
@@ -226574,16 +226527,12 @@ var ContextEngine = class {
|
|
|
226574
226527
|
return Math.ceil(text.length / 4);
|
|
226575
226528
|
}
|
|
226576
226529
|
};
|
|
226577
|
-
|
|
226578
|
-
|
|
226579
|
-
var
|
|
226580
|
-
var
|
|
226581
|
-
var
|
|
226582
|
-
var
|
|
226583
|
-
|
|
226584
|
-
// ../core/dist/ast-parser.js
|
|
226585
|
-
var import_typescript = __toESM(require_typescript(), 1);
|
|
226586
|
-
var import_node_crypto2 = __toESM(require("node:crypto"), 1);
|
|
226530
|
+
var import_node_fs = __toESM2(require("node:fs"), 1);
|
|
226531
|
+
var import_node_path = __toESM2(require("node:path"), 1);
|
|
226532
|
+
var import_node_crypto4 = __toESM2(require("node:crypto"), 1);
|
|
226533
|
+
var import_chokidar = __toESM2(require("chokidar"), 1);
|
|
226534
|
+
var import_typescript = __toESM2(require_typescript(), 1);
|
|
226535
|
+
var import_node_crypto2 = __toESM2(require("node:crypto"), 1);
|
|
226587
226536
|
var AstParser = class {
|
|
226588
226537
|
/**
|
|
226589
226538
|
* Parse a TypeScript/JavaScript file and extract code entities.
|
|
@@ -226768,9 +226717,7 @@ var AstParser = class {
|
|
|
226768
226717
|
return Math.ceil(content.length / 4);
|
|
226769
226718
|
}
|
|
226770
226719
|
};
|
|
226771
|
-
|
|
226772
|
-
// ../core/dist/multi-language-parser.js
|
|
226773
|
-
var import_node_crypto3 = __toESM(require("node:crypto"), 1);
|
|
226720
|
+
var import_node_crypto3 = __toESM2(require("node:crypto"), 1);
|
|
226774
226721
|
var PythonParser = class {
|
|
226775
226722
|
language = "python";
|
|
226776
226723
|
extensions = [".py", ".pyw"];
|
|
@@ -227291,8 +227238,6 @@ var RustParser = class {
|
|
|
227291
227238
|
return complexity;
|
|
227292
227239
|
}
|
|
227293
227240
|
};
|
|
227294
|
-
|
|
227295
|
-
// ../core/dist/indexer.js
|
|
227296
227241
|
var Indexer = class {
|
|
227297
227242
|
tsParser;
|
|
227298
227243
|
pythonParser;
|
|
@@ -227470,11 +227415,54 @@ var Indexer = class {
|
|
|
227470
227415
|
}
|
|
227471
227416
|
}
|
|
227472
227417
|
this._isIndexing = false;
|
|
227418
|
+
if (options?.semantic && options.embedder?.isAvailable) {
|
|
227419
|
+
await this.generateEmbeddings(options.embedder, progress);
|
|
227420
|
+
}
|
|
227473
227421
|
if (options?.watch) {
|
|
227474
227422
|
this.startWatching(repoDir2);
|
|
227475
227423
|
}
|
|
227476
227424
|
return progress;
|
|
227477
227425
|
}
|
|
227426
|
+
// ─── Semantic Embedding Generation ─────────────────────
|
|
227427
|
+
/**
|
|
227428
|
+
* Generate and store embeddings for all functions and classes in the database.
|
|
227429
|
+
* Called automatically after `indexRepo` when `options.semantic` is true.
|
|
227430
|
+
* Reports progress via `progress.indexed` (re-uses the counter for display convenience).
|
|
227431
|
+
*/
|
|
227432
|
+
async generateEmbeddings(embedder, progress) {
|
|
227433
|
+
const { SemanticEmbedder: SE } = await Promise.resolve().then(() => (init_semantic_embedder(), semantic_embedder_exports));
|
|
227434
|
+
const functions = this.storage.getAllFunctions();
|
|
227435
|
+
const classes = this.storage.getAllClasses();
|
|
227436
|
+
let done = 0;
|
|
227437
|
+
const total = functions.length + classes.length;
|
|
227438
|
+
for (const fn of functions) {
|
|
227439
|
+
try {
|
|
227440
|
+
const text = SE.functionText(fn.name, fn.signature, fn.docComment);
|
|
227441
|
+
const vec = await embedder.embed(text);
|
|
227442
|
+
this.storage.upsertEmbedding(fn.id, "function", vec);
|
|
227443
|
+
} catch {
|
|
227444
|
+
}
|
|
227445
|
+
done++;
|
|
227446
|
+
if (done % 50 === 0) {
|
|
227447
|
+
process.stderr.write(`\r Embedding ${done}/${total} entities...`);
|
|
227448
|
+
}
|
|
227449
|
+
}
|
|
227450
|
+
for (const cls of classes) {
|
|
227451
|
+
try {
|
|
227452
|
+
const text = SE.classText(cls.name, cls.methods);
|
|
227453
|
+
const vec = await embedder.embed(text);
|
|
227454
|
+
this.storage.upsertEmbedding(cls.id, "class", vec);
|
|
227455
|
+
} catch {
|
|
227456
|
+
}
|
|
227457
|
+
done++;
|
|
227458
|
+
if (done % 50 === 0) {
|
|
227459
|
+
process.stderr.write(`\r Embedding ${done}/${total} entities...`);
|
|
227460
|
+
}
|
|
227461
|
+
}
|
|
227462
|
+
if (total > 0)
|
|
227463
|
+
process.stderr.write(`\r Embedded ${total} entities.
|
|
227464
|
+
`);
|
|
227465
|
+
}
|
|
227478
227466
|
// ─── File Watching ──────────────────────────────────────
|
|
227479
227467
|
/** Start watching the repository for file changes. */
|
|
227480
227468
|
startWatching(repoDir2, onChange) {
|
|
@@ -227744,11 +227732,9 @@ var Indexer = class {
|
|
|
227744
227732
|
return ["typescript", "javascript", "python", "go", "rust"];
|
|
227745
227733
|
}
|
|
227746
227734
|
};
|
|
227747
|
-
|
|
227748
|
-
|
|
227749
|
-
var
|
|
227750
|
-
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
227751
|
-
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
227735
|
+
var import_better_sqlite3 = __toESM2(require("better-sqlite3"), 1);
|
|
227736
|
+
var import_node_path2 = __toESM2(require("node:path"), 1);
|
|
227737
|
+
var import_node_fs2 = __toESM2(require("node:fs"), 1);
|
|
227752
227738
|
var Storage = class _Storage {
|
|
227753
227739
|
repoDir;
|
|
227754
227740
|
db;
|
|
@@ -227766,7 +227752,7 @@ var Storage = class _Storage {
|
|
|
227766
227752
|
* Current schema version. Increment when making incompatible schema changes.
|
|
227767
227753
|
* On mismatch the database is wiped and recreated automatically.
|
|
227768
227754
|
*/
|
|
227769
|
-
static SCHEMA_VERSION =
|
|
227755
|
+
static SCHEMA_VERSION = 3;
|
|
227770
227756
|
initialize() {
|
|
227771
227757
|
if (this.initialized)
|
|
227772
227758
|
return;
|
|
@@ -227779,6 +227765,7 @@ var Storage = class _Storage {
|
|
|
227779
227765
|
const currentVersion = row?.version ?? 0;
|
|
227780
227766
|
if (currentVersion !== _Storage.SCHEMA_VERSION) {
|
|
227781
227767
|
this.db.exec(`
|
|
227768
|
+
DROP TABLE IF EXISTS embeddings;
|
|
227782
227769
|
DROP TABLE IF EXISTS relationships;
|
|
227783
227770
|
DROP TABLE IF EXISTS feedback;
|
|
227784
227771
|
DROP TABLE IF EXISTS types;
|
|
@@ -227858,6 +227845,12 @@ var Storage = class _Storage {
|
|
|
227858
227845
|
CREATE INDEX IF NOT EXISTS idx_relationships_target ON relationships(target_id);
|
|
227859
227846
|
CREATE INDEX IF NOT EXISTS idx_relationships_type ON relationships(relation_type);
|
|
227860
227847
|
CREATE INDEX IF NOT EXISTS idx_feedback_context ON feedback(context_id);
|
|
227848
|
+
|
|
227849
|
+
CREATE TABLE IF NOT EXISTS embeddings (
|
|
227850
|
+
entity_id TEXT PRIMARY KEY,
|
|
227851
|
+
entity_type TEXT NOT NULL,
|
|
227852
|
+
embedding BLOB NOT NULL
|
|
227853
|
+
);
|
|
227861
227854
|
`);
|
|
227862
227855
|
this.initialized = true;
|
|
227863
227856
|
}
|
|
@@ -227911,6 +227904,10 @@ var Storage = class _Storage {
|
|
|
227911
227904
|
const rows = this.db.prepare("SELECT * FROM functions WHERE file_id = ?").all(fileId);
|
|
227912
227905
|
return rows.map((r) => this.rowToFunction(r));
|
|
227913
227906
|
}
|
|
227907
|
+
getFunctionById(id) {
|
|
227908
|
+
const row = this.db.prepare("SELECT * FROM functions WHERE id = ?").get(id);
|
|
227909
|
+
return row ? this.rowToFunction(row) : null;
|
|
227910
|
+
}
|
|
227914
227911
|
getAllFunctions() {
|
|
227915
227912
|
const rows = this.db.prepare("SELECT * FROM functions").all();
|
|
227916
227913
|
return rows.map((r) => this.rowToFunction(r));
|
|
@@ -227935,6 +227932,10 @@ var Storage = class _Storage {
|
|
|
227935
227932
|
const rows = this.db.prepare("SELECT * FROM classes WHERE file_id = ?").all(fileId);
|
|
227936
227933
|
return rows.map((r) => this.rowToClass(r));
|
|
227937
227934
|
}
|
|
227935
|
+
getAllClasses() {
|
|
227936
|
+
const rows = this.db.prepare("SELECT * FROM classes").all();
|
|
227937
|
+
return rows.map((r) => this.rowToClass(r));
|
|
227938
|
+
}
|
|
227938
227939
|
// ─── Type Operations ─────────────────────────────────────
|
|
227939
227940
|
upsertType(t) {
|
|
227940
227941
|
const id = t.id || `${t.fileId}:${t.name}`;
|
|
@@ -228182,6 +228183,32 @@ var Storage = class _Storage {
|
|
|
228182
228183
|
const typeCount = this.db.prepare("SELECT COUNT(*) as count FROM types").get().count;
|
|
228183
228184
|
return { fileCount, functionCount, classCount, typeCount };
|
|
228184
228185
|
}
|
|
228186
|
+
// ─── Embeddings ──────────────────────────────────────────
|
|
228187
|
+
upsertEmbedding(entityId, entityType, embedding) {
|
|
228188
|
+
this.db.prepare("INSERT INTO embeddings (entity_id, entity_type, embedding) VALUES (?, ?, ?) ON CONFLICT(entity_id) DO UPDATE SET embedding = excluded.embedding, entity_type = excluded.entity_type").run(entityId, entityType, Buffer.from(embedding.buffer));
|
|
228189
|
+
}
|
|
228190
|
+
/** Returns all stored embeddings. Use for in-process cosine similarity search. */
|
|
228191
|
+
getAllEmbeddings() {
|
|
228192
|
+
const rows = this.db.prepare("SELECT entity_id, entity_type, embedding FROM embeddings").all();
|
|
228193
|
+
return rows.map((r) => ({
|
|
228194
|
+
entityId: r.entity_id,
|
|
228195
|
+
entityType: r.entity_type,
|
|
228196
|
+
embedding: new Float32Array(r.embedding.buffer, r.embedding.byteOffset, r.embedding.byteLength / 4)
|
|
228197
|
+
}));
|
|
228198
|
+
}
|
|
228199
|
+
hasEmbeddings() {
|
|
228200
|
+
const row = this.db.prepare("SELECT COUNT(*) as count FROM embeddings").get();
|
|
228201
|
+
return row.count > 0;
|
|
228202
|
+
}
|
|
228203
|
+
deleteEmbeddingsForFile(fileId) {
|
|
228204
|
+
const fnIds = this.db.prepare("SELECT id FROM functions WHERE file_id = ?").all(fileId);
|
|
228205
|
+
const clsIds = this.db.prepare("SELECT id FROM classes WHERE file_id = ?").all(fileId);
|
|
228206
|
+
const ids = [...fnIds, ...clsIds].map((r) => r.id);
|
|
228207
|
+
if (ids.length === 0)
|
|
228208
|
+
return;
|
|
228209
|
+
const placeholders = ids.map(() => "?").join(", ");
|
|
228210
|
+
this.db.prepare(`DELETE FROM embeddings WHERE entity_id IN (${placeholders})`).run(...ids);
|
|
228211
|
+
}
|
|
228185
228212
|
// ─── Close ───────────────────────────────────────────────
|
|
228186
228213
|
close() {
|
|
228187
228214
|
this.db.close();
|
|
@@ -228255,9 +228282,7 @@ var Storage = class _Storage {
|
|
|
228255
228282
|
};
|
|
228256
228283
|
}
|
|
228257
228284
|
};
|
|
228258
|
-
|
|
228259
|
-
// ../core/dist/convention-detector.js
|
|
228260
|
-
var import_node_crypto5 = __toESM(require("node:crypto"), 1);
|
|
228285
|
+
var import_node_crypto5 = __toESM2(require("node:crypto"), 1);
|
|
228261
228286
|
var ConventionDetector = class {
|
|
228262
228287
|
storage;
|
|
228263
228288
|
constructor(storage) {
|
|
@@ -228649,9 +228674,7 @@ var ConventionDetector = class {
|
|
|
228649
228674
|
return labels[cat] || cat;
|
|
228650
228675
|
}
|
|
228651
228676
|
};
|
|
228652
|
-
|
|
228653
|
-
// ../core/dist/architecture-analyzer.js
|
|
228654
|
-
var import_node_crypto6 = __toESM(require("node:crypto"), 1);
|
|
228677
|
+
var import_node_crypto6 = __toESM2(require("node:crypto"), 1);
|
|
228655
228678
|
var ArchitectureAnalyzer = class {
|
|
228656
228679
|
storage;
|
|
228657
228680
|
constructor(storage) {
|
|
@@ -228953,8 +228976,6 @@ var ArchitectureAnalyzer = class {
|
|
|
228953
228976
|
return import_node_crypto6.default.createHash("md5").update(key).digest("hex").slice(0, 12);
|
|
228954
228977
|
}
|
|
228955
228978
|
};
|
|
228956
|
-
|
|
228957
|
-
// ../core/dist/knowledge-graph.js
|
|
228958
228979
|
var KnowledgeGraph = class {
|
|
228959
228980
|
storage;
|
|
228960
228981
|
nodes = /* @__PURE__ */ new Map();
|
|
@@ -229324,8 +229345,7 @@ var KnowledgeGraph = class {
|
|
|
229324
229345
|
return `Cluster-${nodes.length}-nodes`;
|
|
229325
229346
|
}
|
|
229326
229347
|
};
|
|
229327
|
-
|
|
229328
|
-
// ../sdk/dist/index.js
|
|
229348
|
+
init_semantic_embedder();
|
|
229329
229349
|
var import_meta = {};
|
|
229330
229350
|
var ContextBridge = class {
|
|
229331
229351
|
storage;
|
|
@@ -229333,6 +229353,7 @@ var ContextBridge = class {
|
|
|
229333
229353
|
engine;
|
|
229334
229354
|
parser;
|
|
229335
229355
|
config;
|
|
229356
|
+
embedder;
|
|
229336
229357
|
constructor(config2) {
|
|
229337
229358
|
this.config = {
|
|
229338
229359
|
repoDir: config2.repoDir,
|
|
@@ -229343,8 +229364,9 @@ var ContextBridge = class {
|
|
|
229343
229364
|
};
|
|
229344
229365
|
this.parser = new AstParser();
|
|
229345
229366
|
this.storage = new Storage(this.config.repoDir);
|
|
229367
|
+
this.embedder = new SemanticEmbedder();
|
|
229346
229368
|
this.indexer = new Indexer(this.storage, this.parser);
|
|
229347
|
-
this.engine = new ContextEngine(this.storage);
|
|
229369
|
+
this.engine = new ContextEngine(this.storage, this.embedder);
|
|
229348
229370
|
}
|
|
229349
229371
|
/**
|
|
229350
229372
|
* Initialize the storage database.
|
|
@@ -229356,15 +229378,25 @@ var ContextBridge = class {
|
|
|
229356
229378
|
* Index the current repository.
|
|
229357
229379
|
* Set options.watch to true for file watching.
|
|
229358
229380
|
* Set options.useTreeSitter to true for tree-sitter AST parsers.
|
|
229381
|
+
* Set options.semantic to true to generate embeddings (requires @xenova/transformers).
|
|
229359
229382
|
*/
|
|
229360
229383
|
async index(options) {
|
|
229361
|
-
|
|
229384
|
+
if (options?.semantic) {
|
|
229385
|
+
await this.embedder.tryInitialize();
|
|
229386
|
+
}
|
|
229387
|
+
return this.indexer.indexRepo(this.config.repoDir, {
|
|
229388
|
+
...options,
|
|
229389
|
+
embedder: options?.semantic ? this.embedder : void 0
|
|
229390
|
+
});
|
|
229362
229391
|
}
|
|
229363
229392
|
/**
|
|
229364
|
-
* Get context for a query.
|
|
229393
|
+
* Get context for a query. Uses hybrid keyword + vector search when embeddings are available.
|
|
229365
229394
|
*/
|
|
229366
|
-
getContext(query) {
|
|
229395
|
+
async getContext(query) {
|
|
229367
229396
|
const queryObj = typeof query === "string" ? { query } : query;
|
|
229397
|
+
if (this.embedder.isAvailable && this.storage.hasEmbeddings()) {
|
|
229398
|
+
queryObj.semantic = queryObj.semantic !== false;
|
|
229399
|
+
}
|
|
229368
229400
|
return this.engine.getContext(queryObj);
|
|
229369
229401
|
}
|
|
229370
229402
|
/**
|
|
@@ -229564,8 +229596,6 @@ function getDashboardHtml() {
|
|
|
229564
229596
|
return import_node_fs3.default.readFileSync(import_node_path3.default.join(__dirname, "dashboard.html"), "utf-8");
|
|
229565
229597
|
}
|
|
229566
229598
|
}
|
|
229567
|
-
|
|
229568
|
-
// dist/index.clean.tmp.mjs
|
|
229569
229599
|
function resolveRepoDir() {
|
|
229570
229600
|
const argIdx = process.argv.indexOf("--repo");
|
|
229571
229601
|
if (argIdx !== -1 && process.argv[argIdx + 1]) {
|
|
@@ -229710,7 +229740,7 @@ server2.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
229710
229740
|
case "get_context": {
|
|
229711
229741
|
const query = String(args?.query || "");
|
|
229712
229742
|
const maxTokens = Number(args?.max_tokens) || 4e3;
|
|
229713
|
-
const result = bridge.getContext({
|
|
229743
|
+
const result = await bridge.getContext({
|
|
229714
229744
|
query,
|
|
229715
229745
|
maxTokens,
|
|
229716
229746
|
format: "prompt"
|
|
@@ -229768,7 +229798,7 @@ For detailed git changes, run \`git log --since="${days}.days.ago"\` in your ter
|
|
|
229768
229798
|
}
|
|
229769
229799
|
case "find_related": {
|
|
229770
229800
|
const query = String(args?.query || "");
|
|
229771
|
-
const result = bridge.getContext({ query, format: "prompt" });
|
|
229801
|
+
const result = await bridge.getContext({ query, format: "prompt" });
|
|
229772
229802
|
if (result.sections.length === 0) {
|
|
229773
229803
|
return {
|
|
229774
229804
|
content: [
|