@yawlabs/ctxlint 0.10.2 → 0.12.0
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 +723 -195
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43,10 +43,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
));
|
|
44
44
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
45
|
|
|
46
|
+
// <define:__WEB_FIRST_SEGMENTS__>
|
|
47
|
+
var define_WEB_FIRST_SEGMENTS_default;
|
|
48
|
+
var init_define_WEB_FIRST_SEGMENTS = __esm({
|
|
49
|
+
"<define:__WEB_FIRST_SEGMENTS__>"() {
|
|
50
|
+
define_WEB_FIRST_SEGMENTS_default = ["blog", "docs", "api", "admin", "assets", "static", "public", "images", "img", "css", "js", "fonts", "auth", "login", "logout", "signup", "pricing", "about", "contact", "privacy", "terms"];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
46
54
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.js
|
|
47
55
|
var util, objectUtil, ZodParsedType, getParsedType;
|
|
48
56
|
var init_util = __esm({
|
|
49
57
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.js"() {
|
|
58
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50
59
|
(function(util2) {
|
|
51
60
|
util2.assertEqual = (_3) => {
|
|
52
61
|
};
|
|
@@ -184,6 +193,7 @@ var init_util = __esm({
|
|
|
184
193
|
var ZodIssueCode, ZodError;
|
|
185
194
|
var init_ZodError = __esm({
|
|
186
195
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.js"() {
|
|
196
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
187
197
|
init_util();
|
|
188
198
|
ZodIssueCode = util.arrayToEnum([
|
|
189
199
|
"invalid_type",
|
|
@@ -304,6 +314,7 @@ var init_ZodError = __esm({
|
|
|
304
314
|
var errorMap, en_default;
|
|
305
315
|
var init_en = __esm({
|
|
306
316
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.js"() {
|
|
317
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
307
318
|
init_ZodError();
|
|
308
319
|
init_util();
|
|
309
320
|
errorMap = (issue2, _ctx) => {
|
|
@@ -417,6 +428,7 @@ function getErrorMap() {
|
|
|
417
428
|
var overrideErrorMap;
|
|
418
429
|
var init_errors = __esm({
|
|
419
430
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.js"() {
|
|
431
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
420
432
|
init_en();
|
|
421
433
|
overrideErrorMap = en_default;
|
|
422
434
|
}
|
|
@@ -445,6 +457,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
445
457
|
var makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync;
|
|
446
458
|
var init_parseUtil = __esm({
|
|
447
459
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.js"() {
|
|
460
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
448
461
|
init_errors();
|
|
449
462
|
init_en();
|
|
450
463
|
makeIssue = (params) => {
|
|
@@ -541,6 +554,7 @@ var init_parseUtil = __esm({
|
|
|
541
554
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.js
|
|
542
555
|
var init_typeAliases = __esm({
|
|
543
556
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.js"() {
|
|
557
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
544
558
|
}
|
|
545
559
|
});
|
|
546
560
|
|
|
@@ -548,6 +562,7 @@ var init_typeAliases = __esm({
|
|
|
548
562
|
var errorUtil;
|
|
549
563
|
var init_errorUtil = __esm({
|
|
550
564
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.js"() {
|
|
565
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
551
566
|
(function(errorUtil2) {
|
|
552
567
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
553
568
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
@@ -723,6 +738,7 @@ function createZodEnum(values, params) {
|
|
|
723
738
|
var ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType;
|
|
724
739
|
var init_types = __esm({
|
|
725
740
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.js"() {
|
|
741
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
726
742
|
init_ZodError();
|
|
727
743
|
init_errors();
|
|
728
744
|
init_errorUtil();
|
|
@@ -3969,6 +3985,7 @@ var init_types = __esm({
|
|
|
3969
3985
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.js
|
|
3970
3986
|
var init_external = __esm({
|
|
3971
3987
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.js"() {
|
|
3988
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
3972
3989
|
init_errors();
|
|
3973
3990
|
init_parseUtil();
|
|
3974
3991
|
init_typeAliases();
|
|
@@ -3981,6 +3998,7 @@ var init_external = __esm({
|
|
|
3981
3998
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.js
|
|
3982
3999
|
var init_v3 = __esm({
|
|
3983
4000
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.js"() {
|
|
4001
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
3984
4002
|
init_external();
|
|
3985
4003
|
init_external();
|
|
3986
4004
|
}
|
|
@@ -4047,6 +4065,7 @@ function config(newConfig) {
|
|
|
4047
4065
|
var NEVER, $brand, $ZodAsyncError, $ZodEncodeError, globalConfig;
|
|
4048
4066
|
var init_core = __esm({
|
|
4049
4067
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js"() {
|
|
4068
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
4050
4069
|
NEVER = Object.freeze({
|
|
4051
4070
|
status: "aborted"
|
|
4052
4071
|
});
|
|
@@ -4671,6 +4690,7 @@ function uint8ArrayToHex(bytes) {
|
|
|
4671
4690
|
var EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class;
|
|
4672
4691
|
var init_util2 = __esm({
|
|
4673
4692
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js"() {
|
|
4693
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
4674
4694
|
EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
4675
4695
|
captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
4676
4696
|
};
|
|
@@ -4870,6 +4890,7 @@ function prettifyError(error49) {
|
|
|
4870
4890
|
var initializer, $ZodError, $ZodRealError;
|
|
4871
4891
|
var init_errors2 = __esm({
|
|
4872
4892
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js"() {
|
|
4893
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
4873
4894
|
init_core();
|
|
4874
4895
|
init_util2();
|
|
4875
4896
|
initializer = (inst, def) => {
|
|
@@ -4897,6 +4918,7 @@ var init_errors2 = __esm({
|
|
|
4897
4918
|
var _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, _encode, encode, _decode, decode, _encodeAsync, encodeAsync, _decodeAsync, decodeAsync, _safeEncode, safeEncode, _safeDecode, safeDecode, _safeEncodeAsync, safeEncodeAsync, _safeDecodeAsync, safeDecodeAsync;
|
|
4898
4919
|
var init_parse = __esm({
|
|
4899
4920
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js"() {
|
|
4921
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
4900
4922
|
init_core();
|
|
4901
4923
|
init_errors2();
|
|
4902
4924
|
init_util2();
|
|
@@ -5081,6 +5103,7 @@ function fixedBase64url(length) {
|
|
|
5081
5103
|
var cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji, ipv4, ipv6, mac, cidrv4, cidrv6, base64, base64url, hostname, domain, e164, dateSource, date, string, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url;
|
|
5082
5104
|
var init_regexes = __esm({
|
|
5083
5105
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js"() {
|
|
5106
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
5084
5107
|
init_util2();
|
|
5085
5108
|
cuid = /^[cC][^\s-]{8,}$/;
|
|
5086
5109
|
cuid2 = /^[0-9a-z]+$/;
|
|
@@ -5161,6 +5184,7 @@ function handleCheckPropertyResult(result, payload, property) {
|
|
|
5161
5184
|
var $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite;
|
|
5162
5185
|
var init_checks = __esm({
|
|
5163
5186
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js"() {
|
|
5187
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
5164
5188
|
init_core();
|
|
5165
5189
|
init_regexes();
|
|
5166
5190
|
init_util2();
|
|
@@ -5712,6 +5736,7 @@ var init_checks = __esm({
|
|
|
5712
5736
|
var Doc;
|
|
5713
5737
|
var init_doc = __esm({
|
|
5714
5738
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js"() {
|
|
5739
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
5715
5740
|
Doc = class {
|
|
5716
5741
|
constructor(args2 = []) {
|
|
5717
5742
|
this.content = [];
|
|
@@ -5753,6 +5778,7 @@ var init_doc = __esm({
|
|
|
5753
5778
|
var version;
|
|
5754
5779
|
var init_versions = __esm({
|
|
5755
5780
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js"() {
|
|
5781
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
5756
5782
|
version = {
|
|
5757
5783
|
major: 4,
|
|
5758
5784
|
minor: 3,
|
|
@@ -6122,6 +6148,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
6122
6148
|
var $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom;
|
|
6123
6149
|
var init_schemas = __esm({
|
|
6124
6150
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js"() {
|
|
6151
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
6125
6152
|
init_checks();
|
|
6126
6153
|
init_core();
|
|
6127
6154
|
init_doc();
|
|
@@ -7754,6 +7781,7 @@ function ar_default() {
|
|
|
7754
7781
|
var error;
|
|
7755
7782
|
var init_ar = __esm({
|
|
7756
7783
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js"() {
|
|
7784
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
7757
7785
|
init_util2();
|
|
7758
7786
|
error = () => {
|
|
7759
7787
|
const Sizable = {
|
|
@@ -7867,6 +7895,7 @@ function az_default() {
|
|
|
7867
7895
|
var error2;
|
|
7868
7896
|
var init_az = __esm({
|
|
7869
7897
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js"() {
|
|
7898
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
7870
7899
|
init_util2();
|
|
7871
7900
|
error2 = () => {
|
|
7872
7901
|
const Sizable = {
|
|
@@ -7994,6 +8023,7 @@ function be_default() {
|
|
|
7994
8023
|
var error3;
|
|
7995
8024
|
var init_be = __esm({
|
|
7996
8025
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js"() {
|
|
8026
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
7997
8027
|
init_util2();
|
|
7998
8028
|
error3 = () => {
|
|
7999
8029
|
const Sizable = {
|
|
@@ -8142,6 +8172,7 @@ function bg_default() {
|
|
|
8142
8172
|
var error4;
|
|
8143
8173
|
var init_bg = __esm({
|
|
8144
8174
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js"() {
|
|
8175
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8145
8176
|
init_util2();
|
|
8146
8177
|
error4 = () => {
|
|
8147
8178
|
const Sizable = {
|
|
@@ -8269,6 +8300,7 @@ function ca_default() {
|
|
|
8269
8300
|
var error5;
|
|
8270
8301
|
var init_ca = __esm({
|
|
8271
8302
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js"() {
|
|
8303
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8272
8304
|
init_util2();
|
|
8273
8305
|
error5 = () => {
|
|
8274
8306
|
const Sizable = {
|
|
@@ -8384,6 +8416,7 @@ function cs_default() {
|
|
|
8384
8416
|
var error6;
|
|
8385
8417
|
var init_cs = __esm({
|
|
8386
8418
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js"() {
|
|
8419
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8387
8420
|
init_util2();
|
|
8388
8421
|
error6 = () => {
|
|
8389
8422
|
const Sizable = {
|
|
@@ -8502,6 +8535,7 @@ function da_default() {
|
|
|
8502
8535
|
var error7;
|
|
8503
8536
|
var init_da = __esm({
|
|
8504
8537
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js"() {
|
|
8538
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8505
8539
|
init_util2();
|
|
8506
8540
|
error7 = () => {
|
|
8507
8541
|
const Sizable = {
|
|
@@ -8624,6 +8658,7 @@ function de_default() {
|
|
|
8624
8658
|
var error8;
|
|
8625
8659
|
var init_de = __esm({
|
|
8626
8660
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js"() {
|
|
8661
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8627
8662
|
init_util2();
|
|
8628
8663
|
error8 = () => {
|
|
8629
8664
|
const Sizable = {
|
|
@@ -8739,6 +8774,7 @@ function en_default2() {
|
|
|
8739
8774
|
var error9;
|
|
8740
8775
|
var init_en2 = __esm({
|
|
8741
8776
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js"() {
|
|
8777
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8742
8778
|
init_util2();
|
|
8743
8779
|
error9 = () => {
|
|
8744
8780
|
const Sizable = {
|
|
@@ -8854,6 +8890,7 @@ function eo_default() {
|
|
|
8854
8890
|
var error10;
|
|
8855
8891
|
var init_eo = __esm({
|
|
8856
8892
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js"() {
|
|
8893
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8857
8894
|
init_util2();
|
|
8858
8895
|
error10 = () => {
|
|
8859
8896
|
const Sizable = {
|
|
@@ -8970,6 +9007,7 @@ function es_default() {
|
|
|
8970
9007
|
var error11;
|
|
8971
9008
|
var init_es = __esm({
|
|
8972
9009
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js"() {
|
|
9010
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
8973
9011
|
init_util2();
|
|
8974
9012
|
error11 = () => {
|
|
8975
9013
|
const Sizable = {
|
|
@@ -9109,6 +9147,7 @@ function fa_default() {
|
|
|
9109
9147
|
var error12;
|
|
9110
9148
|
var init_fa = __esm({
|
|
9111
9149
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js"() {
|
|
9150
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9112
9151
|
init_util2();
|
|
9113
9152
|
error12 = () => {
|
|
9114
9153
|
const Sizable = {
|
|
@@ -9230,6 +9269,7 @@ function fi_default() {
|
|
|
9230
9269
|
var error13;
|
|
9231
9270
|
var init_fi = __esm({
|
|
9232
9271
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js"() {
|
|
9272
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9233
9273
|
init_util2();
|
|
9234
9274
|
error13 = () => {
|
|
9235
9275
|
const Sizable = {
|
|
@@ -9349,6 +9389,7 @@ function fr_default() {
|
|
|
9349
9389
|
var error14;
|
|
9350
9390
|
var init_fr = __esm({
|
|
9351
9391
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js"() {
|
|
9392
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9352
9393
|
init_util2();
|
|
9353
9394
|
error14 = () => {
|
|
9354
9395
|
const Sizable = {
|
|
@@ -9464,6 +9505,7 @@ function fr_CA_default() {
|
|
|
9464
9505
|
var error15;
|
|
9465
9506
|
var init_fr_CA = __esm({
|
|
9466
9507
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js"() {
|
|
9508
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9467
9509
|
init_util2();
|
|
9468
9510
|
error15 = () => {
|
|
9469
9511
|
const Sizable = {
|
|
@@ -9578,6 +9620,7 @@ function he_default() {
|
|
|
9578
9620
|
var error16;
|
|
9579
9621
|
var init_he = __esm({
|
|
9580
9622
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js"() {
|
|
9623
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9581
9624
|
init_util2();
|
|
9582
9625
|
error16 = () => {
|
|
9583
9626
|
const TypeNames = {
|
|
@@ -9779,6 +9822,7 @@ function hu_default() {
|
|
|
9779
9822
|
var error17;
|
|
9780
9823
|
var init_hu = __esm({
|
|
9781
9824
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js"() {
|
|
9825
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9782
9826
|
init_util2();
|
|
9783
9827
|
error17 = () => {
|
|
9784
9828
|
const Sizable = {
|
|
@@ -9904,6 +9948,7 @@ function hy_default() {
|
|
|
9904
9948
|
var error18;
|
|
9905
9949
|
var init_hy = __esm({
|
|
9906
9950
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js"() {
|
|
9951
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
9907
9952
|
init_util2();
|
|
9908
9953
|
error18 = () => {
|
|
9909
9954
|
const Sizable = {
|
|
@@ -10048,6 +10093,7 @@ function id_default() {
|
|
|
10048
10093
|
var error19;
|
|
10049
10094
|
var init_id = __esm({
|
|
10050
10095
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js"() {
|
|
10096
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10051
10097
|
init_util2();
|
|
10052
10098
|
error19 = () => {
|
|
10053
10099
|
const Sizable = {
|
|
@@ -10161,6 +10207,7 @@ function is_default() {
|
|
|
10161
10207
|
var error20;
|
|
10162
10208
|
var init_is = __esm({
|
|
10163
10209
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js"() {
|
|
10210
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10164
10211
|
init_util2();
|
|
10165
10212
|
error20 = () => {
|
|
10166
10213
|
const Sizable = {
|
|
@@ -10277,6 +10324,7 @@ function it_default() {
|
|
|
10277
10324
|
var error21;
|
|
10278
10325
|
var init_it = __esm({
|
|
10279
10326
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js"() {
|
|
10327
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10280
10328
|
init_util2();
|
|
10281
10329
|
error21 = () => {
|
|
10282
10330
|
const Sizable = {
|
|
@@ -10392,6 +10440,7 @@ function ja_default() {
|
|
|
10392
10440
|
var error22;
|
|
10393
10441
|
var init_ja = __esm({
|
|
10394
10442
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js"() {
|
|
10443
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10395
10444
|
init_util2();
|
|
10396
10445
|
error22 = () => {
|
|
10397
10446
|
const Sizable = {
|
|
@@ -10506,6 +10555,7 @@ function ka_default() {
|
|
|
10506
10555
|
var error23;
|
|
10507
10556
|
var init_ka = __esm({
|
|
10508
10557
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js"() {
|
|
10558
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10509
10559
|
init_util2();
|
|
10510
10560
|
error23 = () => {
|
|
10511
10561
|
const Sizable = {
|
|
@@ -10625,6 +10675,7 @@ function km_default() {
|
|
|
10625
10675
|
var error24;
|
|
10626
10676
|
var init_km = __esm({
|
|
10627
10677
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js"() {
|
|
10678
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10628
10679
|
init_util2();
|
|
10629
10680
|
error24 = () => {
|
|
10630
10681
|
const Sizable = {
|
|
@@ -10739,6 +10790,7 @@ function kh_default() {
|
|
|
10739
10790
|
}
|
|
10740
10791
|
var init_kh = __esm({
|
|
10741
10792
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js"() {
|
|
10793
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10742
10794
|
init_km();
|
|
10743
10795
|
}
|
|
10744
10796
|
});
|
|
@@ -10752,6 +10804,7 @@ function ko_default() {
|
|
|
10752
10804
|
var error25;
|
|
10753
10805
|
var init_ko = __esm({
|
|
10754
10806
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js"() {
|
|
10807
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10755
10808
|
init_util2();
|
|
10756
10809
|
error25 = () => {
|
|
10757
10810
|
const Sizable = {
|
|
@@ -10880,6 +10933,7 @@ function lt_default() {
|
|
|
10880
10933
|
var capitalizeFirstCharacter, error26;
|
|
10881
10934
|
var init_lt = __esm({
|
|
10882
10935
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js"() {
|
|
10936
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
10883
10937
|
init_util2();
|
|
10884
10938
|
capitalizeFirstCharacter = (text) => {
|
|
10885
10939
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
@@ -11080,6 +11134,7 @@ function mk_default() {
|
|
|
11080
11134
|
var error27;
|
|
11081
11135
|
var init_mk = __esm({
|
|
11082
11136
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js"() {
|
|
11137
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11083
11138
|
init_util2();
|
|
11084
11139
|
error27 = () => {
|
|
11085
11140
|
const Sizable = {
|
|
@@ -11196,6 +11251,7 @@ function ms_default() {
|
|
|
11196
11251
|
var error28;
|
|
11197
11252
|
var init_ms = __esm({
|
|
11198
11253
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js"() {
|
|
11254
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11199
11255
|
init_util2();
|
|
11200
11256
|
error28 = () => {
|
|
11201
11257
|
const Sizable = {
|
|
@@ -11310,6 +11366,7 @@ function nl_default() {
|
|
|
11310
11366
|
var error29;
|
|
11311
11367
|
var init_nl = __esm({
|
|
11312
11368
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js"() {
|
|
11369
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11313
11370
|
init_util2();
|
|
11314
11371
|
error29 = () => {
|
|
11315
11372
|
const Sizable = {
|
|
@@ -11427,6 +11484,7 @@ function no_default() {
|
|
|
11427
11484
|
var error30;
|
|
11428
11485
|
var init_no = __esm({
|
|
11429
11486
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js"() {
|
|
11487
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11430
11488
|
init_util2();
|
|
11431
11489
|
error30 = () => {
|
|
11432
11490
|
const Sizable = {
|
|
@@ -11542,6 +11600,7 @@ function ota_default() {
|
|
|
11542
11600
|
var error31;
|
|
11543
11601
|
var init_ota = __esm({
|
|
11544
11602
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js"() {
|
|
11603
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11545
11604
|
init_util2();
|
|
11546
11605
|
error31 = () => {
|
|
11547
11606
|
const Sizable = {
|
|
@@ -11658,6 +11717,7 @@ function ps_default() {
|
|
|
11658
11717
|
var error32;
|
|
11659
11718
|
var init_ps = __esm({
|
|
11660
11719
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js"() {
|
|
11720
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11661
11721
|
init_util2();
|
|
11662
11722
|
error32 = () => {
|
|
11663
11723
|
const Sizable = {
|
|
@@ -11779,6 +11839,7 @@ function pl_default() {
|
|
|
11779
11839
|
var error33;
|
|
11780
11840
|
var init_pl = __esm({
|
|
11781
11841
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js"() {
|
|
11842
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11782
11843
|
init_util2();
|
|
11783
11844
|
error33 = () => {
|
|
11784
11845
|
const Sizable = {
|
|
@@ -11895,6 +11956,7 @@ function pt_default() {
|
|
|
11895
11956
|
var error34;
|
|
11896
11957
|
var init_pt = __esm({
|
|
11897
11958
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js"() {
|
|
11959
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
11898
11960
|
init_util2();
|
|
11899
11961
|
error34 = () => {
|
|
11900
11962
|
const Sizable = {
|
|
@@ -12025,6 +12087,7 @@ function ru_default() {
|
|
|
12025
12087
|
var error35;
|
|
12026
12088
|
var init_ru = __esm({
|
|
12027
12089
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js"() {
|
|
12090
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12028
12091
|
init_util2();
|
|
12029
12092
|
error35 = () => {
|
|
12030
12093
|
const Sizable = {
|
|
@@ -12173,6 +12236,7 @@ function sl_default() {
|
|
|
12173
12236
|
var error36;
|
|
12174
12237
|
var init_sl = __esm({
|
|
12175
12238
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js"() {
|
|
12239
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12176
12240
|
init_util2();
|
|
12177
12241
|
error36 = () => {
|
|
12178
12242
|
const Sizable = {
|
|
@@ -12289,6 +12353,7 @@ function sv_default() {
|
|
|
12289
12353
|
var error37;
|
|
12290
12354
|
var init_sv = __esm({
|
|
12291
12355
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js"() {
|
|
12356
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12292
12357
|
init_util2();
|
|
12293
12358
|
error37 = () => {
|
|
12294
12359
|
const Sizable = {
|
|
@@ -12406,6 +12471,7 @@ function ta_default() {
|
|
|
12406
12471
|
var error38;
|
|
12407
12472
|
var init_ta = __esm({
|
|
12408
12473
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js"() {
|
|
12474
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12409
12475
|
init_util2();
|
|
12410
12476
|
error38 = () => {
|
|
12411
12477
|
const Sizable = {
|
|
@@ -12523,6 +12589,7 @@ function th_default() {
|
|
|
12523
12589
|
var error39;
|
|
12524
12590
|
var init_th = __esm({
|
|
12525
12591
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js"() {
|
|
12592
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12526
12593
|
init_util2();
|
|
12527
12594
|
error39 = () => {
|
|
12528
12595
|
const Sizable = {
|
|
@@ -12640,6 +12707,7 @@ function tr_default() {
|
|
|
12640
12707
|
var error40;
|
|
12641
12708
|
var init_tr = __esm({
|
|
12642
12709
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js"() {
|
|
12710
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12643
12711
|
init_util2();
|
|
12644
12712
|
error40 = () => {
|
|
12645
12713
|
const Sizable = {
|
|
@@ -12752,6 +12820,7 @@ function uk_default() {
|
|
|
12752
12820
|
var error41;
|
|
12753
12821
|
var init_uk = __esm({
|
|
12754
12822
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js"() {
|
|
12823
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12755
12824
|
init_util2();
|
|
12756
12825
|
error41 = () => {
|
|
12757
12826
|
const Sizable = {
|
|
@@ -12864,6 +12933,7 @@ function ua_default() {
|
|
|
12864
12933
|
}
|
|
12865
12934
|
var init_ua = __esm({
|
|
12866
12935
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js"() {
|
|
12936
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12867
12937
|
init_uk();
|
|
12868
12938
|
}
|
|
12869
12939
|
});
|
|
@@ -12877,6 +12947,7 @@ function ur_default() {
|
|
|
12877
12947
|
var error42;
|
|
12878
12948
|
var init_ur = __esm({
|
|
12879
12949
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js"() {
|
|
12950
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12880
12951
|
init_util2();
|
|
12881
12952
|
error42 = () => {
|
|
12882
12953
|
const Sizable = {
|
|
@@ -12994,6 +13065,7 @@ function uz_default() {
|
|
|
12994
13065
|
var error43;
|
|
12995
13066
|
var init_uz = __esm({
|
|
12996
13067
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js"() {
|
|
13068
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
12997
13069
|
init_util2();
|
|
12998
13070
|
error43 = () => {
|
|
12999
13071
|
const Sizable = {
|
|
@@ -13110,6 +13182,7 @@ function vi_default() {
|
|
|
13110
13182
|
var error44;
|
|
13111
13183
|
var init_vi = __esm({
|
|
13112
13184
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js"() {
|
|
13185
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13113
13186
|
init_util2();
|
|
13114
13187
|
error44 = () => {
|
|
13115
13188
|
const Sizable = {
|
|
@@ -13225,6 +13298,7 @@ function zh_CN_default() {
|
|
|
13225
13298
|
var error45;
|
|
13226
13299
|
var init_zh_CN = __esm({
|
|
13227
13300
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js"() {
|
|
13301
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13228
13302
|
init_util2();
|
|
13229
13303
|
error45 = () => {
|
|
13230
13304
|
const Sizable = {
|
|
@@ -13341,6 +13415,7 @@ function zh_TW_default() {
|
|
|
13341
13415
|
var error46;
|
|
13342
13416
|
var init_zh_TW = __esm({
|
|
13343
13417
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js"() {
|
|
13418
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13344
13419
|
init_util2();
|
|
13345
13420
|
error46 = () => {
|
|
13346
13421
|
const Sizable = {
|
|
@@ -13455,6 +13530,7 @@ function yo_default() {
|
|
|
13455
13530
|
var error47;
|
|
13456
13531
|
var init_yo = __esm({
|
|
13457
13532
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js"() {
|
|
13533
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13458
13534
|
init_util2();
|
|
13459
13535
|
error47 = () => {
|
|
13460
13536
|
const Sizable = {
|
|
@@ -13615,6 +13691,7 @@ __export(locales_exports, {
|
|
|
13615
13691
|
});
|
|
13616
13692
|
var init_locales = __esm({
|
|
13617
13693
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js"() {
|
|
13694
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13618
13695
|
init_ar();
|
|
13619
13696
|
init_az();
|
|
13620
13697
|
init_be();
|
|
@@ -13674,6 +13751,7 @@ function registry() {
|
|
|
13674
13751
|
var _a, $output, $input, $ZodRegistry, globalRegistry;
|
|
13675
13752
|
var init_registries = __esm({
|
|
13676
13753
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js"() {
|
|
13754
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
13677
13755
|
$output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
13678
13756
|
$input = /* @__PURE__ */ Symbol("ZodInput");
|
|
13679
13757
|
$ZodRegistry = class {
|
|
@@ -14755,6 +14833,7 @@ function _stringFormat(Class2, format3, fnOrRegex, _params = {}) {
|
|
|
14755
14833
|
var TimePrecision;
|
|
14756
14834
|
var init_api = __esm({
|
|
14757
14835
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js"() {
|
|
14836
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
14758
14837
|
init_checks();
|
|
14759
14838
|
init_registries();
|
|
14760
14839
|
init_schemas();
|
|
@@ -15110,6 +15189,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
15110
15189
|
var createToJSONSchemaMethod, createStandardJSONSchemaMethod;
|
|
15111
15190
|
var init_to_json_schema = __esm({
|
|
15112
15191
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js"() {
|
|
15192
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
15113
15193
|
init_registries();
|
|
15114
15194
|
createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
15115
15195
|
const ctx = initializeContext({ ...params, processors });
|
|
@@ -15165,6 +15245,7 @@ function toJSONSchema(input, params) {
|
|
|
15165
15245
|
var formatMap, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, recordProcessor, nullableProcessor, nonoptionalProcessor, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors;
|
|
15166
15246
|
var init_json_schema_processors = __esm({
|
|
15167
15247
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js"() {
|
|
15248
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
15168
15249
|
init_to_json_schema();
|
|
15169
15250
|
init_util2();
|
|
15170
15251
|
formatMap = {
|
|
@@ -15689,6 +15770,7 @@ var init_json_schema_processors = __esm({
|
|
|
15689
15770
|
var JSONSchemaGenerator;
|
|
15690
15771
|
var init_json_schema_generator = __esm({
|
|
15691
15772
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js"() {
|
|
15773
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
15692
15774
|
init_json_schema_processors();
|
|
15693
15775
|
init_to_json_schema();
|
|
15694
15776
|
JSONSchemaGenerator = class {
|
|
@@ -15771,6 +15853,7 @@ var init_json_schema_generator = __esm({
|
|
|
15771
15853
|
var json_schema_exports = {};
|
|
15772
15854
|
var init_json_schema = __esm({
|
|
15773
15855
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js"() {
|
|
15856
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
15774
15857
|
}
|
|
15775
15858
|
});
|
|
15776
15859
|
|
|
@@ -16053,6 +16136,7 @@ __export(core_exports2, {
|
|
|
16053
16136
|
});
|
|
16054
16137
|
var init_core2 = __esm({
|
|
16055
16138
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js"() {
|
|
16139
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16056
16140
|
init_core();
|
|
16057
16141
|
init_parse();
|
|
16058
16142
|
init_errors2();
|
|
@@ -16075,6 +16159,7 @@ var init_core2 = __esm({
|
|
|
16075
16159
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/parse.js
|
|
16076
16160
|
var init_parse2 = __esm({
|
|
16077
16161
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/parse.js"() {
|
|
16162
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16078
16163
|
init_core2();
|
|
16079
16164
|
}
|
|
16080
16165
|
});
|
|
@@ -16092,6 +16177,7 @@ function object(shape, params) {
|
|
|
16092
16177
|
var ZodMiniType, ZodMiniObject;
|
|
16093
16178
|
var init_schemas2 = __esm({
|
|
16094
16179
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js"() {
|
|
16180
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16095
16181
|
init_core2();
|
|
16096
16182
|
init_util2();
|
|
16097
16183
|
init_parse2();
|
|
@@ -16134,6 +16220,7 @@ var init_schemas2 = __esm({
|
|
|
16134
16220
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/checks.js
|
|
16135
16221
|
var init_checks2 = __esm({
|
|
16136
16222
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/checks.js"() {
|
|
16223
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16137
16224
|
init_core2();
|
|
16138
16225
|
}
|
|
16139
16226
|
});
|
|
@@ -16141,6 +16228,7 @@ var init_checks2 = __esm({
|
|
|
16141
16228
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/iso.js
|
|
16142
16229
|
var init_iso = __esm({
|
|
16143
16230
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/iso.js"() {
|
|
16231
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16144
16232
|
init_core2();
|
|
16145
16233
|
init_schemas2();
|
|
16146
16234
|
}
|
|
@@ -16149,6 +16237,7 @@ var init_iso = __esm({
|
|
|
16149
16237
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/coerce.js
|
|
16150
16238
|
var init_coerce = __esm({
|
|
16151
16239
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/coerce.js"() {
|
|
16240
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16152
16241
|
init_core2();
|
|
16153
16242
|
init_schemas2();
|
|
16154
16243
|
}
|
|
@@ -16157,6 +16246,7 @@ var init_coerce = __esm({
|
|
|
16157
16246
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/external.js
|
|
16158
16247
|
var init_external2 = __esm({
|
|
16159
16248
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/external.js"() {
|
|
16249
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16160
16250
|
init_core2();
|
|
16161
16251
|
init_parse2();
|
|
16162
16252
|
init_schemas2();
|
|
@@ -16173,6 +16263,7 @@ var init_external2 = __esm({
|
|
|
16173
16263
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4-mini/index.js
|
|
16174
16264
|
var init_v4_mini = __esm({
|
|
16175
16265
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4-mini/index.js"() {
|
|
16266
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16176
16267
|
init_external2();
|
|
16177
16268
|
init_external2();
|
|
16178
16269
|
}
|
|
@@ -16323,6 +16414,7 @@ function getLiteralValue(schema) {
|
|
|
16323
16414
|
}
|
|
16324
16415
|
var init_zod_compat = __esm({
|
|
16325
16416
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js"() {
|
|
16417
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16326
16418
|
init_v3();
|
|
16327
16419
|
init_v4_mini();
|
|
16328
16420
|
}
|
|
@@ -16363,6 +16455,7 @@ __export(checks_exports2, {
|
|
|
16363
16455
|
});
|
|
16364
16456
|
var init_checks3 = __esm({
|
|
16365
16457
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js"() {
|
|
16458
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16366
16459
|
init_core2();
|
|
16367
16460
|
}
|
|
16368
16461
|
});
|
|
@@ -16394,6 +16487,7 @@ function duration2(params) {
|
|
|
16394
16487
|
var ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration;
|
|
16395
16488
|
var init_iso2 = __esm({
|
|
16396
16489
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js"() {
|
|
16490
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16397
16491
|
init_core2();
|
|
16398
16492
|
init_schemas3();
|
|
16399
16493
|
ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
@@ -16419,6 +16513,7 @@ var init_iso2 = __esm({
|
|
|
16419
16513
|
var initializer2, ZodError2, ZodRealError;
|
|
16420
16514
|
var init_errors3 = __esm({
|
|
16421
16515
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js"() {
|
|
16516
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16422
16517
|
init_core2();
|
|
16423
16518
|
init_core2();
|
|
16424
16519
|
init_util2();
|
|
@@ -16467,6 +16562,7 @@ var init_errors3 = __esm({
|
|
|
16467
16562
|
var parse2, parseAsync2, safeParse3, safeParseAsync3, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2;
|
|
16468
16563
|
var init_parse3 = __esm({
|
|
16469
16564
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js"() {
|
|
16565
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
16470
16566
|
init_core2();
|
|
16471
16567
|
init_errors3();
|
|
16472
16568
|
parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -17109,6 +17205,7 @@ function preprocess(fn, schema) {
|
|
|
17109
17205
|
var ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodBigInt2, ZodBigIntFormat, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch2, ZodNaN2, ZodPipe, ZodCodec, ZodReadonly2, ZodTemplateLiteral, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom, describe2, meta2, stringbool;
|
|
17110
17206
|
var init_schemas3 = __esm({
|
|
17111
17207
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js"() {
|
|
17208
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
17112
17209
|
init_core2();
|
|
17113
17210
|
init_core2();
|
|
17114
17211
|
init_json_schema_processors();
|
|
@@ -17754,6 +17851,7 @@ function getErrorMap2() {
|
|
|
17754
17851
|
var ZodIssueCode2, ZodFirstPartyTypeKind2;
|
|
17755
17852
|
var init_compat = __esm({
|
|
17756
17853
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js"() {
|
|
17854
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
17757
17855
|
init_core2();
|
|
17758
17856
|
init_core2();
|
|
17759
17857
|
ZodIssueCode2 = {
|
|
@@ -18174,6 +18272,7 @@ function fromJSONSchema(schema, params) {
|
|
|
18174
18272
|
var z, RECOGNIZED_KEYS;
|
|
18175
18273
|
var init_from_json_schema = __esm({
|
|
18176
18274
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js"() {
|
|
18275
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18177
18276
|
init_registries();
|
|
18178
18277
|
init_checks3();
|
|
18179
18278
|
init_iso2();
|
|
@@ -18283,6 +18382,7 @@ function date4(params) {
|
|
|
18283
18382
|
}
|
|
18284
18383
|
var init_coerce2 = __esm({
|
|
18285
18384
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js"() {
|
|
18385
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18286
18386
|
init_core2();
|
|
18287
18387
|
init_schemas3();
|
|
18288
18388
|
}
|
|
@@ -18530,6 +18630,7 @@ __export(external_exports3, {
|
|
|
18530
18630
|
});
|
|
18531
18631
|
var init_external3 = __esm({
|
|
18532
18632
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js"() {
|
|
18633
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18533
18634
|
init_core2();
|
|
18534
18635
|
init_schemas3();
|
|
18535
18636
|
init_checks3();
|
|
@@ -18552,6 +18653,7 @@ var init_external3 = __esm({
|
|
|
18552
18653
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/index.js
|
|
18553
18654
|
var init_classic = __esm({
|
|
18554
18655
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/index.js"() {
|
|
18656
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18555
18657
|
init_external3();
|
|
18556
18658
|
init_external3();
|
|
18557
18659
|
}
|
|
@@ -18560,6 +18662,7 @@ var init_classic = __esm({
|
|
|
18560
18662
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/index.js
|
|
18561
18663
|
var init_v4 = __esm({
|
|
18562
18664
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/index.js"() {
|
|
18665
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18563
18666
|
init_classic();
|
|
18564
18667
|
init_classic();
|
|
18565
18668
|
}
|
|
@@ -18581,6 +18684,7 @@ function assertCompleteRequestResourceTemplate(request) {
|
|
|
18581
18684
|
var LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, JSONRPC_VERSION, AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest, JSONRPCNotificationSchema, isJSONRPCNotification, JSONRPCResultResponseSchema, isJSONRPCResultResponse, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError;
|
|
18582
18685
|
var init_types2 = __esm({
|
|
18583
18686
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js"() {
|
|
18687
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
18584
18688
|
init_v4();
|
|
18585
18689
|
LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
18586
18690
|
SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
@@ -20107,6 +20211,7 @@ function isTerminal(status) {
|
|
|
20107
20211
|
}
|
|
20108
20212
|
var init_interfaces = __esm({
|
|
20109
20213
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js"() {
|
|
20214
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20110
20215
|
}
|
|
20111
20216
|
});
|
|
20112
20217
|
|
|
@@ -20114,6 +20219,7 @@ var init_interfaces = __esm({
|
|
|
20114
20219
|
var ignoreOverride, defaultOptions, getDefaultOptions;
|
|
20115
20220
|
var init_Options = __esm({
|
|
20116
20221
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/Options.js"() {
|
|
20222
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20117
20223
|
ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
20118
20224
|
defaultOptions = {
|
|
20119
20225
|
name: void 0,
|
|
@@ -20153,6 +20259,7 @@ var init_Options = __esm({
|
|
|
20153
20259
|
var getRefs;
|
|
20154
20260
|
var init_Refs = __esm({
|
|
20155
20261
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/Refs.js"() {
|
|
20262
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20156
20263
|
init_Options();
|
|
20157
20264
|
getRefs = (options) => {
|
|
20158
20265
|
const _options = getDefaultOptions(options);
|
|
@@ -20193,6 +20300,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
20193
20300
|
}
|
|
20194
20301
|
var init_errorMessages = __esm({
|
|
20195
20302
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/errorMessages.js"() {
|
|
20303
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20196
20304
|
}
|
|
20197
20305
|
});
|
|
20198
20306
|
|
|
@@ -20200,6 +20308,7 @@ var init_errorMessages = __esm({
|
|
|
20200
20308
|
var getRelativePath;
|
|
20201
20309
|
var init_getRelativePath = __esm({
|
|
20202
20310
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js"() {
|
|
20311
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20203
20312
|
getRelativePath = (pathA, pathB) => {
|
|
20204
20313
|
let i2 = 0;
|
|
20205
20314
|
for (; i2 < pathA.length && i2 < pathB.length; i2++) {
|
|
@@ -20228,6 +20337,7 @@ function parseAnyDef(refs) {
|
|
|
20228
20337
|
}
|
|
20229
20338
|
var init_any = __esm({
|
|
20230
20339
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/any.js"() {
|
|
20340
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20231
20341
|
init_getRelativePath();
|
|
20232
20342
|
}
|
|
20233
20343
|
});
|
|
@@ -20257,6 +20367,7 @@ function parseArrayDef(def, refs) {
|
|
|
20257
20367
|
}
|
|
20258
20368
|
var init_array = __esm({
|
|
20259
20369
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/array.js"() {
|
|
20370
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20260
20371
|
init_v3();
|
|
20261
20372
|
init_errorMessages();
|
|
20262
20373
|
init_parseDef();
|
|
@@ -20310,6 +20421,7 @@ function parseBigintDef(def, refs) {
|
|
|
20310
20421
|
}
|
|
20311
20422
|
var init_bigint = __esm({
|
|
20312
20423
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js"() {
|
|
20424
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20313
20425
|
init_errorMessages();
|
|
20314
20426
|
}
|
|
20315
20427
|
});
|
|
@@ -20322,6 +20434,7 @@ function parseBooleanDef() {
|
|
|
20322
20434
|
}
|
|
20323
20435
|
var init_boolean = __esm({
|
|
20324
20436
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js"() {
|
|
20437
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20325
20438
|
}
|
|
20326
20439
|
});
|
|
20327
20440
|
|
|
@@ -20331,6 +20444,7 @@ function parseBrandedDef(_def, refs) {
|
|
|
20331
20444
|
}
|
|
20332
20445
|
var init_branded = __esm({
|
|
20333
20446
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js"() {
|
|
20447
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20334
20448
|
init_parseDef();
|
|
20335
20449
|
}
|
|
20336
20450
|
});
|
|
@@ -20339,6 +20453,7 @@ var init_branded = __esm({
|
|
|
20339
20453
|
var parseCatchDef;
|
|
20340
20454
|
var init_catch = __esm({
|
|
20341
20455
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js"() {
|
|
20456
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20342
20457
|
init_parseDef();
|
|
20343
20458
|
parseCatchDef = (def, refs) => {
|
|
20344
20459
|
return parseDef(def.innerType._def, refs);
|
|
@@ -20373,6 +20488,7 @@ function parseDateDef(def, refs, overrideDateStrategy) {
|
|
|
20373
20488
|
var integerDateParser;
|
|
20374
20489
|
var init_date = __esm({
|
|
20375
20490
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/date.js"() {
|
|
20491
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20376
20492
|
init_errorMessages();
|
|
20377
20493
|
integerDateParser = (def, refs) => {
|
|
20378
20494
|
const res = {
|
|
@@ -20420,6 +20536,7 @@ function parseDefaultDef(_def, refs) {
|
|
|
20420
20536
|
}
|
|
20421
20537
|
var init_default = __esm({
|
|
20422
20538
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/default.js"() {
|
|
20539
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20423
20540
|
init_parseDef();
|
|
20424
20541
|
}
|
|
20425
20542
|
});
|
|
@@ -20430,6 +20547,7 @@ function parseEffectsDef(_def, refs) {
|
|
|
20430
20547
|
}
|
|
20431
20548
|
var init_effects = __esm({
|
|
20432
20549
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js"() {
|
|
20550
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20433
20551
|
init_parseDef();
|
|
20434
20552
|
init_any();
|
|
20435
20553
|
}
|
|
@@ -20444,6 +20562,7 @@ function parseEnumDef(def) {
|
|
|
20444
20562
|
}
|
|
20445
20563
|
var init_enum = __esm({
|
|
20446
20564
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js"() {
|
|
20565
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20447
20566
|
}
|
|
20448
20567
|
});
|
|
20449
20568
|
|
|
@@ -20486,6 +20605,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
20486
20605
|
var isJsonSchema7AllOfType;
|
|
20487
20606
|
var init_intersection = __esm({
|
|
20488
20607
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js"() {
|
|
20608
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20489
20609
|
init_parseDef();
|
|
20490
20610
|
isJsonSchema7AllOfType = (type) => {
|
|
20491
20611
|
if ("type" in type && type.type === "string")
|
|
@@ -20516,6 +20636,7 @@ function parseLiteralDef(def, refs) {
|
|
|
20516
20636
|
}
|
|
20517
20637
|
var init_literal = __esm({
|
|
20518
20638
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js"() {
|
|
20639
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20519
20640
|
}
|
|
20520
20641
|
});
|
|
20521
20642
|
|
|
@@ -20797,6 +20918,7 @@ function stringifyRegExpWithFlags(regex2, refs) {
|
|
|
20797
20918
|
var emojiRegex2, zodPatterns, ALPHA_NUMERIC;
|
|
20798
20919
|
var init_string = __esm({
|
|
20799
20920
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/string.js"() {
|
|
20921
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20800
20922
|
init_errorMessages();
|
|
20801
20923
|
emojiRegex2 = void 0;
|
|
20802
20924
|
zodPatterns = {
|
|
@@ -20903,6 +21025,7 @@ function parseRecordDef(def, refs) {
|
|
|
20903
21025
|
}
|
|
20904
21026
|
var init_record = __esm({
|
|
20905
21027
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/record.js"() {
|
|
21028
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20906
21029
|
init_v3();
|
|
20907
21030
|
init_parseDef();
|
|
20908
21031
|
init_string();
|
|
@@ -20937,6 +21060,7 @@ function parseMapDef(def, refs) {
|
|
|
20937
21060
|
}
|
|
20938
21061
|
var init_map = __esm({
|
|
20939
21062
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/map.js"() {
|
|
21063
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20940
21064
|
init_parseDef();
|
|
20941
21065
|
init_record();
|
|
20942
21066
|
init_any();
|
|
@@ -20958,6 +21082,7 @@ function parseNativeEnumDef(def) {
|
|
|
20958
21082
|
}
|
|
20959
21083
|
var init_nativeEnum = __esm({
|
|
20960
21084
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js"() {
|
|
21085
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20961
21086
|
}
|
|
20962
21087
|
});
|
|
20963
21088
|
|
|
@@ -20972,6 +21097,7 @@ function parseNeverDef(refs) {
|
|
|
20972
21097
|
}
|
|
20973
21098
|
var init_never = __esm({
|
|
20974
21099
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/never.js"() {
|
|
21100
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20975
21101
|
init_any();
|
|
20976
21102
|
}
|
|
20977
21103
|
});
|
|
@@ -20987,6 +21113,7 @@ function parseNullDef(refs) {
|
|
|
20987
21113
|
}
|
|
20988
21114
|
var init_null = __esm({
|
|
20989
21115
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/null.js"() {
|
|
21116
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
20990
21117
|
}
|
|
20991
21118
|
});
|
|
20992
21119
|
|
|
@@ -21046,6 +21173,7 @@ function parseUnionDef(def, refs) {
|
|
|
21046
21173
|
var primitiveMappings, asAnyOf;
|
|
21047
21174
|
var init_union = __esm({
|
|
21048
21175
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/union.js"() {
|
|
21176
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21049
21177
|
init_parseDef();
|
|
21050
21178
|
primitiveMappings = {
|
|
21051
21179
|
ZodString: "string",
|
|
@@ -21097,6 +21225,7 @@ function parseNullableDef(def, refs) {
|
|
|
21097
21225
|
}
|
|
21098
21226
|
var init_nullable = __esm({
|
|
21099
21227
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js"() {
|
|
21228
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21100
21229
|
init_parseDef();
|
|
21101
21230
|
init_union();
|
|
21102
21231
|
}
|
|
@@ -21152,6 +21281,7 @@ function parseNumberDef(def, refs) {
|
|
|
21152
21281
|
}
|
|
21153
21282
|
var init_number = __esm({
|
|
21154
21283
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/number.js"() {
|
|
21284
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21155
21285
|
init_errorMessages();
|
|
21156
21286
|
}
|
|
21157
21287
|
});
|
|
@@ -21227,6 +21357,7 @@ function safeIsOptional(schema) {
|
|
|
21227
21357
|
}
|
|
21228
21358
|
var init_object = __esm({
|
|
21229
21359
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/object.js"() {
|
|
21360
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21230
21361
|
init_parseDef();
|
|
21231
21362
|
}
|
|
21232
21363
|
});
|
|
@@ -21235,6 +21366,7 @@ var init_object = __esm({
|
|
|
21235
21366
|
var parseOptionalDef;
|
|
21236
21367
|
var init_optional = __esm({
|
|
21237
21368
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js"() {
|
|
21369
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21238
21370
|
init_parseDef();
|
|
21239
21371
|
init_any();
|
|
21240
21372
|
parseOptionalDef = (def, refs) => {
|
|
@@ -21261,6 +21393,7 @@ var init_optional = __esm({
|
|
|
21261
21393
|
var parsePipelineDef;
|
|
21262
21394
|
var init_pipeline = __esm({
|
|
21263
21395
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js"() {
|
|
21396
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21264
21397
|
init_parseDef();
|
|
21265
21398
|
parsePipelineDef = (def, refs) => {
|
|
21266
21399
|
if (refs.pipeStrategy === "input") {
|
|
@@ -21289,6 +21422,7 @@ function parsePromiseDef(def, refs) {
|
|
|
21289
21422
|
}
|
|
21290
21423
|
var init_promise = __esm({
|
|
21291
21424
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js"() {
|
|
21425
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21292
21426
|
init_parseDef();
|
|
21293
21427
|
}
|
|
21294
21428
|
});
|
|
@@ -21314,6 +21448,7 @@ function parseSetDef(def, refs) {
|
|
|
21314
21448
|
}
|
|
21315
21449
|
var init_set = __esm({
|
|
21316
21450
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/set.js"() {
|
|
21451
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21317
21452
|
init_errorMessages();
|
|
21318
21453
|
init_parseDef();
|
|
21319
21454
|
}
|
|
@@ -21348,6 +21483,7 @@ function parseTupleDef(def, refs) {
|
|
|
21348
21483
|
}
|
|
21349
21484
|
var init_tuple = __esm({
|
|
21350
21485
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js"() {
|
|
21486
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21351
21487
|
init_parseDef();
|
|
21352
21488
|
}
|
|
21353
21489
|
});
|
|
@@ -21360,6 +21496,7 @@ function parseUndefinedDef(refs) {
|
|
|
21360
21496
|
}
|
|
21361
21497
|
var init_undefined = __esm({
|
|
21362
21498
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js"() {
|
|
21499
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21363
21500
|
init_any();
|
|
21364
21501
|
}
|
|
21365
21502
|
});
|
|
@@ -21370,6 +21507,7 @@ function parseUnknownDef(refs) {
|
|
|
21370
21507
|
}
|
|
21371
21508
|
var init_unknown = __esm({
|
|
21372
21509
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js"() {
|
|
21510
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21373
21511
|
init_any();
|
|
21374
21512
|
}
|
|
21375
21513
|
});
|
|
@@ -21378,6 +21516,7 @@ var init_unknown = __esm({
|
|
|
21378
21516
|
var parseReadonlyDef;
|
|
21379
21517
|
var init_readonly = __esm({
|
|
21380
21518
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js"() {
|
|
21519
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21381
21520
|
init_parseDef();
|
|
21382
21521
|
parseReadonlyDef = (def, refs) => {
|
|
21383
21522
|
return parseDef(def.innerType._def, refs);
|
|
@@ -21389,6 +21528,7 @@ var init_readonly = __esm({
|
|
|
21389
21528
|
var selectParser;
|
|
21390
21529
|
var init_selectParser = __esm({
|
|
21391
21530
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/selectParser.js"() {
|
|
21531
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21392
21532
|
init_v3();
|
|
21393
21533
|
init_any();
|
|
21394
21534
|
init_array();
|
|
@@ -21530,6 +21670,7 @@ function parseDef(def, refs, forceResolution = false) {
|
|
|
21530
21670
|
var get$ref, addMeta;
|
|
21531
21671
|
var init_parseDef = __esm({
|
|
21532
21672
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parseDef.js"() {
|
|
21673
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21533
21674
|
init_Options();
|
|
21534
21675
|
init_selectParser();
|
|
21535
21676
|
init_getRelativePath();
|
|
@@ -21565,6 +21706,7 @@ var init_parseDef = __esm({
|
|
|
21565
21706
|
// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parseTypes.js
|
|
21566
21707
|
var init_parseTypes = __esm({
|
|
21567
21708
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/parseTypes.js"() {
|
|
21709
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21568
21710
|
}
|
|
21569
21711
|
});
|
|
21570
21712
|
|
|
@@ -21572,6 +21714,7 @@ var init_parseTypes = __esm({
|
|
|
21572
21714
|
var zodToJsonSchema;
|
|
21573
21715
|
var init_zodToJsonSchema = __esm({
|
|
21574
21716
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js"() {
|
|
21717
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21575
21718
|
init_parseDef();
|
|
21576
21719
|
init_Refs();
|
|
21577
21720
|
init_any();
|
|
@@ -21641,6 +21784,7 @@ var init_zodToJsonSchema = __esm({
|
|
|
21641
21784
|
// node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/index.js
|
|
21642
21785
|
var init_esm = __esm({
|
|
21643
21786
|
"node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.3.6/node_modules/zod-to-json-schema/dist/esm/index.js"() {
|
|
21787
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21644
21788
|
init_Options();
|
|
21645
21789
|
init_Refs();
|
|
21646
21790
|
init_errorMessages();
|
|
@@ -21726,6 +21870,7 @@ function parseWithCompat(schema, data) {
|
|
|
21726
21870
|
}
|
|
21727
21871
|
var init_zod_json_schema_compat = __esm({
|
|
21728
21872
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js"() {
|
|
21873
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21729
21874
|
init_v4_mini();
|
|
21730
21875
|
init_zod_compat();
|
|
21731
21876
|
init_esm();
|
|
@@ -21755,6 +21900,7 @@ function mergeCapabilities(base, additional) {
|
|
|
21755
21900
|
var DEFAULT_REQUEST_TIMEOUT_MSEC, Protocol;
|
|
21756
21901
|
var init_protocol = __esm({
|
|
21757
21902
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js"() {
|
|
21903
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
21758
21904
|
init_zod_compat();
|
|
21759
21905
|
init_types2();
|
|
21760
21906
|
init_interfaces();
|
|
@@ -22258,7 +22404,7 @@ var init_protocol = __esm({
|
|
|
22258
22404
|
return;
|
|
22259
22405
|
}
|
|
22260
22406
|
const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1e3;
|
|
22261
|
-
await new Promise((
|
|
22407
|
+
await new Promise((resolve12) => setTimeout(resolve12, pollInterval));
|
|
22262
22408
|
options?.signal?.throwIfAborted();
|
|
22263
22409
|
}
|
|
22264
22410
|
} catch (error49) {
|
|
@@ -22275,7 +22421,7 @@ var init_protocol = __esm({
|
|
|
22275
22421
|
*/
|
|
22276
22422
|
request(request, resultSchema, options) {
|
|
22277
22423
|
const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
|
|
22278
|
-
return new Promise((
|
|
22424
|
+
return new Promise((resolve12, reject) => {
|
|
22279
22425
|
const earlyReject = (error49) => {
|
|
22280
22426
|
reject(error49);
|
|
22281
22427
|
};
|
|
@@ -22353,7 +22499,7 @@ var init_protocol = __esm({
|
|
|
22353
22499
|
if (!parseResult.success) {
|
|
22354
22500
|
reject(parseResult.error);
|
|
22355
22501
|
} else {
|
|
22356
|
-
|
|
22502
|
+
resolve12(parseResult.data);
|
|
22357
22503
|
}
|
|
22358
22504
|
} catch (error49) {
|
|
22359
22505
|
reject(error49);
|
|
@@ -22614,12 +22760,12 @@ var init_protocol = __esm({
|
|
|
22614
22760
|
}
|
|
22615
22761
|
} catch {
|
|
22616
22762
|
}
|
|
22617
|
-
return new Promise((
|
|
22763
|
+
return new Promise((resolve12, reject) => {
|
|
22618
22764
|
if (signal.aborted) {
|
|
22619
22765
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
22620
22766
|
return;
|
|
22621
22767
|
}
|
|
22622
|
-
const timeoutId = setTimeout(
|
|
22768
|
+
const timeoutId = setTimeout(resolve12, interval);
|
|
22623
22769
|
signal.addEventListener("abort", () => {
|
|
22624
22770
|
clearTimeout(timeoutId);
|
|
22625
22771
|
reject(new McpError(ErrorCode.InvalidRequest, "Request cancelled"));
|
|
@@ -22699,6 +22845,7 @@ var init_protocol = __esm({
|
|
|
22699
22845
|
var require_code = __commonJS({
|
|
22700
22846
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
22701
22847
|
"use strict";
|
|
22848
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
22702
22849
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22703
22850
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
22704
22851
|
var _CodeOrName = class {
|
|
@@ -22853,6 +23000,7 @@ var require_code = __commonJS({
|
|
|
22853
23000
|
var require_scope = __commonJS({
|
|
22854
23001
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
22855
23002
|
"use strict";
|
|
23003
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
22856
23004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22857
23005
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
22858
23006
|
var code_1 = require_code();
|
|
@@ -22998,6 +23146,7 @@ var require_scope = __commonJS({
|
|
|
22998
23146
|
var require_codegen = __commonJS({
|
|
22999
23147
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
23000
23148
|
"use strict";
|
|
23149
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
23001
23150
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23002
23151
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
23003
23152
|
var code_1 = require_code();
|
|
@@ -23718,6 +23867,7 @@ var require_codegen = __commonJS({
|
|
|
23718
23867
|
var require_util = __commonJS({
|
|
23719
23868
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
23720
23869
|
"use strict";
|
|
23870
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
23721
23871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23722
23872
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
23723
23873
|
var codegen_1 = require_codegen();
|
|
@@ -23885,6 +24035,7 @@ var require_util = __commonJS({
|
|
|
23885
24035
|
var require_names = __commonJS({
|
|
23886
24036
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
23887
24037
|
"use strict";
|
|
24038
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
23888
24039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23889
24040
|
var codegen_1 = require_codegen();
|
|
23890
24041
|
var names = {
|
|
@@ -23924,6 +24075,7 @@ var require_names = __commonJS({
|
|
|
23924
24075
|
var require_errors = __commonJS({
|
|
23925
24076
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
23926
24077
|
"use strict";
|
|
24078
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
23927
24079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23928
24080
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
23929
24081
|
var codegen_1 = require_codegen();
|
|
@@ -24046,6 +24198,7 @@ var require_errors = __commonJS({
|
|
|
24046
24198
|
var require_boolSchema = __commonJS({
|
|
24047
24199
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
24048
24200
|
"use strict";
|
|
24201
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24049
24202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24050
24203
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
24051
24204
|
var errors_1 = require_errors();
|
|
@@ -24097,6 +24250,7 @@ var require_boolSchema = __commonJS({
|
|
|
24097
24250
|
var require_rules = __commonJS({
|
|
24098
24251
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
24099
24252
|
"use strict";
|
|
24253
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24100
24254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24101
24255
|
exports.getRules = exports.isJSONType = void 0;
|
|
24102
24256
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
@@ -24128,6 +24282,7 @@ var require_rules = __commonJS({
|
|
|
24128
24282
|
var require_applicability = __commonJS({
|
|
24129
24283
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
24130
24284
|
"use strict";
|
|
24285
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24131
24286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24132
24287
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
24133
24288
|
function schemaHasRulesForType({ schema, self: self2 }, type) {
|
|
@@ -24151,6 +24306,7 @@ var require_applicability = __commonJS({
|
|
|
24151
24306
|
var require_dataType = __commonJS({
|
|
24152
24307
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
24153
24308
|
"use strict";
|
|
24309
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24154
24310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24155
24311
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
24156
24312
|
var rules_1 = require_rules();
|
|
@@ -24335,6 +24491,7 @@ var require_dataType = __commonJS({
|
|
|
24335
24491
|
var require_defaults = __commonJS({
|
|
24336
24492
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
24337
24493
|
"use strict";
|
|
24494
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24338
24495
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24339
24496
|
exports.assignDefaults = void 0;
|
|
24340
24497
|
var codegen_1 = require_codegen();
|
|
@@ -24372,6 +24529,7 @@ var require_defaults = __commonJS({
|
|
|
24372
24529
|
var require_code2 = __commonJS({
|
|
24373
24530
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
24374
24531
|
"use strict";
|
|
24532
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24375
24533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24376
24534
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
24377
24535
|
var codegen_1 = require_codegen();
|
|
@@ -24505,6 +24663,7 @@ var require_code2 = __commonJS({
|
|
|
24505
24663
|
var require_keyword = __commonJS({
|
|
24506
24664
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
24507
24665
|
"use strict";
|
|
24666
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24508
24667
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24509
24668
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
24510
24669
|
var codegen_1 = require_codegen();
|
|
@@ -24623,6 +24782,7 @@ var require_keyword = __commonJS({
|
|
|
24623
24782
|
var require_subschema = __commonJS({
|
|
24624
24783
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
24625
24784
|
"use strict";
|
|
24785
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24626
24786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24627
24787
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
24628
24788
|
var codegen_1 = require_codegen();
|
|
@@ -24706,6 +24866,7 @@ var require_subschema = __commonJS({
|
|
|
24706
24866
|
var require_fast_deep_equal = __commonJS({
|
|
24707
24867
|
"node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
24708
24868
|
"use strict";
|
|
24869
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24709
24870
|
module.exports = function equal(a, b2) {
|
|
24710
24871
|
if (a === b2) return true;
|
|
24711
24872
|
if (a && b2 && typeof a == "object" && typeof b2 == "object") {
|
|
@@ -24741,6 +24902,7 @@ var require_fast_deep_equal = __commonJS({
|
|
|
24741
24902
|
var require_json_schema_traverse = __commonJS({
|
|
24742
24903
|
"node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
24743
24904
|
"use strict";
|
|
24905
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24744
24906
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
24745
24907
|
if (typeof opts == "function") {
|
|
24746
24908
|
cb = opts;
|
|
@@ -24829,6 +24991,7 @@ var require_json_schema_traverse = __commonJS({
|
|
|
24829
24991
|
var require_resolve = __commonJS({
|
|
24830
24992
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
24831
24993
|
"use strict";
|
|
24994
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24832
24995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24833
24996
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
24834
24997
|
var util_1 = require_util();
|
|
@@ -24985,6 +25148,7 @@ var require_resolve = __commonJS({
|
|
|
24985
25148
|
var require_validate = __commonJS({
|
|
24986
25149
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
24987
25150
|
"use strict";
|
|
25151
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
24988
25152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24989
25153
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
24990
25154
|
var boolSchema_1 = require_boolSchema();
|
|
@@ -25493,6 +25657,7 @@ var require_validate = __commonJS({
|
|
|
25493
25657
|
var require_validation_error = __commonJS({
|
|
25494
25658
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
25495
25659
|
"use strict";
|
|
25660
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
25496
25661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25497
25662
|
var ValidationError = class extends Error {
|
|
25498
25663
|
constructor(errors) {
|
|
@@ -25509,6 +25674,7 @@ var require_validation_error = __commonJS({
|
|
|
25509
25674
|
var require_ref_error = __commonJS({
|
|
25510
25675
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
25511
25676
|
"use strict";
|
|
25677
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
25512
25678
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25513
25679
|
var resolve_1 = require_resolve();
|
|
25514
25680
|
var MissingRefError = class extends Error {
|
|
@@ -25526,6 +25692,7 @@ var require_ref_error = __commonJS({
|
|
|
25526
25692
|
var require_compile = __commonJS({
|
|
25527
25693
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
25528
25694
|
"use strict";
|
|
25695
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
25529
25696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25530
25697
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
25531
25698
|
var codegen_1 = require_codegen();
|
|
@@ -25646,7 +25813,7 @@ var require_compile = __commonJS({
|
|
|
25646
25813
|
const schOrFunc = root.refs[ref];
|
|
25647
25814
|
if (schOrFunc)
|
|
25648
25815
|
return schOrFunc;
|
|
25649
|
-
let _sch =
|
|
25816
|
+
let _sch = resolve12.call(this, root, ref);
|
|
25650
25817
|
if (_sch === void 0) {
|
|
25651
25818
|
const schema = (_a3 = root.localRefs) === null || _a3 === void 0 ? void 0 : _a3[ref];
|
|
25652
25819
|
const { schemaId } = this.opts;
|
|
@@ -25673,7 +25840,7 @@ var require_compile = __commonJS({
|
|
|
25673
25840
|
function sameSchemaEnv(s1, s2) {
|
|
25674
25841
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
25675
25842
|
}
|
|
25676
|
-
function
|
|
25843
|
+
function resolve12(root, ref) {
|
|
25677
25844
|
let sch;
|
|
25678
25845
|
while (typeof (sch = this.refs[ref]) == "string")
|
|
25679
25846
|
ref = sch;
|
|
@@ -25769,6 +25936,7 @@ var require_data = __commonJS({
|
|
|
25769
25936
|
var require_utils = __commonJS({
|
|
25770
25937
|
"node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
25771
25938
|
"use strict";
|
|
25939
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
25772
25940
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
25773
25941
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
25774
25942
|
function stringArrayToHexStripped(input) {
|
|
@@ -26026,6 +26194,7 @@ var require_utils = __commonJS({
|
|
|
26026
26194
|
var require_schemes = __commonJS({
|
|
26027
26195
|
"node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
26028
26196
|
"use strict";
|
|
26197
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
26029
26198
|
var { isUUID } = require_utils();
|
|
26030
26199
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
26031
26200
|
var supportedSchemeNames = (
|
|
@@ -26236,6 +26405,7 @@ var require_schemes = __commonJS({
|
|
|
26236
26405
|
var require_fast_uri = __commonJS({
|
|
26237
26406
|
"node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports, module) {
|
|
26238
26407
|
"use strict";
|
|
26408
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
26239
26409
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
26240
26410
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
26241
26411
|
function normalize3(uri, options) {
|
|
@@ -26248,7 +26418,7 @@ var require_fast_uri = __commonJS({
|
|
|
26248
26418
|
}
|
|
26249
26419
|
return uri;
|
|
26250
26420
|
}
|
|
26251
|
-
function
|
|
26421
|
+
function resolve12(baseURI, relativeURI, options) {
|
|
26252
26422
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
26253
26423
|
const resolved = resolveComponent(parse4(baseURI, schemelessOptions), parse4(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
26254
26424
|
schemelessOptions.skipEscape = true;
|
|
@@ -26475,7 +26645,7 @@ var require_fast_uri = __commonJS({
|
|
|
26475
26645
|
var fastUri = {
|
|
26476
26646
|
SCHEMES,
|
|
26477
26647
|
normalize: normalize3,
|
|
26478
|
-
resolve:
|
|
26648
|
+
resolve: resolve12,
|
|
26479
26649
|
resolveComponent,
|
|
26480
26650
|
equal,
|
|
26481
26651
|
serialize,
|
|
@@ -26491,6 +26661,7 @@ var require_fast_uri = __commonJS({
|
|
|
26491
26661
|
var require_uri = __commonJS({
|
|
26492
26662
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
26493
26663
|
"use strict";
|
|
26664
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
26494
26665
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26495
26666
|
var uri = require_fast_uri();
|
|
26496
26667
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -26502,6 +26673,7 @@ var require_uri = __commonJS({
|
|
|
26502
26673
|
var require_core = __commonJS({
|
|
26503
26674
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) {
|
|
26504
26675
|
"use strict";
|
|
26676
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
26505
26677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26506
26678
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
26507
26679
|
var validate_1 = require_validate();
|
|
@@ -27113,6 +27285,7 @@ var require_core = __commonJS({
|
|
|
27113
27285
|
var require_id = __commonJS({
|
|
27114
27286
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
27115
27287
|
"use strict";
|
|
27288
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27116
27289
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27117
27290
|
var def = {
|
|
27118
27291
|
keyword: "id",
|
|
@@ -27128,6 +27301,7 @@ var require_id = __commonJS({
|
|
|
27128
27301
|
var require_ref = __commonJS({
|
|
27129
27302
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
27130
27303
|
"use strict";
|
|
27304
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27131
27305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27132
27306
|
exports.callRef = exports.getValidate = void 0;
|
|
27133
27307
|
var ref_error_1 = require_ref_error();
|
|
@@ -27250,6 +27424,7 @@ var require_ref = __commonJS({
|
|
|
27250
27424
|
var require_core2 = __commonJS({
|
|
27251
27425
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
27252
27426
|
"use strict";
|
|
27427
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27253
27428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27254
27429
|
var id_1 = require_id();
|
|
27255
27430
|
var ref_1 = require_ref();
|
|
@@ -27271,6 +27446,7 @@ var require_core2 = __commonJS({
|
|
|
27271
27446
|
var require_limitNumber = __commonJS({
|
|
27272
27447
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
27273
27448
|
"use strict";
|
|
27449
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27274
27450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27275
27451
|
var codegen_1 = require_codegen();
|
|
27276
27452
|
var ops = codegen_1.operators;
|
|
@@ -27303,6 +27479,7 @@ var require_limitNumber = __commonJS({
|
|
|
27303
27479
|
var require_multipleOf = __commonJS({
|
|
27304
27480
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
27305
27481
|
"use strict";
|
|
27482
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27306
27483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27307
27484
|
var codegen_1 = require_codegen();
|
|
27308
27485
|
var error49 = {
|
|
@@ -27331,6 +27508,7 @@ var require_multipleOf = __commonJS({
|
|
|
27331
27508
|
var require_ucs2length = __commonJS({
|
|
27332
27509
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
27333
27510
|
"use strict";
|
|
27511
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27334
27512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27335
27513
|
function ucs2length(str) {
|
|
27336
27514
|
const len = str.length;
|
|
@@ -27357,6 +27535,7 @@ var require_ucs2length = __commonJS({
|
|
|
27357
27535
|
var require_limitLength = __commonJS({
|
|
27358
27536
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
27359
27537
|
"use strict";
|
|
27538
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27360
27539
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27361
27540
|
var codegen_1 = require_codegen();
|
|
27362
27541
|
var util_1 = require_util();
|
|
@@ -27389,6 +27568,7 @@ var require_limitLength = __commonJS({
|
|
|
27389
27568
|
var require_pattern = __commonJS({
|
|
27390
27569
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
27391
27570
|
"use strict";
|
|
27571
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27392
27572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27393
27573
|
var code_1 = require_code2();
|
|
27394
27574
|
var util_1 = require_util();
|
|
@@ -27426,6 +27606,7 @@ var require_pattern = __commonJS({
|
|
|
27426
27606
|
var require_limitProperties = __commonJS({
|
|
27427
27607
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
27428
27608
|
"use strict";
|
|
27609
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27429
27610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27430
27611
|
var codegen_1 = require_codegen();
|
|
27431
27612
|
var error49 = {
|
|
@@ -27455,6 +27636,7 @@ var require_limitProperties = __commonJS({
|
|
|
27455
27636
|
var require_required = __commonJS({
|
|
27456
27637
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
27457
27638
|
"use strict";
|
|
27639
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27458
27640
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27459
27641
|
var code_1 = require_code2();
|
|
27460
27642
|
var codegen_1 = require_codegen();
|
|
@@ -27537,6 +27719,7 @@ var require_required = __commonJS({
|
|
|
27537
27719
|
var require_limitItems = __commonJS({
|
|
27538
27720
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
27539
27721
|
"use strict";
|
|
27722
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27540
27723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27541
27724
|
var codegen_1 = require_codegen();
|
|
27542
27725
|
var error49 = {
|
|
@@ -27566,6 +27749,7 @@ var require_limitItems = __commonJS({
|
|
|
27566
27749
|
var require_equal = __commonJS({
|
|
27567
27750
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
27568
27751
|
"use strict";
|
|
27752
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27569
27753
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27570
27754
|
var equal = require_fast_deep_equal();
|
|
27571
27755
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
@@ -27577,6 +27761,7 @@ var require_equal = __commonJS({
|
|
|
27577
27761
|
var require_uniqueItems = __commonJS({
|
|
27578
27762
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
27579
27763
|
"use strict";
|
|
27764
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27580
27765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27581
27766
|
var dataType_1 = require_dataType();
|
|
27582
27767
|
var codegen_1 = require_codegen();
|
|
@@ -27644,6 +27829,7 @@ var require_uniqueItems = __commonJS({
|
|
|
27644
27829
|
var require_const = __commonJS({
|
|
27645
27830
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
27646
27831
|
"use strict";
|
|
27832
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27647
27833
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27648
27834
|
var codegen_1 = require_codegen();
|
|
27649
27835
|
var util_1 = require_util();
|
|
@@ -27673,6 +27859,7 @@ var require_const = __commonJS({
|
|
|
27673
27859
|
var require_enum = __commonJS({
|
|
27674
27860
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
27675
27861
|
"use strict";
|
|
27862
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27676
27863
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27677
27864
|
var codegen_1 = require_codegen();
|
|
27678
27865
|
var util_1 = require_util();
|
|
@@ -27722,6 +27909,7 @@ var require_enum = __commonJS({
|
|
|
27722
27909
|
var require_validation = __commonJS({
|
|
27723
27910
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
27724
27911
|
"use strict";
|
|
27912
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27725
27913
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27726
27914
|
var limitNumber_1 = require_limitNumber();
|
|
27727
27915
|
var multipleOf_1 = require_multipleOf();
|
|
@@ -27760,6 +27948,7 @@ var require_validation = __commonJS({
|
|
|
27760
27948
|
var require_additionalItems = __commonJS({
|
|
27761
27949
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
27762
27950
|
"use strict";
|
|
27951
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27763
27952
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27764
27953
|
exports.validateAdditionalItems = void 0;
|
|
27765
27954
|
var codegen_1 = require_codegen();
|
|
@@ -27813,6 +28002,7 @@ var require_additionalItems = __commonJS({
|
|
|
27813
28002
|
var require_items = __commonJS({
|
|
27814
28003
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
27815
28004
|
"use strict";
|
|
28005
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27816
28006
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27817
28007
|
exports.validateTuple = void 0;
|
|
27818
28008
|
var codegen_1 = require_codegen();
|
|
@@ -27870,6 +28060,7 @@ var require_items = __commonJS({
|
|
|
27870
28060
|
var require_prefixItems = __commonJS({
|
|
27871
28061
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
27872
28062
|
"use strict";
|
|
28063
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27873
28064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27874
28065
|
var items_1 = require_items();
|
|
27875
28066
|
var def = {
|
|
@@ -27887,6 +28078,7 @@ var require_prefixItems = __commonJS({
|
|
|
27887
28078
|
var require_items2020 = __commonJS({
|
|
27888
28079
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
27889
28080
|
"use strict";
|
|
28081
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27890
28082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27891
28083
|
var codegen_1 = require_codegen();
|
|
27892
28084
|
var util_1 = require_util();
|
|
@@ -27922,6 +28114,7 @@ var require_items2020 = __commonJS({
|
|
|
27922
28114
|
var require_contains = __commonJS({
|
|
27923
28115
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
27924
28116
|
"use strict";
|
|
28117
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
27925
28118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27926
28119
|
var codegen_1 = require_codegen();
|
|
27927
28120
|
var util_1 = require_util();
|
|
@@ -28016,6 +28209,7 @@ var require_contains = __commonJS({
|
|
|
28016
28209
|
var require_dependencies = __commonJS({
|
|
28017
28210
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
28018
28211
|
"use strict";
|
|
28212
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28019
28213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28020
28214
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
28021
28215
|
var codegen_1 = require_codegen();
|
|
@@ -28110,6 +28304,7 @@ var require_dependencies = __commonJS({
|
|
|
28110
28304
|
var require_propertyNames = __commonJS({
|
|
28111
28305
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
28112
28306
|
"use strict";
|
|
28307
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28113
28308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28114
28309
|
var codegen_1 = require_codegen();
|
|
28115
28310
|
var util_1 = require_util();
|
|
@@ -28153,6 +28348,7 @@ var require_propertyNames = __commonJS({
|
|
|
28153
28348
|
var require_additionalProperties = __commonJS({
|
|
28154
28349
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
28155
28350
|
"use strict";
|
|
28351
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28156
28352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28157
28353
|
var code_1 = require_code2();
|
|
28158
28354
|
var codegen_1 = require_codegen();
|
|
@@ -28259,6 +28455,7 @@ var require_additionalProperties = __commonJS({
|
|
|
28259
28455
|
var require_properties = __commonJS({
|
|
28260
28456
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
28261
28457
|
"use strict";
|
|
28458
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28262
28459
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28263
28460
|
var validate_1 = require_validate();
|
|
28264
28461
|
var code_1 = require_code2();
|
|
@@ -28317,6 +28514,7 @@ var require_properties = __commonJS({
|
|
|
28317
28514
|
var require_patternProperties = __commonJS({
|
|
28318
28515
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
28319
28516
|
"use strict";
|
|
28517
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28320
28518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28321
28519
|
var code_1 = require_code2();
|
|
28322
28520
|
var codegen_1 = require_codegen();
|
|
@@ -28391,6 +28589,7 @@ var require_patternProperties = __commonJS({
|
|
|
28391
28589
|
var require_not = __commonJS({
|
|
28392
28590
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
28393
28591
|
"use strict";
|
|
28592
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28394
28593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28395
28594
|
var util_1 = require_util();
|
|
28396
28595
|
var def = {
|
|
@@ -28422,6 +28621,7 @@ var require_not = __commonJS({
|
|
|
28422
28621
|
var require_anyOf = __commonJS({
|
|
28423
28622
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
28424
28623
|
"use strict";
|
|
28624
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28425
28625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28426
28626
|
var code_1 = require_code2();
|
|
28427
28627
|
var def = {
|
|
@@ -28439,6 +28639,7 @@ var require_anyOf = __commonJS({
|
|
|
28439
28639
|
var require_oneOf = __commonJS({
|
|
28440
28640
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
28441
28641
|
"use strict";
|
|
28642
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28442
28643
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28443
28644
|
var codegen_1 = require_codegen();
|
|
28444
28645
|
var util_1 = require_util();
|
|
@@ -28497,6 +28698,7 @@ var require_oneOf = __commonJS({
|
|
|
28497
28698
|
var require_allOf = __commonJS({
|
|
28498
28699
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
28499
28700
|
"use strict";
|
|
28701
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28500
28702
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28501
28703
|
var util_1 = require_util();
|
|
28502
28704
|
var def = {
|
|
@@ -28524,6 +28726,7 @@ var require_allOf = __commonJS({
|
|
|
28524
28726
|
var require_if = __commonJS({
|
|
28525
28727
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
28526
28728
|
"use strict";
|
|
28729
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28527
28730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28528
28731
|
var codegen_1 = require_codegen();
|
|
28529
28732
|
var util_1 = require_util();
|
|
@@ -28593,6 +28796,7 @@ var require_if = __commonJS({
|
|
|
28593
28796
|
var require_thenElse = __commonJS({
|
|
28594
28797
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
28595
28798
|
"use strict";
|
|
28799
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28596
28800
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28597
28801
|
var util_1 = require_util();
|
|
28598
28802
|
var def = {
|
|
@@ -28611,6 +28815,7 @@ var require_thenElse = __commonJS({
|
|
|
28611
28815
|
var require_applicator = __commonJS({
|
|
28612
28816
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
28613
28817
|
"use strict";
|
|
28818
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28614
28819
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28615
28820
|
var additionalItems_1 = require_additionalItems();
|
|
28616
28821
|
var prefixItems_1 = require_prefixItems();
|
|
@@ -28659,6 +28864,7 @@ var require_applicator = __commonJS({
|
|
|
28659
28864
|
var require_format = __commonJS({
|
|
28660
28865
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
28661
28866
|
"use strict";
|
|
28867
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28662
28868
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28663
28869
|
var codegen_1 = require_codegen();
|
|
28664
28870
|
var error49 = {
|
|
@@ -28749,6 +28955,7 @@ var require_format = __commonJS({
|
|
|
28749
28955
|
var require_format2 = __commonJS({
|
|
28750
28956
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
28751
28957
|
"use strict";
|
|
28958
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28752
28959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28753
28960
|
var format_1 = require_format();
|
|
28754
28961
|
var format3 = [format_1.default];
|
|
@@ -28760,6 +28967,7 @@ var require_format2 = __commonJS({
|
|
|
28760
28967
|
var require_metadata = __commonJS({
|
|
28761
28968
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
28762
28969
|
"use strict";
|
|
28970
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28763
28971
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28764
28972
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
28765
28973
|
exports.metadataVocabulary = [
|
|
@@ -28783,6 +28991,7 @@ var require_metadata = __commonJS({
|
|
|
28783
28991
|
var require_draft7 = __commonJS({
|
|
28784
28992
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
28785
28993
|
"use strict";
|
|
28994
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28786
28995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28787
28996
|
var core_1 = require_core2();
|
|
28788
28997
|
var validation_1 = require_validation();
|
|
@@ -28805,6 +29014,7 @@ var require_draft7 = __commonJS({
|
|
|
28805
29014
|
var require_types = __commonJS({
|
|
28806
29015
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
28807
29016
|
"use strict";
|
|
29017
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28808
29018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28809
29019
|
exports.DiscrError = void 0;
|
|
28810
29020
|
var DiscrError;
|
|
@@ -28819,6 +29029,7 @@ var require_types = __commonJS({
|
|
|
28819
29029
|
var require_discriminator = __commonJS({
|
|
28820
29030
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
28821
29031
|
"use strict";
|
|
29032
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
28822
29033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28823
29034
|
var codegen_1 = require_codegen();
|
|
28824
29035
|
var types_1 = require_types();
|
|
@@ -29081,6 +29292,7 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
29081
29292
|
var require_ajv = __commonJS({
|
|
29082
29293
|
"node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
29083
29294
|
"use strict";
|
|
29295
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29084
29296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29085
29297
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
29086
29298
|
var core_1 = require_core();
|
|
@@ -29151,6 +29363,7 @@ var require_ajv = __commonJS({
|
|
|
29151
29363
|
var require_formats = __commonJS({
|
|
29152
29364
|
"node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
29153
29365
|
"use strict";
|
|
29366
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29154
29367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29155
29368
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
29156
29369
|
function fmtDef(validate2, compare) {
|
|
@@ -29354,6 +29567,7 @@ var require_formats = __commonJS({
|
|
|
29354
29567
|
var require_limit = __commonJS({
|
|
29355
29568
|
"node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
29356
29569
|
"use strict";
|
|
29570
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29357
29571
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29358
29572
|
exports.formatLimitDefinition = void 0;
|
|
29359
29573
|
var ajv_1 = require_ajv();
|
|
@@ -29426,6 +29640,7 @@ var require_limit = __commonJS({
|
|
|
29426
29640
|
var require_dist = __commonJS({
|
|
29427
29641
|
"node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
29428
29642
|
"use strict";
|
|
29643
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29429
29644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29430
29645
|
var formats_1 = require_formats();
|
|
29431
29646
|
var limit_1 = require_limit();
|
|
@@ -29479,6 +29694,7 @@ function createDefaultAjvInstance() {
|
|
|
29479
29694
|
var import_ajv, import_ajv_formats, AjvJsonSchemaValidator;
|
|
29480
29695
|
var init_ajv_provider = __esm({
|
|
29481
29696
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js"() {
|
|
29697
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29482
29698
|
import_ajv = __toESM(require_ajv(), 1);
|
|
29483
29699
|
import_ajv_formats = __toESM(require_dist(), 1);
|
|
29484
29700
|
AjvJsonSchemaValidator = class {
|
|
@@ -29541,6 +29757,7 @@ var init_ajv_provider = __esm({
|
|
|
29541
29757
|
var ExperimentalServerTasks;
|
|
29542
29758
|
var init_server = __esm({
|
|
29543
29759
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js"() {
|
|
29760
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29544
29761
|
init_types2();
|
|
29545
29762
|
ExperimentalServerTasks = class {
|
|
29546
29763
|
constructor(_server) {
|
|
@@ -29792,6 +30009,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
29792
30009
|
}
|
|
29793
30010
|
var init_helpers = __esm({
|
|
29794
30011
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js"() {
|
|
30012
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29795
30013
|
}
|
|
29796
30014
|
});
|
|
29797
30015
|
|
|
@@ -29799,6 +30017,7 @@ var init_helpers = __esm({
|
|
|
29799
30017
|
var Server;
|
|
29800
30018
|
var init_server2 = __esm({
|
|
29801
30019
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js"() {
|
|
30020
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
29802
30021
|
init_protocol();
|
|
29803
30022
|
init_types2();
|
|
29804
30023
|
init_ajv_provider();
|
|
@@ -30197,6 +30416,7 @@ function getCompleter(schema) {
|
|
|
30197
30416
|
var COMPLETABLE_SYMBOL, McpZodTypeKind;
|
|
30198
30417
|
var init_completable = __esm({
|
|
30199
30418
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js"() {
|
|
30419
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30200
30420
|
COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
|
|
30201
30421
|
(function(McpZodTypeKind2) {
|
|
30202
30422
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -30207,6 +30427,7 @@ var init_completable = __esm({
|
|
|
30207
30427
|
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
|
|
30208
30428
|
var init_uriTemplate = __esm({
|
|
30209
30429
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js"() {
|
|
30430
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30210
30431
|
}
|
|
30211
30432
|
});
|
|
30212
30433
|
|
|
@@ -30269,6 +30490,7 @@ function validateAndWarnToolName(name) {
|
|
|
30269
30490
|
var TOOL_NAME_REGEX;
|
|
30270
30491
|
var init_toolNameValidation = __esm({
|
|
30271
30492
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js"() {
|
|
30493
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30272
30494
|
TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
30273
30495
|
}
|
|
30274
30496
|
});
|
|
@@ -30277,6 +30499,7 @@ var init_toolNameValidation = __esm({
|
|
|
30277
30499
|
var ExperimentalMcpServerTasks;
|
|
30278
30500
|
var init_mcp_server = __esm({
|
|
30279
30501
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js"() {
|
|
30502
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30280
30503
|
ExperimentalMcpServerTasks = class {
|
|
30281
30504
|
constructor(_mcpServer) {
|
|
30282
30505
|
this._mcpServer = _mcpServer;
|
|
@@ -30296,6 +30519,7 @@ var init_mcp_server = __esm({
|
|
|
30296
30519
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
30297
30520
|
var init_zod = __esm({
|
|
30298
30521
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js"() {
|
|
30522
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30299
30523
|
init_external3();
|
|
30300
30524
|
init_external3();
|
|
30301
30525
|
}
|
|
@@ -30370,6 +30594,7 @@ function createCompletionResult(suggestions) {
|
|
|
30370
30594
|
var McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT;
|
|
30371
30595
|
var init_mcp = __esm({
|
|
30372
30596
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js"() {
|
|
30597
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
30373
30598
|
init_server2();
|
|
30374
30599
|
init_zod_compat();
|
|
30375
30600
|
init_zod_json_schema_compat();
|
|
@@ -30602,7 +30827,7 @@ var init_mcp = __esm({
|
|
|
30602
30827
|
let task = createTaskResult.task;
|
|
30603
30828
|
const pollInterval = task.pollInterval ?? 5e3;
|
|
30604
30829
|
while (task.status !== "completed" && task.status !== "failed" && task.status !== "cancelled") {
|
|
30605
|
-
await new Promise((
|
|
30830
|
+
await new Promise((resolve12) => setTimeout(resolve12, pollInterval));
|
|
30606
30831
|
const updatedTask = await extra.taskStore.getTask(taskId);
|
|
30607
30832
|
if (!updatedTask) {
|
|
30608
30833
|
throw new McpError(ErrorCode.InternalError, `Task ${taskId} not found during polling`);
|
|
@@ -31117,6 +31342,7 @@ function serializeMessage(message) {
|
|
|
31117
31342
|
var ReadBuffer;
|
|
31118
31343
|
var init_stdio = __esm({
|
|
31119
31344
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js"() {
|
|
31345
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
31120
31346
|
init_types2();
|
|
31121
31347
|
ReadBuffer = class {
|
|
31122
31348
|
append(chunk) {
|
|
@@ -31146,6 +31372,7 @@ import process3 from "node:process";
|
|
|
31146
31372
|
var StdioServerTransport;
|
|
31147
31373
|
var init_stdio2 = __esm({
|
|
31148
31374
|
"node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js"() {
|
|
31375
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
31149
31376
|
init_stdio();
|
|
31150
31377
|
StdioServerTransport = class {
|
|
31151
31378
|
constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
|
|
@@ -31196,12 +31423,12 @@ var init_stdio2 = __esm({
|
|
|
31196
31423
|
this.onclose?.();
|
|
31197
31424
|
}
|
|
31198
31425
|
send(message) {
|
|
31199
|
-
return new Promise((
|
|
31426
|
+
return new Promise((resolve12) => {
|
|
31200
31427
|
const json2 = serializeMessage(message);
|
|
31201
31428
|
if (this._stdout.write(json2)) {
|
|
31202
|
-
|
|
31429
|
+
resolve12();
|
|
31203
31430
|
} else {
|
|
31204
|
-
this._stdout.once("drain",
|
|
31431
|
+
this._stdout.once("drain", resolve12);
|
|
31205
31432
|
}
|
|
31206
31433
|
});
|
|
31207
31434
|
}
|
|
@@ -31318,6 +31545,7 @@ function es(n7, t2 = {}) {
|
|
|
31318
31545
|
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, qs, A, Ks, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Cr, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
31319
31546
|
var init_index_min = __esm({
|
|
31320
31547
|
"node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js"() {
|
|
31548
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
31321
31549
|
Gt = (n7, t2, e) => {
|
|
31322
31550
|
let s = n7 instanceof RegExp ? ce(n7, e) : n7, i2 = t2 instanceof RegExp ? ce(t2, e) : t2, r2 = s !== null && i2 != null && ss(s, i2, e);
|
|
31323
31551
|
return r2 && { start: r2[0], end: r2[1], pre: e.slice(0, r2[0]), body: e.slice(r2[0] + s.length, r2[1]), post: e.slice(r2[1] + i2.length) };
|
|
@@ -34287,6 +34515,7 @@ var pkgJsonCache, IGNORED_DIRS;
|
|
|
34287
34515
|
var init_fs = __esm({
|
|
34288
34516
|
"src/utils/fs.ts"() {
|
|
34289
34517
|
"use strict";
|
|
34518
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34290
34519
|
pkgJsonCache = null;
|
|
34291
34520
|
IGNORED_DIRS = /* @__PURE__ */ new Set([
|
|
34292
34521
|
"node_modules",
|
|
@@ -34478,6 +34707,7 @@ var CONTEXT_FILE_PATTERNS, IGNORED_DIRS2, MCP_CONFIG_PATTERNS, MCPH_CONFIG_PATTE
|
|
|
34478
34707
|
var init_scanner = __esm({
|
|
34479
34708
|
"src/core/scanner.ts"() {
|
|
34480
34709
|
"use strict";
|
|
34710
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34481
34711
|
init_index_min();
|
|
34482
34712
|
init_fs();
|
|
34483
34713
|
CONTEXT_FILE_PATTERNS = [
|
|
@@ -34585,6 +34815,7 @@ var encodingForModel, loadAttempted, encoder, _keepAlive;
|
|
|
34585
34815
|
var init_tokens = __esm({
|
|
34586
34816
|
"src/utils/tokens.ts"() {
|
|
34587
34817
|
"use strict";
|
|
34818
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34588
34819
|
encodingForModel = null;
|
|
34589
34820
|
loadAttempted = false;
|
|
34590
34821
|
encoder = null;
|
|
@@ -34791,6 +35022,7 @@ var PATH_PATTERN, PATH_EXCLUDE, COMMAND_PREFIXES, COMMON_COMMANDS;
|
|
|
34791
35022
|
var init_parser = __esm({
|
|
34792
35023
|
"src/core/parser.ts"() {
|
|
34793
35024
|
"use strict";
|
|
35025
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34794
35026
|
init_fs();
|
|
34795
35027
|
init_tokens();
|
|
34796
35028
|
PATH_PATTERN = /(?:^|[\s`"'(])((\.{0,2}\/)?(?:[\w@.-]+\/)+[\w.*-]*(?:\.\w+)?)(?=[\s`"'),;:]|$)/gm;
|
|
@@ -34803,6 +35035,7 @@ var init_parser = __esm({
|
|
|
34803
35035
|
// node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
|
|
34804
35036
|
var require_ms = __commonJS({
|
|
34805
35037
|
"node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module) {
|
|
35038
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34806
35039
|
var s = 1e3;
|
|
34807
35040
|
var m = s * 60;
|
|
34808
35041
|
var h2 = m * 60;
|
|
@@ -34919,6 +35152,7 @@ var require_ms = __commonJS({
|
|
|
34919
35152
|
// node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
|
|
34920
35153
|
var require_common = __commonJS({
|
|
34921
35154
|
"node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module) {
|
|
35155
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
34922
35156
|
function setup(env2) {
|
|
34923
35157
|
createDebug.debug = createDebug;
|
|
34924
35158
|
createDebug.default = createDebug;
|
|
@@ -35096,6 +35330,7 @@ var require_common = __commonJS({
|
|
|
35096
35330
|
// node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
|
|
35097
35331
|
var require_browser = __commonJS({
|
|
35098
35332
|
"node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module) {
|
|
35333
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35099
35334
|
exports.formatArgs = formatArgs;
|
|
35100
35335
|
exports.save = save;
|
|
35101
35336
|
exports.load = load2;
|
|
@@ -35267,6 +35502,7 @@ var require_browser = __commonJS({
|
|
|
35267
35502
|
var require_has_flag = __commonJS({
|
|
35268
35503
|
"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
35269
35504
|
"use strict";
|
|
35505
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35270
35506
|
module.exports = (flag, argv = process.argv) => {
|
|
35271
35507
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
35272
35508
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -35280,6 +35516,7 @@ var require_has_flag = __commonJS({
|
|
|
35280
35516
|
var require_supports_color = __commonJS({
|
|
35281
35517
|
"node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
|
|
35282
35518
|
"use strict";
|
|
35519
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35283
35520
|
var os3 = __require("os");
|
|
35284
35521
|
var tty3 = __require("tty");
|
|
35285
35522
|
var hasFlag2 = require_has_flag();
|
|
@@ -35381,6 +35618,7 @@ var require_supports_color = __commonJS({
|
|
|
35381
35618
|
// node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
|
|
35382
35619
|
var require_node = __commonJS({
|
|
35383
35620
|
"node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module) {
|
|
35621
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35384
35622
|
var tty3 = __require("tty");
|
|
35385
35623
|
var util2 = __require("util");
|
|
35386
35624
|
exports.init = init;
|
|
@@ -35555,6 +35793,7 @@ var require_node = __commonJS({
|
|
|
35555
35793
|
// node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
|
|
35556
35794
|
var require_src = __commonJS({
|
|
35557
35795
|
"node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module) {
|
|
35796
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35558
35797
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
35559
35798
|
module.exports = require_browser();
|
|
35560
35799
|
} else {
|
|
@@ -35567,6 +35806,7 @@ var require_src = __commonJS({
|
|
|
35567
35806
|
var require_src2 = __commonJS({
|
|
35568
35807
|
"node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.js"(exports) {
|
|
35569
35808
|
"use strict";
|
|
35809
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35570
35810
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35571
35811
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35572
35812
|
};
|
|
@@ -35611,6 +35851,7 @@ var require_src2 = __commonJS({
|
|
|
35611
35851
|
var require_dist2 = __commonJS({
|
|
35612
35852
|
"node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.js"(exports) {
|
|
35613
35853
|
"use strict";
|
|
35854
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35614
35855
|
function __export3(m) {
|
|
35615
35856
|
for (var p2 in m) if (!exports.hasOwnProperty(p2)) exports[p2] = m[p2];
|
|
35616
35857
|
}
|
|
@@ -35633,6 +35874,7 @@ function o(n7) {
|
|
|
35633
35874
|
var t;
|
|
35634
35875
|
var init_dist = __esm({
|
|
35635
35876
|
"node_modules/.pnpm/@simple-git+args-pathspec@1.0.3/node_modules/@simple-git/args-pathspec/dist/index.mjs"() {
|
|
35877
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35636
35878
|
t = /* @__PURE__ */ new WeakMap();
|
|
35637
35879
|
}
|
|
35638
35880
|
});
|
|
@@ -35641,6 +35883,7 @@ var init_dist = __esm({
|
|
|
35641
35883
|
var require_dist3 = __commonJS({
|
|
35642
35884
|
"node_modules/.pnpm/@kwsites+promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.js"(exports) {
|
|
35643
35885
|
"use strict";
|
|
35886
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35644
35887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35645
35888
|
exports.createDeferred = exports.deferred = void 0;
|
|
35646
35889
|
function deferred2() {
|
|
@@ -35958,6 +36201,7 @@ function te2(e, t2) {
|
|
|
35958
36201
|
var y, S, P2, E, x2, L2, R2, T2, q2, H2, _2;
|
|
35959
36202
|
var init_dist2 = __esm({
|
|
35960
36203
|
"node_modules/.pnpm/@simple-git+argv-parser@1.1.0/node_modules/@simple-git/argv-parser/dist/index.mjs"() {
|
|
36204
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
35961
36205
|
init_dist();
|
|
35962
36206
|
y = /* @__PURE__ */ new Set([
|
|
35963
36207
|
"--add",
|
|
@@ -37957,6 +38201,7 @@ function gitInstanceFactory(baseDir, options) {
|
|
|
37957
38201
|
var import_file_exists, import_debug, import_promise_deferred, import_promise_deferred2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __esm2, __commonJS2, __export2, __copyProps2, __toCommonJS2, GitError, init_git_error, GitResponseError, init_git_response_error, TaskConfigurationError, init_task_configuration_error, NULL, NOOP, objectToString, init_util3, filterArray, filterNumber, filterString, filterStringOrStringArray, filterHasLength, init_argument_filters, ExitCodes, init_exit_codes, GitOutputStreams, init_git_output_streams, LineParser, RemoteLineParser, init_line_parser, defaultOptions2, init_simple_git_options, init_task_options, init_task_parser, utils_exports, init_utils, check_is_repo_exports, CheckRepoActions, onError, parser, init_check_is_repo, CleanResponse, removalRegexp, dryRunRemovalRegexp, isFolderRegexp, init_CleanSummary, task_exports, EMPTY_COMMANDS, init_task, clean_exports, CONFIG_ERROR_INTERACTIVE_MODE, CONFIG_ERROR_MODE_REQUIRED, CONFIG_ERROR_UNKNOWN_OPTION, CleanOptions, CleanOptionValues, init_clean, ConfigList, init_ConfigList, GitConfigScope, init_config, DiffNameStatus, diffNameStatus, init_diff_name_status, disallowedOptions, Query, _a2, GrepQuery, init_grep, reset_exports, ResetMode, validResetModes, init_reset, init_git_logger, TasksPendingQueue, init_tasks_pending_queue, GitExecutorChain, init_git_executor_chain, git_executor_exports, GitExecutor, init_git_executor, init_task_callback, init_change_working_directory, init_checkout, parser2, init_count_objects, parsers, init_parse_commit, init_commit, init_first_commit, init_hash_object, InitSummary, initResponseRegex, reInitResponseRegex, init_InitSummary, bareCommand, init_init, logFormatRegex, init_log_format, DiffSummary, init_DiffSummary, statParser, numStatParser, nameOnlyParser, nameStatusParser, diffSummaryParsers, init_parse_diff_summary, START_BOUNDARY, COMMIT_BOUNDARY, SPLITTER, defaultFieldNames, init_parse_list_log_summary, diff_exports, init_diff, excludeOptions, init_log, MergeSummaryConflict, MergeSummaryDetail, init_MergeSummary, PullSummary, PullFailedSummary, init_PullSummary, remoteMessagesObjectParsers, init_parse_remote_objects, parsers2, RemoteMessageSummary, init_parse_remote_messages, FILE_UPDATE_REGEX, SUMMARY_REGEX, ACTION_REGEX, parsers3, errorParsers, parsePullDetail, parsePullResult, init_parse_pull, parsers4, parseMergeResult, parseMergeDetail, init_parse_merge, init_merge, parsers5, parsePushResult, parsePushDetail, init_parse_push, push_exports, init_push, init_show, fromPathRegex, FileStatusSummary, init_FileStatusSummary, StatusSummary, parsers6, parseStatusSummary, init_StatusSummary, ignoredOptions, init_status, NOT_INSTALLED, parsers7, init_version, cloneTask, cloneMirrorTask, init_clone, simple_git_api_exports, SimpleGitApi, init_simple_git_api, scheduler_exports, createScheduledTask, Scheduler, init_scheduler, apply_patch_exports, init_apply_patch, BranchDeletionBatch, init_BranchDeleteSummary, deleteSuccessRegex, deleteErrorRegex, parsers8, parseBranchDeletions, init_parse_branch_delete, BranchSummaryResult, init_BranchSummary, parsers9, currentBranchParser, init_parse_branch, branch_exports, init_branch, parseCheckIgnore, init_CheckIgnore, check_ignore_exports, init_check_ignore, parsers10, init_parse_fetch, fetch_exports, init_fetch, parsers11, init_parse_move, move_exports, init_move, pull_exports, init_pull, init_GetRemoteSummary, remote_exports, init_remote, stash_list_exports, init_stash_list, sub_module_exports, init_sub_module, TagList, parseTagList, init_TagList, tag_exports, init_tag, require_git, GitConstructError, GitPluginError, never2, WRONG_NUMBER_ERR, WRONG_CHARS_ERR, PluginStore, Git, simpleGit, esm_default;
|
|
37958
38202
|
var init_esm2 = __esm({
|
|
37959
38203
|
"node_modules/.pnpm/simple-git@3.36.0/node_modules/simple-git/dist/esm/index.js"() {
|
|
38204
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
37960
38205
|
import_file_exists = __toESM(require_dist2(), 1);
|
|
37961
38206
|
init_dist();
|
|
37962
38207
|
init_dist();
|
|
@@ -40580,7 +40825,7 @@ async function getCommitsSinceBatch(projectRoot, paths, since) {
|
|
|
40580
40825
|
// format ("fatal: invalid --pretty format: ___CTXLINT_COMMIT___").
|
|
40581
40826
|
`--format=%n${SENTINEL}`
|
|
40582
40827
|
]);
|
|
40583
|
-
const normalize3 = (p2) => p2.replace(/\\/g, "/");
|
|
40828
|
+
const normalize3 = (p2) => p2.replace(/\\/g, "/").replace(/^[A-Z]:/, "");
|
|
40584
40829
|
const requested = new Set(paths.map(normalize3));
|
|
40585
40830
|
const lines = raw.split("\n");
|
|
40586
40831
|
let inCommit = false;
|
|
@@ -40602,7 +40847,8 @@ async function getCommitsSinceBatch(projectRoot, paths, since) {
|
|
|
40602
40847
|
if (!trimmed2) continue;
|
|
40603
40848
|
const changed = normalize3(trimmed2);
|
|
40604
40849
|
for (const req of requested) {
|
|
40605
|
-
|
|
40850
|
+
const matchTarget = req.endsWith("/") ? req : req + "/";
|
|
40851
|
+
if (changed === req || changed.startsWith(matchTarget) && (changed.length === matchTarget.length || changed[matchTarget.length] === "/")) {
|
|
40606
40852
|
seenThisCommit.add(req);
|
|
40607
40853
|
}
|
|
40608
40854
|
}
|
|
@@ -40662,6 +40908,7 @@ var gitInstance, gitProjectRoot;
|
|
|
40662
40908
|
var init_git = __esm({
|
|
40663
40909
|
"src/utils/git.ts"() {
|
|
40664
40910
|
"use strict";
|
|
40911
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
40665
40912
|
init_esm2();
|
|
40666
40913
|
gitInstance = null;
|
|
40667
40914
|
gitProjectRoot = null;
|
|
@@ -40801,6 +41048,7 @@ async function checkGitTracked(filePath, projectRoot) {
|
|
|
40801
41048
|
var init_mcp_parser = __esm({
|
|
40802
41049
|
"src/core/mcp-parser.ts"() {
|
|
40803
41050
|
"use strict";
|
|
41051
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
40804
41052
|
init_fs();
|
|
40805
41053
|
init_git();
|
|
40806
41054
|
}
|
|
@@ -41147,6 +41395,7 @@ var CharacterCodes;
|
|
|
41147
41395
|
var init_scanner2 = __esm({
|
|
41148
41396
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js"() {
|
|
41149
41397
|
"use strict";
|
|
41398
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41150
41399
|
(function(CharacterCodes2) {
|
|
41151
41400
|
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
41152
41401
|
CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
|
|
@@ -41236,6 +41485,7 @@ var init_scanner2 = __esm({
|
|
|
41236
41485
|
var cachedSpaces, maxCachedValues, cachedBreakLinesWithSpaces;
|
|
41237
41486
|
var init_string_intern = __esm({
|
|
41238
41487
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js"() {
|
|
41488
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41239
41489
|
cachedSpaces = new Array(20).fill(0).map((_3, index) => {
|
|
41240
41490
|
return " ".repeat(index);
|
|
41241
41491
|
});
|
|
@@ -41271,6 +41521,7 @@ var init_string_intern = __esm({
|
|
|
41271
41521
|
var init_format = __esm({
|
|
41272
41522
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/format.js"() {
|
|
41273
41523
|
"use strict";
|
|
41524
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41274
41525
|
init_scanner2();
|
|
41275
41526
|
init_string_intern();
|
|
41276
41527
|
}
|
|
@@ -41686,6 +41937,7 @@ var ParseOptions;
|
|
|
41686
41937
|
var init_parser2 = __esm({
|
|
41687
41938
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js"() {
|
|
41688
41939
|
"use strict";
|
|
41940
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41689
41941
|
init_scanner2();
|
|
41690
41942
|
(function(ParseOptions2) {
|
|
41691
41943
|
ParseOptions2.DEFAULT = {
|
|
@@ -41699,6 +41951,7 @@ var init_parser2 = __esm({
|
|
|
41699
41951
|
var init_edit = __esm({
|
|
41700
41952
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/edit.js"() {
|
|
41701
41953
|
"use strict";
|
|
41954
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41702
41955
|
init_format();
|
|
41703
41956
|
init_parser2();
|
|
41704
41957
|
}
|
|
@@ -41709,6 +41962,7 @@ var ScanError, SyntaxKind, parseTree2, getNodeValue2, ParseErrorCode;
|
|
|
41709
41962
|
var init_main = __esm({
|
|
41710
41963
|
"node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js"() {
|
|
41711
41964
|
"use strict";
|
|
41965
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41712
41966
|
init_format();
|
|
41713
41967
|
init_edit();
|
|
41714
41968
|
init_scanner2();
|
|
@@ -41875,6 +42129,7 @@ var KNOWN_FIELDS;
|
|
|
41875
42129
|
var init_mcph_parser = __esm({
|
|
41876
42130
|
"src/core/mcph-parser.ts"() {
|
|
41877
42131
|
"use strict";
|
|
42132
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41878
42133
|
init_main();
|
|
41879
42134
|
init_fs();
|
|
41880
42135
|
init_git();
|
|
@@ -41891,6 +42146,7 @@ __export(mod_exports, {
|
|
|
41891
42146
|
var peq, myers_32, myers_x, distance, closest;
|
|
41892
42147
|
var init_mod = __esm({
|
|
41893
42148
|
"node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/esm/mod.js"() {
|
|
42149
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
41894
42150
|
peq = new Uint32Array(65536);
|
|
41895
42151
|
myers_32 = (a, b2) => {
|
|
41896
42152
|
const n7 = a.length;
|
|
@@ -42034,6 +42290,7 @@ var init_mod = __esm({
|
|
|
42034
42290
|
// node_modules/.pnpm/fast-levenshtein@3.0.0/node_modules/fast-levenshtein/levenshtein.js
|
|
42035
42291
|
var require_levenshtein = __commonJS({
|
|
42036
42292
|
"node_modules/.pnpm/fast-levenshtein@3.0.0/node_modules/fast-levenshtein/levenshtein.js"(exports, module) {
|
|
42293
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42037
42294
|
(function() {
|
|
42038
42295
|
"use strict";
|
|
42039
42296
|
var collator;
|
|
@@ -42218,6 +42475,7 @@ var import_fast_levenshtein, levenshtein, cachedProjectFiles;
|
|
|
42218
42475
|
var init_paths = __esm({
|
|
42219
42476
|
"src/core/checks/paths.ts"() {
|
|
42220
42477
|
"use strict";
|
|
42478
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42221
42479
|
import_fast_levenshtein = __toESM(require_levenshtein(), 1);
|
|
42222
42480
|
init_index_min();
|
|
42223
42481
|
init_fs();
|
|
@@ -42376,6 +42634,7 @@ var NPM_SCRIPT_PATTERN, MAKE_PATTERN;
|
|
|
42376
42634
|
var init_commands = __esm({
|
|
42377
42635
|
"src/core/checks/commands.ts"() {
|
|
42378
42636
|
"use strict";
|
|
42637
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42379
42638
|
init_fs();
|
|
42380
42639
|
NPM_SCRIPT_PATTERN = /^(?:npm\s+run|pnpm(?:\s+run)?|yarn(?:\s+run)?|bun(?:\s+run)?)\s+(\S+)/;
|
|
42381
42640
|
MAKE_PATTERN = /^make\s+(\S+)/;
|
|
@@ -42436,6 +42695,7 @@ var WARNING_DAYS, INFO_DAYS;
|
|
|
42436
42695
|
var init_staleness = __esm({
|
|
42437
42696
|
"src/core/checks/staleness.ts"() {
|
|
42438
42697
|
"use strict";
|
|
42698
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42439
42699
|
init_git();
|
|
42440
42700
|
WARNING_DAYS = 30;
|
|
42441
42701
|
INFO_DAYS = 14;
|
|
@@ -42504,6 +42764,7 @@ var DEFAULT_TOKEN_THRESHOLDS;
|
|
|
42504
42764
|
var init_tokens2 = __esm({
|
|
42505
42765
|
"src/core/checks/tokens.ts"() {
|
|
42506
42766
|
"use strict";
|
|
42767
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42507
42768
|
DEFAULT_TOKEN_THRESHOLDS = {
|
|
42508
42769
|
info: 1e3,
|
|
42509
42770
|
warning: 3e3,
|
|
@@ -42684,6 +42945,7 @@ var ALWAYS_LOADED_NAMES, TOP_SECTIONS_TO_REPORT, INVIOLABLE_WITH_COMMAND;
|
|
|
42684
42945
|
var init_tier_tokens = __esm({
|
|
42685
42946
|
"src/core/checks/tier-tokens.ts"() {
|
|
42686
42947
|
"use strict";
|
|
42948
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42687
42949
|
init_tokens();
|
|
42688
42950
|
init_fs();
|
|
42689
42951
|
init_tokens2();
|
|
@@ -42735,6 +42997,7 @@ function toLineSet(text, minTokenLen) {
|
|
|
42735
42997
|
var init_similarity = __esm({
|
|
42736
42998
|
"src/utils/similarity.ts"() {
|
|
42737
42999
|
"use strict";
|
|
43000
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42738
43001
|
}
|
|
42739
43002
|
});
|
|
42740
43003
|
|
|
@@ -42864,6 +43127,7 @@ var PACKAGE_TECH_MAP, compiledPatternsCache, DUPLICATE_CONTENT_THRESHOLD, DUPLIC
|
|
|
42864
43127
|
var init_redundancy = __esm({
|
|
42865
43128
|
"src/core/checks/redundancy.ts"() {
|
|
42866
43129
|
"use strict";
|
|
43130
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
42867
43131
|
init_fs();
|
|
42868
43132
|
init_similarity();
|
|
42869
43133
|
init_tokens();
|
|
@@ -43042,6 +43306,7 @@ var DIRECTIVE_CATEGORIES;
|
|
|
43042
43306
|
var init_contradictions = __esm({
|
|
43043
43307
|
"src/core/checks/contradictions.ts"() {
|
|
43044
43308
|
"use strict";
|
|
43309
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43045
43310
|
DIRECTIVE_CATEGORIES = [
|
|
43046
43311
|
{
|
|
43047
43312
|
name: "testing framework",
|
|
@@ -43458,6 +43723,7 @@ var VALID_WINDSURF_TRIGGERS;
|
|
|
43458
43723
|
var init_frontmatter = __esm({
|
|
43459
43724
|
"src/core/checks/frontmatter.ts"() {
|
|
43460
43725
|
"use strict";
|
|
43726
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43461
43727
|
VALID_WINDSURF_TRIGGERS = ["always_on", "glob", "manual", "model", "model_decision"];
|
|
43462
43728
|
}
|
|
43463
43729
|
});
|
|
@@ -43580,6 +43846,7 @@ function findKeyLine(content, key) {
|
|
|
43580
43846
|
var init_schema = __esm({
|
|
43581
43847
|
"src/core/checks/mcp/schema.ts"() {
|
|
43582
43848
|
"use strict";
|
|
43849
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43583
43850
|
}
|
|
43584
43851
|
});
|
|
43585
43852
|
|
|
@@ -43695,6 +43962,7 @@ var API_KEY_PATTERNS, ENV_VAR_REF, HIGH_ENTROPY_PATTERN, URL_SECRET_PARAMS, SECR
|
|
|
43695
43962
|
var init_security = __esm({
|
|
43696
43963
|
"src/core/checks/mcp/security.ts"() {
|
|
43697
43964
|
"use strict";
|
|
43965
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43698
43966
|
API_KEY_PATTERNS = [
|
|
43699
43967
|
/sk-[a-zA-Z0-9]{20,}/,
|
|
43700
43968
|
// OpenAI / generic
|
|
@@ -43801,6 +44069,7 @@ var LOCAL_PATH_PATTERN, FILE_PATH_PATTERN, URL_PREFIX;
|
|
|
43801
44069
|
var init_commands2 = __esm({
|
|
43802
44070
|
"src/core/checks/mcp/commands.ts"() {
|
|
43803
44071
|
"use strict";
|
|
44072
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43804
44073
|
LOCAL_PATH_PATTERN = /^\.\.?\//;
|
|
43805
44074
|
FILE_PATH_PATTERN = /^[^-].*\/.*\.\w+$/;
|
|
43806
44075
|
URL_PREFIX = /^(https?|file|s3|gs|ssh|git):\/\//i;
|
|
@@ -43864,6 +44133,7 @@ function findTypeLine(content, serverName) {
|
|
|
43864
44133
|
var init_deprecated = __esm({
|
|
43865
44134
|
"src/core/checks/mcp/deprecated.ts"() {
|
|
43866
44135
|
"use strict";
|
|
44136
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
43867
44137
|
}
|
|
43868
44138
|
});
|
|
43869
44139
|
|
|
@@ -44000,6 +44270,7 @@ var HAS_CURSOR_SYNTAX, HAS_CLAUDE_SYNTAX, HAS_CONTINUE_SYNTAX, ANY_ENV_REF;
|
|
|
44000
44270
|
var init_env = __esm({
|
|
44001
44271
|
"src/core/checks/mcp/env.ts"() {
|
|
44002
44272
|
"use strict";
|
|
44273
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44003
44274
|
HAS_CURSOR_SYNTAX = /\$\{env:[^}]+\}/;
|
|
44004
44275
|
HAS_CLAUDE_SYNTAX = /\$\{[A-Za-z_][A-Za-z0-9_]*(?::-.*)?\}/;
|
|
44005
44276
|
HAS_CONTINUE_SYNTAX = /\$\{\{\s*secrets\.[^}]+\}\}/;
|
|
@@ -44052,6 +44323,7 @@ var ENV_VAR_REF2;
|
|
|
44052
44323
|
var init_urls = __esm({
|
|
44053
44324
|
"src/core/checks/mcp/urls.ts"() {
|
|
44054
44325
|
"use strict";
|
|
44326
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44055
44327
|
ENV_VAR_REF2 = /\$\{[^}]+\}/;
|
|
44056
44328
|
}
|
|
44057
44329
|
});
|
|
@@ -44203,6 +44475,7 @@ function checkSingleFileIssues(configs) {
|
|
|
44203
44475
|
var init_consistency = __esm({
|
|
44204
44476
|
"src/core/checks/mcp/consistency.ts"() {
|
|
44205
44477
|
"use strict";
|
|
44478
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44206
44479
|
}
|
|
44207
44480
|
});
|
|
44208
44481
|
|
|
@@ -44258,6 +44531,7 @@ async function checkMcpRedundancy(configs) {
|
|
|
44258
44531
|
var init_redundancy2 = __esm({
|
|
44259
44532
|
"src/core/checks/mcp/redundancy.ts"() {
|
|
44260
44533
|
"use strict";
|
|
44534
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44261
44535
|
}
|
|
44262
44536
|
});
|
|
44263
44537
|
|
|
@@ -44314,6 +44588,7 @@ var TOKEN_PATTERN, EXPORT_EXAMPLES;
|
|
|
44314
44588
|
var init_token_security = __esm({
|
|
44315
44589
|
"src/core/checks/mcph/token-security.ts"() {
|
|
44316
44590
|
"use strict";
|
|
44591
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44317
44592
|
TOKEN_PATTERN = /^mcp_pat_[A-Za-z0-9_-]+$/;
|
|
44318
44593
|
EXPORT_EXAMPLES = [
|
|
44319
44594
|
' bash/zsh: export MCPH_TOKEN="mcp_pat_***"',
|
|
@@ -44365,6 +44640,7 @@ var PRIVATE_HOST_PATTERNS;
|
|
|
44365
44640
|
var init_apibase = __esm({
|
|
44366
44641
|
"src/core/checks/mcph/apibase.ts"() {
|
|
44367
44642
|
"use strict";
|
|
44643
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44368
44644
|
PRIVATE_HOST_PATTERNS = [
|
|
44369
44645
|
/^localhost$/i,
|
|
44370
44646
|
/^127\./,
|
|
@@ -44412,6 +44688,7 @@ var CURRENT_SCHEMA_VERSION;
|
|
|
44412
44688
|
var init_schema_conformance = __esm({
|
|
44413
44689
|
"src/core/checks/mcph/schema-conformance.ts"() {
|
|
44414
44690
|
"use strict";
|
|
44691
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44415
44692
|
CURRENT_SCHEMA_VERSION = 1;
|
|
44416
44693
|
}
|
|
44417
44694
|
});
|
|
@@ -44459,6 +44736,7 @@ async function checkMcphLists(config2, _projectRoot) {
|
|
|
44459
44736
|
var init_lists = __esm({
|
|
44460
44737
|
"src/core/checks/mcph/lists.ts"() {
|
|
44461
44738
|
"use strict";
|
|
44739
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44462
44740
|
}
|
|
44463
44741
|
});
|
|
44464
44742
|
|
|
@@ -44482,11 +44760,25 @@ async function checkMcphGitignore(config2, _projectRoot) {
|
|
|
44482
44760
|
var init_gitignore = __esm({
|
|
44483
44761
|
"src/core/checks/mcph/gitignore.ts"() {
|
|
44484
44762
|
"use strict";
|
|
44763
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44485
44764
|
}
|
|
44486
44765
|
});
|
|
44487
44766
|
|
|
44488
44767
|
// src/core/session-parser.ts
|
|
44489
44768
|
import { readFile } from "node:fs/promises";
|
|
44769
|
+
import { readFileSync as readFileSync5 } from "node:fs";
|
|
44770
|
+
import { dirname as dirname2, resolve as resolve4 } from "node:path";
|
|
44771
|
+
import { fileURLToPath } from "node:url";
|
|
44772
|
+
function loadWebFirstSegments() {
|
|
44773
|
+
if (typeof define_WEB_FIRST_SEGMENTS_default !== "undefined") {
|
|
44774
|
+
return new Set(define_WEB_FIRST_SEGMENTS_default);
|
|
44775
|
+
}
|
|
44776
|
+
const __dir = dirname2(fileURLToPath(import.meta.url));
|
|
44777
|
+
const fixturePath = resolve4(__dir, "../../tests/fixtures/web-first-segments.json");
|
|
44778
|
+
const raw = JSON.parse(readFileSync5(fixturePath, "utf-8"));
|
|
44779
|
+
const list = Array.isArray(raw) ? raw : raw.segments;
|
|
44780
|
+
return new Set(list);
|
|
44781
|
+
}
|
|
44490
44782
|
function encodeProjectDir(fsPath) {
|
|
44491
44783
|
return fsPath.replace(/[:\\/\.]/g, "-");
|
|
44492
44784
|
}
|
|
@@ -44494,21 +44786,47 @@ function projectDirMatchesPath(encodedDir, fsPath) {
|
|
|
44494
44786
|
const normalized = fsPath.replace(/\\/g, "/");
|
|
44495
44787
|
return encodedDir === encodeProjectDir(normalized);
|
|
44496
44788
|
}
|
|
44497
|
-
function
|
|
44498
|
-
|
|
44789
|
+
function classifyPath(p2, contextHints) {
|
|
44790
|
+
if (/^~(?:\d|[A-Z](?=[a-z]?(?:x|\b)))/.test(p2)) return "approximation";
|
|
44791
|
+
if (/<[^>]+>|\{\{[^}]+\}\}/.test(p2)) return "template";
|
|
44792
|
+
if (p2.startsWith("/")) {
|
|
44793
|
+
const hasExt = /\.[a-zA-Z0-9]{1,8}$/.test(p2);
|
|
44794
|
+
if (!hasExt) {
|
|
44795
|
+
const firstSeg = p2.slice(1).split("/")[0];
|
|
44796
|
+
if (WEB_FIRST_SEGMENTS.has(firstSeg)) return "url-path";
|
|
44797
|
+
if (contextHints?.baseUrls?.length) return "url-path";
|
|
44798
|
+
}
|
|
44799
|
+
}
|
|
44800
|
+
if (/^\/[a-z][a-z0-9_-]*$/.test(p2)) return "slash-command";
|
|
44801
|
+
return "fs-path";
|
|
44802
|
+
}
|
|
44803
|
+
function extractPathsClassified(content) {
|
|
44804
|
+
const baseUrls = [...content.matchAll(/https?:\/\/[^\s'"`)]+/g)].map((m) => m[0]);
|
|
44805
|
+
const hints = { baseUrls };
|
|
44806
|
+
const candidates = [];
|
|
44499
44807
|
for (const match of content.matchAll(PATH_PATTERN2)) {
|
|
44500
44808
|
const p2 = match[1].replace(/[)}\]]+$/, "");
|
|
44501
44809
|
if (p2.length > 2 && !p2.startsWith("http") && !p2.startsWith("//")) {
|
|
44502
|
-
|
|
44810
|
+
candidates.push(p2);
|
|
44503
44811
|
}
|
|
44504
44812
|
}
|
|
44505
44813
|
for (const match of content.matchAll(BARE_FILE_PATH)) {
|
|
44506
44814
|
const p2 = match[1].replace(/[)}\]]+$/, "");
|
|
44507
44815
|
if (p2.length > 2 && !p2.startsWith("http")) {
|
|
44508
|
-
|
|
44816
|
+
candidates.push(p2);
|
|
44509
44817
|
}
|
|
44510
44818
|
}
|
|
44511
|
-
|
|
44819
|
+
const seen = /* @__PURE__ */ new Set();
|
|
44820
|
+
const out = [];
|
|
44821
|
+
for (const value of candidates) {
|
|
44822
|
+
if (seen.has(value)) continue;
|
|
44823
|
+
seen.add(value);
|
|
44824
|
+
out.push({ value, class: classifyPath(value, hints) });
|
|
44825
|
+
}
|
|
44826
|
+
return out;
|
|
44827
|
+
}
|
|
44828
|
+
function extractPaths(content) {
|
|
44829
|
+
return extractPathsClassified(content).filter((c3) => c3.class === "fs-path").map((c3) => c3.value);
|
|
44512
44830
|
}
|
|
44513
44831
|
function parseFrontmatter2(content) {
|
|
44514
44832
|
const lines = content.split("\n");
|
|
@@ -44550,11 +44868,13 @@ async function parseMemoryFile(filePath, projectDir) {
|
|
|
44550
44868
|
referencedPaths
|
|
44551
44869
|
};
|
|
44552
44870
|
}
|
|
44553
|
-
var PATH_PATTERN2, BARE_FILE_PATH;
|
|
44871
|
+
var WEB_FIRST_SEGMENTS, PATH_PATTERN2, BARE_FILE_PATH;
|
|
44554
44872
|
var init_session_parser = __esm({
|
|
44555
44873
|
"src/core/session-parser.ts"() {
|
|
44556
44874
|
"use strict";
|
|
44875
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44557
44876
|
init_fs();
|
|
44877
|
+
WEB_FIRST_SEGMENTS = loadWebFirstSegments();
|
|
44558
44878
|
PATH_PATTERN2 = /(?:^|\s|['"`(])([.~/][^\s'"`),;:!?]+)/g;
|
|
44559
44879
|
BARE_FILE_PATH = /(?:^|[\s`"'(])([\w][\w-]*(?:\/[\w.-]+)+\.[a-zA-Z0-9]{1,8})\b/g;
|
|
44560
44880
|
}
|
|
@@ -44564,7 +44884,7 @@ var init_session_parser = __esm({
|
|
|
44564
44884
|
import { readdir, stat } from "node:fs/promises";
|
|
44565
44885
|
import { createReadStream } from "node:fs";
|
|
44566
44886
|
import { createInterface } from "node:readline";
|
|
44567
|
-
import { dirname as
|
|
44887
|
+
import { dirname as dirname3, join as join5, resolve as resolve5 } from "node:path";
|
|
44568
44888
|
import { existsSync } from "node:fs";
|
|
44569
44889
|
function detectProviders() {
|
|
44570
44890
|
if (!home) return [];
|
|
@@ -44659,7 +44979,7 @@ function detectAiderInSiblings(siblings) {
|
|
|
44659
44979
|
return null;
|
|
44660
44980
|
}
|
|
44661
44981
|
async function detectSiblings(projectRoot) {
|
|
44662
|
-
const parentDir =
|
|
44982
|
+
const parentDir = dirname3(resolve5(projectRoot));
|
|
44663
44983
|
let entries;
|
|
44664
44984
|
try {
|
|
44665
44985
|
entries = await readdir(parentDir);
|
|
@@ -44670,8 +44990,8 @@ async function detectSiblings(projectRoot) {
|
|
|
44670
44990
|
for (const entry of entries) {
|
|
44671
44991
|
if (entry.startsWith(".") || entry === "node_modules") continue;
|
|
44672
44992
|
const fullPath = join5(parentDir, entry);
|
|
44673
|
-
const entryPath =
|
|
44674
|
-
if (entryPath ===
|
|
44993
|
+
const entryPath = resolve5(fullPath);
|
|
44994
|
+
if (entryPath === resolve5(projectRoot)) continue;
|
|
44675
44995
|
try {
|
|
44676
44996
|
const s = await stat(fullPath);
|
|
44677
44997
|
if (!s.isDirectory()) continue;
|
|
@@ -44734,7 +45054,7 @@ async function scanSessionData(projectRoot) {
|
|
|
44734
45054
|
history: histories,
|
|
44735
45055
|
memories,
|
|
44736
45056
|
siblings,
|
|
44737
|
-
currentProject:
|
|
45057
|
+
currentProject: resolve5(projectRoot).replace(/\\/g, "/"),
|
|
44738
45058
|
providers
|
|
44739
45059
|
};
|
|
44740
45060
|
}
|
|
@@ -44742,6 +45062,7 @@ var home, AGENT_DIRS;
|
|
|
44742
45062
|
var init_session_scanner = __esm({
|
|
44743
45063
|
"src/core/session-scanner.ts"() {
|
|
44744
45064
|
"use strict";
|
|
45065
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44745
45066
|
init_esm2();
|
|
44746
45067
|
init_session_parser();
|
|
44747
45068
|
home = process.env.HOME || process.env.USERPROFILE || "";
|
|
@@ -44767,9 +45088,9 @@ var init_session_scanner = __esm({
|
|
|
44767
45088
|
});
|
|
44768
45089
|
|
|
44769
45090
|
// src/core/checks/session/missing-secret.ts
|
|
44770
|
-
import { resolve as
|
|
45091
|
+
import { resolve as resolve6, basename as basename3 } from "node:path";
|
|
44771
45092
|
function normalizePath(p2) {
|
|
44772
|
-
return
|
|
45093
|
+
return resolve6(p2).replace(/\\/g, "/").toLowerCase();
|
|
44773
45094
|
}
|
|
44774
45095
|
async function checkMissingSecret(ctx) {
|
|
44775
45096
|
const issues = [];
|
|
@@ -44828,6 +45149,7 @@ var SECRET_SET_PATTERN, SECRET_SET_SIMPLE;
|
|
|
44828
45149
|
var init_missing_secret = __esm({
|
|
44829
45150
|
"src/core/checks/session/missing-secret.ts"() {
|
|
44830
45151
|
"use strict";
|
|
45152
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44831
45153
|
SECRET_SET_PATTERN = /gh\s+secret\s+set\s+(\S+)\s+(?:--repo\s+(\S+)|.*-b\s+)/;
|
|
44832
45154
|
SECRET_SET_SIMPLE = /gh\s+secret\s+set\s+(\S+)/;
|
|
44833
45155
|
}
|
|
@@ -44906,6 +45228,7 @@ var CANONICAL_FILES, MIN_TOKEN_LEN, CACHE_MAX_ENTRIES, lineSetCache;
|
|
|
44906
45228
|
var init_diverged_file = __esm({
|
|
44907
45229
|
"src/core/checks/session/diverged-file.ts"() {
|
|
44908
45230
|
"use strict";
|
|
45231
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44909
45232
|
init_similarity();
|
|
44910
45233
|
init_fs();
|
|
44911
45234
|
CANONICAL_FILES = [
|
|
@@ -44976,20 +45299,21 @@ async function checkMissingWorkflow(ctx) {
|
|
|
44976
45299
|
var init_missing_workflow = __esm({
|
|
44977
45300
|
"src/core/checks/session/missing-workflow.ts"() {
|
|
44978
45301
|
"use strict";
|
|
45302
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
44979
45303
|
}
|
|
44980
45304
|
});
|
|
44981
45305
|
|
|
44982
45306
|
// src/core/checks/session/stale-memory.ts
|
|
44983
45307
|
import { existsSync as existsSync4 } from "node:fs";
|
|
44984
|
-
import { resolve as
|
|
45308
|
+
import { resolve as resolve7, isAbsolute } from "node:path";
|
|
44985
45309
|
function resolveRef2(ref, projectRoot) {
|
|
44986
45310
|
if (ref.startsWith("~/") || ref === "~") {
|
|
44987
45311
|
const home2 = process.env.HOME || process.env.USERPROFILE;
|
|
44988
45312
|
if (!home2) return null;
|
|
44989
|
-
return ref === "~" ? home2 :
|
|
45313
|
+
return ref === "~" ? home2 : resolve7(home2, ref.slice(2));
|
|
44990
45314
|
}
|
|
44991
45315
|
if (isAbsolute(ref)) return ref;
|
|
44992
|
-
return
|
|
45316
|
+
return resolve7(projectRoot, ref);
|
|
44993
45317
|
}
|
|
44994
45318
|
async function checkStaleMemory(ctx) {
|
|
44995
45319
|
const issues = [];
|
|
@@ -45023,6 +45347,7 @@ async function checkStaleMemory(ctx) {
|
|
|
45023
45347
|
var init_stale_memory = __esm({
|
|
45024
45348
|
"src/core/checks/session/stale-memory.ts"() {
|
|
45025
45349
|
"use strict";
|
|
45350
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45026
45351
|
init_session_parser();
|
|
45027
45352
|
}
|
|
45028
45353
|
});
|
|
@@ -45067,6 +45392,7 @@ var MIN_TOKEN_LEN2;
|
|
|
45067
45392
|
var init_duplicate_memory = __esm({
|
|
45068
45393
|
"src/core/checks/session/duplicate-memory.ts"() {
|
|
45069
45394
|
"use strict";
|
|
45395
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45070
45396
|
init_session_parser();
|
|
45071
45397
|
init_similarity();
|
|
45072
45398
|
MIN_TOKEN_LEN2 = 5;
|
|
@@ -45074,9 +45400,9 @@ var init_duplicate_memory = __esm({
|
|
|
45074
45400
|
});
|
|
45075
45401
|
|
|
45076
45402
|
// src/core/checks/session/loop-detection.ts
|
|
45077
|
-
import { resolve as
|
|
45403
|
+
import { resolve as resolve8 } from "node:path";
|
|
45078
45404
|
function normalizeProject(p2) {
|
|
45079
|
-
return
|
|
45405
|
+
return resolve8(p2).replace(/\\/g, "/");
|
|
45080
45406
|
}
|
|
45081
45407
|
function findConsecutiveRepeats(displays) {
|
|
45082
45408
|
const results = [];
|
|
@@ -45158,6 +45484,7 @@ var CONSECUTIVE_THRESHOLD, CYCLE_REPEAT_THRESHOLD, MAX_CYCLE_LENGTH, MAX_HISTORY
|
|
|
45158
45484
|
var init_loop_detection = __esm({
|
|
45159
45485
|
"src/core/checks/session/loop-detection.ts"() {
|
|
45160
45486
|
"use strict";
|
|
45487
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45161
45488
|
CONSECUTIVE_THRESHOLD = 3;
|
|
45162
45489
|
CYCLE_REPEAT_THRESHOLD = 2;
|
|
45163
45490
|
MAX_CYCLE_LENGTH = 3;
|
|
@@ -45214,6 +45541,7 @@ var MAX_LINES, MAX_BYTES;
|
|
|
45214
45541
|
var init_memory_index_overflow = __esm({
|
|
45215
45542
|
"src/core/checks/session/memory-index-overflow.ts"() {
|
|
45216
45543
|
"use strict";
|
|
45544
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45217
45545
|
init_session_parser();
|
|
45218
45546
|
init_fs();
|
|
45219
45547
|
MAX_LINES = 200;
|
|
@@ -45279,6 +45607,7 @@ var RELEASE_FILENAME_PATTERNS, RELEASE_DOC_PATTERNS;
|
|
|
45279
45607
|
var init_ci_coverage = __esm({
|
|
45280
45608
|
"src/core/checks/ci-coverage.ts"() {
|
|
45281
45609
|
"use strict";
|
|
45610
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45282
45611
|
init_fs();
|
|
45283
45612
|
RELEASE_FILENAME_PATTERNS = [/release/i, /deploy/i, /publish/i, /\bcd\b/i];
|
|
45284
45613
|
RELEASE_DOC_PATTERNS = [
|
|
@@ -45355,6 +45684,7 @@ var BUILTIN_SECRETS, SECRETS_REGEX;
|
|
|
45355
45684
|
var init_ci_secrets = __esm({
|
|
45356
45685
|
"src/core/checks/ci-secrets.ts"() {
|
|
45357
45686
|
"use strict";
|
|
45687
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45358
45688
|
init_fs();
|
|
45359
45689
|
BUILTIN_SECRETS = /* @__PURE__ */ new Set([
|
|
45360
45690
|
"GITHUB_TOKEN",
|
|
@@ -45490,6 +45820,7 @@ var PATTERNS, PRIVATE_KEY_HEADER, PLACEHOLDER_TOKENS, COMMENT_PREFIX, ILLUSTRATI
|
|
|
45490
45820
|
var init_content_secrets = __esm({
|
|
45491
45821
|
"src/core/checks/content-secrets.ts"() {
|
|
45492
45822
|
"use strict";
|
|
45823
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45493
45824
|
PATTERNS = [
|
|
45494
45825
|
// AWS access key (long-lived) -- AKIA prefix + 16 uppercase alphanum chars.
|
|
45495
45826
|
{
|
|
@@ -45595,21 +45926,87 @@ var init_content_secrets = __esm({
|
|
|
45595
45926
|
}
|
|
45596
45927
|
});
|
|
45597
45928
|
|
|
45929
|
+
// src/core/ignore-rules.ts
|
|
45930
|
+
function compileRules(rules) {
|
|
45931
|
+
return rules.map((r2) => ({
|
|
45932
|
+
check: r2.check,
|
|
45933
|
+
match: r2.match ? new RegExp(r2.match) : void 0,
|
|
45934
|
+
pathPattern: r2.pathPattern ? new RegExp(r2.pathPattern) : void 0,
|
|
45935
|
+
reason: r2.reason,
|
|
45936
|
+
fired: false,
|
|
45937
|
+
matchSource: r2.match,
|
|
45938
|
+
pathPatternSource: r2.pathPattern
|
|
45939
|
+
}));
|
|
45940
|
+
}
|
|
45941
|
+
function extractPathsFromMessage(msg) {
|
|
45942
|
+
const idx = msg.lastIndexOf(": ");
|
|
45943
|
+
if (idx === -1) return [];
|
|
45944
|
+
return msg.slice(idx + 2).split(", ").map((s) => s.trim()).filter(Boolean);
|
|
45945
|
+
}
|
|
45946
|
+
function applyIgnoreRules(issues, rules) {
|
|
45947
|
+
const compiled = compileRules(rules);
|
|
45948
|
+
const kept = [];
|
|
45949
|
+
let dropped = 0;
|
|
45950
|
+
for (const issue2 of issues) {
|
|
45951
|
+
let suppress = false;
|
|
45952
|
+
for (const rule of compiled) {
|
|
45953
|
+
if (rule.check !== issue2.check) continue;
|
|
45954
|
+
if (rule.pathPattern) {
|
|
45955
|
+
if (issue2.check !== "session-stale-memory") continue;
|
|
45956
|
+
const paths = extractPathsFromMessage(issue2.message);
|
|
45957
|
+
if (paths.length === 0) continue;
|
|
45958
|
+
const allMatch = paths.every((p2) => rule.pathPattern.test(p2));
|
|
45959
|
+
if (!allMatch) continue;
|
|
45960
|
+
}
|
|
45961
|
+
if (rule.match && !rule.match.test(issue2.message)) continue;
|
|
45962
|
+
suppress = true;
|
|
45963
|
+
rule.fired = true;
|
|
45964
|
+
break;
|
|
45965
|
+
}
|
|
45966
|
+
if (suppress) {
|
|
45967
|
+
dropped++;
|
|
45968
|
+
} else {
|
|
45969
|
+
kept.push(issue2);
|
|
45970
|
+
}
|
|
45971
|
+
}
|
|
45972
|
+
return {
|
|
45973
|
+
kept,
|
|
45974
|
+
dropped,
|
|
45975
|
+
unusedRules: compiled.filter((r2) => !r2.fired).map(stripCompiled),
|
|
45976
|
+
rulesMissingReason: rules.filter((r2) => !r2.reason)
|
|
45977
|
+
};
|
|
45978
|
+
}
|
|
45979
|
+
function stripCompiled(r2) {
|
|
45980
|
+
return {
|
|
45981
|
+
check: r2.check,
|
|
45982
|
+
match: r2.matchSource,
|
|
45983
|
+
pathPattern: r2.pathPatternSource,
|
|
45984
|
+
reason: r2.reason
|
|
45985
|
+
};
|
|
45986
|
+
}
|
|
45987
|
+
var init_ignore_rules = __esm({
|
|
45988
|
+
"src/core/ignore-rules.ts"() {
|
|
45989
|
+
"use strict";
|
|
45990
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45991
|
+
}
|
|
45992
|
+
});
|
|
45993
|
+
|
|
45598
45994
|
// src/version.ts
|
|
45599
|
-
import { readFileSync as
|
|
45600
|
-
import { resolve as
|
|
45601
|
-
import { fileURLToPath } from "node:url";
|
|
45995
|
+
import { readFileSync as readFileSync6 } from "node:fs";
|
|
45996
|
+
import { resolve as resolve9, dirname as dirname4 } from "node:path";
|
|
45997
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
45602
45998
|
function loadVersion() {
|
|
45603
|
-
if (true) return "0.
|
|
45604
|
-
const __dir =
|
|
45605
|
-
const pkgPath =
|
|
45606
|
-
const pkg = JSON.parse(
|
|
45999
|
+
if (true) return "0.12.0";
|
|
46000
|
+
const __dir = dirname4(fileURLToPath2(import.meta.url));
|
|
46001
|
+
const pkgPath = resolve9(__dir, "../package.json");
|
|
46002
|
+
const pkg = JSON.parse(readFileSync6(pkgPath, "utf-8"));
|
|
45607
46003
|
return pkg.version;
|
|
45608
46004
|
}
|
|
45609
46005
|
var VERSION;
|
|
45610
46006
|
var init_version2 = __esm({
|
|
45611
46007
|
"src/version.ts"() {
|
|
45612
46008
|
"use strict";
|
|
46009
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45613
46010
|
VERSION = loadVersion();
|
|
45614
46011
|
}
|
|
45615
46012
|
});
|
|
@@ -45862,6 +46259,31 @@ async function runAudit(projectRoot, activeChecks, options = {}) {
|
|
|
45862
46259
|
});
|
|
45863
46260
|
}
|
|
45864
46261
|
}
|
|
46262
|
+
let ignoreReport;
|
|
46263
|
+
if (options.ignoreRules && options.ignoreRules.length > 0) {
|
|
46264
|
+
const flat = [];
|
|
46265
|
+
const owners = [];
|
|
46266
|
+
fileResults.forEach((fr, idx) => {
|
|
46267
|
+
for (const issue2 of fr.issues) {
|
|
46268
|
+
flat.push(issue2);
|
|
46269
|
+
owners.push(idx);
|
|
46270
|
+
}
|
|
46271
|
+
});
|
|
46272
|
+
const applied = applyIgnoreRules(flat, options.ignoreRules);
|
|
46273
|
+
const keptSet = new Set(applied.kept);
|
|
46274
|
+
const rebuilt = fileResults.map(() => []);
|
|
46275
|
+
flat.forEach((issue2, i2) => {
|
|
46276
|
+
if (keptSet.has(issue2)) rebuilt[owners[i2]].push(issue2);
|
|
46277
|
+
});
|
|
46278
|
+
fileResults.forEach((fr, idx) => {
|
|
46279
|
+
fr.issues = rebuilt[idx];
|
|
46280
|
+
});
|
|
46281
|
+
ignoreReport = {
|
|
46282
|
+
dropped: applied.dropped,
|
|
46283
|
+
unusedRules: applied.unusedRules,
|
|
46284
|
+
rulesMissingReason: applied.rulesMissingReason
|
|
46285
|
+
};
|
|
46286
|
+
}
|
|
45865
46287
|
let estimatedWaste = 0;
|
|
45866
46288
|
for (const fr of fileResults) {
|
|
45867
46289
|
for (const issue2 of fr.issues) {
|
|
@@ -45871,7 +46293,7 @@ async function runAudit(projectRoot, activeChecks, options = {}) {
|
|
|
45871
46293
|
}
|
|
45872
46294
|
}
|
|
45873
46295
|
}
|
|
45874
|
-
|
|
46296
|
+
const result = {
|
|
45875
46297
|
version: VERSION,
|
|
45876
46298
|
scannedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
45877
46299
|
projectRoot,
|
|
@@ -45893,11 +46315,16 @@ async function runAudit(projectRoot, activeChecks, options = {}) {
|
|
|
45893
46315
|
estimatedWaste
|
|
45894
46316
|
}
|
|
45895
46317
|
};
|
|
46318
|
+
if (ignoreReport) {
|
|
46319
|
+
result._meta = { ignoreReport };
|
|
46320
|
+
}
|
|
46321
|
+
return result;
|
|
45896
46322
|
}
|
|
45897
46323
|
var ALL_CHECKS, ALL_MCP_CHECKS, ALL_MCPH_CHECKS, ALL_SESSION_CHECKS;
|
|
45898
46324
|
var init_audit = __esm({
|
|
45899
46325
|
"src/core/audit.ts"() {
|
|
45900
46326
|
"use strict";
|
|
46327
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
45901
46328
|
init_scanner();
|
|
45902
46329
|
init_parser();
|
|
45903
46330
|
init_mcp_parser();
|
|
@@ -45935,6 +46362,7 @@ var init_audit = __esm({
|
|
|
45935
46362
|
init_ci_coverage();
|
|
45936
46363
|
init_ci_secrets();
|
|
45937
46364
|
init_content_secrets();
|
|
46365
|
+
init_ignore_rules();
|
|
45938
46366
|
init_version2();
|
|
45939
46367
|
ALL_CHECKS = [
|
|
45940
46368
|
"paths",
|
|
@@ -46096,6 +46524,7 @@ function assembleStyles() {
|
|
|
46096
46524
|
var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
46097
46525
|
var init_ansi_styles = __esm({
|
|
46098
46526
|
"node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
|
|
46527
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46099
46528
|
ANSI_BACKGROUND_OFFSET = 10;
|
|
46100
46529
|
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
46101
46530
|
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -46291,6 +46720,7 @@ function createSupportsColor(stream, options = {}) {
|
|
|
46291
46720
|
var env, flagForceColor, supportsColor, supports_color_default;
|
|
46292
46721
|
var init_supports_color = __esm({
|
|
46293
46722
|
"node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js"() {
|
|
46723
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46294
46724
|
({ env } = process4);
|
|
46295
46725
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
46296
46726
|
flagForceColor = 0;
|
|
@@ -46336,6 +46766,7 @@ function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index) {
|
|
|
46336
46766
|
}
|
|
46337
46767
|
var init_utilities = __esm({
|
|
46338
46768
|
"node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js"() {
|
|
46769
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46339
46770
|
}
|
|
46340
46771
|
});
|
|
46341
46772
|
|
|
@@ -46362,6 +46793,7 @@ function createChalk(options) {
|
|
|
46362
46793
|
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
|
|
46363
46794
|
var init_source = __esm({
|
|
46364
46795
|
"node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js"() {
|
|
46796
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46365
46797
|
init_ansi_styles();
|
|
46366
46798
|
init_supports_color();
|
|
46367
46799
|
init_utilities();
|
|
@@ -46612,17 +47044,161 @@ function applyFixes(result, options = {}) {
|
|
|
46612
47044
|
var init_fixer = __esm({
|
|
46613
47045
|
"src/core/fixer.ts"() {
|
|
46614
47046
|
"use strict";
|
|
47047
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46615
47048
|
init_source();
|
|
46616
47049
|
}
|
|
46617
47050
|
});
|
|
46618
47051
|
|
|
47052
|
+
// src/core/config.ts
|
|
47053
|
+
import * as fs8 from "node:fs";
|
|
47054
|
+
import * as path10 from "node:path";
|
|
47055
|
+
function formatJsonError(content, err) {
|
|
47056
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
47057
|
+
const posMatch = msg.match(/position (\d+)/);
|
|
47058
|
+
if (posMatch) {
|
|
47059
|
+
return `${msg} (${posToLineCol(content, Number(posMatch[1]))})`;
|
|
47060
|
+
}
|
|
47061
|
+
if (/line \d+/.test(msg)) return msg;
|
|
47062
|
+
const pos = findFirstErrorPos(content, msg);
|
|
47063
|
+
if (pos !== null) {
|
|
47064
|
+
return `${msg} (${posToLineCol(content, pos)})`;
|
|
47065
|
+
}
|
|
47066
|
+
return msg;
|
|
47067
|
+
}
|
|
47068
|
+
function posToLineCol(content, pos) {
|
|
47069
|
+
let line = 1;
|
|
47070
|
+
let col = 1;
|
|
47071
|
+
for (let i2 = 0; i2 < pos && i2 < content.length; i2++) {
|
|
47072
|
+
if (content[i2] === "\n") {
|
|
47073
|
+
line++;
|
|
47074
|
+
col = 1;
|
|
47075
|
+
} else {
|
|
47076
|
+
col++;
|
|
47077
|
+
}
|
|
47078
|
+
}
|
|
47079
|
+
return `line ${line}, column ${col}`;
|
|
47080
|
+
}
|
|
47081
|
+
function findFirstErrorPos(content, errMsg) {
|
|
47082
|
+
const snippetMatch = errMsg.match(/\.\.\."([^"]+(?:"[^"]*)*?)"\s+is not valid JSON/);
|
|
47083
|
+
if (snippetMatch) {
|
|
47084
|
+
const snippet = snippetMatch[1];
|
|
47085
|
+
const needle = snippet.split(/\s/).find((s) => s.length > 1);
|
|
47086
|
+
if (needle) {
|
|
47087
|
+
const idx = content.indexOf(needle);
|
|
47088
|
+
if (idx !== -1) return idx;
|
|
47089
|
+
}
|
|
47090
|
+
}
|
|
47091
|
+
const tokenMatch = errMsg.match(/Unexpected token\s+['"]?([^'",]+?)['"]?,/);
|
|
47092
|
+
if (tokenMatch) {
|
|
47093
|
+
const tok = tokenMatch[1];
|
|
47094
|
+
const idx = content.indexOf(tok);
|
|
47095
|
+
if (idx !== -1) return idx;
|
|
47096
|
+
}
|
|
47097
|
+
return null;
|
|
47098
|
+
}
|
|
47099
|
+
function suggestKey(unknown2) {
|
|
47100
|
+
let best = null;
|
|
47101
|
+
let bestDist = Infinity;
|
|
47102
|
+
for (const known of KNOWN_CONFIG_KEYS) {
|
|
47103
|
+
const d = levenshtein2(unknown2, known);
|
|
47104
|
+
if (d < bestDist) {
|
|
47105
|
+
bestDist = d;
|
|
47106
|
+
best = known;
|
|
47107
|
+
}
|
|
47108
|
+
}
|
|
47109
|
+
const threshold = Math.min(4, Math.max(2, Math.floor(unknown2.length / 3)));
|
|
47110
|
+
if (best && bestDist <= threshold) {
|
|
47111
|
+
return best;
|
|
47112
|
+
}
|
|
47113
|
+
return null;
|
|
47114
|
+
}
|
|
47115
|
+
function warnUnknownKeys(config2, source) {
|
|
47116
|
+
if (!config2 || typeof config2 !== "object" || Array.isArray(config2)) return;
|
|
47117
|
+
const keys = Object.keys(config2);
|
|
47118
|
+
const known = new Set(KNOWN_CONFIG_KEYS);
|
|
47119
|
+
for (const k3 of keys) {
|
|
47120
|
+
if (known.has(k3)) continue;
|
|
47121
|
+
const hint = suggestKey(k3);
|
|
47122
|
+
const suggestion = hint ? ` \u2014 did you mean "${hint}"?` : "";
|
|
47123
|
+
console.error(`Warning: unknown config key "${k3}" in ${source}${suggestion}`);
|
|
47124
|
+
}
|
|
47125
|
+
}
|
|
47126
|
+
function parseConfigContent(content, source) {
|
|
47127
|
+
let parsed;
|
|
47128
|
+
try {
|
|
47129
|
+
parsed = JSON.parse(content);
|
|
47130
|
+
} catch (err) {
|
|
47131
|
+
throw new Error(`Invalid JSON in ${source}: ${formatJsonError(content, err)}`, {
|
|
47132
|
+
cause: err
|
|
47133
|
+
});
|
|
47134
|
+
}
|
|
47135
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
47136
|
+
throw new Error(
|
|
47137
|
+
`Invalid config in ${source}: expected a JSON object at the root, got ${Array.isArray(parsed) ? "an array" : typeof parsed}`
|
|
47138
|
+
);
|
|
47139
|
+
}
|
|
47140
|
+
warnUnknownKeys(parsed, source);
|
|
47141
|
+
return parsed;
|
|
47142
|
+
}
|
|
47143
|
+
function loadConfig(projectRoot) {
|
|
47144
|
+
for (const filename of CONFIG_FILENAMES) {
|
|
47145
|
+
const filePath = path10.join(projectRoot, filename);
|
|
47146
|
+
let content;
|
|
47147
|
+
try {
|
|
47148
|
+
content = stripBom(fs8.readFileSync(filePath, "utf-8"));
|
|
47149
|
+
} catch {
|
|
47150
|
+
continue;
|
|
47151
|
+
}
|
|
47152
|
+
return parseConfigContent(content, filePath);
|
|
47153
|
+
}
|
|
47154
|
+
return null;
|
|
47155
|
+
}
|
|
47156
|
+
function loadConfigFromExplicitPath(configPath) {
|
|
47157
|
+
let content;
|
|
47158
|
+
try {
|
|
47159
|
+
content = stripBom(fs8.readFileSync(configPath, "utf-8"));
|
|
47160
|
+
} catch (err) {
|
|
47161
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
47162
|
+
throw new Error(`could not load config from ${configPath}: ${detail}`, { cause: err });
|
|
47163
|
+
}
|
|
47164
|
+
return parseConfigContent(content, configPath);
|
|
47165
|
+
}
|
|
47166
|
+
var import_fast_levenshtein2, levenshtein2, KNOWN_CONFIG_KEYS, CONFIG_FILENAMES;
|
|
47167
|
+
var init_config2 = __esm({
|
|
47168
|
+
"src/core/config.ts"() {
|
|
47169
|
+
"use strict";
|
|
47170
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
47171
|
+
import_fast_levenshtein2 = __toESM(require_levenshtein(), 1);
|
|
47172
|
+
init_fs();
|
|
47173
|
+
levenshtein2 = import_fast_levenshtein2.default.get;
|
|
47174
|
+
KNOWN_CONFIG_KEYS = [
|
|
47175
|
+
"checks",
|
|
47176
|
+
"ignore",
|
|
47177
|
+
"ignoreRules",
|
|
47178
|
+
"strict",
|
|
47179
|
+
"tokenThresholds",
|
|
47180
|
+
"contextFiles",
|
|
47181
|
+
"mcp",
|
|
47182
|
+
"mcpOnly",
|
|
47183
|
+
"mcpGlobal",
|
|
47184
|
+
"mcph",
|
|
47185
|
+
"mcphOnly",
|
|
47186
|
+
"mcphGlobal",
|
|
47187
|
+
"mcphStrictEnvToken",
|
|
47188
|
+
"session",
|
|
47189
|
+
"sessionOnly"
|
|
47190
|
+
];
|
|
47191
|
+
CONFIG_FILENAMES = [".ctxlintrc", ".ctxlintrc.json"];
|
|
47192
|
+
}
|
|
47193
|
+
});
|
|
47194
|
+
|
|
46619
47195
|
// src/mcp/server.ts
|
|
46620
47196
|
var server_exports = {};
|
|
46621
47197
|
__export(server_exports, {
|
|
46622
47198
|
server: () => server,
|
|
46623
47199
|
startServer: () => startServer
|
|
46624
47200
|
});
|
|
46625
|
-
import * as
|
|
47201
|
+
import * as path11 from "node:path";
|
|
46626
47202
|
function describeDisallowed(rawPath) {
|
|
46627
47203
|
const m = rawPath.match(PATH_DISALLOWED);
|
|
46628
47204
|
if (!m) return "unknown";
|
|
@@ -46635,12 +47211,19 @@ function validateProjectPath(rawPath) {
|
|
|
46635
47211
|
`projectPath contains disallowed character ${describeDisallowed(rawPath)} (control chars and shell metacharacters are rejected)`
|
|
46636
47212
|
);
|
|
46637
47213
|
}
|
|
46638
|
-
const resolved =
|
|
47214
|
+
const resolved = path11.resolve(rawPath);
|
|
46639
47215
|
if (!isDirectory(resolved)) {
|
|
46640
47216
|
throw new Error("projectPath is not an existing directory");
|
|
46641
47217
|
}
|
|
46642
47218
|
return resolved;
|
|
46643
47219
|
}
|
|
47220
|
+
function safeLoadConfig(projectRoot) {
|
|
47221
|
+
try {
|
|
47222
|
+
return loadConfig(projectRoot);
|
|
47223
|
+
} catch {
|
|
47224
|
+
return null;
|
|
47225
|
+
}
|
|
47226
|
+
}
|
|
46644
47227
|
function validateFilePathInput(rawPath) {
|
|
46645
47228
|
if (PATH_DISALLOWED.test(rawPath)) {
|
|
46646
47229
|
throw new Error(
|
|
@@ -46649,10 +47232,10 @@ function validateFilePathInput(rawPath) {
|
|
|
46649
47232
|
}
|
|
46650
47233
|
}
|
|
46651
47234
|
function resolveWithinRoot(filePath, root) {
|
|
46652
|
-
const resolvedRoot =
|
|
46653
|
-
const resolved =
|
|
46654
|
-
const rel =
|
|
46655
|
-
if (rel.startsWith("..") ||
|
|
47235
|
+
const resolvedRoot = path11.resolve(root);
|
|
47236
|
+
const resolved = path11.resolve(resolvedRoot, filePath);
|
|
47237
|
+
const rel = path11.relative(resolvedRoot, resolved);
|
|
47238
|
+
if (rel.startsWith("..") || path11.isAbsolute(rel)) {
|
|
46656
47239
|
throw new Error("path escapes the project root");
|
|
46657
47240
|
}
|
|
46658
47241
|
return resolved;
|
|
@@ -46666,6 +47249,7 @@ var contextCheckEnum, mcpCheckEnum, mcphCheckEnum, sessionCheckEnum, PATH_DISALL
|
|
|
46666
47249
|
var init_server3 = __esm({
|
|
46667
47250
|
"src/mcp/server.ts"() {
|
|
46668
47251
|
"use strict";
|
|
47252
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46669
47253
|
init_mcp();
|
|
46670
47254
|
init_stdio2();
|
|
46671
47255
|
init_zod();
|
|
@@ -46673,6 +47257,7 @@ var init_server3 = __esm({
|
|
|
46673
47257
|
init_parser();
|
|
46674
47258
|
init_audit();
|
|
46675
47259
|
init_fixer();
|
|
47260
|
+
init_config2();
|
|
46676
47261
|
init_fs();
|
|
46677
47262
|
init_git();
|
|
46678
47263
|
init_tokens();
|
|
@@ -46705,7 +47290,10 @@ var init_server3 = __esm({
|
|
|
46705
47290
|
try {
|
|
46706
47291
|
const root = validateProjectPath(projectPath);
|
|
46707
47292
|
const activeChecks = checks?.length ? checks : ALL_CHECKS;
|
|
46708
|
-
const
|
|
47293
|
+
const config2 = safeLoadConfig(root);
|
|
47294
|
+
const result = await runAudit(root, activeChecks, {
|
|
47295
|
+
ignoreRules: config2?.ignoreRules
|
|
47296
|
+
});
|
|
46709
47297
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
46710
47298
|
} catch (err) {
|
|
46711
47299
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -46833,7 +47421,10 @@ var init_server3 = __esm({
|
|
|
46833
47421
|
try {
|
|
46834
47422
|
const root = validateProjectPath(projectPath);
|
|
46835
47423
|
const activeChecks = checks?.length ? checks : ALL_CHECKS;
|
|
46836
|
-
const
|
|
47424
|
+
const config2 = safeLoadConfig(root);
|
|
47425
|
+
const result = await runAudit(root, activeChecks, {
|
|
47426
|
+
ignoreRules: config2?.ignoreRules
|
|
47427
|
+
});
|
|
46837
47428
|
const fixSummary = applyFixes(result, { quiet: true });
|
|
46838
47429
|
return {
|
|
46839
47430
|
content: [
|
|
@@ -46883,10 +47474,12 @@ var init_server3 = __esm({
|
|
|
46883
47474
|
try {
|
|
46884
47475
|
const root = validateProjectPath(projectPath);
|
|
46885
47476
|
const activeChecks = checks?.length ? checks : ALL_MCP_CHECKS;
|
|
47477
|
+
const config2 = safeLoadConfig(root);
|
|
46886
47478
|
const result = await runAudit(root, activeChecks, {
|
|
46887
47479
|
mcp: true,
|
|
46888
47480
|
mcpOnly: true,
|
|
46889
|
-
mcpGlobal: includeGlobal || false
|
|
47481
|
+
mcpGlobal: includeGlobal || false,
|
|
47482
|
+
ignoreRules: config2?.ignoreRules
|
|
46890
47483
|
});
|
|
46891
47484
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
46892
47485
|
} catch (err) {
|
|
@@ -46924,11 +47517,13 @@ var init_server3 = __esm({
|
|
|
46924
47517
|
try {
|
|
46925
47518
|
const root = validateProjectPath(projectPath);
|
|
46926
47519
|
const activeChecks = checks?.length ? checks : ALL_MCPH_CHECKS;
|
|
47520
|
+
const config2 = safeLoadConfig(root);
|
|
46927
47521
|
const result = await runAudit(root, activeChecks, {
|
|
46928
47522
|
mcph: true,
|
|
46929
47523
|
mcphOnly: true,
|
|
46930
47524
|
mcphGlobal: includeGlobal || false,
|
|
46931
|
-
mcphStrictEnvToken: strictEnvToken || false
|
|
47525
|
+
mcphStrictEnvToken: strictEnvToken || false,
|
|
47526
|
+
ignoreRules: config2?.ignoreRules
|
|
46932
47527
|
});
|
|
46933
47528
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
46934
47529
|
} catch (err) {
|
|
@@ -46962,9 +47557,11 @@ var init_server3 = __esm({
|
|
|
46962
47557
|
try {
|
|
46963
47558
|
const root = validateProjectPath(projectPath);
|
|
46964
47559
|
const activeChecks = checks?.length ? checks : ALL_SESSION_CHECKS;
|
|
47560
|
+
const config2 = safeLoadConfig(root);
|
|
46965
47561
|
const result = await runAudit(root, activeChecks, {
|
|
46966
47562
|
session: true,
|
|
46967
|
-
sessionOnly: true
|
|
47563
|
+
sessionOnly: true,
|
|
47564
|
+
ignoreRules: config2?.ignoreRules
|
|
46968
47565
|
});
|
|
46969
47566
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
46970
47567
|
} catch (err) {
|
|
@@ -46987,6 +47584,7 @@ var init_server3 = __esm({
|
|
|
46987
47584
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js
|
|
46988
47585
|
var require_error = __commonJS({
|
|
46989
47586
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js"(exports) {
|
|
47587
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
46990
47588
|
var CommanderError2 = class extends Error {
|
|
46991
47589
|
/**
|
|
46992
47590
|
* Constructs the CommanderError class
|
|
@@ -47022,6 +47620,7 @@ var require_error = __commonJS({
|
|
|
47022
47620
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/argument.js
|
|
47023
47621
|
var require_argument = __commonJS({
|
|
47024
47622
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/argument.js"(exports) {
|
|
47623
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
47025
47624
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
47026
47625
|
var Argument2 = class {
|
|
47027
47626
|
/**
|
|
@@ -47150,6 +47749,7 @@ var require_argument = __commonJS({
|
|
|
47150
47749
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/help.js
|
|
47151
47750
|
var require_help = __commonJS({
|
|
47152
47751
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/help.js"(exports) {
|
|
47752
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
47153
47753
|
var { humanReadableArgName } = require_argument();
|
|
47154
47754
|
var Help2 = class {
|
|
47155
47755
|
constructor() {
|
|
@@ -47752,6 +48352,7 @@ ${itemIndentStr}`);
|
|
|
47752
48352
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/option.js
|
|
47753
48353
|
var require_option = __commonJS({
|
|
47754
48354
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/option.js"(exports) {
|
|
48355
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
47755
48356
|
var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
47756
48357
|
var Option2 = class {
|
|
47757
48358
|
/**
|
|
@@ -48065,6 +48666,7 @@ var require_option = __commonJS({
|
|
|
48065
48666
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/suggestSimilar.js
|
|
48066
48667
|
var require_suggestSimilar = __commonJS({
|
|
48067
48668
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/suggestSimilar.js"(exports) {
|
|
48669
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
48068
48670
|
var maxDistance = 3;
|
|
48069
48671
|
function editDistance(a, b2) {
|
|
48070
48672
|
if (Math.abs(a.length - b2.length) > maxDistance)
|
|
@@ -48145,6 +48747,7 @@ var require_suggestSimilar = __commonJS({
|
|
|
48145
48747
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/command.js
|
|
48146
48748
|
var require_command = __commonJS({
|
|
48147
48749
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/command.js"(exports) {
|
|
48750
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
48148
48751
|
var EventEmitter2 = __require("node:events").EventEmitter;
|
|
48149
48752
|
var childProcess = __require("node:child_process");
|
|
48150
48753
|
var path13 = __require("node:path");
|
|
@@ -50391,6 +50994,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50391
50994
|
// node_modules/.pnpm/commander@14.0.3/node_modules/commander/index.js
|
|
50392
50995
|
var require_commander = __commonJS({
|
|
50393
50996
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/index.js"(exports) {
|
|
50997
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50394
50998
|
var { Argument: Argument2 } = require_argument();
|
|
50395
50999
|
var { Command: Command2 } = require_command();
|
|
50396
51000
|
var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
|
|
@@ -50414,6 +51018,7 @@ var require_commander = __commonJS({
|
|
|
50414
51018
|
var import_index2, program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help;
|
|
50415
51019
|
var init_esm3 = __esm({
|
|
50416
51020
|
"node_modules/.pnpm/commander@14.0.3/node_modules/commander/esm.mjs"() {
|
|
51021
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50417
51022
|
import_index2 = __toESM(require_commander(), 1);
|
|
50418
51023
|
({
|
|
50419
51024
|
program,
|
|
@@ -50447,6 +51052,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
|
50447
51052
|
var copyProperty, canCopyProperty, changePrototype, wrappedToString, toStringDescriptor, toStringName, changeToString;
|
|
50448
51053
|
var init_mimic_function = __esm({
|
|
50449
51054
|
"node_modules/.pnpm/mimic-function@5.0.1/node_modules/mimic-function/index.js"() {
|
|
51055
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50450
51056
|
copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
50451
51057
|
if (property === "length" || property === "prototype") {
|
|
50452
51058
|
return;
|
|
@@ -50489,6 +51095,7 @@ ${fromBody}`;
|
|
|
50489
51095
|
var calledFunctions, onetime, onetime_default;
|
|
50490
51096
|
var init_onetime = __esm({
|
|
50491
51097
|
"node_modules/.pnpm/onetime@7.0.0/node_modules/onetime/index.js"() {
|
|
51098
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50492
51099
|
init_mimic_function();
|
|
50493
51100
|
calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
50494
51101
|
onetime = (function_, options = {}) => {
|
|
@@ -50526,6 +51133,7 @@ var init_onetime = __esm({
|
|
|
50526
51133
|
var signals;
|
|
50527
51134
|
var init_signals = __esm({
|
|
50528
51135
|
"node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js"() {
|
|
51136
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50529
51137
|
signals = [];
|
|
50530
51138
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
50531
51139
|
if (process.platform !== "win32") {
|
|
@@ -50555,6 +51163,7 @@ var init_signals = __esm({
|
|
|
50555
51163
|
var processOk, kExitEmitter, global, ObjectDefineProperty, Emitter, SignalExitBase, signalExitWrap, SignalExitFallback, SignalExit, process5, onExit, load, unload;
|
|
50556
51164
|
var init_mjs = __esm({
|
|
50557
51165
|
"node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js"() {
|
|
51166
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50558
51167
|
init_signals();
|
|
50559
51168
|
processOk = (process11) => !!process11 && typeof process11 === "object" && typeof process11.removeListener === "function" && typeof process11.emit === "function" && typeof process11.reallyExit === "function" && typeof process11.listeners === "function" && typeof process11.kill === "function" && typeof process11.pid === "number" && typeof process11.on === "function";
|
|
50560
51169
|
kExitEmitter = /* @__PURE__ */ Symbol.for("signal-exit emitter");
|
|
@@ -50795,6 +51404,7 @@ import process6 from "node:process";
|
|
|
50795
51404
|
var terminal, restoreCursor, restore_cursor_default;
|
|
50796
51405
|
var init_restore_cursor = __esm({
|
|
50797
51406
|
"node_modules/.pnpm/restore-cursor@5.1.0/node_modules/restore-cursor/index.js"() {
|
|
51407
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50798
51408
|
init_onetime();
|
|
50799
51409
|
init_mjs();
|
|
50800
51410
|
terminal = process6.stderr.isTTY ? process6.stderr : process6.stdout.isTTY ? process6.stdout : void 0;
|
|
@@ -50813,6 +51423,7 @@ import process7 from "node:process";
|
|
|
50813
51423
|
var isHidden, cliCursor, cli_cursor_default;
|
|
50814
51424
|
var init_cli_cursor = __esm({
|
|
50815
51425
|
"node_modules/.pnpm/cli-cursor@5.0.0/node_modules/cli-cursor/index.js"() {
|
|
51426
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
50816
51427
|
init_restore_cursor();
|
|
50817
51428
|
isHidden = false;
|
|
50818
51429
|
cliCursor = {};
|
|
@@ -52553,6 +53164,7 @@ var init_spinners = __esm({
|
|
|
52553
53164
|
var cli_spinners_default, spinnersList;
|
|
52554
53165
|
var init_cli_spinners = __esm({
|
|
52555
53166
|
"node_modules/.pnpm/cli-spinners@3.4.0/node_modules/cli-spinners/index.js"() {
|
|
53167
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52556
53168
|
init_spinners();
|
|
52557
53169
|
cli_spinners_default = spinners_default;
|
|
52558
53170
|
spinnersList = Object.keys(spinners_default);
|
|
@@ -52564,6 +53176,7 @@ import tty2 from "node:tty";
|
|
|
52564
53176
|
var hasColors, format2, reset, bold, dim, italic, underline, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright;
|
|
52565
53177
|
var init_base = __esm({
|
|
52566
53178
|
"node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js"() {
|
|
53179
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52567
53180
|
hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
52568
53181
|
format2 = (open, close) => {
|
|
52569
53182
|
if (!hasColors) {
|
|
@@ -52637,6 +53250,7 @@ var init_base = __esm({
|
|
|
52637
53250
|
// node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/index.js
|
|
52638
53251
|
var init_yoctocolors = __esm({
|
|
52639
53252
|
"node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/index.js"() {
|
|
53253
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52640
53254
|
init_base();
|
|
52641
53255
|
init_base();
|
|
52642
53256
|
}
|
|
@@ -52654,6 +53268,7 @@ function isUnicodeSupported() {
|
|
|
52654
53268
|
}
|
|
52655
53269
|
var init_is_unicode_supported = __esm({
|
|
52656
53270
|
"node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js"() {
|
|
53271
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52657
53272
|
}
|
|
52658
53273
|
});
|
|
52659
53274
|
|
|
@@ -52668,6 +53283,7 @@ __export(symbols_exports, {
|
|
|
52668
53283
|
var _isUnicodeSupported, info, success2, warning, error48;
|
|
52669
53284
|
var init_symbols = __esm({
|
|
52670
53285
|
"node_modules/.pnpm/log-symbols@7.0.1/node_modules/log-symbols/symbols.js"() {
|
|
53286
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52671
53287
|
init_yoctocolors();
|
|
52672
53288
|
init_is_unicode_supported();
|
|
52673
53289
|
_isUnicodeSupported = isUnicodeSupported();
|
|
@@ -52681,6 +53297,7 @@ var init_symbols = __esm({
|
|
|
52681
53297
|
// node_modules/.pnpm/log-symbols@7.0.1/node_modules/log-symbols/index.js
|
|
52682
53298
|
var init_log_symbols = __esm({
|
|
52683
53299
|
"node_modules/.pnpm/log-symbols@7.0.1/node_modules/log-symbols/index.js"() {
|
|
53300
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52684
53301
|
init_symbols();
|
|
52685
53302
|
}
|
|
52686
53303
|
});
|
|
@@ -52695,6 +53312,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
52695
53312
|
}
|
|
52696
53313
|
var init_ansi_regex = __esm({
|
|
52697
53314
|
"node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
|
|
53315
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52698
53316
|
}
|
|
52699
53317
|
});
|
|
52700
53318
|
|
|
@@ -52711,6 +53329,7 @@ function stripAnsi(string4) {
|
|
|
52711
53329
|
var regex;
|
|
52712
53330
|
var init_strip_ansi = __esm({
|
|
52713
53331
|
"node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js"() {
|
|
53332
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52714
53333
|
init_ansi_regex();
|
|
52715
53334
|
regex = ansiRegex();
|
|
52716
53335
|
}
|
|
@@ -52720,6 +53339,7 @@ var init_strip_ansi = __esm({
|
|
|
52720
53339
|
var ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges;
|
|
52721
53340
|
var init_lookup_data = __esm({
|
|
52722
53341
|
"node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js"() {
|
|
53342
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52723
53343
|
ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
52724
53344
|
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
52725
53345
|
halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
@@ -52732,6 +53352,7 @@ var init_lookup_data = __esm({
|
|
|
52732
53352
|
var isInRange;
|
|
52733
53353
|
var init_utilities2 = __esm({
|
|
52734
53354
|
"node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js"() {
|
|
53355
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52735
53356
|
isInRange = (ranges, codePoint) => {
|
|
52736
53357
|
let low = 0;
|
|
52737
53358
|
let high = Math.floor(ranges.length / 2) - 1;
|
|
@@ -52771,6 +53392,7 @@ function findWideFastPathRange(ranges) {
|
|
|
52771
53392
|
var minimumAmbiguousCodePoint, maximumAmbiguousCodePoint, minimumFullWidthCodePoint, maximumFullWidthCodePoint, minimumHalfWidthCodePoint, maximumHalfWidthCodePoint, minimumNarrowCodePoint, maximumNarrowCodePoint, minimumWideCodePoint, maximumWideCodePoint, commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullWidth, isWide;
|
|
52772
53393
|
var init_lookup = __esm({
|
|
52773
53394
|
"node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js"() {
|
|
53395
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52774
53396
|
init_lookup_data();
|
|
52775
53397
|
init_utilities2();
|
|
52776
53398
|
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
@@ -52824,6 +53446,7 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
|
52824
53446
|
}
|
|
52825
53447
|
var init_get_east_asian_width = __esm({
|
|
52826
53448
|
"node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js"() {
|
|
53449
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52827
53450
|
init_lookup();
|
|
52828
53451
|
}
|
|
52829
53452
|
});
|
|
@@ -52896,6 +53519,7 @@ function stringWidth(input, options = {}) {
|
|
|
52896
53519
|
var segmenter, zeroWidthClusterRegex, leadingNonPrintingRegex, rgiEmojiRegex, unqualifiedKeycapRegex, extendedPictographicRegex;
|
|
52897
53520
|
var init_string_width = __esm({
|
|
52898
53521
|
"node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.js"() {
|
|
53522
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52899
53523
|
init_strip_ansi();
|
|
52900
53524
|
init_get_east_asian_width();
|
|
52901
53525
|
segmenter = new Intl.Segmenter();
|
|
@@ -52915,6 +53539,7 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
52915
53539
|
}
|
|
52916
53540
|
var init_is_interactive = __esm({
|
|
52917
53541
|
"node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js"() {
|
|
53542
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52918
53543
|
}
|
|
52919
53544
|
});
|
|
52920
53545
|
|
|
@@ -52923,6 +53548,7 @@ import process9 from "node:process";
|
|
|
52923
53548
|
var ASCII_ETX_CODE, StdinDiscarder, stdinDiscarder, stdin_discarder_default;
|
|
52924
53549
|
var init_stdin_discarder = __esm({
|
|
52925
53550
|
"node_modules/.pnpm/stdin-discarder@0.3.1/node_modules/stdin-discarder/index.js"() {
|
|
53551
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
52926
53552
|
ASCII_ETX_CODE = 3;
|
|
52927
53553
|
StdinDiscarder = class {
|
|
52928
53554
|
#activeCount = 0;
|
|
@@ -53002,6 +53628,7 @@ function ora(options) {
|
|
|
53002
53628
|
var RENDER_DEFERRAL_TIMEOUT, SYNCHRONIZED_OUTPUT_ENABLE, SYNCHRONIZED_OUTPUT_DISABLE, activeHooksPerStream, Ora;
|
|
53003
53629
|
var init_ora = __esm({
|
|
53004
53630
|
"node_modules/.pnpm/ora@9.3.0/node_modules/ora/index.js"() {
|
|
53631
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
53005
53632
|
init_source();
|
|
53006
53633
|
init_cli_cursor();
|
|
53007
53634
|
init_cli_spinners();
|
|
@@ -53565,9 +54192,46 @@ function formatText(result, verbose = false) {
|
|
|
53565
54192
|
if (result.summary.estimatedWaste > 0) {
|
|
53566
54193
|
lines.push(` Estimated waste: ~${result.summary.estimatedWaste} tokens (redundant content)`);
|
|
53567
54194
|
}
|
|
54195
|
+
const ig = result._meta?.ignoreReport;
|
|
54196
|
+
if (ig && (ig.dropped > 0 || ig.unusedRules.length > 0 || ig.rulesMissingReason.length > 0)) {
|
|
54197
|
+
lines.push("");
|
|
54198
|
+
lines.push(source_default.bold("Ignore rules"));
|
|
54199
|
+
if (ig.dropped > 0) {
|
|
54200
|
+
lines.push(
|
|
54201
|
+
source_default.dim(` ${ig.dropped} finding${ig.dropped !== 1 ? "s" : ""} dropped by ignoreRules`)
|
|
54202
|
+
);
|
|
54203
|
+
}
|
|
54204
|
+
if (ig.unusedRules.length > 0) {
|
|
54205
|
+
lines.push(
|
|
54206
|
+
source_default.yellow(
|
|
54207
|
+
` ${ig.unusedRules.length} ignore rule${ig.unusedRules.length !== 1 ? "s" : ""} never fired (drift -- consider removing):`
|
|
54208
|
+
)
|
|
54209
|
+
);
|
|
54210
|
+
for (const r2 of ig.unusedRules) {
|
|
54211
|
+
lines.push(` - ${formatIgnoreRule(r2)}`);
|
|
54212
|
+
}
|
|
54213
|
+
}
|
|
54214
|
+
if (ig.rulesMissingReason.length > 0) {
|
|
54215
|
+
lines.push(
|
|
54216
|
+
source_default.yellow(
|
|
54217
|
+
` ${ig.rulesMissingReason.length} ignore rule${ig.rulesMissingReason.length !== 1 ? "s" : ""} missing a "reason" field:`
|
|
54218
|
+
)
|
|
54219
|
+
);
|
|
54220
|
+
for (const r2 of ig.rulesMissingReason) {
|
|
54221
|
+
lines.push(` - ${formatIgnoreRule(r2)}`);
|
|
54222
|
+
}
|
|
54223
|
+
}
|
|
54224
|
+
}
|
|
53568
54225
|
lines.push("");
|
|
53569
54226
|
return lines.join("\n");
|
|
53570
54227
|
}
|
|
54228
|
+
function formatIgnoreRule(r2) {
|
|
54229
|
+
const parts = [r2.check];
|
|
54230
|
+
if (r2.match) parts.push(`match=/${r2.match}/`);
|
|
54231
|
+
if (r2.pathPattern) parts.push(`pathPattern=/${r2.pathPattern}/`);
|
|
54232
|
+
if (r2.reason) parts.push(`reason="${r2.reason}"`);
|
|
54233
|
+
return parts.join(" ");
|
|
54234
|
+
}
|
|
53571
54235
|
function formatJson(result) {
|
|
53572
54236
|
return JSON.stringify(result, null, 2);
|
|
53573
54237
|
}
|
|
@@ -53849,6 +54513,7 @@ var GROUP_ORDER, GROUP_LABELS, GROUP_SUMMARY_NOUNS;
|
|
|
53849
54513
|
var init_reporter = __esm({
|
|
53850
54514
|
"src/core/reporter.ts"() {
|
|
53851
54515
|
"use strict";
|
|
54516
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
53852
54517
|
init_source();
|
|
53853
54518
|
GROUP_ORDER = ["context", "mcp", "mcph", "session"];
|
|
53854
54519
|
GROUP_LABELS = {
|
|
@@ -53866,147 +54531,6 @@ var init_reporter = __esm({
|
|
|
53866
54531
|
}
|
|
53867
54532
|
});
|
|
53868
54533
|
|
|
53869
|
-
// src/core/config.ts
|
|
53870
|
-
import * as fs8 from "node:fs";
|
|
53871
|
-
import * as path11 from "node:path";
|
|
53872
|
-
function formatJsonError(content, err) {
|
|
53873
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
53874
|
-
const posMatch = msg.match(/position (\d+)/);
|
|
53875
|
-
if (posMatch) {
|
|
53876
|
-
return `${msg} (${posToLineCol(content, Number(posMatch[1]))})`;
|
|
53877
|
-
}
|
|
53878
|
-
if (/line \d+/.test(msg)) return msg;
|
|
53879
|
-
const pos = findFirstErrorPos(content, msg);
|
|
53880
|
-
if (pos !== null) {
|
|
53881
|
-
return `${msg} (${posToLineCol(content, pos)})`;
|
|
53882
|
-
}
|
|
53883
|
-
return msg;
|
|
53884
|
-
}
|
|
53885
|
-
function posToLineCol(content, pos) {
|
|
53886
|
-
let line = 1;
|
|
53887
|
-
let col = 1;
|
|
53888
|
-
for (let i2 = 0; i2 < pos && i2 < content.length; i2++) {
|
|
53889
|
-
if (content[i2] === "\n") {
|
|
53890
|
-
line++;
|
|
53891
|
-
col = 1;
|
|
53892
|
-
} else {
|
|
53893
|
-
col++;
|
|
53894
|
-
}
|
|
53895
|
-
}
|
|
53896
|
-
return `line ${line}, column ${col}`;
|
|
53897
|
-
}
|
|
53898
|
-
function findFirstErrorPos(content, errMsg) {
|
|
53899
|
-
const snippetMatch = errMsg.match(/\.\.\."([^"]+(?:"[^"]*)*?)"\s+is not valid JSON/);
|
|
53900
|
-
if (snippetMatch) {
|
|
53901
|
-
const snippet = snippetMatch[1];
|
|
53902
|
-
const needle = snippet.split(/\s/).find((s) => s.length > 1);
|
|
53903
|
-
if (needle) {
|
|
53904
|
-
const idx = content.indexOf(needle);
|
|
53905
|
-
if (idx !== -1) return idx;
|
|
53906
|
-
}
|
|
53907
|
-
}
|
|
53908
|
-
const tokenMatch = errMsg.match(/Unexpected token\s+['"]?([^'",]+?)['"]?,/);
|
|
53909
|
-
if (tokenMatch) {
|
|
53910
|
-
const tok = tokenMatch[1];
|
|
53911
|
-
const idx = content.indexOf(tok);
|
|
53912
|
-
if (idx !== -1) return idx;
|
|
53913
|
-
}
|
|
53914
|
-
return null;
|
|
53915
|
-
}
|
|
53916
|
-
function suggestKey(unknown2) {
|
|
53917
|
-
let best = null;
|
|
53918
|
-
let bestDist = Infinity;
|
|
53919
|
-
for (const known of KNOWN_CONFIG_KEYS) {
|
|
53920
|
-
const d = levenshtein2(unknown2, known);
|
|
53921
|
-
if (d < bestDist) {
|
|
53922
|
-
bestDist = d;
|
|
53923
|
-
best = known;
|
|
53924
|
-
}
|
|
53925
|
-
}
|
|
53926
|
-
const threshold = Math.min(4, Math.max(2, Math.floor(unknown2.length / 3)));
|
|
53927
|
-
if (best && bestDist <= threshold) {
|
|
53928
|
-
return best;
|
|
53929
|
-
}
|
|
53930
|
-
return null;
|
|
53931
|
-
}
|
|
53932
|
-
function warnUnknownKeys(config2, source) {
|
|
53933
|
-
if (!config2 || typeof config2 !== "object" || Array.isArray(config2)) return;
|
|
53934
|
-
const keys = Object.keys(config2);
|
|
53935
|
-
const known = new Set(KNOWN_CONFIG_KEYS);
|
|
53936
|
-
for (const k3 of keys) {
|
|
53937
|
-
if (known.has(k3)) continue;
|
|
53938
|
-
const hint = suggestKey(k3);
|
|
53939
|
-
const suggestion = hint ? ` \u2014 did you mean "${hint}"?` : "";
|
|
53940
|
-
console.error(`Warning: unknown config key "${k3}" in ${source}${suggestion}`);
|
|
53941
|
-
}
|
|
53942
|
-
}
|
|
53943
|
-
function parseConfigContent(content, source) {
|
|
53944
|
-
let parsed;
|
|
53945
|
-
try {
|
|
53946
|
-
parsed = JSON.parse(content);
|
|
53947
|
-
} catch (err) {
|
|
53948
|
-
throw new Error(`Invalid JSON in ${source}: ${formatJsonError(content, err)}`, {
|
|
53949
|
-
cause: err
|
|
53950
|
-
});
|
|
53951
|
-
}
|
|
53952
|
-
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
53953
|
-
throw new Error(
|
|
53954
|
-
`Invalid config in ${source}: expected a JSON object at the root, got ${Array.isArray(parsed) ? "an array" : typeof parsed}`
|
|
53955
|
-
);
|
|
53956
|
-
}
|
|
53957
|
-
warnUnknownKeys(parsed, source);
|
|
53958
|
-
return parsed;
|
|
53959
|
-
}
|
|
53960
|
-
function loadConfig(projectRoot) {
|
|
53961
|
-
for (const filename of CONFIG_FILENAMES) {
|
|
53962
|
-
const filePath = path11.join(projectRoot, filename);
|
|
53963
|
-
let content;
|
|
53964
|
-
try {
|
|
53965
|
-
content = stripBom(fs8.readFileSync(filePath, "utf-8"));
|
|
53966
|
-
} catch {
|
|
53967
|
-
continue;
|
|
53968
|
-
}
|
|
53969
|
-
return parseConfigContent(content, filePath);
|
|
53970
|
-
}
|
|
53971
|
-
return null;
|
|
53972
|
-
}
|
|
53973
|
-
function loadConfigFromExplicitPath(configPath) {
|
|
53974
|
-
let content;
|
|
53975
|
-
try {
|
|
53976
|
-
content = stripBom(fs8.readFileSync(configPath, "utf-8"));
|
|
53977
|
-
} catch (err) {
|
|
53978
|
-
const detail = err instanceof Error ? err.message : String(err);
|
|
53979
|
-
throw new Error(`could not load config from ${configPath}: ${detail}`, { cause: err });
|
|
53980
|
-
}
|
|
53981
|
-
return parseConfigContent(content, configPath);
|
|
53982
|
-
}
|
|
53983
|
-
var import_fast_levenshtein2, levenshtein2, KNOWN_CONFIG_KEYS, CONFIG_FILENAMES;
|
|
53984
|
-
var init_config2 = __esm({
|
|
53985
|
-
"src/core/config.ts"() {
|
|
53986
|
-
"use strict";
|
|
53987
|
-
import_fast_levenshtein2 = __toESM(require_levenshtein(), 1);
|
|
53988
|
-
init_fs();
|
|
53989
|
-
levenshtein2 = import_fast_levenshtein2.default.get;
|
|
53990
|
-
KNOWN_CONFIG_KEYS = [
|
|
53991
|
-
"checks",
|
|
53992
|
-
"ignore",
|
|
53993
|
-
"strict",
|
|
53994
|
-
"tokenThresholds",
|
|
53995
|
-
"contextFiles",
|
|
53996
|
-
"mcp",
|
|
53997
|
-
"mcpOnly",
|
|
53998
|
-
"mcpGlobal",
|
|
53999
|
-
"mcph",
|
|
54000
|
-
"mcphOnly",
|
|
54001
|
-
"mcphGlobal",
|
|
54002
|
-
"mcphStrictEnvToken",
|
|
54003
|
-
"session",
|
|
54004
|
-
"sessionOnly"
|
|
54005
|
-
];
|
|
54006
|
-
CONFIG_FILENAMES = [".ctxlintrc", ".ctxlintrc.json"];
|
|
54007
|
-
}
|
|
54008
|
-
});
|
|
54009
|
-
|
|
54010
54534
|
// src/cli.ts
|
|
54011
54535
|
var cli_exports = {};
|
|
54012
54536
|
__export(cli_exports, {
|
|
@@ -54053,7 +54577,8 @@ async function runCli() {
|
|
|
54053
54577
|
mcphStrictEnvToken: options.mcphStrictEnvToken,
|
|
54054
54578
|
session: options.session,
|
|
54055
54579
|
sessionOnly: options.sessionOnly,
|
|
54056
|
-
tokenThresholds: config2?.tokenThresholds
|
|
54580
|
+
tokenThresholds: config2?.tokenThresholds,
|
|
54581
|
+
ignoreRules: config2?.ignoreRules
|
|
54057
54582
|
});
|
|
54058
54583
|
spinner?.stop();
|
|
54059
54584
|
if (result.files.length === 0) {
|
|
@@ -54219,7 +54744,8 @@ Fixed ${applied.totalFixes} issue${applied.totalFixes !== 1 ? "s" : ""} in ${app
|
|
|
54219
54744
|
mcphStrictEnvToken: liveOptions.mcphStrictEnvToken,
|
|
54220
54745
|
session: liveOptions.session,
|
|
54221
54746
|
sessionOnly: liveOptions.sessionOnly,
|
|
54222
|
-
tokenThresholds: liveConfig?.tokenThresholds
|
|
54747
|
+
tokenThresholds: liveConfig?.tokenThresholds,
|
|
54748
|
+
ignoreRules: liveConfig?.ignoreRules
|
|
54223
54749
|
});
|
|
54224
54750
|
if (result.files.length === 0) {
|
|
54225
54751
|
console.log("\nNo context files found.\n");
|
|
@@ -54398,6 +54924,7 @@ var VALID_CHECKS;
|
|
|
54398
54924
|
var init_cli = __esm({
|
|
54399
54925
|
"src/cli.ts"() {
|
|
54400
54926
|
"use strict";
|
|
54927
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
54401
54928
|
init_esm3();
|
|
54402
54929
|
init_ora();
|
|
54403
54930
|
init_paths();
|
|
@@ -54419,6 +54946,7 @@ var init_cli = __esm({
|
|
|
54419
54946
|
});
|
|
54420
54947
|
|
|
54421
54948
|
// src/index.ts
|
|
54949
|
+
init_define_WEB_FIRST_SEGMENTS();
|
|
54422
54950
|
var args = process.argv.slice(2);
|
|
54423
54951
|
if (args[0] === "serve" || args.includes("--mcp-server")) {
|
|
54424
54952
|
const { startServer: startServer2 } = await Promise.resolve().then(() => (init_server3(), server_exports));
|